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
515cf505
Commit
515cf505
authored
Dec 01, 2011
by
Philippe Pébay
Browse files
Testing additional options which were not verified so far
Change-Id: If4e75e23be29207deab1dda0168c163890f477ca
parent
c4e2b86e
Changes
8
Hide whitespace changes
Inline
Side-by-side
Hybrid/Testing/Cxx/TestCubeAxesWithGridLines.cxx
View file @
515cf505
...
...
@@ -12,13 +12,8 @@
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// This example illustrates how one may explicitly specify the range of each
// axes that's used to define the prop, while displaying data with a different
// set of bounds (unlike cubeAxes2.tcl). This example allows you to separate
// the notion of extent of the axes in physical space (bounds) and the extent
// of the values it represents. In other words, you can have the ticks and
// labels show a different range.
// .SECTION Thanks
// This test was written by Philippe Pebay, Kitware SAS 2011
#include "vtkBYUReader.h"
#include "vtkCamera.h"
...
...
@@ -36,8 +31,7 @@
#include "vtkRenderWindowInteractor.h"
#include "vtkSmartPointer.h"
#include "vtkTestUtilities.h"
#include "vtkTextProperty.h"
//----------------------------------------------------------------------------
int
TestCubeAxesWithGridLines
(
int
argc
,
char
*
argv
[]
)
...
...
@@ -85,13 +79,16 @@ int TestCubeAxesWithGridLines( int argc, char * argv [] )
renWin
->
AddRenderer
(
ren2
.
GetPointer
());
renWin
->
SetWindowName
(
"VTK - Cube Axes custom range"
);
renWin
->
SetSize
(
600
,
600
);
renWin
->
SetMultiSamples
(
0
);
vtkNew
<
vtkRenderWindowInteractor
>
iren
;
iren
->
SetRenderWindow
(
renWin
.
GetPointer
());
ren2
->
AddViewProp
(
foheActor
.
GetPointer
());
ren2
->
AddViewProp
(
outlineActor
.
GetPointer
());
ren2
->
SetBackground
(
0.1
,
0.2
,
0.4
);
ren2
->
SetGradientBackground
(
true
);
ren2
->
SetBackground
(
.1
,
.1
,
.1
);
ren2
->
SetBackground2
(
.8
,
.8
,
.8
);
normals
->
Update
();
...
...
@@ -110,6 +107,21 @@ int TestCubeAxesWithGridLines( int argc, char * argv [] )
axes2
->
SetDrawYGridlines
(
1
);
axes2
->
SetDrawZGridlines
(
1
);
// Use red color for X gridlines, title, and labels
axes2
->
GetXAxesGridlinesProperty
()
->
SetColor
(
1.
,
0.
,
0.
);
axes2
->
GetTitleTextProperty
(
0
)
->
SetColor
(
1.
,
0.
,
0.
);
axes2
->
GetLabelTextProperty
(
0
)
->
SetColor
(
1.
,
0.
,
0.
);
// Use green color for Y gridlines, title, and labels
axes2
->
GetYAxesGridlinesProperty
()
->
SetColor
(
0.
,
1.
,
0.
);
axes2
->
GetTitleTextProperty
(
1
)
->
SetColor
(
0.
,
1.
,
0.
);
axes2
->
GetLabelTextProperty
(
1
)
->
SetColor
(
0.
,
1.
,
0.
);
// Use blue color for Z gridlines, title, and labels
axes2
->
GetZAxesGridlinesProperty
()
->
SetColor
(
0.
,
0.
,
1.
);
axes2
->
GetTitleTextProperty
(
2
)
->
SetColor
(
0.
,
0.
,
1.
);
axes2
->
GetLabelTextProperty
(
2
)
->
SetColor
(
0.
,
0.
,
1.
);
ren2
->
AddViewProp
(
axes2
.
GetPointer
());
renWin
->
Render
();
...
...
Hybrid/Testing/Cxx/TestCubeAxesWithXInnerGrids.cxx
View file @
515cf505
...
...
@@ -12,13 +12,8 @@
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// This example illustrates how one may explicitly specify the range of each
// axes that's used to define the prop, while displaying data with a different
// set of bounds (unlike cubeAxes2.tcl). This example allows you to separate
// the notion of extent of the axes in physical space (bounds) and the extent
// of the values it represents. In other words, you can have the ticks and
// labels show a different range.
// .SECTION Thanks
// This test was written by Philippe Pebay, Kitware SAS 2011
#include "vtkBYUReader.h"
#include "vtkCamera.h"
...
...
Hybrid/Testing/Cxx/TestCubeAxesWithXInnerPolys.cxx
View file @
515cf505
...
...
@@ -12,13 +12,8 @@
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// This example illustrates how one may explicitly specify the range of each
// axes that's used to define the prop, while displaying data with a different
// set of bounds (unlike cubeAxes2.tcl). This example allows you to separate
// the notion of extent of the axes in physical space (bounds) and the extent
// of the values it represents. In other words, you can have the ticks and
// labels show a different range.
// .SECTION Thanks
// This test was written by Philippe Pebay, Kitware SAS 2011
#include "vtkBYUReader.h"
#include "vtkCamera.h"
...
...
Hybrid/Testing/Cxx/TestCubeAxesWithYInnerGrids.cxx
View file @
515cf505
...
...
@@ -12,13 +12,8 @@
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// This example illustrates how one may explicitly specify the range of each
// axes that's used to define the prop, while displaying data with a different
// set of bounds (unlike cubeAxes2.tcl). This example allows you to separate
// the notion of extent of the axes in physical space (bounds) and the extent
// of the values it represents. In other words, you can have the ticks and
// labels show a different range.
// .SECTION Thanks
// This test was written by Philippe Pebay, Kitware SAS 2011
#include "vtkBYUReader.h"
#include "vtkCamera.h"
...
...
Hybrid/Testing/Cxx/TestCubeAxesWithYInnerPolys.cxx
View file @
515cf505
...
...
@@ -12,13 +12,8 @@
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// This example illustrates how one may explicitly specify the range of each
// axes that's used to define the prop, while displaying data with a different
// set of bounds (unlike cubeAxes2.tcl). This example allows you to separate
// the notion of extent of the axes in physical space (bounds) and the extent
// of the values it represents. In other words, you can have the ticks and
// labels show a different range.
// .SECTION Thanks
// This test was written by Philippe Pebay, Kitware SAS 2011
#include "vtkBYUReader.h"
#include "vtkCamera.h"
...
...
Hybrid/Testing/Cxx/TestCubeAxesWithZInnerGrids.cxx
View file @
515cf505
...
...
@@ -12,13 +12,8 @@
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// This example illustrates how one may explicitly specify the range of each
// axes that's used to define the prop, while displaying data with a different
// set of bounds (unlike cubeAxes2.tcl). This example allows you to separate
// the notion of extent of the axes in physical space (bounds) and the extent
// of the values it represents. In other words, you can have the ticks and
// labels show a different range.
// .SECTION Thanks
// This test was written by Philippe Pebay, Kitware SAS 2011
#include "vtkBYUReader.h"
#include "vtkCamera.h"
...
...
Hybrid/Testing/Cxx/TestCubeAxesWithZInnerPolys.cxx
View file @
515cf505
...
...
@@ -12,13 +12,8 @@
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// This example illustrates how one may explicitly specify the range of each
// axes that's used to define the prop, while displaying data with a different
// set of bounds (unlike cubeAxes2.tcl). This example allows you to separate
// the notion of extent of the axes in physical space (bounds) and the extent
// of the values it represents. In other words, you can have the ticks and
// labels show a different range.
// .SECTION Thanks
// This test was written by Philippe Pebay, Kitware SAS 2011
#include "vtkBYUReader.h"
#include "vtkCamera.h"
...
...
Hybrid/Testing/Cxx/TestPolarAxes.cxx
View file @
515cf505
...
...
@@ -13,7 +13,7 @@
=========================================================================*/
// .SECTION Thanks
// This test was written by Philippe P
b
ay, Kitware SAS 2011
// This test was written by Philippe P
e
bay, Kitware SAS 2011
#include "vtkBYUReader.h"
#include "vtkCamera.h"
...
...
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