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
e42d9ced
Commit
e42d9ced
authored
Dec 02, 2011
by
Philippe Pébay
Browse files
Restored building of 2D titles
Change-Id: I6230a1e0209693d15ebf70629df951095dcc84f2
parent
e97dc120
Changes
1
Hide whitespace changes
Inline
Side-by-side
Hybrid/vtkAxisActor.cxx
View file @
e42d9ced
...
...
@@ -65,6 +65,7 @@ vtkAxisActor::vtkAxisActor()
this
->
LabelFormat
=
new
char
[
8
];
sprintf
(
this
->
LabelFormat
,
"%s"
,
"%-#6.3g"
);
// 2D-specific items
this
->
Use2DMode
=
0
;
this
->
SaveTitlePosition
=
0
;
this
->
TitleConstantPosition
[
0
]
=
this
->
TitleConstantPosition
[
1
]
=
0.0
;
...
...
@@ -580,6 +581,10 @@ void vtkAxisActor::BuildAxis(vtkViewport *viewport, bool force)
if
(
this
->
Title
!=
NULL
&&
this
->
Title
[
0
]
!=
0
)
{
this
->
BuildTitle
(
force
);
if
(
this
->
Use2DMode
==
1
)
{
this
->
BuildTitle2D
(
viewport
,
force
);
}
}
this
->
LastAxisPosition
=
this
->
AxisPosition
;
...
...
Write
Preview
Markdown
is supported
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