24#ifndef vtkPolarAxesActor_h
25#define vtkPolarAxesActor_h
31#include "vtkRenderingAnnotationModule.h"
37VTK_ABI_NAMESPACE_BEGIN
71 virtual void SetPole(
double,
double,
double);
72 vtkGetVector3Macro(
Pole,
double);
80 vtkSetMacro(
Log,
bool);
81 vtkGetMacro(
Log,
bool);
82 vtkBooleanMacro(
Log,
bool);
132 vtkGetVectorMacro(
Range,
double, 2);
812 double& xmin,
double& xmax,
double& ymin,
double& ymax,
double& zmin,
double& zmax);
821 vtkSetClampMacro(
Ratio,
double, 0.001, 100.0);
831 VTK_MAXIMUM_POLAR_ARC_RESOLUTION_PER_DEG);
901 double a,
double angleEllipseRad,
double tickSize,
vtkPoints* tickPts);
962 double Pole[3] = { 0.0, 0.0, 0.0 };
1354 static constexpr int VTK_MAXIMUM_NUMBER_OF_POLAR_AXES = 20;
1355 static constexpr int VTK_MAXIMUM_NUMBER_OF_RADIAL_AXES = 50;
1356 static constexpr double VTK_MINIMUM_POLAR_ARC_RESOLUTION_PER_DEG = 0.05;
1357 static constexpr double VTK_MAXIMUM_POLAR_ARC_RESOLUTION_PER_DEG = 100.0;
1363VTK_ABI_NAMESPACE_END
Create an axis with tick marks and labels.
a virtual camera for 3D rendering
a simple class to control print indentation
Allocate and hold a VTK object.
represent and manipulate 3D points
vtkSmartPointer< vtkCamera > Camera
Camera attached to the polar axes system.
double LastRadialAxisMajorTickThickness
double Range[2]
Define the range values displayed on the polar Axis.
bool EnableDistanceLOD
If enabled the actor will not be visible at a certain distance from the camera.
vtkProperty * GetLastRadialAxisProperty()
Get/Set last radial axis actor properties.
virtual void SetCamera(vtkCamera *)
Set/Get the camera to perform scaling and translation of the vtkPolarAxesActor.
double PolarTitleOffset[2]
Handles title (x,y), label (y) and exponent (y) available offsets.
double RadialTitleOffset[2]
Handles title (x,y), label (y) and exponent (y) available offsets.
double * GetBounds() override
Explicitly specify the region in space around which to draw the bounds.
vtkTextProperty * GetLastRadialAxisTextProperty()
Set/Get the last radial axis text property.
vtkNew< vtkPoints > ArcMinorTickPts
Keep the arc minor ticks vtkPoints instances.
bool RadialAxesVisibility
Visibility of radial axes and their titles.
bool AutoSubdividePolarAxis
DEPRECATED: Automatically subdivide polar axis.
virtual void SetPolarAxisProperty(vtkProperty *)
Get/Set polar axis actor properties.
bool PolarLabelVisibility
Visibility of polar axis and its title, labels, ticks (major only)
int NumberOfPolarAxes
Number of polar axes.
void CalculateBounds()
Calculate bounds based on maximum radius and angular sector.
bool ArcTickVisibility
Enable / Disable major/minor tick visibility on the last arc displayed.
vtkTextProperty * GetSecondaryRadialAxesTextProperty()
Set/Get the secondary radial axes text property.
int RequestedNumberOfRadialAxes
Requested Number of radial axes If set to 0, compute it depending on angle.
vtkSmartPointer< vtkTextProperty > PolarAxisTitleTextProperty
Text properties of polar axis title and labels.
void GetBounds(double bounds[6])
Explicitly specify the region in space around which to draw the bounds.
void AutoScale(vtkViewport *viewport)
Automatically rescale titles and labels NB: Current implementation only for perspective projections.
double Pole[3]
Coordinates of the pole.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestedNumberOfPolarAxes
Requested Number of polar axes If set to 0, compute it depending on range.
virtual void SetNumberOfPolarAxisTicks(int)
Set/Get a number of ticks that one would like to display along polar axis.
vtkSmartPointer< vtkProperty > PolarAxisProperty
General properties of polar axis Behavior may be override by polar axis ticks 's actor property.
bool ArcTicksOriginToPolarAxis
If On, the ticks are drawn from the angle of the polarAxis (i.e.
vtkNew< vtkAxisActor > PolarAxis
Control variables for polar axis.
bool GetUse2DMode()
Enable/Disable labels 2D mode (always facing the camera).
vtkNew< vtkActor > ArcTickActor
vtk object for arc Ticks
virtual void SetLastRadialAxisTextProperty(vtkTextProperty *p)
Set/Get the last radial axis text property.
void BuildPolarAxisLabelsArcs()
Build polar axis labels and arcs with respect to specified pole.
virtual void SetLastRadialAxisProperty(vtkProperty *p)
Get/Set last radial axis actor properties.
virtual void SetSecondaryPolarArcsProperty(vtkProperty *p)
Get/Set secondary polar arcs actors property.
vtkNew< vtkPolyData > SecondaryPolarArcs
Structures for secondary polar arcs.
virtual void SetSecondaryRadialAxesProperty(vtkProperty *p)
Get/Set secondary radial axes actors properties.
double ArcMajorTickThickness
double DeltaAngleMinor
Angle between 2 minor ticks on the last arc.
double DeltaRangePolarAxes
Range between 2 polar axes.
void StoreTicksPtsFromParamEllipse(double a, double angleEllipseRad, double tickSize, vtkPoints *tickPts)
Init tick point located on an ellipse at angleEllipseRad angle and according to "a" major radius.
vtkTextProperty * GetPolarAxisTitleTextProperty()
Set/Get the polar axis title text property.
double MaximumRadius
Maximum polar radius.
virtual void SetMinimumRadius(double)
Set/Get the minimal radius of the polar coordinates.
virtual void ComputeDeltaAngleRadialAxes(vtkIdType)
Compute delta angle of radial axes.
void AutoSubdividePolarAxisOff()
Set/Get whether the number of polar axis ticks and arcs should be automatically calculated.
bool AxisMinorTickVisibility
vtkSmartPointer< vtkTextProperty > SecondaryRadialAxesTextProperty
Text properties of secondary radial axes.
double MinimumRadius
Minimum polar radius.
bool PolarArcsVisibility
Visibility of polar arcs.
double MaximumAngle
Maximum polar angle.
static vtkPolarAxesActor * New()
Instantiate object with label format "6.3g" and the number of labels per axis set to 3.
void GetBounds(double &xmin, double &xmax, double &ymin, double &ymax, double &zmin, double &zmax)
Explicitly specify the region in space around which to draw the bounds.
double PolarAxisTickRatioSize
Set the ratios between major and minor tick Size for each ticks location.
vtkCamera * GetCamera()
Set/Get the camera to perform scaling and translation of the vtkPolarAxesActor.
double ArcTickRatioThickness
void GetSignificantPartFromValues(vtkStringArray *valuesStr, std::list< double > &valuesList)
Yield a string array with the float part of each values.
int NumberOfRadialAxes
Number of radial axes.
vtkSmartPointer< vtkProperty > LastRadialAxisProperty
General properties of last radial axis.
int PolarAxisTitleLocation
Define the alignment of the title related to the polar axis.
vtkNew< vtkPolyDataMapper > ArcTickPolyDataMapper
vtk object for arc Ticks
char * PolarLabelFormat
Title to be used for the polar axis NB: Non-polar radial axes use the polar angle as title and have n...
double RequestedDeltaRangePolarAxes
Requested delta range for polar axes.
virtual void SetMinimumAngle(double)
Set/Get the minimum radius of the polar coordinates (in degrees).
vtkProperty * GetPolarArcsProperty()
Get/Set principal polar arc actor property.
double ViewAngleLODThreshold
This determines at what view angle to geometry will make the geometry not visible.
virtual void SetPole(double[3])
Explicitly specify the coordinate of the pole.
bool EnableViewAngleLOD
If enabled the actor will not be visible at a certain view angle.
double TickRatioRadiusSize
Set the ratio between maximum radius and major tick size.
double DeltaAngleRadialAxes
Angle between 2 radial Axes.
bool PolarTitleVisibility
Visibility of polar axis and its title, labels, ticks (major only)
vtkSmartPointer< vtkAxisActor > * RadialAxes
Control variables for non-polar radial axes.
void AutoComputeTicksProperties()
Set Range and PolarAxis members value to build axis ticks this function doesn't actually build PolarA...
vtkNew< vtkActor > PolarArcsActor
void BuildLabelsLog()
Define label values.
bool RadialUnits
Display angle units (degrees) to label radial axes.
vtkNew< vtkPolyData > ArcTickPolyData
vtk object for arc Ticks
int TickLocation
Describes the tick orientation for the graph elements involved by this property.
bool ArcTickMatchesRadialAxes
Enable / Disable major ticks matching radial axes angle (and minor half angle)
void BuildArcTicks()
Build Arc ticks.
bool RadialTitleVisibility
Visibility of radial axes and their titles.
bool AxisTickMatchesPolarAxes
Enable / Disable major ticks matching polar axes range (and minor half angle)
bool DrawPolarArcsGridlines
Visibility of the inner arcs (overridden to 0 if PolarArcsVisibility is set to 0)
void CreateRadialAxes(int axisCount)
Create requested number of type X axes.
double FSign(double, double)
Convenience methods.
double PolarAxisMajorTickSize
Defines the length of the ticks located on the last arc.
vtkSmartPointer< vtkTextProperty > LastRadialAxisTextProperty
Text properties of last radial axis.
vtkNew< vtkPolyData > PolarArcs
double PolarArcResolutionPerDegree
Polar arc resolution (number of line) per degree.
void BuildRadialAxes(vtkViewport *viewport=nullptr)
Build requested number of radial axes with respect to specified pole.
void AutoSubdividePolarAxisOn()
Set/Get whether the number of polar axis ticks and arcs should be automatically calculated.
double ComputeIdealStep(int subDivsRequired, double rangeLength, int maxSubDivs=1000)
return a step attempting to be as rounded as possible according to input parameters
static double ComputeEllipseAngle(double angleInDegrees, double ratio)
convert section angle to an angle applied to ellipse equation.
virtual void SetPolarAxisTitleTextProperty(vtkTextProperty *p)
Set/Get the polar axis title text property.
vtkNew< vtkPoints > ArcMajorTickPts
Keep the arc major ticks vtkPoints instances.
bool CheckMembersConsistency()
Check consistency of vtkPolarAxesActor members.
int GetNumberOfPolarAxisTicks()
Set/Get a number of ticks that one would like to display along polar axis.
double DistanceLODThreshold
This determines at what fraction of camera far clip range, actor is not visible.
double DeltaAngleMajor
Angle between 2 major ticks on the last arc.
double LastRadialAxisMajorTickSize
double DeltaRangeMinor
Range between 2 minor ticks.
double DeltaRangeMajor
Range between 2 major ticks (values displayed on the axis).
double LastAxisTickRatioThickness
double PolarLabelOffset
Handles title (x,y), label (y) and exponent (y) available offsets.
vtkProperty * GetSecondaryPolarArcsProperty()
Get/Set secondary polar arcs actors property.
vtkSmartPointer< vtkTextProperty > PolarAxisLabelTextProperty
Text properties of polar axis title and labels.
double TitleScale
Title scale factor.
double LastAxisTickRatioSize
void BuildPolarAxisLabelsArcsLog()
Build labels and arcs with log scale axis.
virtual void SetSecondaryRadialAxesTextProperty(vtkTextProperty *p)
Set/Get the secondary radial axes text property.
double Ratio
Ratio for elliptical representation of the polar axes actor.
double PolarExponentOffset
Handles title (x,y), label (y) and exponent (y) available offsets.
int RenderOverlay(vtkViewport *) override
Draw the polar axes.
virtual void ComputeDeltaRangePolarAxes(vtkIdType)
Compute delta range of polar axes.
vtkSmartPointer< vtkProperty > SecondaryRadialAxesProperty
General properties of radial axes.
vtkNew< vtkPolyData > ArcMinorTickPolyData
vtk object for arc Ticks
char * PolarAxisTitle
Title to be used for the polar axis NB: Non-polar radial axes use the polar angle as title and have n...
void SetCommonAxisAttributes(vtkAxisActor *)
Send attributes which are common to all axes, both polar and radial.
vtkProperty * GetSecondaryRadialAxesProperty()
Get/Set secondary radial axes actors properties.
virtual void SetMaximumRadius(double)
Set/Get the maximum radius of the polar coordinates.
double FFix(double)
Convenience methods.
vtkNew< vtkActor > ArcMinorTickActor
vtk object for arc Ticks
virtual void SetPole(double, double, double)
Explicitly specify the coordinate of the pole.
void SetUse2DMode(bool enable)
Enable/Disable labels 2D mode (always facing the camera).
double RequestedDeltaAngleRadialAxes
Requested delta angle for radial axes.
int RenderOpaqueGeometry(vtkViewport *) override
Draw the polar axes.
void SetPolarAxisAttributes(vtkAxisActor *)
Set properties specific to PolarAxis.
double SmallestVisiblePolarAngle
Smallest radial angle distinguishable from polar axis.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
double ScreenSize
Text screen size.
double PolarAxisMajorTickThickness
Defines the thickness of the major ticks.
bool RadialAxesOriginToPolarAxis
If On, the radial axes are drawn from the angle of the polarAxis (i.e.
int RadialAxisTitleLocation
Define the alignment of the title related to the radial axis.
vtkNew< vtkPolyDataMapper > PolarArcsMapper
bool PolarTickVisibility
Hold visibility for all present ticks.
std::string FindExponentAndAdjustValues(std::list< double > &valuesList)
Find a common exponent for label values.
virtual void SetMaximumAngle(double)
Set/Get the maximum radius of the polar coordinates (in degrees).
vtkTextProperty * GetPolarAxisLabelTextProperty()
Set/Get the polar axis labels text property.
double LabelScale
Label scale factor.
bool AxisTickVisibility
Hold visibility of major/minor ticks for the polar axis and the last radial axis.
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
Draw the polar axes.
bool PolarAxisVisibility
Visibility of polar axis and its title, labels, ticks (major only)
double PolarAxisTickRatioThickness
Set the ratios between major tick thickness for each ticks location.
double MinimumAngle
Minimum polar angle.
~vtkPolarAxesActor() override
vtkNew< vtkPolyDataMapper > ArcMinorTickPolyDataMapper
vtk object for arc Ticks
virtual void SetPolarAxisLabelTextProperty(vtkTextProperty *p)
Set/Get the polar axis labels text property.
bool DrawRadialGridlines
Visibility of the inner axes (overridden to 0 if RadialAxesVisibility is set to 0)
vtkNew< vtkActor > SecondaryPolarArcsActor
Structures for secondary polar arcs.
bool Log
Enable/Disable log scale.
bool ArcMinorTickVisibility
char * RadialAngleFormat
String to format angle values displayed on the radial axes.
vtkNew< vtkPolyDataMapper > SecondaryPolarArcsMapper
Structures for secondary polar arcs.
vtkProperty * GetPolarAxisProperty()
Get/Set polar axis actor properties.
void BuildAxes(vtkViewport *)
Build the axes.
virtual void SetPolarArcsProperty(vtkProperty *p)
Get/Set principal polar arc actor property.
map vtkPolyData to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
represent surface properties of a geometric object
Hold a reference to a vtkObjectBase instance.
a vtkAbstractArray subclass for strings
represent text properties.
record modification and/or execution time
abstract specification for Viewports
window superclass for vtkRenderWindow
#define VTK_DEPRECATED_IN_9_3_0(reason)