summaryrefslogtreecommitdiff
path: root/inc/MeshVS_Drawer.hxx
blob: 2b42badbe6edf9c0ae584c480f31b2024dd3cfba (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
124
125
126
127
128
129
130
131
// 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 _MeshVS_Drawer_HeaderFile
#define _MeshVS_Drawer_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_MeshVS_Drawer_HeaderFile
#include <Handle_MeshVS_Drawer.hxx>
#endif

#ifndef _TColStd_DataMapOfIntegerInteger_HeaderFile
#include <TColStd_DataMapOfIntegerInteger.hxx>
#endif
#ifndef _MeshVS_DataMapOfIntegerBoolean_HeaderFile
#include <MeshVS_DataMapOfIntegerBoolean.hxx>
#endif
#ifndef _TColStd_DataMapOfIntegerReal_HeaderFile
#include <TColStd_DataMapOfIntegerReal.hxx>
#endif
#ifndef _MeshVS_DataMapOfIntegerColor_HeaderFile
#include <MeshVS_DataMapOfIntegerColor.hxx>
#endif
#ifndef _MeshVS_DataMapOfIntegerMaterial_HeaderFile
#include <MeshVS_DataMapOfIntegerMaterial.hxx>
#endif
#ifndef _MeshVS_DataMapOfIntegerAsciiString_HeaderFile
#include <MeshVS_DataMapOfIntegerAsciiString.hxx>
#endif
#ifndef _MMgt_TShared_HeaderFile
#include <MMgt_TShared.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
class Quantity_Color;
class Graphic3d_MaterialAspect;
class TCollection_AsciiString;


//! This class provided the common interface to share between classes <br>
//!  big set of constants affecting to object appearance. By default, this class <br>
//! can store integers, doubles, OCC colors, OCC materials. Each of OCC enum members <br>
//! can be stored as integers. <br>
class MeshVS_Drawer : public MMgt_TShared {

public:

  //! This method copies other drawer contents to this. <br>
  Standard_EXPORT   virtual  void Assign(const Handle(MeshVS_Drawer)& aDrawer) ;
  
  Standard_EXPORT     void SetInteger(const Standard_Integer Key,const Standard_Integer Value) ;
  
  Standard_EXPORT     void SetDouble(const Standard_Integer Key,const Standard_Real Value) ;
  
  Standard_EXPORT     void SetBoolean(const Standard_Integer Key,const Standard_Boolean Value) ;
  
  Standard_EXPORT     void SetColor(const Standard_Integer Key,const Quantity_Color& Value) ;
  
  Standard_EXPORT     void SetMaterial(const Standard_Integer Key,const Graphic3d_MaterialAspect& Value) ;
  
  Standard_EXPORT     void SetAsciiString(const Standard_Integer Key,const TCollection_AsciiString& Value) ;
  
  Standard_EXPORT     Standard_Boolean GetInteger(const Standard_Integer Key,Standard_Integer& Value) const;
  
  Standard_EXPORT     Standard_Boolean GetDouble(const Standard_Integer Key,Standard_Real& Value) const;
  
  Standard_EXPORT     Standard_Boolean GetBoolean(const Standard_Integer Key,Standard_Boolean& Value) const;
  
  Standard_EXPORT     Standard_Boolean GetColor(const Standard_Integer Key,Quantity_Color& Value) const;
  
  Standard_EXPORT     Standard_Boolean GetMaterial(const Standard_Integer Key,Graphic3d_MaterialAspect& Value) const;
  
  Standard_EXPORT     Standard_Boolean GetAsciiString(const Standard_Integer Key,TCollection_AsciiString& Value) const;
  
  Standard_EXPORT     Standard_Boolean RemoveInteger(const Standard_Integer Key) ;
  
  Standard_EXPORT     Standard_Boolean RemoveDouble(const Standard_Integer Key) ;
  
  Standard_EXPORT     Standard_Boolean RemoveBoolean(const Standard_Integer Key) ;
  
  Standard_EXPORT     Standard_Boolean RemoveColor(const Standard_Integer Key) ;
  
  Standard_EXPORT     Standard_Boolean RemoveMaterial(const Standard_Integer Key) ;
  
  Standard_EXPORT     Standard_Boolean RemoveAsciiString(const Standard_Integer Key) ;




  DEFINE_STANDARD_RTTI(MeshVS_Drawer)

protected:




private: 


TColStd_DataMapOfIntegerInteger myIntegers;
MeshVS_DataMapOfIntegerBoolean myBooleans;
TColStd_DataMapOfIntegerReal myDoubles;
MeshVS_DataMapOfIntegerColor myColors;
MeshVS_DataMapOfIntegerMaterial myMaterials;
MeshVS_DataMapOfIntegerAsciiString myAsciiString;


};





// other Inline functions and methods (like "C++: function call" methods)


#endif