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
S
SocialAgents3D
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thomas Pitiot
SocialAgents3D
Commits
1b4debb2
Commit
1b4debb2
authored
Mar 27, 2015
by
Thomas Pitiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ça marche
parent
08833c9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
.qglviewer.xml
.qglviewer.xml
+3
-3
src/viewer.cpp
src/viewer.cpp
+9
-6
No files found.
.qglviewer.xml
View file @
1b4debb2
...
...
@@ -5,15 +5,15 @@
<backgroundColor
red=
"51"
blue=
"51"
green=
"51"
/>
</State>
<Display
axisIsDrawn=
"false"
gridIsDrawn=
"false"
FPSIsDisplayed=
"false"
cameraIsEdited=
"false"
/>
<Geometry
fullScreen=
"false"
width=
"1200"
posX=
"
-83"
height=
"701"
posY=
"533
"
/>
<Geometry
fullScreen=
"false"
width=
"1200"
posX=
"
0"
height=
"701"
posY=
"0
"
/>
<Camera>
<Parameters
fieldOfView=
"0.785398"
sceneRadius=
"8.66025"
Type=
"PERSPECTIVE"
zNearCoefficient=
"0.005"
orthoCoef=
"0.414214"
zClippingCoefficient=
"1.73205"
>
<SceneCenter
x=
"0"
y=
"0"
z=
"0"
/>
</Parameters>
<Stereo
focusDistance=
"20.9077"
physScreenWidth=
"0.5"
IODist=
"0.062"
/>
<ManipulatedCameraFrame>
<position
x=
"
4.74424"
y=
"-4.86234"
z=
"1.6024
1"
/>
<orientation
q0=
"
0.118155"
q1=
"0.590838"
q2=
"0.182477"
q3=
"0.77695
"
/>
<position
x=
"
2.30521"
y=
"8.11195"
z=
"6.3590
1"
/>
<orientation
q0=
"
-0.373252"
q1=
"-0.244231"
q2=
"-0.676103"
q3=
"0.586446
"
/>
<ManipulatedParameters
transSens=
"1"
zoomSens=
"1"
rotSens=
"1"
wheelSens=
"1"
spinSens=
"0.3"
/>
<ManipulatedCameraParameters
zoomsOnPivotPoint=
"false"
flySpeed=
"0.0866025"
rotatesAroundUpVector=
"false"
>
<sceneUpVector
x=
"0"
y=
"1"
z=
"0"
/>
...
...
src/viewer.cpp
View file @
1b4debb2
...
...
@@ -279,7 +279,7 @@ void Volusion::cb_initGL()
m_agentSprite
=
new
Utils
::
PointSprite
();
m_agentSprite
->
setAttributePosition
(
m_agentsPosVBO
);
m_agentSprite
->
setAttributeColor
(
m_agentsColorVBO
);
m_agentSprite
->
setSize
(
2.0
f
);
m_agentSprite
->
setSize
(
0.05
f
);
registerShader
(
m_agentSprite
);
...
...
@@ -966,12 +966,15 @@ void setupQtWidgets(char **argv, int argc,Volusion& sqt)
sqt
.
dock
.
spinBox_dart
->
setRange
(
0
,
sqt
.
simul
.
envMap_
.
map
.
end
().
index
)
;
sqt
.
dock
.
comboBoxEdge
->
addItem
(
"Aiguille entiere"
,
2
);
for
(
unsigned
int
i
=
0
;
i
<
sqt
.
simul
.
aiguille
->
nbEdges
;
i
++
)
if
(
sqt
.
simul
.
aiguille
)
{
std
::
ostringstream
oss
;
oss
<<
"arete "
<<
i
;
const
QString
&
s
=
oss
.
str
().
c_str
();
sqt
.
dock
.
comboBoxEdge
->
addItem
(
s
,
2
);
for
(
unsigned
int
i
=
0
;
i
<
sqt
.
simul
.
aiguille
->
nbEdges
;
i
++
)
{
std
::
ostringstream
oss
;
oss
<<
"arete "
<<
i
;
const
QString
&
s
=
oss
.
str
().
c_str
();
sqt
.
dock
.
comboBoxEdge
->
addItem
(
s
,
2
);
}
}
}
...
...
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