Go to the documentation of this file.
60 #ifndef vtkAxisActor2D_h
61 #define vtkAxisActor2D_h
71 #define VTK_MAX_LABELS 25
153 this->UpdateAdjustedRange();
154 return this->AdjustedRange;
158 this->UpdateAdjustedRange();
159 _arg1 = this->AdjustedRange[0];
160 _arg2 = this->AdjustedRange[1];
164 this->GetAdjustedRange(_arg[0], _arg[1]);
168 this->UpdateAdjustedRange();
169 return this->AdjustedNumberOfLabels;
351 double AdjustedRange[2];
361 int LastPosition2[2];
364 int LastMaxLabelSize[2];
371 int stringHeight,
int stringWidth,
virtual void SetPoint2(double x[2])
static vtkAxisActor2D * New()
virtual void SetPosition2(float x[2])
virtual void SetTitleTextProperty(vtkTextProperty *p)
#define vtkGetObjectMacro(name, type)
vtkPolyDataMapper2D * AxisMapper
vtkTextProperty * LabelTextProperty
vtkTextMapper * TitleMapper
draw vtkPolyData onto the image plane
#define vtkSetVector2Macro(name, type)
virtual vtkCoordinate * GetPoint2Coordinate()
virtual float * GetPosition2()
virtual vtkCoordinate * GetPositionCoordinate()
static void ComputeRange(double inRange[2], double outRange[2], int inNumTicks, int &outNumTicks, double &interval)
void PrintSelf(ostream &os, vtkIndent indent)
int RenderOpaqueGeometry(vtkViewport *viewport)
record modification and/or execution time
#define vtkTypeMacro(thisClass, superclass)
int AdjustedNumberOfLabels
static void SetOffsetPosition(double xTick[3], double theta, int stringHeight, int stringWidth, int offset, vtkActor2D *actor)
virtual void SetPoint1(double x, double y)
GLint GLint GLint GLint GLint x
virtual void UpdateAdjustedRange()
virtual double * GetAdjustedRange()
#define vtkGetVectorMacro(name, type, count)
virtual int HasTranslucentPolygonalGeometry()
static double ComputeStringOffset(double width, double height, double theta)
static int SetMultipleFontSize(vtkViewport *viewport, vtkTextMapper **textMappers, int nbOfMappers, int *targetSize, double factor, int *stringSize)
window superclass for vtkRenderWindow
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
virtual double * GetPoint1()
#define vtkSetClampMacro(name, type, min, max)
vtkTimeStamp AdjustedRangeBuildTime
vtkTextProperty * TitleTextProperty
virtual vtkCoordinate * GetPosition2Coordinate()
virtual void SetLabelTextProperty(vtkTextProperty *p)
virtual void GetAdjustedRange(double &_arg1, double &_arg2)
a simple class to control print indentation
#define vtkSetStringMacro(name)
virtual int GetAdjustedNumberOfLabels()
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
int RenderOverlay(vtkViewport *viewport)
void ReleaseGraphicsResources(vtkWindow *)
#define vtkGetMacro(name, type)
vtkGetStringMacro(ExtensionsString)
abstract specification for Viewports
represent text properties.
vtkBooleanMacro(IgnoreDriverBugs, bool)
GLint GLint GLsizei width
virtual double * GetPoint2()
vtkSetMacro(IgnoreDriverBugs, bool)
virtual float * GetPosition()
abstract superclass for all actors, volumes and annotations
virtual void SetPoint2(double x, double y)
virtual void SetPosition(float x[2])
a actor that draws 2D data
GLint GLint GLint GLint GLint GLint y
virtual void SetPoint1(double x[2])
virtual void GetAdjustedRange(double _arg[2])
concrete dataset represents vertices, lines, polygons, and triangle strips
Create an axis with tick marks and labels.
vtkActor2D ** LabelActors
vtkTextMapper ** LabelMappers
int SizeFontRelativeToAxis
virtual void BuildAxis(vtkViewport *viewport)
virtual vtkCoordinate * GetPoint1Coordinate()
void ShallowCopy(vtkProp *prop)
#define VTKRENDERINGANNOTATION_EXPORT
GLint GLint GLsizei GLsizei height