ParaView
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkCPUnstructuredGridBuilder Class Reference

Class for creating unstructured grids. More...

#include <vtkCPUnstructuredGridBuilder.h>

Inheritance diagram for vtkCPUnstructuredGridBuilder:
Inheritance graph
[legend]
Collaboration diagram for vtkCPUnstructuredGridBuilder:
Collaboration graph
[legend]

Public Types

typedef vtkCPGridBuilder Superclass
 
- Public Types inherited from vtkCPGridBuilder
typedef vtkCPBaseGridBuilder Superclass
 
- Public Types inherited from vtkCPBaseGridBuilder
typedef vtkObject Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual vtkDataObject * GetGrid (unsigned long timeStep, double time, int &builtNewGrid)
 Return a grid. More...
 
vtkUnstructuredGrid * GetUnstructuredGrid ()
 Get the UnstructuredGrid. More...
 
bool SetPoints (vtkPoints *points)
 Set the vtkPoints of the vtkUnstructuredGrid. More...
 
virtual void Allocate (vtkIdType numCells=1000, int extSize=1000)
 Allocate memory for the cells on UnstructuredGrid. More...
 
vtkIdType InsertNextCell (int type, vtkIdType npts, vtkIdType *pts)
 Insert/create cell in object by type and list of point ids defining cell topology. More...
 
vtkIdType InsertNextCell (int type, vtkIdList *ptIds)
 Insert/create cell in object by type and list of point ids defining cell topology. More...
 
- Public Member Functions inherited from vtkCPGridBuilder
void PrintSelf (ostream &os, vtkIndent indent)
 
void SetFieldBuilder (vtkCPBaseFieldBuilder *fieldBuilder)
 Set/get the FieldBuilder. More...
 
vtkCPBaseFieldBuilderGetFieldBuilder ()
 Set/get the FieldBuilder. More...
 
- Public Member Functions inherited from vtkCPBaseGridBuilder
void PrintSelf (ostream &os, vtkIndent indent)
 

Static Public Member Functions

static vtkCPUnstructuredGridBuilderNew ()
 
static int IsTypeOf (const char *type)
 
static vtkCPUnstructuredGridBuilderSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkCPGridBuilder
static int IsTypeOf (const char *type)
 
static vtkCPGridBuilderSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkCPBaseGridBuilder
static int IsTypeOf (const char *type)
 
static vtkCPBaseGridBuilderSafeDownCast (vtkObject *o)
 

Protected Member Functions

 vtkCPUnstructuredGridBuilder ()
 
 ~vtkCPUnstructuredGridBuilder ()
 
void SetUnstructuredGrid (vtkUnstructuredGrid *grid)
 Macro to set UnstructuredGrid. More...
 
- Protected Member Functions inherited from vtkCPGridBuilder
 vtkCPGridBuilder ()
 
 ~vtkCPGridBuilder ()
 
- Protected Member Functions inherited from vtkCPBaseGridBuilder
 vtkCPBaseGridBuilder ()
 
 ~vtkCPBaseGridBuilder ()
 

Protected Attributes

bool IsGridModified
 Flag to indicate if UnstructuredGrid has been modified since last call to GetGrid(). More...
 

Detailed Description

Class for creating unstructured grids.

Class for creating vtkUnstructuredGrids for a test driver. Note that the user must call SetPoints(), Allocate(), and InsertNextCell().

Definition at line 34 of file vtkCPUnstructuredGridBuilder.h.

Member Typedef Documentation

◆ Superclass

Definition at line 38 of file vtkCPUnstructuredGridBuilder.h.

Constructor & Destructor Documentation

◆ vtkCPUnstructuredGridBuilder()

vtkCPUnstructuredGridBuilder::vtkCPUnstructuredGridBuilder ( )
protected

◆ ~vtkCPUnstructuredGridBuilder()

vtkCPUnstructuredGridBuilder::~vtkCPUnstructuredGridBuilder ( )
protected

Member Function Documentation

◆ New()

static vtkCPUnstructuredGridBuilder* vtkCPUnstructuredGridBuilder::New ( )
static

◆ GetClassName()

virtual const char* vtkCPUnstructuredGridBuilder::GetClassName ( )
virtual

Reimplemented from vtkCPGridBuilder.

Reimplemented in vtkCustomUnstructuredGridBuilder.

◆ IsTypeOf()

static int vtkCPUnstructuredGridBuilder::IsTypeOf ( const char *  type)
static

◆ IsA()

virtual int vtkCPUnstructuredGridBuilder::IsA ( const char *  type)
virtual

Reimplemented from vtkCPGridBuilder.

Reimplemented in vtkCustomUnstructuredGridBuilder.

◆ SafeDownCast()

static vtkCPUnstructuredGridBuilder* vtkCPUnstructuredGridBuilder::SafeDownCast ( vtkObject *  o)
static

◆ PrintSelf()

void vtkCPUnstructuredGridBuilder::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

◆ GetGrid()

virtual vtkDataObject* vtkCPUnstructuredGridBuilder::GetGrid ( unsigned long  timeStep,
double  time,
int &  builtNewGrid 
)
virtual

Return a grid.

BuiltNewGrid is set to 0 if the grids that were returned were already built before. vtkCPUnstructuredGridBuilder will also delete the grid.

Implements vtkCPGridBuilder.

Reimplemented in vtkCustomUnstructuredGridBuilder.

◆ GetUnstructuredGrid()

vtkUnstructuredGrid* vtkCPUnstructuredGridBuilder::GetUnstructuredGrid ( )

Get the UnstructuredGrid.

◆ SetPoints()

bool vtkCPUnstructuredGridBuilder::SetPoints ( vtkPoints *  points)

Set the vtkPoints of the vtkUnstructuredGrid.

Returns true if successful.

◆ Allocate()

virtual void vtkCPUnstructuredGridBuilder::Allocate ( vtkIdType  numCells = 1000,
int  extSize = 1000 
)
virtual

Allocate memory for the cells on UnstructuredGrid.

◆ InsertNextCell() [1/2]

vtkIdType vtkCPUnstructuredGridBuilder::InsertNextCell ( int  type,
vtkIdType  npts,
vtkIdType *  pts 
)

Insert/create cell in object by type and list of point ids defining cell topology.

◆ InsertNextCell() [2/2]

vtkIdType vtkCPUnstructuredGridBuilder::InsertNextCell ( int  type,
vtkIdList *  ptIds 
)

Insert/create cell in object by type and list of point ids defining cell topology.

◆ SetUnstructuredGrid()

void vtkCPUnstructuredGridBuilder::SetUnstructuredGrid ( vtkUnstructuredGrid *  grid)
protected

Macro to set UnstructuredGrid.

Member Data Documentation

◆ IsGridModified

bool vtkCPUnstructuredGridBuilder::IsGridModified
protected

Flag to indicate if UnstructuredGrid has been modified since last call to GetGrid().

Definition at line 81 of file vtkCPUnstructuredGridBuilder.h.


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