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_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,
0040 const char * theName)
0041 : VrmlData_Node (theScene, theName) {}
0042
0043
0044
0045
0046 inline const Handle(VrmlData_Material)&
0047 Material () const { return myMaterial; }
0048
0049
0050
0051
0052 inline const Handle(VrmlData_Texture)&
0053 Texture () const { return myTexture; }
0054
0055
0056
0057
0058 inline const Handle(VrmlData_TextureTransform)&
0059 TextureTransform () const { return myTTransform; }
0060
0061
0062
0063
0064 inline void SetMaterial (const Handle(VrmlData_Material)& theMat)
0065 { myMaterial = theMat; }
0066
0067
0068
0069
0070 inline void SetTexture (const Handle(VrmlData_Texture)& theTexture)
0071 { myTexture = theTexture; }
0072
0073
0074
0075
0076 inline void SetTextureTransform
0077 (const Handle(VrmlData_TextureTransform)& theTT)
0078 { myTTransform = theTT; }
0079
0080
0081
0082
0083
0084
0085 Standard_EXPORT virtual Handle(VrmlData_Node)
0086 Clone (const Handle(VrmlData_Node)&)const Standard_OVERRIDE;
0087
0088
0089
0090 Standard_EXPORT virtual VrmlData_ErrorStatus
0091 Read (VrmlData_InBuffer& theBuffer) Standard_OVERRIDE;
0092
0093
0094
0095
0096 Standard_EXPORT virtual VrmlData_ErrorStatus
0097 Write (const char * thePrefix) const Standard_OVERRIDE;
0098
0099
0100
0101
0102 Standard_EXPORT virtual Standard_Boolean
0103 IsDefault () const Standard_OVERRIDE;
0104
0105 protected:
0106
0107
0108
0109
0110 private:
0111
0112
0113 Handle(VrmlData_Material) myMaterial;
0114 Handle(VrmlData_Texture) myTexture;
0115 Handle(VrmlData_TextureTransform) myTTransform;
0116
0117 public:
0118
0119 DEFINE_STANDARD_RTTI_INLINE(VrmlData_Appearance,VrmlData_Node)
0120 };
0121
0122
0123 DEFINE_STANDARD_HANDLE (VrmlData_Appearance, VrmlData_Node)
0124
0125 #endif