Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File 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
vtkStackElementTop
vtkStackElementBottom

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.

Examples:
vtkStack (examples)

Definition at line 69 of file vtkStack.h.


Constructor & Destructor Documentation

vtkStack::vtkStack   [protected]
 

vtkStack::~vtkStack   [protected]
 

vtkStack::vtkStack const vtkStack &    [inline, protected]
 

Definition at line 93 of file vtkStack.h.


Member Function Documentation

vtkStack* vtkStack::New   [static]
 

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

Reimplemented from vtkObject.

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::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.

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.

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.

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.

vtkObject* vtkStack::Pop  
 

Remove an object from the top of the list.

vtkObject* vtkStack::GetTop  
 

Return the number of objects in the stack.

int vtkStack::GetNumberOfItems  
 

Return the number of objects in the stack.

void vtkStack::operator= const vtkStack &    [inline, protected]
 

Definition at line 94 of file vtkStack.h.


Member Data Documentation

int vtkStack::NumberOfItems [protected]
 

Definition at line 96 of file vtkStack.h.

vtkStackElement* vtkStack::Top [protected]
 

Definition at line 97 of file vtkStack.h.

vtkStackElement* vtkStack::Bottom [protected]
 

Definition at line 98 of file vtkStack.h.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 13:00:28 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001