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_Faceted_HeaderFile
0017 #define VrmlData_Faceted_HeaderFile
0018
0019 #include <VrmlData_Geometry.hxx>
0020
0021
0022
0023
0024
0025 class VrmlData_Faceted : public VrmlData_Geometry
0026 {
0027 public:
0028
0029
0030
0031
0032
0033 inline VrmlData_Faceted ()
0034 : myCreaseAngle (0.),
0035 myIsCCW (Standard_True),
0036 myIsSolid (Standard_True),
0037 myIsConvex (Standard_True)
0038 {}
0039
0040
0041
0042
0043 inline VrmlData_Faceted (const VrmlData_Scene& theScene,
0044 const char * theName,
0045 const Standard_Boolean isCCW,
0046 const Standard_Boolean isSolid,
0047 const Standard_Boolean isConvex,
0048 const Standard_Real theCreaseAngle)
0049 : VrmlData_Geometry (theScene, theName),
0050 myCreaseAngle (theCreaseAngle),
0051 myIsCCW (isCCW),
0052 myIsSolid (isSolid),
0053 myIsConvex (isConvex)
0054 {}
0055
0056
0057
0058
0059 inline Standard_Boolean IsCCW () const { return myIsCCW; }
0060
0061
0062
0063
0064 inline Standard_Boolean IsSolid () const { return myIsSolid; }
0065
0066
0067
0068
0069 inline Standard_Boolean IsConvex () const { return myIsConvex; }
0070
0071
0072
0073
0074 inline Standard_Real CreaseAngle () const { return myCreaseAngle; }
0075
0076
0077
0078
0079 inline void SetCCW (const Standard_Boolean theValue)
0080 { myIsCCW = theValue; }
0081
0082
0083
0084
0085 inline void SetSolid (const Standard_Boolean theValue)
0086 { myIsSolid = theValue; }
0087
0088
0089
0090
0091 inline void SetConvex (const Standard_Boolean theValue)
0092 { myIsConvex = theValue; }
0093
0094
0095
0096
0097 inline void SetCreaseAngle (const Standard_Real theValue)
0098 { myCreaseAngle = theValue; }
0099
0100
0101 protected:
0102 Standard_EXPORT VrmlData_ErrorStatus
0103 readData (VrmlData_InBuffer& theBuffer);
0104
0105 private:
0106
0107
0108 Standard_Real myCreaseAngle;
0109 Standard_Boolean myIsCCW : 1;
0110 Standard_Boolean myIsSolid : 1;
0111 Standard_Boolean myIsConvex : 1;
0112
0113 public:
0114
0115 DEFINE_STANDARD_RTTI_INLINE(VrmlData_Faceted,VrmlData_Geometry)
0116 };
0117
0118
0119 DEFINE_STANDARD_HANDLE (VrmlData_Faceted, VrmlData_Geometry)
0120
0121
0122 #endif