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 "vtkObject.h"
36 
40 
41 enum
42 {
46 };
47 
49 {
50  public:
52  virtual void PrintSelf(ostream& os, vtkIndent indent);
53 
56  virtual const char *GetName() = 0;
57 
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 
118  virtual double *GetTuple(vtkGenericAdaptorCell *c) = 0;
119 
125  virtual void GetTuple(vtkGenericAdaptorCell *c, double *tuple) = 0;
126 
132  virtual double *GetTuple(vtkGenericCellIterator *c) = 0;
133 
139  virtual void GetTuple(vtkGenericCellIterator *c, double *tuple) = 0;
140 
144  virtual double *GetTuple(vtkGenericPointIterator *p) = 0;
145 
150  virtual void GetTuple(vtkGenericPointIterator *p, double *tuple) = 0;
151 
157  virtual void GetComponent(int i,vtkGenericCellIterator *c, double *values) = 0;
158 
162  virtual double GetComponent(int i,vtkGenericPointIterator *p) = 0;
163 
166  virtual void DeepCopy(vtkGenericAttribute *other) = 0;
167 
170  virtual void ShallowCopy(vtkGenericAttribute *other) = 0;
171 
172 protected:
175 
176 private:
177  vtkGenericAttribute(const vtkGenericAttribute&); // Not implemented.
178  void operator=(const vtkGenericAttribute&); // Not implemented.
179 };
180 
181 #endif