21 #ifndef __ANTARES_TOOLBOX_COMPONENT_DATAGRID_RENDERER_AREA_XCAST_CONVERTION_H__
22 #define __ANTARES_TOOLBOX_COMPONENT_DATAGRID_RENDERER_AREA_XCAST_CONVERTION_H__
25 #include "../matrix.h"
27 namespace Antares::Component::Datagrid::Renderer
29 template<enum Data::TimeSeriesType T>
62 virtual wxString
rowCaption(
int rowIndx)
const;
64 virtual wxString
cellValue(
int x,
int y)
const;
68 virtual bool cellValue(
int x,
int y,
const Yuni::String& value);
70 virtual void resetColors(
int,
int, wxColour&, wxColour&)
const
74 virtual IRenderer::CellStyle cellStyle(
int col,
int row)
const;
81 virtual bool valid()
const
83 return MatrixAncestorType::valid();
86 virtual bool onMatrixResize(uint oldX, uint oldY, uint& newX, uint& newY);
90 virtual void internalAreaChanged(
Data::Area* area);
100 #include "xcast-conversion.hxx"
virtual int height() const override
Get the height of the datagrid.
virtual int width() const override
Get the width of the datagrid.
Definition: xcast-conversion.h:31
virtual uint maxWidthResize() const
The most suitable column count.
Definition: xcast-conversion.h:76
virtual ~XCastConversion()
Destructor.
Definition: xcast-conversion.hxx:36
virtual wxString rowCaption(int rowIndx) const
Get the row caption.
Definition: xcast-conversion.hxx:91
virtual void onMatrixLoad()
Event triggered right after a matrix was loaded by the renderer.
Definition: xcast-conversion.hxx:114
virtual int height() const
Get the current height.
Definition: xcast-conversion.h:55
virtual void onStudyClosed() override
Event: the study has been closed.
Definition: xcast-conversion.hxx:144
virtual void onStudyLoaded() override
Event: the study has been loaded.
Definition: xcast-conversion.hxx:151
virtual double cellNumericValue(int x, int y) const
Get the value of a cell.
Definition: xcast-conversion.hxx:54
virtual wxString columnCaption(int colIndx) const
Get the column caption.
Definition: xcast-conversion.hxx:42
virtual int width() const
Get the current width.
Definition: xcast-conversion.h:50
virtual wxString cellValue(int x, int y) const
Get the string representation of a cell.
Definition: xcast-conversion.hxx:48
XCastConversion(wxWindow *control, Toolbox::InputSelector::Area *notifier)
Constructor.
Definition: xcast-conversion.hxx:29
virtual bool onMatrixResize(uint oldX, uint oldY, uint &newX, uint &newY)
Event trigerred before resizing a matrix.
Definition: xcast-conversion.hxx:97
Definition for a single area.
Definition: area.h:51
@ conversionMaxPoints
Hard limit for the number of points of the transfer function.
Definition: xcast.h:81
A n-by-n matrix.
Definition: matrix.h:44