Skip to content
GitLab
Menu
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
990fea44
Commit
990fea44
authored
Nov 14, 2011
by
Philippe Pébay
Browse files
More legible label size
Change-Id: Iad60e890ccda1231be0f63c8e73ead093fb5de22
parent
133a7f0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Hybrid/Testing/Cxx/TestPolarAxes.cxx
View file @
990fea44
...
...
@@ -88,7 +88,7 @@ int TestPolarAxes( int argc, char * argv [] )
polaxes
->
SetCamera
(
renderer
->
GetActiveCamera
()
);
polaxes
->
SetRadialLabelFormat
(
"%6.1f"
);
polaxes
->
GetRadialAxesProperty
()
->
SetColor
(
.0
,
.0
,
.9
);
polaxes
->
SetScreenSize
(
1
5
.0
);
polaxes
->
SetScreenSize
(
1
2
.0
);
vtkNew
<
vtkRenderWindow
>
renWin
;
renWin
->
SetMultiSamples
(
0
);
...
...
Hybrid/vtkPolarAxesActor.cxx
View file @
990fea44
...
...
@@ -451,14 +451,17 @@ void vtkPolarAxesActor::BuildAxes( vtkViewport *viewport )
axis
->
SetRange
(
0.
,
this
->
MaximumRadius
);
axis
->
SetMajorTickSize
(
.02
*
this
->
MaximumRadius
);
// Set axis title
vtksys_ios
::
ostringstream
thetaStream
;
thetaStream
<<
theta
;
if
(
this
->
RadialUnits
)
// Set axis title (except for polar axis to avoid cluttering)
if
(
i
)
{
thetaStream
<<
" deg."
;
vtksys_ios
::
ostringstream
thetaStream
;
thetaStream
<<
theta
;
if
(
this
->
RadialUnits
)
{
thetaStream
<<
" deg."
;
}
axis
->
SetTitle
(
thetaStream
.
str
().
c_str
()
);
}
axis
->
SetTitle
(
thetaStream
.
str
().
c_str
()
);
}
this
->
BuildPolarAxisTicks
(
o
[
0
]
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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