CamSim  0.0.0
A rasterization-based simulator for various types of cameras
List of all members
CamSim::Scene Class Reference

The Scene class. More...

Global scene data: materials

QList< Materialmaterials
 Global list of materials used in the scene. More...
 
int addMaterial (const Material &material)
 Convenience function to add a material. Returns its index. More...
 

Scene contents: light sources and objects

QList< Lightlights
 Light sources. More...
 
QList< AnimationlightAnimations
 Light source animations (list must have same size as lights list) More...
 
QList< Objectobjects
 Objects. More...
 
QList< AnimationobjectAnimations
 Object animations (list must have same size as objects list) More...
 
void addLight (const Light &light, const Animation &animation=Animation())
 Convenience function to add a light source and its animation. More...
 
void addObject (const Object &object, const Animation &animation=Animation())
 Convenience function to add an object and its animation. More...
 
 Scene ()
 Constructor. More...
 

Detailed Description

The Scene class.

Describes a scene to render (light sources and objects), suitable for OpenGL-based rendering

Constructor & Destructor Documentation

◆ Scene()

CamSim::Scene::Scene ( )

Constructor.

Member Function Documentation

◆ addLight()

void CamSim::Scene::addLight ( const Light light,
const Animation animation = Animation() 
)
inline

Convenience function to add a light source and its animation.

◆ addMaterial()

int CamSim::Scene::addMaterial ( const Material material)
inline

Convenience function to add a material. Returns its index.

◆ addObject()

void CamSim::Scene::addObject ( const Object object,
const Animation animation = Animation() 
)
inline

Convenience function to add an object and its animation.

Member Data Documentation

◆ lightAnimations

QList<Animation> CamSim::Scene::lightAnimations

Light source animations (list must have same size as lights list)

◆ lights

QList<Light> CamSim::Scene::lights

Light sources.

◆ materials

QList<Material> CamSim::Scene::materials

Global list of materials used in the scene.

◆ objectAnimations

QList<Animation> CamSim::Scene::objectAnimations

Object animations (list must have same size as objects list)

◆ objects

QList<Object> CamSim::Scene::objects

Objects.


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