47 #ifndef vtkPainterDeviceAdapter_h
48 #define vtkPainterDeviceAdapter_h
50 #include "vtkRenderingCoreModule.h"
131 int stride,
const void *pointer) = 0;
int GetNumberOfComponents()
virtual int GetDataType()=0
Return the underlying data type.
virtual void * GetVoidPointer(vtkIdType valueIdx)=0
Return a void pointer.
abstract superclass for arrays of numeric data
a simple class to control print indentation
abstract base class for most VTK objects
An adapter between a vtkPainter and a rendering device.
~vtkPainterDeviceAdapter()
virtual void DrawElements(int mode, vtkIdType count, int type, void *indices)=0
Send items in the attribute pointers to the graphics card to define a primitive.
virtual void EnableAttributeArray(int index)=0
Enable/disable the attribute array set with SetAttributePointer.
virtual int IsAttributesSupported(int attribute)=0
Returns if the given attribute type is supported by the device.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int Compatible(vtkRenderer *renderer)=0
Returns true if this device adapter is compatible with the given vtkRenderer.
vtkPainterDeviceAdapter()
virtual void BeginPrimitive(int mode)=0
Signals the start of sending a primitive to the graphics card.
static vtkPainterDeviceAdapter * New()
virtual void EndPrimitive()=0
Signals the end of sending a primitive to the graphics card.
virtual void SetAttributePointer(int index, int numcomponents, int type, int stride, const void *pointer)=0
Sets an array of attributes.
void SetAttributePointer(int index, vtkDataArray *attributeArray)
Sets an array of attributes.
virtual void TestStencil(vtkIdType value)=0
virtual void MakeVertexEmphasis(bool mode)=0
Turns emphasis of vertices on or off for vertex selection.
virtual void SendAttribute(int index, int components, int type, const void *attribute, vtkIdType offset=0)=0
Sends a single attribute to the graphics card.
virtual void Stencil(int on)=0
Control use of the stencil buffer (for vertex selection).
virtual void WriteStencil(vtkIdType value)=0
virtual void DrawArrays(int mode, vtkIdType first, vtkIdType count)=0
Send a section of the enabled attribute pointers to the graphics card to define a primitive.
virtual void SendMultiTextureCoords(int numcomp, int type, const void *attribute, int idx, vtkIdType offset)=0
Calls glMultiTex.
virtual void DisableAttributeArray(int index)=0
abstract specification for renderers