Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:36

0001 // Created on: 1998-07-22
0002 // Created by: Christian CAILLET
0003 // Copyright (c) 1998-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _XSDRAW_Vars_HeaderFile
0018 #define _XSDRAW_Vars_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <XSControl_Vars.hxx>
0024 class Standard_Transient;
0025 class Geom_Geometry;
0026 class Geom2d_Curve;
0027 class Geom_Curve;
0028 class Geom_Surface;
0029 class gp_Pnt;
0030 class gp_Pnt2d;
0031 class TopoDS_Shape;
0032 
0033 
0034 class XSDRAW_Vars;
0035 DEFINE_STANDARD_HANDLE(XSDRAW_Vars, XSControl_Vars)
0036 
0037 //! Vars for DRAW session (i.e. DBRep and DrawTrSurf)
0038 class XSDRAW_Vars : public XSControl_Vars
0039 {
0040 
0041 public:
0042 
0043   
0044   Standard_EXPORT XSDRAW_Vars();
0045   
0046   Standard_EXPORT virtual void Set (const Standard_CString name, const Handle(Standard_Transient)& val) Standard_OVERRIDE;
0047   
0048   Standard_EXPORT virtual Handle(Geom_Geometry) GetGeom (Standard_CString& name) const Standard_OVERRIDE;
0049   
0050   Standard_EXPORT virtual Handle(Geom2d_Curve) GetCurve2d (Standard_CString& name) const Standard_OVERRIDE;
0051   
0052   Standard_EXPORT virtual Handle(Geom_Curve) GetCurve (Standard_CString& name) const Standard_OVERRIDE;
0053   
0054   Standard_EXPORT virtual Handle(Geom_Surface) GetSurface (Standard_CString& name) const Standard_OVERRIDE;
0055   
0056   Standard_EXPORT virtual void SetPoint (const Standard_CString name, const gp_Pnt& val) Standard_OVERRIDE;
0057   
0058   Standard_EXPORT virtual void SetPoint2d (const Standard_CString name, const gp_Pnt2d& val) Standard_OVERRIDE;
0059   
0060   Standard_EXPORT virtual Standard_Boolean GetPoint (Standard_CString& name, gp_Pnt& pnt) const Standard_OVERRIDE;
0061   
0062   Standard_EXPORT virtual Standard_Boolean GetPoint2d (Standard_CString& name, gp_Pnt2d& pnt) const Standard_OVERRIDE;
0063   
0064   Standard_EXPORT virtual void SetShape (const Standard_CString name, const TopoDS_Shape& val) Standard_OVERRIDE;
0065   
0066   Standard_EXPORT virtual TopoDS_Shape GetShape (Standard_CString& name) const Standard_OVERRIDE;
0067 
0068 
0069 
0070 
0071   DEFINE_STANDARD_RTTIEXT(XSDRAW_Vars,XSControl_Vars)
0072 
0073 protected:
0074 
0075 
0076 
0077 
0078 private:
0079 
0080 
0081 
0082 
0083 };
0084 
0085 
0086 
0087 
0088 
0089 
0090 
0091 #endif // _XSDRAW_Vars_HeaderFile