7fd59977 |
1 | // File: VrmlData_Texture.hxx |
2 | // Created: 25.05.06 15:59:43 |
3 | // Author: Alexander GRIGORIEV |
4 | // Copyright: Open Cascade 2006 |
5 | |
6 | |
7 | #ifndef VrmlData_Texture_HeaderFile |
8 | #define VrmlData_Texture_HeaderFile |
9 | |
10 | #include <VrmlData_Node.hxx> |
11 | |
12 | /** |
13 | * Implementation of the Texture node |
14 | */ |
15 | class VrmlData_Texture : public VrmlData_Node |
16 | { |
17 | public: |
18 | // ---------- PUBLIC METHODS ---------- |
19 | |
20 | /** |
21 | * Empty constructor |
22 | */ |
23 | inline VrmlData_Texture () |
24 | : myRepeatS (Standard_False), |
25 | myRepeatT (Standard_False) |
26 | {} |
27 | |
28 | /** |
29 | * Constructor |
30 | */ |
31 | inline VrmlData_Texture (const VrmlData_Scene& theScene, |
32 | const char * theName, |
33 | const Standard_Boolean theRepeatS = Standard_False, |
34 | const Standard_Boolean theRepeatT = Standard_False) |
35 | : VrmlData_Node (theScene, theName), |
36 | myRepeatS (theRepeatS), |
37 | myRepeatT (theRepeatT) |
38 | {} |
39 | |
40 | /** |
41 | * Query the RepeatS value |
42 | */ |
43 | inline Standard_Boolean |
44 | RepeatS () const { return myRepeatS; } |
45 | |
46 | /** |
47 | * Query the RepeatT value |
48 | */ |
49 | inline Standard_Boolean |
50 | RepeatT () const { return myRepeatT; } |
51 | |
52 | /** |
53 | * Set the RepeatS flag |
54 | */ |
55 | inline void SetRepeatS (const Standard_Boolean theFlag) |
56 | { myRepeatS = theFlag; } |
57 | |
58 | /** |
59 | * Set the RepeatT flag |
60 | */ |
61 | inline void SetRepeatT (const Standard_Boolean theFlag) |
62 | { myRepeatT = theFlag; } |
63 | |
64 | protected: |
65 | // ---------- PROTECTED METHODS ---------- |
66 | |
67 | |
68 | |
69 | private: |
70 | // ---------- PRIVATE FIELDS ---------- |
71 | |
72 | Standard_Boolean myRepeatS; |
73 | Standard_Boolean myRepeatT; |
74 | |
75 | public: |
76 | // Declaration of CASCADE RTTI |
77 | DEFINE_STANDARD_RTTI (VrmlData_Texture) |
78 | }; |
79 | |
80 | // Definition of HANDLE object using Standard_DefineHandle.hxx |
81 | DEFINE_STANDARD_HANDLE (VrmlData_Texture, VrmlData_Node) |
82 | |
83 | |
84 | #endif |