Class DKOC_Body2OCCBRep This class allow the conversion from a Dtk_BodyPtr to a set of TopoDS_Shape based on linked version The links between the Dtk_Entity IDs and the TopoDS_Shape are given as a map It allows a unique definition of the TopoDS_Shape items (by a positive integer) And it gives access to the original ID in the Dtk_Body it is the ID of the Dtk_Info(therefore of the original CAD) More...
Public Member Functions | |
| void | _Init () |
| void | _Init () |
| void | _Reset () |
| void | _Reset () |
| Dtk_ErrorStatus | ConvertBody (const Dtk_BodyPtr &inBody) |
| Convert a Dtk_Body to set of TopoDS_Shape representing all topological entities. More... | |
| Dtk_ErrorStatus | ConvertBody (const Dtk_BodyPtr &inBody) |
| Convert a Dtk_Body to set of TopoDS_Shape representing all topological entities. More... | |
| DKOC_Body2OCCBRep () | |
| DKOC_Body2OCCBRep () | |
| int | GetDtkID (const int inShapeID) const |
| Get Dtk_ID from a ShapeID. More... | |
| int | GetDtkID (const int inShapeID) const |
| Get Dtk_ID from a ShapeID. More... | |
| TopoDS_Shape | GetMainShape () const |
| Get the highest level TopoDS_Shape shape. More... | |
| TopoDS_Shape | GetMainShape () const |
| Get the highest level TopoDS_Shape shape. More... | |
| int | GetMapSize () |
| Get Max ID of the map. More... | |
| int | GetMapSize () |
| Get Max ID of the map. More... | |
| const TopoDS_Shape | GetShapeFromShapeID (const int inID) const |
| Get Shape from Map ID More... | |
| const TopoDS_Shape | GetShapeFromShapeID (const int inID) const |
| Get Shape from Map ID More... | |
| int | GetShapeID (const TopoDS_Shape &inShape) const |
| Get ID from Shape. More... | |
| int | GetShapeID (const TopoDS_Shape &inShape) const |
| Get ID from Shape. More... | |
| SetAsDeprecated ("2025.3", "Use GetDtkID") int StartID(const int inID) const | |
| SetAsDeprecated ("2025.3", "Use GetDtkID") int StartID(const int inID) const | |
| SetAsDeprecated ("2025.3", "Use GetMainShape") TopoDS_Shape RootShape() const | |
| SetAsDeprecated ("2025.3", "Use GetMainShape") TopoDS_Shape RootShape() const | |
| SetAsDeprecated ("2025.3", "Use GetMapSize") int MaxID() | |
| SetAsDeprecated ("2025.3", "Use GetMapSize") int MaxID() | |
| SetAsDeprecated ("2025.3", "Use GetShapeFromShapeID") const TopoDS_Shape IDShape(const int inID) const | |
| SetAsDeprecated ("2025.3", "Use GetShapeFromShapeID") const TopoDS_Shape IDShape(const int inID) const | |
| SetAsDeprecated ("2025.3", "Use GetShapeID") int ShapeID(const TopoDS_Shape &inShape) const | |
| SetAsDeprecated ("2025.3", "Use GetShapeID") int ShapeID(const TopoDS_Shape &inShape) const | |
| SetAsDeprecated ("2025.3", "Use SetConfigShapeFix") void SetShapeFix(const int inMode) | |
| SetAsDeprecated ("2025.3", "Use SetConfigShapeFix") void SetShapeFix(const int inMode) | |
| SetAsDeprecated ("2025.3", "Use ShapeFromDtkID") TopoDS_Shape ShapeFromStartID(const int inDtkID) const | |
| SetAsDeprecated ("2025.3", "Use ShapeFromDtkID") TopoDS_Shape ShapeFromStartID(const int inDtkID) const | |
| void | SetConfigKeepPcurves (const Dtk_bool inMode) |
| Option to keep existing pcurves or not (activated by default) More... | |
| void | SetConfigKeepPcurves (const Dtk_bool inMode) |
| Option to keep existing pcurves or not (activated by default) More... | |
| void | SetConfigShapeFix (const Dtk_bool inMode) |
| Option to activate ShapeFix or not (activated by default) More... | |
| void | SetConfigShapeFix (const Dtk_bool inMode) |
| Option to activate ShapeFix or not (activated by default) More... | |
| TopoDS_Shape | ShapeFromDtkID (const int inDtkID) const |
| Get Shape with inDtkID stored in Dtk_Entity->getinfo()->GetID() More... | |
| TopoDS_Shape | ShapeFromDtkID (const int inDtkID) const |
| Get Shape with inDtkID stored in Dtk_Entity->getinfo()->GetID() More... | |
| ~DKOC_Body2OCCBRep () | |
| ~DKOC_Body2OCCBRep () | |
Protected Attributes | |
| Dtk_Handle * | _Private |
Class DKOC_Body2OCCBRep This class allow the conversion from a Dtk_BodyPtr to a set of TopoDS_Shape based on linked version The links between the Dtk_Entity IDs and the TopoDS_Shape are given as a map It allows a unique definition of the TopoDS_Shape items (by a positive integer) And it gives access to the original ID in the Dtk_Body it is the ID of the Dtk_Info(therefore of the original CAD)
| DKOC_Body2OCCBRep::DKOC_Body2OCCBRep | ( | ) |
| DKOC_Body2OCCBRep::~DKOC_Body2OCCBRep | ( | ) |
| DKOC_Body2OCCBRep::DKOC_Body2OCCBRep | ( | ) |
| DKOC_Body2OCCBRep::~DKOC_Body2OCCBRep | ( | ) |
| void DKOC_Body2OCCBRep::_Init | ( | ) |
| void DKOC_Body2OCCBRep::_Init | ( | ) |
| void DKOC_Body2OCCBRep::_Reset | ( | ) |
| void DKOC_Body2OCCBRep::_Reset | ( | ) |
| Dtk_ErrorStatus DKOC_Body2OCCBRep::ConvertBody | ( | const Dtk_BodyPtr & | inBody | ) |
Convert a Dtk_Body to set of TopoDS_Shape representing all topological entities.
| [in] | inBody | : Body to convert |
| Dtk_ErrorStatus DKOC_Body2OCCBRep::ConvertBody | ( | const Dtk_BodyPtr & | inBody | ) |
Convert a Dtk_Body to set of TopoDS_Shape representing all topological entities.
| [in] | inBody | : Body to convert |
| int DKOC_Body2OCCBRep::GetDtkID | ( | const int | inShapeID | ) | const |
Get Dtk_ID from a ShapeID.
| [in] | inShapeID | : ShapeID |
| int DKOC_Body2OCCBRep::GetDtkID | ( | const int | inShapeID | ) | const |
Get Dtk_ID from a ShapeID.
| [in] | inShapeID | : ShapeID |
| TopoDS_Shape DKOC_Body2OCCBRep::GetMainShape | ( | ) | const |
Get the highest level TopoDS_Shape shape.
| TopoDS_Shape DKOC_Body2OCCBRep::GetMainShape | ( | ) | const |
Get the highest level TopoDS_Shape shape.
| int DKOC_Body2OCCBRep::GetMapSize | ( | ) |
Get Max ID of the map.
| int DKOC_Body2OCCBRep::GetMapSize | ( | ) |
Get Max ID of the map.
| const TopoDS_Shape DKOC_Body2OCCBRep::GetShapeFromShapeID | ( | const int | inID | ) | const |
Get Shape from Map ID
| [in] | inID | : ShapeID |
| const TopoDS_Shape DKOC_Body2OCCBRep::GetShapeFromShapeID | ( | const int | inID | ) | const |
Get Shape from Map ID
| [in] | inID | : ShapeID |
| int DKOC_Body2OCCBRep::GetShapeID | ( | const TopoDS_Shape & | inShape | ) | const |
Get ID from Shape.
| [in] | inShape | Shape |
| int DKOC_Body2OCCBRep::GetShapeID | ( | const TopoDS_Shape & | inShape | ) | const |
Get ID from Shape.
| [in] | inShape | Shape |
| DKOC_Body2OCCBRep::SetAsDeprecated | ( | "2025.3" | , |
| "Use GetDtkID" | |||
| ) | const |
| DKOC_Body2OCCBRep::SetAsDeprecated | ( | "2025.3" | , |
| "Use GetDtkID" | |||
| ) | const |
| DKOC_Body2OCCBRep::SetAsDeprecated | ( | "2025.3" | , |
| "Use GetMainShape" | |||
| ) | const |
| DKOC_Body2OCCBRep::SetAsDeprecated | ( | "2025.3" | , |
| "Use GetMainShape" | |||
| ) | const |
| DKOC_Body2OCCBRep::SetAsDeprecated | ( | "2025.3" | , |
| "Use GetMapSize" | |||
| ) |
| DKOC_Body2OCCBRep::SetAsDeprecated | ( | "2025.3" | , |
| "Use GetMapSize" | |||
| ) |
| DKOC_Body2OCCBRep::SetAsDeprecated | ( | "2025.3" | , |
| "Use GetShapeFromShapeID" | |||
| ) | const |
| DKOC_Body2OCCBRep::SetAsDeprecated | ( | "2025.3" | , |
| "Use GetShapeFromShapeID" | |||
| ) | const |
| DKOC_Body2OCCBRep::SetAsDeprecated | ( | "2025.3" | , |
| "Use GetShapeID" | |||
| ) | const & |
| DKOC_Body2OCCBRep::SetAsDeprecated | ( | "2025.3" | , |
| "Use GetShapeID" | |||
| ) | const & |
| DKOC_Body2OCCBRep::SetAsDeprecated | ( | "2025.3" | , |
| "Use SetConfigShapeFix" | |||
| ) | const |
| DKOC_Body2OCCBRep::SetAsDeprecated | ( | "2025.3" | , |
| "Use SetConfigShapeFix" | |||
| ) | const |
| DKOC_Body2OCCBRep::SetAsDeprecated | ( | "2025.3" | , |
| "Use ShapeFromDtkID" | |||
| ) | const |
| DKOC_Body2OCCBRep::SetAsDeprecated | ( | "2025.3" | , |
| "Use ShapeFromDtkID" | |||
| ) | const |
| void DKOC_Body2OCCBRep::SetConfigKeepPcurves | ( | const Dtk_bool | inMode | ) |
Option to keep existing pcurves or not (activated by default)
| [in] | inMode | : DTK_FALSE to ignore pcurves, DTK_TRUE use existing pcurves |
| void DKOC_Body2OCCBRep::SetConfigKeepPcurves | ( | const Dtk_bool | inMode | ) |
Option to keep existing pcurves or not (activated by default)
| [in] | inMode | : DTK_FALSE to ignore pcurves, DTK_TRUE use existing pcurves |
| void DKOC_Body2OCCBRep::SetConfigShapeFix | ( | const Dtk_bool | inMode | ) |
Option to activate ShapeFix or not (activated by default)
| [in] | inMode | : DTK_FALSE to switch off ShapeFix, DTK_TRUE to switch on |
| void DKOC_Body2OCCBRep::SetConfigShapeFix | ( | const Dtk_bool | inMode | ) |
Option to activate ShapeFix or not (activated by default)
| [in] | inMode | : DTK_FALSE to switch off ShapeFix, DTK_TRUE to switch on |
| TopoDS_Shape DKOC_Body2OCCBRep::ShapeFromDtkID | ( | const int | inDtkID | ) | const |
Get Shape with inDtkID stored in Dtk_Entity->getinfo()->GetID()
| [in] | inDtkID | to find |
| TopoDS_Shape DKOC_Body2OCCBRep::ShapeFromDtkID | ( | const int | inDtkID | ) | const |
Get Shape with inDtkID stored in Dtk_Entity->getinfo()->GetID()
| [in] | inDtkID | to find |
|
protected |