GetEventPosition( this->Interactor, mySelectionEvent->myX, mySelectionEvent->myY );
- return mySelectionEvent.get();
+ return mySelectionEvent.GetPointer();
}
/*!
this->Interactor->GetEventPosition(mySelectionEvent->myX, mySelectionEvent->myY);
- return mySelectionEvent.get();
+ return mySelectionEvent.GetPointer();
}
void SVTK_InteractorStyle::RotateXY(int dx, int dy)
#include "SVTK_SelectionEvent.h"
-#include <boost/shared_ptr.hpp>
-
#include <vtkInteractorStyle.h>
#include <vtkSmartPointer.h>
static SVTK_InteractorStyle *New();
vtkTypeMacro(SVTK_InteractorStyle, vtkInteractorStyle);
- typedef boost::shared_ptr<SVTK_SelectionEvent> PSelectionEvent;
-
-
+ typedef vtkSmartPointer<SVTK_SelectionEvent> PSelectionEvent;
//! Generate special #SVTK_SelectionEvent
virtual SVTK_SelectionEvent* GetSelectionEvent();
#include "SVTK_Selection.h"
+#include <vtkObjectBase.h>
+
//! The structure is used for passing all infromation necessary for claculation of the selection.
/*!
The SVTK_SelectionEvent is generated by #SVTK_InteractorStyle.
In its turn the #SVTK_InteractorStyle uses for it generation #vtkRenderWindowInteractor and
#SVTK_Selector instances.
*/
-struct SVTK_SelectionEvent
+struct SVTK_SelectionEvent: public vtkObjectBase
{
//! Through usage of the parameter any new type of selection can be introduced
Selection_Mode mySelectionMode;