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
e97dc120
Commit
e97dc120
authored
Dec 01, 2011
by
Philippe Pébay
Browse files
Program generically (globally-defined constant instead of "4")
Change-Id: I787554e381457cd06fb545e7eb15556be041eb0d
parent
a6fd8d1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Hybrid/vtkCubeAxesActor.cxx
View file @
e97dc120
...
...
@@ -281,10 +281,9 @@ vtkCubeAxesActor::vtkCubeAxesActor() : vtkActor()
this
->
TitleScale
=
-
1.0
;
}
//! use textactor (2D) instead of follower (3D) for title
void
vtkCubeAxesActor
::
SetUse2DMode
(
int
val
)
{
for
(
int
i
=
0
;
i
<
4
;
++
i
)
for
(
int
i
=
0
;
i
<
NUMBER_OF_ALIGNED_AXIS
;
++
i
)
{
this
->
XAxes
[
i
]
->
SetUse2DMode
(
val
);
this
->
YAxes
[
i
]
->
SetUse2DMode
(
val
);
...
...
@@ -312,7 +311,7 @@ void vtkCubeAxesActor::SetSaveTitlePosition( int val )
// val = 0: no need to save position (3D axis)
// val = 1: positions have to be saved during the next render pass
// val = 2: positions are saved -> use them
for
(
int
i
=
0
;
i
<
4
;
++
i
)
for
(
int
i
=
0
;
i
<
NUMBER_OF_ALIGNED_AXIS
;
++
i
)
{
this
->
XAxes
[
i
]
->
SetSaveTitlePosition
(
val
);
this
->
YAxes
[
i
]
->
SetSaveTitlePosition
(
val
);
...
...
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