Skip to content

Commit fdf9052

Browse files
committed
backup: move export directly in the action control
1 parent c4cf360 commit fdf9052

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

src/BeamAdapter/component/controller/BeamAdapterActionController.inl

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ void BeamAdapterActionController<DataTypes>::onKeyPressedEvent(core::objectmodel
7474
/// Control keys for interventonal Radiology simulations:
7575
switch (kev->getKey())
7676
{
77-
7877
case 'E':
7978
m_currAction = BeamAdapterAction::NO_ACTION;
80-
m_exportActions = !m_exportActions;
79+
std::cout << "timeSteps='" << d_timeSteps.getValue() << "'" << std::endl;
80+
std::cout << "actions='" << d_actions.getValue() << "'" << std::endl;
8181
break;
8282
case 'D':
8383
m_currAction = BeamAdapterAction::DROP_TOOL;
@@ -138,12 +138,6 @@ void BeamAdapterActionController<DataTypes>::onBeginAnimationStep(const double /
138138
times.push_back(currentTime);
139139
actions.push_back(int(m_currAction));
140140

141-
if (m_exportActions)
142-
{
143-
std::cout << "timeSteps='" << times.wref() << "'" << std::endl;
144-
std::cout << "actions='" << actions.wref() << "'" << std::endl;
145-
}
146-
147141
m_lastAction = m_currAction;
148142
}
149143
else

0 commit comments

Comments
 (0)