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();.
More...
|
| | IGESCAFControl_Reader () |
| | Creates a reader with an empty IGES model and sets ColorMode, LayerMode and NameMode to true.
|
| |
| | IGESCAFControl_Reader (const occ::handle< XSControl_WorkSession > &theWS, const bool FromScratch=true) |
| | Creates a reader tool and attaches it to an already existing Session Clears the session if it was not yet set for IGES.
|
| |
| bool | Transfer (const occ::handle< TDocStd_Document > &theDoc, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| | Translates currently loaded IGES file into the document Returns True if succeeded, and False in case of fail.
|
| |
| bool | Perform (const TCollection_AsciiString &theFileName, const occ::handle< TDocStd_Document > &theDoc, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| |
| bool | Perform (const char *const theFileName, const occ::handle< TDocStd_Document > &theDoc, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| | Translate IGES file given by filename into the document Return True if succeeded, and False in case of fail.
|
| |
| void | SetColorMode (const bool theMode) |
| | Set ColorMode for indicate read Colors or not.
|
| |
| bool | GetColorMode () const |
| |
| void | SetNameMode (const bool theMode) |
| | Set NameMode for indicate read Name or not.
|
| |
| bool | GetNameMode () const |
| |
| void | SetLayerMode (const bool theMode) |
| | Set LayerMode for indicate read Layers or not.
|
| |
| bool | GetLayerMode () const |
| |
| | IGESControl_Reader () |
| | Creates a Reader from scratch.
|
| |
| | IGESControl_Reader (const occ::handle< XSControl_WorkSession > &WS, const bool scratch=true) |
| | Creates a Reader from an already existing Session.
|
| |
| void | SetReadVisible (const bool ReadRoot) |
| | Set the transion of ALL Roots (if theReadOnlyVisible is False) or of Visible Roots (if theReadOnlyVisible is True)
|
| |
| bool | GetReadVisible () const |
| |
| occ::handle< IGESData_IGESModel > | IGESModel () const |
| | Returns the model as a IGESModel. It can then be consulted (header, product)
|
| |
| int | NbRootsForTransfer () override |
| | Determines the list of root entities from Model which are candidate for a transfer to a Shape (type of entities is PRODUCT) <theReadOnlyVisible> is taken into account to define roots.
|
| |
| void | PrintTransferInfo (const IFSelect_PrintFail failwarn, const IFSelect_PrintCount mode) const |
| | Prints Statistics and check list for Transfer.
|
| |
| | XSControl_Reader () |
| | Creates a Reader from scratch (creates an empty WorkSession) A WorkSession or a Controller must be provided before running.
|
| |
| | XSControl_Reader (const char *const norm) |
| | Creates a Reader from scratch, with a norm name which identifies a Controller.
|
| |
| | XSControl_Reader (const occ::handle< XSControl_WorkSession > &WS, const bool scratch=true) |
| | Creates a Reader from an already existing Session, with a Controller already set Virtual destructor.
|
| |
| virtual | ~XSControl_Reader ()=default |
| | Empty virtual destructor.
|
| |
| bool | SetNorm (const char *const norm) |
| | Sets a specific norm to <me> Returns True if done, False if <norm> is not available.
|
| |
| void | SetWS (const occ::handle< XSControl_WorkSession > &WS, const bool scratch=true) |
| | Sets a specific session to <me>
|
| |
| occ::handle< XSControl_WorkSession > | WS () const |
| | Returns the session used in <me>
|
| |
| virtual IFSelect_ReturnStatus | ReadFile (const char *const filename) |
| | Loads a file and returns the read status Zero for a Model which complies with the Controller.
|
| |
| virtual IFSelect_ReturnStatus | ReadStream (const char *const theName, std::istream &theIStream) |
| | Loads a file from stream and returns the read status.
|
| |
| occ::handle< Interface_InterfaceModel > | Model () const |
| | Returns the model. It can then be consulted (header, product)
|
| |
| occ::handle< NCollection_HSequence< occ::handle< Standard_Transient > > > | GiveList (const char *const first="", const char *const second="") |
| | Returns a list of entities from the IGES or STEP file according to the following rules:
|
| |
| occ::handle< NCollection_HSequence< occ::handle< Standard_Transient > > > | GiveList (const char *const first, const occ::handle< Standard_Transient > &ent) |
| | Computes a List of entities from the model as follows <first> being a Selection, <ent> being an entity or a list of entities (as a HSequenceOfTransient) : the standard result of this selection applied to this list if <first> is erroneous, a null handle is returned.
|
| |
| occ::handle< Standard_Transient > | RootForTransfer (const int num=1) |
| | Returns an IGES or STEP root entity for translation. The entity is identified by its rank in a list.
|
| |
| bool | TransferOneRoot (const int num=1, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| | Translates a root identified by the rank num in the model. false is returned if no shape is produced.
|
| |
| bool | TransferOne (const int num, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| | Translates an IGES or STEP entity identified by the rank num in the model. false is returned if no shape is produced.
|
| |
| bool | TransferEntity (const occ::handle< Standard_Transient > &start, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| | Translates an IGES or STEP entity in the model. true is returned if a shape is produced; otherwise, false is returned.
|
| |
| int | TransferList (const occ::handle< NCollection_HSequence< occ::handle< Standard_Transient > > > &list, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| | Translates a list of entities. Returns the number of IGES or STEP entities that were successfully translated. The list can be produced with GiveList. Warning - This function does not clear the existing output shapes.
|
| |
| int | TransferRoots (const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| | Translates all translatable roots and returns the number of successful translations. Warning - This function clears existing output shapes first.
|
| |
| void | ClearShapes () |
| | Clears the list of shapes that may have accumulated in calls to TransferOne or TransferRoot.C.
|
| |
| int | NbShapes () const |
| | Returns the number of shapes produced by translation.
|
| |
| TopoDS_Shape | Shape (const int num=1) const |
| | Returns the shape resulting from a translation and identified by the rank num. num equals 1 by default. In other words, the first shape resulting from the translation is returned.
|
| |
| TopoDS_Shape | OneShape () const |
| | Returns all of the results in a single shape which is:
|
| |
| void | PrintCheckLoad (const bool failsonly, const IFSelect_PrintCount mode) const |
| | Prints the check list attached to loaded data, on the Standard Trace File (starts at std::cout) All messages or fails only, according to <failsonly> mode = 0 : per entity, prints messages mode = 1 : per message, just gives count of entities per check mode = 2 : also gives entity numbers.
|
| |
| void | PrintCheckLoad (Standard_OStream &theStream, const bool failsonly, const IFSelect_PrintCount mode) const |
| | Prints the check list attached to loaded data.
|
| |
| void | PrintCheckTransfer (const bool failsonly, const IFSelect_PrintCount mode) const |
| | Displays check results for the last translation of IGES or STEP entities to Open CASCADE entities. Only fail messages are displayed if failsonly is true. All messages are displayed if failsonly is false. mode determines the contents and the order of the messages according to the terms of the IFSelect_PrintCount enumeration.
|
| |
| void | PrintCheckTransfer (Standard_OStream &theStream, const bool failsonly, const IFSelect_PrintCount mode) const |
| | Displays check results for the last translation of IGES or STEP entities to Open CASCADE entities.
|
| |
| void | PrintStatsTransfer (const int what, const int mode=0) const |
| | Displays the statistics for the last translation. what defines the kind of statistics that are displayed as follows:
|
| |
| void | PrintStatsTransfer (Standard_OStream &theStream, const int what, const int mode=0) const |
| | Displays the statistics for the last translation.
|
| |
| void | GetStatsTransfer (const occ::handle< NCollection_HSequence< occ::handle< Standard_Transient > > > &list, int &nbMapped, int &nbWithResult, int &nbWithFail) const |
| | Gives statistics about Transfer.
|
| |
| void | SetShapeFixParameters (const XSAlgo_ShapeProcessor::ParameterMap &theParameters) |
| | Sets parameters for shape processing.
|
| |
| void | SetShapeFixParameters (XSAlgo_ShapeProcessor::ParameterMap &&theParameters) |
| | Sets parameters for shape processing. Parameters are moved from the input map.
|
| |
| void | SetShapeFixParameters (const DE_ShapeFixParameters &theParameters, const XSAlgo_ShapeProcessor::ParameterMap &theAdditionalParameters={}) |
| | Sets parameters for shape processing. Parameters from theParameters are copied to the internal map. Parameters from theAdditionalParameters are copied to the internal map if they are not present in theParameters.
|
| |
| const XSAlgo_ShapeProcessor::ParameterMap & | GetShapeFixParameters () const |
| | Returns parameters for shape processing that was set by SetParameters() method.
|
| |
| void | SetShapeProcessFlags (const ShapeProcess::OperationsFlags &theFlags) |
| | Sets flags defining operations to be performed on shapes.
|
| |
| const XSAlgo_ShapeProcessor::ProcessingFlags & | GetShapeProcessFlags () const |
| | Returns flags defining operations to be performed on shapes.
|
| |
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();.