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

vtkCastToConcrete Class Reference

works around type-checking limitations. More...

#include <vtkCastToConcrete.h>

Inheritance diagram for vtkCastToConcrete:

Inheritance graph
[legend]
Collaboration diagram for vtkCastToConcrete:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)

Static Public Methods

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

Protected Methods

 vtkCastToConcrete ()
 ~vtkCastToConcrete ()
 vtkCastToConcrete (const vtkCastToConcrete &)
void operator= (const vtkCastToConcrete &)
void Execute ()
void ExecuteInformation ()

Detailed Description

works around type-checking limitations.

Date:
2000/12/10 20:08:31
Revision:
1.26

vtkCastToConcrete is a filter that works around type-checking limitations in the filter classes. Some filters generate abstract types on output, and cannot be connected to the input of filters requiring a concrete input type. For example, vtkElevationFilter generates vtkDataSet for output, and cannot be connected to vtkDecimate, because vtkDecimate requires vtkPolyData as input. This is true even though (in this example) the input to vtkElevationFilter is of type vtkPolyData, and you know the output of vtkElevationFilter is the same type as its input.

vtkCastToConcrete performs run-time checking to insure that output type is of the right type. An error message will result if you try to cast an input type improperly. Otherwise, the filter performs the appropriate cast and returns the data.

Warning:
You must specify the input before you can get the output. Otherwise an error results.
See also:
vtkDataSetToDataSetFilter vtkPointSetToPointSetFilter
Examples:
vtkCastToConcrete (examples)

Definition at line 75 of file vtkCastToConcrete.h.


Constructor & Destructor Documentation

vtkCastToConcrete::vtkCastToConcrete   [inline, protected]
 

Definition at line 83 of file vtkCastToConcrete.h.

vtkCastToConcrete::~vtkCastToConcrete   [inline, protected]
 

Definition at line 84 of file vtkCastToConcrete.h.

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

Definition at line 85 of file vtkCastToConcrete.h.


Member Function Documentation

vtkCastToConcrete* vtkCastToConcrete::New   [static]
 

Instantiate object with no start, end, or progress methods.

Reimplemented from vtkDataSetSource.

virtual const char* vtkCastToConcrete::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 vtkDataSetToDataSetFilter.

int vtkCastToConcrete::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 vtkDataSetToDataSetFilter.

virtual int vtkCastToConcrete::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 vtkDataSetToDataSetFilter.

vtkCastToConcrete* vtkCastToConcrete::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 vtkDataSetToDataSetFilter.

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

Definition at line 86 of file vtkCastToConcrete.h.

void vtkCastToConcrete::Execute   [protected, virtual]
 

Reimplemented from vtkSource.

void vtkCastToConcrete::ExecuteInformation   [protected, virtual]
 

Reimplemented from vtkDataSetToDataSetFilter.


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