21 #ifndef __ANTARES_WINDOWS_OUTPUT_PANEL_AREA_LINK_RENDERER_H__
22 #define __ANTARES_WINDOWS_OUTPUT_PANEL_AREA_LINK_RENDERER_H__
24 #include "../../../toolbox/components/datagrid/renderer.h"
25 #include <yuni/core/string.h>
26 #include <antares/array/matrix.h>
27 #include "../output.h"
29 namespace Antares::Private::OutputViewerData
41 using CellType = Yuni::CString<64, false>;
55 virtual int width()
const;
57 virtual int height()
const;
61 virtual wxString
rowCaption(
int rowIndx)
const;
63 virtual wxString
cellValue(
int,
int)
const;
67 virtual bool cellValue(
int x,
int y,
const Yuni::String& value);
69 virtual void resetColors(
int,
int, wxColour&, wxColour&)
const
78 virtual IRenderer::CellStyle cellStyle(
int,
int)
const;
79 virtual wxColour cellBackgroundColor(
int,
int)
const;
80 virtual wxColour cellTextColor(
int,
int)
const;
84 virtual bool valid()
const;
87 virtual void onSelectCell(
unsigned x,
unsigned y);
88 virtual void onExternalSelectCell(
unsigned x,
unsigned y);
114 std::vector<wxString> pColNames;
115 std::vector<bool> pColToUseForRowCaption;
119 uint pSelectionCellY;
A datagrid with virtual values.
Definition: component.h:84
Data provider for Datagrids.
Definition: renderer.h:50
A n-by-n matrix.
Definition: matrix.h:44
Definition: area-link-renderer.h:32
virtual wxString rowCaption(int rowIndx) const
Get the caption of a row.
Definition: area-link-renderer.cpp:205
virtual wxString columnCaption(int colIndx) const
Get the caption of a column.
Definition: area-link-renderer.cpp:196
virtual double cellNumericValue(int, int) const
Get the floating value of a Cell.
Definition: area-link-renderer.cpp:321
AreaLinkRenderer(OutputViewerComponent *component, const Antares::Matrix< CellType > *matrix)
Constructor.
Definition: area-link-renderer.cpp:32
OutputViewerComponent * pComponent
Reference to the parent control.
Definition: area-link-renderer.h:101
uint pSelectionCellX
Current selection.
Definition: area-link-renderer.h:118
const MatrixType * pMatrix
The matrix.
Definition: area-link-renderer.h:108
virtual ~AreaLinkRenderer()
Destructor.
Definition: area-link-renderer.cpp:175
virtual wxColour verticalBorderColor(int x, int y) const
Get the color of the vertical right border.
Definition: area-link-renderer.cpp:284
virtual int cellAlignment(int, int) const
Get the alignment of a cell (-1: left, 0: center, +1: right)
Definition: area-link-renderer.cpp:316
uint pWidth
The pseudo Width.
Definition: area-link-renderer.h:110
virtual void onScroll()
A scroll event has been triggered.
Definition: area-link-renderer.cpp:354
virtual wxString cellValue(int, int) const
Get the string representation of a Cell.
Definition: area-link-renderer.cpp:293
Antares::Component::Datagrid::Component DatagridType
Grid.
Definition: area-link-renderer.h:39
virtual Date::Precision precision()
Time Precision.
Definition: area-link-renderer.h:73
virtual bool cellValue(int x, int y, const Yuni::String &value)
Try to modify a cell value.
virtual int width() const
The effective width of the grid.
Definition: area-link-renderer.cpp:181
uint pHeight
The pseudo height.
Definition: area-link-renderer.h:112
virtual int height() const
The effective height of the grid.
Definition: area-link-renderer.cpp:186
Component: Viewer for simulation results.
Definition: output.h:45