Skip to content

Commit

Permalink
Refs #7931. Clean up and documenting code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Reuter committed Sep 16, 2013
1 parent 4422295 commit 4a579d8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ class EXPORT_OPT_MANTIDVATES_SIMPLEGUI_VIEWWIDGETS StandardView : public ViewBas
void resetDisplay();
/// @see ViewBase::updateUI()
void updateUI();
/// @see ViewBase::updateView()
void updateView();

protected slots:
Expand All @@ -77,6 +78,7 @@ protected slots:
void onDestroyingSource(pqPipelineSource *src);
/// Invoke the RebinnerCutter on the current dataset.
void onRebinButtonClicked();
/// Perform operations when rendering is done.
void onRenderDone();
/// Invoke the ScaleWorkspace on the current dataset.
void onScaleButtonClicked();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ public slots:
void setTimeSteps(bool withUpdate = false);
/// Provide updates to UI.
virtual void updateUI();
/// Provide updates to View
virtual void updateView();

signals:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,6 @@ void MdViewerWidget::checkForUpdates()
this->currentView->setAxisScales();
pqActiveObjects::instance().setActiveSource(src);
this->currentView->setTimeSteps(true);
//this->currentView->resetCamera();
this->currentView->updateView();
this->currentView->updateUI();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ void StandardView::onScaleButtonClicked()
this->getPvActiveSrc());
}

/**
* This function is responsible for calling resetCamera if the internal
* variable cameraReset has been set to true.
*/
void StandardView::onRenderDone()
{
if (this->cameraReset)
Expand Down
3 changes: 3 additions & 0 deletions Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/ViewBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,9 @@ void ViewBase::updateUI()
{
}

/**
* This function is where one specifies updates to the held view.
*/
void ViewBase::updateView()
{
}
Expand Down

0 comments on commit 4a579d8

Please sign in to comment.