Version: 9.12.0
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

OpenGL Point Sprites PolyData Mapper.

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

◆ ImageDataMap

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

Member Enumeration Documentation

◆ ExtensionsState

Enumerator
ES_None 
ES_Error 
ES_Ok 

Constructor & Destructor Documentation

◆ VTKViewer_PolyDataMapper()

◆ ~VTKViewer_PolyDataMapper()

VTKViewer_PolyDataMapper::~VTKViewer_PolyDataMapper ( )
protected

Member Function Documentation

◆ CleanupPointSprites()

void VTKViewer_PolyDataMapper::CleanupPointSprites ( )
protected

Deactivate Point Sprites.

References GL_POINT_SPRITE_ARB, and GL_VERTEX_PROGRAM_POINT_SIZE_ARB.

◆ Draw()

int VTKViewer_PolyDataMapper::Draw ( vtkRenderer *  ren,
vtkActor *  act 
)
virtual

Draw method for OpenGL.

References ImageData, InternalDraw(), MarkerEnabled, MarkerType, and VTK::MT_NONE.

◆ GetBallEnabled()

bool VTKViewer_PolyDataMapper::GetBallEnabled ( )

References BallEnabled.

◆ GetBallScale()

double VTKViewer_PolyDataMapper::GetBallScale ( )

References BallScale.

◆ GetMarkerScale()

VTK::MarkerScale VTKViewer_PolyDataMapper::GetMarkerScale ( )

Get scale of the point marker.

References MarkerScale.

◆ GetMarkerTexture()

int VTKViewer_PolyDataMapper::GetMarkerTexture ( )

Get texture identifier of the point marker.

References MarkerId.

◆ GetMarkerType()

VTK::MarkerType VTKViewer_PolyDataMapper::GetMarkerType ( )

Get type of the point marker.

References MarkerType.

◆ InitExtensions()

int VTKViewer_PolyDataMapper::InitExtensions ( )
protected

◆ InitPointSprites()

void VTKViewer_PolyDataMapper::InitPointSprites ( )
protected

Activate Point Sprites.

References BallEnabled, GL_POINT_SPRITE_ARB, and GL_VERTEX_PROGRAM_POINT_SIZE_ARB.

◆ InitShader()

◆ InitTextures()

void VTKViewer_PolyDataMapper::InitTextures ( )
protected

◆ InternalDraw()

◆ New()

static VTKViewer_PolyDataMapper* VTKViewer_PolyDataMapper::New ( )
static

◆ RenderPiece()

void VTKViewer_PolyDataMapper::RenderPiece ( vtkRenderer *  ren,
vtkActor *  act 
)
virtual

◆ SetBallEnabled()

void VTKViewer_PolyDataMapper::SetBallEnabled ( bool  theBallEnabled)

Set point ball enabled.

References BallEnabled, BallTextureId, ImageData, VTK::MakeTexture(), and SpecialTextures.

◆ SetBallScale()

void VTKViewer_PolyDataMapper::SetBallScale ( double  theBallScale)

Set ball scale factor.

References BallScale.

◆ SetMarkerStd()

void VTKViewer_PolyDataMapper::SetMarkerStd ( VTK::MarkerType  theMarkerType,
VTK::MarkerScale  theMarkerScale 
)

◆ SetMarkerTexture()

void VTKViewer_PolyDataMapper::SetMarkerTexture ( int  theMarkerId,
VTK::MarkerTexture  theMarkerTexture 
)

Set custom point marker.

References CustomTextures, ImageData, VTK::MakeVTKImage(), MarkerId, MarkerType, and VTK::MT_USER.

◆ vtkTypeMacro()

VTKViewer_PolyDataMapper::vtkTypeMacro ( VTKViewer_PolyDataMapper  ,
vtkOpenGLPolyDataMapper   
)

Set point marker enabled.

Member Data Documentation

◆ BallEnabled

bool VTKViewer_PolyDataMapper::BallEnabled
private

◆ BallScale

double VTKViewer_PolyDataMapper::BallScale
private

◆ CustomTextures

ImageDataMap VTKViewer_PolyDataMapper::CustomTextures
private

◆ ExtensionsInitialized

int VTKViewer_PolyDataMapper::ExtensionsInitialized
private

◆ ImageData

vtkSmartPointer<vtkImageData> VTKViewer_PolyDataMapper::ImageData
private

◆ MarkerEnabled

bool VTKViewer_PolyDataMapper::MarkerEnabled
private

◆ MarkerId

int VTKViewer_PolyDataMapper::MarkerId
private

◆ MarkerScale

VTK::MarkerScale VTKViewer_PolyDataMapper::MarkerScale
private

◆ MarkerType

VTK::MarkerType VTKViewer_PolyDataMapper::MarkerType
private

◆ myLocations

struct VTKViewer_PolyDataMapper::Locations VTKViewer_PolyDataMapper::myLocations
private

◆ OpenGLHelper

VTKViewer_OpenGLHelper VTKViewer_PolyDataMapper::OpenGLHelper
private

◆ PointProgram

GLhandleARB VTKViewer_PolyDataMapper::PointProgram
private

◆ PointSpriteTexture

GLuint VTKViewer_PolyDataMapper::PointSpriteTexture
private

◆ SpecialTextures

ImageDataMap VTKViewer_PolyDataMapper::SpecialTextures
private

◆ StandardTextures

ImageDataMap VTKViewer_PolyDataMapper::StandardTextures
private

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