VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkCastToConcrete Class Reference

works around type-checking limitations More...

#include <vtkCastToConcrete.h>

Inherits vtkDataSetAlgorithm.

Public Types

typedef vtkDataSetAlgorithm Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 

Static Public Member Functions

static vtkCastToConcreteNew ()
 
static int IsTypeOf (const char *type)
 
static vtkCastToConcreteSafeDownCast (vtkObject *o)
 

Protected Member Functions

 vtkCastToConcrete ()
 
 ~vtkCastToConcrete ()
 
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 

Detailed Description

works around type-checking limitations

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
vtkDataSetAlgorithm vtkPointSetToPointSetFilter
Examples:
vtkCastToConcrete (Examples)
Tests:
vtkCastToConcrete (Tests)

Definition at line 51 of file vtkCastToConcrete.h.

Member Typedef Documentation

typedef vtkDataSetAlgorithm vtkCastToConcrete::Superclass

Definition at line 56 of file vtkCastToConcrete.h.

Constructor & Destructor Documentation

vtkCastToConcrete::vtkCastToConcrete ( )
inlineprotected

Definition at line 60 of file vtkCastToConcrete.h.

vtkCastToConcrete::~vtkCastToConcrete ( )
inlineprotected

Definition at line 61 of file vtkCastToConcrete.h.

Member Function Documentation

static vtkCastToConcrete* vtkCastToConcrete::New ( )
static
virtual const char* vtkCastToConcrete::GetClassName ( )
virtual
static int vtkCastToConcrete::IsTypeOf ( const char *  type)
static
virtual int vtkCastToConcrete::IsA ( const char *  type)
virtual
static vtkCastToConcrete* vtkCastToConcrete::SafeDownCast ( vtkObject o)
static
void vtkCastToConcrete::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual int vtkCastToConcrete::RequestData ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
)
protectedvirtual
virtual int vtkCastToConcrete::RequestInformation ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
)
protectedvirtual

The documentation for this class was generated from the following file: