0031682: Visualization - Prs3d_ShadingAspect::SetTransparency() has no effect with...
[occt.git] / src / DNaming / DNaming_PointDriver.hxx
1 // Created on: 2010-02-25
2 // Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com> 
3 // Copyright (c) 2010-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #ifndef _DNaming_PointDriver_HeaderFile
17 #define _DNaming_PointDriver_HeaderFile
18
19 #include <Standard.hxx>
20 #include <Standard_Type.hxx>
21
22 #include <TFunction_Driver.hxx>
23 #include <Standard_Boolean.hxx>
24 #include <Standard_Integer.hxx>
25 class TFunction_Logbook;
26
27
28 class DNaming_PointDriver;
29 DEFINE_STANDARD_HANDLE(DNaming_PointDriver, TFunction_Driver)
30
31 //! Driver for PointXYZ  and  RelativePoint
32 class DNaming_PointDriver : public TFunction_Driver
33 {
34
35 public:
36
37   
38   //! Constructor
39   //! validation
40   //! ==========
41   Standard_EXPORT DNaming_PointDriver();
42   
43   //! Validates labels of a function in <log>.
44   //! In regeneration mode this method must be called (by the
45   //! solver) even if the function is not executed, to build
46   //! the valid label scope.
47   //! execution of function
48   //! ======================
49   Standard_EXPORT virtual void Validate (Handle(TFunction_Logbook)& theLog) const Standard_OVERRIDE;
50   
51   //! Analyse in <log> if the loaded function must be executed
52   //! (i.e.arguments are modified) or not.
53   //! If the Function label itself is modified, the function must
54   //! be executed.
55   Standard_EXPORT virtual Standard_Boolean MustExecute (const Handle(TFunction_Logbook)& theLog) const Standard_OVERRIDE;
56   
57   //! Execute the function and push in <log> the impacted
58   //! labels (see method SetImpacted).
59   Standard_EXPORT virtual Standard_Integer Execute (Handle(TFunction_Logbook)& theLog) const Standard_OVERRIDE;
60
61
62
63
64   DEFINE_STANDARD_RTTIEXT(DNaming_PointDriver,TFunction_Driver)
65
66 protected:
67
68
69
70
71 private:
72
73
74
75
76 };
77
78
79
80
81
82
83
84 #endif // _DNaming_PointDriver_HeaderFile