Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
CGoGN
CGoGN
Commits
fd256f83
Commit
fd256f83
authored
Jul 16, 2015
by
Sylvain Thery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
frame reset slot
parent
c65e7dbd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
SCHNApps/include/mapHandler.h
SCHNApps/include/mapHandler.h
+4
-0
SCHNApps/src/mapHandler.cpp
SCHNApps/src/mapHandler.cpp
+16
-0
No files found.
SCHNApps/include/mapHandler.h
View file @
fd256f83
...
...
@@ -366,6 +366,10 @@ public slots:
*/
void
frameFromString
(
QString
frame
);
/**
* @brief reset the frame manipulator to its initial position
*/
void
frameReset
();
/*********************************************************
* SIGNALS
...
...
SCHNApps/src/mapHandler.cpp
View file @
fd256f83
...
...
@@ -456,6 +456,22 @@ void MapHandlerGen::frameFromString(QString frame)
frameModified
();
}
void
MapHandlerGen
::
frameReset
()
{
GLdouble
mat
[
16
];
// Identity
for
(
int
i
=
0
;
i
<
4
;
++
i
)
for
(
int
j
=
0
;
j
<
4
;
++
j
)
if
(
i
==
j
)
mat
[
i
*
4
+
j
]
=
1
;
else
mat
[
i
*
4
+
j
]
=
0
;
m_frame
->
setFromMatrix
(
mat
);
frameModified
();
}
...
...
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