diff --git a/Source/Scene/imstkScene.cpp b/Source/Scene/imstkScene.cpp index cd7a188582731696a19d6304d74ed6cb4951bc41..a2022f16141d353aa5f7e42ec8eaecf958384f4d 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 3935a02182db6d3592ada3fce141a4e973b0256a..bb4b14e25289ef793fd91de0fb8c638a518b60ef 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);