b311480e |
1 | // Created on: 2006-05-25 |
2 | // Created by: Alexander GRIGORIEV |
3 | // Copyright (c) 2006-2012 OPEN CASCADE SAS |
4 | // |
5 | // The content of this file is subject to the Open CASCADE Technology Public |
6 | // License Version 6.5 (the "License"). You may not use the content of this file |
7 | // except in compliance with the License. Please obtain a copy of the License |
8 | // at http://www.opencascade.org and read it completely before using this file. |
9 | // |
10 | // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
11 | // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
12 | // |
13 | // The Original Code and all software distributed under the License is |
14 | // distributed on an "AS IS" basis, without warranty of any kind, and the |
15 | // Initial Developer hereby disclaims all such warranties, including without |
16 | // limitation, any warranties of merchantability, fitness for a particular |
17 | // purpose or non-infringement. Please see the License for the specific terms |
18 | // and conditions governing the rights and limitations under the License. |
19 | |
7fd59977 |
20 | |
21 | |
22 | #ifndef VrmlData_Texture_HeaderFile |
23 | #define VrmlData_Texture_HeaderFile |
24 | |
25 | #include <VrmlData_Node.hxx> |
26 | |
27 | /** |
28 | * Implementation of the Texture node |
29 | */ |
30 | class VrmlData_Texture : public VrmlData_Node |
31 | { |
32 | public: |
33 | // ---------- PUBLIC METHODS ---------- |
34 | |
35 | /** |
36 | * Empty constructor |
37 | */ |
38 | inline VrmlData_Texture () |
39 | : myRepeatS (Standard_False), |
40 | myRepeatT (Standard_False) |
41 | {} |
42 | |
43 | /** |
44 | * Constructor |
45 | */ |
46 | inline VrmlData_Texture (const VrmlData_Scene& theScene, |
47 | const char * theName, |
48 | const Standard_Boolean theRepeatS = Standard_False, |
49 | const Standard_Boolean theRepeatT = Standard_False) |
50 | : VrmlData_Node (theScene, theName), |
51 | myRepeatS (theRepeatS), |
52 | myRepeatT (theRepeatT) |
53 | {} |
54 | |
55 | /** |
56 | * Query the RepeatS value |
57 | */ |
58 | inline Standard_Boolean |
59 | RepeatS () const { return myRepeatS; } |
60 | |
61 | /** |
62 | * Query the RepeatT value |
63 | */ |
64 | inline Standard_Boolean |
65 | RepeatT () const { return myRepeatT; } |
66 | |
67 | /** |
68 | * Set the RepeatS flag |
69 | */ |
70 | inline void SetRepeatS (const Standard_Boolean theFlag) |
71 | { myRepeatS = theFlag; } |
72 | |
73 | /** |
74 | * Set the RepeatT flag |
75 | */ |
76 | inline void SetRepeatT (const Standard_Boolean theFlag) |
77 | { myRepeatT = theFlag; } |
78 | |
79 | protected: |
80 | // ---------- PROTECTED METHODS ---------- |
81 | |
82 | |
83 | |
84 | private: |
85 | // ---------- PRIVATE FIELDS ---------- |
86 | |
87 | Standard_Boolean myRepeatS; |
88 | Standard_Boolean myRepeatT; |
89 | |
90 | public: |
91 | // Declaration of CASCADE RTTI |
92 | DEFINE_STANDARD_RTTI (VrmlData_Texture) |
93 | }; |
94 | |
95 | // Definition of HANDLE object using Standard_DefineHandle.hxx |
96 | DEFINE_STANDARD_HANDLE (VrmlData_Texture, VrmlData_Node) |
97 | |
98 | |
99 | #endif |