0024275: Cppcheck warnings on uninitialized class members
[occt.git] / src / VrmlData / VrmlData_TextureTransform.hxx
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
20
21
22 #ifndef VrmlData_TextureTransform_HeaderFile
23 #define VrmlData_TextureTransform_HeaderFile
24
25 #include <VrmlData_Node.hxx>
26 #include <gp_XY.hxx>
27
28 ///  Implementation of the TextureTransform node
29
30 class VrmlData_TextureTransform : public VrmlData_Node
31 {
32  public:
33   // ---------- PUBLIC METHODS ----------
34
35   /**
36    * Empty constructor
37    */
38   inline VrmlData_TextureTransform () {}
39
40   /**
41    * Constructor
42    */
43   inline VrmlData_TextureTransform (const VrmlData_Scene& theScene,
44                                     const char            * theName)
45     : VrmlData_Node (theScene, theName),
46           myRotation(0.)
47   {}
48
49   /**
50    * Query the Center
51    */
52   inline const gp_XY&   Center          () const { return myCenter; }
53   
54   /**
55    * Query the Rotation
56    */
57   inline Standard_Real  Rotation        () const { return myRotation; }
58   
59   /**
60    * Query the Scale
61    */
62   inline const gp_XY&   Scale           () const { return myScale; }
63
64   /**
65    * Query the Translation
66    */
67   inline const gp_XY&   Translation     () const { return myTranslation; }
68
69   /**
70    * Set the Center
71    */
72   inline void           SetCenter       (const gp_XY& V) { myCenter = V; }
73
74   /**
75    * Set the Rotation
76    */
77   inline void           SetRotation     (const Standard_Real V)
78   { myRotation = V; }
79
80   /**
81    * Set the Scale
82    */
83   inline void           SetScale        (const gp_XY& V) { myScale = V; }
84
85   /**
86    * Set the Translation
87    */
88   inline void           SetTranslation  (const gp_XY& V) { myTranslation = V; }
89
90  protected:
91   // ---------- PROTECTED METHODS ----------
92
93
94
95  private:
96   // ---------- PRIVATE FIELDS ----------
97
98   gp_XY         myCenter;
99   Standard_Real myRotation;
100   gp_XY         myScale;
101   gp_XY         myTranslation;
102
103  public:
104 // Declaration of CASCADE RTTI
105 DEFINE_STANDARD_RTTI (VrmlData_TextureTransform)
106 };
107
108 // Definition of HANDLE object using Standard_DefineHandle.hxx
109 DEFINE_STANDARD_HANDLE (VrmlData_TextureTransform, VrmlData_Node)
110
111
112 #endif