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) override
 
vtkDataObjectGetGrid (unsigned long timeStep, double time, int &builtNewGrid) override
 Return a grid. More...
 
vtkUnstructuredGridGetUnstructuredGrid ()
 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 SetFieldBuilder (vtkCPBaseFieldBuilder *fieldBuilder)
 Set/get the FieldBuilder. More...
 
vtkCPBaseFieldBuilderGetFieldBuilder ()
 Set/get the FieldBuilder. More...
 
- Public Member Functions inherited from vtkObject
 vtkBaseTypeMacro (vtkObject, vtkObjectBase)
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
virtual vtkMTimeType GetMTime ()
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
void SetReferenceCount (int)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 
void PrintRevisions (ostream &)
 

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)
 
- Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static vtkTypeBool IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 
static vtkObjectBaseNew ()
 

Protected Member Functions

 vtkCPUnstructuredGridBuilder ()
 
 ~vtkCPUnstructuredGridBuilder () override
 
void SetUnstructuredGrid (vtkUnstructuredGrid *grid)
 Macro to set UnstructuredGrid. More...
 
- Protected Member Functions inherited from vtkCPGridBuilder
 vtkCPGridBuilder ()
 
 ~vtkCPGridBuilder () override
 
- Protected Member Functions inherited from vtkCPBaseGridBuilder
 vtkCPBaseGridBuilder ()
 
 ~vtkCPBaseGridBuilder () override
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
void RegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE
 
void UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

bool IsGridModified
 Flag to indicate if UnstructuredGrid has been modified since last call to GetGrid(). More...
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

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 22 of file vtkCPUnstructuredGridBuilder.h.

Member Typedef Documentation

◆ Superclass

Definition at line 26 of file vtkCPUnstructuredGridBuilder.h.

Constructor & Destructor Documentation

◆ vtkCPUnstructuredGridBuilder()

vtkCPUnstructuredGridBuilder::vtkCPUnstructuredGridBuilder ( )
protected

◆ ~vtkCPUnstructuredGridBuilder()

vtkCPUnstructuredGridBuilder::~vtkCPUnstructuredGridBuilder ( )
overrideprotected

Member Function Documentation

◆ New()

static vtkCPUnstructuredGridBuilder* vtkCPUnstructuredGridBuilder::New ( )
static

◆ GetClassName()

virtual const char* vtkCPUnstructuredGridBuilder::GetClassName ( )
virtual

Reimplemented from vtkCPGridBuilder.

◆ IsTypeOf()

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

◆ IsA()

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

Reimplemented from vtkCPGridBuilder.

◆ SafeDownCast()

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

◆ PrintSelf()

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

Reimplemented from vtkCPGridBuilder.

◆ GetGrid()

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

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.

◆ 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 69 of file vtkCPUnstructuredGridBuilder.h.


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