// 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 #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_XSControl_Vars_HeaderFile #include #endif #ifndef _Handle_Dico_DictionaryOfTransient_HeaderFile #include #endif #ifndef _MMgt_TShared_HeaderFile #include #endif #ifndef _Standard_CString_HeaderFile #include #endif #ifndef _Handle_Standard_Transient_HeaderFile #include #endif #ifndef _Handle_Geom_Geometry_HeaderFile #include #endif #ifndef _Handle_Geom2d_Curve_HeaderFile #include #endif #ifndef _Handle_Geom_Curve_HeaderFile #include #endif #ifndef _Handle_Geom_Surface_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #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
//! one has a name
//!
//! I.E. a WorkSession for XSTEP is generally used inside a
//! context, which brings variables, especially shapes and
//! geometries. For instance DRAW or an application engine
//!
//! This class provides a common form for this. It also provides
//! a default implementation (locally recorded variables in a
//! dictionary), but which is aimed to be redefined
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