File indexing completed on 2025-01-18 10:04:43
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _RWObj_CafReader_HeaderFile
0015 #define _RWObj_CafReader_HeaderFile
0016
0017 #include <RWMesh_CafReader.hxx>
0018 #include <RWObj_TriangulationReader.hxx>
0019
0020
0021 class RWObj_CafReader : public RWMesh_CafReader, protected RWObj_IShapeReceiver
0022 {
0023 DEFINE_STANDARD_RTTIEXT(RWObj_CafReader, RWMesh_CafReader)
0024 public:
0025
0026
0027 Standard_EXPORT RWObj_CafReader();
0028
0029
0030 Standard_Boolean IsSinglePrecision() const { return myIsSinglePrecision; }
0031
0032
0033 void SetSinglePrecision (Standard_Boolean theIsSinglePrecision) { myIsSinglePrecision = theIsSinglePrecision; }
0034
0035 protected:
0036
0037
0038 Standard_EXPORT virtual Standard_Boolean performMesh (std::istream& theStream,
0039 const TCollection_AsciiString& theFile,
0040 const Message_ProgressRange& theProgress,
0041 const Standard_Boolean theToProbe) Standard_OVERRIDE;
0042
0043 protected:
0044
0045
0046
0047 Standard_EXPORT virtual Handle(RWObj_TriangulationReader) createReaderContext();
0048
0049
0050
0051
0052
0053 Standard_EXPORT virtual void BindNamedShape (const TopoDS_Shape& theShape,
0054 const TCollection_AsciiString& theName,
0055 const RWObj_Material* theMaterial,
0056 const Standard_Boolean theIsRootShape) Standard_OVERRIDE;
0057
0058 protected:
0059
0060 NCollection_DataMap<TCollection_AsciiString, Handle(XCAFDoc_VisMaterial)> myObjMaterialMap;
0061 Standard_Boolean myIsSinglePrecision;
0062 };
0063
0064 #endif