VTK
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:
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);
57  virtual void InsertTuples(vtkIdList *dstIds, vtkIdList *srcIds,
59  virtual void InsertTuples(vtkIdType dstStart, vtkIdType n, vtkIdType srcStart,
62  virtual void* GetVoidPointer(vtkIdType id);
63  virtual void DeepCopy(vtkAbstractArray* da);
64  virtual void InterpolateTuple(vtkIdType i, vtkIdList *ptIndices,
65  vtkAbstractArray* source, double* weights);
66  virtual void InterpolateTuple(vtkIdType i,
67  vtkIdType id1, vtkAbstractArray* source1,
68  vtkIdType id2, vtkAbstractArray* source2, double t);
69  virtual void Squeeze();
70  virtual int Resize(vtkIdType numTuples);
71  virtual void SetVoidArray(void *array, vtkIdType size, int save);
72  virtual unsigned long GetActualMemorySize(); // in bytes
73  virtual int IsNumeric();
78 
80  virtual void DataChanged();
81  virtual void ClearLookup();
82 
84  void InsertValue(vtkIdType idx, const vtkUnicodeString&); // Ranged checked
85  void SetValue(vtkIdType i, const vtkUnicodeString&); // Not ranged checked
87 
88  void InsertNextUTF8Value(const char*);
89  void SetUTF8Value(vtkIdType i, const char*);
90  const char* GetUTF8Value(vtkIdType i);
91 
92 protected:
95 
96 private:
97  vtkUnicodeStringArray(const vtkUnicodeStringArray&); // Not implemented.
98  void operator=(const vtkUnicodeStringArray&); // Not implemented.
99 
100 //BTX
101  class Implementation;
102  Implementation* Internal;
103 //ETX
104 };
105 
106 #endif
107 
vtkUnicodeStringArray::Allocate
virtual int Allocate(vtkIdType sz, vtkIdType ext=1000)
vtkUnicodeStringArray::GetVoidPointer
virtual void * GetVoidPointer(vtkIdType id)
vtkUnicodeStringArray::LookupValue
virtual vtkIdType LookupValue(vtkVariant value)
vtkUnicodeStringArray::GetValue
vtkUnicodeString & GetValue(vtkIdType i)
VTKCOMMONCORE_EXPORT
#define VTKCOMMONCORE_EXPORT
Definition: vtkCommonCoreModule.h:15
vtkUnicodeStringArray::InsertTuples
virtual void InsertTuples(vtkIdType dstStart, vtkIdType n, vtkIdType srcStart, vtkAbstractArray *source)
vtkgl::weights
const GLbyte * weights
Definition: vtkgl.h:12766
vtkUnicodeStringArray::InsertNextUTF8Value
void InsertNextUTF8Value(const char *)
vtkUnicodeStringArray::vtkUnicodeStringArray
vtkUnicodeStringArray()
vtkUnicodeStringArray
Subclass of vtkAbstractArray that holds vtkUnicodeStrings.
Definition: vtkUnicodeStringArray.h:43
vtkUnicodeStringArray::InsertNextTuple
virtual vtkIdType InsertNextTuple(vtkIdType j, vtkAbstractArray *source)
vtkIdType
int vtkIdType
Definition: vtkType.h:275
save
void save(Archiver &ar, const vtkUnicodeString &str, const unsigned int vtkNotUsed(version))
Definition: vtkVariantBoostSerialization.h:64
vtkUnicodeString.h
vtkUnicodeStringArray::GetDataTypeSize
virtual int GetDataTypeSize()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkgl::n
GLclampd n
Definition: vtkgl.h:14370
vtkUnicodeStringArray::InsertNextValue
vtkIdType InsertNextValue(const vtkUnicodeString &)
vtkUnicodeStringArray::GetActualMemorySize
virtual unsigned long GetActualMemorySize()
vtkUnicodeStringArray::SetUTF8Value
void SetUTF8Value(vtkIdType i, const char *)
vtkAbstractArray.h
vtkUnicodeStringArray::GetDataType
virtual int GetDataType()
vtkUnicodeStringArray::SetValue
void SetValue(vtkIdType i, const vtkUnicodeString &)
vtkUnicodeStringArray::InterpolateTuple
virtual void InterpolateTuple(vtkIdType i, vtkIdList *ptIndices, vtkAbstractArray *source, double *weights)
vtkUnicodeStringArray::New
static vtkUnicodeStringArray * New()
source
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Definition: vtkBoostGraphAdapter.h:821
vtkUnicodeStringArray::Resize
virtual int Resize(vtkIdType numTuples)
vtkUnicodeStringArray::LookupValue
virtual void LookupValue(vtkVariant value, vtkIdList *ids)
vtkUnicodeStringArray::InsertTuple
virtual void InsertTuple(vtkIdType i, vtkIdType j, vtkAbstractArray *source)
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkUnicodeStringArray::Squeeze
virtual void Squeeze()
vtkCommonCoreModule.h
vtkgl::ids
GLuint * ids
Definition: vtkgl.h:11831
vtkUnicodeStringArray::SetNumberOfTuples
virtual void SetNumberOfTuples(vtkIdType number)
vtkUnicodeStringArray::DeepCopy
virtual void DeepCopy(vtkAbstractArray *da)
vtkUnicodeStringArray::SetVariantValue
virtual void SetVariantValue(vtkIdType idx, vtkVariant value)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkUnicodeString
String class that stores Unicode text.
Definition: vtkUnicodeString.h:72
vtkUnicodeStringArray::IsNumeric
virtual int IsNumeric()
vtkUnicodeStringArray::GetVariantValue
virtual vtkVariant GetVariantValue(vtkIdType idx)
vtkVariant
A atomic type representing the union of many types.
Definition: vtkVariant.h:79
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:36
vtkUnicodeStringArray::InsertValue
void InsertValue(vtkIdType idx, const vtkUnicodeString &)
vtkUnicodeStringArray::GetUTF8Value
const char * GetUTF8Value(vtkIdType i)
vtkUnicodeStringArray::Initialize
virtual void Initialize()
vtkUnicodeStringArray::DataChanged
virtual void DataChanged()
vtkAbstractArray
Abstract superclass for all arrays.
Definition: vtkAbstractArray.h:65
vtkUnicodeStringArray::SetVoidArray
virtual void SetVoidArray(void *array, vtkIdType size, int save)
vtkgl::t
GLdouble GLdouble t
Definition: vtkgl.h:11602
vtkArrayIterator
Abstract superclass to iterate over elements in an vtkAbstractArray.
Definition: vtkArrayIterator.h:49
vtkUnicodeStringArray::InsertTuples
virtual void InsertTuples(vtkIdList *dstIds, vtkIdList *srcIds, vtkAbstractArray *source)
vtkUnicodeStringArray::InterpolateTuple
virtual void InterpolateTuple(vtkIdType i, vtkIdType id1, vtkAbstractArray *source1, vtkIdType id2, vtkAbstractArray *source2, double t)
vtkUnicodeStringArray::NewIterator
virtual vtkArrayIterator * NewIterator()
vtkUnicodeStringArray::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkUnicodeStringArray::~vtkUnicodeStringArray
~vtkUnicodeStringArray()
vtkUnicodeStringArray::SetTuple
virtual void SetTuple(vtkIdType i, vtkIdType j, vtkAbstractArray *source)
vtkgl::size
GLsizeiptr size
Definition: vtkgl.h:11843
vtkUnicodeStringArray::ClearLookup
virtual void ClearLookup()
vtkUnicodeStringArray::GetElementComponentSize
virtual int GetElementComponentSize()