|
| vtkTemplateTypeMacro (vtkDenseArray< T >, vtkTypedArray< T >) void PrintSelf(ostream &os |
|
bool | IsDense () override |
| Returns true iff the underlying array storage is "dense", i.e. More...
|
|
const vtkArrayExtents & | GetExtents () override |
| Returns the extents (the number of dimensions and size along each dimension) of the array. More...
|
|
SizeT | GetNonNullSize () override |
| Returns the number of non-null values stored in the array. More...
|
|
void | GetCoordinatesN (const SizeT n, vtkArrayCoordinates &coordinates) override |
| Returns the coordinates of the n-th value in the array, where n is in the range [0, GetNonNullSize()). More...
|
|
vtkArray * | DeepCopy () override |
| Returns a new array that is a deep copy of this array. More...
|
|
const T & | GetValue (CoordinateT i) override |
| Returns the value stored in the array at the given coordinates. More...
|
|
const T & | GetValue (CoordinateT i, CoordinateT j) override |
|
const T & | GetValue (CoordinateT i, CoordinateT j, CoordinateT k) override |
|
const T & | GetValue (const vtkArrayCoordinates &coordinates) override |
|
const T & | GetValueN (const SizeT n) override |
| Returns the n-th value stored in the array, where n is in the range [0, GetNonNullSize()). More...
|
|
void | SetValue (CoordinateT i, const T &value) override |
| Overwrites the value stored in the array at the given coordinates. More...
|
|
void | SetValue (CoordinateT i, CoordinateT j, const T &value) override |
|
void | SetValue (CoordinateT i, CoordinateT j, CoordinateT k, const T &value) override |
|
void | SetValue (const vtkArrayCoordinates &coordinates, const T &value) override |
|
void | SetValueN (const SizeT n, const T &value) override |
| Overwrites the n-th value stored in the array, where n is in the range [0, GetNonNullSize()). More...
|
|
void | ExternalStorage (const vtkArrayExtents &extents, MemoryBlock *storage) |
| Initializes the array to use an externally-allocated memory block. More...
|
|
void | Fill (const T &value) |
| Fills every element in the array with the given value. More...
|
|
T & | operator[] (const vtkArrayCoordinates &coordinates) |
| Returns a value by-reference, which is useful for performance and code-clarity. More...
|
|
const T * | GetStorage () const |
| Returns a read-only reference to the underlying storage. More...
|
|
T * | GetStorage () |
| Returns a mutable reference to the underlying storage. More...
|
|
void | PrintSelf (ostream &os, vtkIndent indent) override |
| Methods invoked by print to print information about the object including superclasses. More...
|
|
vtkVariant | GetVariantValue (const vtkArrayCoordinates &coordinates) override |
|
vtkVariant | GetVariantValueN (const SizeT n) override |
| Returns the n-th value stored in the array, where n is in the range [0, GetNonNullSize()). More...
|
|
void | SetVariantValue (const vtkArrayCoordinates &coordinates, const vtkVariant &value) override |
|
void | SetVariantValueN (const SizeT n, const vtkVariant &value) override |
| Overwrites the n-th value stored in the array, where n is in the range [0, GetNonNullSize()). More...
|
|
void | CopyValue (vtkArray *source, const vtkArrayCoordinates &source_coordinates, const vtkArrayCoordinates &target_coordinates) override |
| Overwrites a value with a value retrieved from another array. More...
|
|
void | CopyValue (vtkArray *source, const SizeT source_index, const vtkArrayCoordinates &target_coordinates) override |
|
void | CopyValue (vtkArray *source, const vtkArrayCoordinates &source_coordinates, const SizeT target_index) override |
|
vtkVariant | GetVariantValue (CoordinateT i) |
| Returns the value stored in the array at the given coordinates. More...
|
|
vtkVariant | GetVariantValue (CoordinateT i, CoordinateT j) |
|
vtkVariant | GetVariantValue (CoordinateT i, CoordinateT j, CoordinateT k) |
|
virtual vtkVariant | GetVariantValue (const vtkArrayCoordinates &coordinates)=0 |
|
void | SetVariantValue (CoordinateT i, const vtkVariant &value) |
| Overwrites the value stored in the array at the given coordinates. More...
|
|
void | SetVariantValue (CoordinateT i, CoordinateT j, const vtkVariant &value) |
|
void | SetVariantValue (CoordinateT i, CoordinateT j, CoordinateT k, const vtkVariant &value) |
|
virtual void | SetVariantValue (const vtkArrayCoordinates &coordinates, const vtkVariant &value)=0 |
|
virtual vtkTypeBool | IsA (const char *type) |
| Return 1 if this class is the same type of (or a subclass of) the named class. More...
|
|
vtkArray * | NewInstance () const |
|
void | Resize (const CoordinateT i) |
| Resizes the array to the given extents (number of dimensions and size of each dimension). More...
|
|
void | Resize (const CoordinateT i, const CoordinateT j) |
|
void | Resize (const CoordinateT i, const CoordinateT j, const CoordinateT k) |
|
void | Resize (const vtkArrayRange &i) |
|
void | Resize (const vtkArrayRange &i, const vtkArrayRange &j) |
|
void | Resize (const vtkArrayRange &i, const vtkArrayRange &j, const vtkArrayRange &k) |
|
void | Resize (const vtkArrayExtents &extents) |
|
const vtkArrayRange | GetExtent (DimensionT dimension) |
| Returns the extent (valid coordinate range) along the given dimension. More...
|
|
DimensionT | GetDimensions () |
| Returns the number of dimensions stored in the array. More...
|
|
SizeT | GetSize () |
| Returns the number of values stored in the array. More...
|
|
void | SetName (const vtkStdString &name) |
| Sets the array name. More...
|
|
vtkStdString | GetName () |
| Returns the array name. More...
|
|
void | SetDimensionLabel (DimensionT i, const vtkStdString &label) |
| Sets the label for the i-th array dimension. More...
|
|
vtkStdString | GetDimensionLabel (DimensionT i) |
| Returns the label for the i-th array dimension. More...
|
|
vtkVariant | GetVariantValue (CoordinateT i) |
| Returns the value stored in the array at the given coordinates. More...
|
|
vtkVariant | GetVariantValue (CoordinateT i, CoordinateT j) |
|
vtkVariant | GetVariantValue (CoordinateT i, CoordinateT j, CoordinateT k) |
|
void | SetVariantValue (CoordinateT i, const vtkVariant &value) |
| Overwrites the value stored in the array at the given coordinates. More...
|
|
void | SetVariantValue (CoordinateT i, CoordinateT j, const vtkVariant &value) |
|
void | SetVariantValue (CoordinateT i, CoordinateT j, CoordinateT k, const vtkVariant &value) |
|
| vtkBaseTypeMacro (vtkObject, vtkObjectBase) |
|
virtual void | DebugOn () |
| Turn debugging output on. More...
|
|
virtual void | DebugOff () |
| Turn debugging output off. More...
|
|
bool | GetDebug () |
| Get the value of the debug flag. More...
|
|
void | SetDebug (bool debugFlag) |
| Set the value of the debug flag. More...
|
|
virtual void | Modified () |
| Update the modification time for this object. More...
|
|
virtual vtkMTimeType | GetMTime () |
| Return this object's modified time. More...
|
|
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
|
|
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 *) |
|
vtkTypeBool | HasObserver (unsigned long event, vtkCommand *) |
|
vtkTypeBool | HasObserver (const char *event, vtkCommand *) |
|
void | RemoveObserver (unsigned long tag) |
|
void | RemoveObservers (unsigned long event) |
|
void | RemoveObservers (const char *event) |
|
void | RemoveAllObservers () |
|
vtkTypeBool | HasObserver (unsigned long event) |
|
vtkTypeBool | HasObserver (const char *event) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
| Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More...
|
|
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) |
| Allow user to set the AbortFlagOn() with the return value of the callback method. More...
|
|
int | InvokeEvent (unsigned long event, void *callData) |
| This method invokes an event and return whether the event was aborted or not. More...
|
|
int | InvokeEvent (const char *event, void *callData) |
|
int | InvokeEvent (unsigned long event) |
|
int | InvokeEvent (const char *event) |
|
const char * | GetClassName () const |
| Return the class name as a string. More...
|
|
virtual void | Delete () |
| Delete a VTK object. More...
|
|
virtual void | FastDelete () |
| Delete a reference to this object. More...
|
|
void | InitializeObjectBase () |
|
void | Print (ostream &os) |
| Print an object to an ostream. More...
|
|
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
|
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
|
virtual void | Register (vtkObjectBase *o) |
| Increase the reference count (mark as used by another object). More...
|
|
virtual void | UnRegister (vtkObjectBase *o) |
| Decrease the reference count (release by another object). More...
|
|
int | GetReferenceCount () |
| Return the current reference count of this object. More...
|
|
void | SetReferenceCount (int) |
| Sets the reference count. More...
|
|
void | PrintRevisions (ostream &) |
| Legacy. More...
|
|
template<typename T>
class vtkDenseArray< T >
Contiguous storage for N-way arrays.
vtkDenseArray is a concrete vtkArray implementation that stores values using a contiguous block of memory. Values are stored with fortran ordering, meaning that if you iterated over the memory block, the left-most coordinates would vary the fastest.
In addition to the retrieval and update methods provided by vtkTypedArray, vtkDenseArray provides methods to:
Fill the entire array with a specific value.
Retrieve a pointer to the storage memory block.
- See also
- vtkArray, vtkTypedArray, vtkSparseArray
- Thanks:
- Developed by Timothy M. Shead (tshea.nosp@m.d@sa.nosp@m.ndia..nosp@m.gov) at Sandia National Laboratories.
- Examples:
- vtkDenseArray (Examples)
- Tests:
- vtkDenseArray (Tests)
Definition at line 60 of file vtkDenseArray.h.