VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkMesaRenderer Class Reference

OpenGL renderer. More...

#include <vtkMesaRenderer.h>

Inheritance diagram for vtkMesaRenderer:
[legend]
Collaboration diagram for vtkMesaRenderer:
[legend]

Public Types

typedef vtkRenderer Superclass
 
- Public Types inherited from vtkRenderer
typedef vtkViewport Superclass
 
- Public Types inherited from vtkViewport
typedef vtkObject Superclass
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void DeviceRender (void)
 
void ClearLights (void)
 
void Clear (void)
 
int UpdateLights (void)
 
virtual vtkCameraMakeCamera ()
 
virtual vtkLightMakeLight ()
 
- Public Member Functions inherited from vtkRenderer
void PrintSelf (ostream &os, vtkIndent indent)
 
void AddLight (vtkLight *)
 
void RemoveLight (vtkLight *)
 
void RemoveAllLights ()
 
vtkLightCollectionGetLights ()
 
void SetLightCollection (vtkLightCollection *lights)
 
void CreateLight (void)
 
virtual int UpdateLightsGeometryToFollowCamera (void)
 
vtkVolumeCollectionGetVolumes ()
 
vtkActorCollectionGetActors ()
 
void SetActiveCamera (vtkCamera *)
 
vtkCameraGetActiveCamera ()
 
void AddCuller (vtkCuller *)
 
void RemoveCuller (vtkCuller *)
 
vtkCullerCollectionGetCullers ()
 
virtual double GetTimeFactor ()
 
virtual void Render ()
 
virtual void DeviceRenderTranslucentPolygonalGeometry ()
 
int VisibleActorCount ()
 
int VisibleVolumeCount ()
 
void ComputeVisiblePropBounds (double bounds[6])
 
double * ComputeVisiblePropBounds ()
 
void ResetCameraClippingRange ()
 
void ResetCamera ()
 
void ResetCamera (double bounds[6])
 
int Transparent ()
 
void WorldToView ()
 
virtual void WorldToView (double &wx, double &wy, double &wz)
 
double GetZ (int x, int y)
 
unsigned long GetMTime ()
 
virtual void StereoMidpoint ()
 
double GetTiledAspectRatio ()
 
void AddActor (vtkProp *p)
 
void AddVolume (vtkProp *p)
 
void RemoveActor (vtkProp *p)
 
void RemoveVolume (vtkProp *p)
 
virtual int GetTwoSidedLighting ()
 
virtual void SetTwoSidedLighting (int)
 
virtual void TwoSidedLightingOn ()
 
virtual void TwoSidedLightingOff ()
 
virtual void SetLightFollowCamera (int)
 
virtual int GetLightFollowCamera ()
 
virtual void LightFollowCameraOn ()
 
virtual void LightFollowCameraOff ()
 
virtual int GetAutomaticLightCreation ()
 
virtual void SetAutomaticLightCreation (int)
 
virtual void AutomaticLightCreationOn ()
 
virtual void AutomaticLightCreationOff ()
 
virtual void SetErase (int)
 
virtual int GetErase ()
 
virtual void EraseOn ()
 
virtual void EraseOff ()
 
virtual void SetDraw (int)
 
virtual int GetDraw ()
 
virtual void DrawOn ()
 
virtual void DrawOff ()
 
virtual void SetAmbient (double, double, double)
 
virtual void SetAmbient (double[3])
 
virtual double * GetAmbient ()
 
virtual void GetAmbient (double data[3])
 
virtual void SetAllocatedRenderTime (double)
 
virtual double GetAllocatedRenderTime ()
 
void ResetCameraClippingRange (double bounds[6])
 
void ResetCameraClippingRange (double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
 
virtual void SetNearClippingPlaneTolerance (double)
 
virtual double GetNearClippingPlaneTolerance ()
 
void ResetCamera (double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
 
void SetRenderWindow (vtkRenderWindow *)
 
vtkRenderWindowGetRenderWindow ()
 
virtual vtkWindowGetVTKWindow ()
 
virtual void SetBackingStore (int)
 
virtual int GetBackingStore ()
 
virtual void BackingStoreOn ()
 
virtual void BackingStoreOff ()
 
virtual void SetInteractive (int)
 
virtual int GetInteractive ()
 
virtual void InteractiveOn ()
 
virtual void InteractiveOff ()
 
virtual void SetLayer (int)
 
virtual int GetLayer ()
 
virtual void SetPreserveDepthBuffer (int)
 
virtual int GetPreserveDepthBuffer ()
 
virtual void PreserveDepthBufferOn ()
 
virtual void PreserveDepthBufferOff ()
 
void ViewToWorld ()
 
virtual void ViewToWorld (double &wx, double &wy, double &wz)
 
virtual double GetLastRenderTimeInSeconds ()
 
virtual int GetNumberOfPropsRendered ()
 
vtkAssemblyPathPickProp (double selectionX, double selectionY)
 
vtkAssemblyPathPickProp (double selectionX1, double selectionY1, double selectionX2, double selectionY2)
 
int IsActiveCameraCreated ()
 
virtual void SetUseDepthPeeling (int)
 
virtual int GetUseDepthPeeling ()
 
virtual void UseDepthPeelingOn ()
 
virtual void UseDepthPeelingOff ()
 
virtual void SetOcclusionRatio (double)
 
virtual double GetOcclusionRatio ()
 
virtual void SetMaximumNumberOfPeels (int)
 
virtual int GetMaximumNumberOfPeels ()
 
virtual int GetLastRenderingUsedDepthPeeling ()
 
void SetDelegate (vtkRendererDelegate *d)
 
virtual vtkRendererDelegateGetDelegate ()
 
void SetPass (vtkRenderPass *p)
 
virtual vtkRenderPassGetPass ()
 
virtual vtkHardwareSelectorGetSelector ()
 
void SetBackgroundTexture (vtkTexture *)
 
virtual vtkTextureGetBackgroundTexture ()
 
virtual void SetTexturedBackground (bool)
 
virtual bool GetTexturedBackground ()
 
virtual void TexturedBackgroundOn ()
 
virtual void TexturedBackgroundOff ()
 
- Public Member Functions inherited from vtkViewport
void AddViewProp (vtkProp *)
 
vtkPropCollectionGetViewProps ()
 
int HasViewProp (vtkProp *)
 
void RemoveViewProp (vtkProp *)
 
void RemoveAllViewProps (void)
 
virtual double * GetCenter ()
 
virtual int IsInViewport (int x, int y)
 
virtual void DisplayToView ()
 
virtual void ViewToDisplay ()
 
void DisplayToWorld ()
 
void WorldToDisplay ()
 
void RemoveProp (vtkProp *)
 
void AddProp (vtkProp *)
 
vtkPropCollectionGetProps ()
 
int HasProp (vtkProp *)
 
void RemoveAllProps ()
 
void AddActor2D (vtkProp *p)
 
void RemoveActor2D (vtkProp *p)
 
vtkActor2DCollectionGetActors2D ()
 
virtual void SetBackground (double, double, double)
 
virtual void SetBackground (double[3])
 
virtual double * GetBackground ()
 
virtual void GetBackground (double &, double &, double &)
 
virtual void GetBackground (double[3])
 
virtual void SetBackground2 (double, double, double)
 
virtual void SetBackground2 (double[3])
 
virtual double * GetBackground2 ()
 
virtual void GetBackground2 (double &, double &, double &)
 
virtual void GetBackground2 (double[3])
 
virtual void SetGradientBackground (bool)
 
virtual bool GetGradientBackground ()
 
virtual void GradientBackgroundOn ()
 
virtual void GradientBackgroundOff ()
 
virtual void SetAspect (double, double)
 
void SetAspect (double[2])
 
virtual double * GetAspect ()
 
virtual void GetAspect (double data[2])
 
virtual void ComputeAspect ()
 
virtual void SetPixelAspect (double, double)
 
void SetPixelAspect (double[2])
 
virtual double * GetPixelAspect ()
 
virtual void GetPixelAspect (double data[2])
 
virtual void SetViewport (double, double, double, double)
 
virtual void SetViewport (double[4])
 
virtual double * GetViewport ()
 
virtual void GetViewport (double data[4])
 
virtual void SetDisplayPoint (double, double, double)
 
virtual void SetDisplayPoint (double[3])
 
virtual double * GetDisplayPoint ()
 
virtual void GetDisplayPoint (double data[3])
 
virtual void SetViewPoint (double, double, double)
 
virtual void SetViewPoint (double[3])
 
virtual double * GetViewPoint ()
 
virtual void GetViewPoint (double data[3])
 
virtual void SetWorldPoint (double, double, double, double)
 
virtual void SetWorldPoint (double[4])
 
virtual double * GetWorldPoint ()
 
virtual void GetWorldPoint (double data[4])
 
virtual void LocalDisplayToDisplay (double &x, double &y)
 
virtual void DisplayToNormalizedDisplay (double &u, double &v)
 
virtual void NormalizedDisplayToViewport (double &x, double &y)
 
virtual void ViewportToNormalizedViewport (double &u, double &v)
 
virtual void NormalizedViewportToView (double &x, double &y, double &z)
 
virtual void DisplayToLocalDisplay (double &x, double &y)
 
virtual void NormalizedDisplayToDisplay (double &u, double &v)
 
virtual void ViewportToNormalizedDisplay (double &x, double &y)
 
virtual void NormalizedViewportToViewport (double &u, double &v)
 
virtual void ViewToNormalizedViewport (double &x, double &y, double &z)
 
virtual int * GetSize ()
 
virtual int * GetOrigin ()
 
void GetTiledSize (int *width, int *height)
 
virtual void GetTiledSizeAndOrigin (int *width, int *height, int *lowerLeftX, int *lowerLeftY)
 
vtkAssemblyPathPickPropFrom (double selectionX, double selectionY, vtkPropCollection *)
 
double GetPickX () const
 
double GetPickY () const
 
double GetPickWidth () const
 
double GetPickHeight () const
 
double GetPickX1 () const
 
double GetPickY1 () const
 
double GetPickX2 () const
 
double GetPickY2 () const
 
virtual int GetIsPicking ()
 
virtual vtkPropCollectionGetPickResultProps ()
 
- Public Member Functions inherited from vtkObject
virtual void DebugOn ()
 
virtual void DebugOff ()
 
unsigned char GetDebug ()
 
void SetDebug (unsigned char debugFlag)
 
virtual void Modified ()
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
void SetReferenceCount (int)
 
void PrintRevisions (ostream &os)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

Static Public Member Functions

static vtkMesaRendererNew ()
 
static int IsTypeOf (const char *type)
 
static vtkMesaRendererSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkRenderer
static int IsTypeOf (const char *type)
 
static vtkRendererSafeDownCast (vtkObject *o)
 
static vtkRendererNew ()
 
- Static Public Member Functions inherited from vtkViewport
static int IsTypeOf (const char *type)
 
static vtkViewportSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObject *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Protected Member Functions

 vtkMesaRenderer ()
 
 ~vtkMesaRenderer ()
 
virtual void DevicePickRender ()
 
virtual void StartPick (unsigned int pickFromSize)
 
virtual void UpdatePickId ()
 
virtual void DonePick ()
 
virtual unsigned int GetPickedId ()
 
virtual unsigned int GetNumPickedIds ()
 
virtual int GetPickedIds (unsigned int atMost, unsigned int *callerBuffer)
 
virtual double GetPickedZ ()
 
- Protected Member Functions inherited from vtkRenderer
 vtkRenderer ()
 
 ~vtkRenderer ()
 
virtual void PickRender (vtkPropCollection *props)
 
virtual void PickGeometry ()
 
void AllocateTime ()
 
virtual int UpdateGeometry (void)
 
virtual int UpdateTranslucentPolygonalGeometry ()
 
virtual int UpdateCamera (void)
 
virtual int UpdateLightGeometry (void)
 
vtkCameraGetActiveCameraAndResetIfCreated ()
 
virtual void SetSelectMode (int)
 
virtual void SetSelectConst (unsigned int)
 
void SetIdentPainter (vtkIdentColoredPainter *)
 
virtual int UpdateGeometryForSelection (void)
 
vtkPainterSwapInSelectablePainter (vtkProp *, int &)
 
void SwapOutSelectablePainter (vtkProp *, vtkPainter *, int)
 
void SetSelector (vtkHardwareSelector *selector)
 
- Protected Member Functions inherited from vtkViewport
 vtkViewport ()
 
 ~vtkViewport ()
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
virtual void RegisterInternal (vtkObjectBase *, int check)
 
virtual void UnRegisterInternal (vtkObjectBase *, int check)
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &os)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

int NumberOfLightsBound
 
class vtkGLPickInfo * PickInfo
 
double PickedZ
 
- Protected Attributes inherited from vtkRenderer
vtkCameraActiveCamera
 
vtkLightCreatedLight
 
vtkLightCollectionLights
 
vtkCullerCollectionCullers
 
vtkActorCollectionActors
 
vtkVolumeCollectionVolumes
 
double Ambient [3]
 
vtkRenderWindowRenderWindow
 
double AllocatedRenderTime
 
double TimeFactor
 
int TwoSidedLighting
 
int AutomaticLightCreation
 
int BackingStore
 
unsigned char * BackingImage
 
int BackingStoreSize [2]
 
vtkTimeStamp RenderTime
 
double LastRenderTimeInSeconds
 
int LightFollowCamera
 
int NumberOfPropsRendered
 
vtkProp ** PropArray
 
int PropArrayCount
 
vtkAssemblyPath ** PathArray
 
int PathArrayCount
 
int Interactive
 
int Layer
 
int PreserveDepthBuffer
 
double ComputedVisiblePropBounds [6]
 
double NearClippingPlaneTolerance
 
int Erase
 
int Draw
 
int UseDepthPeeling
 
double OcclusionRatio
 
int MaximumNumberOfPeels
 
int LastRenderingUsedDepthPeeling
 
int SelectMode
 
unsigned int SelectConst
 
vtkIdentColoredPainterIdentPainter
 
vtkHardwareSelectorSelector
 
vtkRendererDelegateDelegate
 
vtkRenderPassPass
 
bool TexturedBackground
 
vtkTextureBackgroundTexture
 
vtkProp ** PropsSelectedFrom
 
int PropsSelectedFromCount
 
- Protected Attributes inherited from vtkViewport
vtkAssemblyPathPickedProp
 
vtkPropCollectionPickFromProps
 
vtkPropCollectionPickResultProps
 
int IsPicking
 
unsigned int CurrentPickId
 
double PickX1
 
double PickY1
 
double PickX2
 
double PickY2
 
vtkPropCollectionProps
 
vtkActor2DCollectionActors2D
 
vtkWindowVTKWindow
 
double Background [3]
 
double Background2 [3]
 
double Viewport [4]
 
double Aspect [2]
 
double PixelAspect [2]
 
double Center [2]
 
bool GradientBackground
 
int Size [2]
 
int Origin [2]
 
double DisplayPoint [3]
 
double ViewPoint [3]
 
double WorldPoint [4]
 
- Protected Attributes inherited from vtkObject
unsigned char Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
int ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Additional Inherited Members

- Protected Types inherited from vtkRenderer
enum  {
  NOT_SELECTING = 0, COLOR_BY_PROCESSOR, COLOR_BY_ACTOR, COLOR_BY_CELL_ID_HIGH,
  COLOR_BY_CELL_ID_MID, COLOR_BY_CELL_ID_LOW, COLOR_BY_VERTEX
}
 
- Friends inherited from vtkObject

Detailed Description

OpenGL renderer.

vtkMesaRenderer is a concrete implementation of the abstract class vtkRenderer. vtkMesaRenderer interfaces to the mesa graphics library. This file is created, by a copy of vtkOpenGLRenderer

Examples:
vtkMesaRenderer (Examples)
Tests:
vtkMesaRenderer (Tests)

Definition at line 34 of file vtkMesaRenderer.h.

Member Typedef Documentation

Definition at line 41 of file vtkMesaRenderer.h.

Constructor & Destructor Documentation

vtkMesaRenderer::vtkMesaRenderer ( )
protected
vtkMesaRenderer::~vtkMesaRenderer ( )
protected

Member Function Documentation

static vtkMesaRenderer* vtkMesaRenderer::New ( )
static
virtual const char* vtkMesaRenderer::GetClassName ( )
virtual

Reimplemented from vtkRenderer.

static int vtkMesaRenderer::IsTypeOf ( const char *  type)
static
virtual int vtkMesaRenderer::IsA ( const char *  name)
virtual

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkRenderer.

static vtkMesaRenderer* vtkMesaRenderer::SafeDownCast ( vtkObject o)
static
void vtkMesaRenderer::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkViewport.

void vtkMesaRenderer::DeviceRender ( void  )
virtual

Concrete open gl render method.

Implements vtkRenderer.

void vtkMesaRenderer::ClearLights ( void  )

Internal method temporarily removes lights before reloading them into graphics pipeline.

void vtkMesaRenderer::Clear ( void  )
virtual

Clear the image to the background color.

Reimplemented from vtkRenderer.

int vtkMesaRenderer::UpdateLights ( void  )
virtual

Ask lights to load themselves into graphics pipeline.

Reimplemented from vtkRenderer.

virtual vtkCamera* vtkMesaRenderer::MakeCamera ( )
virtual

Create a new Camera sutible for use with this type of Renderer. For example, a vtkMesaRenderer should create a vtkMesaCamera in this function. The default is to just call vtkCamera::New.

Reimplemented from vtkRenderer.

virtual vtkLight* vtkMesaRenderer::MakeLight ( )
virtual

Create a new Light sutible for use with this type of Renderer. For example, a vtkMesaRenderer should create a vtkMesaLight in this function. The default is to just call vtkLight::New.

Reimplemented from vtkRenderer.

virtual void vtkMesaRenderer::DevicePickRender ( )
protectedvirtual

Implements vtkViewport.

virtual void vtkMesaRenderer::StartPick ( unsigned int  pickFromSize)
protectedvirtual

Implements vtkViewport.

virtual void vtkMesaRenderer::UpdatePickId ( )
protectedvirtual

Implements vtkViewport.

virtual void vtkMesaRenderer::DonePick ( )
protectedvirtual

Implements vtkViewport.

virtual unsigned int vtkMesaRenderer::GetPickedId ( )
protectedvirtual

Implements vtkViewport.

virtual unsigned int vtkMesaRenderer::GetNumPickedIds ( )
protectedvirtual

Implements vtkViewport.

virtual int vtkMesaRenderer::GetPickedIds ( unsigned int  atMost,
unsigned int *  callerBuffer 
)
protectedvirtual

Implements vtkViewport.

virtual double vtkMesaRenderer::GetPickedZ ( )
protectedvirtual

Return the Z value for the last picked Prop.

Implements vtkViewport.

Member Data Documentation

int vtkMesaRenderer::NumberOfLightsBound
protected

Definition at line 37 of file vtkMesaRenderer.h.

class vtkGLPickInfo* vtkMesaRenderer::PickInfo
protected

Definition at line 81 of file vtkMesaRenderer.h.

double vtkMesaRenderer::PickedZ
protected

Definition at line 83 of file vtkMesaRenderer.h.


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