0022922: Clean up warnings on uninitialized / unused variables
[occt.git] / src / VrmlData / VrmlData_Normal.hxx
1 // File:      VrmlData_Normal.hxx
2 // Created:   26.05.06 18:34:13
3 // Author:    Alexander GRIGORIEV
4 // Copyright: Open Cascade 2006
5
6
7 #ifndef VrmlData_Normal_HeaderFile
8 #define VrmlData_Normal_HeaderFile
9
10 #include <VrmlData_ArrayVec3d.hxx>
11
12 /**
13  *  Implementation of the node Normal
14  */
15 class VrmlData_Normal : public VrmlData_ArrayVec3d
16 {
17  public:
18   // ---------- PUBLIC METHODS ----------
19
20   /**
21    * Empty constructor
22    */
23   inline VrmlData_Normal () {}
24
25   /**
26    * Constructor
27    */
28   inline VrmlData_Normal (const VrmlData_Scene& theScene,
29                           const char            * theName,
30                           const size_t          nVec     = 0,
31                           const gp_XYZ          * arrVec = 0L)
32     : VrmlData_ArrayVec3d (theScene, theName, nVec, arrVec)
33   {}
34
35   /**
36    * Query one normal
37    * @param i
38    *   index in the array of normals [0 .. N-1]
39    * @return
40    *   the normal value for the index. If index irrelevant, returns (0., 0., 0.)
41    */
42   inline const gp_XYZ& Normal   (const Standard_Integer i) const
43   { return Value(i); }
44
45   /**
46    * Create a copy of this node.
47    * If the parameter is null, a new copied node is created. Otherwise new node
48    * is not created, but rather the given one is modified.
49    */
50   Standard_EXPORT virtual Handle(VrmlData_Node)
51                         Clone   (const Handle(VrmlData_Node)& theOther)const;
52
53   /**
54    * Read the Node from input stream.
55    */
56   Standard_EXPORT virtual VrmlData_ErrorStatus
57                         Read    (VrmlData_InBuffer& theBuffer);
58
59   /**
60    * Write the Node to the Scene output.
61    */
62   Standard_EXPORT virtual VrmlData_ErrorStatus
63                         Write   (const char * thePrefix) const;
64
65
66  private:
67   // ---------- PRIVATE FIELDS ----------
68
69
70  public:
71 // Declaration of CASCADE RTTI
72 DEFINE_STANDARD_RTTI (VrmlData_Normal)
73 };
74
75 // Definition of HANDLE object using Standard_DefineHandle.hxx
76 DEFINE_STANDARD_HANDLE (VrmlData_Normal, VrmlData_ArrayVec3d)
77
78
79 #endif