I'm using vtkSmartPointer to hold a vtkBorderWidget object of a class member
variable and instantiates an object in a member function of the class. The
member function call which will result in vtkSmartPointer new object
instantiation may occur multiple times in the lifetime of my Class object.
In this do I need to call delete method in vtkSmartPointer before each
re-installation or will it be deleted automatically when vtkSmartPointer
<>:: New call? or I need to use a normal pointer in this case?
Example of my case:
vtkSmartPointer <vtkBorderWidget > m_vtkBox;
m_vtkBox = vtkSmartPointer <vtkBorderWidget >::New();