Power System Platform  2026w23a-beta
Loading...
Searching...
No Matches
PropertiesData Class Reference

General and simulation data manager. More...

#include <PropertiesData.h>

Collaboration diagram for PropertiesData:

Public Member Functions

GUIColourGetGUIColour ()
 
void SetGUIColourTheme ()
 
SimulationData GetSimulationPropertiesData () const
 
void SetSimulationPropertiesData (SimulationData simulationData)
 
GeneralData GetGeneralPropertiesData () const
 
void SetGeneralPropertiesData (GeneralData generalData)
 
void SetFreqRespData (const FreqResponseData &freqRespData)
 
const FreqResponseDataGetFreqRespData () const
 

Protected Attributes

GUIColour m_guiColour
 
SimulationData m_simulData
 
GeneralData m_genData
 
FreqResponseData m_freqRespData
 

Detailed Description

General and simulation data manager.

Author
Thales Lima Oliveira thale.nosp@m.s@uf.nosp@m.u.br
Date
06/10/2017

Definition at line 102 of file PropertiesData.h.

Constructor & Destructor Documentation

◆ PropertiesData()

PropertiesData::PropertiesData ( )

Definition at line 22 of file PropertiesData.cpp.

22{ SetGUIColourTheme(); }

◆ ~PropertiesData()

PropertiesData::~PropertiesData ( )

Definition at line 23 of file PropertiesData.cpp.

23{}

Member Function Documentation

◆ GetFreqRespData()

const FreqResponseData & PropertiesData::GetFreqRespData ( ) const
inline

Definition at line 116 of file PropertiesData.h.

116{ return m_freqRespData; }

◆ GetGeneralPropertiesData()

GeneralData PropertiesData::GetGeneralPropertiesData ( ) const
inline

Definition at line 112 of file PropertiesData.h.

112{ return m_genData; }

◆ GetGUIColour()

GUIColour * PropertiesData::GetGUIColour ( )
inline

Definition at line 108 of file PropertiesData.h.

108{ return &m_guiColour; }

◆ GetSimulationPropertiesData()

SimulationData PropertiesData::GetSimulationPropertiesData ( ) const
inline

Definition at line 110 of file PropertiesData.h.

110{ return m_simulData; }

◆ SetFreqRespData()

void PropertiesData::SetFreqRespData ( const FreqResponseData freqRespData)
inline

Definition at line 115 of file PropertiesData.h.

115{ this->m_freqRespData = freqRespData; }

◆ SetGeneralPropertiesData()

void PropertiesData::SetGeneralPropertiesData ( GeneralData  generalData)
inline

Definition at line 113 of file PropertiesData.h.

113{ m_genData = generalData; }

◆ SetGUIColourTheme()

void PropertiesData::SetGUIColourTheme ( )

Definition at line 25 of file PropertiesData.cpp.

26{
27 if (m_genData.theme == THEME_LIGHT)
28 {
29 m_guiColour.background = wxColour(250, 249, 246);
30
31 m_guiColour.text = wxColour(35, 35, 35);
32 m_guiColour.enabled = wxColour(20, 20, 20);
33 m_guiColour.disable = wxColour(145, 145, 145);
34
35 m_guiColour.selection = wxColour(40, 120, 255, 90);
36 m_guiColour.altSelection = wxColour(40, 200, 70, 90);
37
38 m_guiColour.bus = wxColour(40, 105, 235);
39 m_guiColour.slackBus = wxColour(40, 105, 235);
40
41 m_guiColour.eventElement = wxColour(255, 120, 0);
42 m_guiColour.pfArrow = wxColour(255, 120, 0);
43
44 m_guiColour.swClose = wxColour(35, 150, 45);
45 m_guiColour.swOpen = wxColour(225, 55, 55);
46 }
47 else if (m_genData.theme == THEME_DARK)
48 {
49 m_guiColour.background = wxColour(43, 46, 52);
50
51 m_guiColour.text = wxColour(205, 210, 215);
52 m_guiColour.enabled = wxColour(220, 224, 228);
53 m_guiColour.disable = wxColour(125, 130, 136);
54
55 m_guiColour.selection = wxColour(70, 140, 255, 90);
56 m_guiColour.altSelection = wxColour(70, 200, 90, 90);
57
58 m_guiColour.bus = wxColour(70, 135, 255);
59 m_guiColour.slackBus = wxColour(95, 155, 255);
60
61 m_guiColour.eventElement = wxColour(240, 165, 60);
62 m_guiColour.pfArrow = wxColour(240, 165, 60);
63
64 m_guiColour.swClose = wxColour(60, 180, 70);
65 m_guiColour.swOpen = wxColour(235, 85, 85);
66 }
67}

◆ SetSimulationPropertiesData()

void PropertiesData::SetSimulationPropertiesData ( SimulationData  simulationData)
inline

Definition at line 111 of file PropertiesData.h.

111{ m_simulData = simulationData; }

Member Data Documentation

◆ m_freqRespData

FreqResponseData PropertiesData::m_freqRespData
protected

Definition at line 122 of file PropertiesData.h.

◆ m_genData

GeneralData PropertiesData::m_genData
protected

Definition at line 121 of file PropertiesData.h.

◆ m_guiColour

GUIColour PropertiesData::m_guiColour
protected

Definition at line 119 of file PropertiesData.h.

◆ m_simulData

SimulationData PropertiesData::m_simulData
protected

Definition at line 120 of file PropertiesData.h.


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