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
VTK
VTK
Commits
6f7725cd
Commit
6f7725cd
authored
Nov 08, 2011
by
Philippe Pébay
Browse files
Use adujsted height and width whenever frame or background are on.
Change-Id: Id218c6eac42d7c98e0a01df55194998a2c312385
parent
3e30588b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Rendering/vtkScalarBarActor.cxx
View file @
6f7725cd
...
...
@@ -503,7 +503,11 @@ int vtkScalarBarActor::RenderOpaqueGeometry(vtkViewport *viewport)
double
barY
=
0.
;
if
(
this
->
Orientation
==
VTK_ORIENT_VERTICAL
)
{
if
(
this
->
EnhancedMode
)
// Adjust height and width only in enhanced more or if at least
// one amongst the frame and the background was requested
if
(
this
->
DrawBackground
||
this
->
DrawFrame
||
this
->
EnhancedMode
)
{
barX
=
static_cast
<
int
>
(
size
[
0
]
*
0.05
);
barY
=
static_cast
<
int
>
(
size
[
1
]
*
0.05
+
labelSize
[
1
]
/
2
);
...
...
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