Version: 6.3.1
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Attributes

VTKViewer_PolyDataMapper Class Reference

OpenGL Point Sprites PolyData Mapper. More...

#include <VTKViewer_PolyDataMapper.h>

Inheritance diagram for VTKViewer_PolyDataMapper:
Inheritance graph

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_PolyDataMapperNew ()

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

Detailed Description

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.


Member Typedef Documentation

typedef std::map< int, vtkSmartPointer<vtkImageData> > VTKViewer_PolyDataMapper.ImageDataMap [private]

Member Enumeration Documentation

Enumerator:
ES_None 
ES_Error 
ES_Ok 

Constructor & Destructor Documentation

VTKViewer_PolyDataMapper::VTKViewer_PolyDataMapper ( ) [protected]
VTKViewer_PolyDataMapper::~VTKViewer_PolyDataMapper ( ) [protected]

References PointSpriteTexture.


Member Function Documentation

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 
)
void VTKViewer_PolyDataMapper::SetMarkerTexture ( int  theMarkerId,
VTK::MarkerTexture  theMarkerTexture 
)
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]
void VTKViewer_PolyDataMapper::InitPointSprites ( ) [protected]
void VTKViewer_PolyDataMapper::CleanupPointSprites ( ) [protected]
void VTKViewer_PolyDataMapper::InitTextures ( ) [protected]

Field Documentation

vtkSmartPointer<vtkImageData> VTKViewer_PolyDataMapper.ImageData [private]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS