0031687: Draw Harness, ViewerTest - extend command vrenderparams with option updating...
[occt.git] / src / StepSelect / StepSelect_ModelModifier.hxx
CommitLineData
42cf5bc1 1// Created on: 1994-12-22
2// Created by: Christian CAILLET
3// Copyright (c) 1994-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _StepSelect_ModelModifier_HeaderFile
18#define _StepSelect_ModelModifier_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <IFSelect_Modifier.hxx>
24#include <Standard_Boolean.hxx>
25class StepData_StepModel;
26class StepData_Protocol;
27class IFSelect_ContextModif;
28class Interface_InterfaceModel;
29class Interface_Protocol;
30class Interface_CopyTool;
31
32
33class StepSelect_ModelModifier;
34DEFINE_STANDARD_HANDLE(StepSelect_ModelModifier, IFSelect_Modifier)
35
36
37class StepSelect_ModelModifier : public IFSelect_Modifier
38{
39
40public:
41
42
36b9ff75 43 //! The inherited Perform does the required cast (and refuses to
44 //! go further if cast has failed) then calls the instantiated
45 //! Performing
79104795 46 Standard_EXPORT void Perform (IFSelect_ContextModif& ctx, const Handle(Interface_InterfaceModel)& target, const Handle(Interface_Protocol)& protocol, Interface_CopyTool& TC) const Standard_OVERRIDE;
42cf5bc1 47
36b9ff75 48 //! Specific Perform with Protocol. It is defined to let the
49 //! Protocol unused and to call Performing without Protocol
50 //! (most current case). It can be redefined if specific action
51 //! requires Protocol.
42cf5bc1 52 Standard_EXPORT virtual void PerformProtocol (IFSelect_ContextModif& ctx, const Handle(StepData_StepModel)& target, const Handle(StepData_Protocol)& proto, Interface_CopyTool& TC) const;
53
36b9ff75 54 //! Specific Perform, without Protocol. If Performing with
55 //! Protocol is redefined, Performing without Protocol must
56 //! though be defined to do nothing (not called, but demanded
57 //! by the linker)
42cf5bc1 58 Standard_EXPORT virtual void Performing (IFSelect_ContextModif& ctx, const Handle(StepData_StepModel)& target, Interface_CopyTool& TC) const = 0;
59
60
61
62
92efcf78 63 DEFINE_STANDARD_RTTI_INLINE(StepSelect_ModelModifier,IFSelect_Modifier)
42cf5bc1 64
65protected:
66
67
36b9ff75 68 //! Calls inherited Initialize, transmits to it the information
69 //! <maychangegraph>
42cf5bc1 70 Standard_EXPORT StepSelect_ModelModifier(const Standard_Boolean maychangegraph);
71
72
73
74private:
75
76
77
78
79};
80
81
82
83
84
85
86
87#endif // _StepSelect_ModelModifier_HeaderFile