![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
A simple way to read geometric IGES data. Encapsulates reading file and calling transfer tools. More...
#include <IGESToBRep_Reader.hxx>
Public Member Functions | |
| IGESToBRep_Reader () | |
| Creates a Reader. | |
| int | LoadFile (const char *const filename) |
| Loads a Model from a file.Returns 0 if success. returns 1 if the file could not be opened, returns -1 if an error occurred while the file was being loaded. | |
| void | SetModel (const occ::handle< IGESData_IGESModel > &model) |
| Specifies a Model to work on Also clears the result and Done status, sets TransientProcess. | |
| occ::handle< IGESData_IGESModel > | Model () const |
| Returns the Model to be worked on. | |
| void | SetTransientProcess (const occ::handle< Transfer_TransientProcess > &TP) |
| Allows to set an already defined TransientProcess (to be called after LoadFile or SetModel) | |
| occ::handle< Transfer_TransientProcess > | TransientProcess () const |
| Returns the TransientProcess. | |
| occ::handle< IGESToBRep_Actor > | Actor () const |
| Returns "theActor". | |
| void | Clear () |
| Clears the results between two translation operations. | |
| bool | Check (const bool withprint) const |
| Checks the IGES file that was loaded into memory. Displays error messages in the default message file if withprint is true. Returns True if no fail message was found and False if there was at least one fail message. | |
| void | TransferRoots (const bool onlyvisible=true, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| Translates root entities in an IGES file. true is the default value and means that only visible root entities are translated. false translates all of the roots (visible and invisible). | |
| bool | Transfer (const int num, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| Transfers an Entity given its rank in the Model (Root or not) Returns True if it is recognized as Geom-Topol. (But it can have failed : see IsDone) | |
| bool | IsDone () const |
| Returns True if the LAST Transfer/TransferRoots was a success. | |
| double | UsedTolerance () const |
| Returns the Tolerance which has been actually used, converted in millimeters (either that from File or that from Session, according the mode) | |
| int | NbShapes () const |
| Returns the number of shapes produced by the translation. | |
| TopoDS_Shape | Shape (const int num=1) const |
| Returns the num the resulting shape in a translation operation. | |
| TopoDS_Shape | OneShape () const |
| Returns all of the results in a single shape which is: | |
| 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 ShapeProcess::OperationsFlags & | GetShapeProcessFlags () const |
| Returns flags defining operations to be performed on shapes. | |
A simple way to read geometric IGES data. Encapsulates reading file and calling transfer tools.
| IGESToBRep_Reader::IGESToBRep_Reader | ( | ) |
Creates a Reader.
| occ::handle< IGESToBRep_Actor > IGESToBRep_Reader::Actor | ( | ) | const |
Returns "theActor".
Checks the IGES file that was loaded into memory. Displays error messages in the default message file if withprint is true. Returns True if no fail message was found and False if there was at least one fail message.
| void IGESToBRep_Reader::Clear | ( | ) |
Clears the results between two translation operations.
|
inline |
Returns parameters for shape processing that was set by SetParameters() method.
|
inline |
Returns flags defining operations to be performed on shapes.
| bool IGESToBRep_Reader::IsDone | ( | ) | const |
Returns True if the LAST Transfer/TransferRoots was a success.
Loads a Model from a file.Returns 0 if success. returns 1 if the file could not be opened, returns -1 if an error occurred while the file was being loaded.
| occ::handle< IGESData_IGESModel > IGESToBRep_Reader::Model | ( | ) | const |
Returns the Model to be worked on.
| int IGESToBRep_Reader::NbShapes | ( | ) | const |
Returns the number of shapes produced by the translation.
| TopoDS_Shape IGESToBRep_Reader::OneShape | ( | ) | const |
Returns all of the results in a single shape which is:
| void IGESToBRep_Reader::SetModel | ( | const occ::handle< IGESData_IGESModel > & | model | ) |
Specifies a Model to work on Also clears the result and Done status, sets TransientProcess.
| void IGESToBRep_Reader::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.
| theParameters | the parameters for shape processing. |
| theAdditionalParameters | the additional parameters for shape processing. |
| void IGESToBRep_Reader::SetShapeFixParameters | ( | const XSAlgo_ShapeProcessor::ParameterMap & | theParameters | ) |
Sets parameters for shape processing.
| theParameters | the parameters for shape processing. |
| void IGESToBRep_Reader::SetShapeFixParameters | ( | XSAlgo_ShapeProcessor::ParameterMap && | theParameters | ) |
Sets parameters for shape processing. Parameters are moved from the input map.
| theParameters | the parameters for shape processing. |
| void IGESToBRep_Reader::SetShapeProcessFlags | ( | const ShapeProcess::OperationsFlags & | theFlags | ) |
Sets flags defining operations to be performed on shapes.
| theFlags | The flags defining operations to be performed on shapes. |
| void IGESToBRep_Reader::SetTransientProcess | ( | const occ::handle< Transfer_TransientProcess > & | TP | ) |
Allows to set an already defined TransientProcess (to be called after LoadFile or SetModel)
| TopoDS_Shape IGESToBRep_Reader::Shape | ( | const int | num = 1 | ) | const |
Returns the num the resulting shape in a translation operation.
| bool IGESToBRep_Reader::Transfer | ( | const int | num, |
| const Message_ProgressRange & | theProgress = Message_ProgressRange() ) |
Transfers an Entity given its rank in the Model (Root or not) Returns True if it is recognized as Geom-Topol. (But it can have failed : see IsDone)
| void IGESToBRep_Reader::TransferRoots | ( | const bool | onlyvisible = true, |
| const Message_ProgressRange & | theProgress = Message_ProgressRange() ) |
Translates root entities in an IGES file. true is the default value and means that only visible root entities are translated. false translates all of the roots (visible and invisible).
| occ::handle< Transfer_TransientProcess > IGESToBRep_Reader::TransientProcess | ( | ) | const |
Returns the TransientProcess.
| double IGESToBRep_Reader::UsedTolerance | ( | ) | const |
Returns the Tolerance which has been actually used, converted in millimeters (either that from File or that from Session, according the mode)