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
5fe98d0b
Commit
5fe98d0b
authored
Nov 15, 2011
by
Philippe Pébay
Browse files
Now testing various color options for axes lines, titles, etc.
Change-Id: Ie17eedff5826f87a9e64b90208022191815c9b7a
parent
1ad60226
Changes
1
Hide whitespace changes
Inline
Side-by-side
Hybrid/Testing/Cxx/TestCubeAxes3.cxx
View file @
5fe98d0b
...
...
@@ -105,10 +105,16 @@ int TestCubeAxes3( int argc, char * argv [] )
axes2
->
SetScreenSize
(
15.0
);
axes2
->
SetFlyModeToClosestTriad
();
axes2
->
SetCornerOffset
(
0.0
);
// Use red color for X axis
axes2
->
GetXAxesLinesProperty
()
->
SetColor
(
1.
,
0.
,
0.
);
axes2
->
GetTitleTextProperty
(
0
)
->
SetColor
(
1.
,
0.
,
0.
);
axes2
->
GetLabelTextProperty
(
0
)
->
SetColor
(
.5
,
0.
,
0.
);
axes2
->
GetLabelTextProperty
(
0
)
->
SetColor
(
.8
,
0.
,
0.
);
// Use green color for Y axis
axes2
->
GetYAxesLinesProperty
()
->
SetColor
(
0.
,
1.
,
0.
);
axes2
->
GetTitleTextProperty
(
1
)
->
SetColor
(
0.
,
1.
,
0.
);
axes2
->
GetLabelTextProperty
(
1
)
->
SetColor
(
0.
,
.
5
,
0.
);
axes2
->
GetLabelTextProperty
(
1
)
->
SetColor
(
0.
,
.
8
,
0.
);
ren2
->
AddViewProp
(
axes2
.
GetPointer
());
renWin
->
Render
();
...
...
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