VTK
vtkGenericAttributeCollection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGenericAttributeCollection.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 =========================================================================*/
25 #ifndef vtkGenericAttributeCollection_h
26 #define vtkGenericAttributeCollection_h
27 
28 #include "vtkCommonDataModelModule.h" // For export macro
29 #include "vtkObject.h"
30 
31 class vtkGenericAttributeInternalVector;
32 class vtkIntInternalVector;
34 
36 {
37 public:
40 
42 
44  virtual void PrintSelf(ostream& os, vtkIndent indent);
46 
51 
55 
60 
65 
69  unsigned long GetActualMemorySize();
70 
73  int IsEmpty();
74 
79 
84  int FindAttribute(const char *name);
85 
90  int GetAttributeIndex(int i);
91 
97 
103 
107  void RemoveAttribute(int i);
108 
110  void Reset();
111 
116 
121 
124  virtual unsigned long int GetMTime();
125 
126  // *** ALL THE FOLLOWING METHODS SHOULD BE REMOVED WHEN when the
127  // new pipeline update mechanism is checked in.
128  // *** BEGIN
129 
131 
134  vtkGetMacro(ActiveAttribute, int);
136 
138 
142  vtkGetMacro(ActiveComponent, int);
144 
151  void SetActiveAttribute(int attribute, int component = 0);
152 
154 
156  vtkGetMacro(NumberOfAttributesToInterpolate, int);
158 
159  //BTX
161 
164  //ETX
166 
170  int HasAttribute(int size, int *attributes, int attribute);
171 
173 
179  void SetAttributesToInterpolate(int size, int *attributes);
182 
183 protected:
186 
189 
191  vtkGenericAttributeInternalVector* AttributeInternalVector;
193  vtkIntInternalVector *AttributeIndices;
194 
198  int AttributesToInterpolate[10];
199 
200  int NumberOfComponents; // cache
202  int MaxNumberOfComponents; // cache
203  unsigned long ActualMemorySize; // cache
204  vtkTimeStamp ComputeTime; // cache time stamp
205 
209 
210 private:
212  void operator=(const vtkGenericAttributeCollection &); // Not implemented.
213 };
214 #endif
vtkGenericAttributeCollection::New
static vtkGenericAttributeCollection * New()
vtkGenericAttributeCollection::GetAttributeIndex
int GetAttributeIndex(int i)
vtkGenericAttributeCollection::GetNumberOfAttributes
int GetNumberOfAttributes()
vtkGenericAttributeCollection::GetMTime
virtual unsigned long int GetMTime()
vtkGenericAttributeCollection::InsertAttribute
void InsertAttribute(int i, vtkGenericAttribute *a)
vtkGenericAttributeCollection::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkX3D::component
@ component
Definition: vtkX3D.h:175
vtkGenericAttributeCollection::GetMaxNumberOfComponents
int GetMaxNumberOfComponents()
vtkCommonDataModelModule.h
vtkGenericAttributeCollection::AttributeIndices
vtkIntInternalVector * AttributeIndices
Definition: vtkGenericAttributeCollection.h:193
vtkGenericAttributeCollection::ComputeTime
vtkTimeStamp ComputeTime
Definition: vtkGenericAttributeCollection.h:204
vtkGenericAttributeCollection::vtkGenericAttributeCollection
vtkGenericAttributeCollection()
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkGenericAttributeCollection::AttributeInternalVector
vtkGenericAttributeInternalVector * AttributeInternalVector
Definition: vtkGenericAttributeCollection.h:191
vtkGenericAttributeCollection::NumberOfAttributesToInterpolate
int NumberOfAttributesToInterpolate
Definition: vtkGenericAttributeCollection.h:197
vtkGenericAttributeCollection::FindAttribute
int FindAttribute(const char *name)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkGenericAttributeCollection::~vtkGenericAttributeCollection
virtual ~vtkGenericAttributeCollection()
vtkGenericAttributeCollection::ComputeNumbers
void ComputeNumbers()
vtkGenericAttributeCollection::DeepCopy
void DeepCopy(vtkGenericAttributeCollection *other)
vtkGenericAttributeCollection::NumberOfPointCenteredComponents
int NumberOfPointCenteredComponents
Definition: vtkGenericAttributeCollection.h:201
vtkGenericAttributeCollection::ShallowCopy
void ShallowCopy(vtkGenericAttributeCollection *other)
vtkgl::name
GLuint const GLchar * name
Definition: vtkgl.h:11983
vtkGenericAttributeCollection::ActiveComponent
int ActiveComponent
Definition: vtkGenericAttributeCollection.h:196
vtkGenericAttributeCollection::NumberOfComponents
int NumberOfComponents
Definition: vtkGenericAttributeCollection.h:200
vtkGenericAttributeCollection::ActualMemorySize
unsigned long ActualMemorySize
Definition: vtkGenericAttributeCollection.h:203
vtkGenericAttributeCollection::GetNumberOfComponents
int GetNumberOfComponents()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGenericAttributeCollection::SetAttributesToInterpolate
void SetAttributesToInterpolate(int size, int *attributes)
vtkGenericAttributeCollection::GetAttributesToInterpolate
int * GetAttributesToInterpolate()
vtkGenericAttributeCollection::Reset
void Reset()
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkGenericAttributeCollection::SetAttributesToInterpolateToAll
void SetAttributesToInterpolateToAll()
vtkgl::a
GLboolean GLboolean GLboolean GLboolean a
Definition: vtkgl.h:12312
vtkObject.h
vtkGenericAttributeCollection::GetAttribute
vtkGenericAttribute * GetAttribute(int i)
vtkGenericAttributeCollection::RemoveAttribute
void RemoveAttribute(int i)
vtkGenericAttributeCollection
a collection of attributes
Definition: vtkGenericAttributeCollection.h:36
vtkGenericAttributeCollection::SetActiveAttribute
void SetActiveAttribute(int attribute, int component=0)
vtkGenericAttribute
abstract class defined API for attribute data
Definition: vtkGenericAttribute.h:50
VTKCOMMONDATAMODEL_EXPORT
#define VTKCOMMONDATAMODEL_EXPORT
Definition: vtkCommonDataModelModule.h:15
vtkGenericAttributeCollection::GetNumberOfPointCenteredComponents
int GetNumberOfPointCenteredComponents()
vtkGenericAttributeCollection::MaxNumberOfComponents
int MaxNumberOfComponents
Definition: vtkGenericAttributeCollection.h:202
vtkGenericAttributeCollection::GetActualMemorySize
unsigned long GetActualMemorySize()
vtkGenericAttributeCollection::ActiveAttribute
int ActiveAttribute
Definition: vtkGenericAttributeCollection.h:195
vtkGenericAttributeCollection::IsEmpty
int IsEmpty()
vtkGenericAttributeCollection::InsertNextAttribute
void InsertNextAttribute(vtkGenericAttribute *a)
vtkGenericAttributeCollection::HasAttribute
int HasAttribute(int size, int *attributes, int attribute)
vtkgl::size
GLsizeiptr size
Definition: vtkgl.h:11843