 |
VTK
9.0.1
|
Go to the documentation of this file.
27 #ifndef vtkTransformFeedback_h
28 #define vtkTransformFeedback_h
31 #include "vtkRenderingOpenGL2Module.h"
82 const std::vector<VaryingMetaData>&
GetVaryings()
const {
return this->Varyings; }
87 static size_t GetBytesPerVertex(VaryingRole role);
92 size_t GetBytesPerVertex()
const;
105 vtkSetMacro(NumberOfVertices,
size_t);
106 void SetNumberOfVertices(
int drawMode,
size_t inputVerts);
107 vtkGetMacro(NumberOfVertices,
size_t);
114 size_t GetBufferSize()
const;
139 int GetBufferHandle(
int index = 0);
147 vtkSetMacro(PrimitiveMode,
int);
148 vtkGetMacro(PrimitiveMode,
int);
158 void Allocate(
int nbBuffers,
size_t size,
unsigned int hint);
166 void BindBuffer(
bool allocateOneBuffer =
true);
174 void ReadBuffer(
int index = 0);
181 vtkGetMacro(BufferData,
void*);
187 void ReleaseGraphicsResources();
194 void ReleaseBufferData(
bool freeBuffer =
true);
206 std::vector<VaryingMetaData> Varyings;
207 size_t NumberOfVertices;
210 std::vector<vtkOpenGLBufferObject*> Buffers;
213 unsigned char* BufferData;
222 return 4 *
sizeof(float);
224 return 4 *
sizeof(float);
226 return 3 *
sizeof(float);
231 vtkGenericWarningMacro(
"Unknown role enum value: " << role);
235 #endif // vtkTransformFeedback_h
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
abstract base class for most VTK objects
window superclass for vtkRenderWindow
The ShaderProgram uses one or more Shader objects.
a simple class to control print indentation
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.