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
b4fc0542
Commit
b4fc0542
authored
Jul 30, 2012
by
Sebastian Eichelbaum
Browse files
Options
Browse Files
Download
Plain Diff
[MERGE]
parents
114e16c3
0bb5bbcc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/modules/navigationSlices/WMNavigationSlices.cpp
src/modules/navigationSlices/WMNavigationSlices.cpp
+3
-3
No files found.
src/modules/navigationSlices/WMNavigationSlices.cpp
View file @
b4fc0542
...
...
@@ -198,21 +198,21 @@ void WMNavigationSlices::initOSG()
osg
::
ref_ptr
<
osg
::
Node
>
xSlice
=
wge
::
genFinitePlane
(
minV
,
osg
::
Vec3
(
0.0
,
sizes
[
1
],
0.0
),
osg
::
Vec3
(
0.0
,
0.0
,
sizes
[
2
]
)
);
xSlice
->
setName
(
"Sagittal Slice"
);
osg
::
Uniform
*
xSliceUniform
=
new
osg
::
Uniform
(
"u_WorldTransform"
,
osg
::
Matrix
::
identity
()
);
osg
::
Uniform
*
xSliceUniform
=
new
osg
::
Uniform
(
"u_WorldTransform"
,
osg
::
Matrix
f
::
identity
()
);
xSlice
->
getOrCreateStateSet
()
->
addUniform
(
xSliceUniform
);
// Y Slice
osg
::
ref_ptr
<
osg
::
Node
>
ySlice
=
wge
::
genFinitePlane
(
minV
,
osg
::
Vec3
(
sizes
[
0
],
0.0
,
0.0
),
osg
::
Vec3
(
0.0
,
0.0
,
sizes
[
2
]
)
);
ySlice
->
setName
(
"Coronal Slice"
);
osg
::
Uniform
*
ySliceUniform
=
new
osg
::
Uniform
(
"u_WorldTransform"
,
osg
::
Matrix
::
identity
()
);
osg
::
Uniform
*
ySliceUniform
=
new
osg
::
Uniform
(
"u_WorldTransform"
,
osg
::
Matrix
f
::
identity
()
);
ySlice
->
getOrCreateStateSet
()
->
addUniform
(
ySliceUniform
);
// Z Slice
osg
::
ref_ptr
<
osg
::
Node
>
zSlice
=
wge
::
genFinitePlane
(
minV
,
osg
::
Vec3
(
sizes
[
0
],
0.0
,
0.0
),
osg
::
Vec3
(
0.0
,
sizes
[
1
],
0.0
)
);
zSlice
->
setName
(
"Axial Slice"
);
osg
::
Uniform
*
zSliceUniform
=
new
osg
::
Uniform
(
"u_WorldTransform"
,
osg
::
Matrix
::
identity
()
);
osg
::
Uniform
*
zSliceUniform
=
new
osg
::
Uniform
(
"u_WorldTransform"
,
osg
::
Matrix
f
::
identity
()
);
zSlice
->
getOrCreateStateSet
()
->
addUniform
(
zSliceUniform
);
// disable culling.
...
...
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