File indexing completed on 2026-06-22 08:31:05
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef VrmlData_Appearance_HeaderFile
0017 #define VrmlData_Appearance_HeaderFile
0018
0019 #include <VrmlData_Material.hxx>
0020 #include <VrmlData_Texture.hxx>
0021 #include <VrmlData_TextureTransform.hxx>
0022
0023
0024
0025
0026 class VrmlData_Appearance : public VrmlData_Node
0027 {
0028 public:
0029
0030
0031
0032
0033
0034 inline VrmlData_Appearance() {}
0035
0036
0037
0038
0039 inline VrmlData_Appearance(const VrmlData_Scene& theScene, const char* theName)
0040 : VrmlData_Node(theScene, theName)
0041 {
0042 }
0043
0044
0045
0046
0047 inline const Handle(VrmlData_Material)& Material() const { return myMaterial; }
0048
0049
0050
0051
0052 inline const Handle(VrmlData_Texture)& Texture() const { return myTexture; }
0053
0054
0055
0056
0057 inline const Handle(VrmlData_TextureTransform)& TextureTransform() const { return myTTransform; }
0058
0059
0060
0061
0062 inline void SetMaterial(const Handle(VrmlData_Material)& theMat) { myMaterial = theMat; }
0063
0064
0065
0066
0067 inline void SetTexture(const Handle(VrmlData_Texture)& theTexture) { myTexture = theTexture; }
0068
0069
0070
0071
0072 inline void SetTextureTransform(const Handle(VrmlData_TextureTransform)& theTT)
0073 {
0074 myTTransform = theTT;
0075 }
0076
0077
0078
0079
0080
0081
0082 Standard_EXPORT virtual Handle(VrmlData_Node) Clone(const Handle(VrmlData_Node)&) const
0083 Standard_OVERRIDE;
0084
0085
0086
0087 Standard_EXPORT virtual VrmlData_ErrorStatus Read(VrmlData_InBuffer& theBuffer) Standard_OVERRIDE;
0088
0089
0090
0091
0092 Standard_EXPORT virtual VrmlData_ErrorStatus Write(const char* thePrefix) const Standard_OVERRIDE;
0093
0094
0095
0096
0097 Standard_EXPORT virtual Standard_Boolean IsDefault() const Standard_OVERRIDE;
0098
0099 protected:
0100
0101
0102 private:
0103
0104
0105 Handle(VrmlData_Material) myMaterial;
0106 Handle(VrmlData_Texture) myTexture;
0107 Handle(VrmlData_TextureTransform) myTTransform;
0108
0109 public:
0110
0111 DEFINE_STANDARD_RTTI_INLINE(VrmlData_Appearance, VrmlData_Node)
0112 };
0113
0114
0115 DEFINE_STANDARD_HANDLE(VrmlData_Appearance, VrmlData_Node)
0116
0117 #endif