File indexing completed on 2026-09-17 09:22:36
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() = default;
0034
0035
0036
0037
0038 inline VrmlData_ShapeNode(const VrmlData_Scene& theScene, const char* theName)
0039 : VrmlData_Node(theScene, theName)
0040 {
0041 }
0042
0043
0044
0045
0046 inline const occ::handle<VrmlData_Appearance>& Appearance() const { return myAppearance; }
0047
0048
0049
0050
0051 inline const occ::handle<VrmlData_Geometry>& Geometry() const { return myGeometry; }
0052
0053
0054
0055
0056 inline void SetAppearance(const occ::handle<VrmlData_Appearance>& theAppear)
0057 {
0058 myAppearance = theAppear;
0059 }
0060
0061
0062
0063
0064 inline void SetGeometry(const occ::handle<VrmlData_Geometry>& theGeometry)
0065 {
0066 myGeometry = theGeometry;
0067 }
0068
0069
0070
0071
0072
0073
0074 Standard_EXPORT occ::handle<VrmlData_Node> Clone(
0075 const occ::handle<VrmlData_Node>& theOther) const override;
0076
0077
0078
0079
0080 Standard_EXPORT VrmlData_ErrorStatus Read(VrmlData_InBuffer& theBuffer) override;
0081
0082
0083
0084
0085 Standard_EXPORT VrmlData_ErrorStatus Write(const char* thePrefix) const override;
0086
0087
0088
0089
0090 Standard_EXPORT bool IsDefault() const override;
0091
0092 private:
0093
0094
0095 occ::handle<VrmlData_Appearance> myAppearance;
0096 occ::handle<VrmlData_Geometry> myGeometry;
0097
0098 public:
0099
0100 DEFINE_STANDARD_RTTI_INLINE(VrmlData_ShapeNode, VrmlData_Node)
0101 };
0102
0103
0104 #endif