40 #ifndef vtkContextArea_h
41 #define vtkContextArea_h
46 #include "vtkChartsCoreModule.h"
59 void PrintSelf(ostream &os,
vtkIndent indent) VTK_OVERRIDE;
94 vtkGetMacro(DrawAreaBounds,
vtkRectd)
119 vtkGetMacro(DrawAreaResizeBehavior, DrawAreaResizeBehaviorType)
120 vtkSetMacro(DrawAreaResizeBehavior, DrawAreaResizeBehaviorType)
130 vtkGetMacro(FixedAspect,
float)
131 virtual
void SetFixedAspect(
float aspect);
142 virtual
void SetFixedRect(
vtkRecti rect);
143 virtual
void SetFixedRect(
int x,
int y,
int width,
int height);
154 virtual const
Margins& GetFixedMargins() {
return this->FixedMargins; }
155 virtual void GetFixedMarginsArray(
int margins[4]);
156 virtual const int* GetFixedMarginsArray();
157 virtual void SetFixedMargins(Margins margins);
158 virtual void SetFixedMargins(
int margins[4]);
159 virtual void SetFixedMargins(
int left,
int right,
int bottom,
int top);
168 vtkGetMacro(FillViewport,
bool)
177 virtual
void SetShowGrid(
bool show);
178 virtual
bool GetShowGrid();
179 virtual
void ShowGridOn() { this->SetShowGrid(
true); }
194 virtual
void ComputeViewTransform();
215 void UpdateDrawArea();
289 virtual
void InitializeDrawArea();
302 #endif //vtkContextArea_h
vtkTuple< int, 4 > Margins
virtual void ShowGridOff()
Turn on/off grid visibility.
all children of this item are transformed by the vtkTransform2D of this item.
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.
Clipped, transformed area with axes for context items.
Allocate and hold a VTK object.
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.
DrawAreaResizeBehaviorType
all children of this item are clipped by the specified area.