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
dca7f475
Commit
dca7f475
authored
Nov 07, 2011
by
Philippe Pébay
Browse files
A test closer to the expected look and feel
Change-Id: Ie1ec3f0223a7f21a495548dba23af3837ec9f0a5
parent
6860210a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Rendering/Testing/Cxx/TestScalarBar.cxx
View file @
dca7f475
...
...
@@ -24,6 +24,7 @@
#include "vtkScalarBarActor.h"
#include "vtkStructuredGrid.h"
#include "vtkStructuredGridGeometryFilter.h"
#include "vtkTextProperty.h"
#include "vtkTestUtilities.h"
...
...
@@ -79,6 +80,7 @@ int TestScalarBar( int argc, char *argv[] )
scalarBar1
->
GetPositionCoordinate
()
->
SetCoordinateSystemToNormalizedViewport
();
scalarBar1
->
GetPositionCoordinate
()
->
SetValue
(
0.6
,
0.1
);
scalarBar1
->
SetHeight
(
0.5
);
scalarBar1
->
SetTextPositionToPrecedeScalarBar
();
vtkSmartPointer
<
vtkScalarBarActor
>
scalarBar2
=
vtkSmartPointer
<
vtkScalarBarActor
>::
New
();
...
...
@@ -89,6 +91,7 @@ int TestScalarBar( int argc, char *argv[] )
scalarBar2
->
SetHeight
(
0.2
);
scalarBar2
->
GetPositionCoordinate
()
->
SetCoordinateSystemToNormalizedViewport
();
scalarBar2
->
GetPositionCoordinate
()
->
SetValue
(
0.05
,
0.05
);
scalarBar2
->
SetTextPositionToPrecedeScalarBar
();
vtkSmartPointer
<
vtkScalarBarActor
>
scalarBar3
=
vtkSmartPointer
<
vtkScalarBarActor
>::
New
();
...
...
@@ -97,6 +100,7 @@ int TestScalarBar( int argc, char *argv[] )
scalarBar3
->
GetPositionCoordinate
()
->
SetCoordinateSystemToNormalizedViewport
();
scalarBar3
->
GetPositionCoordinate
()
->
SetValue
(
0.8
,
0.1
);
scalarBar3
->
SetHeight
(
0.5
);
scalarBar3
->
SetTextPositionToPrecedeScalarBar
();
ren1
->
AddActor
(
outlineActor
);
ren1
->
AddActor
(
scalarBar1
);
...
...
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