Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
8dd07664
Commit
8dd07664
authored
Nov 15, 2011
by
Philippe Pébay
Browse files
Created a global macro value for arc resolution (per angle unit)
Change-Id: I6ed53c61754979195a1ba4b05751779e6e0e206b
parent
fcb167df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Hybrid/vtkPolarAxesActor.cxx
View file @
8dd07664
...
...
@@ -704,7 +704,8 @@ void vtkPolarAxesActor::BuildPolarAxisLabels( double zeroThreshold )
double
thetaRad
=
vtkMath
::
RadiansFromDegrees
(
this
->
MaximumAngle
);
double
cosTheta
=
cos
(
thetaRad
);
double
sinTheta
=
sin
(
thetaRad
);
vtkIdType
arcResolution
=
static_cast
<
vtkIdType
>
(
this
->
MaximumAngle
/
5
);
vtkIdType
arcResolution
=
static_cast
<
vtkIdType
>
(
this
->
MaximumAngle
*
VTK_POLAR_ARC_RESOLUTION_PER_DEG
);
// Arc points
vtkPoints
*
polarArcsPoints
=
vtkPoints
::
New
();
this
->
PolarArcs
->
SetPoints
(
polarArcsPoints
);
...
...
Hybrid/vtkPolarAxesActor.h
View file @
8dd07664
...
...
@@ -35,6 +35,7 @@ All rights reserve
#define VTK_MAXIMUM_NUMBER_OF_RADIAL_AXES 50
#define VTK_DEFAULT_NUMBER_OF_RADIAL_AXES 5
#define VTK_DEFAULT_MAXIMUM_POLAR_ANGLE 90.0
#define VTK_POLAR_ARC_RESOLUTION_PER_DEG 0.2
#include
"vtkActor.h"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment