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

REFAC: Enforce code formatting

parent b810bee1
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ Scene::initialize()
Vec3d globalMin, globalMax;
Scene::computeBoundingBox(globalMin, globalMax);
const Vec3d center = (globalMin + globalMax) * 0.5;
const Vec3d center = (globalMin + globalMax) * 0.5;
const double size = (globalMax - globalMin).norm();
m_cameras["debug"]->setFocalPoint(center);
m_cameras["debug"]->setPosition(center + Vec3d(0.0, 1.0, 1.0).normalized() * size);
......@@ -398,7 +398,7 @@ Scene::removeLight(const std::string& lightName)
LOG(INFO) << lightName << " light removed from " << m_name;
}
std::string
std::string
Scene::getCameraName(const std::shared_ptr<Camera> cam) const
{
auto i = std::find_if(m_cameras.begin(), m_cameras.end(),
......@@ -413,7 +413,7 @@ Scene::getCameraName(const std::shared_ptr<Camera> cam) const
}
}
std::shared_ptr<imstk::Camera>
std::shared_ptr<imstk::Camera>
Scene::getCamera(const std::string name) const
{
auto i = m_cameras.find(name);
......@@ -427,7 +427,7 @@ Scene::getCamera(const std::string name) const
}
}
void
void
Scene::setActiveCamera(const std::string name)
{
auto i = m_cameras.find(name);
......
......@@ -218,7 +218,7 @@ public:
std::shared_ptr<Light> getLight(const std::string& lightName) const;
///
/// \brief
/// \brief
///
const NamedMap<Camera>& getCameras() const { return m_cameras; }
......@@ -236,7 +236,7 @@ public:
/// \brief Set global IBL probe
///
void setGlobalIBLProbe(std::shared_ptr<IBLProbe> newIBLProbe) { m_globalIBLProbe = newIBLProbe; }
///
/// \brief Return global IBL probe
///
......@@ -273,7 +273,7 @@ public:
void addCamera(std::string name, std::shared_ptr<Camera> cam) { m_cameras[name] = cam; }
///
/// \brief Switch the active camera to the one requested by name.
/// \brief Switch the active camera to the one requested by name.
/// If the requested on doesn't exist, previous on remains
///
void setActiveCamera(const std::string name);
......
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