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
819ac478
Commit
819ac478
authored
Dec 01, 2011
by
Philippe Pébay
Browse files
Fixed several line formats in PrintSelf()
Change-Id: I318f9749bb271ddc5a0c88e45ea5449d5381e9e8
parent
f17a5c95
Changes
2
Hide whitespace changes
Inline
Side-by-side
Examples/Hybrid/Python/CylinderAndPolarAxes.py
View file @
819ac478
...
...
@@ -41,7 +41,7 @@ polaxes.SetMaximumAngle( 210. )
polaxes
.
SetNumberOfRadialAxes
(
10
)
polaxes
.
SetNumberOfPolarAxisTicks
(
9
)
polaxes
.
SetAutoSubdividePolarAxis
(
0
)
polaxes
.
SetCamera
(
camera
)
#
polaxes.SetCamera( camera )
polaxes
.
SetPolarLabelFormat
(
"%6.1f"
)
polaxes
.
GetRadialAxesProperty
().
SetColor
(
.
0
,
.
0
,
1.
)
polaxes
.
GetPolarArcsProperty
().
SetColor
(
1.
,
.
0
,
0.
)
...
...
@@ -51,7 +51,7 @@ polaxes.GetPolarAxisLabelTextProperty().SetColor( 0., 1., 0. )
polaxes
.
SetDistanceLODThreshold
(
.
4
)
polaxes
.
SetViewAngleLODThreshold
(
.
2
)
polaxes
.
SetScreenSize
(
8.
)
print
polaxes
# Create renderer
renderer
=
vtkRenderer
()
renderer
.
AddViewProp
(
cylactor
)
...
...
Hybrid/vtkPolarAxesActor.cxx
View file @
819ac478
...
...
@@ -46,29 +46,29 @@ void vtkPolarAxesActor::PrintSelf( ostream& os, vtkIndent indent )
os
<<
indent
<<
"Bounds:
\n
"
;
os
<<
indent
<<
" Xmin,Xmax: ("
<<
this
->
Bounds
[
0
]
<<
", "
<<
this
->
Bounds
[
1
]
<<
"
)
\n
"
;
<<
this
->
Bounds
[
1
]
<<
")
\n
"
;
os
<<
indent
<<
" Ymin,Ymax: ("
<<
this
->
Bounds
[
2
]
<<
", "
<<
this
->
Bounds
[
3
]
<<
"
)
\n
"
;
<<
this
->
Bounds
[
3
]
<<
")
\n
"
;
os
<<
indent
<<
" Zmin,Zmax: ("
<<
this
->
Bounds
[
4
]
<<
", "
<<
this
->
Bounds
[
5
]
<<
"
)
\n
"
;
<<
this
->
Bounds
[
5
]
<<
")
\n
"
;
os
<<
indent
<<
"ScreenSize:
(
"
<<
this
->
ScreenSize
<<
"
)
\n
"
;
os
<<
indent
<<
"ScreenSize: "
<<
this
->
ScreenSize
<<
"
\n
"
;
os
<<
indent
<<
"Number Of Radial Axes"
<<
this
->
NumberOfRadialAxes
<<
endl
;
os
<<
indent
<<
"Number Of Polar Axis Ticks"
<<
this
->
NumberOfPolarAxisTicks
<<
endl
;
os
<<
indent
<<
"Number Of Radial Axes
:
"
<<
this
->
NumberOfRadialAxes
<<
endl
;
os
<<
indent
<<
"Number Of Polar Axis Ticks
:
"
<<
this
->
NumberOfPolarAxisTicks
<<
endl
;
os
<<
indent
<<
"Auto Subdivide Polar Axis: "
<<
(
this
->
AutoSubdividePolarAxis
?
"On
\n
"
:
"Off
\n
"
);
os
<<
indent
<<
"Pole: ("
<<
this
->
Pole
[
0
]
<<
", "
<<
this
->
Pole
[
1
]
<<
", "
<<
this
->
Pole
[
2
]
<<
"
)
\n
"
;
<<
this
->
Pole
[
2
]
<<
")
\n
"
;
os
<<
indent
<<
"Maximum Radius"
<<
this
->
MaximumRadius
<<
endl
;
os
<<
indent
<<
"Auto-Scale Radius"
<<
this
->
AutoScaleRadius
<<
endl
;
os
<<
indent
<<
"Minimum Angle"
<<
this
->
MinimumAngle
<<
endl
;
os
<<
indent
<<
"Maximum Angle"
<<
this
->
MaximumAngle
<<
endl
;
os
<<
indent
<<
"Smallest Visible Polar Angle"
<<
this
->
SmallestVisiblePolarAngle
<<
endl
;
os
<<
indent
<<
"Maximum Radius
:
"
<<
this
->
MaximumRadius
<<
endl
;
os
<<
indent
<<
"Auto-Scale Radius
:
"
<<
this
->
AutoScaleRadius
<<
endl
;
os
<<
indent
<<
"Minimum Angle
:
"
<<
this
->
MinimumAngle
<<
endl
;
os
<<
indent
<<
"Maximum Angle
:
"
<<
this
->
MaximumAngle
<<
endl
;
os
<<
indent
<<
"Smallest Visible Polar Angle
:
"
<<
this
->
SmallestVisiblePolarAngle
<<
endl
;
os
<<
indent
<<
"Radial Units (degrees): "
<<
(
this
->
RadialUnits
?
"On
\n
"
:
"Off
\n
"
)
<<
endl
;
...
...
@@ -84,11 +84,11 @@ void vtkPolarAxesActor::PrintSelf( ostream& os, vtkIndent indent )
os
<<
indent
<<
"EnableDistanceLOD: "
<<
(
this
->
EnableDistanceLOD
?
"On"
:
"Off"
)
<<
endl
;
os
<<
indent
<<
"DistanceLODThreshold:
(
"
<<
this
->
DistanceLODThreshold
<<
"
)
\n
"
;
os
<<
indent
<<
"DistanceLODThreshold: "
<<
this
->
DistanceLODThreshold
<<
"
\n
"
;
os
<<
indent
<<
"EnableViewAngleLOD: "
<<
(
this
->
EnableViewAngleLOD
?
"On"
:
"Off"
)
<<
endl
;
os
<<
indent
<<
"ViewAngleLODThreshold:
(
"
<<
this
->
ViewAngleLODThreshold
<<
"
)
\n
"
;
os
<<
indent
<<
"ViewAngleLODThreshold: "
<<
this
->
ViewAngleLODThreshold
<<
"
\n
"
;
os
<<
indent
<<
"Polar Axis Title: "
<<
this
->
PolarAxisTitle
<<
"
\n
"
;
os
<<
indent
<<
"Polar Label Format: "
<<
this
->
PolarLabelFormat
<<
"
\n
"
;
...
...
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