23 #ifndef __vtkDataArrayTemplate_h
24 #define __vtkDataArrayTemplate_h
29 class vtkDataArrayTemplateLookup;
75 void GetTupleValue(
vtkIdType i, T* tuple);
82 void SetTupleValue(
vtkIdType i,
const T* tuple);
90 void InsertTupleValue(
vtkIdType i,
const T* tuple);
98 vtkIdType InsertNextTupleValue(
const T* tuple);
106 range[0] = this->ValueRange[0];
107 range[1] = this->ValueRange[1]; }
110 return this->ValueRange; }
114 void Squeeze() { this->ResizeAndExtend (this->MaxId+1); }
132 { this->Array[id] =
value;};
138 void SetNumberOfValues(
vtkIdType number);
181 {
return this->WritePointer(
id, number); }
195 { this->Superclass::DeepCopy(aa); }
202 VTK_DATA_ARRAY_DELETE
218 { this->
SetArray(array, size, save, VTK_DATA_ARRAY_FREE); }
220 { this->SetArray(static_cast<T*>(array), size, save); }
226 this->SetArray(static_cast<T*>(array), size, save, deleteMethod);
257 virtual void DataElementChanged(
vtkIdType id);
285 vtkDataArrayTemplateLookup<T>* Lookup;
291 #if !defined(VTK_NO_EXPLICIT_TEMPLATE_INSTANTIATION)
292 # define VTK_DATA_ARRAY_TEMPLATE_INSTANTIATE(T) \
293 template class VTK_COMMON_EXPORT vtkDataArrayTemplate< T >
295 # include "vtkDataArrayTemplateImplicit.txx"
296 # define VTK_DATA_ARRAY_TEMPLATE_INSTANTIATE(T)
299 #endif // !defined(__vtkDataArrayTemplate_h)
304 #if defined(VTK_DATA_ARRAY_TEMPLATE_TYPE)
305 # if defined(VTK_BUILD_SHARED_LIBS) && defined(_MSC_VER)
306 # pragma warning (push)
307 # pragma warning (disable: 4091) // warning C4091: 'extern ' :
309 # pragma warning (disable: 4231) // Compiler-specific extension warning.
322 # pragma warning (disable: 4910) // extern and dllexport incompatible
327 # pragma warning (pop)
329 # undef VTK_DATA_ARRAY_TEMPLATE_TYPE