|
@@ -49,40 +49,112 @@ class Scene
|
|
|
|
|
|
|
|
void updateAllWorldStuff(float prevUpdateTime, float crntTime);
|
|
void updateAllWorldStuff(float prevUpdateTime, float crntTime);
|
|
|
void updateAllControllers();
|
|
void updateAllControllers();
|
|
|
- void doVisibilityTests(Camera& cam) {visibilityTester->test(cam);}
|
|
|
|
|
|
|
+
|
|
|
|
|
+ void doVisibilityTests(Camera& cam)
|
|
|
|
|
+ {
|
|
|
|
|
+ visibilityTester->test(cam);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
/// @name Accessors
|
|
/// @name Accessors
|
|
|
/// @{
|
|
/// @{
|
|
|
- const Vec3& getAmbientColor() const {return ambientCol;}
|
|
|
|
|
- Vec3& getAmbientColor() {return ambientCol;}
|
|
|
|
|
- void setAmbientColor(const Vec3& x) {ambientCol = x;}
|
|
|
|
|
|
|
+ const Vec3& getAmbientColor() const
|
|
|
|
|
+ {
|
|
|
|
|
+ return ambientCol;
|
|
|
|
|
+ }
|
|
|
|
|
+ Vec3& getAmbientColor()
|
|
|
|
|
+ {
|
|
|
|
|
+ return ambientCol;
|
|
|
|
|
+ }
|
|
|
|
|
+ void setAmbientColor(const Vec3& x)
|
|
|
|
|
+ {
|
|
|
|
|
+ ambientCol = x;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- PhysWorld& getPhysPhysWorld();
|
|
|
|
|
- const PhysWorld& getPhysPhysWorld() const;
|
|
|
|
|
|
|
+ PhysWorld& getPhysWorld()
|
|
|
|
|
+ {
|
|
|
|
|
+ return *physPhysWorld;
|
|
|
|
|
+ }
|
|
|
|
|
+ const PhysWorld& getPhysWorld() const
|
|
|
|
|
+ {
|
|
|
|
|
+ return *physPhysWorld;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- const VisibilityTester& getVisibilityTester() const;
|
|
|
|
|
|
|
+ const VisibilityTester& getVisibilityTester() const
|
|
|
|
|
+ {
|
|
|
|
|
+ return *visibilityTester;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- Types<SceneNode>::ConstRange getAllNodes() const;
|
|
|
|
|
- Types<SceneNode>::MutableRange getAllNodes();
|
|
|
|
|
|
|
+ Types<SceneNode>::ConstRange getAllNodes() const
|
|
|
|
|
+ {
|
|
|
|
|
+ return Types<SceneNode>::ConstRange(nodes.begin(), nodes.end());
|
|
|
|
|
+ }
|
|
|
|
|
+ Types<SceneNode>::MutableRange getAllNodes()
|
|
|
|
|
+ {
|
|
|
|
|
+ return Types<SceneNode>::MutableRange(nodes.begin(), nodes.end());
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- Types<Light>::ConstRange getLights() const;
|
|
|
|
|
- Types<Light>::MutableRange getLights();
|
|
|
|
|
|
|
+ Types<Light>::ConstRange getLights() const
|
|
|
|
|
+ {
|
|
|
|
|
+ return Types<Light>::ConstRange(lights.begin(), lights.end());
|
|
|
|
|
+ }
|
|
|
|
|
+ Types<Light>::MutableRange getLights()
|
|
|
|
|
+ {
|
|
|
|
|
+ return Types<Light>::MutableRange(lights.begin(), lights.end());
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- Types<Camera>::ConstRange getCameras() const;
|
|
|
|
|
- Types<Camera>::MutableRange getCameras();
|
|
|
|
|
|
|
+ Types<Camera>::ConstRange getCameras() const
|
|
|
|
|
+ {
|
|
|
|
|
+ return Types<Camera>::ConstRange(cams.begin(), cams.end());
|
|
|
|
|
+ }
|
|
|
|
|
+ Types<Camera>::MutableRange getCameras()
|
|
|
|
|
+ {
|
|
|
|
|
+ return Types<Camera>::MutableRange(cams.begin(), cams.end());
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- Types<ParticleEmitterNode>::ConstRange getParticleEmitterNodes() const;
|
|
|
|
|
- Types<ParticleEmitterNode>::MutableRange getParticleEmitterNodes();
|
|
|
|
|
|
|
+ Types<ParticleEmitterNode>::ConstRange getParticleEmitterNodes() const
|
|
|
|
|
+ {
|
|
|
|
|
+ return Types<ParticleEmitterNode>::ConstRange(
|
|
|
|
|
+ particleEmitterNodes.begin(),
|
|
|
|
|
+ particleEmitterNodes.end());
|
|
|
|
|
+ }
|
|
|
|
|
+ Types<ParticleEmitterNode>::MutableRange getParticleEmitterNodes()
|
|
|
|
|
+ {
|
|
|
|
|
+ return Types<ParticleEmitterNode>::MutableRange(
|
|
|
|
|
+ particleEmitterNodes.begin(),
|
|
|
|
|
+ particleEmitterNodes.end());
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- Types<ModelNode>::ConstRange getModelNodes() const;
|
|
|
|
|
- Types<ModelNode>::MutableRange getModelNodes();
|
|
|
|
|
|
|
|
|
|
- Types<SkinNode>::ConstRange getSkinNodes() const;
|
|
|
|
|
- Types<SkinNode>::MutableRange getSkinNodes();
|
|
|
|
|
|
|
+ Types<ModelNode>::ConstRange getModelNodes() const
|
|
|
|
|
+ {
|
|
|
|
|
+ return Types<ModelNode>::ConstRange(modelNodes.begin(),
|
|
|
|
|
+ modelNodes.end());
|
|
|
|
|
+ }
|
|
|
|
|
+ Types<ModelNode>::MutableRange getModelNodes()
|
|
|
|
|
+ {
|
|
|
|
|
+ return Types<ModelNode>::MutableRange(modelNodes.begin(),
|
|
|
|
|
+ modelNodes.end());
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ Types<SkinNode>::ConstRange getSkinNodes() const
|
|
|
|
|
+ {
|
|
|
|
|
+ return Types<SkinNode>::ConstRange(skinNodes.begin(),
|
|
|
|
|
+ skinNodes.end());
|
|
|
|
|
+ }
|
|
|
|
|
+ Types<SkinNode>::MutableRange getSkinNodes()
|
|
|
|
|
+ {
|
|
|
|
|
+ return Types<SkinNode>::MutableRange(skinNodes.begin(),
|
|
|
|
|
+ skinNodes.end());
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
const Types<Controller>::Container& getControllers() const
|
|
const Types<Controller>::Container& getControllers() const
|
|
|
- {return controllers;}
|
|
|
|
|
- Types<Controller>::Container& getControllers() {return controllers;}
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ return controllers;
|
|
|
|
|
+ }
|
|
|
|
|
+ Types<Controller>::Container& getControllers()
|
|
|
|
|
+ {
|
|
|
|
|
+ return controllers;
|
|
|
|
|
+ }
|
|
|
/// @}
|
|
/// @}
|
|
|
|
|
|
|
|
private:
|
|
private:
|