DATAKIT API  V2025.4
Dtk_Leader::ArrowHead Class Reference

This class graphically represents a leader head. More...

Public Member Functions

 ArrowHead ()
 Default constructor. More...
 
 ArrowHead (const Dtk_Double64 inWidth, const Dtk_Double64 inHeight, const Dtk_pnt &inArrowLocation, const LeaderTerminatorTypeEnum inTerminatorType, const Dtk_InfoPtr &inInfos, const Dtk_dir &inRefDir, const Dtk_dir &inAxisDir)
 
void CreateGeometries (Dtk_tab< Dtk_CurvePtr > &outRes) const
 
const Dtk_pntGetArrowLocation () const
 
void GetDirections (Dtk_dir &outRefDir, Dtk_dir &outAxisDir) const
 
Dtk_InfoPtrGetInfo ()
 
const Dtk_InfoPtrGetInfo () const
 
const LeaderTerminatorTypeEnum GetType () const
 
void GetWidthHeight (Dtk_Double64 &outWidth, Dtk_Double64 &outHeight) const
 
ArrowHeadoperator= (const ArrowHead &in)
 Copy assignment operator. More...
 
void SetData (const Dtk_Double64 inWidth, const Dtk_Double64 inHeight, const Dtk_pnt &inArrowLocation, const LeaderTerminatorTypeEnum inTerminatorType, const Dtk_InfoPtr &inInfos, const Dtk_dir &inRefDir, const Dtk_dir &inAxisDir)
 
void SetType (const LeaderTerminatorTypeEnum inTerminatorType)
 
void SetWidthHeight (const Dtk_Double64 inWidth, const Dtk_Double64 inHeight)
 
Dtk_ErrorStatus Transform (const Dtk_transfo &inTransfo)
 Applies a transformation matrix to the ApplicationZone. More...
 
Dtk_ErrorStatus Translate (const Dtk_dir &inTranslateDir)
 Translates the ApplicationZone giving a translation vector. More...
 
 ~ArrowHead ()
 Destructor. More...
 

Protected Member Functions

void _Copy (const ArrowHead &s)
 
void _Init ()
 
void _Reset ()
 

Protected Attributes

Dtk_pnt m_ArrowLocation
 
Dtk_dir m_AxisDir
 
LeaderTerminatorTypeEnum m_HeadType
 
Dtk_InfoPtr m_Infos
 
Dtk_dir m_RefDir
 

Detailed Description

This class graphically represents a leader head.

Constructor & Destructor Documentation

◆ ArrowHead() [1/2]

Dtk_Leader::ArrowHead::ArrowHead ( const Dtk_Double64  inWidth,
const Dtk_Double64  inHeight,
const Dtk_pnt inArrowLocation,
const LeaderTerminatorTypeEnum  inTerminatorType,
const Dtk_InfoPtr inInfos,
const Dtk_dir inRefDir,
const Dtk_dir inAxisDir 
)

◆ ArrowHead() [2/2]

Dtk_Leader::ArrowHead::ArrowHead ( )

Default constructor.

◆ ~ArrowHead()

Dtk_Leader::ArrowHead::~ArrowHead ( )

Destructor.

Member Function Documentation

◆ _Copy()

void Dtk_Leader::ArrowHead::_Copy ( const ArrowHead s)
protected

◆ _Init()

void Dtk_Leader::ArrowHead::_Init ( )
protected

◆ _Reset()

void Dtk_Leader::ArrowHead::_Reset ( )
protected

◆ CreateGeometries()

void Dtk_Leader::ArrowHead::CreateGeometries ( Dtk_tab< Dtk_CurvePtr > &  outRes) const

◆ GetArrowLocation()

const Dtk_pnt& Dtk_Leader::ArrowHead::GetArrowLocation ( ) const

◆ GetDirections()

void Dtk_Leader::ArrowHead::GetDirections ( Dtk_dir outRefDir,
Dtk_dir outAxisDir 
) const

◆ GetInfo() [1/2]

Dtk_InfoPtr& Dtk_Leader::ArrowHead::GetInfo ( )

◆ GetInfo() [2/2]

const Dtk_InfoPtr& Dtk_Leader::ArrowHead::GetInfo ( ) const

◆ GetType()

const LeaderTerminatorTypeEnum Dtk_Leader::ArrowHead::GetType ( ) const

◆ GetWidthHeight()

void Dtk_Leader::ArrowHead::GetWidthHeight ( Dtk_Double64 outWidth,
Dtk_Double64 outHeight 
) const

◆ operator=()

ArrowHead& Dtk_Leader::ArrowHead::operator= ( const ArrowHead in)

Copy assignment operator.

Parameters
inObject to copy from.

◆ SetData()

void Dtk_Leader::ArrowHead::SetData ( const Dtk_Double64  inWidth,
const Dtk_Double64  inHeight,
const Dtk_pnt inArrowLocation,
const LeaderTerminatorTypeEnum  inTerminatorType,
const Dtk_InfoPtr inInfos,
const Dtk_dir inRefDir,
const Dtk_dir inAxisDir 
)

◆ SetType()

void Dtk_Leader::ArrowHead::SetType ( const LeaderTerminatorTypeEnum  inTerminatorType)

◆ SetWidthHeight()

void Dtk_Leader::ArrowHead::SetWidthHeight ( const Dtk_Double64  inWidth,
const Dtk_Double64  inHeight 
)

◆ Transform()

Dtk_ErrorStatus Dtk_Leader::ArrowHead::Transform ( const Dtk_transfo inTransfo)

Applies a transformation matrix to the ApplicationZone.

Parameters
inTransfoThe transformation matrix
Returns
dtkNoError if OK

◆ Translate()

Dtk_ErrorStatus Dtk_Leader::ArrowHead::Translate ( const Dtk_dir inTranslateDir)

Translates the ApplicationZone giving a translation vector.

Parameters
inTranslateDirthe translation vector
Returns
dtkNoError if OK

Field Documentation

◆ m_ArrowLocation

Dtk_pnt Dtk_Leader::ArrowHead::m_ArrowLocation
protected

◆ m_AxisDir

Dtk_dir Dtk_Leader::ArrowHead::m_AxisDir
protected

◆ m_HeadType

LeaderTerminatorTypeEnum Dtk_Leader::ArrowHead::m_HeadType
protected

◆ m_Infos

Dtk_InfoPtr Dtk_Leader::ArrowHead::m_Infos
protected

◆ m_RefDir

Dtk_dir Dtk_Leader::ArrowHead::m_RefDir
protected