Skip to content

Commit

Permalink
Refs #6347. Starting hook up of SliceViewer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Reuter committed Jan 9, 2013
1 parent 07ae4ef commit 66e9c45
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ class EXPORT_OPT_MANTIDVATES_SIMPLEGUI_VIEWWIDGETS MultiSliceView : public ViewB
void resetDisplay();

protected slots:
///
void checkSliceClicked(int axisIndex, double sliceOffsetOnAxis,
int button, int modifier);
/// Launch SliceViewer with the specified cut.
void showCutInSliceViewer(const QString &name);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ MultiSliceView::MultiSliceView(QWidget *parent) : ViewBase(parent)
pqRenderView *tmp = this->createRenderView(this->ui.renderFrame,
QString("MultiSlice"));
this->mainView = qobject_cast<pqMultiSliceView *>(tmp);

QObject::connect(this->mainView,
SIGNAL(sliceClicked(int, double, int, int)),
this,
SLOT(checkSliceClicked(int,double,int,int)));
}

MultiSliceView::~MultiSliceView()
Expand Down Expand Up @@ -91,15 +94,22 @@ void MultiSliceView::resetCamera()
this->mainView->resetCamera();
}

void MultiSliceView::checkSliceClicked(int axisIndex, double sliceOffsetOnAxis,
int button, int modifier)
{

}

/**
* This function checks the sources for the WorkspaceName property. If found,
* the ability to show a given cut in the SliceViewer will be activated.
*/
void MultiSliceView::checkSliceViewCompat()
{
QString wsName = this->getWorkspaceName();
if (!wsName.isEmpty())
if (wsName.isEmpty())
{
QObject::disconnect(this->mainView, 0, this, 0);
}
}

Expand Down

0 comments on commit 66e9c45

Please sign in to comment.