File indexing completed on 2025-01-18 10:03:57
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _IGESCAFControl_Reader_HeaderFile
0017 #define _IGESCAFControl_Reader_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 #include <Standard_Handle.hxx>
0022
0023 #include <IGESControl_Reader.hxx>
0024 #include <TCollection_AsciiString.hxx>
0025 class XSControl_WorkSession;
0026 class TDocStd_Document;
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047 class IGESCAFControl_Reader : public IGESControl_Reader
0048 {
0049 public:
0050
0051 DEFINE_STANDARD_ALLOC
0052
0053
0054
0055 IGESCAFControl_Reader()
0056 : myColorMode( Standard_True ),
0057 myNameMode ( Standard_True ),
0058 myLayerMode( Standard_True )
0059 {}
0060
0061
0062
0063 IGESCAFControl_Reader(const Handle(XSControl_WorkSession)& theWS, const Standard_Boolean FromScratch = Standard_True)
0064 : myColorMode( Standard_True ),
0065 myNameMode ( Standard_True ),
0066 myLayerMode( Standard_True )
0067 { SetWS (theWS,FromScratch); }
0068
0069
0070
0071 Standard_EXPORT Standard_Boolean Transfer (const Handle(TDocStd_Document)& theDoc,
0072 const Message_ProgressRange& theProgress = Message_ProgressRange());
0073
0074 Standard_Boolean Perform (const TCollection_AsciiString& theFileName,
0075 const Handle(TDocStd_Document)& theDoc,
0076 const Message_ProgressRange& theProgress = Message_ProgressRange())
0077 { return Perform (theFileName.ToCString(), theDoc, theProgress); }
0078
0079
0080
0081 Standard_EXPORT Standard_Boolean Perform (const Standard_CString theFileName,
0082 const Handle(TDocStd_Document)& theDoc,
0083 const Message_ProgressRange& theProgress = Message_ProgressRange());
0084
0085
0086 void SetColorMode (const Standard_Boolean theMode)
0087 { myColorMode = theMode; }
0088
0089 Standard_Boolean GetColorMode() const
0090 { return myColorMode; }
0091
0092
0093 void SetNameMode (const Standard_Boolean theMode)
0094 { myNameMode = theMode; }
0095
0096 Standard_Boolean GetNameMode() const
0097 { return myNameMode; }
0098
0099
0100 void SetLayerMode (const Standard_Boolean theMode)
0101 { myLayerMode = theMode; }
0102
0103 Standard_Boolean GetLayerMode() const
0104 { return myLayerMode; }
0105
0106 private:
0107
0108 Standard_Boolean myColorMode;
0109 Standard_Boolean myNameMode;
0110 Standard_Boolean myLayerMode;
0111 };
0112
0113 #endif