Molecule Visualizer
 All Classes Namespaces Files Functions Enumerations Enumerator Macros Groups Pages
Public Member Functions | Public Attributes | Protected Attributes | List of all members
AbstractScene Class Referenceabstract

Inherited by Scene.

Public Member Functions

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 initialize ()=0
 A virtual member function that initializes the scene (has to be overwritten). More...
 
virtual void compileShader ()=0
 A virtual member function that compiles a shader(has to be overwritten). More...
 
virtual void update (float t)=0
 A virtual member function that updates the scene (has to be overwritten). More...
 
virtual void render ()=0
 A virtual member function that renders the scene(has to be overwritten). More...
 
virtual void resize (int width, int height)=0
 A virtual member function that resizes the scene(has to be overwritten). More...
 
virtual bool loadModelFromPath (const std::string absoluteFilePath)=0
 A virtual member function that loads a model from a given path(has to be overwritten). More...
 
virtual void rotateAzimuth (float t)=0
 
virtual void rotatePolar (float t)=0
 
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

Camera mCamera
 

Protected Attributes

QOpenGLContext * mContext
 

Member Function Documentation

void AbstractScene::compileShader ( )
pure virtual

A virtual member function that compiles a shader(has to be overwritten).

Returns
void.

Implemented in Scene.

QOpenGLContext * AbstractScene::context ( ) const
inline

A member function to get the OpenGL context.

Returns
*context a pointer to QOpenGLContext
void AbstractScene::initialize ( )
pure virtual

A virtual member function that initializes the scene (has to be overwritten).

Returns
void.

Implemented in Scene.

bool AbstractScene::loadModelFromPath ( const std::string  absoluteFilePath)
pure virtual

A virtual member function that loads a model from a given path(has to be overwritten).

Parameters
absoluteFilePatha const std::string.
Returns
bool true or false, depending on success or failure.
void AbstractScene::render ( )
pure virtual

A virtual member function that renders the scene(has to be overwritten).

Returns
void.

Implemented in Scene.

void AbstractScene::resize ( int  width,
int  height 
)
pure virtual

A virtual member function that resizes the scene(has to be overwritten).

Parameters
widthan integer.
heightan integer.
Returns
void.

Implemented in Scene.

AbstractScene::setAmbientFactor ( float  ambientFactor)
pure virtual

Set the ambient factor for lighting.

Parameters
ambientFactora float.
Returns
void.
void AbstractScene::setAmbientOcclusion ( bool  value)
pure virtual

Toggle ambient occlusion on/off.

Parameters
valuea boolean.
Returns
void.
void AbstractScene::setContext ( QOpenGLContext *  context)
inline

A member function to set the OpenGL context.

Parameters
*contexta pointer to QOpenGLContext.
Returns
void
void AbstractScene::setDiffuseFactor ( float  diffuseFactor)
pure virtual

Set the diffuse factor for lighting.

Parameters
diffuseFactora float.
Returns
void.
void AbstractScene::setFarPlane ( float  farPlane)
pure virtual

Set the far plane of the camera.

Parameters
farPlanea float.
Returns
void.
void AbstractScene::setNearPlane ( float  nearPlane)
pure virtual

Set the near plane of the camera.

Parameters
nearPlanea float.
Returns
void.
void AbstractScene::setSpecularFactor ( float  specularFactor)
pure virtual

Set the specular factor for lighting.

Parameters
specularFactora float.
Returns
void.
void AbstractScene::update ( float  t)
pure virtual

A virtual member function that updates the scene (has to be overwritten).

Parameters
ta float.
Returns
void.

Implemented in Scene.


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