60 #ifndef __vtkAxisActor2D_h
61 #define __vtkAxisActor2D_h
70 #define VTK_MAX_LABELS 25
106 vtkSetVector2Macro(Range,
double);
107 vtkGetVectorMacro(Range,
double,2);
114 vtkSetMacro(RulerMode,
int);
115 vtkGetMacro(RulerMode,
int);
116 vtkBooleanMacro(RulerMode,
int);
123 vtkGetMacro(RulerDistance,
double);
131 vtkGetMacro(NumberOfLabels,
int);
136 vtkSetStringMacro(LabelFormat);
137 vtkGetStringMacro(LabelFormat);
147 vtkSetMacro(AdjustLabels,
int);
148 vtkGetMacro(AdjustLabels,
int);
149 vtkBooleanMacro(AdjustLabels,
int);
152 this->UpdateAdjustedRange();
153 return this->AdjustedRange;
157 this->UpdateAdjustedRange();
158 _arg1 = this->AdjustedRange[0];
159 _arg2 = this->AdjustedRange[1];
163 this->GetAdjustedRange(_arg[0], _arg[1]);
167 this->UpdateAdjustedRange();
168 return this->AdjustedNumberOfLabels;
174 vtkSetStringMacro(Title);
175 vtkGetStringMacro(Title);
193 vtkSetClampMacro(TickLength,
int, 0, 100);
194 vtkGetMacro(TickLength,
int);
200 vtkSetClampMacro(NumberOfMinorTicks,
int, 0, 20);
201 vtkGetMacro(NumberOfMinorTicks,
int);
207 vtkSetClampMacro(MinorTickLength,
int, 0, 100);
208 vtkGetMacro(MinorTickLength,
int);
215 vtkSetClampMacro(TickOffset,
int, 0, 100);
216 vtkGetMacro(TickOffset,
int);
221 vtkSetMacro(AxisVisibility,
int);
222 vtkGetMacro(AxisVisibility,
int);
223 vtkBooleanMacro(AxisVisibility,
int);
228 vtkSetMacro(TickVisibility,
int);
229 vtkGetMacro(TickVisibility,
int);
230 vtkBooleanMacro(TickVisibility,
int);
235 vtkSetMacro(LabelVisibility,
int);
236 vtkGetMacro(LabelVisibility,
int);
237 vtkBooleanMacro(LabelVisibility,
int);
242 vtkSetMacro(TitleVisibility,
int);
243 vtkGetMacro(TitleVisibility,
int);
244 vtkBooleanMacro(TitleVisibility,
int);
250 vtkSetMacro(TitlePosition,
double);
251 vtkGetMacro(TitlePosition,
double);
258 vtkSetClampMacro(FontFactor,
double, 0.1, 2.0);
259 vtkGetMacro(FontFactor,
double);
265 vtkSetClampMacro(LabelFactor,
double, 0.1, 2.0);
266 vtkGetMacro(LabelFactor,
double);
293 static void ComputeRange(
double inRange[2],
308 static int SetMultipleFontSize(
vtkViewport *viewport,
320 vtkSetMacro(SizeFontRelativeToAxis,
int);
321 vtkGetMacro(SizeFontRelativeToAxis,
int);
322 vtkBooleanMacro(SizeFontRelativeToAxis,
int);
350 double AdjustedRange[2];
360 int LastPosition2[2];
363 int LastMaxLabelSize[2];
368 static double ComputeStringOffset(
double width,
double height,
double theta);
369 static void SetOffsetPosition(
double xTick[3],
double theta,
370 int stringHeight,
int stringWidth,
372 virtual void UpdateAdjustedRange();
abstract superclass for all actors, volumes and annotations
virtual void GetAdjustedRange(double _arg[2])
virtual void SetPosition(float x[2])
virtual void ReleaseGraphicsResources(vtkWindow *)
abstract specification for Viewports
virtual double * GetPoint1()
a actor that draws 2D data
record modification and/or execution time
vtkActor2D ** LabelActors
virtual vtkCoordinate * GetPositionCoordinate()
Create an axis with tick marks and labels.
vtkTextProperty * TitleTextProperty
virtual void SetPoint1(double x, double y)
int AdjustedNumberOfLabels
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual void SetPoint2(double x, double y)
virtual float * GetPosition2()
virtual vtkCoordinate * GetPoint2Coordinate()
virtual void GetAdjustedRange(double &_arg1, double &_arg2)
virtual vtkCoordinate * GetPoint1Coordinate()
window superclass for vtkRenderWindow
virtual double * GetAdjustedRange()
vtkTimeStamp AdjustedRangeBuildTime
vtkPolyDataMapper2D * AxisMapper
virtual int HasTranslucentPolygonalGeometry()
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
virtual double * GetPoint2()
a simple class to control print indentation
vtkTextMapper * TitleMapper
void PrintSelf(ostream &os, vtkIndent indent)
static vtkActor2D * New()
vtkTextMapper ** LabelMappers
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
virtual void SetPosition2(float x[2])
virtual float * GetPosition()
virtual void SetPoint2(double x[2])
virtual vtkCoordinate * GetPosition2Coordinate()
represent text properties.
vtkTextProperty * LabelTextProperty
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems ...
virtual void SetPoint1(double x[2])
virtual void ShallowCopy(vtkProp *prop)
int SizeFontRelativeToAxis
virtual int RenderOverlay(vtkViewport *viewport)
virtual int GetAdjustedNumberOfLabels()
draw vtkPolyData onto the image plane