VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkLongArray Class Reference

dynamic, self-adjusting array of long More...

#include <vtkLongArray.h>

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

Public Types

typedef vtkDataArray Superclass
 
- Public Types inherited from vtkDataArray
typedef vtkAbstractArray Superclass
 
- Public Types inherited from vtkAbstractArray
enum  { MAX_DISCRETE_VALUES = 32 }
 
enum  {
  AbstractArray = 0, DataArray, TypedDataArray, DataArrayTemplate,
  MappedDataArray
}
 
typedef vtkObject Superclass
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkLongArrayNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
- Public Member Functions inherited from vtkDataArray
vtkDataArrayNewInstance () const
 
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 doubleGetTuple (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 GetArrayType ()
 
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)
 
doubleGetTuple2 (vtkIdType i)
 
doubleGetTuple3 (vtkIdType i)
 
doubleGetTuple4 (vtkIdType i)
 
doubleGetTuple6 (vtkIdType i)
 
doubleGetTuple9 (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 SetTuple6 (vtkIdType i, double val0, double val1, double val2, double val3, double val4, double val5)
 
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 vtkLookupTableGetLookupTable ()
 
void GetRange (double range[2], int comp)
 
doubleGetRange (int comp)
 
doubleGetRange ()
 
void GetRange (double range[2])
 
void GetDataTypeRange (double range[2])
 
double GetDataTypeMin ()
 
double GetDataTypeMax ()
 
- Public Member Functions inherited from vtkAbstractArray
vtkAbstractArrayNewInstance () const
 
virtual int Allocate (vtkIdType sz, vtkIdType ext=1000)=0
 
virtual void Initialize ()=0
 
virtual int GetDataType ()=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 bool HasStandardMemoryLayout ()
 
virtual void * GetVoidPointer (vtkIdType id)=0
 
virtual void Squeeze ()=0
 
virtual int Resize (vtkIdType numTuples)=0
 
virtual void ExportToVoidPointer (void *vtkNotUsed(out_ptr))
 
virtual vtkArrayIteratorNewIterator ()=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
 
vtkInformationGetInformation ()
 
virtual void SetNumberOfComponents (int)
 
int GetNumberOfComponents ()
 
vtkIdType GetNumberOfTuples ()
 
virtual void InsertTuples (vtkIdList *dstIds, vtkIdList *srcIds, vtkAbstractArray *source)=0
 
virtual void InsertTuples (vtkIdType dstStart, vtkIdType n, vtkIdType srcStart, vtkAbstractArray *source)=0
 
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
 
virtual void GetProminentComponentValues (int comp, vtkVariantArray *values, double uncertainty=1.e-6, double minimumProminence=1.e-3)
 
bool HasInformation ()
 
virtual unsigned int GetMaxDiscreteValues ()
 
virtual void SetMaxDiscreteValues (unsigned int)
 
virtual int GetDataTypeSize ()=0
 
- Public Member Functions inherited from vtkObject
vtkObjectNewInstance () const
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool 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)
 
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 *)
 
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)
 
template<class U , class T >
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)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
- 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)
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

Static Public Member Functions

static vtkLongArrayNew ()
 
static int IsTypeOf (const char *type)
 
static vtkLongArraySafeDownCast (vtkObjectBase *o)
 
static long GetDataTypeValueMin ()
 
static long GetDataTypeValueMax ()
 
- Static Public Member Functions inherited from vtkDataArray
static int IsTypeOf (const char *type)
 
static vtkDataArraySafeDownCast (vtkObjectBase *o)
 
static vtkDataArrayFastDownCast (vtkAbstractArray *source)
 
static vtkDataArrayCreateDataArray (int dataType)
 
static vtkInformationDoubleVectorKeyCOMPONENT_RANGE ()
 
static vtkInformationDoubleVectorKeyL2_NORM_RANGE ()
 
static void GetDataTypeRange (int type, double range[2])
 
static double GetDataTypeMin (int type)
 
static double GetDataTypeMax (int type)
 
- Static Public Member Functions inherited from vtkAbstractArray
static int IsTypeOf (const char *type)
 
static vtkAbstractArraySafeDownCast (vtkObjectBase *o)
 
static vtkAbstractArrayCreateArray (int dataType)
 
static vtkInformationIntegerKeyGUI_HIDE ()
 
static vtkInformationInformationVectorKeyPER_COMPONENT ()
 
static vtkInformationVariantVectorKeyDISCRETE_VALUES ()
 
static vtkInformationDoubleVectorKeyDISCRETE_VALUE_SAMPLE_PARAMETERS ()
 
static int GetDataTypeSize (int type)
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObjectBase *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkLongArray ()
 
 ~vtkLongArray ()
 
- Protected Member Functions inherited from vtkDataArray
virtual void ComputeRange (double range[2], int comp)
 
virtual bool ComputeScalarRange (double *ranges)
 
virtual bool ComputeVectorRange (double range[2])
 
 vtkDataArray ()
 
 ~vtkDataArray ()
 
- Protected Member Functions inherited from vtkAbstractArray
 vtkAbstractArray ()
 
 ~vtkAbstractArray ()
 
virtual void SetInformation (vtkInformation *)
 
virtual void UpdateDiscreteValueSet (double uncertainty, double minProminence)
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
virtual void RegisterInternal (vtkObjectBase *, int check)
 
virtual void UnRegisterInternal (vtkObjectBase *, int check)
 
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 &)
 

Additional Inherited Members

- Protected Attributes inherited from vtkDataArray
vtkLookupTableLookupTable
 
double Range [2]
 
- Protected Attributes inherited from vtkAbstractArray
vtkIdType Size
 
vtkIdType MaxId
 
int NumberOfComponents
 
unsigned int MaxDiscreteValues
 
char * Name
 
bool RebuildArray
 
vtkInformationInformation
 
vtkInternalComponentNames * ComponentNames
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Detailed Description

dynamic, self-adjusting array of long

vtkLongArray is an array of values of type long. It provides methods for insertion and retrieval of values and will automatically resize itself to hold new data.

The C++ standard does not define the exact size of the long type, so use of this type directly is discouraged. If an array of 32 bit integers is needed, prefer vtkTypeInt32Array to this class. If an array of 64 bit integers is needed, prefer vtkTypeInt64Array to this class.

Tests:
vtkLongArray (Tests)

Definition at line 47 of file vtkLongArray.h.

Member Typedef Documentation

Definition at line 54 of file vtkLongArray.h.

Constructor & Destructor Documentation

vtkLongArray::vtkLongArray ( )
protected
vtkLongArray::~vtkLongArray ( )
protected

Member Function Documentation

static vtkLongArray* vtkLongArray::New ( )
static
static int vtkLongArray::IsTypeOf ( const char *  type)
static
virtual int vtkLongArray::IsA ( const char *  name)
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 vtkLongArray* vtkLongArray::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkLongArray::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkDataArray.

vtkLongArray* vtkLongArray::NewInstance ( ) const
void vtkLongArray::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
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.

static long vtkLongArray::GetDataTypeValueMin ( )
inlinestatic

Get the minimum data value in its native type.

Definition at line 65 of file vtkLongArray.h.

static long vtkLongArray::GetDataTypeValueMax ( )
inlinestatic

Get the maximum data value in its native type.

Definition at line 68 of file vtkLongArray.h.


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