1 #ifndef GEOM_SMARTPTR_H
2 #define GEOM_SMARTPTR_H
4 #include <vtkSmartPointer.h>
7 class GEOM_SmartPtr: public vtkSmartPointer<T>
11 GEOM_SmartPtr(T* r, bool theIsOwner = false): vtkSmartPointer<T>(r) {
15 GEOM_SmartPtr& operator()(T* r, bool theIsOwner = false){
16 vtkSmartPointer<T>::operator=(r);
21 GEOM_SmartPtr& operator=(T* r){ vtkSmartPointer<T>::operator=(r); return *this;}
22 T* Get() const { return this->GetPointer();}
26 class GEOM_DeviceActor;
27 typedef GEOM_SmartPtr<GEOM_DeviceActor> PDeviceActor;
29 class vtkPolyDataMapper;
30 typedef GEOM_SmartPtr<vtkPolyDataMapper> PPolyDataMapper;
33 #endif //GEOM_SMARTPTR_H