Man Page for vtkMapper
Table of Contents

NAME

vtkMapper - abstract class specifies interface to map data to graphics primitives

SYNOPSIS


#include "/opt/vtk-c++/graphics/vtkMapper.h"

class VTK_EXPORT vtkMapper : public vtkObject

vtkMapper();
~vtkMapper();
const char *GetClassName() {return "vtkMapper";};
void PrintSelf(ostream& os, vtkIndent indent);
void operator=(const vtkMapper& m);
unsigned long int GetMTime();
void SetStartRender(void (*f)(void *), void *arg);
void SetEndRender(void (*f)(void *), void *arg);
void SetStartRenderArgDelete(void (*f)(void *));
void SetEndRenderArgDelete(void (*f)(void *));
virtual void Render(vtkRenderer *ren, vtkActor *a) = 0;
void SetLookupTable(vtkLookupTable *lut);
void SetLookupTable(vtkLookupTable& lut) {this->SetLookupTable(&lut);};
vtkLookupTable *GetLookupTable();
virtual void CreateDefaultLookupTable();
void SetScalarVisibility(int);
int GetScalarVisibility();
void ScalarVisibilityOn();
void ScalarVisibilityOff();
void SetImmediateModeRendering(int);
int GetImmediateModeRendering();
void ImmediateModeRenderingOn();
void ImmediateModeRenderingOff();
void SetScalarRange(float, float);
void SetScalarRange(float *);
float *GetScalarRange();
void GetScalarRange(float data[2]);
virtual float *GetBounds() = 0;
float *GetCenter();
virtual void Update();
virtual vtkDataSet *GetInput() {return this->Input;};
vtkColorScalars *GetColors();

DESCRIPTION

vtkMapper is an abstract class to specify interface between data and graphics primitives. Subclasses of vtkMapper map data through a lookuptable and control the creation of rendering primitives that interface to the graphics library. The mapping can be controlled by supplying a lookup table and specifying a scalar range to map data through.

SEE ALSO

vtkDataSetMapper vtkPolyDataMapper

SUMMARY

virtual void Render(vtkRenderer *ren, vtkActor *a) = 0; Method initiates the mapping process. Generally sent by the actor as each frame is rendered.

virtual void CreateDefaultLookupTable();
Create default lookup table. Generally used to create one when none is available.

void SetScalarVisibility(int)
Turn on/off flag to control whether scalar data is used to color objects.

void SetImmediateModeRendering(int)
Turn on/off flag to control whether data is rendered using immediate mode or note. Immediate mode rendering tends to be slower but it can handle larger datasets. The default value is immediate mode off. If you are having problems rendering a large dataset you might want to consider using imediate more rendering.

void SetScalarRange(float, float)
void SetScalarRange(float *)
Specify range in terms of scalar minimum and maximum (smin,smax). These values are used to map scalars into lookup table.

virtual float *GetBounds() = 0;
Return bounding box of data in terms of (xmin,xmax, ymin,ymax, zmin,zmax). Used in the rendering process to automatically create a camera in the proper initial configuration.

virtual void Update();
Update the network connected to this mapper.

vtkMapper()
Construct with initial range (0,1).

unsigned long GetMTime()
Overload standard modified time function. If lookup table is modified, then this object is modified as well.

void SetStartRender(void (*f)(void *), void *arg)
Specify a function to be called before rendering process begins. Function will be called with argument provided.

void SetStartRenderArgDelete(void (*f)(void *))
Specify a method to delete the user specified argument to the StartRenderMethod. This is an optional capability.

void SetEndRenderArgDelete(void (*f)(void *))
Specify a method to delete the user specified argument to the EndRenderMethod. This is an optional capability.

void SetEndRender(void (*f)(void *), void *arg)
Specify a function to be called when rendering process completes. Function will be called with argument provided.

void SetLookupTable(vtkLookupTable *lut)
Specify a lookup table for the mapper to use.

void Update()
Update the network connected to this mapper.


Table of Contents