Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
thermalmodulation.h
1/*
2** Copyright 2007-2024, RTE (https://www.rte-france.com)
3** See AUTHORS.txt
4** SPDX-License-Identifier: MPL-2.0
5** This file is part of Antares-Simulator,
6** Adequacy and Performance assessment for interconnected energy networks.
7**
8** Antares_Simulator is free software: you can redistribute it and/or modify
9** it under the terms of the Mozilla Public Licence 2.0 as published by
10** the Mozilla Foundation, either version 2 of the License, or
11** (at your option) any later version.
12**
13** Antares_Simulator is distributed in the hope that it will be useful,
14** but WITHOUT ANY WARRANTY; without even the implied warranty of
15** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16** Mozilla Public Licence 2.0 for more details.
17**
18** You should have received a copy of the Mozilla Public Licence 2.0
19** along with Antares_Simulator. If not, see <https://opensource.org/license/mpl-2-0/>.
20*/
21#ifndef __ANTARES_TOOLBOX_COMPONENT_DATAGRID_RENDERER_AREA_THERMAL_COMMON_MODULATION_H__
22#define __ANTARES_TOOLBOX_COMPONENT_DATAGRID_RENDERER_AREA_THERMAL_COMMON_MODULATION_H__
23
24#include "../../../../input/thermal-cluster.h"
25#include "../matrix.h"
26#include <antares/solver/ts-generator/prepro.h>
27
28namespace Antares
29{
30namespace Component
31{
32namespace Datagrid
33{
34namespace Renderer
35{
37{
38public:
40
41public:
42 ThermalClusterCommonModulation(wxWindow* control,
44
46
47 virtual int width() const
48 {
49 return AncestorType::width() + 4;
50 }
51
52 virtual int height() const
53 {
54 return AncestorType::height();
55 }
56
57 virtual wxString columnCaption(int column) const;
58
59 virtual wxString rowCaption(int row) const;
60
61 virtual wxString cellValue(int x, int y) const;
62
63 virtual double cellNumericValue(int x, int y) const;
64
65 virtual bool cellValue(int x, int y, const Yuni::String& v);
66
67 virtual void resetColors(int, int, wxColour&, wxColour&) const
68 { /*Do nothing*/
69 }
70
71 virtual wxColour verticalBorderColor(int x, int y) const;
72 virtual wxColour horizontalBorderColor(int x, int y) const;
73
74 virtual IRenderer::CellStyle cellStyle(int col, int row) const;
75
76 virtual uint maxWidthResize() const
77 {
78 return 0;
79 }
80 virtual uint maxHeightResize() const
81 {
82 return 0;
83 }
84
85 virtual Date::Precision precision()
86 {
87 return Date::hourly;
88 }
89
90protected:
91 virtual void internalThermalClusterChanged(Antares::Data::ThermalCluster* cluster);
92 virtual void onStudyClosed();
93
94private:
96
97}; // class ThermalClusterPrepro
98
99} // namespace Renderer
100} // namespace Datagrid
101} // namespace Component
102} // namespace Antares
103
104#endif // __ANTARES_TOOLBOX_COMPONENT_DATAGRID_RENDERER_AREA_THERMAL_COMMON_MODULATION_H__
virtual int width() const
Get the width of the datagrid.
Definition thermalmodulation.h:47
virtual wxString rowCaption(int row) const
Get the row caption.
Definition thermalmodulation.cpp:48
virtual Date::Precision precision()
Time Precision.
Definition thermalmodulation.h:85
virtual int height() const
Get the height of the datagrid.
Definition thermalmodulation.h:52
virtual wxString cellValue(int x, int y) const
Get the value of a cell.
Definition thermalmodulation.cpp:81
virtual wxColour horizontalBorderColor(int x, int y) const
Get the color of the horizontal bottom border.
Definition thermalmodulation.cpp:183
virtual wxColour verticalBorderColor(int x, int y) const
Get the color of the vertical right border.
Definition thermalmodulation.cpp:178
virtual uint maxWidthResize() const
The most suitable column count.
Definition thermalmodulation.h:76
virtual double cellNumericValue(int x, int y) const
Get the value of a cell.
Definition thermalmodulation.cpp:117
virtual uint maxHeightResize() const
The most suitable column count.
Definition thermalmodulation.h:80
virtual bool cellValue(int x, int y, const Yuni::String &v)
Set the value of a cell.
virtual wxString columnCaption(int column) const
Get the column caption.
Definition thermalmodulation.cpp:55
virtual void onStudyClosed()
Event: the study has been closed.
Definition thermalmodulation.cpp:250
A single thermal cluster.
Definition cluster.h:78
A n-by-n matrix.
Definition jit.h:30
uint width
Width of the matrix.
Definition matrix.h:441
uint height
Height of the matrix.
Definition matrix.h:443
Visual Component for displaying thermal clusters of an arbitrary area.
Definition thermal-cluster.h:49