Skip to content

Commit

Permalink
Refs #6347. Progress on SliceView showing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Reuter committed Jan 10, 2013
1 parent 66e9c45 commit 300758f
Showing 1 changed file with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <pqPipelineSource.h>
#include <pqRenderView.h>
#include <pqServerManagerModel.h>
#include <vtkContextMouseEvent.h>
#include <vtkSMPropertyHelper.h>
#include <vtkSMProxy.h>

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

/**
* This function checks the signal coming from the MultiSliceView when a slice
* indicator is clicked.
* @param axisIndex : index for the axis on which the clicked indicator resides
* @param sliceOffsetOnAxis :
* @param button : which mouse button is being used
* @param modifier : which modifier key is being used
*/
void MultiSliceView::checkSliceClicked(int axisIndex, double sliceOffsetOnAxis,
int button, int modifier)
{

UNUSED_ARG(sliceOffsetOnAxis);
if (modifier == vtkContextMouseEvent::CONTROL_MODIFIER &&
button == vtkContextMouseEvent::LEFT_BUTTON)
{
std::cout << "Right combination present." << std::endl;
this->showCutInSliceViewer(axisIndex);
}
}

/**
* This function checks the sources for the WorkspaceName property. If found,
* the ability to show a given cut in the SliceViewer will be activated.
* This function checks the sources for the WorkspaceName property. If not found,
* the ability to show a given cut in the SliceViewer will be deactivated.
*/
void MultiSliceView::checkSliceViewCompat()
{
Expand Down

0 comments on commit 300758f

Please sign in to comment.