VMTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkvmtkItems Class Referenceabstract

Control allocation and memory footprint of item instances. More...

#include <vtkvmtkItems.h>

Inheritance diagram for vtkvmtkItems:
[legend]
Collaboration diagram for vtkvmtkItems:
[legend]

Public Types

typedef vtkObject Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkvmtkItemsNewInstance () const
 
virtual void SetItemType (int)
 
virtual int GetItemType ()
 
void Allocate (vtkIdType numItems, vtkIdType ext=1000)
 
vtkvmtkItemGetItem (vtkIdType id)
 
void SetNumberOfItems (vtkIdType numberOfItems)
 
vtkIdType GetNumberOfItems ()
 
void Squeeze ()
 
void Reset ()
 
void Initialize ()
 
void ReleaseArray ()
 
void AllocateItem (vtkIdType i, vtkIdType itemType)
 
void DeepCopy (vtkvmtkItems *src)
 
void ShallowCopy (vtkvmtkItems *src)
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkvmtkItemsSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkvmtkItems ()
 
 ~vtkvmtkItems ()
 
virtual vtkvmtkItemInstantiateNewItem (int itemType)=0
 
vtkvmtkItem ** Resize (vtkIdType sz)
 

Protected Attributes

vtkvmtkItem ** Array
 
vtkIdType Size
 
vtkIdType MaxId
 
vtkIdType Extend
 
int ItemType
 

Detailed Description

Control allocation and memory footprint of item instances.

Date
2006/04/06 16:46:43
Revision
1.3

..

Definition at line 37 of file vtkvmtkItems.h.

Member Typedef Documentation

◆ Superclass

typedef vtkObject vtkvmtkItems::Superclass

Definition at line 41 of file vtkvmtkItems.h.

Constructor & Destructor Documentation

◆ vtkvmtkItems()

vtkvmtkItems::vtkvmtkItems ( )
inlineprotected

Definition at line 76 of file vtkvmtkItems.h.

76 :Array(NULL),Size(0),MaxId(-1),Extend(1000) {};
vtkIdType MaxId
Definition: vtkvmtkItems.h:83
vtkIdType Extend
Definition: vtkvmtkItems.h:84
vtkIdType Size
Definition: vtkvmtkItems.h:82
vtkvmtkItem ** Array
Definition: vtkvmtkItems.h:81

◆ ~vtkvmtkItems()

vtkvmtkItems::~vtkvmtkItems ( )
protected

Member Function Documentation

◆ IsTypeOf()

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

◆ IsA()

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

◆ SafeDownCast()

static vtkvmtkItems* vtkvmtkItems::SafeDownCast ( vtkObjectBase *  o)
static

◆ NewInstanceInternal()

virtual vtkObjectBase* vtkvmtkItems::NewInstanceInternal ( ) const
protectedvirtual

◆ NewInstance()

vtkvmtkItems* vtkvmtkItems::NewInstance ( ) const

◆ SetItemType()

virtual void vtkvmtkItems::SetItemType ( int  )
virtual

◆ GetItemType()

virtual int vtkvmtkItems::GetItemType ( )
virtual

◆ Allocate()

void vtkvmtkItems::Allocate ( vtkIdType  numItems,
vtkIdType  ext = 1000 
)

Allocate the specified number of items (i.e., number of points) that will be built.

◆ GetItem()

vtkvmtkItem* vtkvmtkItems::GetItem ( vtkIdType  id)
inline

Definition at line 50 of file vtkvmtkItems.h.

50 {return this->Array[id];};
vtkvmtkItem ** Array
Definition: vtkvmtkItems.h:81

◆ SetNumberOfItems()

void vtkvmtkItems::SetNumberOfItems ( vtkIdType  numberOfItems)
inline

Definition at line 52 of file vtkvmtkItems.h.

52 { this->MaxId = numberOfItems - 1;};
vtkIdType MaxId
Definition: vtkvmtkItems.h:83

◆ GetNumberOfItems()

vtkIdType vtkvmtkItems::GetNumberOfItems ( )
inline

Definition at line 53 of file vtkvmtkItems.h.

53 {return this->MaxId + 1;};
vtkIdType MaxId
Definition: vtkvmtkItems.h:83

◆ Squeeze()

void vtkvmtkItems::Squeeze ( )

Reclaim any unused memory.

◆ Reset()

void vtkvmtkItems::Reset ( )

Reset to a state of no entries without freeing the memory.

◆ Initialize()

void vtkvmtkItems::Initialize ( )

Reset to a state of no entries freeing the memory.

◆ ReleaseArray()

void vtkvmtkItems::ReleaseArray ( )

Releases the stencil array.

◆ AllocateItem()

void vtkvmtkItems::AllocateItem ( vtkIdType  i,
vtkIdType  itemType 
)

◆ DeepCopy()

void vtkvmtkItems::DeepCopy ( vtkvmtkItems src)

Standard DeepCopy method.

◆ ShallowCopy()

void vtkvmtkItems::ShallowCopy ( vtkvmtkItems src)

Standard ShallowCopy method.

◆ InstantiateNewItem()

virtual vtkvmtkItem* vtkvmtkItems::InstantiateNewItem ( int  itemType)
protectedpure virtual

Implemented in vtkvmtkStencils, and vtkvmtkNeighborhoods.

◆ Resize()

vtkvmtkItem** vtkvmtkItems::Resize ( vtkIdType  sz)
protected

Member Data Documentation

◆ Array

vtkvmtkItem** vtkvmtkItems::Array
protected

Definition at line 81 of file vtkvmtkItems.h.

◆ Size

vtkIdType vtkvmtkItems::Size
protected

Definition at line 82 of file vtkvmtkItems.h.

◆ MaxId

vtkIdType vtkvmtkItems::MaxId
protected

Definition at line 83 of file vtkvmtkItems.h.

◆ Extend

vtkIdType vtkvmtkItems::Extend
protected

Definition at line 84 of file vtkvmtkItems.h.

◆ ItemType

int vtkvmtkItems::ItemType
protected

Definition at line 87 of file vtkvmtkItems.h.


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