VTK
dox/Common/Core/vtkUnicodeStringArray.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkUnicodeStringArray.h
00005 
00006 -------------------------------------------------------------------------
00007   Copyright 2008 Sandia Corporation.
00008   Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00009   the U.S. Government retains certain rights in this software.
00010 -------------------------------------------------------------------------
00011 
00012   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00013   All rights reserved.
00014   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00015 
00016      This software is distributed WITHOUT ANY WARRANTY; without even
00017      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00018      PURPOSE.  See the above copyright notice for more information.
00019 
00020 =========================================================================*/
00021 
00034 #ifndef __vtkUnicodeStringArray_h
00035 #define __vtkUnicodeStringArray_h
00036 
00037 #include "vtkCommonCoreModule.h" // For export macro
00038 #include "vtkAbstractArray.h"
00039 #include "vtkUnicodeString.h" // For value type
00040 
00041 class VTKCOMMONCORE_EXPORT vtkUnicodeStringArray :
00042   public vtkAbstractArray
00043 {
00044 public:
00045   static vtkUnicodeStringArray* New();
00046   vtkTypeMacro(vtkUnicodeStringArray,vtkAbstractArray);
00047   void PrintSelf(ostream& os, vtkIndent indent);
00048 
00049   virtual int Allocate(vtkIdType sz, vtkIdType ext=1000);
00050   virtual void Initialize();
00051   virtual int GetDataType();
00052   virtual int GetDataTypeSize();
00053   virtual int GetElementComponentSize();
00054   virtual void SetNumberOfTuples(vtkIdType number);
00055   virtual void SetTuple(vtkIdType i, vtkIdType j, vtkAbstractArray* source);
00056   virtual void InsertTuple(vtkIdType i, vtkIdType j, vtkAbstractArray* source);
00057   virtual vtkIdType InsertNextTuple(vtkIdType j, vtkAbstractArray* source);
00058   virtual void* GetVoidPointer(vtkIdType id);
00059   virtual void DeepCopy(vtkAbstractArray* da);
00060   virtual void InterpolateTuple(vtkIdType i, vtkIdList *ptIndices,
00061     vtkAbstractArray* source,  double* weights);
00062   virtual void InterpolateTuple(vtkIdType i,
00063     vtkIdType id1, vtkAbstractArray* source1,
00064     vtkIdType id2, vtkAbstractArray* source2, double t);
00065   virtual void Squeeze();
00066   virtual int Resize(vtkIdType numTuples);
00067   virtual void SetVoidArray(void *array, vtkIdType size, int save);
00068   virtual unsigned long GetActualMemorySize();
00069   virtual int IsNumeric();
00070   virtual vtkArrayIterator* NewIterator();
00071   virtual vtkVariant GetVariantValue(vtkIdType idx);
00072   virtual vtkIdType LookupValue(vtkVariant value);
00073   virtual void LookupValue(vtkVariant value, vtkIdList* ids);
00074 
00075   virtual void SetVariantValue(vtkIdType idx, vtkVariant value);
00076   virtual void DataChanged();
00077   virtual void ClearLookup();
00078 
00079   vtkIdType InsertNextValue(const vtkUnicodeString&);
00080   void InsertValue(vtkIdType idx, const vtkUnicodeString&); // Ranged checked
00081   void SetValue(vtkIdType i, const vtkUnicodeString&); // Not ranged checked
00082   vtkUnicodeString& GetValue(vtkIdType i);
00083 
00084   void InsertNextUTF8Value(const char*);
00085   void SetUTF8Value(vtkIdType i, const char*);
00086   const char* GetUTF8Value(vtkIdType i);
00087 
00088 protected:
00089   vtkUnicodeStringArray(vtkIdType numComp = 1);
00090   ~vtkUnicodeStringArray();
00091 
00092 private:
00093   vtkUnicodeStringArray(const vtkUnicodeStringArray&);  // Not implemented.
00094   void operator=(const vtkUnicodeStringArray&);  // Not implemented.
00095 
00096 //BTX
00097   class Implementation;
00098   Implementation* Internal;
00099 //ETX
00100 };
00101 
00102 #endif
00103