|
VMTK
|
Create a collection of data set items, one for every point within the data set. More...
#include <vtkvmtkDataSetItems.h>
Public Types | |
| typedef vtkvmtkItems | Superclass |
| Public Types inherited from vtkvmtkItems | |
| typedef vtkObject | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkvmtkDataSetItems * | NewInstance () const |
| void | Build () |
| void | SetDataSet (vtkDataSet *dataSet) |
| vtkDataSet * | GetDataSet () |
| virtual void | SetReallocateOnBuild (int) |
| virtual int | GetReallocateOnBuild () |
| virtual void | ReallocateOnBuildOn () |
| virtual void | ReallocateOnBuildOff () |
| Public Member Functions inherited from vtkvmtkItems | |
| vtkvmtkItems * | NewInstance () const |
| void | Allocate (vtkIdType numItems, vtkIdType ext=1000) |
| vtkvmtkItem * | GetItem (vtkIdType id) |
| void | Squeeze () |
| void | Reset () |
| void | Initialize () |
| void | ReleaseArray () |
| void | AllocateItem (vtkIdType i, vtkIdType itemType) |
| void | DeepCopy (vtkvmtkItems *src) |
| void | ShallowCopy (vtkvmtkItems *src) |
| virtual void | SetItemType (int) |
| virtual int | GetItemType () |
| void | SetNumberOfItems (vtkIdType numberOfItems) |
| vtkIdType | GetNumberOfItems () |
Static Public Member Functions | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkDataSetItems * | SafeDownCast (vtkObjectBase *o) |
| Static Public Member Functions inherited from vtkvmtkItems | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkItems * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkDataSetItems () | |
| ~vtkvmtkDataSetItems () | |
| Protected Member Functions inherited from vtkvmtkItems | |
| vtkvmtkItems () | |
| ~vtkvmtkItems () | |
| virtual vtkvmtkItem * | InstantiateNewItem (int itemType)=0 |
| vtkvmtkItem ** | Resize (vtkIdType sz) |
Protected Attributes | |
| vtkDataSet * | DataSet |
| int | ReallocateOnBuild |
| Protected Attributes inherited from vtkvmtkItems | |
| vtkvmtkItem ** | Array |
| vtkIdType | Size |
| vtkIdType | MaxId |
| vtkIdType | Extend |
| int | ItemType |
Create a collection of data set items, one for every point within the data set.
vtkvmtkDataSetItems specializes vtkvmtkItems for the common case where the collection holds exactly one vtkvmtkDataSetItem per point of a vtkDataSet. Build() allocates (if needed) one item per point of DataSet, then, for every point, assigns DataSet and the point id to the corresponding vtkvmtkDataSetItem and calls its Build() method. This is the base class of vtkvmtkNeighborhoods, which uses it to build, for every point of an input data set, the neighborhood item appropriate to the data set type (poly data, unstructured grid, manifold surface, ...).
Definition at line 43 of file vtkvmtkDataSetItems.h.
Definition at line 47 of file vtkvmtkDataSetItems.h.
|
inlineprotected |
Definition at line 79 of file vtkvmtkDataSetItems.h.
|
inlineprotected |
Definition at line 80 of file vtkvmtkDataSetItems.h.
|
static |
|
virtual |
Reimplemented from vtkvmtkItems.
Reimplemented in vtkvmtkNeighborhoods, and vtkvmtkStencils.
|
static |
|
protectedvirtual |
Reimplemented from vtkvmtkItems.
Reimplemented in vtkvmtkNeighborhoods, and vtkvmtkStencils.
| vtkvmtkDataSetItems * vtkvmtkDataSetItems::NewInstance | ( | ) | const |
|
inline |
Set/get the data set whose points the item collection is built from. The reference is stored but not registered (no reference counting), so the data set must be kept alive by the caller.
Definition at line 56 of file vtkvmtkDataSetItems.h.
|
inline |
Set/get the data set whose points the item collection is built from. The reference is stored but not registered (no reference counting), so the data set must be kept alive by the caller.
Definition at line 57 of file vtkvmtkDataSetItems.h.
| void vtkvmtkDataSetItems::Build | ( | ) |
Allocate (if not already allocated, or if ReallocateOnBuild is on) one item per point of DataSet, then build each item in turn by assigning it DataSet and its point id and calling its Build() method.
Definition at line 29 of file vtkvmtkDataSetItems.cxx.
|
virtual |
Toggle whether Build() is forced to reallocate the item array even if it has already been built for the current number of points. Propagated to each item's own ReallocateOnBuild flag. Default: off.
|
virtual |
Toggle whether Build() is forced to reallocate the item array even if it has already been built for the current number of points. Propagated to each item's own ReallocateOnBuild flag. Default: off.
|
virtual |
Toggle whether Build() is forced to reallocate the item array even if it has already been built for the current number of points. Propagated to each item's own ReallocateOnBuild flag. Default: off.
|
virtual |
Toggle whether Build() is forced to reallocate the item array even if it has already been built for the current number of points. Propagated to each item's own ReallocateOnBuild flag. Default: off.
|
protected |
Definition at line 82 of file vtkvmtkDataSetItems.h.
|
protected |
Definition at line 84 of file vtkvmtkDataSetItems.h.