42 #ifndef vtkContextArea_h
43 #define vtkContextArea_h
61 virtual
void PrintSelf(ostream &os,
vtkIndent indent);
87 vtkGetMacro(DrawAreaBounds,
vtkRectd)
88 vtkSetMacro(DrawAreaBounds,
vtkRectd)
108 vtkGetMacro(DrawAreaResizeBehavior, DrawAreaResizeBehaviorType)
109 vtkSetMacro(DrawAreaResizeBehavior, DrawAreaResizeBehaviorType)
116 vtkGetMacro(FixedAspect,
float)
117 virtual
void SetFixedAspect(
float aspect);
125 virtual
void SetFixedRect(
vtkRecti rect);
126 virtual
void SetFixedRect(
int x,
int y,
int width,
int height);
134 virtual const Margins& GetFixedMargins() {
return this->FixedMargins; }
135 virtual void GetFixedMarginsArray(
int margins[4]);
136 virtual const int* GetFixedMarginsArray();
137 virtual void SetFixedMargins(Margins margins);
138 virtual void SetFixedMargins(
int margins[4]);
139 virtual void SetFixedMargins(
int left,
int right,
int bottom,
int top);
146 vtkGetMacro(FillViewport,
bool)
147 vtkSetMacro(FillViewport,
bool)
148 vtkBooleanMacro(FillViewport,
bool)
153 virtual
void SetShowGrid(
bool show);
154 virtual
bool GetShowGrid();
155 virtual
void ShowGridOn() { this->SetShowGrid(
true); }
182 void UpdateDrawArea();
242 #endif //vtkContextArea_h
vtkTuple< int, 4 > Margins
virtual void ShowGridOff()
vtkNew< vtkContextClip > Clip
all children of this item are transformed by the vtkTransform2D of this item.
vtkRecti DrawAreaGeometry
Class for drawing 2D primitives to a graphical context.
takes care of drawing 2D axes
a simple class to control print indentation
vtkNew< vtkContextTransform > Transform
Clipped, transformed area with axes for context items.
base class for items that are part of a vtkContextScene.
takes care of drawing the plot grid
vtkNew< vtkPlotGrid > Grid
DrawAreaResizeBehaviorType
vtkTuple< vtkAxis *, 4 > Axes
all children of this item are clipped by the specified area.
#define VTKCHARTSCORE_EXPORT
DrawAreaResizeBehaviorType DrawAreaResizeBehavior