File indexing completed on 2026-09-19 09:28:15
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 class IGESCAFControl_Reader : public IGESControl_Reader
0047 {
0048 public:
0049 DEFINE_STANDARD_ALLOC
0050
0051
0052
0053 IGESCAFControl_Reader()
0054 : myColorMode(true),
0055 myNameMode(true),
0056 myLayerMode(true)
0057 {
0058 }
0059
0060
0061
0062 IGESCAFControl_Reader(const occ::handle<XSControl_WorkSession>& theWS,
0063 const bool FromScratch = true)
0064 : myColorMode(true),
0065 myNameMode(true),
0066 myLayerMode(true)
0067 {
0068 SetWS(theWS, FromScratch);
0069 }
0070
0071
0072
0073 Standard_EXPORT bool Transfer(const occ::handle<TDocStd_Document>& theDoc,
0074 const Message_ProgressRange& theProgress = Message_ProgressRange());
0075
0076 bool Perform(const TCollection_AsciiString& theFileName,
0077 const occ::handle<TDocStd_Document>& theDoc,
0078 const Message_ProgressRange& theProgress = Message_ProgressRange())
0079 {
0080 return Perform(theFileName.ToCString(), theDoc, theProgress);
0081 }
0082
0083
0084
0085 Standard_EXPORT bool Perform(const char* const theFileName,
0086 const occ::handle<TDocStd_Document>& theDoc,
0087 const Message_ProgressRange& theProgress = Message_ProgressRange());
0088
0089
0090 void SetColorMode(const bool theMode) { myColorMode = theMode; }
0091
0092 bool GetColorMode() const { return myColorMode; }
0093
0094
0095 void SetNameMode(const bool theMode) { myNameMode = theMode; }
0096
0097 bool GetNameMode() const { return myNameMode; }
0098
0099
0100 void SetLayerMode(const bool theMode) { myLayerMode = theMode; }
0101
0102 bool GetLayerMode() const { return myLayerMode; }
0103
0104 private:
0105 bool myColorMode;
0106 bool myNameMode;
0107 bool myLayerMode;
0108 };
0109
0110 #endif