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)
#define VTKVIEWER_EXPORT
Definition: VTKViewer.h:33
GLuint GLhandleARB
Definition: VTKViewer_OpenGLHelper.h:35
#define MAPPER_SUPERCLASS
Definition: VTKViewer_PolyDataMapper.h:44
Definition: VTKViewer_OpenGLHelper.h:106
OpenGL Point Sprites PolyData Mapper.
Definition: VTKViewer_PolyDataMapper.h:63
vtkTypeMacro(VTKViewer_PolyDataMapper, vtkOpenGLPolyDataMapper) void SetMarkerEnabled(bool)
Set point marker enabled.
GLhandleARB PointProgram
Definition: VTKViewer_PolyDataMapper.h:137
int ExtensionsInitialized
Definition: VTKViewer_PolyDataMapper.h:130
static VTKViewer_PolyDataMapper * New()
int MarkerId
Definition: VTKViewer_PolyDataMapper.h:167
ExtensionsState
Definition: VTKViewer_PolyDataMapper.h:65
@ ES_Error
Definition: VTKViewer_PolyDataMapper.h:65
std::map< int, vtkSmartPointer< vtkImageData > > ImageDataMap
Definition: VTKViewer_PolyDataMapper.h:169
VTK::MarkerScale MarkerScale
Definition: VTKViewer_PolyDataMapper.h:166
bool MarkerEnabled
Definition: VTKViewer_PolyDataMapper.h:162
ImageDataMap SpecialTextures
Definition: VTKViewer_PolyDataMapper.h:172
double BallScale
Definition: VTKViewer_PolyDataMapper.h:164
bool BallEnabled
Definition: VTKViewer_PolyDataMapper.h:163
vtkSmartPointer< vtkImageData > ImageData
Definition: VTKViewer_PolyDataMapper.h:134
ImageDataMap CustomTextures
Definition: VTKViewer_PolyDataMapper.h:171
ImageDataMap StandardTextures
Definition: VTKViewer_PolyDataMapper.h:170
VTKViewer_OpenGLHelper OpenGLHelper
Definition: VTKViewer_PolyDataMapper.h:136
VTK::MarkerType MarkerType
Definition: VTKViewer_PolyDataMapper.h:165
GLuint PointSpriteTexture
Definition: VTKViewer_PolyDataMapper.h:132
int MarkerType
Type of standard marker for advanced rendering of vtk points.
Definition: VTKViewer_MarkerDef.h:30
int MarkerScale
Scale of standard marker for advanced rendering of vtk points.
Definition: VTKViewer_MarkerDef.h:44
std::list< unsigned short > MarkerTexture
Definition: VTKViewer_MarkerDef.h:60
Definition: VTKViewer_PolyDataMapper.h:144
GLint Projection
Definition: VTKViewer_PolyDataMapper.h:148
Locations()
Definition: VTKViewer_PolyDataMapper.h:152
GLint ModelViewProjection
Definition: VTKViewer_PolyDataMapper.h:147
GLint PointSprite
Definition: VTKViewer_PolyDataMapper.h:150
GLint GeneralPointSize
Definition: VTKViewer_PolyDataMapper.h:149