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
ff36eb88
Commit
ff36eb88
authored
Nov 16, 2011
by
Aashish Chaudhary
Browse files
ENH: Fixed offset of non polar axes
Change-Id: I435af84314642cd5ca458cdf53d518c0772db53d
parent
3ed7f823
Changes
1
Show whitespace changes
Inline
Side-by-side
Hybrid/vtkPolarAxesActor.cxx
View file @
ff36eb88
...
@@ -171,11 +171,15 @@ vtkPolarAxesActor::vtkPolarAxesActor() : vtkActor()
...
@@ -171,11 +171,15 @@ vtkPolarAxesActor::vtkPolarAxesActor() : vtkActor()
// Pass information to axes followers
// Pass information to axes followers
vtkAxisFollower
*
follower
=
axis
->
GetTitleActor
();
vtkAxisFollower
*
follower
=
axis
->
GetTitleActor
();
follower
->
SetAxis
(
axis
);
follower
->
SetAxis
(
axis
);
if
(
!
i
)
{
double
offset
=
this
->
LabelScreenOffset
+
this
->
ScreenSize
*
0.5
;
double
offset
=
this
->
LabelScreenOffset
+
this
->
ScreenSize
*
0.5
;
// Replace default screen offset (for polar axis only)
// Using base offset if not a polar axis.
follower
->
SetScreenOffset
(
offset
);
if
(
!
i
)
{
// Using twice the base offset for the title of the polar axis.
follower
->
SetScreenOffset
(
2.0
*
offset
);
follower
->
SetScreenOffset
(
2.0
*
offset
);
vtkAxisFollower
**
labelActors
=
axis
->
GetLabelActors
();
vtkAxisFollower
**
labelActors
=
axis
->
GetLabelActors
();
...
...
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