22#include <antares/study/xcast/xcast.h>
32template<enum Data::TimeSeriesType T>
38template<enum Data::TimeSeriesType T>
44template<enum Data::TimeSeriesType T>
47 return (colIndx < 12) ? wxStringFromUTF8(Date::MonthToString(colIndx)) << wxT(
" ")
51template<enum Data::TimeSeriesType T>
54 return MatrixAncestorType::cellValue(x, y);
57template<enum Data::TimeSeriesType T>
60 return MatrixAncestorType::cellNumericValue(x, y);
63template<enum Data::TimeSeriesType T>
66 return MatrixAncestorType::cellValue(x, y, value);
69template<enum Data::TimeSeriesType T>
74 auto* xcastData = area->xcastData<T>();
75 this->matrix(&(xcastData->K));
78 this->matrix(
nullptr);
80 Renderer::ARendererArea::internalAreaChanged(area);
83template<enum Data::TimeSeriesType T>
84inline IRenderer::CellStyle XCastK<T>::cellStyle(
int col,
int row)
const
86 return MatrixAncestorType::cellStyle(col, row);
89template<enum Data::TimeSeriesType T>
92 return wxString() << rowIndx;
95template<enum Data::TimeSeriesType T>
98 return MatrixAncestorType::width();
101template<enum Data::TimeSeriesType T>
104 return MatrixAncestorType::height();
107template<enum Data::TimeSeriesType T>
113template<enum Data::TimeSeriesType T>
116 return MatrixAncestorType::valid();
119template<enum Data::TimeSeriesType T>
126template<enum Data::TimeSeriesType T>
virtual void onStudyClosed() override
The study has been closed.
Definition area.cpp:83
virtual void onStudyLoaded() override
Event: the study has been loaded.
Definition area.cpp:89
virtual void onStudyLoaded() override
Event: the study has been loaded.
Definition matrix.hxx:244
virtual void onStudyClosed() override
Event: the study has been closed.
Definition matrix.hxx:238
XCastK(wxWindow *control, Toolbox::InputSelector::Area *notifier)
Constructor.
Definition xcast-k.hxx:33
virtual void onStudyClosed() override
Event: the study has been closed.
Definition xcast-k.hxx:120
virtual wxString rowCaption(int rowIndx) const
Get the row caption.
Definition xcast-k.hxx:90
virtual double cellNumericValue(int x, int y) const
Get the value of a cell.
Definition xcast-k.hxx:58
virtual wxString cellValue(int x, int y) const
Get the value of a cell.
Definition xcast-k.hxx:52
virtual int width() const
Get the width of the datagrid.
Definition xcast-k.hxx:96
virtual uint maxWidthResize() const
The most suitable column count.
Definition xcast-k.hxx:108
virtual int height() const
Get the height of the datagrid.
Definition xcast-k.hxx:102
virtual void onStudyLoaded() override
Event: the study has been loaded.
Definition xcast-k.hxx:127
virtual ~XCastK()
Destructor.
Definition xcast-k.hxx:39
virtual wxString columnCaption(int colIndx) const
Get the column caption.
Definition xcast-k.hxx:45
Definition for a single area.
Definition area.h:52