Go to the documentation of this file.
60 #include "vtkCommonDataModelModule.h"
81 void Dump(
unsigned int colWidth = 16,
int rowLimit = -1 );
266 void operator=(
const vtkTable&) =
delete;
unsigned long GetActualMemorySize() override
Return the actual size of the data in kibibytes (1024 bytes).
virtual void SetRowData(vtkDataSetAttributes *data)
void SetNumberOfRows(const vtkIdType)
Set the number of rows in the table.
represent and manipulate attribute data in a dataset
A table, which contains similar-typed columns of data.
void Dump(unsigned int colWidth=16, int rowLimit=-1)
Dump table contents.
void DeepCopy(vtkDataObject *src) override
const char * GetColumnName(vtkIdType col)
An array holding vtkVariants.
vtkVariantArray * GetRow(vtkIdType row)
Get a row of the table as a vtkVariantArray which has one entry for each column.
vtkIdType GetNumberOfElements(int type) override
Get the number of elements for a specific attribute type (ROW, etc.).
void ShallowCopy(vtkDataObject *src) override
Shallow/deep copy the data from src into this object.
vtkVariantArray * RowArray
Holds row information returned by GetRow().
represent and manipulate fields of data
vtkAbstractArray * GetColumn(vtkIdType col)
Get a column of the table by its column index.
vtkAbstractArray * GetColumnByName(const char *name)
Get a column of the table by its name.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkVariant GetValueByName(vtkIdType row, const char *col)
Retrieve a value in the table by row index and column name as a variant.
void RemoveColumnByName(const char *name)
Remove a column from the table by its name.
void SetValue(vtkIdType row, vtkIdType col, vtkVariant value)
Set a value in the table by row and column index as a variant.
a simple class to control print indentation
void Initialize() override
Initialize to an empty table.
A atomic type representing the union of many types.
int GetDataObjectType() override
Return what type of dataset this is.
static vtkTable * GetData(vtkInformation *info)
Retrieve the table from vtkInformation.
void SetValueByName(vtkIdType row, const char *col, vtkVariant value)
Set a value in the table by row index and column name as a variant.
void SetRow(vtkIdType row, vtkVariantArray *values)
Set a row of the table with a vtkVariantArray which has one entry for each column.
Abstract superclass for all arrays.
void RemoveColumn(vtkIdType col)
Remove a column from the table by its column index.
vtkDataSetAttributes * RowData
Holds the column data of the table.
vtkIdType InsertNextRow(vtkVariantArray *arr)
Insert a row specified by a vtkVariantArray.
vtkVariant GetValue(vtkIdType row, vtkIdType col)
Retrieve a value in the table by row and column index as a variant.
vtkIdType GetNumberOfColumns()
Get the number of columns in the table.
vtkIdType GetNumberOfRows()
Get the number of rows in the table.
general representation of visualization data
void RemoveRow(vtkIdType row)
Delete a row from the table.
void GetRow(vtkIdType row, vtkVariantArray *values)
Get a row of the table as a vtkVariantArray which has one entry for each column.
static vtkTable * GetData(vtkInformationVector *v, int i=0)
void AddColumn(vtkAbstractArray *arr)
Add a column to the table.
vtkIdType InsertNextBlankRow(double default_num_val=0.0)
Insert a blank row at the end of the table.
vtkFieldData * GetAttributesAsFieldData(int type) override
Returns the attributes of the data object as a vtkFieldData.