VTK

Stores a collection of weighting factors. More...
#include <vtkArrayWeights.h>
Public Member Functions  
vtkArrayWeights ()  
Create an empty collection of weights. More...  
vtkArrayWeights (const vtkArrayWeights &other)  
Copy the weights from another object. More...  
vtkArrayWeights (double i)  
Create a collection containing one weight. More...  
vtkArrayWeights (double i, double j)  
Create a collection containing two weights. More...  
vtkArrayWeights (double i, double j, double k)  
Create a collection containing three weights. More...  
vtkArrayWeights (double i, double j, double k, double l)  
Create a collection containing four weights. More...  
~vtkArrayWeights ()  
Destructor. More...  
vtkIdType  GetCount () const 
Returns the number of weights stored in this container. More...  
void  SetCount (vtkIdType count) 
Sets the number of weights stored in this container. More...  
double &  operator[] (vtkIdType) 
Accesses the ith weight in the collection. More...  
const double &  operator[] (vtkIdType) const 
Accesses the ith weight in the collection. More...  
vtkArrayWeights &  operator= (const vtkArrayWeights &other) 
Assignment operator. More...  
Protected Attributes  
vtkArrayWeightsStorage *  Storage 
Stores a collection of weighting factors.
vtkArrayWeights provides storage for a collection of weights to be used when merging / interpolating Nway 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.
Definition at line 52 of file vtkArrayWeights.h.
vtkArrayWeights::vtkArrayWeights  (  ) 
Create an empty collection of weights.
vtkArrayWeights::vtkArrayWeights  (  const vtkArrayWeights &  other  ) 
Copy the weights from another object.
vtkArrayWeights::vtkArrayWeights  (  double  i  ) 
Create a collection containing one weight.
vtkArrayWeights::vtkArrayWeights  (  double  i, 
double  j  
) 
Create a collection containing two weights.
vtkArrayWeights::vtkArrayWeights  (  double  i, 
double  j,  
double  k  
) 
Create a collection containing three weights.
vtkArrayWeights::vtkArrayWeights  (  double  i, 
double  j,  
double  k,  
double  l  
) 
Create a collection containing four weights.
vtkArrayWeights::~vtkArrayWeights  (  ) 
Destructor.
vtkIdType vtkArrayWeights::GetCount  (  )  const 
Returns the number of weights stored in this container.
void vtkArrayWeights::SetCount  (  vtkIdType  count  ) 
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 ith weight in the collection.
const double& vtkArrayWeights::operator[]  (  vtkIdType  )  const 
Accesses the ith weight in the collection.
vtkArrayWeights& vtkArrayWeights::operator=  (  const vtkArrayWeights &  other  ) 
Assignment operator.

protected 
Definition at line 118 of file vtkArrayWeights.h.