Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
xcast-coefficients.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_XCAST_COEFFICIENTS_H__
22#define __ANTARES_TOOLBOX_COMPONENT_DATAGRID_RENDERER_AREA_XCAST_COEFFICIENTS_H__
23
24#include "../area.h"
25#include "../matrix.h"
26
27namespace Antares
28{
29namespace Component
30{
31namespace Datagrid
32{
33namespace Renderer
34{
35template<enum Data::TimeSeriesType T>
37{
38public:
41
42public:
44
45
49 XCastCoefficients(wxWindow* control, Toolbox::InputSelector::Area* notifier);
50
52 virtual ~XCastCoefficients();
54
55 virtual int width() const
56 {
58 }
59 virtual int height() const
60 {
62 }
63
64 virtual wxString columnCaption(int colIndx) const;
65
66 virtual wxString rowCaption(int rowIndx) const;
67
68 virtual wxString cellValue(int x, int y) const;
69
70 virtual double cellNumericValue(int x, int y) const;
71
72 virtual bool cellValue(int x, int y, const Yuni::String& value);
73
74 virtual void resetColors(int, int, wxColour&, wxColour&) const
75 { /*Do nothing*/
76 }
77
78 virtual IRenderer::CellStyle cellStyle(int col, int row) const;
79
80 virtual uint maxWidthResize() const
81 {
82 return 0;
83 }
84 virtual bool valid() const
85 {
86 return MatrixAncestorType::valid();
87 }
88
89 virtual Date::Precision precision();
90
91protected:
92 virtual void internalAreaChanged(Data::Area* area);
94 virtual void onStudyClosed() override;
96 virtual void onStudyLoaded() override;
97
98}; // class XCastCoefficients
99
100} // namespace Renderer
101} // namespace Datagrid
102} // namespace Component
103} // namespace Antares
104
105#include "xcast-coefficients.hxx"
106
107#endif // __ANTARES_TOOLBOX_COMPONENT_DATAGRID_RENDERER_AREA_XCAST_COEFFICIENTS_H__
virtual int width() const override
Definition matrix.hxx:63
virtual int height() const override
Definition matrix.hxx:69
virtual wxString columnCaption(int colIndx) const
Get the column caption.
Definition xcast-coefficients.hxx:47
virtual int width() const
Get the width of the datagrid.
Definition xcast-coefficients.h:55
virtual double cellNumericValue(int x, int y) const
Get the value of a cell.
Definition xcast-coefficients.hxx:65
virtual uint maxWidthResize() const
The most suitable column count.
Definition xcast-coefficients.h:80
virtual ~XCastCoefficients()
Destructor.
Definition xcast-coefficients.hxx:41
XCastCoefficients(wxWindow *control, Toolbox::InputSelector::Area *notifier)
Constructor.
Definition xcast-coefficients.hxx:34
virtual wxString rowCaption(int rowIndx) const
Get the row caption.
Definition xcast-coefficients.hxx:334
virtual int height() const
Get the height of the datagrid.
Definition xcast-coefficients.h:59
virtual void onStudyClosed() override
Event: the study has been closed.
Definition xcast-coefficients.hxx:348
virtual void onStudyLoaded() override
Event: the study has been loaded.
Definition xcast-coefficients.hxx:355
virtual Date::Precision precision()
Time Precision.
Definition xcast-coefficients.hxx:342
virtual wxString cellValue(int x, int y) const
Get the value of a cell.
Definition xcast-coefficients.hxx:59
Definition for a single area.
Definition area.h:52
A n-by-n matrix.
Definition jit.h:30
Visual Component for displaying all available areas (and groups)
Definition area.h:41