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
b6c36ebc
Commit
b6c36ebc
authored
Nov 17, 2011
by
Philippe Pébay
Browse files
Reorganize build label routine to make it easier to maintain
Change-Id: Ibc2ea62fd4acd74b67d3131b5dcd5148947e7061
parent
68525920
Changes
2
Hide whitespace changes
Inline
Side-by-side
Examples/Hybrid/Python/CylinderAndPolarAxes.py
View file @
b6c36ebc
...
...
@@ -46,6 +46,7 @@ polaxes.GetRadialAxesProperty().SetColor( .0, .0, 1. )
polaxes
.
GetPolarArcsProperty
().
SetColor
(
1.
,
.
0
,
0.
)
polaxes
.
GetPolarAxisTitleTextProperty
().
SetColor
(
1.
,
0.
,
0.
)
polaxes
.
GetPolarAxisLabelTextProperty
().
SetColor
(
1.
,
0.
,
0.
)
polaxes
.
SetScreenSize
(
9.
)
# Create renderer
renderer
=
vtkRenderer
()
...
...
Hybrid/vtkPolarAxesActor.cxx
View file @
b6c36ebc
...
...
@@ -696,11 +696,6 @@ void vtkPolarAxesActor::BuildPolarAxisTicks( double x0 )
//-----------------------------------------------------------------------------
void
vtkPolarAxesActor
::
BuildPolarAxisLabelsArcs
(
double
*
O
)
{
// Calculate number of labels needed and create array for them
vtkAxisActor
*
axis
=
this
->
RadialAxes
[
0
];
double
deltaMajor
=
axis
->
GetDeltaMajor
(
VTK_AXIS_TYPE_X
);
double
val
=
axis
->
GetMajorStart
(
VTK_AXIS_TYPE_X
);
// Prepare storage for polar axis labels
vtkStringArray
*
labels
=
vtkStringArray
::
New
();
labels
->
SetNumberOfValues
(
this
->
NumberOfPolarAxisTicks
);
...
...
@@ -723,7 +718,9 @@ void vtkPolarAxesActor::BuildPolarAxisLabelsArcs( double* O )
polarArcsLines
->
Delete
();
// Now create labels and polar arcs
val
=
axis
->
GetMajorRangeStart
();
vtkAxisActor
*
axis
=
this
->
RadialAxes
[
0
];
double
deltaMajor
=
axis
->
GetDeltaMajor
(
VTK_AXIS_TYPE_X
);
double
val
=
axis
->
GetMajorRangeStart
();
const
char
*
format
=
this
->
RadialLabelFormat
;
char
label
[
64
];
vtkIdType
pointIdOffset
=
0
;
...
...
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