Power System Platform  2026w34a-beta
Loading...
Searching...
No Matches
ElementPlotData Class Reference

Public Types

enum class  CurveType : int {
  CT_BUS = 0 , CT_SYNC_GENERATOR , CT_SYNC_COMPENSATOR , CT_TRANSFORMER ,
  CT_LINE , CT_IND_MOTOR , CT_SHUNT_INDUCTOR , CT_SHUNT_CAPACITOR ,
  CT_LOAD , CT_TEST , NUM_ELEMENTS , CT_TIME
}

Public Member Functions

 ElementPlotData (wxString name, CurveType curveType)
wxString GetName () const
void SetName (wxString name)
CurveType GetCurveType () const
void SetCurveType (CurveType type)
PlotData * GetPlotData (int index) const
void AddData (std::vector< double > values, wxString name)
int GetElementDataNumber () const
std::vector< double > GetValues (int index) const
void SetValues (int index, std::vector< double > values)
void SetPlot (int index, bool plot=true)
wxString GetDataName (int index) const
void SetDataName (int index, wxString name)
wxColour GetColour (int index) const
void SetColour (int index, wxColour colour)
int GetThick (int index) const
void SetThick (int index, int thick)
wxPenStyle GetPenType (int index) const
void SetPenType (int index, wxPenStyle penType)
int GetAxis (int index) const
void SetAxis (int index, int axis)

Protected Attributes

wxString m_name
CurveType m_curveType
std::vector< PlotData * > m_elementData

Detailed Description

Definition at line 67 of file ElementPlotData.h.

Member Enumeration Documentation

◆ CurveType

enum class ElementPlotData::CurveType : int
strong

Definition at line 70 of file ElementPlotData.h.

70 : int {
71 CT_BUS = 0,
72 CT_SYNC_GENERATOR,
73 CT_SYNC_COMPENSATOR,
74 CT_TRANSFORMER,
75 CT_LINE,
76 CT_IND_MOTOR,
77 CT_SHUNT_INDUCTOR,
78 CT_SHUNT_CAPACITOR,
79 CT_LOAD,
80 CT_TEST,
81 NUM_ELEMENTS,
82 CT_TIME
83 };

Constructor & Destructor Documentation

◆ ElementPlotData() [1/2]

ElementPlotData::ElementPlotData ( )
inline

Definition at line 84 of file ElementPlotData.h.

84{};

◆ ElementPlotData() [2/2]

ElementPlotData::ElementPlotData ( wxString name,
CurveType curveType )

Definition at line 20 of file ElementPlotData.cpp.

21{
22 m_name = name;
23 m_curveType = curveType;
24}

◆ ~ElementPlotData()

ElementPlotData::~ElementPlotData ( )

Definition at line 26 of file ElementPlotData.cpp.

26{}

Member Function Documentation

◆ AddData()

void ElementPlotData::AddData ( std::vector< double > values,
wxString name )

Definition at line 27 of file ElementPlotData.cpp.

28{
29 PlotData* data = new PlotData();
30 data->SetName(name);
31 data->SetValues(values);
32 data->SetPlot(false);
33 data->SetAxis(0);
34 data->SetColour(*wxBLACK);
35 data->SetPenType(wxPENSTYLE_SOLID);
36 data->SetThick(2);
37
38 m_elementData.push_back(data);
39}

◆ GetAxis()

int ElementPlotData::GetAxis ( int index) const
inline

Definition at line 107 of file ElementPlotData.h.

107{ return m_elementData[index]->GetAxis(); }

◆ GetColour()

wxColour ElementPlotData::GetColour ( int index) const
inline

Definition at line 101 of file ElementPlotData.h.

101{ return m_elementData[index]->GetColour(); }

◆ GetCurveType()

CurveType ElementPlotData::GetCurveType ( ) const
inline

Definition at line 90 of file ElementPlotData.h.

90{ return m_curveType; }

◆ GetDataName()

wxString ElementPlotData::GetDataName ( int index) const
inline

Definition at line 99 of file ElementPlotData.h.

99{ return m_elementData[index]->GetName(); }

◆ GetElementDataNumber()

int ElementPlotData::GetElementDataNumber ( ) const
inline

Definition at line 95 of file ElementPlotData.h.

95{ return static_cast<int>(m_elementData.size()); }

◆ GetName()

wxString ElementPlotData::GetName ( ) const
inline

Definition at line 88 of file ElementPlotData.h.

88{ return m_name; }

◆ GetPenType()

wxPenStyle ElementPlotData::GetPenType ( int index) const
inline

Definition at line 105 of file ElementPlotData.h.

105{ return m_elementData[index]->GetPenType(); }

◆ GetPlotData()

PlotData * ElementPlotData::GetPlotData ( int index) const
inline

Definition at line 92 of file ElementPlotData.h.

92{ return m_elementData[index]; }

◆ GetThick()

int ElementPlotData::GetThick ( int index) const
inline

Definition at line 103 of file ElementPlotData.h.

103{ return m_elementData[index]->GetThick(); }

◆ GetValues()

std::vector< double > ElementPlotData::GetValues ( int index) const
inline

Definition at line 96 of file ElementPlotData.h.

96{ return m_elementData[index]->GetValues(); }

◆ SetAxis()

void ElementPlotData::SetAxis ( int index,
int axis )
inline

Definition at line 108 of file ElementPlotData.h.

108{ m_elementData[index]->SetAxis(axis); }

◆ SetColour()

void ElementPlotData::SetColour ( int index,
wxColour colour )
inline

Definition at line 102 of file ElementPlotData.h.

102{ m_elementData[index]->SetColour(colour); }

◆ SetCurveType()

void ElementPlotData::SetCurveType ( CurveType type)
inline

Definition at line 91 of file ElementPlotData.h.

91{ m_curveType = type; }

◆ SetDataName()

void ElementPlotData::SetDataName ( int index,
wxString name )
inline

Definition at line 100 of file ElementPlotData.h.

100{ m_elementData[index]->SetName(name); }

◆ SetName()

void ElementPlotData::SetName ( wxString name)
inline

Definition at line 89 of file ElementPlotData.h.

89{ m_name = name; }

◆ SetPenType()

void ElementPlotData::SetPenType ( int index,
wxPenStyle penType )
inline

Definition at line 106 of file ElementPlotData.h.

106{ m_elementData[index]->SetPenType(penType); }

◆ SetPlot()

void ElementPlotData::SetPlot ( int index,
bool plot = true )
inline

Definition at line 98 of file ElementPlotData.h.

98{ m_elementData[index]->SetPlot(plot); }

◆ SetThick()

void ElementPlotData::SetThick ( int index,
int thick )
inline

Definition at line 104 of file ElementPlotData.h.

104{ m_elementData[index]->SetThick(thick); }

◆ SetValues()

void ElementPlotData::SetValues ( int index,
std::vector< double > values )
inline

Definition at line 97 of file ElementPlotData.h.

97{ m_elementData[index]->SetValues(values); }

Member Data Documentation

◆ m_curveType

CurveType ElementPlotData::m_curveType
protected

Definition at line 111 of file ElementPlotData.h.

◆ m_elementData

std::vector<PlotData*> ElementPlotData::m_elementData
protected

Definition at line 112 of file ElementPlotData.h.

◆ m_name

wxString ElementPlotData::m_name
protected

Definition at line 110 of file ElementPlotData.h.


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