Go to the documentation of this file.
35 #ifndef vtkUnicodeStringArray_h
36 #define vtkUnicodeStringArray_h
38 #include "vtkCommonCoreModule.h"
76 int deleteMethod)
override;
107 class Implementation;
108 Implementation* Internal;
vtkArrayIterator * NewIterator() override
Subclasses must override this method and provide the right kind of templated vtkArrayIteratorTemplate...
vtkUnicodeString & GetValue(vtkIdType i)
void InsertNextUTF8Value(const char *)
void LookupValue(vtkVariant value, vtkIdList *ids) override
vtkTypeBool Resize(vtkIdType numTuples) override
Resize the array to the requested number of tuples and preserve data.
Subclass of vtkAbstractArray that holds vtkUnicodeStrings.
void SetVoidArray(void *array, vtkIdType size, int save, int deleteMethod) override
void SetNumberOfTuples(vtkIdType number) override
Set the number of tuples (a component group) in the array.
~vtkUnicodeStringArray() override
void Initialize() override
Release storage and reset array to initial state.
void Squeeze() override
Free any unnecessary memory.
void InsertTuple(vtkIdType i, vtkIdType j, vtkAbstractArray *source) override
Insert the tuple at srcTupleIdx in the source array into this array at dstTupleIdx.
void save(Archiver &ar, const vtkUnicodeString &str, const unsigned int vtkNotUsed(version))
void SetArrayFreeFunction(void(*callback)(void *)) override
This method allows the user to specify a custom free function to be called when the array is dealloca...
void InterpolateTuple(vtkIdType i, vtkIdList *ptIndices, vtkAbstractArray *source, double *weights) override
Set the tuple at dstTupleIdx in this array to the interpolated tuple value, given the ptIndices in th...
vtkIdType InsertNextValue(const vtkUnicodeString &)
void SetUTF8Value(vtkIdType i, const char *)
int GetElementComponentSize() override
Return the size, in bytes, of the lowest-level element of an array.
void SetValue(vtkIdType i, const vtkUnicodeString &)
void SetVoidArray(void *array, vtkIdType size, int save) override
static vtkUnicodeStringArray * New()
void InterpolateTuple(vtkIdType i, vtkIdType id1, vtkAbstractArray *source1, vtkIdType id2, vtkAbstractArray *source2, double t) override
Insert the tuple at dstTupleIdx in this array to the tuple interpolated from the two tuple indices,...
vtkIdType InsertNextTuple(vtkIdType j, vtkAbstractArray *source) override
Insert the tuple from srcTupleIdx in the source array at the end of this array.
void ClearLookup() override
Delete the associated fast lookup data structure on this array, if it exists.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
void SetVariantValue(vtkIdType idx, vtkVariant value) override
Set a value in the array from a variant.
void DeepCopy(vtkAbstractArray *da) override
Deep copy of data.
int GetDataTypeSize() override
Return the size of the underlying data type.
a simple class to control print indentation
String class that stores Unicode text.
A atomic type representing the union of many types.
list of point or cell ids
vtkIdType LookupValue(vtkVariant value) override
Return the value indices where a specific value appears.
void InsertTuples(vtkIdType dstStart, vtkIdType n, vtkIdType srcStart, vtkAbstractArray *source) override
Copy n consecutive tuples starting at srcStart from the source array to this array,...
void InsertValue(vtkIdType idx, const vtkUnicodeString &)
const char * GetUTF8Value(vtkIdType i)
int GetDataType() override
Return the underlying data type.
void * GetVoidPointer(vtkIdType id) override
Return a void pointer.
void SetTuple(vtkIdType i, vtkIdType j, vtkAbstractArray *source) override
Set the tuple at dstTupleIdx in this array to the tuple at srcTupleIdx in the source array.
Abstract superclass for all arrays.
void InsertTuples(vtkIdList *dstIds, vtkIdList *srcIds, vtkAbstractArray *source) override
Copy the tuples indexed in srcIds from the source array to the tuple locations indexed by dstIds in t...
void DataChanged() override
Tell the array explicitly that the data has changed.
void InsertVariantValue(vtkIdType idx, vtkVariant value) override
Insert a value into the array from a variant.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Abstract superclass to iterate over elements in an vtkAbstractArray.
unsigned long GetActualMemorySize() override
Return the memory in kibibytes (1024 bytes) consumed by this data array.
vtkVariant GetVariantValue(vtkIdType idx) override
Retrieve value from the array as a variant.
vtkTypeBool Allocate(vtkIdType sz, vtkIdType ext=1000) override
Allocate memory for this array.
int IsNumeric() override
This method is here to make backward compatibility easier.