OpenGL Point Sprites PolyData Mapper. More...
#include <VTKViewer_PolyDataMapper.h>

Public Types | |
| enum | ExtensionsState { ES_None = 0, ES_Error, ES_Ok } |
Public Member Functions | |
| vtkTypeRevisionMacro (VTKViewer_PolyDataMapper, vtkOpenGLPolyDataMapper) | |
| void | SetMarkerEnabled (bool) |
| Set point marker enabled. | |
| void | SetMarkerStd (VTK::MarkerType, VTK::MarkerScale) |
| Set standard point marker. | |
| void | SetMarkerTexture (int, VTK::MarkerTexture) |
| Set custom point marker. | |
| VTK::MarkerType | GetMarkerType () |
| Get type of the point marker. | |
| VTK::MarkerScale | GetMarkerScale () |
| Get scale of the point marker. | |
| int | GetMarkerTexture () |
| Get texture identifier of the point marker. | |
| virtual void | RenderPiece (vtkRenderer *, vtkActor *) |
| Implement superclass render method. | |
| virtual int | Draw (vtkRenderer *, vtkActor *) |
| Draw method for OpenGL. | |
Static Public Member Functions | |
| static VTKViewer_PolyDataMapper * | New () |
Protected Member Functions | |
| VTKViewer_PolyDataMapper () | |
| ~VTKViewer_PolyDataMapper () | |
| int | InitExtensions () |
| Initializing OpenGL extensions. | |
| void | InitPointSprites () |
| Activate Point Sprites. | |
| void | CleanupPointSprites () |
| Deactivate Point Sprites. | |
| void | InitTextures () |
| Initializing textures for Point Sprites. | |
Private Types | |
| typedef std::map< int, vtkSmartPointer< vtkImageData > > | ImageDataMap |
Private Attributes | |
| int | ExtensionsInitialized |
| GLuint | PointSpriteTexture |
| vtkSmartPointer< vtkImageData > | ImageData |
| bool | MarkerEnabled |
| VTK::MarkerType | MarkerType |
| VTK::MarkerScale | MarkerScale |
| int | MarkerId |
| ImageDataMap | StandardTextures |
| ImageDataMap | CustomTextures |
VTKViewer_PolyDataMapper is a class that maps polygonal data (i.e., vtkPolyData) to graphics primitives. It is performing the mapping to the rendering/graphics hardware/software. It is now possible to set a memory limit for the pipeline in the mapper. If the total estimated memory usage of the pipeline is larger than this limit, the mapper will divide the data into pieces and render each in a for loop.
typedef std::map< int, vtkSmartPointer<vtkImageData> > VTKViewer_PolyDataMapper.ImageDataMap [private] |
| VTKViewer_PolyDataMapper::VTKViewer_PolyDataMapper | ( | ) | [protected] |
References ES_None, ExtensionsInitialized, MarkerEnabled, MarkerId, MarkerScale, MarkerType, VTK.MS_NONE, VTK.MT_NONE, and PointSpriteTexture.
| VTKViewer_PolyDataMapper::~VTKViewer_PolyDataMapper | ( | ) | [protected] |
References PointSpriteTexture.
| static VTKViewer_PolyDataMapper* VTKViewer_PolyDataMapper.New | ( | ) | [static] |
| VTKViewer_PolyDataMapper.vtkTypeRevisionMacro | ( | VTKViewer_PolyDataMapper | , |
| vtkOpenGLPolyDataMapper | |||
| ) |
| void VTKViewer_PolyDataMapper::SetMarkerEnabled | ( | bool | theMarkerEnabled | ) |
References MarkerEnabled.
| void VTKViewer_PolyDataMapper::SetMarkerStd | ( | VTK::MarkerType | theMarkerType, |
| VTK::MarkerScale | theMarkerScale | ||
| ) |
References ImageData, VTK.LoadTextureData(), VTK.MakeVTKImage(), MarkerScale, MarkerType, VTK.MS_70, VTK.MT_NONE, VTK.MT_USER, and StandardTextures.
| void VTKViewer_PolyDataMapper::SetMarkerTexture | ( | int | theMarkerId, |
| VTK::MarkerTexture | theMarkerTexture | ||
| ) |
References CustomTextures, ImageData, VTK.MakeVTKImage(), MarkerId, MarkerType, and VTK.MT_USER.
| VTK::MarkerType VTKViewer_PolyDataMapper::GetMarkerType | ( | ) |
References MarkerType.
| VTK::MarkerScale VTKViewer_PolyDataMapper::GetMarkerScale | ( | ) |
References MarkerScale.
| int VTKViewer_PolyDataMapper::GetMarkerTexture | ( | ) |
References MarkerId.
| void VTKViewer_PolyDataMapper::RenderPiece | ( | vtkRenderer * | ren, |
| vtkActor * | act | ||
| ) | [virtual] |
| int VTKViewer_PolyDataMapper::Draw | ( | vtkRenderer * | ren, |
| vtkActor * | act | ||
| ) | [virtual] |
| int VTKViewer_PolyDataMapper::InitExtensions | ( | ) | [protected] |
References ES_Error, ES_Ok, and IsBufferExtensionsInitialized.
| void VTKViewer_PolyDataMapper::InitPointSprites | ( | ) | [protected] |
References GL_POINT_SPRITE_ARB, and GL_VERTEX_PROGRAM_POINT_SIZE_ARB.
| void VTKViewer_PolyDataMapper::CleanupPointSprites | ( | ) | [protected] |
References GL_POINT_SPRITE_ARB, and GL_VERTEX_PROGRAM_POINT_SIZE_ARB.
| void VTKViewer_PolyDataMapper::InitTextures | ( | ) | [protected] |
References GL_COORD_REPLACE_ARB, GL_POINT_SPRITE_ARB, ImageData, and PointSpriteTexture.
int VTKViewer_PolyDataMapper.ExtensionsInitialized [private] |
GLuint VTKViewer_PolyDataMapper.PointSpriteTexture [private] |
vtkSmartPointer<vtkImageData> VTKViewer_PolyDataMapper.ImageData [private] |
bool VTKViewer_PolyDataMapper.MarkerEnabled [private] |
int VTKViewer_PolyDataMapper.MarkerId [private] |