Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
VTKViewer_PolyDataMapper Class Reference

OpenGL Point Sprites PolyData Mapper. More...

#include <VTKViewer_PolyDataMapper.h>

Inheritance diagram for VTKViewer_PolyDataMapper:
Inheritance graph

Classes

struct  Locations
 

Public Types

enum  ExtensionsState { ES_None = 0, ES_Error, ES_Ok }
 

Public Member Functions

 vtkTypeMacro (VTKViewer_PolyDataMapper, vtkOpenGLPolyDataMapper)
 
void SetMarkerEnabled (bool)
 Set point marker enabled. More...
 
void SetBallEnabled (bool)
 Set point ball enabled. More...
 
bool GetBallEnabled ()
 
void SetBallScale (double)
 Set ball scale factor. More...
 
double GetBallScale ()
 
void SetMarkerStd (VTK::MarkerType, VTK::MarkerScale)
 Set standard point marker. More...
 
void SetMarkerTexture (int, VTK::MarkerTexture)
 Set custom point marker. More...
 
VTK::MarkerType GetMarkerType ()
 Get type of the point marker. More...
 
VTK::MarkerScale GetMarkerScale ()
 Get scale of the point marker. More...
 
int GetMarkerTexture ()
 Get texture identifier of the point marker. More...
 
virtual void RenderPiece (vtkRenderer *, vtkActor *)
 Implement superclass render method. More...
 
virtual int Draw (vtkRenderer *, vtkActor *)
 Draw method for OpenGL. More...
 

Static Public Member Functions

static VTKViewer_PolyDataMapperNew ()
 

Protected Member Functions

 VTKViewer_PolyDataMapper ()
 
 ~VTKViewer_PolyDataMapper ()
 
int InitExtensions ()
 Initializing OpenGL extensions. More...
 
void InitPointSprites ()
 Activate Point Sprites. More...
 
void CleanupPointSprites ()
 Deactivate Point Sprites. More...
 
void InitTextures ()
 Initializing textures for Point Sprites. More...
 
int InitShader ()
 Initializing of the Vertex Shader. More...
 
void InternalDraw (vtkRenderer *, vtkActor *)
 

Private Types

typedef std::map< int,
vtkSmartPointer< vtkImageData > > 
ImageDataMap
 

Private Attributes

int ExtensionsInitialized
 
GLuint PointSpriteTexture
 
vtkSmartPointer< vtkImageData > ImageData
 
VTKViewer_OpenGLHelper OpenGLHelper
 
GLhandleARB PointProgram
 
struct
VTKViewer_PolyDataMapper::Locations 
myLocations
 
bool MarkerEnabled
 
bool BallEnabled
 
double BallScale
 
VTK::MarkerType MarkerType
 
VTK::MarkerScale MarkerScale
 
int MarkerId
 
ImageDataMap StandardTextures
 
ImageDataMap CustomTextures
 
ImageDataMap SpecialTextures
 

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

Member Function Documentation

void VTKViewer_PolyDataMapper::CleanupPointSprites ( )
protected
int VTKViewer_PolyDataMapper::Draw ( vtkRenderer *  ren,
vtkActor *  act 
)
virtual
bool VTKViewer_PolyDataMapper::GetBallEnabled ( )

References BallEnabled.

double VTKViewer_PolyDataMapper::GetBallScale ( )

References BallScale.

VTK::MarkerScale VTKViewer_PolyDataMapper::GetMarkerScale ( )

References MarkerScale.

int VTKViewer_PolyDataMapper::GetMarkerTexture ( )

References MarkerId.

VTK::MarkerType VTKViewer_PolyDataMapper::GetMarkerType ( )

References MarkerType.

int VTKViewer_PolyDataMapper::InitExtensions ( )
protected
void VTKViewer_PolyDataMapper::InitPointSprites ( )
protected
static VTKViewer_PolyDataMapper* VTKViewer_PolyDataMapper::New ( )
static
void VTKViewer_PolyDataMapper::SetBallEnabled ( bool  theBallEnabled)
void VTKViewer_PolyDataMapper::SetBallScale ( double  theBallScale)

References BallScale.

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 
)
VTKViewer_PolyDataMapper::vtkTypeMacro ( VTKViewer_PolyDataMapper  ,
vtkOpenGLPolyDataMapper   
)

Member Data Documentation

bool VTKViewer_PolyDataMapper::BallEnabled
private
double VTKViewer_PolyDataMapper::BallScale
private
ImageDataMap VTKViewer_PolyDataMapper::CustomTextures
private
int VTKViewer_PolyDataMapper::ExtensionsInitialized
private
vtkSmartPointer<vtkImageData> VTKViewer_PolyDataMapper::ImageData
private
bool VTKViewer_PolyDataMapper::MarkerEnabled
private
int VTKViewer_PolyDataMapper::MarkerId
private
VTK::MarkerScale VTKViewer_PolyDataMapper::MarkerScale
private
VTK::MarkerType VTKViewer_PolyDataMapper::MarkerType
private
struct VTKViewer_PolyDataMapper::Locations VTKViewer_PolyDataMapper::myLocations
private
VTKViewer_OpenGLHelper VTKViewer_PolyDataMapper::OpenGLHelper
private
GLhandleARB VTKViewer_PolyDataMapper::PointProgram
private
GLuint VTKViewer_PolyDataMapper::PointSpriteTexture
private
ImageDataMap VTKViewer_PolyDataMapper::SpecialTextures
private
ImageDataMap VTKViewer_PolyDataMapper::StandardTextures
private

The documentation for this class was generated from the following files: