Power System Platform
2024w23a
|
Node of a control element. This class manages the user interaction with the connection and control elements. More...
#include <ControlElement.h>
Public Types | |
enum class | NodeType { NODE_IN = 0 , NODE_OUT } |
Public Member Functions | |
Node (wxPoint2DDouble position=wxPoint2DDouble(0, 0), NodeType 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) |
Node * | GetCopy () const |
Node of a control element. This class manages the user interaction with the connection and control elements.