VTK
Public Member Functions | Protected Attributes
vtkArrayWeights Class Reference

Stores a collection of weighting factors. More...

#include <vtkArrayWeights.h>

List of all members.

Public Member Functions

 vtkArrayWeights ()
 vtkArrayWeights (const vtkArrayWeights &other)
 vtkArrayWeights (double i)
 vtkArrayWeights (double i, double j)
 vtkArrayWeights (double i, double j, double k)
 vtkArrayWeights (double i, double j, double k, double l)
 ~vtkArrayWeights ()
vtkIdType GetCount () const
void SetCount (vtkIdType count)
doubleoperator[] (vtkIdType)
const doubleoperator[] (vtkIdType) const
vtkArrayWeightsoperator= (const vtkArrayWeights &other)

Protected Attributes

vtkArrayWeightsStorage * Storage

Detailed Description

Stores a collection of weighting factors.

vtkArrayWeights provides storage for a collection of weights to be used when merging / interpolating N-way arrays. Convenience constructors are provided for working with one, two, three, and four weighting factors. For arbitrary collections of weights, use SetCount() and operator[] to assign values.

vtkArrayWeights is most commonly used with the vtkInterpolate() function to compute weighted sums of vtkArray objects.

See also:
vtkArray, vtkArraySlices
Thanks:
Developed by Timothy M. Shead (tshea.nosp@m.d@sa.nosp@m.ndia..nosp@m.gov) at Sandia National Laboratories.
Tests:
vtkArrayWeights (Tests)

Definition at line 54 of file vtkArrayWeights.h.


Constructor & Destructor Documentation

Create an empty collection of weights

Copy the weights from another object.

Create a collection containing one weight.

Create a collection containing two weights.

Create a collection containing three weights.

Create a collection containing four weights.

Destructor.


Member Function Documentation

Returns the number of weights stored in this container.

Sets the number of weights stored in this container. Note that each weight will be reset to 0.0 after calling SetCount(), use operator[] to assign the desired value for each weight.

double& vtkArrayWeights::operator[] ( vtkIdType  )

Accesses the i-th weight in the collection.

const double& vtkArrayWeights::operator[] ( vtkIdType  ) const

Accesses the i-th weight in the collection.

vtkArrayWeights& vtkArrayWeights::operator= ( const vtkArrayWeights other)

Assignment operator.


Member Data Documentation

vtkArrayWeightsStorage* vtkArrayWeights::Storage [protected]

Definition at line 96 of file vtkArrayWeights.h.


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