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
CamiTK
CamiTK Community Edition
Commits
ed001fdb
Commit
ed001fdb
authored
Jul 06, 2018
by
Emmanuel Promayon
Browse files
UPDATED remove trace message now that everything seems to be ok
parent
8fd8aba6
Changes
1
Hide whitespace changes
Inline
Side-by-side
sdk/applications/actionstatemachine/ActionStateMachine.cpp
View file @
ed001fdb
...
...
@@ -133,14 +133,13 @@ void ActionStateMachine::autoNext() {
// loop until no more state is available
while
(
currentState
!=
nullptr
&&
currentState
->
transitions
().
size
()
>
0
)
{
CAMITK_TRACE
(
"current state = "
+
currentState
->
getName
()
+
" ("
+
currentState
->
transitions
().
size
()
+
" transitions)"
)
// look for the "Next" or "Quit" transition
auto
it
=
currentState
->
transitions
().
begin
();
bool
foundNextState
=
false
;
while
(
it
!=
currentState
->
transitions
().
end
()
&&
!
foundNextState
)
{
// && nextState==nullptr) {
// all transition in this state machine are ActionTransition instances...
ActionTransition
*
currentActionTransition
=
qobject_cast
<
ActionTransition
*>
(
*
it
);
CAMITK_TRACE
(
"current transition = "
+
QString
(
"0x%1"
).
arg
((
quintptr
)
currentActionTransition
,
QT_POINTER_SIZE
*
2
,
16
,
QChar
(
'0'
)))
//... in which we can look for the "Next" or "Quit" transition
if
(
currentActionTransition
->
isNamed
(
"Next"
)
||
currentActionTransition
->
isNamed
(
"Quit"
))
{
// activate the transition (simulate a click on the button)
...
...
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