Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Related Pages  

vtkStack Class Reference

create and manipulate lists of objects. More...

#include <vtkStack.h>

Inheritance diagram for vtkStack:

Inheritance graph
[legend]
Collaboration diagram for vtkStack:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void Push (vtkObject *)
vtkObjectPop ()
vtkObjectGetTop ()
int GetNumberOfItems ()

Static Public Methods

vtkStack * New ()
int IsTypeOf (const char *type)
vtkStack * SafeDownCast (vtkObject *o)

Protected Methods

 vtkStack ()
 ~vtkStack ()
 vtkStack (const vtkStack &)
void operator= (const vtkStack &)

Protected Attributes

int NumberOfItems
vtkStackElement * Top
vtkStackElement * Bottom

Detailed Description

create and manipulate lists of objects.

Date:
2000/12/10 20:08:18
Revision:
1.27

vtkStack is a general object for creating and manipulating lists of objects. vtkStack also serves as a base class for lists of specific types of objects.


Member Function Documentation

virtual const char* vtkStack::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

int vtkStack::GetNumberOfItems  
 

Return the number of objects in the stack.

vtkObject* vtkStack::GetTop  
 

Return the number of objects in the stack.

virtual int vtkStack::IsA const char *    type [virtual]
 

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

int vtkStack::IsTypeOf const char *    type [static]
 

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

vtkStack* vtkStack::New   [static]
 

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

vtkObject* vtkStack::Pop  
 

Remove an object from the top of the list.

void vtkStack::PrintSelf ostream &    os,
vtkIndent    indent
[virtual]
 

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

void vtkStack::Push vtkObject  
 

Add an object to the top of the stack. Does not prevent duplicate entries.

vtkStack* vtkStack::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.


The documentation for this class was generated from the following file:
Generated on Tue Mar 19 13:33:10 2002 for VTK by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002