Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpcs
dfss
Commits
a8bc9a63
Commit
a8bc9a63
authored
Apr 25, 2016
by
Loïck Bonniot
Browse files
[d] Increase arrow length and quantum unit
parent
9e43d926
Pipeline
#934
failed with stage
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
dfssd/gui/events.go
View file @
a8bc9a63
...
...
@@ -68,7 +68,7 @@ func (w *Window) PrintQuantumInformation() {
return
}
quantum
:=
float64
(
w
.
quantumField
.
Value
())
quantum
:=
float64
(
w
.
quantumField
.
Value
()
*
1000
)
beginning
:=
w
.
scene
.
Events
[
0
]
.
Date
.
UnixNano
()
totalDuration
:=
w
.
scene
.
Events
[
len
(
w
.
scene
.
Events
)
-
1
]
.
Date
.
UnixNano
()
-
beginning
...
...
@@ -113,8 +113,8 @@ func (w *Window) initTimer() {
w
.
scene
.
currentTime
=
w
.
scene
.
Events
[
0
]
.
Date
}
quantum
:=
time
.
Duration
(
w
.
quantumField
.
Value
())
endOfQuantum
:=
w
.
scene
.
currentTime
.
Add
(
quantum
*
time
.
Nanosecond
)
quantum
:=
time
.
Duration
(
w
.
quantumField
.
Value
())
*
time
.
Microsecond
endOfQuantum
:=
w
.
scene
.
currentTime
.
Add
(
quantum
)
for
i
:=
w
.
scene
.
currentEvent
;
i
<
nbEvents
;
i
++
{
e
:=
w
.
scene
.
Events
[
i
]
...
...
dfssd/gui/graphics.go
View file @
a8bc9a63
...
...
@@ -10,7 +10,7 @@ import (
// These two constants are used to configure arrows
const
ARROW_T
=
math
.
Pi
/
6
// angle
const
ARROW_L
=
15
// side length
const
ARROW_L
=
30
// side length
// DrawClients draws the different clients in a circle.
func
(
w
*
Window
)
DrawClients
()
{
...
...
dfssd/gui/widget.ui
View file @
a8bc9a63
...
...
@@ -146,13 +146,13 @@
<enum>
QAbstractSpinBox::CorrectToNearestValue
</enum>
</property>
<property
name=
"suffix"
>
<string>
n
s
</string>
<string>
u
s
</string>
</property>
<property
name=
"minimum"
>
<number>
1
</number>
</property>
<property
name=
"maximum"
>
<number>
1000000
</number>
<number>
1000000
0
</number>
</property>
<property
name=
"singleStep"
>
<number>
100
</number>
...
...
Write
Preview
Supports
Markdown
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