Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-13 09:18:27

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 //! Vars for DRAW session (i.e. DBRep and DrawTrSurf)
0034 class XSDRAW_Vars : public XSControl_Vars
0035 {
0036 
0037 public:
0038   Standard_EXPORT XSDRAW_Vars();
0039 
0040   Standard_EXPORT void Set(const char* const                      name,
0041                            const occ::handle<Standard_Transient>& val) override;
0042 
0043   Standard_EXPORT occ::handle<Geom_Geometry> GetGeom(const char*& name) const override;
0044 
0045   Standard_EXPORT occ::handle<Geom2d_Curve> GetCurve2d(const char*& name) const override;
0046 
0047   Standard_EXPORT occ::handle<Geom_Curve> GetCurve(const char*& name) const override;
0048 
0049   Standard_EXPORT occ::handle<Geom_Surface> GetSurface(const char*& name) const override;
0050 
0051   Standard_EXPORT void SetPoint(const char* const name, const gp_Pnt& val) override;
0052 
0053   Standard_EXPORT void SetPoint2d(const char* const name, const gp_Pnt2d& val) override;
0054 
0055   Standard_EXPORT bool GetPoint(const char*& name, gp_Pnt& pnt) const override;
0056 
0057   Standard_EXPORT bool GetPoint2d(const char*& name, gp_Pnt2d& pnt) const override;
0058 
0059   Standard_EXPORT void SetShape(const char* const name, const TopoDS_Shape& val) override;
0060 
0061   Standard_EXPORT TopoDS_Shape GetShape(const char*& name) const override;
0062 
0063   DEFINE_STANDARD_RTTIEXT(XSDRAW_Vars, XSControl_Vars)
0064 };
0065 
0066 #endif // _XSDRAW_Vars_HeaderFile