38 #include "vtkPolyData.h"
42 #include "vtkImplicitPlaneWidget.h"
44 #include "vtkPlanes.h"
77 if (
m_PlaneWidget == static_cast< vtkImplicitPlaneWidget * >( caller ) )
79 if ( event == vtkCommand::InteractionEvent )
87 else if (
m_BoxWidget == static_cast< vtkOrientedBoxWidget * >( caller ) )
89 vtkPlanes *planes = vtkPlanes::New();
vtkImplicitPlaneWidget * m_PlaneWidget
static vtkViewImage3DCommand * New()
Convenient method to access the constructor.
void SetBoxWidget(vtkOrientedBoxWidget *iBoxWidget)
Set the box widget.
void SetVtkImageView3D(vtkViewImage3D *vtkViewImage3D)
Set the 3d image related to this 3d event manager.
virtual void Execute(vtkObject *caller, unsigned long, void *)
Basic class to handle items such as images and polydatas visualization in 3D.
void ComputeDistances(double *n, double *origin)
Compute the distance between 2 points.
void ComputeDistancesToSquare(vtkPlanes *planes)
Compute the disctance from the actors to the surface.
vtkViewImage3D * m_vtkViewImage3D
void SetPlaneWidget(vtkImplicitPlaneWidget *iPlaneWidget)
Set the plane widget.
vtkOrientedBoxWidget * m_BoxWidget
Manage events occuring in 3D view.