Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

vtkImageGridSource Class Reference

#include <vtkImageGridSource.h>

Inheritance diagram for vtkImageGridSource:

Inheritance graph
[legend]
Collaboration diagram for vtkImageGridSource:

Collaboration graph
[legend]
List of all members.

Detailed Description

Create an image of a grid.

vtkImageGridSource produces an image of a grid. The default output type is double.

Tests:
vtkImageGridSource (Tests)

Definition at line 30 of file vtkImageGridSource.h.

Public Types

typedef vtkImageSource Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetGridSpacing (int, int, int)
virtual void SetGridSpacing (int[3])
virtual int * GetGridSpacing ()
virtual void GetGridSpacing (int &, int &, int &)
virtual void GetGridSpacing (int[3])
virtual void SetGridOrigin (int, int, int)
virtual void SetGridOrigin (int[3])
virtual int * GetGridOrigin ()
virtual void GetGridOrigin (int &, int &, int &)
virtual void GetGridOrigin (int[3])
virtual void SetLineValue (double)
virtual double GetLineValue ()
virtual void SetFillValue (double)
virtual double GetFillValue ()
virtual void SetDataScalarType (int)
void SetDataScalarTypeToDouble ()
void SetDataScalarTypeToInt ()
void SetDataScalarTypeToShort ()
void SetDataScalarTypeToUnsignedShort ()
void SetDataScalarTypeToUnsignedChar ()
virtual int GetDataScalarType ()
const char * GetDataScalarTypeAsString ()
virtual void SetDataExtent (int, int, int, int, int, int)
virtual void SetDataExtent (int[6])
virtual int * GetDataExtent ()
virtual void GetDataExtent (int &, int &, int &, int &, int &, int &)
virtual void GetDataExtent (int[6])
virtual void SetDataSpacing (double, double, double)
virtual void SetDataSpacing (double[3])
virtual double * GetDataSpacing ()
virtual void GetDataSpacing (double &, double &, double &)
virtual void GetDataSpacing (double[3])
virtual void SetDataOrigin (double, double, double)
virtual void SetDataOrigin (double[3])
virtual double * GetDataOrigin ()
virtual void GetDataOrigin (double &, double &, double &)
virtual void GetDataOrigin (double[3])

Static Public Member Functions

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

Protected Member Functions

 vtkImageGridSource ()
 ~vtkImageGridSource ()
virtual void ExecuteInformation ()
virtual void ExecuteData (vtkDataObject *data)

Protected Attributes

int GridSpacing [3]
int GridOrigin [3]
double LineValue
double FillValue
int DataScalarType
int DataExtent [6]
double DataSpacing [3]
double DataOrigin [3]


Member Typedef Documentation

typedef vtkImageSource vtkImageGridSource::Superclass
 

Reimplemented from vtkImageSource.

Definition at line 34 of file vtkImageGridSource.h.


Constructor & Destructor Documentation

vtkImageGridSource::vtkImageGridSource (   )  [protected]
 

vtkImageGridSource::~vtkImageGridSource (   )  [inline, protected]
 

Definition at line 99 of file vtkImageGridSource.h.


Member Function Documentation

static vtkImageGridSource* vtkImageGridSource::New (   )  [static]
 

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

Reimplemented from vtkObject.

virtual const char* vtkImageGridSource::GetClassName (   )  [virtual]
 

Reimplemented from vtkImageSource.

static int vtkImageGridSource::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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkImageSource.

virtual int vtkImageGridSource::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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkImageSource.

static vtkImageGridSource* vtkImageGridSource::SafeDownCast (  vtkObject *  o  )  [static]
 

Reimplemented from vtkImageSource.

void vtkImageGridSource::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 vtkImageSource.

virtual void vtkImageGridSource::SetGridSpacing (  int  ,
int  ,
int 
)  [virtual]
 

Set/Get the grid spacing in pixel units. Default (10,10,0). A value of zero means no grid.

virtual void vtkImageGridSource::SetGridSpacing (  int  [3]  )  [virtual]
 

virtual int* vtkImageGridSource::GetGridSpacing (   )  [virtual]
 

virtual void vtkImageGridSource::GetGridSpacing (  int &  ,
int &  ,
int & 
)  [virtual]
 

virtual void vtkImageGridSource::GetGridSpacing (  int  [3]  )  [virtual]
 

virtual void vtkImageGridSource::SetGridOrigin (  int  ,
int  ,
int 
)  [virtual]
 

Set/Get the grid origin, in ijk integer values. Default (0,0,0).

virtual void vtkImageGridSource::SetGridOrigin (  int  [3]  )  [virtual]
 

virtual int* vtkImageGridSource::GetGridOrigin (   )  [virtual]
 

virtual void vtkImageGridSource::GetGridOrigin (  int &  ,
int &  ,
int & 
)  [virtual]
 

virtual void vtkImageGridSource::GetGridOrigin (  int  [3]  )  [virtual]
 

virtual void vtkImageGridSource::SetLineValue (  double   )  [virtual]
 

Set the grey level of the lines. Default 1.0.

virtual double vtkImageGridSource::GetLineValue (   )  [virtual]
 

virtual void vtkImageGridSource::SetFillValue (  double   )  [virtual]
 

Set the grey level of the fill. Default 0.0.

virtual double vtkImageGridSource::GetFillValue (   )  [virtual]
 

virtual void vtkImageGridSource::SetDataScalarType (  int   )  [virtual]
 

Set/Get the data type of pixels in the imported data. As a convenience, the OutputScalarType is set to the same value.

void vtkImageGridSource::SetDataScalarTypeToDouble (   )  [inline]
 

Definition at line 66 of file vtkImageGridSource.h.

References VTK_DOUBLE.

void vtkImageGridSource::SetDataScalarTypeToInt (   )  [inline]
 

Definition at line 67 of file vtkImageGridSource.h.

References VTK_INT.

void vtkImageGridSource::SetDataScalarTypeToShort (   )  [inline]
 

Definition at line 68 of file vtkImageGridSource.h.

References VTK_SHORT.

void vtkImageGridSource::SetDataScalarTypeToUnsignedShort (   )  [inline]
 

Definition at line 69 of file vtkImageGridSource.h.

References VTK_UNSIGNED_SHORT.

void vtkImageGridSource::SetDataScalarTypeToUnsignedChar (   )  [inline]
 

Definition at line 71 of file vtkImageGridSource.h.

References VTK_UNSIGNED_CHAR.

virtual int vtkImageGridSource::GetDataScalarType (   )  [virtual]
 

const char* vtkImageGridSource::GetDataScalarTypeAsString (   )  [inline]
 

Definition at line 74 of file vtkImageGridSource.h.

virtual void vtkImageGridSource::SetDataExtent (  int  ,
int  ,
int  ,
int  ,
int  ,
int 
)  [virtual]
 

Set/Get the extent of the whole output image, Default: (0,255,0,255,0,0)

virtual void vtkImageGridSource::SetDataExtent (  int  [6]  )  [virtual]
 

virtual int* vtkImageGridSource::GetDataExtent (   )  [virtual]
 

virtual void vtkImageGridSource::GetDataExtent (  int &  ,
int &  ,
int &  ,
int &  ,
int &  ,
int & 
)  [virtual]
 

virtual void vtkImageGridSource::GetDataExtent (  int  [6]  )  [virtual]
 

virtual void vtkImageGridSource::SetDataSpacing (  double  ,
double  ,
double 
)  [virtual]
 

Set/Get the pixel spacing.

virtual void vtkImageGridSource::SetDataSpacing (  double  [3]  )  [virtual]
 

virtual double* vtkImageGridSource::GetDataSpacing (   )  [virtual]
 

virtual void vtkImageGridSource::GetDataSpacing (  double &  ,
double &  ,
double & 
)  [virtual]
 

virtual void vtkImageGridSource::GetDataSpacing (  double  [3]  )  [virtual]
 

virtual void vtkImageGridSource::SetDataOrigin (  double  ,
double  ,
double 
)  [virtual]
 

Set/Get the origin of the data.

virtual void vtkImageGridSource::SetDataOrigin (  double  [3]  )  [virtual]
 

virtual double* vtkImageGridSource::GetDataOrigin (   )  [virtual]
 

virtual void vtkImageGridSource::GetDataOrigin (  double &  ,
double &  ,
double & 
)  [virtual]
 

virtual void vtkImageGridSource::GetDataOrigin (  double  [3]  )  [virtual]
 

virtual void vtkImageGridSource::ExecuteInformation (   )  [protected, virtual]
 

Reimplemented from vtkSource.

virtual void vtkImageGridSource::ExecuteData (  vtkDataObject *  data  )  [protected, virtual]
 

This method is the one that should be used by subclasses, right now the default implementation is to call the backwards compatibility method

Reimplemented from vtkSource.


Member Data Documentation

int vtkImageGridSource::GridSpacing[3] [protected]
 

Definition at line 99 of file vtkImageGridSource.h.

int vtkImageGridSource::GridOrigin[3] [protected]
 

Definition at line 102 of file vtkImageGridSource.h.

double vtkImageGridSource::LineValue [protected]
 

Definition at line 104 of file vtkImageGridSource.h.

double vtkImageGridSource::FillValue [protected]
 

Definition at line 105 of file vtkImageGridSource.h.

int vtkImageGridSource::DataScalarType [protected]
 

Definition at line 107 of file vtkImageGridSource.h.

int vtkImageGridSource::DataExtent[6] [protected]
 

Definition at line 109 of file vtkImageGridSource.h.

double vtkImageGridSource::DataSpacing[3] [protected]
 

Definition at line 110 of file vtkImageGridSource.h.

double vtkImageGridSource::DataOrigin[3] [protected]
 

Definition at line 111 of file vtkImageGridSource.h.


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