b311480e |
1 | // Created on: 2006-05-25 |
2 | // Created by: Alexander GRIGORIEV |
973c2be1 |
3 | // Copyright (c) 2006-2014 OPEN CASCADE SAS |
b311480e |
4 | // |
973c2be1 |
5 | // This file is part of Open CASCADE Technology software library. |
b311480e |
6 | // |
d5f74e42 |
7 | // This library is free software; you can redistribute it and/or modify it under |
8 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
9 | // by the Free Software Foundation, with special exception defined in the file |
10 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
11 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
12 | // |
973c2be1 |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
7fd59977 |
15 | |
16 | #ifndef VrmlData_Texture_HeaderFile |
17 | #define VrmlData_Texture_HeaderFile |
18 | |
19 | #include <VrmlData_Node.hxx> |
20 | |
21 | /** |
22 | * Implementation of the Texture node |
23 | */ |
24 | class VrmlData_Texture : public VrmlData_Node |
25 | { |
26 | public: |
27 | // ---------- PUBLIC METHODS ---------- |
28 | |
29 | /** |
30 | * Empty constructor |
31 | */ |
32 | inline VrmlData_Texture () |
33 | : myRepeatS (Standard_False), |
34 | myRepeatT (Standard_False) |
35 | {} |
36 | |
37 | /** |
38 | * Constructor |
39 | */ |
40 | inline VrmlData_Texture (const VrmlData_Scene& theScene, |
41 | const char * theName, |
42 | const Standard_Boolean theRepeatS = Standard_False, |
43 | const Standard_Boolean theRepeatT = Standard_False) |
44 | : VrmlData_Node (theScene, theName), |
45 | myRepeatS (theRepeatS), |
46 | myRepeatT (theRepeatT) |
47 | {} |
48 | |
49 | /** |
50 | * Query the RepeatS value |
51 | */ |
52 | inline Standard_Boolean |
53 | RepeatS () const { return myRepeatS; } |
54 | |
55 | /** |
56 | * Query the RepeatT value |
57 | */ |
58 | inline Standard_Boolean |
59 | RepeatT () const { return myRepeatT; } |
60 | |
61 | /** |
62 | * Set the RepeatS flag |
63 | */ |
64 | inline void SetRepeatS (const Standard_Boolean theFlag) |
65 | { myRepeatS = theFlag; } |
66 | |
67 | /** |
68 | * Set the RepeatT flag |
69 | */ |
70 | inline void SetRepeatT (const Standard_Boolean theFlag) |
71 | { myRepeatT = theFlag; } |
72 | |
73 | protected: |
74 | // ---------- PROTECTED METHODS ---------- |
75 | |
76 | |
77 | |
78 | private: |
79 | // ---------- PRIVATE FIELDS ---------- |
80 | |
81 | Standard_Boolean myRepeatS; |
82 | Standard_Boolean myRepeatT; |
83 | |
84 | public: |
85 | // Declaration of CASCADE RTTI |
86 | DEFINE_STANDARD_RTTI (VrmlData_Texture) |
87 | }; |
88 | |
89 | // Definition of HANDLE object using Standard_DefineHandle.hxx |
90 | DEFINE_STANDARD_HANDLE (VrmlData_Texture, VrmlData_Node) |
91 | |
92 | |
93 | #endif |