Gantt chart grid hook class. More...
#include <ilviews/gantt/gantt.h>
Public Member Functions | |
IlvGanttGridViewHook (IlvGanttChart *gantt, IlvManager *mgr, IlvView *view) | |
Initializes a new IlvGanttGridViewHook . More... | |
virtual void | beforeDraw (IlvPort *dst, const IlvTransformer *t=0, const IlvRegion *r=0, const IlvRegion *clip=0) |
Called internally by the manager before it redraws the hook view. More... | |
virtual void | contentsChanged () |
Called when the contents of the manager are changed. More... | |
virtual void | drawGrid (IlvPort *dst, const IlvRegion *clip=0) |
Calls the Gantt member function drawGrid() and then sets the skip-compute flag to IlTrue . More... | |
void | skipCompute (IlBoolean flag) |
Sets the skip-compute flag. More... | |
virtual void | transformerChanged (const IlvTransformer *current, const IlvTransformer *previous) |
Called when you change the transformer of the view to which this hook is connected. More... | |
Gantt chart grid hook class.
Library: ilvgantt
An IlvGanttGridViewHook
object is connected to each of the four views managed by the Gantt grapher. This hook is used to draw a grid in the grapher views.
IlvGanttChart
, IlvManagerViewHook
. IlvGanttGridViewHook::IlvGanttGridViewHook | ( | IlvGanttChart * | gantt, |
IlvManager * | mgr, | ||
IlvView * | view | ||
) |
Initializes a new IlvGanttGridViewHook
.
gantt | The Gantt chart. |
mgr | The manager. |
view | The view. |
|
virtual |
Called internally by the manager before it redraws the hook view.
The default implementation calls the member function drawGrid()
.
dst | The port to draw to. |
t | The transformer applied to the view where the event occurred. |
r | The areas that are to be refreshed, in the view coordinate system. |
clip | The clipping region. |
Reimplemented from IlvManagerViewHook.
|
virtual |
Called when the contents of the manager are changed.
The default implementation sets the skip-compute flag to IlFalse
.
Reimplemented from IlvManagerViewHook.
Calls the Gantt member function drawGrid()
and then sets the skip-compute flag to IlTrue
.
dst | The port to draw to. |
clip | The clipping region. |
void IlvGanttGridViewHook::skipCompute | ( | IlBoolean | flag | ) |
Sets the skip-compute flag.
flag | If IlTrue , the Gantt chart does not recompute the grid points before drawing the grid. |
|
virtual |
Called when you change the transformer of the view to which this hook is connected.
The default implementation sets the skip-compute flag to IlFalse
.
current | The current transformer. |
previous | The previous transformer. |
Reimplemented from IlvManagerViewHook.