VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkUnicodeStringArray.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkUnicodeStringArray.h
5 
6 -------------------------------------------------------------------------
7  Copyright 2008 Sandia Corporation.
8  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
9  the U.S. Government retains certain rights in this software.
10 -------------------------------------------------------------------------
11 
12  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
13  All rights reserved.
14  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
15 
16  This software is distributed WITHOUT ANY WARRANTY; without even
17  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18  PURPOSE. See the above copyright notice for more information.
19 
20 =========================================================================*/
21 
34 #ifndef __vtkUnicodeStringArray_h
35 #define __vtkUnicodeStringArray_h
36 
37 #include "vtkCommonCoreModule.h" // For export macro
38 #include "vtkAbstractArray.h"
39 #include "vtkUnicodeString.h" // For value type
40 
42  public vtkAbstractArray
43 {
44 public:
45  static vtkUnicodeStringArray* New();
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
49  virtual int Allocate(vtkIdType sz, vtkIdType ext=1000);
50  virtual void Initialize();
51  virtual int GetDataType();
52  virtual int GetDataTypeSize();
53  virtual int GetElementComponentSize();
54  virtual void SetNumberOfTuples(vtkIdType number);
55  virtual void SetTuple(vtkIdType i, vtkIdType j, vtkAbstractArray* source);
57  virtual void InsertTuples(vtkIdList *dstIds, vtkIdList *srcIds,
60  virtual void* GetVoidPointer(vtkIdType id);
61  virtual void DeepCopy(vtkAbstractArray* da);
62  virtual void InterpolateTuple(vtkIdType i, vtkIdList *ptIndices,
63  vtkAbstractArray* source, double* weights);
64  virtual void InterpolateTuple(vtkIdType i,
65  vtkIdType id1, vtkAbstractArray* source1,
66  vtkIdType id2, vtkAbstractArray* source2, double t);
67  virtual void Squeeze();
68  virtual int Resize(vtkIdType numTuples);
69  virtual void SetVoidArray(void *array, vtkIdType size, int save);
70  virtual unsigned long GetActualMemorySize();
71  virtual int IsNumeric();
72  virtual vtkArrayIterator* NewIterator();
75  virtual void LookupValue(vtkVariant value, vtkIdList* ids);
76 
77  virtual void SetVariantValue(vtkIdType idx, vtkVariant value);
78  virtual void DataChanged();
79  virtual void ClearLookup();
80 
81  vtkIdType InsertNextValue(const vtkUnicodeString&);
82  void InsertValue(vtkIdType idx, const vtkUnicodeString&); // Ranged checked
83  void SetValue(vtkIdType i, const vtkUnicodeString&); // Not ranged checked
84  vtkUnicodeString& GetValue(vtkIdType i);
85 
86  void InsertNextUTF8Value(const char*);
87  void SetUTF8Value(vtkIdType i, const char*);
88  const char* GetUTF8Value(vtkIdType i);
89 
90 protected:
93 
94 private:
95  vtkUnicodeStringArray(const vtkUnicodeStringArray&); // Not implemented.
96  void operator=(const vtkUnicodeStringArray&); // Not implemented.
97 
98 //BTX
99  class Implementation;
100  Implementation* Internal;
101 //ETX
102 };
103 
104 #endif
105 
void PrintSelf(ostream &os, vtkIndent indent)
GLsizeiptr size
Definition: vtkgl.h:11843
virtual int IsNumeric()=0
virtual void DataChanged()=0
virtual void DeepCopy(vtkAbstractArray *da)
Subclass of vtkAbstractArray that holds vtkUnicodeStrings.
virtual vtkVariant GetVariantValue(vtkIdType idx)
Abstract superclass for all arrays.
virtual vtkIdType LookupValue(vtkVariant value)=0
virtual int GetDataTypeSize()=0
#define VTKCOMMONCORE_EXPORT
virtual void SetTuple(vtkIdType i, vtkIdType j, vtkAbstractArray *source)=0
virtual void SetNumberOfTuples(vtkIdType number)=0
virtual int GetDataType()=0
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
int vtkIdType
Definition: vtkType.h:268
GLdouble GLdouble t
Definition: vtkgl.h:11602
GLuint * ids
Definition: vtkgl.h:11831
virtual void SetVoidArray(void *vtkNotUsed(array), vtkIdType vtkNotUsed(size), int vtkNotUsed(save))=0
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
virtual void Initialize()=0
A atomic type representing the union of many types.
Definition: vtkVariant.h:78
virtual int Allocate(vtkIdType sz, vtkIdType ext=1000)=0
const GLbyte * weights
Definition: vtkgl.h:12766
virtual void ClearLookup()=0
a simple class to control print indentation
Definition: vtkIndent.h:38
list of point or cell ids
Definition: vtkIdList.h:35
virtual void InsertTuple(vtkIdType i, vtkIdType j, vtkAbstractArray *source)=0
virtual int Resize(vtkIdType numTuples)=0
virtual vtkArrayIterator * NewIterator()=0
Abstract superclass to iterate over elements in an vtkAbstractArray.
virtual void * GetVoidPointer(vtkIdType id)=0
void save(Archiver &ar, const vtkUnicodeString &str, const unsigned int vtkNotUsed(version))
virtual void InterpolateTuple(vtkIdType i, vtkIdList *ptIndices, vtkAbstractArray *source, double *weights)=0
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
virtual vtkIdType InsertNextTuple(vtkIdType j, vtkAbstractArray *source)=0
virtual unsigned long GetActualMemorySize()=0
virtual void Squeeze()=0
virtual void SetVariantValue(vtkIdType idx, vtkVariant value)=0
static vtkObject * New()
virtual int GetElementComponentSize()=0
virtual void InsertTuples(vtkIdList *dstIds, vtkIdList *srcIds, vtkAbstractArray *source)=0
String class that stores Unicode text.