Open CASCADE Technology 7.8.0
|
provides methods to transfer BRep entity from CASCADE to IGESBRep. More...
#include <BRepToIGESBRep_Entity.hxx>
Public Member Functions | |
BRepToIGESBRep_Entity () | |
Creates a tool Entity. | |
void | Clear () |
Clears the contents of the fields. | |
void | TransferVertexList () |
Create the VertexList entity. | |
Standard_Integer | IndexVertex (const TopoDS_Vertex &myvertex) const |
Returns the index of <myvertex> in "myVertices". | |
Standard_Integer | AddVertex (const TopoDS_Vertex &myvertex) |
Stores <myvertex> in "myVertices" Returns the index of <myvertex>. | |
void | TransferEdgeList () |
Transfert an Edge entity from TopoDS to IGES. | |
Standard_Integer | IndexEdge (const TopoDS_Edge &myedge) const |
Returns the index of <myedge> in "myEdges". | |
Standard_Integer | AddEdge (const TopoDS_Edge &myedge, const Handle< IGESData_IGESEntity > &mycurve3d) |
Stores <myedge> in "myEdges" and <mycurve3d> in "myCurves". Returns the index of <myedge>. | |
virtual Handle< IGESData_IGESEntity > | TransferShape (const TopoDS_Shape &start, const Message_ProgressRange &theProgress=Message_ProgressRange()) override |
Returns the result of the transfert of any Shape If the transfer has failed, this member return a NullEntity. | |
Handle< IGESData_IGESEntity > | TransferEdge (const TopoDS_Edge &myedge) |
Transfert an Edge entity from TopoDS to IGES If this Entity could not be converted, this member returns a NullEntity. | |
Handle< IGESData_IGESEntity > | TransferEdge (const TopoDS_Edge &myedge, const TopoDS_Face &myface, const Standard_Real length) |
Transfert an Edge entity from TopoDS to IGES If this Entity could not be converted, this member returns a NullEntity. | |
Handle< IGESSolid_Loop > | TransferWire (const TopoDS_Wire &mywire, const TopoDS_Face &myface, const Standard_Real length) |
Transfert a Wire entity from TopoDS to IGES. Returns the curve associated to mywire in the parametric space of myface. If this Entity could not be converted, this member returns a NullEntity. | |
Handle< IGESSolid_Face > | TransferFace (const TopoDS_Face &start) |
Transfert a Face entity from TopoDS to IGES If this Entity could not be converted, this member returns a NullEntity. | |
Handle< IGESSolid_Shell > | TransferShell (const TopoDS_Shell &start, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
Transfert an Shell entity from TopoDS to IGES If this Entity could not be converted, this member returns a NullEntity. | |
Handle< IGESSolid_ManifoldSolid > | TransferSolid (const TopoDS_Solid &start, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
Transfert a Solid entity from TopoDS to IGES If this Entity could not be converted, this member returns a NullEntity. | |
Handle< IGESData_IGESEntity > | TransferCompSolid (const TopoDS_CompSolid &start, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
Transfert an CompSolid entity from TopoDS to IGES If this Entity could not be converted, this member returns a NullEntity. | |
Handle< IGESData_IGESEntity > | TransferCompound (const TopoDS_Compound &start, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
Transfert a Compound entity from TopoDS to IGES If this Entity could not be converted, this member returns a NullEntity. | |
Public Member Functions inherited from BRepToIGES_BREntity | |
BRepToIGES_BREntity () | |
Creates a tool BREntity. | |
void | Init () |
Initializes the field of the tool BREntity with default creating values. | |
void | SetModel (const Handle< IGESData_IGESModel > &model) |
Set the value of "TheModel". | |
Handle< IGESData_IGESModel > | GetModel () const |
Returns the value of "TheModel". | |
Standard_Real | GetUnit () const |
Returns the value of the UnitFlag of the header of the model in meters. | |
void | SetTransferProcess (const Handle< Transfer_FinderProcess > &TP) |
Set the value of "TheMap". | |
Handle< Transfer_FinderProcess > | GetTransferProcess () const |
Returns the value of "TheMap". | |
void | AddFail (const TopoDS_Shape &start, const Standard_CString amess) |
Records a new Fail message. | |
void | AddWarning (const TopoDS_Shape &start, const Standard_CString amess) |
Records a new Warning message. | |
void | AddFail (const Handle< Standard_Transient > &start, const Standard_CString amess) |
Records a new Fail message. | |
void | AddWarning (const Handle< Standard_Transient > &start, const Standard_CString amess) |
Records a new Warning message. | |
Standard_Boolean | HasShapeResult (const TopoDS_Shape &start) const |
Returns True if start was already treated and has a result in "TheMap" else returns False. | |
Handle< Standard_Transient > | GetShapeResult (const TopoDS_Shape &start) const |
Returns the result of the transfer of the Shape "start" contained in "TheMap" . (if HasShapeResult is True). | |
void | SetShapeResult (const TopoDS_Shape &start, const Handle< Standard_Transient > &result) |
set in "TheMap" the result of the transfer of the Shape "start". | |
Standard_Boolean | HasShapeResult (const Handle< Standard_Transient > &start) const |
Returns True if start was already treated and has a result in "TheMap" else returns False. | |
Handle< Standard_Transient > | GetShapeResult (const Handle< Standard_Transient > &start) const |
Returns the result of the transfer of the Transient "start" contained in "TheMap" . (if HasShapeResult is True). | |
void | SetShapeResult (const Handle< Standard_Transient > &start, const Handle< Standard_Transient > &result) |
set in "TheMap" the result of the transfer of the Transient "start". | |
Standard_Boolean | GetConvertSurfaceMode () const |
Returns mode for conversion of surfaces (value of parameter write.convertsurface.mode) | |
Standard_Boolean | GetPCurveMode () const |
Returns mode for writing pcurves (value of parameter write.surfacecurve.mode) | |
virtual | ~BRepToIGES_BREntity () |
provides methods to transfer BRep entity from CASCADE to IGESBRep.
BRepToIGESBRep_Entity::BRepToIGESBRep_Entity | ( | ) |
Creates a tool Entity.
Standard_Integer BRepToIGESBRep_Entity::AddEdge | ( | const TopoDS_Edge & | myedge, |
const Handle< IGESData_IGESEntity > & | mycurve3d | ||
) |
Stores <myedge> in "myEdges" and <mycurve3d> in "myCurves". Returns the index of <myedge>.
Standard_Integer BRepToIGESBRep_Entity::AddVertex | ( | const TopoDS_Vertex & | myvertex | ) |
Stores <myvertex> in "myVertices" Returns the index of <myvertex>.
void BRepToIGESBRep_Entity::Clear | ( | ) |
Clears the contents of the fields.
Standard_Integer BRepToIGESBRep_Entity::IndexEdge | ( | const TopoDS_Edge & | myedge | ) | const |
Returns the index of <myedge> in "myEdges".
Standard_Integer BRepToIGESBRep_Entity::IndexVertex | ( | const TopoDS_Vertex & | myvertex | ) | const |
Returns the index of <myvertex> in "myVertices".
Handle< IGESData_IGESEntity > BRepToIGESBRep_Entity::TransferCompound | ( | const TopoDS_Compound & | start, |
const Message_ProgressRange & | theProgress = Message_ProgressRange() |
||
) |
Transfert a Compound entity from TopoDS to IGES If this Entity could not be converted, this member returns a NullEntity.
Handle< IGESData_IGESEntity > BRepToIGESBRep_Entity::TransferCompSolid | ( | const TopoDS_CompSolid & | start, |
const Message_ProgressRange & | theProgress = Message_ProgressRange() |
||
) |
Transfert an CompSolid entity from TopoDS to IGES If this Entity could not be converted, this member returns a NullEntity.
Handle< IGESData_IGESEntity > BRepToIGESBRep_Entity::TransferEdge | ( | const TopoDS_Edge & | myedge | ) |
Transfert an Edge entity from TopoDS to IGES If this Entity could not be converted, this member returns a NullEntity.
Handle< IGESData_IGESEntity > BRepToIGESBRep_Entity::TransferEdge | ( | const TopoDS_Edge & | myedge, |
const TopoDS_Face & | myface, | ||
const Standard_Real | length | ||
) |
Transfert an Edge entity from TopoDS to IGES If this Entity could not be converted, this member returns a NullEntity.
void BRepToIGESBRep_Entity::TransferEdgeList | ( | ) |
Transfert an Edge entity from TopoDS to IGES.
Handle< IGESSolid_Face > BRepToIGESBRep_Entity::TransferFace | ( | const TopoDS_Face & | start | ) |
Transfert a Face entity from TopoDS to IGES If this Entity could not be converted, this member returns a NullEntity.
|
overridevirtual |
Returns the result of the transfert of any Shape If the transfer has failed, this member return a NullEntity.
Reimplemented from BRepToIGES_BREntity.
Handle< IGESSolid_Shell > BRepToIGESBRep_Entity::TransferShell | ( | const TopoDS_Shell & | start, |
const Message_ProgressRange & | theProgress = Message_ProgressRange() |
||
) |
Transfert an Shell entity from TopoDS to IGES If this Entity could not be converted, this member returns a NullEntity.
Handle< IGESSolid_ManifoldSolid > BRepToIGESBRep_Entity::TransferSolid | ( | const TopoDS_Solid & | start, |
const Message_ProgressRange & | theProgress = Message_ProgressRange() |
||
) |
Transfert a Solid entity from TopoDS to IGES If this Entity could not be converted, this member returns a NullEntity.
void BRepToIGESBRep_Entity::TransferVertexList | ( | ) |
Create the VertexList entity.
Handle< IGESSolid_Loop > BRepToIGESBRep_Entity::TransferWire | ( | const TopoDS_Wire & | mywire, |
const TopoDS_Face & | myface, | ||
const Standard_Real | length | ||
) |
Transfert a Wire entity from TopoDS to IGES. Returns the curve associated to mywire in the parametric space of myface. If this Entity could not be converted, this member returns a NullEntity.