blob: 6abfff60717346c460b5c1e4581c540bf0edaa68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _XSControl_Vars_HeaderFile
#define _XSControl_Vars_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_XSControl_Vars_HeaderFile
#include <Handle_XSControl_Vars.hxx>
#endif
#ifndef _Handle_Dico_DictionaryOfTransient_HeaderFile
#include <Handle_Dico_DictionaryOfTransient.hxx>
#endif
#ifndef _MMgt_TShared_HeaderFile
#include <MMgt_TShared.hxx>
#endif
#ifndef _Standard_CString_HeaderFile
#include <Standard_CString.hxx>
#endif
#ifndef _Handle_Standard_Transient_HeaderFile
#include <Handle_Standard_Transient.hxx>
#endif
#ifndef _Handle_Geom_Geometry_HeaderFile
#include <Handle_Geom_Geometry.hxx>
#endif
#ifndef _Handle_Geom2d_Curve_HeaderFile
#include <Handle_Geom2d_Curve.hxx>
#endif
#ifndef _Handle_Geom_Curve_HeaderFile
#include <Handle_Geom_Curve.hxx>
#endif
#ifndef _Handle_Geom_Surface_HeaderFile
#include <Handle_Geom_Surface.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
class Dico_DictionaryOfTransient;
class Standard_Transient;
class Geom_Geometry;
class Geom2d_Curve;
class Geom_Curve;
class Geom_Surface;
class gp_Pnt;
class gp_Pnt2d;
class TopoDS_Shape;
//! Defines a receptacle for externally defined variables, each <br>
//! one has a name <br>
//! <br>
//! I.E. a WorkSession for XSTEP is generally used inside a <br>
//! context, which brings variables, especially shapes and <br>
//! geometries. For instance DRAW or an application engine <br>
//! <br>
//! This class provides a common form for this. It also provides <br>
//! a default implementation (locally recorded variables in a <br>
//! dictionary), but which is aimed to be redefined <br>
class XSControl_Vars : public MMgt_TShared {
public:
Standard_EXPORT XSControl_Vars();
Standard_EXPORT virtual void Set(const Standard_CString name,const Handle(Standard_Transient)& val) ;
Standard_EXPORT virtual Handle_Standard_Transient Get(Standard_CString& name) const;
Standard_EXPORT virtual Handle_Geom_Geometry GetGeom(Standard_CString& name) const;
Standard_EXPORT virtual Handle_Geom2d_Curve GetCurve2d(Standard_CString& name) const;
Standard_EXPORT virtual Handle_Geom_Curve GetCurve(Standard_CString& name) const;
Standard_EXPORT virtual Handle_Geom_Surface GetSurface(Standard_CString& name) const;
Standard_EXPORT virtual void SetPoint(const Standard_CString name,const gp_Pnt& val) ;
Standard_EXPORT virtual void SetPoint2d(const Standard_CString name,const gp_Pnt2d& val) ;
Standard_EXPORT virtual Standard_Boolean GetPoint(Standard_CString& name,gp_Pnt& pnt) const;
Standard_EXPORT virtual Standard_Boolean GetPoint2d(Standard_CString& name,gp_Pnt2d& pnt) const;
Standard_EXPORT virtual void SetShape(const Standard_CString name,const TopoDS_Shape& val) ;
Standard_EXPORT virtual TopoDS_Shape GetShape(Standard_CString& name) const;
DEFINE_STANDARD_RTTI(XSControl_Vars)
protected:
private:
Handle_Dico_DictionaryOfTransient thevars;
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|