VTK
vtkBridgeAttribute.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBridgeAttribute.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 =========================================================================*/
27 #ifndef vtkBridgeAttribute_h
28 #define vtkBridgeAttribute_h
29 
30 #include "vtkBridgeExport.h" //for module export macro
31 #include "vtkGenericAttribute.h"
32 
33 class vtkPointData;
34 class vtkCellData;
36 
38 {
39  public:
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
46  const char *GetName();
47 
51 
55  int GetCentering();
56 
63  int GetType();
64 
73 
76 
78  unsigned long GetActualMemorySize();
79 
84  double *GetRange(int component);
85 
87 
89  void GetRange(int component,
90  double range[2]);
92 
95  double GetMaxNorm();
96 
101  virtual double *GetTuple(vtkGenericAdaptorCell *c);
102 
107  virtual void GetTuple(vtkGenericAdaptorCell *c, double *tuple);
108 
114 
119  void GetTuple(vtkGenericCellIterator *c, double *tuple);
120 
125 
130  void GetTuple(vtkGenericPointIterator *p, double *tuple);
131 
138 
143 
147 
151 
153 
157  int i);
159 
161 
165  int i);
167 
168 protected:
173 
177 
178  friend class vtkBridgeCell;
179 
180  // only one of them is non-null at a time.
183  vtkDataSetAttributes *Data; // always not-null, equal to either on Pd or Cd
185 
186  double *InternalTuple; // used by vtkBridgeCell
188 
189 private:
190  vtkBridgeAttribute(const vtkBridgeAttribute&); // Not implemented
191  void operator=(const vtkBridgeAttribute&); // Not implemented
192 };
193 
194 #endif
vtkBridgeAttribute::InitWithPointData
void InitWithPointData(vtkPointData *d, int i)
vtkGenericPointIterator
iterator used to traverse points
Definition: vtkGenericPointIterator.h:42
VTKTESTINGGENERICBRIDGE_EXPORT
#define VTKTESTINGGENERICBRIDGE_EXPORT
Definition: vtkTestingGenericBridgeModule.h:15
vtkX3D::component
@ component
Definition: vtkX3D.h:175
vtkBridgeAttribute::ShallowCopy
void ShallowCopy(vtkGenericAttribute *other)
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:37
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkDataSetAttributes
represent and manipulate attribute data in a dataset
Definition: vtkDataSetAttributes.h:58
vtkBridgeAttribute::InternalTuple
double * InternalTuple
Definition: vtkBridgeAttribute.h:186
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkBridgeAttribute::GetMaxNorm
double GetMaxNorm()
vtkBridgeAttribute::GetType
int GetType()
vtkGenericAdaptorCell
defines cell interface
Definition: vtkGenericAdaptorCell.h:95
vtkBridgeAttribute::GetTuple
double * GetTuple(vtkGenericCellIterator *c)
vtkBridgeAttribute::GetComponent
void GetComponent(int i, vtkGenericCellIterator *c, double *values)
vtkGenericCellIterator
iterator used to traverse cells
Definition: vtkGenericCellIterator.h:44
vtkBridgeAttribute::AllocateInternalTuple
void AllocateInternalTuple(int size)
vtkBridgeAttribute::GetTuple
double * GetTuple(vtkGenericPointIterator *p)
vtkgl::range
GLenum GLint * range
Definition: vtkgl.h:14180
vtkBridgeAttribute::GetComponent
double GetComponent(int i, vtkGenericPointIterator *p)
vtkBridgeAttribute::GetRange
void GetRange(int component, double range[2])
vtkBridgeAttribute::GetComponentType
int GetComponentType()
vtkBridgeAttribute::~vtkBridgeAttribute
virtual ~vtkBridgeAttribute()
vtkBridgeAttribute::GetTuple
void GetTuple(vtkGenericPointIterator *p, double *tuple)
vtkgl::c
const GLubyte * c
Definition: vtkgl.h:15720
vtkgl::values
GLboolean GLenum GLenum GLvoid * values
Definition: vtkgl.h:11354
vtkBridgeAttribute::InitWithCellData
void InitWithCellData(vtkCellData *d, int i)
vtkBridgeAttribute::GetRange
double * GetRange(int component)
vtkBridgeExport.h
vtkBridgeAttribute::GetTuple
virtual void GetTuple(vtkGenericAdaptorCell *c, double *tuple)
vtkCellData
represent and manipulate cell attribute data
Definition: vtkCellData.h:38
vtkBridgeAttribute::GetTuple
virtual double * GetTuple(vtkGenericAdaptorCell *c)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkBridgeAttribute::AttributeNumber
int AttributeNumber
Definition: vtkBridgeAttribute.h:184
vtkBridgeCell::vtkBridgeAttribute
friend class vtkBridgeAttribute
Definition: vtkBridgeCell.h:420
vtkBridgeCell
Implementation of vtkGenericAdaptorCell.
Definition: vtkBridgeCell.h:38
vtkBridgeAttribute
Implementation of vtkGenericAttribute.
Definition: vtkBridgeAttribute.h:38
vtkGenericAttribute.h
vtkBridgeAttribute::GetActualMemorySize
unsigned long GetActualMemorySize()
vtkBridgeAttribute::GetSize
vtkIdType GetSize()
vtkBridgeAttribute::Cd
vtkCellData * Cd
Definition: vtkBridgeAttribute.h:182
vtkBridgeAttribute::vtkBridgeAttribute
vtkBridgeAttribute()
vtkBridgeAttribute::GetNumberOfComponents
int GetNumberOfComponents()
vtkBridgeAttribute::Data
vtkDataSetAttributes * Data
Definition: vtkBridgeAttribute.h:183
vtkBridgeAttribute::GetName
const char * GetName()
vtkBridgeAttribute::GetTuple
void GetTuple(vtkGenericCellIterator *c, double *tuple)
vtkBridgeAttribute::Pd
vtkPointData * Pd
Definition: vtkBridgeAttribute.h:181
vtkGenericAttribute
abstract class defined API for attribute data
Definition: vtkGenericAttribute.h:50
vtkgl::p
GLfloat GLfloat p
Definition: vtkgl.h:15717
vtkBridgeAttribute::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkBridgeAttribute::GetCentering
int GetCentering()
vtkBridgeAttribute::DeepCopy
void DeepCopy(vtkGenericAttribute *other)
vtkBridgeAttribute::InternalTupleCapacity
int InternalTupleCapacity
Definition: vtkBridgeAttribute.h:187
vtkgl::size
GLsizeiptr size
Definition: vtkgl.h:11843
vtkBridgeAttribute::New
static vtkBridgeAttribute * New()