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

OpenGL renderer. More...

#include <vtkOpenGLRenderer.h>

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

Public Types

typedef vtkRenderer Superclass
 
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 int IsA (const char *type)
 
vtkOpenGLRendererNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void DeviceRender (void)
 
virtual void DeviceRenderTranslucentPolygonalGeometry ()
 
void ClearLights (void)
 
virtual void Clear (void)
 
int UpdateLights (void)
 
int GetDepthPeelingHigherLayer ()
 
virtual int IsA (const char *type)
 
vtkOpenGLRendererNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void DeviceRender (void)
 
virtual void DeviceRenderTranslucentPolygonalGeometry ()
 
void Clear (void)
 
int UpdateLights (void)
 
int GetDepthPeelingHigherLayer ()
 
*virtual vtkShaderProgram2GetShaderProgram ()
 
virtual void SetShaderProgram (vtkShaderProgram2 *program)
 
void SetPass (vtkRenderPass *p)
 
virtual vtkRenderPassGetPass ()
 
void SetPass (vtkRenderPass *p)
 
virtual vtkRenderPassGetPass ()
 
- Public Member Functions inherited from vtkRenderer
vtkRendererNewInstance () const
 
void AddLight (vtkLight *)
 
void RemoveLight (vtkLight *)
 
void RemoveAllLights ()
 
vtkLightCollectionGetLights ()
 
void SetLightCollection (vtkLightCollection *lights)
 
void CreateLight (void)
 
virtual vtkLightMakeLight ()
 
virtual int UpdateLightsGeometryToFollowCamera (void)
 
vtkVolumeCollectionGetVolumes ()
 
vtkActorCollectionGetActors ()
 
void SetActiveCamera (vtkCamera *)
 
vtkCameraGetActiveCamera ()
 
virtual vtkCameraMakeCamera ()
 
int CaptureGL2PSSpecialProp (vtkProp *)
 
void SetGL2PSSpecialPropCollection (vtkPropCollection *)
 
void AddCuller (vtkCuller *)
 
void RemoveCuller (vtkCuller *)
 
vtkCullerCollectionGetCullers ()
 
virtual double GetTimeFactor ()
 
virtual void Render ()
 
int VisibleActorCount ()
 
int VisibleVolumeCount ()
 
void ComputeVisiblePropBounds (double bounds[6])
 
doubleComputeVisiblePropBounds ()
 
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 doubleGetAmbient ()
 
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 layer)
 
virtual int GetLayer ()
 
virtual int GetPreserveColorBuffer ()
 
virtual void SetPreserveColorBuffer (int)
 
virtual void PreserveColorBufferOn ()
 
virtual void PreserveColorBufferOff ()
 
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 ()
 
virtual vtkHardwareSelectorGetSelector ()
 
virtual void SetBackgroundTexture (vtkTexture *)
 
virtual vtkTextureGetBackgroundTexture ()
 
virtual void SetTexturedBackground (bool)
 
virtual bool GetTexturedBackground ()
 
virtual void TexturedBackgroundOn ()
 
virtual void TexturedBackgroundOff ()
 
- Public Member Functions inherited from vtkViewport
vtkViewportNewInstance () const
 
void AddViewProp (vtkProp *)
 
vtkPropCollectionGetViewProps ()
 
int HasViewProp (vtkProp *)
 
void RemoveViewProp (vtkProp *)
 
void RemoveAllViewProps (void)
 
virtual doubleGetCenter ()
 
virtual int IsInViewport (int x, int y)
 
virtual void DisplayToView ()
 
virtual void ViewToDisplay ()
 
void DisplayToWorld ()
 
void WorldToDisplay ()
 
void AddActor2D (vtkProp *p)
 
void RemoveActor2D (vtkProp *p)
 
vtkActor2DCollectionGetActors2D ()
 
virtual void SetBackground (double, double, double)
 
virtual void SetBackground (double[3])
 
virtual doubleGetBackground ()
 
virtual void GetBackground (double &, double &, double &)
 
virtual void GetBackground (double[3])
 
virtual void SetBackground2 (double, double, double)
 
virtual void SetBackground2 (double[3])
 
virtual doubleGetBackground2 ()
 
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 doubleGetAspect ()
 
virtual void GetAspect (double data[2])
 
virtual void ComputeAspect ()
 
virtual void SetPixelAspect (double, double)
 
void SetPixelAspect (double[2])
 
virtual doubleGetPixelAspect ()
 
virtual void GetPixelAspect (double data[2])
 
virtual void SetViewport (double, double, double, double)
 
virtual void SetViewport (double[4])
 
virtual doubleGetViewport ()
 
virtual void GetViewport (double data[4])
 
virtual void SetDisplayPoint (double, double, double)
 
virtual void SetDisplayPoint (double[3])
 
virtual doubleGetDisplayPoint ()
 
virtual void GetDisplayPoint (double data[3])
 
virtual void SetViewPoint (double, double, double)
 
virtual void SetViewPoint (double[3])
 
virtual doubleGetViewPoint ()
 
virtual void GetViewPoint (double data[3])
 
virtual void SetWorldPoint (double, double, double, double)
 
virtual void SetWorldPoint (double[4])
 
virtual doubleGetWorldPoint ()
 
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 intGetSize ()
 
virtual intGetOrigin ()
 
void GetTiledSize (int *width, int *height)
 
virtual void GetTiledSizeAndOrigin (int *width, int *height, int *lowerLeftX, int *lowerLeftY)
 
vtkAssemblyPathPickPropFrom (double selectionX, double selectionY, vtkPropCollection *)
 
vtkAssemblyPathPickPropFrom (double selectionX1, double selectionY1, double selectionX2, double selectionY2, 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 unsigned int GetCurrentPickId ()
 
void SetCurrentPickId (unsigned int a)
 
virtual vtkPropCollectionGetPickResultProps ()
 
- Public Member Functions inherited from vtkObject
vtkObjectNewInstance () const
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool 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)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(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 &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

Static Public Member Functions

static vtkOpenGLRendererNew ()
 
static int IsTypeOf (const char *type)
 
static vtkOpenGLRendererSafeDownCast (vtkObjectBase *o)
 
static vtkOpenGLRendererNew ()
 
static int IsTypeOf (const char *type)
 
static vtkOpenGLRendererSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkRenderer
static int IsTypeOf (const char *type)
 
static vtkRendererSafeDownCast (vtkObjectBase *o)
 
static vtkRendererNew ()
 
- Static Public Member Functions inherited from vtkViewport
static int IsTypeOf (const char *type)
 
static vtkViewportSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObjectBase *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

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkOpenGLRenderer ()
 
 ~vtkOpenGLRenderer ()
 
void CheckCompilation (unsigned int fragmentShader)
 
virtual void ReleaseGraphicsResources (vtkWindow *w)
 
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 ()
 
int RenderPeel (int layer)
 
int GetUseTextureUniformVariable ()
 
int GetTextureUniformVariable ()
 
virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkOpenGLRenderer ()
 
 ~vtkOpenGLRenderer ()
 
void CheckCompilation (unsigned int fragmentShader)
 
virtual void ReleaseGraphicsResources (vtkWindow *w)
 
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 ()
 
virtual void ExpandBounds (double bounds[6], vtkMatrix4x4 *matrix)
 
void AllocateTime ()
 
virtual int UpdateGeometry ()
 
virtual int UpdateTranslucentPolygonalGeometry ()
 
virtual int UpdateCamera (void)
 
virtual int UpdateLightGeometry (void)
 
vtkCameraGetActiveCameraAndResetIfCreated ()
 
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 &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

class vtkGLPickInfo * PickInfo
 
double PickedZ
 
int NumberOfLightsBound
 
int DepthPeelingIsSupported
 
int DepthPeelingIsSupportedChecked
 
vtkOpenGLRendererLayerList * LayerList
 
unsigned int OpaqueLayerZ
 
unsigned int TransparentLayerZ
 
unsigned int ProgramShader
 
unsigned int DepthFormat
 
int DepthPeelingHigherLayer
 
vtkShaderProgram2ShaderProgram
 
vtkRenderPassPass
 
vtkDepthPeelingPassDepthPeelingPass
 
int ViewportX
 
int ViewportY
 
int ViewportWidth
 
int ViewportHeight
 
- 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 PreserveColorBuffer
 
int PreserveDepthBuffer
 
double ComputedVisiblePropBounds [6]
 
double NearClippingPlaneTolerance
 
int Erase
 
int Draw
 
vtkPropCollectionGL2PSSpecialPropCollection
 
int UseDepthPeeling
 
double OcclusionRatio
 
int MaximumNumberOfPeels
 
int LastRenderingUsedDepthPeeling
 
vtkHardwareSelectorSelector
 
vtkRendererDelegateDelegate
 
bool TexturedBackground
 
vtkTextureBackgroundTexture
 
- 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
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Friends

class vtkOpenGLProperty
 
class vtkOpenGLTexture
 
class vtkOpenGLImageSliceMapper
 
class vtkOpenGLImageResliceMapper
 
class vtkRenderPass
 

Detailed Description

OpenGL renderer.

vtkOpenGLRenderer is a concrete implementation of the abstract class vtkRenderer. vtkOpenGLRenderer interfaces to the OpenGL graphics library.

vtkOpenGLRenderer is a concrete implementation of the abstract class vtkRenderer. vtkOpenGLRenderer interfaces to the OpenGL graphics library.

Tests:
vtkOpenGLRenderer (Tests)

Definition at line 32 of file vtkOpenGLRenderer.h.

Member Typedef Documentation

Definition at line 36 of file vtkOpenGLRenderer.h.

Definition at line 41 of file vtkOpenGLRenderer.h.

Constructor & Destructor Documentation

vtkOpenGLRenderer::vtkOpenGLRenderer ( )
protected
vtkOpenGLRenderer::~vtkOpenGLRenderer ( )
protected
vtkOpenGLRenderer::vtkOpenGLRenderer ( )
protected
vtkOpenGLRenderer::~vtkOpenGLRenderer ( )
protected

Member Function Documentation

static vtkOpenGLRenderer* vtkOpenGLRenderer::New ( )
static
static int vtkOpenGLRenderer::IsTypeOf ( const char *  type)
static
virtual int vtkOpenGLRenderer::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.

Reimplemented in vtkExternalOpenGLRenderer.

static vtkOpenGLRenderer* vtkOpenGLRenderer::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkOpenGLRenderer::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkRenderer.

Reimplemented in vtkExternalOpenGLRenderer.

vtkOpenGLRenderer* vtkOpenGLRenderer::NewInstance ( ) const
void vtkOpenGLRenderer::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 vtkRenderer.

void vtkOpenGLRenderer::DeviceRender ( void  )
virtual

Concrete open gl render method.

Implements vtkRenderer.

virtual void vtkOpenGLRenderer::DeviceRenderTranslucentPolygonalGeometry ( )
virtual

Render translucent polygonal geometry. Default implementation just call UpdateTranslucentPolygonalGeometry(). Subclasses of vtkRenderer that can deal with depth peeling must override this method.

Reimplemented from vtkRenderer.

void vtkOpenGLRenderer::ClearLights ( void  )

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

virtual void vtkOpenGLRenderer::Clear ( void  )
virtual

Clear the image to the background color.

Reimplemented from vtkRenderer.

int vtkOpenGLRenderer::UpdateLights ( void  )
virtual

Ask lights to load themselves into graphics pipeline.

Reimplemented from vtkRenderer.

int vtkOpenGLRenderer::GetDepthPeelingHigherLayer ( )

Is rendering at translucent geometry stage using depth peeling and rendering a layer other than the first one? (Boolean value) If so, the uniform variables UseTexture and Texture can be set. (Used by vtkOpenGLProperty or vtkOpenGLTexture)

* virtual vtkShaderProgram2* vtkOpenGLRenderer::GetShaderProgram ( )
virtual
virtual void vtkOpenGLRenderer::SetShaderProgram ( vtkShaderProgram2 program)
virtual
void vtkOpenGLRenderer::SetPass ( vtkRenderPass p)

Set/Get a custom render pass. Initial value is NULL.

virtual vtkRenderPass* vtkOpenGLRenderer::GetPass ( )
virtual

Set/Get a custom render pass. Initial value is NULL.

void vtkOpenGLRenderer::CheckCompilation ( unsigned int  fragmentShader)
protected

Check the compilation status of some fragment shader source.

virtual void vtkOpenGLRenderer::ReleaseGraphicsResources ( vtkWindow w)
protectedvirtual

Reimplemented from vtkRenderer.

virtual void vtkOpenGLRenderer::DevicePickRender ( )
protectedvirtual

Implements vtkViewport.

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

Implements vtkViewport.

virtual void vtkOpenGLRenderer::UpdatePickId ( )
protectedvirtual

Implements vtkViewport.

virtual void vtkOpenGLRenderer::DonePick ( )
protectedvirtual

Implements vtkViewport.

virtual unsigned int vtkOpenGLRenderer::GetPickedId ( )
protectedvirtual

Implements vtkViewport.

virtual unsigned int vtkOpenGLRenderer::GetNumPickedIds ( )
protectedvirtual

Implements vtkViewport.

virtual int vtkOpenGLRenderer::GetPickedIds ( unsigned int  atMost,
unsigned int callerBuffer 
)
protectedvirtual

Implements vtkViewport.

virtual double vtkOpenGLRenderer::GetPickedZ ( )
protectedvirtual

Return the Z value for the last picked Prop.

Implements vtkViewport.

int vtkOpenGLRenderer::RenderPeel ( int  layer)
protected

Render a peel layer. If there is no more GPU RAM to save the texture, return false otherwise returns true. Also if layer==0 and no prop have been rendered (there is no translucent geometry), it returns false.

Precondition
positive_layer: layer>=0
int vtkOpenGLRenderer::GetUseTextureUniformVariable ( )
protected

Access to the OpenGL program shader uniform variable "useTexture" from the vtkOpenGLProperty or vtkOpenGLTexture.

int vtkOpenGLRenderer::GetTextureUniformVariable ( )
protected

Access to the OpenGL program shader uniform variable "texture" from the vtkOpenGLProperty or vtkOpenGLTexture.

static vtkOpenGLRenderer* vtkOpenGLRenderer::New ( )
static
static int vtkOpenGLRenderer::IsTypeOf ( const char *  type)
static
virtual int vtkOpenGLRenderer::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.

Reimplemented in vtkExternalOpenGLRenderer.

static vtkOpenGLRenderer* vtkOpenGLRenderer::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkOpenGLRenderer::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkRenderer.

Reimplemented in vtkExternalOpenGLRenderer.

vtkOpenGLRenderer* vtkOpenGLRenderer::NewInstance ( ) const
void vtkOpenGLRenderer::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 vtkRenderer.

void vtkOpenGLRenderer::DeviceRender ( void  )
virtual

Concrete open gl render method.

Implements vtkRenderer.

virtual void vtkOpenGLRenderer::DeviceRenderTranslucentPolygonalGeometry ( )
virtual

Render translucent polygonal geometry. Default implementation just call UpdateTranslucentPolygonalGeometry(). Subclasses of vtkRenderer that can deal with depth peeling must override this method.

Reimplemented from vtkRenderer.

void vtkOpenGLRenderer::Clear ( void  )
virtual

Clear the image to the background color.

Reimplemented from vtkRenderer.

int vtkOpenGLRenderer::UpdateLights ( void  )
virtual

Ask lights to load themselves into graphics pipeline.

Reimplemented from vtkRenderer.

int vtkOpenGLRenderer::GetDepthPeelingHigherLayer ( )

Is rendering at translucent geometry stage using depth peeling and rendering a layer other than the first one? (Boolean value) If so, the uniform variables UseTexture and Texture can be set. (Used by vtkOpenGLProperty or vtkOpenGLTexture)

void vtkOpenGLRenderer::SetPass ( vtkRenderPass p)

Set/Get a custom render pass. Initial value is NULL.

virtual vtkRenderPass* vtkOpenGLRenderer::GetPass ( )
virtual

Set/Get a custom render pass. Initial value is NULL.

void vtkOpenGLRenderer::CheckCompilation ( unsigned int  fragmentShader)
protected

Check the compilation status of some fragment shader source.

virtual void vtkOpenGLRenderer::ReleaseGraphicsResources ( vtkWindow w)
protectedvirtual

Reimplemented from vtkRenderer.

virtual void vtkOpenGLRenderer::DevicePickRender ( )
protectedvirtual

Implements vtkViewport.

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

Implements vtkViewport.

virtual void vtkOpenGLRenderer::UpdatePickId ( )
protectedvirtual

Implements vtkViewport.

virtual void vtkOpenGLRenderer::DonePick ( )
protectedvirtual

Implements vtkViewport.

virtual unsigned int vtkOpenGLRenderer::GetPickedId ( )
protectedvirtual

Implements vtkViewport.

virtual unsigned int vtkOpenGLRenderer::GetNumPickedIds ( )
protectedvirtual

Implements vtkViewport.

virtual int vtkOpenGLRenderer::GetPickedIds ( unsigned int  atMost,
unsigned int callerBuffer 
)
protectedvirtual

Implements vtkViewport.

virtual double vtkOpenGLRenderer::GetPickedZ ( )
protectedvirtual

Return the Z value for the last picked Prop.

Implements vtkViewport.

Friends And Related Function Documentation

Definition at line 111 of file vtkOpenGLRenderer.h.

Definition at line 112 of file vtkOpenGLRenderer.h.

Definition at line 113 of file vtkOpenGLRenderer.h.

vtkOpenGLImageResliceMapper
friend

Definition at line 114 of file vtkOpenGLRenderer.h.

vtkRenderPass
friend

Definition at line 160 of file vtkOpenGLRenderer.h.

Member Data Documentation

class vtkGLPickInfo * vtkOpenGLRenderer::PickInfo
protected

Definition at line 98 of file vtkOpenGLRenderer.h.

double vtkOpenGLRenderer::PickedZ
protected

Definition at line 101 of file vtkOpenGLRenderer.h.

int vtkOpenGLRenderer::NumberOfLightsBound
protected

Definition at line 103 of file vtkOpenGLRenderer.h.

int vtkOpenGLRenderer::DepthPeelingIsSupported
protected

This flag is on if the current OpenGL context supports extensions required by the depth peeling technique.

Definition at line 127 of file vtkOpenGLRenderer.h.

int vtkOpenGLRenderer::DepthPeelingIsSupportedChecked
protected

This flag is on once the OpenGL extensions required by the depth peeling technique have been checked.

Definition at line 131 of file vtkOpenGLRenderer.h.

vtkOpenGLRendererLayerList* vtkOpenGLRenderer::LayerList
protected

Used by the depth peeling technique to store the transparency layers.

Definition at line 134 of file vtkOpenGLRenderer.h.

unsigned int vtkOpenGLRenderer::OpaqueLayerZ
protected

Definition at line 136 of file vtkOpenGLRenderer.h.

unsigned int vtkOpenGLRenderer::TransparentLayerZ
protected

Definition at line 137 of file vtkOpenGLRenderer.h.

unsigned int vtkOpenGLRenderer::ProgramShader
protected

Definition at line 138 of file vtkOpenGLRenderer.h.

int vtkOpenGLRenderer::ViewportX
protected

Cache viewport values for depth peeling.

Definition at line 142 of file vtkOpenGLRenderer.h.

int vtkOpenGLRenderer::ViewportY
protected

Cache viewport values for depth peeling.

Definition at line 143 of file vtkOpenGLRenderer.h.

int vtkOpenGLRenderer::ViewportWidth
protected

Cache viewport values for depth peeling.

Definition at line 144 of file vtkOpenGLRenderer.h.

int vtkOpenGLRenderer::ViewportHeight
protected

Cache viewport values for depth peeling.

Definition at line 145 of file vtkOpenGLRenderer.h.

unsigned int vtkOpenGLRenderer::DepthFormat
protected

Actual depth format: vtkgl::DEPTH_COMPONENT16_ARB or vtkgl::DEPTH_COMPONENT24_ARB

Definition at line 150 of file vtkOpenGLRenderer.h.

int vtkOpenGLRenderer::DepthPeelingHigherLayer
protected

Definition at line 156 of file vtkOpenGLRenderer.h.

vtkShaderProgram2* vtkOpenGLRenderer::ShaderProgram
protected

Definition at line 158 of file vtkOpenGLRenderer.h.

vtkRenderPass * vtkOpenGLRenderer::Pass
protected

Definition at line 161 of file vtkOpenGLRenderer.h.

vtkDepthPeelingPass* vtkOpenGLRenderer::DepthPeelingPass
protected

Deepth peeling is delegated to an instance of vtkDepthPeelingPass

Definition at line 100 of file vtkOpenGLRenderer.h.


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