Gazebo Rendering

API Reference

8.2.1
Ogre2LensFlarePass Class Reference

Ogre2 Implementation of a Lens Flare render pass. More...

#include <Ogre2LensFlarePass.hh>

Public Member Functions

 Ogre2LensFlarePass ()
 Constructor. More...
 
 ~Ogre2LensFlarePass () override
 Destructor. More...
 
const math::Vector3dColor () const override
 Returns the color set in SetColor() More...
 
virtual void Destroy () override
 Destroy any resources associated with this object. Invoking any other functions after destroying an object will result in undefined behavior. More...
 
void Init (ScenePtr _scene) override
 Initializes the Lens Flare Pass with given scene. More...
 
uint32_t OcclusionSteps () const override
 Returns the number of steps set in SetOcclusionSteps() More...
 
void PostRender () override
 Post process this object and any of its children after rendering. More...
 
void PreRender (const CameraPtr &_camera) override
 See Object::PreRender. This function will call Object::PreRender but with the added bonus that it has access to the camera that is about to render. More...
 
double Scale () const override
 Returns the scale set in SetScale() More...
 
void SetColor (const math::Vector3d &_color) override
 Set the color of lens flare. More...
 
void SetOcclusionSteps (uint32_t _occlusionSteps) override
 Set the number of steps to take in each direction when checking for occlusions. More...
 
void SetScale (double _scale) override
 Set the scale of lens flare. More...
 
void WorkspaceAdded (Ogre::CompositorWorkspace *_workspace) override
 Notifies Ogre2RenderPass that a new workspace has been created. More...
 
void WorkspaceRemoved (Ogre::CompositorWorkspace *_workspace) override
 Notifies Ogre2RenderPass that a workspace will be destroyed. More...
 
- Public Member Functions inherited from BaseLensFlarePass< Ogre2RenderPass >
virtual ~BaseLensFlarePass () override
 Destructor. More...
 
void SetLight (LightPtr _light) override
 Set the light that generates lens flare. More...
 
- Public Member Functions inherited from LensFlarePass
 LensFlarePass ()
 Constructor. More...
 
virtual ~LensFlarePass ()
 Destructor. More...
 
- Public Member Functions inherited from RenderPass
virtual ~RenderPass ()
 Destructor. More...
 
- Public Member Functions inherited from Object
virtual ~Object ()
 Destructor. More...
 
virtual unsigned int Id () const =0
 Get the object ID. This ID will be unique across all objects inside a given scene, but necessarily true for objects across different scenes. More...
 
virtual std::string Name () const =0
 Get the object name. This name will be unique across all objects inside a given scene, but necessarily true for objects across different scenes. More...
 
virtual void PreRender ()=0
 Prepare this object and any of its children for rendering. This should be called for each object in a scene just before rendering, which can be achieved by a single call to Scene::PreRender. More...
 
virtual ScenePtr Scene () const =0
 Get the Scene that created this object. More...
 
- Public Member Functions inherited from Ogre2RenderPass
virtual ~Ogre2RenderPass ()
 Destructor. More...
 
virtual void CreateRenderPass ()
 Create the render pass using ogre compositor. More...
 
void Destroy () override
 
std::string OgreCompositorNodeDefinitionName () const
 Get the ogre compositor node definition name for this render pass. More...
 
- Public Member Functions inherited from BaseRenderPass< Ogre2Object >
virtual ~BaseRenderPass ()
 Destructor. More...
 
virtual bool IsEnabled () const override
 Get whether or not the render pass is enabled. More...
 
void PreRender (const CameraPtr &_camera) override
 See Object::PreRender. This function will call Object::PreRender but with the added bonus that it has access to the camera that is about to render. More...
 
virtual void SetEnabled (bool _enabled) override
 Set to enable or disable the render pass. More...
 
void SetWideAngleCameraAfterStitching (bool _afterStitching) override
 WideAngleCamera renders to 6 faces; then stitches all 6 into a final "fish-eye" lens result. More...
 
bool WideAngleCameraAfterStitching () const override
 See SetWideAngleCameraAfterStitching() More...
 
- Public Member Functions inherited from Ogre2Object
virtual ~Ogre2Object ()
 Destructor. More...
 
virtual ScenePtr Scene () const override
 
- Public Member Functions inherited from BaseObject
virtual ~BaseObject ()
 
virtual unsigned int Id () const override
 
virtual std::string Name () const override
 
virtual void PreRender () override
 

Additional Inherited Members

- Protected Member Functions inherited from BaseLensFlarePass< Ogre2RenderPass >
 BaseLensFlarePass ()
 Constructor. More...
 
- Protected Member Functions inherited from Ogre2RenderPass
 Ogre2RenderPass ()
 Constructor. More...
 
- Protected Member Functions inherited from BaseRenderPass< Ogre2Object >
 BaseRenderPass ()
 Constructor. More...
 
- Protected Member Functions inherited from Ogre2Object
 Ogre2Object ()
 Constructor. More...
 
- Protected Member Functions inherited from BaseObject
 BaseObject ()
 
virtual void Init ()
 
virtual void Load ()
 
- Protected Attributes inherited from BaseLensFlarePass< Ogre2RenderPass >
LightPtr light
 Light that generates the lens flare. More...
 
- Protected Attributes inherited from Ogre2RenderPass
std::string ogreCompositorNodeDefName
 Name of the ogre compositor node definition. More...
 
- Protected Attributes inherited from BaseRenderPass< Ogre2Object >
bool afterStitching
 Flag tracking the current value of SetWideAngleCameraAfterStitching() More...
 
bool enabled
 Flag to indicate if render pass is enabled or not. More...
 
- Protected Attributes inherited from Ogre2Object
Ogre2ScenePtr scene
 Pointer to the ogre scene. More...
 
- Protected Attributes inherited from BaseObject
unsigned int id
 
std::string name
 

Detailed Description

Ogre2 Implementation of a Lens Flare render pass.

Constructor & Destructor Documentation

◆ Ogre2LensFlarePass()

Constructor.

◆ ~Ogre2LensFlarePass()

~Ogre2LensFlarePass ( )
override

Destructor.

Member Function Documentation

◆ Color()

const math::Vector3d& Color ( ) const
overridevirtual

Returns the color set in SetColor()

Returns
Color of lens flare

Implements LensFlarePass.

◆ Destroy()

virtual void Destroy ( )
overridevirtual

Destroy any resources associated with this object. Invoking any other functions after destroying an object will result in undefined behavior.

Implements Object.

◆ Init()

void Init ( ScenePtr  _scene)
overridevirtual

Initializes the Lens Flare Pass with given scene.

Parameters
[in]_scenePointer to scene

Implements LensFlarePass.

◆ OcclusionSteps()

uint32_t OcclusionSteps ( ) const
overridevirtual

Returns the number of steps set in SetOcclusionSteps()

Returns
Number of occlusion steps

Implements LensFlarePass.

◆ PostRender()

void PostRender ( )
overridevirtual

Post process this object and any of its children after rendering.

Implements Object.

◆ PreRender()

void PreRender ( const CameraPtr _camera)
overridevirtual

See Object::PreRender. This function will call Object::PreRender but with the added bonus that it has access to the camera that is about to render.

Parameters
[in]_cameraCamera that is about to render

Implements RenderPass.

◆ Scale()

double Scale ( ) const
overridevirtual

Returns the scale set in SetScale()

Returns
Scale of lens flare

Implements LensFlarePass.

◆ SetColor()

void SetColor ( const math::Vector3d _color)
overridevirtual

Set the color of lens flare.

Parameters
[in]_colorColor of lens flare

Implements LensFlarePass.

◆ SetOcclusionSteps()

void SetOcclusionSteps ( uint32_t  _occlusionSteps)
overridevirtual

Set the number of steps to take in each direction when checking for occlusions.

Parameters
[in]_occlusionStepsnumber of steps to take in each direction when checking for occlusion. A value of 0 disables occlusion.

Implements LensFlarePass.

◆ SetScale()

void SetScale ( double  _scale)
overridevirtual

Set the scale of lens flare.

Parameters
[in]_scaleScale of lens flare

Implements LensFlarePass.

◆ WorkspaceAdded()

void WorkspaceAdded ( Ogre::CompositorWorkspace *  _workspace)
overridevirtual

Notifies Ogre2RenderPass that a new workspace has been created.

Parameters
[in]_workspaceworkspace that was created

Reimplemented from Ogre2RenderPass.

◆ WorkspaceRemoved()

void WorkspaceRemoved ( Ogre::CompositorWorkspace *  _workspace)
overridevirtual

Notifies Ogre2RenderPass that a workspace will be destroyed.

Parameters
[in]_workspaceworkspace about to be destroyed

Reimplemented from Ogre2RenderPass.


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