Commit 565ac152 authored by Sreekanth Arikatla's avatar Sreekanth Arikatla
Browse files

STYLE: Minor function name change

parent 07b9d98b
......@@ -96,7 +96,7 @@ public:
connect<Event>(viewer, VTKViewer::preUpdate, onPreUpdate);
onPreUpdate(nullptr);
applyColorFunction();
applyColor();
scene->getActiveCamera()->setPosition(Vec3d(0, 12, 3));
scene->getActiveCamera()->setFocalPoint(Vec3d(0, 0, 3.01));
......@@ -158,7 +158,7 @@ public:
connect<Event>(viewer, VTKViewer::preUpdate, onPreUpdate);
onPreUpdate(nullptr);
applyColorFunction();
applyColor();
scene->getActiveCamera()->setPosition(Vec3d(0, 12, 3));
scene->getActiveCamera()->setFocalPoint(Vec3d(0, 0, 3.01));
......@@ -214,7 +214,7 @@ public:
connect<Event>(viewer, VTKViewer::preUpdate, updateMesh);
updateMesh(nullptr);
applyColorFunction();
applyColor();
scene->getActiveCamera()->setPosition(Vec3d(0, 12, 3));
scene->getActiveCamera()->setFocalPoint(Vec3d(0, 0, 3.01));
......@@ -270,7 +270,7 @@ public:
connect<Event>(viewer, viewer->preUpdate, updateMesh);
updateMesh(nullptr);
applyColorFunction();
applyColor();
scene->getActiveCamera()->setPosition(Vec3d(0, 12, 3));
scene->getActiveCamera()->setFocalPoint(Vec3d(0, 0, 3.01));
......
......@@ -67,7 +67,7 @@ RenderTest::SetUp()
}
void
RenderTest::runFor(int seconds)
RenderTest::runFor(const int seconds)
{
std::thread t(&SimulationManager::start, driver);
std::this_thread::sleep_for(std::chrono::seconds(seconds));
......@@ -106,9 +106,9 @@ RenderTest::runAllMaterials()
}
void
RenderTest::applyColorFunction()
RenderTest::applyColor()
{
std::shared_ptr<ColorFunction> colorFunc = std::make_shared<ColorFunction>();
auto colorFunc = std::make_shared<ColorFunction>();
colorFunc->setNumberOfColors(3);
colorFunc->setColor(0, imstk::Color::Green);
colorFunc->setColor(1, imstk::Color::Blue);
......
......@@ -43,7 +43,7 @@ using namespace imstk;
class RenderTest : public testing::Test
{
public:
void runFor(int seconds);
void runFor(const int seconds);
void runAllMaterials();
protected:
......@@ -53,7 +53,7 @@ protected:
void updateMaterial();
void applyColorFunction();
void applyColor();
// Render Frame
std::shared_ptr<Scene> scene;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment