17 #ifndef vtkAxisFollower_h
18 #define vtkAxisFollower_h
21 #include "vtkRenderingAnnotationModule.h"
26 VTK_ABI_NAMESPACE_BEGIN
66 vtkSetMacro(EnableDistanceLOD,
int);
67 vtkGetMacro(EnableDistanceLOD,
int);
76 vtkSetClampMacro(DistanceLODThreshold,
double, 0.0, 1.0);
77 vtkGetMacro(DistanceLODThreshold,
double);
86 vtkSetMacro(EnableViewAngleLOD,
int);
87 vtkGetMacro(EnableViewAngleLOD,
int);
96 vtkSetClampMacro(ViewAngleLODThreshold,
double, 0.0, 1.0);
97 vtkGetMacro(ViewAngleLODThreshold,
double);
105 double GetScreenOffset();
106 void SetScreenOffset(
double offset);
114 vtkSetVector2Macro(ScreenOffsetVector,
double);
115 vtkGetVector2Macro(ScreenOffsetVector,
double);
137 virtual void ComputeTransformMatrix(
vtkRenderer* ren);
148 static double AutoScale(
155 void CalculateOrthogonalVectors(
162 void ComputerAutoCenterTranslation(
const double& autoScaleFactor,
double translation[3]);
164 int TestDistanceVisibility();
165 void ExecuteViewAngleVisibility(
double normal[3]);
167 bool IsTextUpsideDown(
double* a,
double* b);
177 double ScreenOffsetVector[2];
183 int VisibleAtCurrentViewAngle;
192 VTK_ABI_NAMESPACE_END
193 #endif // vtkAxisFollower_h
abstract superclass for all actors, volumes and annotations
vtkWeakPointer< vtkAxisActor > Axis
abstract specification for Viewports
void ComputeMatrix() override
Overridden to disable this function, and use ComputeTransformMatrix instead, as we need a renderer to...
virtual void Render(vtkRenderer *ren)
This causes the actor to be rendered.
Create an axis with tick marks and labels.
abstract specification for renderers
void ShallowCopy(vtkProp *prop) override
Shallow copy of a follower.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
a virtual camera for 3D rendering
double ViewAngleLODThreshold
abstract class specifies interface to map data to graphics primitives
a subclass of vtkFollower that ensures that data is always parallel to the axis defined by a vtkAxisA...
a subclass of actor that always faces the camera
static vtkFollower * New()
Creates a follower with no camera set.
double DistanceLODThreshold