Warnings on vc14 were eliminated
[occt.git] / src / XSDRAW / XSDRAW_Vars.hxx
CommitLineData
42cf5bc1 1// Created on: 1998-07-22
2// Created by: Christian CAILLET
3// Copyright (c) 1998-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _XSDRAW_Vars_HeaderFile
18#define _XSDRAW_Vars_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <XSControl_Vars.hxx>
24#include <Standard_CString.hxx>
25#include <Standard_Boolean.hxx>
26class Standard_Transient;
27class Geom_Geometry;
28class Geom2d_Curve;
29class Geom_Curve;
30class Geom_Surface;
31class gp_Pnt;
32class gp_Pnt2d;
33class TopoDS_Shape;
34
35
36class XSDRAW_Vars;
37DEFINE_STANDARD_HANDLE(XSDRAW_Vars, XSControl_Vars)
38
39//! Vars for DRAW session (i.e. DBRep and DrawTrSurf)
40class XSDRAW_Vars : public XSControl_Vars
41{
42
43public:
44
45
46 Standard_EXPORT XSDRAW_Vars();
47
48 Standard_EXPORT virtual void Set (const Standard_CString name, const Handle(Standard_Transient)& val) Standard_OVERRIDE;
49
50 Standard_EXPORT virtual Handle(Geom_Geometry) GetGeom (Standard_CString& name) const Standard_OVERRIDE;
51
52 Standard_EXPORT virtual Handle(Geom2d_Curve) GetCurve2d (Standard_CString& name) const Standard_OVERRIDE;
53
54 Standard_EXPORT virtual Handle(Geom_Curve) GetCurve (Standard_CString& name) const Standard_OVERRIDE;
55
56 Standard_EXPORT virtual Handle(Geom_Surface) GetSurface (Standard_CString& name) const Standard_OVERRIDE;
57
58 Standard_EXPORT virtual void SetPoint (const Standard_CString name, const gp_Pnt& val) Standard_OVERRIDE;
59
60 Standard_EXPORT virtual void SetPoint2d (const Standard_CString name, const gp_Pnt2d& val) Standard_OVERRIDE;
61
62 Standard_EXPORT virtual Standard_Boolean GetPoint (Standard_CString& name, gp_Pnt& pnt) const Standard_OVERRIDE;
63
64 Standard_EXPORT virtual Standard_Boolean GetPoint2d (Standard_CString& name, gp_Pnt2d& pnt) const Standard_OVERRIDE;
65
66 Standard_EXPORT virtual void SetShape (const Standard_CString name, const TopoDS_Shape& val) Standard_OVERRIDE;
67
68 Standard_EXPORT virtual TopoDS_Shape GetShape (Standard_CString& name) const Standard_OVERRIDE;
69
70
71
72
92efcf78 73 DEFINE_STANDARD_RTTIEXT(XSDRAW_Vars,XSControl_Vars)
42cf5bc1 74
75protected:
76
77
78
79
80private:
81
82
83
84
85};
86
87
88
89
90
91
92
93#endif // _XSDRAW_Vars_HeaderFile