22 #include <antares/study/xcast/xcast.h>
24 namespace Antares::Component::Datagrid::Renderer
26 template<enum Data::TimeSeriesType T>
33 template<enum Data::TimeSeriesType T>
39 template<enum Data::TimeSeriesType T>
42 return (colIndx < 12) ? wxStringFromUTF8(Date::MonthToString(colIndx)) << wxT(
" ")
46 template<enum Data::TimeSeriesType T>
49 return MatrixAncestorType::cellValue(x, y);
52 template<enum Data::TimeSeriesType T>
55 return MatrixAncestorType::cellNumericValue(x, y);
58 template<enum Data::TimeSeriesType T>
61 return MatrixAncestorType::cellValue(x, y, value);
64 template<enum Data::TimeSeriesType T>
69 auto* xcastData = area->xcastData<T>();
70 this->matrix(&(xcastData->K));
74 this->matrix(
nullptr);
77 Renderer::ARendererArea::internalAreaChanged(area);
80 template<enum Data::TimeSeriesType T>
81 inline IRenderer::CellStyle XCastK<T>::cellStyle(
int col,
int row)
const
83 return MatrixAncestorType::cellStyle(col, row);
86 template<enum Data::TimeSeriesType T>
89 return wxString() << rowIndx;
92 template<enum Data::TimeSeriesType T>
95 return MatrixAncestorType::width();
98 template<enum Data::TimeSeriesType T>
101 return MatrixAncestorType::height();
104 template<enum Data::TimeSeriesType T>
110 template<enum Data::TimeSeriesType T>
113 return MatrixAncestorType::valid();
116 template<enum Data::TimeSeriesType T>
123 template<enum Data::TimeSeriesType T>
virtual void onStudyClosed() override
The study has been closed.
Definition: area.cpp:86
virtual void onStudyLoaded() override
Event: the study has been loaded.
Definition: area.cpp:92
XCastK(wxWindow *control, Toolbox::InputSelector::Area *notifier)
Constructor.
Definition: xcast-k.hxx:27
virtual void onStudyClosed() override
Event: the study has been closed.
Definition: xcast-k.hxx:117
virtual wxString rowCaption(int rowIndx) const
Get the row caption.
Definition: xcast-k.hxx:87
virtual double cellNumericValue(int x, int y) const
Get the value of a cell.
Definition: xcast-k.hxx:53
virtual wxString cellValue(int x, int y) const
Get the string representation of a cell.
Definition: xcast-k.hxx:47
virtual int width() const
Get the current width.
Definition: xcast-k.hxx:93
virtual uint maxWidthResize() const
The most suitable column count.
Definition: xcast-k.hxx:105
virtual int height() const
Get the current height.
Definition: xcast-k.hxx:99
virtual void onStudyLoaded() override
Event: the study has been loaded.
Definition: xcast-k.hxx:124
virtual ~XCastK()
Destructor.
Definition: xcast-k.hxx:34
virtual wxString columnCaption(int colIndx) const
Get the column caption.
Definition: xcast-k.hxx:40
Definition for a single area.
Definition: area.h:51
A n-by-n matrix.
Definition: matrix.h:44