![]() |
Power System Platform
2026w10a-beta
|
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 |
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 |
Node of a control element. This class manages the user interaction with the connection and control elements.
Definition at line 30 of file ControlElement.h.
|
strong |
Definition at line 33 of file ControlElement.h.
| Node::Node | ( | wxPoint2DDouble | position = wxPoint2DDouble(0, 0), |
| NodeType | nodeType = NodeType::NODE_IN, |
||
| double | borderSize = 0.0 |
||
| ) |
Definition at line 23 of file ControlElement.cpp.
| Node::~Node | ( | ) |
Definition at line 34 of file ControlElement.cpp.
| bool Node::Contains | ( | wxPoint2DDouble | position | ) | const |
Definition at line 98 of file ControlElement.cpp.
|
inline |
Definition at line 47 of file ControlElement.h.
| Node * Node::GetCopy | ( | ) | const |
Definition at line 104 of file ControlElement.cpp.
|
inline |
Definition at line 59 of file ControlElement.h.
|
inline |
Definition at line 46 of file ControlElement.h.
|
inline |
Definition at line 43 of file ControlElement.h.
| wxPoint2DDouble Node::GetPosition | ( | ) | const |
Definition at line 54 of file ControlElement.cpp.
|
inline |
Definition at line 45 of file ControlElement.h.
|
inline |
Definition at line 38 of file ControlElement.h.
|
inline |
Definition at line 57 of file ControlElement.h.
| void Node::Move | ( | wxPoint2DDouble | position | ) |
Definition at line 53 of file ControlElement.cpp.
| void Node::Rotate | ( | bool | clockwise = true | ) |
Definition at line 78 of file ControlElement.cpp.
| void Node::RotateTriPt | ( | double | angle | ) |
Definition at line 59 of file ControlElement.cpp.
|
inline |
Definition at line 48 of file ControlElement.h.
|
inline |
Definition at line 58 of file ControlElement.h.
|
inline |
Definition at line 60 of file ControlElement.h.
|
inline |
Definition at line 44 of file ControlElement.h.
| void Node::SetPosition | ( | wxPoint2DDouble | position | ) |
Definition at line 35 of file ControlElement.cpp.
|
inline |
Definition at line 39 of file ControlElement.h.
| void Node::StartMove | ( | wxPoint2DDouble | position | ) |
Definition at line 47 of file ControlElement.cpp.
|
protected |
Definition at line 76 of file ControlElement.h.
|
protected |
Definition at line 69 of file ControlElement.h.
|
protected |
Definition at line 64 of file ControlElement.h.
|
protected |
Definition at line 72 of file ControlElement.h.
|
protected |
Definition at line 71 of file ControlElement.h.
|
protected |
Definition at line 67 of file ControlElement.h.
|
protected |
Definition at line 74 of file ControlElement.h.
|
protected |
Definition at line 66 of file ControlElement.h.
|
protected |
Definition at line 75 of file ControlElement.h.