Skip to content

Commit

Permalink
Moved PendulumWindowWindow::createAndSetZincContext() elsewhere in th…
Browse files Browse the repository at this point in the history
…e file.
  • Loading branch information
agarny committed Jun 27, 2017
1 parent 072fd0c commit 131a31e
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions src/plugins/simulation/PendulumWindow/src/pendulumwindowwindow.cpp
Expand Up @@ -154,6 +154,24 @@ void PendulumWindowWindow::retranslateUi()

//==============================================================================

void PendulumWindowWindow::createAndSetZincContext()
{
// Keep track of our current scene viewer's description

mZincSceneViewerDescription = mZincWidget->sceneViewer().writeDescription();

// Create and set our Zinc context

mZincContext = new OpenCMISS::Zinc::Context("PendulumWindowWindow");

mZincContext->getMaterialmodule().defineStandardMaterials();
mZincContext->getGlyphmodule().defineStandardGlyphs();

mZincWidget->setContext(mZincContext);
}

//==============================================================================

void PendulumWindowWindow::initData(const int &pDataSize,
const double &pMinimumTime,
const double &pMaximumTime,
Expand Down Expand Up @@ -429,24 +447,6 @@ void PendulumWindowWindow::addData(const int &pCurrentDataSize)

//==============================================================================

void PendulumWindowWindow::createAndSetZincContext()
{
// Keep track of our current scene viewer's description

mZincSceneViewerDescription = mZincWidget->sceneViewer().writeDescription();

// Create and set our Zinc context

mZincContext = new OpenCMISS::Zinc::Context("PendulumWindowWindow");

mZincContext->getMaterialmodule().defineStandardMaterials();
mZincContext->getGlyphmodule().defineStandardGlyphs();

mZincWidget->setContext(mZincContext);
}

//==============================================================================

void PendulumWindowWindow::graphicsInitialized()
{
// Set our 'new' scene viewer's description
Expand Down

0 comments on commit 131a31e

Please sign in to comment.