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
b64837b0
Commit
b64837b0
authored
Dec 01, 2011
by
Philippe Pébay
Browse files
Testing all gridlines together with axis lines of various colors
Change-Id: I7284d59a7a6ac3742596a1a15656fa1dde88d652
parent
c7652d88
Changes
5
Hide whitespace changes
Inline
Side-by-side
Hybrid/Testing/Cxx/TestCubeAxes3.cxx
View file @
b64837b0
...
...
@@ -82,7 +82,7 @@ int TestCubeAxes3( int argc, char * argv [] )
vtkNew
<
vtkRenderWindow
>
renWin
;
renWin
->
SetMultiSamples
(
0
);
renWin
->
AddRenderer
(
ren2
.
GetPointer
());
renWin
->
SetWindowName
(
"
VTK -
Cube Axes
custom range
"
);
renWin
->
SetWindowName
(
"Cube Axes"
);
renWin
->
SetSize
(
600
,
600
);
vtkNew
<
vtkRenderWindowInteractor
>
iren
;
...
...
Hybrid/Testing/Cxx/TestCubeAxesWithGridLines.cxx
View file @
b64837b0
/*=========================================================================
Program: Visualization Toolkit
Module: TestCubeAxes
3
.cxx
Module: TestCubeAxes
WithGridlines
.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
...
...
@@ -109,21 +109,26 @@ int TestCubeAxesWithGridLines( int argc, char * argv [] )
axes2
->
SetDrawYGridlines
(
1
);
axes2
->
SetDrawZGridlines
(
1
);
// Use red color for X
gridlines, title, and label
s
axes2
->
GetXAxes
Gridl
inesProperty
()
->
SetColor
(
1.
,
0.
,
0.
);
// Use red color for X
axi
s
axes2
->
GetXAxes
L
inesProperty
()
->
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 label
s
axes2
->
GetYAxes
Gridl
inesProperty
()
->
SetColor
(
0.
,
1.
,
0.
);
// Use green color for Y
axi
s
axes2
->
GetYAxes
L
inesProperty
()
->
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 label
s
axes2
->
GetZAxes
Gridl
inesProperty
()
->
SetColor
(
0.
,
0.
,
1.
);
// Use blue color for Z
axi
s
axes2
->
GetZAxes
L
inesProperty
()
->
SetColor
(
0.
,
0.
,
1.
);
axes2
->
GetTitleTextProperty
(
2
)
->
SetColor
(
0.
,
0.
,
1.
);
axes2
->
GetLabelTextProperty
(
2
)
->
SetColor
(
0.
,
0.
,
1.
);
// Use olive color for gridlines
axes2
->
GetXAxesGridlinesProperty
()
->
SetColor
(
.23
,
.37
,
.17
);
axes2
->
GetYAxesGridlinesProperty
()
->
SetColor
(
.23
,
.37
,
.17
);
axes2
->
GetZAxesGridlinesProperty
()
->
SetColor
(
.23
,
.37
,
.17
);
ren2
->
AddViewProp
(
axes2
.
GetPointer
());
renWin
->
Render
();
...
...
Hybrid/Testing/Cxx/TestCubeAxesWithXLines.cxx
View file @
b64837b0
...
...
@@ -77,7 +77,7 @@ int TestCubeAxesWithXLines( int argc, char * argv [] )
vtkNew
<
vtkRenderWindow
>
renWin
;
renWin
->
SetMultiSamples
(
0
);
renWin
->
AddRenderer
(
ren2
.
GetPointer
());
renWin
->
SetWindowName
(
"Cube Axes with Outer Grid Lines"
);
renWin
->
SetWindowName
(
"Cube Axes with Outer
X
Grid Lines"
);
renWin
->
SetSize
(
600
,
600
);
renWin
->
SetMultiSamples
(
0
);
...
...
Hybrid/Testing/Cxx/TestCubeAxesWithYLines.cxx
View file @
b64837b0
...
...
@@ -77,7 +77,7 @@ int TestCubeAxesWithYLines( int argc, char * argv [] )
vtkNew
<
vtkRenderWindow
>
renWin
;
renWin
->
SetMultiSamples
(
0
);
renWin
->
AddRenderer
(
ren2
.
GetPointer
());
renWin
->
SetWindowName
(
"Cube Axes with Outer Grid Lines"
);
renWin
->
SetWindowName
(
"Cube Axes with Outer
Y
Grid Lines"
);
renWin
->
SetSize
(
600
,
600
);
renWin
->
SetMultiSamples
(
0
);
...
...
Hybrid/Testing/Cxx/TestCubeAxesWithZLines.cxx
View file @
b64837b0
...
...
@@ -77,7 +77,7 @@ int TestCubeAxesWithZLines( int argc, char * argv [] )
vtkNew
<
vtkRenderWindow
>
renWin
;
renWin
->
SetMultiSamples
(
0
);
renWin
->
AddRenderer
(
ren2
.
GetPointer
());
renWin
->
SetWindowName
(
"Cube Axes with Outer Grid Lines"
);
renWin
->
SetWindowName
(
"Cube Axes with
Z
Outer Grid Lines"
);
renWin
->
SetSize
(
600
,
600
);
renWin
->
SetMultiSamples
(
0
);
...
...
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