Molecule Visualizer
 All Classes Namespaces Files Functions Enumerations Enumerator Macros Groups Pages
Public Slots | Public Member Functions | Public Attributes | List of all members
Scene Class Reference

Inherits AbstractScene.

Public Slots

virtual void setAmbientFactor (float ambientFactor)
 
virtual void setDiffuseFactor (float diffuseFactor)
 
virtual void setSpecularFactor (float specularFactor)
 
virtual void setNearPlane (float nearPlane)
 
virtual void setFarPlane (float farPlane)
 
virtual void setAmbientOcclusion (bool value)
 
virtual void setContourEnabled (bool value)
 
virtual void setContourConstant (bool value)
 
virtual void setDepthFactor (float depthFactor)
 
virtual void setContourWidth (float width)
 
virtual void setAmbientIntensity (float value)
 
virtual void setShadowEnabled (bool value)
 
virtual void switchAmbientOcclusionQuality (int quality)
 

Public Member Functions

 Scene ()
 Default constructor.
 
virtual void initialize ()
 Overrides the abstract method in AbstractScene.
 
virtual void compileShader ()
 Overrides the abstract method in AbstractScene.
 
virtual void update (float t)
 Overrides the abstract method in AbstractScene.
 
virtual void render ()
 Overrides the abstract method in AbstractScene.
 
virtual void resize (int width, int height)
 Overrides the abstract method in AbstractScene.
 
void renderAmbientOcclusion ()
 Renders the ambient occlusion effect. More...
 
virtual void rotateAzimuth (float t)
 
virtual void rotatePolar (float t)
 
- Public Member Functions inherited from AbstractScene
void setContext (QOpenGLContext *context)
 A member function to set the OpenGL context. More...
 
QOpenGLContext * context () const
 A member function to get the OpenGL context. More...
 
virtual void setAmbientFactor (float ambientFactor)=0
 Set the ambient factor for lighting. More...
 
virtual void setDiffuseFactor (float diffuseFactor)=0
 Set the diffuse factor for lighting. More...
 
virtual void setSpecularFactor (float specularFactor)=0
 Set the specular factor for lighting. More...
 
virtual void setNearPlane (float nearPlane)=0
 Set the near plane of the camera. More...
 
virtual void setFarPlane (float farPlane)=0
 Set the far plane of the camera. More...
 
virtual void setAmbientOcclusion (bool value)=0
 Toggle ambient occlusion on/off. More...
 
virtual void setShadowEnabled (bool value)=0
 
virtual void setContourEnabled (bool value)=0
 
virtual void setContourConstant (bool value)=0
 
virtual void setDepthFactor (float depthFactor)=0
 
virtual void setContourWidth (float width)=0
 
virtual void setAmbientIntensity (float value)=0
 
virtual void switchAmbientOcclusionQuality (int quality)=0
 

Public Attributes

float m_LightAzimuth
 
float m_LightPolar
 
bool m_bContourEnabled
 
bool m_bContourConstant
 
bool m_bAmbientOcclusion
 
bool m_bShadowEnabled
 
float m_fContourDepthFactor
 
float m_fContourWidth
 
float m_fAmbientFactor
 
float m_fDiffuseFactor
 
float m_fSpecularFactor
 
float m_fNearPlane
 
float m_fAmbientIntensity
 
- Public Attributes inherited from AbstractScene
Camera mCamera
 

Additional Inherited Members

- Protected Attributes inherited from AbstractScene
QOpenGLContext * mContext
 

Member Function Documentation

void Scene::renderAmbientOcclusion ( )

Renders the ambient occlusion effect.

Returns
void.

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