File indexing completed on 2025-01-18 10:05:32
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef VrmlData_ShapeNode_HeaderFile
0017 #define VrmlData_ShapeNode_HeaderFile
0018
0019 #include <VrmlData_Appearance.hxx>
0020 #include <VrmlData_Geometry.hxx>
0021
0022
0023
0024
0025 class VrmlData_ShapeNode : public VrmlData_Node
0026 {
0027 public:
0028
0029
0030
0031
0032
0033 inline VrmlData_ShapeNode () {}
0034
0035
0036
0037
0038 inline VrmlData_ShapeNode (const VrmlData_Scene& theScene,
0039 const char * theName)
0040 : VrmlData_Node (theScene, theName) {}
0041
0042
0043
0044
0045 inline const Handle(VrmlData_Appearance)&
0046 Appearance () const { return myAppearance; }
0047
0048
0049
0050
0051 inline const Handle(VrmlData_Geometry)&
0052 Geometry () const { return myGeometry; }
0053
0054
0055
0056
0057 inline void SetAppearance (const Handle(VrmlData_Appearance)& theAppear)
0058 { myAppearance = theAppear; }
0059
0060
0061
0062
0063 inline void SetGeometry (const Handle(VrmlData_Geometry)& theGeometry)
0064 { myGeometry = theGeometry; }
0065
0066
0067
0068
0069
0070
0071 Standard_EXPORT virtual Handle(VrmlData_Node)
0072 Clone (const Handle(VrmlData_Node)& theOther)const Standard_OVERRIDE;
0073
0074
0075
0076
0077 Standard_EXPORT virtual VrmlData_ErrorStatus
0078 Read (VrmlData_InBuffer& theBuffer) Standard_OVERRIDE;
0079
0080
0081
0082
0083 Standard_EXPORT virtual VrmlData_ErrorStatus
0084 Write (const char * thePrefix) const Standard_OVERRIDE;
0085
0086
0087
0088
0089 Standard_EXPORT virtual Standard_Boolean
0090 IsDefault () const Standard_OVERRIDE;
0091
0092 protected:
0093
0094
0095
0096
0097 private:
0098
0099
0100 Handle(VrmlData_Appearance) myAppearance;
0101 Handle(VrmlData_Geometry) myGeometry;
0102
0103 public:
0104
0105 DEFINE_STANDARD_RTTI_INLINE(VrmlData_ShapeNode,VrmlData_Node)
0106 };
0107
0108
0109 DEFINE_STANDARD_HANDLE (VrmlData_ShapeNode, VrmlData_Node)
0110
0111
0112 #endif