20 #ifndef VTKViewer_POLYDATAMAPPER_H
21 #define VTKViewer_POLYDATAMAPPER_H
33 #include <OpenGL/gl.h>
38 #include <vtkSmartPointer.h>
42 #ifndef VTK_IMPLEMENT_MESA_CXX
43 #include <vtkOpenGLPolyDataMapper.h>
44 #define MAPPER_SUPERCLASS vtkOpenGLPolyDataMapper
46 #include <vtkMesaPolyDataMapper.h>
47 #define MAPPER_SUPERCLASS vtkMesaPolyDataMapper
72 void SetMarkerEnabled(
bool );
75 void SetBallEnabled(
bool );
77 bool GetBallEnabled( );
80 void SetBallScale(
double );
82 double GetBallScale( );
97 int GetMarkerTexture();
100 virtual void RenderPiece( vtkRenderer*, vtkActor* );
103 virtual int Draw( vtkRenderer*, vtkActor* );
105 virtual void RenderPieceDraw( vtkRenderer*, vtkActor* );
113 int InitExtensions();
116 void InitPointSprites();
119 void CleanupPointSprites();
127 void InternalDraw(vtkRenderer*, vtkActor*);
141 GLuint VertexArrayObject;
145 static const GLint INVALID_LOCATION = -1;
153 : ModelViewProjection (INVALID_LOCATION),
154 Projection (INVALID_LOCATION),
155 GeneralPointSize (INVALID_LOCATION),
156 PointSprite (INVALID_LOCATION)