DATAKIT API  V2025.1
Dtk_Coedge Class Reference

Dtk_Coedge is a part of a loop. It's geometry is a UV curve on a surface. More...

+ Inheritance diagram for Dtk_Coedge:

Public Member Functions

virtual Dtk_ErrorStatus _Store (void *)
 
int DtkDynamicType (const int &inId)
 Get smart pointer type. More...
 
virtual void dump (FILE *file=stdout)
 
Dtk_InfoPtr get_info () const
 
enum type_detk get_type_detk () const
 Return Type of entity. More...
 
Dtk_ErrorStatus GetAdjacentCoedge (const Dtk_Size_t &inIndex, Dtk_CoedgePtr &outAdjacentCoedge) const
 Get adjacent coedges from index. More...
 
Dtk_ErrorStatus GetBasisSurface (Dtk_SurfacePtr &outBasisSurface) const
 Get basis surface. More...
 
Dtk_ErrorStatus GetEdge (Dtk_EdgePtr &outEdge) const
 Get Edge for coedge. More...
 
Dtk_CurvePtr GetGeom () const
 Get Geometry. More...
 
const Dtk_IDGetID () const
 Get Internal UniqueID. More...
 
Dtk_Size_t GetNumAdjacentCoedges () const
 Get Number of adjacent coedges. More...
 
Dtk_bool GetOrientation () const
 Return orientation for coedge relative to Edge. More...
 
Dtk_ErrorStatus GetParentFace (Dtk_FacePtr &outParentFace) const
 Get parent face. More...
 
Dtk_ErrorStatus GetParentLoop (Dtk_LoopPtr &outParentLoop) const
 Get parent loop. More...
 
virtual Dtk_Size_t GetSize () const
 
Dtk_ID GetTopoID () const
 
Dtk_bool HasDegeneratedFlag ()
 
Dtk_InfoPtrinfo ()
 
Dtk_bool IsDegenerated () const
 Indicates if Coedge is degenerated or not. More...
 
virtual void PrepareTransfo ()
 
Dtk_ErrorStatus SetDegeneratedFlag ()
 Active Degenerated flag for coedge. More...
 
Dtk_ErrorStatus SetEdge (const Dtk_EdgePtr &inEdge)
 Set Edge for coedge. More...
 
Dtk_ErrorStatus SetEdge (const Dtk_ID &inEdgeId)
 
void SetGeom (const Dtk_CurvePtr &inCurveUV)
 Set Geometry. More...
 
Dtk_ErrorStatus SetOrientation (const Dtk_bool &inOrientation)
 Set orientation for coedge relative to Edge. More...
 
Dtk_ErrorStatus SetParentBody (const Dtk_BodyPtr &inParentBody)
 
Dtk_ErrorStatus SetParentLoop (const Dtk_ID &inParentLoopId)
 
Dtk_ErrorStatus SetParentLoop (const Dtk_LoopPtr &inParentLoop)
 Set parent loop. More...
 
virtual Dtk_ErrorStatus Transform (const Dtk_transfo &inTransfo)
 Transform object. More...
 

Static Public Member Functions

static Dtk_CoedgePtr Create (const Dtk_BodyPtr &inParentBody)
 Create a coedge in a body. More...
 
static Dtk_CoedgeDtkDynamicCast (Dtk_Object *inObject)
 

Protected Types

enum  { _typeID = DTK_TYPE_TOPOLOGICAL_REPRESENTATION_ITEM }
 
enum  { _typeID = DTK_TYPE_ENTITY }
 
enum  { _typeID = DTK_TYPE_COEDGE }
 

Protected Member Functions

void _Clone (Dtk_TopologicalEntityPtr &outTopo, Dtk_Body *_inParentBody)
 
void _Copy (const Dtk_Coedge &inTopo, Dtk_Body *inParentBody)
 
void _copy (const Dtk_Entity &s)
 
void _copy (const Dtk_Object &s)
 
void _init ()
 
void _Init ()
 
void _reset ()
 
void _Reset ()
 
virtual Dtk_ObjectClone ()
 
 Dtk_Coedge ()
 
 Dtk_Coedge (const Dtk_Coedge &inCoedgeToCopy, Dtk_Body *inParentBody)
 
virtual ~Dtk_Coedge ()
 

Protected Attributes

Dtk_Handle * _Private
 
unsigned long count_
 

Friends

class Dtk_SmartPtr< Dtk_Coedge >
 
class Dtk_TopologicalEntity
 

Detailed Description

Dtk_Coedge is a part of a loop. It's geometry is a UV curve on a surface.

Orientation is topological orientation relative to Edge

Geometrical orientation relative to UV Curve is always True

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
_typeID 

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
_typeID 

◆ anonymous enum

anonymous enum
protected
Enumerator
_typeID 
279 { _typeID = DTK_TYPE_COEDGE };

Constructor & Destructor Documentation

◆ Dtk_Coedge() [1/2]

Dtk_Coedge::Dtk_Coedge ( )
protected

◆ Dtk_Coedge() [2/2]

Dtk_Coedge::Dtk_Coedge ( const Dtk_Coedge inCoedgeToCopy,
Dtk_Body inParentBody 
)
protected

◆ ~Dtk_Coedge()

virtual Dtk_Coedge::~Dtk_Coedge ( )
protectedvirtual

Member Function Documentation

◆ _Clone()

void Dtk_Coedge::_Clone ( Dtk_TopologicalEntityPtr outTopo,
Dtk_Body _inParentBody 
)
protectedvirtual

Implements Dtk_TopologicalEntity.

◆ _Copy()

void Dtk_Coedge::_Copy ( const Dtk_Coedge inTopo,
Dtk_Body inParentBody 
)
protected

◆ _copy() [1/2]

void Dtk_Entity::_copy ( const Dtk_Entity s)
protectedinherited

◆ _copy() [2/2]

void Dtk_Object::_copy ( const Dtk_Object s)
protectedinherited

◆ _init()

void Dtk_Entity::_init ( )
protectedinherited

◆ _Init()

void Dtk_Coedge::_Init ( )
protected

◆ _reset()

void Dtk_Entity::_reset ( )
protectedinherited

◆ _Reset()

void Dtk_Coedge::_Reset ( )
protected

◆ _Store()

virtual Dtk_ErrorStatus Dtk_Coedge::_Store ( void *  )
virtual

Reimplemented from Dtk_Entity.

◆ Clone()

virtual Dtk_Object* Dtk_TopologicalEntity::Clone ( )
protectedvirtualinherited

Implements Dtk_Entity.

37 {return NULL;}

◆ Create()

static Dtk_CoedgePtr Dtk_Coedge::Create ( const Dtk_BodyPtr inParentBody)
static

Create a coedge in a body.

Parameters
[in]inParentBody: parent body
Returns
static Dtk_CoedgePtr

◆ DtkDynamicCast()

static Dtk_Coedge* Dtk_Coedge::DtkDynamicCast ( Dtk_Object inObject)
static

◆ DtkDynamicType()

int Dtk_Coedge::DtkDynamicType ( const int &  inId)
virtual

Get smart pointer type.

Parameters
[in]inId:
Returns
int

Reimplemented from Dtk_TopologicalEntity.

◆ dump()

virtual void Dtk_Object::dump ( FILE *  file = stdout)
virtualinherited

◆ get_info()

Dtk_InfoPtr Dtk_Entity::get_info ( ) const
inherited

◆ get_type_detk()

enum type_detk Dtk_Coedge::get_type_detk ( ) const
virtual

Return Type of entity.

Returns
enum type_detk

Reimplemented from Dtk_TopologicalEntity.

◆ GetAdjacentCoedge()

Dtk_ErrorStatus Dtk_Coedge::GetAdjacentCoedge ( const Dtk_Size_t inIndex,
Dtk_CoedgePtr outAdjacentCoedge 
) const

Get adjacent coedges from index.

Parameters
[in]:inIndexcoedge index
[out]:outAdjacentCoedgecoedge pointer
Returns
Dtk_ErrorStatus: dtkNoError if OK

◆ GetBasisSurface()

Dtk_ErrorStatus Dtk_Coedge::GetBasisSurface ( Dtk_SurfacePtr outBasisSurface) const

Get basis surface.

Parameters
[out]:outBasisSurface
Returns
Dtk_ErrorStatus: dtkNoError if OK

◆ GetEdge()

Dtk_ErrorStatus Dtk_Coedge::GetEdge ( Dtk_EdgePtr outEdge) const

Get Edge for coedge.

Parameters
[out]:outEdgeCorresponding Edge
Returns
Dtk_ErrorStatus: dtkNoError if OK

◆ GetGeom()

Dtk_CurvePtr Dtk_Coedge::GetGeom ( ) const

Get Geometry.

Returns
Dtk_CurvePtr

◆ GetID()

const Dtk_ID& Dtk_Entity::GetID ( ) const
inherited

Get Internal UniqueID.

Returns
InternalID

◆ GetNumAdjacentCoedges()

Dtk_Size_t Dtk_Coedge::GetNumAdjacentCoedges ( ) const

Get Number of adjacent coedges.

Returns
Number of adjacent coedges

◆ GetOrientation()

Dtk_bool Dtk_Coedge::GetOrientation ( ) const

Return orientation for coedge relative to Edge.

Returns
True if coedge and associated Edge has same sens

◆ GetParentFace()

Dtk_ErrorStatus Dtk_Coedge::GetParentFace ( Dtk_FacePtr outParentFace) const

Get parent face.

Parameters
[out]:outParentFace
Returns
Dtk_ErrorStatus: dtkNoError if OK

◆ GetParentLoop()

Dtk_ErrorStatus Dtk_Coedge::GetParentLoop ( Dtk_LoopPtr outParentLoop) const

Get parent loop.

Parameters
[out]:outParentLoop
Returns
Dtk_ErrorStatus: dtkNoError if OK

◆ GetSize()

virtual Dtk_Size_t Dtk_Coedge::GetSize ( ) const
virtual

Reimplemented from Dtk_Entity.

◆ GetTopoID()

Dtk_ID Dtk_Coedge::GetTopoID ( ) const
virtual

Reimplemented from Dtk_TopologicalEntity.

◆ HasDegeneratedFlag()

Dtk_bool Dtk_Coedge::HasDegeneratedFlag ( )

◆ info()

Dtk_InfoPtr& Dtk_Entity::info ( )
inherited

◆ IsDegenerated()

Dtk_bool Dtk_Coedge::IsDegenerated ( ) const

Indicates if Coedge is degenerated or not.

Returns
DTK_TRUE, DTK_FALSE, or DTK_BOOL_UNKNOWN

◆ PrepareTransfo()

virtual void Dtk_Entity::PrepareTransfo ( )
virtualinherited

Reimplemented in Dtk_OffsetSurface.

◆ SetDegeneratedFlag()

Dtk_ErrorStatus Dtk_Coedge::SetDegeneratedFlag ( )

Active Degenerated flag for coedge.

Returns
Dtk_ErrorStatus: dtkNoError if OK

◆ SetEdge() [1/2]

Dtk_ErrorStatus Dtk_Coedge::SetEdge ( const Dtk_EdgePtr inEdge)

Set Edge for coedge.

Parameters
[in]:inEdgeCorresponding Edge
Returns
Dtk_ErrorStatus: dtkNoError if OK

◆ SetEdge() [2/2]

Dtk_ErrorStatus Dtk_Coedge::SetEdge ( const Dtk_ID inEdgeId)

◆ SetGeom()

void Dtk_Coedge::SetGeom ( const Dtk_CurvePtr inCurveUV)

Set Geometry.

Parameters
[in]inCurveUV: Curve UV

◆ SetOrientation()

Dtk_ErrorStatus Dtk_Coedge::SetOrientation ( const Dtk_bool inOrientation)

Set orientation for coedge relative to Edge.

Parameters
[in]:inOrientationtrue if coedge and associated Edge has same sens
Returns
Dtk_ErrorStatus: dtkNoError if OK

◆ SetParentBody()

Dtk_ErrorStatus Dtk_Coedge::SetParentBody ( const Dtk_BodyPtr inParentBody)
virtual

Reimplemented from Dtk_TopologicalEntity.

◆ SetParentLoop() [1/2]

Dtk_ErrorStatus Dtk_Coedge::SetParentLoop ( const Dtk_ID inParentLoopId)

◆ SetParentLoop() [2/2]

Dtk_ErrorStatus Dtk_Coedge::SetParentLoop ( const Dtk_LoopPtr inParentLoop)

Set parent loop.

Parameters
[in]:inParentLoop
Returns
Dtk_ErrorStatus: dtkNoError if OK

◆ Transform()

virtual Dtk_ErrorStatus Dtk_TopologicalEntity::Transform ( const Dtk_transfo inTransfo)
virtualinherited

Transform object.

Parameters
[in]inTransfo: matrix to apply
Returns
Dtk_ErrorStatus

Implements Dtk_Entity.

Friends And Related Function Documentation

◆ Dtk_SmartPtr< Dtk_Coedge >

friend class Dtk_SmartPtr< Dtk_Coedge >
friend

◆ Dtk_TopologicalEntity

friend class Dtk_TopologicalEntity
friend

Field Documentation

◆ _Private

Dtk_Handle* Dtk_Coedge::_Private
protected

◆ count_

unsigned long Dtk_Object::count_
protectedinherited
DTK_TYPE_ENTITY
@ DTK_TYPE_ENTITY
Definition: define.h:466
Dtk_TopologicalEntity::_typeID
@ _typeID
Definition: util_topology_dtk.hpp:29
Dtk_Coedge::_typeID
@ _typeID
Definition: util_topology_dtk.hpp:279
DTK_TYPE_COEDGE
@ DTK_TYPE_COEDGE
Definition: define.h:493
Dtk_Entity::_typeID
@ _typeID
Definition: util_ent_dtk.hpp:333
DTK_TYPE_TOPOLOGICAL_REPRESENTATION_ITEM
@ DTK_TYPE_TOPOLOGICAL_REPRESENTATION_ITEM
Definition: define.h:167