Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenWalnut Core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
44
Issues
44
List
Boards
Labels
Service Desk
Milestones
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
a2f0440a
Commit
a2f0440a
authored
Aug 11, 2010
by
Sebastian Eichelbaum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CHANGE] - disabled culling.
parent
677374d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
src/modules/coordinateHUD/WMCoordinateHUD.cpp
src/modules/coordinateHUD/WMCoordinateHUD.cpp
+7
-4
No files found.
src/modules/coordinateHUD/WMCoordinateHUD.cpp
View file @
a2f0440a
...
...
@@ -87,9 +87,9 @@ void WMCoordinateHUD::properties()
// list of alternatives:
m_possibleSelections
=
boost
::
shared_ptr
<
WItemSelection
>
(
new
WItemSelection
()
);
m_possibleSelections
->
addItem
(
"color
full
axis"
,
"colorfull coordinate axis"
,
option_1_xpm
);
m_possibleSelections
->
addItem
(
"color
ed
axis"
,
"colorfull coordinate axis"
,
option_1_xpm
);
m_possibleSelections
->
addItem
(
"b/w axis"
,
"black & white coordinate axis"
,
option_2_xpm
);
m_possibleSelections
->
addItem
(
"color
full
cube"
,
"colorfull coordinate cube"
,
option_3_xpm
);
m_possibleSelections
->
addItem
(
"color
ed
cube"
,
"colorfull coordinate cube"
,
option_3_xpm
);
m_possibleSelections
->
addItem
(
"b/w cube"
,
"black & white coordinate cube"
,
option_4_xpm
);
m_aSingleSelection
=
m_properties
->
addProperty
(
"HUD structure"
,
...
...
@@ -98,6 +98,8 @@ void WMCoordinateHUD::properties()
WPropertyHelper
::
PC_SELECTONLYONE
::
addTo
(
m_aSingleSelection
);
WPropertyHelper
::
PC_NOTEMPTY
::
addTo
(
m_aSingleSelection
);
// set the x axis color if in color axis or color cube mode
}
void
WMCoordinateHUD
::
moduleMain
()
...
...
@@ -145,7 +147,7 @@ void WMCoordinateHUD::moduleMain()
WItemSelector
s
=
m_aSingleSelection
->
get
(
true
);
infoLog
()
<<
"New mode selected: "
<<
s
.
at
(
0
).
name
;
if
(
s
.
at
(
0
).
name
==
"color
full
axis"
)
if
(
s
.
at
(
0
).
name
==
"color
ed
axis"
)
{
buildColorAxis
();
}
...
...
@@ -153,7 +155,7 @@ void WMCoordinateHUD::moduleMain()
{
buildBWAxis
();
}
else
if
(
s
.
at
(
0
).
name
==
"color
full
cube"
)
else
if
(
s
.
at
(
0
).
name
==
"color
ed
cube"
)
{
buildColorCube
();
}
...
...
@@ -164,6 +166,7 @@ void WMCoordinateHUD::moduleMain()
//update node
m_rootNode
->
clear
();
m_rootNode
->
setCullingActive
(
false
);
// this disables frustrum culling for the geode to avoid the coordinate system to disappear.
m_rootNode
->
insert
(
m_geode
);
//m_rootNode->insert( m_txtGeode );
WKernel
::
getRunningKernel
()
->
getGraphicsEngine
()
->
getScene
()
->
insert
(
m_rootNode
);
...
...
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