21#ifndef __ANTARES_TOOLBOX_COMPONENT_DATAGRID_RENDERER_AREA_XCAST_TRANSLATION_HXX__
22#define __ANTARES_TOOLBOX_COMPONENT_DATAGRID_RENDERER_AREA_XCAST_TRANSLATION_HXX__
24#include <antares/study/xcast/xcast.h>
25#include <antares/date/date.h>
35template<enum Data::TimeSeriesType T>
41template<enum Data::TimeSeriesType T>
47template<enum Data::TimeSeriesType T>
50 return MatrixAncestorType::columnCaption(colIndx);
53template<enum Data::TimeSeriesType T>
56 return MatrixAncestorType::cellValue(x, y);
59template<enum Data::TimeSeriesType T>
62 return MatrixAncestorType::cellNumericValue(x, y);
65template<enum Data::TimeSeriesType T>
68 return MatrixAncestorType::cellValue(x, y, value);
71template<enum Data::TimeSeriesType T>
76 auto* xcastData = area->xcastData<T>();
77 this->matrix(&(xcastData->translation));
80 this->matrix(
nullptr);
82 Renderer::ARendererArea::internalAreaChanged(area);
85template<enum Data::TimeSeriesType T>
86inline IRenderer::CellStyle XCastTranslation<T>::cellStyle(
int col,
int row)
const
88 return MatrixAncestorType::cellStyle(col, row);
91template<enum Data::TimeSeriesType T>
94 return MatrixAncestorType::rowCaption(rowIndx);
97template<enum Data::TimeSeriesType T>
105 auto& hourinfo = study->calendar.hours[y + 1];
107 if (hourinfo.firstHourInMonth)
108 return Default::BorderMonthSeparator();
109 if (hourinfo.firstHourInDay)
110 return Default::BorderDaySeparator();
115template<enum Data::TimeSeriesType T>
122template<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 wxColour verticalBorderColor(int x, int y) const
Get the color of the vertical right border.
Definition renderer.hxx:75
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
Definition xcast-translation.h:37
virtual wxString columnCaption(int colIndx) const
Get the column caption.
Definition xcast-translation.hxx:48
virtual wxString cellValue(int x, int y) const
Get the value of a cell.
Definition xcast-translation.hxx:54
virtual void onStudyClosed() override
Event: the study has been closed.
Definition xcast-translation.hxx:116
virtual wxString rowCaption(int rowIndx) const
Get the row caption.
Definition xcast-translation.hxx:92
virtual double cellNumericValue(int x, int y) const
Get the value of a cell.
Definition xcast-translation.hxx:60
virtual ~XCastTranslation()
Destructor.
Definition xcast-translation.hxx:42
virtual wxColour horizontalBorderColor(int x, int y) const
Get the color of the horizontal bottom border.
Definition xcast-translation.hxx:98
XCastTranslation(wxWindow *control, Toolbox::InputSelector::Area *notifier)
Constructor.
Definition xcast-translation.hxx:36
virtual void onStudyLoaded() override
Event: the study has been loaded.
Definition xcast-translation.hxx:123
Definition for a single area.
Definition area.h:52
@ maxHoursInYear
The maximum number of hours in a year.
Definition date.h:192