17#ifndef vtkProp3DAxisFollower_h
18#define vtkProp3DAxisFollower_h
21#include "vtkRenderingAnnotationModule.h"
25VTK_ABI_NAMESPACE_BEGIN
70 vtkSetMacro(EnableDistanceLOD,
int);
71 vtkGetMacro(EnableDistanceLOD,
int);
80 vtkSetClampMacro(DistanceLODThreshold,
double, 0.0, 1.0);
81 vtkGetMacro(DistanceLODThreshold,
double);
90 vtkSetMacro(EnableViewAngleLOD,
int);
91 vtkGetMacro(EnableViewAngleLOD,
int);
100 vtkSetClampMacro(ViewAngleLODThreshold,
double, 0.0, 1.0);
101 vtkGetMacro(ViewAngleLODThreshold,
double);
117 vtkSetVector2Macro(ScreenOffsetVector,
double);
118 vtkGetVector2Macro(ScreenOffsetVector,
double);
179 double ScreenOffsetVector[2];
189 int VisibleAtCurrentViewAngle;
Create an axis with tick marks and labels.
a virtual camera for 3D rendering
a simple class to control print indentation
a subclass of vtkProp3DFollower that ensures that data is always parallel to the axis defined by a vt...
double ViewAngleLODThreshold
virtual vtkAxisActor * GetAxis()
Set axis that needs to be followed.
virtual void SetAxis(vtkAxisActor *)
Set axis that needs to be followed.
static double AutoScale(vtkViewport *viewport, vtkCamera *camera, double screenSize, double position[3])
Calculate scale factor to maintain same size of a object on the screen.
void ComputeMatrix() override
Generate the matrix based on ivars.
void CalculateOrthogonalVectors(double Rx[3], double Ry[3], double Rz[3], vtkAxisActor *axis1, double *dop, vtkViewport *ren)
vtkWeakPointer< vtkAxisActor > Axis
virtual void SetViewport(vtkViewport *viewport)
double DistanceLODThreshold
int RenderOpaqueGeometry(vtkViewport *viewport) override
This causes the actor to be rendered.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK methods for type and printing.
void ComputeRotationAndTranlation(vtkViewport *ren, double translation[3], double Rx[3], double Ry[3], double Rz[3], vtkAxisActor *axis)
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
This causes the actor to be rendered.
int RenderVolumetricGeometry(vtkViewport *viewport) override
This causes the actor to be rendered.
void ComputerAutoCenterTranslation(const double &autoScaleFactor, double translation[3])
vtkWeakPointer< vtkViewport > Viewport
static vtkProp3DAxisFollower * New()
Creates a follower with no camera set.
void ShallowCopy(vtkProp *prop) override
Shallow copy of a follower.
bool IsTextUpsideDown(double *a, double *b)
void SetScreenOffset(double offset)
Set/Get the desired screen vertical offset from the axis.
virtual vtkViewport * GetViewport()
~vtkProp3DAxisFollower() override
int TestDistanceVisibility()
void ExecuteViewAngleVisibility(double normal[3])
double GetScreenOffset()
Set/Get the desired screen vertical offset from the axis.
a vtkProp3D that always faces the camera
abstract superclass for all actors, volumes and annotations
abstract specification for Viewports
a weak reference to a vtkObject.