43 #ifndef vtkContextArea_h
44 #define vtkContextArea_h
49 #include "vtkChartsCoreModule.h"
62 virtual
void PrintSelf(ostream &os,
vtkIndent indent);
97 vtkGetMacro(DrawAreaBounds,
vtkRectd)
122 vtkGetMacro(DrawAreaResizeBehavior, DrawAreaResizeBehaviorType)
123 vtkSetMacro(DrawAreaResizeBehavior, DrawAreaResizeBehaviorType)
133 vtkGetMacro(FixedAspect,
float)
134 virtual
void SetFixedAspect(
float aspect);
145 virtual
void SetFixedRect(
vtkRecti rect);
146 virtual
void SetFixedRect(
int x,
int y,
int width,
int height);
157 virtual const Margins& GetFixedMargins() {
return this->FixedMargins; }
158 virtual void GetFixedMarginsArray(
int margins[4]);
159 virtual const int* GetFixedMarginsArray();
160 virtual void SetFixedMargins(Margins margins);
161 virtual void SetFixedMargins(
int margins[4]);
162 virtual void SetFixedMargins(
int left,
int right,
int bottom,
int top);
171 vtkGetMacro(FillViewport,
bool)
180 virtual
void SetShowGrid(
bool show);
181 virtual
bool GetShowGrid();
182 virtual
void ShowGridOn() { this->SetShowGrid(
true); }
216 void UpdateDrawArea();
298 #endif //vtkContextArea_h
bool FillViewport
If true, Geometry is set to (0, 0, vpSize[0], vpSize[1]) at the start of each Paint call...
vtkTuple< int, 4 > Margins
virtual void ShowGridOff()
Turn on/off grid visibility.
vtkRecti Geometry
The rect defining the pixel location and size of the entire vtkContextArea, including axis label...
Margins FixedMargins
The left, right, bottom, and top margins for the draw area, if DrawAreaResizeBehavior is FixedMargins...
vtkNew< vtkContextClip > Clip
The context item that clips rendered data.
all children of this item are transformed by the vtkTransform2D of this item.
vtkRecti DrawAreaGeometry
The rect defining the pixel location and size of the clipped and transformed area inside the axes...
Class for drawing 2D primitives to a graphical context.
takes care of drawing 2D axes
a simple class to control print indentation
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkNew< vtkContextTransform > Transform
The context item that clips rendered data.
Clipped, transformed area with axes for context items.
vtkRecti FixedRect
The fixed rect to use for the draw area, if DrawAreaResizeBehavior is FixedRect.
float FixedAspect
The fixed aspect ratio, if DrawAreaResizeBehavior is FixedAspect.
base class for items that are part of a vtkContextScene.
takes care of drawing the plot grid
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkNew< vtkPlotGrid > Grid
The vtkPlotGrid that renders a grid atop the data in the draw area.
vtkRectd DrawAreaBounds
The data bounds of the clipped and transformed area inside of the axes.
DrawAreaResizeBehaviorType
vtkTuple< vtkAxis *, 4 > Axes
vtkAxis objects that surround the draw area, indexed by vtkAxis::Location.
all children of this item are clipped by the specified area.
DrawAreaResizeBehaviorType DrawAreaResizeBehavior
Controls how the draw area size is determined.