From 48bbc39efd15c0d75e6a0d30070fdf31f188c7a6 Mon Sep 17 00:00:00 2001 From: sreekanth-arikatla <sreekanth.arikatla@kitware.com> Date: Mon, 21 Jun 2021 09:48:34 -0400 Subject: [PATCH] REFAC: Enforce code formatting --- Source/Scene/imstkScene.cpp | 8 ++++---- Source/Scene/imstkScene.h | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/Scene/imstkScene.cpp b/Source/Scene/imstkScene.cpp index cd7a18858..a2022f161 100644 --- a/Source/Scene/imstkScene.cpp +++ b/Source/Scene/imstkScene.cpp @@ -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); diff --git a/Source/Scene/imstkScene.h b/Source/Scene/imstkScene.h index 3935a0218..bb4b14e25 100644 --- a/Source/Scene/imstkScene.h +++ b/Source/Scene/imstkScene.h @@ -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); -- GitLab