VTK
vtkGenericAttribute.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGenericAttribute.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
32 #ifndef vtkGenericAttribute_h
33 #define vtkGenericAttribute_h
34 
35 #include "vtkCommonDataModelModule.h" // For export macro
36 #include "vtkObject.h"
37 
41 
42 enum
43 {
47 };
48 
50 {
51  public:
53  virtual void PrintSelf(ostream& os, vtkIndent indent);
54 
57  virtual const char *GetName() = 0;
58 
64  virtual int GetNumberOfComponents() = 0;
65 
69  virtual int GetCentering() = 0;
70 
77  virtual int GetType()=0;
78 
86  virtual int GetComponentType() = 0;
87 
89  virtual vtkIdType GetSize() = 0;
90 
92  virtual unsigned long GetActualMemorySize() = 0;
93 
99  virtual double *GetRange(int component=0) = 0;
100 
102 
105  virtual void GetRange(int component,
106  double range[2]) = 0;
108 
111  virtual double GetMaxNorm()=0;
112 
117  virtual double *GetTuple(vtkGenericAdaptorCell *c) = 0;
118 
123  virtual void GetTuple(vtkGenericAdaptorCell *c, double *tuple) = 0;
124 
129  virtual double *GetTuple(vtkGenericCellIterator *c) = 0;
130 
135  virtual void GetTuple(vtkGenericCellIterator *c, double *tuple) = 0;
136 
140  virtual double *GetTuple(vtkGenericPointIterator *p) = 0;
141 
146  virtual void GetTuple(vtkGenericPointIterator *p, double *tuple) = 0;
147 
153  virtual void GetComponent(int i,vtkGenericCellIterator *c, double *values) = 0;
154 
158  virtual double GetComponent(int i,vtkGenericPointIterator *p) = 0;
159 
162  virtual void DeepCopy(vtkGenericAttribute *other) = 0;
163 
166  virtual void ShallowCopy(vtkGenericAttribute *other) = 0;
167 
168 protected:
171 
172 private:
173  vtkGenericAttribute(const vtkGenericAttribute&); // Not implemented.
174  void operator=(const vtkGenericAttribute&); // Not implemented.
175 };
176 
177 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
int vtkIdType
Definition: vtkType.h:247
iterator used to traverse points
abstract class defined API for attribute data
iterator used to traverse cells
defines cell interface
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKCOMMONDATAMODEL_EXPORT