Skip to content

Commit

Permalink
Refs #11532 Fixes interaction mode in splatter plot
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonPiccardoSelg committed Apr 17, 2015
1 parent 2d70c63 commit 19ed00f
Showing 1 changed file with 11 additions and 0 deletions.
Expand Up @@ -25,6 +25,7 @@
#include <pqServerManagerModel.h>
#include <vtkDataObject.h>
#include <vtkProperty.h>
#include <vtkPVRenderView.h>
#include <vtkSMDoubleVectorProperty.h>
#include <vtkSMPropertyHelper.h>
#include <vtkSMPVRepresentationProxy.h>
Expand Down Expand Up @@ -242,6 +243,16 @@ void SplatterPlotView::render()
}

emit this->triggerAccept();
if (vtkSMProxy* viewProxy = this->getView()->getProxy())
{
vtkSMPropertyHelper helper(viewProxy, "InteractionMode");
if (helper.GetAsInt() == vtkPVRenderView::INTERACTION_MODE_2D)
{
helper.Set(vtkPVRenderView::INTERACTION_MODE_3D);
viewProxy->UpdateProperty("InteractionMode",1);
this->resetCamera();
}
}
}

void SplatterPlotView::renderAll()
Expand Down

0 comments on commit 19ed00f

Please sign in to comment.