Skip to content

Commit

Permalink
Some minor cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Aug 3, 2020
1 parent 3b5a0d5 commit 499dc2d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 19 deletions.
16 changes: 0 additions & 16 deletions src/plugins/simulation/PendulumWindow/src/pendulumwindowwindow.cpp
Expand Up @@ -66,7 +66,6 @@ PendulumWindowWindow::PendulumWindowWindow(QWidget *pParent) :
mGui(new Ui::PendulumWindowWindow),
mZincContext(nullptr),
mZincSceneViewerDescription(nullptr),
mAxesFontPointSize(0),
mInitialiseZincScene(true),
mCurrentDataSize(0),
mTimeValues(nullptr),
Expand All @@ -86,8 +85,6 @@ PendulumWindowWindow::PendulumWindowWindow(QWidget *pParent) :
this, &PendulumWindowWindow::createAndSetZincContext);
connect(mZincWidget, &ZincWidget::ZincWidget::graphicsInitialized,
this, &PendulumWindowWindow::graphicsInitialized);
connect(mZincWidget, &ZincWidget::ZincWidget::devicePixelRatioChanged,
this, &PendulumWindowWindow::devicePixelRatioChanged);

mGui->layout->addWidget(new Core::BorderedWidget(mZincWidget,
true, true, true, true));
Expand Down Expand Up @@ -541,19 +538,6 @@ void PendulumWindowWindow::graphicsInitialized()

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

void PendulumWindowWindow::devicePixelRatioChanged(int pDevicePixelRatio)
{
// Update our scene using the given devide pixel ratio

OpenCMISS::Zinc::Scene scene = mZincContext->getDefaultRegion().getScene();

scene.beginChange();
scene.createGraphicsPoints().getGraphicspointattributes().getFont().setPointSize(pDevicePixelRatio*mAxesFontPointSize);
scene.endChange();
}

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

void PendulumWindowWindow::timeSliderValueChanged(int pTime)
{
// Update our scene
Expand Down
Expand Up @@ -125,7 +125,6 @@ class PENDULUMWINDOW_EXPORT PendulumWindowWindow : public Core::WindowWidget
private slots:
void createAndSetZincContext();
void graphicsInitialized();
void devicePixelRatioChanged(int pDevicePixelRatio);

void timeSliderValueChanged(int pTime);
void timerTimeOut();
Expand Down
2 changes: 0 additions & 2 deletions src/plugins/test/ZincWindow/src/zincwindowwindow.h
Expand Up @@ -75,8 +75,6 @@ class ZincWindowWindow : public Core::WindowWidget

char *mZincSceneViewerDescription = nullptr;

int mAxesFontPointSize = 0;

private slots:
void createAndSetZincContext();
void graphicsInitialized();
Expand Down

0 comments on commit 499dc2d

Please sign in to comment.