PSP-UFU  2017w37a
Power System Platform (UFU)
Public Types | Public Member Functions | Protected Attributes | List of all members
Node Class Reference

Public Types

enum  NodeType { NODE_IN = 0, NODE_OUT }
 

Public Member Functions

 Node (wxPoint2DDouble position=wxPoint2DDouble(0, 0), NodeType nodeType=NODE_IN, double borderSize=0.0)
 
wxRect2DDouble GetRect () const
 
void SetRect (wxRect2DDouble rect)
 
wxPoint2DDouble GetPosition () const
 
void SetPosition (wxPoint2DDouble position)
 
NodeType GetNodeType () const
 
void SetNodeType (NodeType nodeType)
 
double GetRadius () const
 
std::vector< wxPoint2DDouble > GetInTrianglePts () const
 
double GetAngle () const
 
void SetAngle (double angle)
 
void Rotate (bool clockwise=true)
 
void RotateTriPt (double angle)
 
void StartMove (wxPoint2DDouble position)
 
void Move (wxPoint2DDouble position)
 
bool Contains (wxPoint2DDouble position) const
 
bool IsConnected () const
 
void SetConnected (bool connected=true)
 
int GetID () const
 
void SetID (int id)
 

Protected Attributes

int m_id = -1
 
wxRect2DDouble m_rect
 
NodeType m_nodeType
 
bool m_connected = false
 
wxPoint2DDouble m_moveStartPt
 
wxPoint2DDouble m_movePos
 
double m_radius = 3.0
 
std::vector< wxPoint2DDouble > m_triPts
 
double m_angle = 0.0
 

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