Public Member Functions | List of all members
iedge::CEdgeNode Class Reference

Description of single node of the edge. More...

#include <CEdgeNode.h>

Inheritance diagram for iedge::CEdgeNode:
iser::ISerializable istd::IChangeable istd::IPolymorphic

Public Member Functions

 CEdgeNode ()
 
 CEdgeNode (const i2d::CVector2d &position, double weight)
 
const i2d::CVector2dGetPosition () const
 Get position of node. More...
 
void SetPosition (const i2d::CVector2d &position)
 Set position of node. More...
 
double GetWeight () const
 Get node weight. More...
 
void SetWeight (double weight)
 Set node weight. More...
 
virtual bool Serialize (iser::IArchive &archive)
 

Detailed Description

Description of single node of the edge.

Node has position and weight.

Definition at line 18 of file CEdgeNode.h.

Constructor & Destructor Documentation

iedge::CEdgeNode::CEdgeNode ( )
iedge::CEdgeNode::CEdgeNode ( const i2d::CVector2d position,
double  weight 
)

Member Function Documentation

const i2d::CVector2d & iedge::CEdgeNode::GetPosition ( ) const
inline

Get position of node.

Definition at line 61 of file CEdgeNode.h.

double iedge::CEdgeNode::GetWeight ( ) const
inline

Get node weight.

This value should be normalized (range [0, 1]).

Definition at line 73 of file CEdgeNode.h.

virtual bool iedge::CEdgeNode::Serialize ( iser::IArchive archive)
virtual
void iedge::CEdgeNode::SetPosition ( const i2d::CVector2d position)
inline

Set position of node.

Definition at line 67 of file CEdgeNode.h.

void iedge::CEdgeNode::SetWeight ( double  weight)
inline

Set node weight.

This value should be normalized (range [0, 1]).

Definition at line 79 of file CEdgeNode.h.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy