Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CGoGN
CGoGN
Commits
e9198c9b
Commit
e9198c9b
authored
May 23, 2011
by
Kenneth Vanhoey
Browse files
Ajout de la synchro du centre de rotation dans qtSimple
parent
d93ec03b
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/Utils/qtgl.h
View file @
e9198c9b
...
...
@@ -157,6 +157,8 @@ public:
static
float
getFarPlane
()
{
return
FAR_PLANE
;
}
glm
::
vec3
&
getObjPos
()
;
void
modelModified
()
{
newModel
=
1
;
}
protected:
...
...
src/Utils/qtSimple.cpp
View file @
e9198c9b
...
...
@@ -346,6 +346,8 @@ void SimpleQT::cb_updateMatrix()
void
SimpleQT
::
synchronize
(
SimpleQT
*
sqt
)
{
m_glWidget
->
getObjPos
()
=
sqt
->
m_glWidget
->
getObjPos
()
;
m_projection_matrix
=
sqt
->
m_projection_matrix
;
m_modelView_matrix
=
sqt
->
m_modelView_matrix
;
for
(
unsigned
int
i
=
0
;
i
<
4
;
++
i
)
...
...
src/Utils/qtgl.cpp
View file @
e9198c9b
...
...
@@ -163,6 +163,10 @@ void GLWidget::changeCenterOfRotation(const glm::vec3& newCenter)
m_obj_pos
=
glm
::
vec3
(
-
newCenter
[
0
],
-
newCenter
[
1
],
-
newCenter
[
2
]);
}
glm
::
vec3
&
GLWidget
::
getObjPos
()
{
return
m_obj_pos
;
}
void
GLWidget
::
initializeGL
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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