vtkObject - abstract base class for most of the vtk objects
vtkObject is the base class for many objects in the visualization toolkit. vtkObject provides methods for tracking modification times, debugging, and printing. Most objects created within the vtk framework should be a subclass of vtkObject or one of its children. The few exceptions tend to be very small helper classes that usually never get instantiated or situations where multiple inheritance gets in the way. vtkObject also performs reference counting: Objects that are reference counted exist as long as another object uses them. Once the last reference to a reference counted object is removed, the object will spontaneously destruct. Typically only data objects that are passed between objects are reference counted.
Note: in vtk objects should always be created with combinations of new/Delete() methods. This does not work when objects are allocated off the stack (i.e., automatic objects). Automatic objects, when automatically deleted (by exiting scope), will cause warnings to occur. You should not create vtkObjects in this manner.
Detailed Method Descriptions:
Return the class name as a string.
Delete a vtk object. This method should always be used to delete an object when the new operator was used to create it. Using the C++ delete method will not work with reference counting.
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Turn debugging output on.
Turn debugging output off.
Get the value of the debug flag.
Set the value of the debug flag. A non-zero value turns debugging on.
This method is called when vtkErrorMacro executes. It allows the debugger to break on error.
Return this objects modified time.
Update the modification time for this object. Many filters rely on the modification time to determine if they need to recompute their data.
Chaining method to print an object's instance variables, as well as its superclasses.
Print an object to an ostream.
Support methods for the printing process.
This is a global flag that controls whether any debug, warning or error messages are displayed.
Increase the reference count (mark as used by another object).
Decrease the reference count (release by another object).
Sets the reference count (use with care)