21 #ifndef __ANTARES_TOOLBOX_COMPONENTS_DATAGRID__GRID_HELPER_HXX__
22 #define __ANTARES_TOOLBOX_COMPONENTS_DATAGRID__GRID_HELPER_HXX__
24 namespace Antares::Component::Datagrid
36 inline double VGridHelper::GetValueAsDouble(
int row,
int col)
41 inline bool VGridHelper::GetValueAsBool(
int row,
int col)
43 return !Yuni::Math::Zero(GetValueAsDouble(row, col));
53 assert(col < (uint)indicesCols.size());
54 return indicesCols[col];
59 assert(row < (uint)indicesRows.size());
60 return indicesRows[row];
63 inline bool VGridHelper::CanValueAs(
int,
int,
const wxString&)
Data provider for Datagrids.
Definition: renderer.h:50
virtual int GetNumberCols() override
Get the number of columns that the wxGrid should display.
Definition: gridhelper.hxx:31
int realRow(uint row) const
Get the real index used by the renderer of a given row index used by the wxGrid.
Definition: gridhelper.hxx:57
bool IsEmptyCell(int, int) override
Get if a cell is empty or not (unused)
Definition: gridhelper.hxx:46
Renderer::IRenderer * renderer() const
The renderer.
Definition: gridhelper.hxx:68
int realCol(uint col) const
Get the real index used by the renderer of a given column index used by the wxGrid.
Definition: gridhelper.hxx:51
virtual double GetNumericValue(int row, int col) const
Get the float value of the cell at a given position.
Definition: gridhelper.cpp:555
virtual int GetNumberRows() override
Get the number of rows that the wxGrid should display.
Definition: gridhelper.hxx:26