00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00034 #ifndef __vtkUnicodeStringArray_h
00035 #define __vtkUnicodeStringArray_h
00036
00037 #include "vtkAbstractArray.h"
00038 #include "vtkUnicodeString.h"
00039
00040 class VTK_COMMON_EXPORT vtkUnicodeStringArray :
00041 public vtkAbstractArray
00042 {
00043 public:
00044 static vtkUnicodeStringArray* New();
00045 vtkTypeMacro(vtkUnicodeStringArray,vtkAbstractArray);
00046 void PrintSelf(ostream& os, vtkIndent indent);
00047
00048 virtual int Allocate(vtkIdType sz, vtkIdType ext=1000);
00049 virtual void Initialize();
00050 virtual int GetDataType();
00051 virtual int GetDataTypeSize();
00052 virtual int GetElementComponentSize();
00053 virtual void SetNumberOfTuples(vtkIdType number);
00054 virtual void SetTuple(vtkIdType i, vtkIdType j, vtkAbstractArray* source);
00055 virtual void InsertTuple(vtkIdType i, vtkIdType j, vtkAbstractArray* source);
00056 virtual vtkIdType InsertNextTuple(vtkIdType j, vtkAbstractArray* source);
00057 virtual void* GetVoidPointer(vtkIdType id);
00058 virtual void DeepCopy(vtkAbstractArray* da);
00059 virtual void InterpolateTuple(vtkIdType i, vtkIdList *ptIndices,
00060 vtkAbstractArray* source, double* weights);
00061 virtual void InterpolateTuple(vtkIdType i,
00062 vtkIdType id1, vtkAbstractArray* source1,
00063 vtkIdType id2, vtkAbstractArray* source2, double t);
00064 virtual void Squeeze();
00065 virtual int Resize(vtkIdType numTuples);
00066 virtual void SetVoidArray(void *array, vtkIdType size, int save);
00067 virtual unsigned long GetActualMemorySize();
00068 virtual int IsNumeric();
00069 virtual vtkArrayIterator* NewIterator();
00070 virtual vtkVariant GetVariantValue(vtkIdType idx);
00071 virtual vtkIdType LookupValue(vtkVariant value);
00072 virtual void LookupValue(vtkVariant value, vtkIdList* ids);
00073
00074 virtual void SetVariantValue(vtkIdType idx, vtkVariant value);
00075 virtual void DataChanged();
00076 virtual void ClearLookup();
00077
00078 vtkIdType InsertNextValue(const vtkUnicodeString&);
00079 void InsertValue(vtkIdType idx, const vtkUnicodeString&);
00080 void SetValue(vtkIdType i, const vtkUnicodeString&);
00081 vtkUnicodeString& GetValue(vtkIdType i);
00082
00083 void InsertNextUTF8Value(const char*);
00084 void SetUTF8Value(vtkIdType i, const char*);
00085 const char* GetUTF8Value(vtkIdType i);
00086
00087 protected:
00088 vtkUnicodeStringArray(vtkIdType numComp = 1);
00089 ~vtkUnicodeStringArray();
00090
00091 private:
00092 vtkUnicodeStringArray(const vtkUnicodeStringArray&);
00093 void operator=(const vtkUnicodeStringArray&);
00094
00095
00096 class Implementation;
00097 Implementation* Internal;
00098
00099 };
00100
00101 #endif
00102