IGESCAFControl
OCCT package IGESCAFControl: IGESCAFControl, IGESCAFControl_Reader, IGESCAFControl_Writer.
IGESCAFControl
Provides high-level API to translate IGES file to and from DECAF document.
Constructors(1)
Static methods(2)
- DecodeColor(col: number): Quantity_Color
Provides a tool for writing IGES file Converts IGES color index to CASCADE color.
Parameters (1)col
- EncodeColor(col: Quantity_Color): number
Tries to Convert CASCADE color to IGES color index If no corresponding color defined in IGES, returns 0.
Parameters (1)col
IGESCAFControl_Reader
Provides a tool to read IGES file and put it into DECAF document. Besides transfer of shapes (including assemblies) provided by IGESControl, supports also colors and part names IGESCAFControl_Reader reader; Methods for translation of an IGES file: reader.ReadFile("filename"); reader.Transfer(Document); or reader.Perform("filename",doc); Methods for managing reading attributes.
Colors reader.SetColorMode(colormode); bool colormode = reader.GetColorMode(); Layers reader.SetLayerMode(layermode); bool layermode = reader.GetLayerMode(); Names reader.SetNameMode(namemode); bool namemode = reader.GetNameMode();.
Constructors(2)
Creates a reader with an empty IGES model and sets ColorMode, LayerMode and NameMode to true.
- constructor(theWS: XSControl_WorkSession, FromScratch?: boolean): IGESCAFControl_Reader
Creates a reader tool and attaches it to an already existing Session Clears the session if it was not yet set for IGES.
Parameters (2)theWSFromScratch
Instance methods(9)
- Transfer(theDoc: TDocStd_Document, theProgress?: Message_ProgressRange): boolean
Translates currently loaded IGES file into the document Returns True if succeeded, and False in case of fail.
Parameters (2)theDoctheProgress
- Perform(theFileName: TCollection_AsciiString, theDoc: TDocStd_Document, theProgress: Message_ProgressRange): booleanParameters (3)
theFileNametheDoctheProgress
- Perform(theFileName: string, theDoc: TDocStd_Document, theProgress: Message_ProgressRange): boolean
Translate IGES file given by filename into the document Return True if succeeded, and False in case of fail.
Parameters (3)theFileNametheDoctheProgress
- SetColorMode(theMode: boolean): void
Set ColorMode for indicate read Colors or not.
Parameters (1)theMode
- GetColorMode(): boolean
- SetNameMode(theMode: boolean): void
Set NameMode for indicate read Name or not.
Parameters (1)theMode
- GetNameMode(): boolean
- SetLayerMode(theMode: boolean): void
Set LayerMode for indicate read Layers or not.
Parameters (1)theMode
- GetLayerMode(): boolean
IGESCAFControl_Writer
Provides a tool to write DECAF document to the IGES file. Besides transfer of shapes (including assemblies) provided by IGESControl, supports also colors and part names IGESCAFControl_Writer writer(); Methods for writing IGES file: writer.Transfer (Document); writer.Write("filename") or writer.Write(OStream) or writer.Perform(Document,"filename"); Methods for managing the writing of attributes.
Colors writer.SetColorMode(colormode); bool colormode = writer.GetColorMode(); Layers writer.SetLayerMode(layermode); bool layermode = writer.GetLayerMode(); Names writer.SetNameMode(namemode); bool namemode = writer.GetNameMode();.
Constructors(3)
Creates a writer with an empty IGES model and sets ColorMode, LayerMode and NameMode to true.
- constructor(WS: XSControl_WorkSession, scratch?: boolean): IGESCAFControl_Writer
Creates a reader tool and attaches it to an already existing Session Clears the session if it was not yet set for IGES.
Parameters (2)WSscratch
- constructor(theWS: XSControl_WorkSession, theUnit: string): IGESCAFControl_Writer
Creates a reader tool and attaches it to an already existing Session Clears the session if it was not yet set for IGES Sets target Unit for the writing process.
Parameters (2)theWStheUnit
Instance methods(11)
- Transfer(doc: TDocStd_Document, theProgress: Message_ProgressRange): boolean
Transfers a document to a IGES model Returns True if translation is OK.
Parameters (2)doctheProgress
- Transfer(labels: NCollection_Sequence_TDF_Label, theProgress: Message_ProgressRange): boolean
Transfers labels to a IGES model Returns True if translation is OK.
Parameters (2)labelstheProgress
- Transfer(label: TDF_Label, theProgress: Message_ProgressRange): boolean
Transfers label to a IGES model Returns True if translation is OK.
Parameters (2)labeltheProgress
- Perform(doc: TDocStd_Document, filename: TCollection_AsciiString, theProgress: Message_ProgressRange): booleanParameters (3)
docfilenametheProgress
- Perform(doc: TDocStd_Document, filename: string, theProgress: Message_ProgressRange): boolean
Transfers a document and writes it to a IGES file Returns True if translation is OK.
Parameters (3)docfilenametheProgress
- SetColorMode(colormode: boolean): void
Set ColorMode for indicate write Colors or not.
Parameters (1)colormode
- GetColorMode(): boolean
- SetNameMode(namemode: boolean): void
Set NameMode for indicate write Name or not.
Parameters (1)namemode
- GetNameMode(): boolean
- SetLayerMode(layermode: boolean): void
Set LayerMode for indicate write Layers or not.
Parameters (1)layermode
- GetLayerMode(): boolean
IGESBasic
OCCT package IGESBasic: IGESBasic, IGESBasic_AssocGroupType, IGESBasic_ExternalReferenceFile, IGESBasic_ExternalRefFile, and 38 more bound classes.
IGESControl
OCCT package IGESControl: IGESControl_ActorWrite, IGESControl_AlgoContainer, IGESControl_Controller, IGESControl_IGESBoundary, and 3 more bound classes.