Warning, file /include/opencascade/RWObj_CafReader.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
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 Standard_EXPORT RWObj_CafReader();
0027
0028
0029 bool IsSinglePrecision() const { return myIsSinglePrecision; }
0030
0031
0032 void SetSinglePrecision(bool theIsSinglePrecision) { myIsSinglePrecision = theIsSinglePrecision; }
0033
0034 protected:
0035
0036 Standard_EXPORT bool performMesh(std::istream& theStream,
0037 const TCollection_AsciiString& theFile,
0038 const Message_ProgressRange& theProgress,
0039 const bool theToProbe) override;
0040
0041 protected:
0042
0043
0044
0045 Standard_EXPORT virtual occ::handle<RWObj_TriangulationReader> createReaderContext();
0046
0047
0048
0049
0050
0051 Standard_EXPORT void BindNamedShape(const TopoDS_Shape& theShape,
0052 const TCollection_AsciiString& theName,
0053 const RWObj_Material* theMaterial,
0054 const bool theIsRootShape) override;
0055
0056 protected:
0057 NCollection_DataMap<TCollection_AsciiString, occ::handle<XCAFDoc_VisMaterial>> myObjMaterialMap;
0058
0059 bool myIsSinglePrecision;
0060
0061 };
0062
0063 #endif