Using of QGuardedPtrs instead ordinary pointers
OrientedPlane::~OrientedPlane()
{
- if (myViewWindow)
+ if ( !myViewWindow.isNull() )
myViewWindow->RemoveActor(myActor);
myActor->Delete();
// QT Includes
#include <qdialog.h>
+#include <qguardedptr.h>
#include <qtable.h>
// VTK Includes
//=================================================================================
class OrientedPlane: public vtkPlane
{
- SVTK_ViewWindow* myViewWindow;
+ QGuardedPtr<SVTK_ViewWindow> myViewWindow;
vtkDataSetMapper* myMapper;
public: