Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
IGESToBRep_Reader Class Reference

A simple way to read geometric IGES data.
Encapsulates reading file and calling transfer tools

#include <IGESToBRep_Reader.hxx>

Public Member Functions

DEFINE_STANDARD_ALLOC IGESToBRep_Reader ()
 Creates a Reader

Standard_Integer LoadFile (const Standard_CString 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 Handle< IGESData_IGESModel > &model)
 Specifies a Model to work on
Also clears the result and Done status, sets TransientProcess

Handle_IGESData_IGESModel Model () const
 Returns the Model to be worked on.

void SetTransientProcess (const Handle< Transfer_TransientProcess > &TP)
 Allows to set an already defined TransientProcess
(to be called after LoadFile or SetModel)

Handle_Transfer_TransientProcess TransientProcess () const
 Returns the TransientProcess

Handle_IGESToBRep_Actor Actor () const
 Returns "theActor"

void Clear ()
 Clears the results between two translation operations.

Standard_Boolean Check (const Standard_Boolean 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 Standard_Boolean onlyvisible=Standard_True)
 Translates root entities in an
IGES file. Standard_True is the default value and means that only
visible root entities are translated. Standard_False
translates all of the roots (visible and invisible).

Standard_Boolean Transfer (const Standard_Integer num)
 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)

Standard_Boolean IsDone () const
 Returns True if the LAST Transfer/TransferRoots was a success

Standard_Real UsedTolerance () const
 Returns the Tolerance which has been actually used, converted
in millimeters
(either that from File or that from Session, according the mode)

Standard_Integer NbShapes () const
 Returns the number of shapes produced by the translation.

TopoDS_Shape Shape (const Standard_Integer 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:


Constructor & Destructor Documentation


Member Function Documentation

Handle_IGESToBRep_Actor IGESToBRep_Reader::Actor ( ) const
Handle_IGESData_IGESModel IGESToBRep_Reader::Model ( ) const
  • a null shape if there are no results,
  • a shape if there is one result,
  • a compound containing the resulting shapes if there are several.
Handle_Transfer_TransientProcess IGESToBRep_Reader::TransientProcess ( ) const

The documentation for this class was generated from the following file: