vtkScalars - represent and manipulate scalar data
Super Class: vtkAttributeData
Description:
vtkScalars provides an interface to scalar data. The data model for vtkScalars is an array accessible by point or cell id. Scalar data is represented by a subclass of vtkDataArray, and may be any any type of data, although generic operations on scalar data is performed using floating point values. Scalars typically provide a single value per point. However, there are types of scalars that have multiple values or components. (For example, scalars that represent (RGB) color information, etc.) In this case, the ActiveComponent instance variable is used to indicate which component value is to be used for scalar data. Because of the close relationship between scalars and colors, scalars also maintain an internal lookup table. If provided, this table is used to map scalars into colors, rather than the lookup table that the vtkMapper objects are associated with.
See Also:
Methods:
Detailed Method Descriptions:
void SetData (vtkDataArray *) |
vtkAttributeData *MakeObject () |
void SetNumberOfScalars (int ) |
int GetNumberOfScalars () |
float GetScalar (int ) |
void SetScalar (int ,float ) |
void InsertScalar (int ,float ) |
int InsertNextScalar (float ) |
void SetNumberOfComponents (int ) |
int GetNumberOfComponents () | |
void SetActiveComponent (int ) | |
int GetActiveComponent () |
void ComputeRange () |
float *GetRange () |
void GetRange (float ) |
void GetDataTypeRange (double ) | |
double GetDataTypeMin () | |
double GetDataTypeMax () |
void CreateDefaultLookupTable () |
void SetLookupTable (vtkLookupTable *) | |
vtkLookupTable *GetLookupTable () |
void GetScalars (vtkIdList * ,vtkScalars *) |
void GetScalars (int ,int ,vtkScalars *) |
int InitColorTraversal (float ,vtkLookupTable * ,int ) |
unsigned char *GetColor (int ) |
void GetScalars (vtkIdList & ,vtkScalars &) |