Skip to content
Snippets Groups Projects
Commit 1ea62407 authored by Sreekanth Arikatla's avatar Sreekanth Arikatla
Browse files

STYLE: Enforce style

parent d7d5a1e7
No related branches found
No related tags found
No related merge requests found
......@@ -57,14 +57,14 @@ int main()
// Supply translation to dummy client frame
auto translateFunc =
[&client](Module* module)
{
Vec3d p = client->getPosition() + Vec3d(1.0e-4, 0, 0);
if (p.x() > 50.)
{
p = Vec3d(0, 0, 0);
}
client->setPosition(p);
};
Vec3d p = client->getPosition() + Vec3d(1.0e-4, 0, 0);
if (p.x() > 50.)
{
p = Vec3d(0, 0, 0);
}
client->setPosition(p);
};
sdk->getSceneManager(scene)->setPostUpdateCallback(translateFunc);
// Update Camera position
......@@ -81,6 +81,6 @@ int main()
// Run
sdk->setActiveScene(scene);
sdk->startSimulation(SimulationStatus::RUNNING);
return 0;
}
......@@ -27,7 +27,7 @@
namespace imstk
{
void
void
DummyClient::setButton(const unsigned int buttonId, const bool buttonStatus)
{
auto x = m_buttons.find(buttonId);
......
......@@ -26,7 +26,6 @@
namespace imstk
{
///
/// \class Dummy client
/// \brief Allows setting the pose of the device from external caller
......@@ -60,7 +59,7 @@ protected:
public:
///
/// \brief Set position
///
///
void setPosition(const Vec3d& pos) { m_position = pos; };
///
......@@ -76,8 +75,8 @@ public:
///
/// \brief Set orientation from 4x4 transform
///
void setOrientation(double* transform)
{
void setOrientation(double* transform)
{
m_orientation = (Eigen::Affine3d(Eigen::Matrix4d(transform))).rotation();
};
......@@ -85,9 +84,7 @@ public:
/// \brief Set the button status if it exists
///
void setButton(const unsigned int buttonId, const bool buttonStatus);
};
}
#endif // ifndef imstkDummyClient_h
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment