VTK
|
dynamic, self-adjusting array of vtkIdType More...
#include <vtkIdTypeArray.h>
Public Types | |
typedef vtkDataArray | Superclass |
![]() | |
typedef vtkAbstractArray | Superclass |
![]() | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
int | GetDataType () |
void | GetTupleValue (vtkIdType i, vtkIdType *tuple) |
void | SetTupleValue (vtkIdType i, const vtkIdType *tuple) |
void | InsertTupleValue (vtkIdType i, const vtkIdType *tuple) |
vtkIdType | InsertNextTupleValue (const vtkIdType *tuple) |
vtkIdType | GetValue (vtkIdType id) |
void | SetValue (vtkIdType id, vtkIdType value) |
void | SetNumberOfValues (vtkIdType number) |
void | InsertValue (vtkIdType id, vtkIdType f) |
vtkIdType | InsertNextValue (vtkIdType f) |
vtkIdType * | GetValueRange (int comp) |
void | GetValueRange (vtkIdType range[2], int comp) |
vtkIdType * | GetValueRange () |
void | GetValueRange (vtkIdType range[2]) |
vtkIdType * | WritePointer (vtkIdType id, vtkIdType number) |
vtkIdType * | GetPointer (vtkIdType id) |
void | SetArray (vtkIdType *array, vtkIdType size, int save) |
void | SetArray (vtkIdType *array, vtkIdType size, int save, int deleteMethod) |
![]() | |
virtual void | SetTuple (vtkIdType i, vtkIdType j, vtkAbstractArray *source)=0 |
virtual void | InsertTuple (vtkIdType i, vtkIdType j, vtkAbstractArray *source)=0 |
virtual vtkIdType | InsertNextTuple (vtkIdType j, vtkAbstractArray *source)=0 |
virtual void | GetTuples (vtkIdList *ptIds, vtkAbstractArray *output) |
virtual void | GetTuples (vtkIdType p1, vtkIdType p2, vtkAbstractArray *output) |
virtual double * | GetTuple (vtkIdType i)=0 |
virtual void | GetTuple (vtkIdType i, double *tuple)=0 |
virtual double | GetComponent (vtkIdType i, int j) |
virtual void | SetComponent (vtkIdType i, int j, double c) |
virtual void | InsertComponent (vtkIdType i, int j, double c) |
virtual void | FillComponent (int j, double c) |
virtual void * | WriteVoidPointer (vtkIdType id, vtkIdType number)=0 |
virtual unsigned long | GetActualMemorySize () |
void | CreateDefaultLookupTable () |
virtual double | GetMaxNorm () |
virtual int | CopyInformation (vtkInformation *infoFrom, int deep=1) |
virtual int | IsNumeric () |
virtual int | GetElementComponentSize () |
virtual void | InterpolateTuple (vtkIdType i, vtkIdList *ptIndices, vtkAbstractArray *source, double *weights) |
virtual void | InterpolateTuple (vtkIdType i, vtkIdType id1, vtkAbstractArray *source1, vtkIdType id2, vtkAbstractArray *source2, double t) |
double | GetTuple1 (vtkIdType i) |
double * | GetTuple2 (vtkIdType i) |
double * | GetTuple3 (vtkIdType i) |
double * | GetTuple4 (vtkIdType i) |
double * | GetTuple9 (vtkIdType i) |
virtual void | SetTuple (vtkIdType i, const float *tuple)=0 |
virtual void | SetTuple (vtkIdType i, const double *tuple)=0 |
void | SetTuple1 (vtkIdType i, double value) |
void | SetTuple2 (vtkIdType i, double val0, double val1) |
void | SetTuple3 (vtkIdType i, double val0, double val1, double val2) |
void | SetTuple4 (vtkIdType i, double val0, double val1, double val2, double val3) |
void | SetTuple9 (vtkIdType i, double val0, double val1, double val2, double val3, double val4, double val5, double val6, double val7, double val8) |
virtual void | InsertTuple (vtkIdType i, const float *tuple)=0 |
virtual void | InsertTuple (vtkIdType i, const double *tuple)=0 |
void | InsertTuple1 (vtkIdType i, double value) |
void | InsertTuple2 (vtkIdType i, double val0, double val1) |
void | InsertTuple3 (vtkIdType i, double val0, double val1, double val2) |
void | InsertTuple4 (vtkIdType i, double val0, double val1, double val2, double val3) |
void | InsertTuple9 (vtkIdType i, double val0, double val1, double val2, double val3, double val4, double val5, double val6, double val7, double val8) |
virtual vtkIdType | InsertNextTuple (const float *tuple)=0 |
virtual vtkIdType | InsertNextTuple (const double *tuple)=0 |
void | InsertNextTuple1 (double value) |
void | InsertNextTuple2 (double val0, double val1) |
void | InsertNextTuple3 (double val0, double val1, double val2) |
void | InsertNextTuple4 (double val0, double val1, double val2, double val3) |
void | InsertNextTuple9 (double val0, double val1, double val2, double val3, double val4, double val5, double val6, double val7, double val8) |
virtual void | RemoveTuple (vtkIdType id)=0 |
virtual void | RemoveFirstTuple ()=0 |
virtual void | RemoveLastTuple ()=0 |
virtual void | GetData (vtkIdType tupleMin, vtkIdType tupleMax, int compMin, int compMax, vtkDoubleArray *data) |
virtual void | DeepCopy (vtkAbstractArray *aa) |
virtual void | DeepCopy (vtkDataArray *da) |
virtual void | CopyComponent (int j, vtkDataArray *from, int fromComponent) |
void | SetLookupTable (vtkLookupTable *lut) |
virtual vtkLookupTable * | GetLookupTable () |
void | GetRange (double range[2], int comp) |
double * | GetRange (int comp) |
double * | GetRange () |
void | GetRange (double range[2]) |
void | GetDataTypeRange (double range[2]) |
double | GetDataTypeMin () |
double | GetDataTypeMax () |
![]() | |
virtual int | Allocate (vtkIdType sz, vtkIdType ext=1000)=0 |
virtual void | Initialize ()=0 |
void | SetComponentName (vtkIdType component, const char *name) |
const char * | GetComponentName (vtkIdType component) |
bool | HasAComponentName () |
int | CopyComponentNames (vtkAbstractArray *da) |
virtual void | SetNumberOfTuples (vtkIdType number)=0 |
virtual void * | GetVoidPointer (vtkIdType id)=0 |
virtual void | Squeeze ()=0 |
virtual int | Resize (vtkIdType numTuples)=0 |
virtual void | ExportToVoidPointer (void *vtkNotUsed(out_ptr)) |
virtual vtkArrayIterator * | NewIterator ()=0 |
virtual vtkVariant | GetVariantValue (vtkIdType idx) |
virtual void | InsertVariantValue (vtkIdType idx, vtkVariant value) |
virtual void | SetVariantValue (vtkIdType idx, vtkVariant value)=0 |
virtual void | DataChanged ()=0 |
virtual void | ClearLookup ()=0 |
virtual void | SetNumberOfComponents (int) |
int | GetNumberOfComponents () |
vtkIdType | GetNumberOfTuples () |
void | Reset () |
vtkIdType | GetSize () |
vtkIdType | GetMaxId () |
virtual void | SetVoidArray (void *vtkNotUsed(array), vtkIdType vtkNotUsed(size), int vtkNotUsed(save))=0 |
virtual void | SetName (const char *) |
virtual char * | GetName () |
virtual const char * | GetDataTypeAsString (void) |
virtual vtkIdType | GetDataSize () |
virtual vtkIdType | LookupValue (vtkVariant value)=0 |
virtual void | LookupValue (vtkVariant value, vtkIdList *ids)=0 |
vtkInformation * | GetInformation () |
bool | HasInformation () |
virtual int | GetDataTypeSize ()=0 |
![]() | |
virtual void | DebugOn () |
virtual void | DebugOff () |
unsigned char | GetDebug () |
void | SetDebug (unsigned char debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (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 *) |
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) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
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) |
void | PrintRevisions (ostream &os) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static vtkIdTypeArray * | New () |
static int | IsTypeOf (const char *type) |
static vtkIdTypeArray * | SafeDownCast (vtkObject *o) |
static vtkIdType | GetDataTypeValueMin () |
static vtkIdType | GetDataTypeValueMax () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkDataArray * | SafeDownCast (vtkObject *o) |
static vtkDataArray * | CreateDataArray (int dataType) |
static vtkInformationInformationVectorKey * | PER_COMPONENT () |
static vtkInformationDoubleVectorKey * | COMPONENT_RANGE () |
static vtkInformationDoubleVectorKey * | L2_NORM_RANGE () |
static void | GetDataTypeRange (int type, double range[2]) |
static double | GetDataTypeMin (int type) |
static double | GetDataTypeMax (int type) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkAbstractArray * | SafeDownCast (vtkObject *o) |
static vtkAbstractArray * | CreateArray (int dataType) |
static vtkInformationIntegerKey * | GUI_HIDE () |
static int | GetDataTypeSize (int type) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObject *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Member Functions | |
vtkIdTypeArray (vtkIdType numComp=1) | |
~vtkIdTypeArray () | |
![]() | |
vtkDataArray (vtkIdType numComp=1) | |
~vtkDataArray () | |
virtual void | ComputeRange (int comp) |
virtual void | ComputeScalarRange (int comp) |
virtual void | ComputeVectorRange () |
![]() | |
virtual void | SetInformation (vtkInformation *) |
vtkAbstractArray (vtkIdType numComp=1) | |
~vtkAbstractArray () | |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &os) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Additional Inherited Members | |
![]() | |
vtkLookupTable * | LookupTable |
double | Range [2] |
![]() | |
vtkIdType | Size |
vtkIdType | MaxId |
int | NumberOfComponents |
char * | Name |
bool | RebuildArray |
vtkInformation * | Information |
vtkInternalComponentNames * | ComponentNames |
![]() | |
unsigned char | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
int | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
dynamic, self-adjusting array of vtkIdType
vtkIdTypeArray is an array of values of type vtkIdType. It provides methods for insertion and retrieval of values and will automatically resize itself to hold new data.
Definition at line 42 of file vtkIdTypeArray.h.
Definition at line 47 of file vtkIdTypeArray.h.
|
protected |
|
protected |
|
static |
|
virtual |
Reimplemented from vtkDataArray.
|
static |
|
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 vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkDataArray.
|
static |
|
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 vtkDataArray.
|
inlinevirtual |
Copy the tuple value into a user-provided array.
Definition at line 58 of file vtkIdTypeArray.h.
Set the tuple value at the ith location in the array.
Definition at line 64 of file vtkIdTypeArray.h.
Insert (memory allocation performed) the tuple into the ith location in the array.
Definition at line 71 of file vtkIdTypeArray.h.
Insert (memory allocation performed) the tuple onto the end of the array.
Definition at line 78 of file vtkIdTypeArray.h.
Get the data at a particular index.
Definition at line 84 of file vtkIdTypeArray.h.
Set the data at a particular index. Does not do range checking. Make sure you use the method SetNumberOfValues() before inserting data.
Definition at line 91 of file vtkIdTypeArray.h.
|
inline |
Specify the number of values for this object to hold. Does an allocation as well as setting the MaxId ivar. Used in conjunction with SetValue() method for fast insertion.
Definition at line 99 of file vtkIdTypeArray.h.
Insert data at a specified position in the array.
Definition at line 105 of file vtkIdTypeArray.h.
Insert data at the end of the array. Return its location in the array.
Definition at line 112 of file vtkIdTypeArray.h.
|
inline |
Get the range of array values for the given component in the native data type.
Definition at line 119 of file vtkIdTypeArray.h.
|
inline |
Get the range of array values for the given component in the native data type.
Definition at line 122 of file vtkIdTypeArray.h.
|
inline |
Get the range of array values for the 0th component in the native data type.
Definition at line 130 of file vtkIdTypeArray.h.
|
inline |
Get the range of array values for the 0th component in the native data type.
Definition at line 133 of file vtkIdTypeArray.h.
|
inlinestatic |
Get the minimum data value in its native type.
Definition at line 139 of file vtkIdTypeArray.h.
|
inlinestatic |
Get the maximum data value in its native type.
Definition at line 142 of file vtkIdTypeArray.h.
Get the address of a particular data index. Make sure data is allocated for the number of items requested. Set MaxId according to the number of data values requested.
Definition at line 148 of file vtkIdTypeArray.h.
Get the address of a particular data index. Performs no checks to verify that the memory has been allocated etc.
Definition at line 155 of file vtkIdTypeArray.h.
This method lets the user specify data to be held by the array. The array argument is a pointer to the data. size is the size of the array supplied by the user. Set save to 1 to keep the class from deleting the array when it cleans up or reallocates memory. The class uses the actual array provided; it does not copy the data from the suppled array.
Definition at line 166 of file vtkIdTypeArray.h.
|
inline |
This method lets the user specify data to be held by the array. The array argument is a pointer to the data. size is the size of the array supplied by the user. Set save to 1 to keep the class from deleting the array when it cleans up or reallocates memory. The class uses the actual array provided; it does not copy the data from the suppled array.
Definition at line 168 of file vtkIdTypeArray.h.