Blender  V3.3
Classes | Public Types | Public Member Functions | Friends | List of all members
iTaSC::Scene Class Reference

#include <Scene.hpp>

Public Types

enum  SceneParam { MIN_TIMESTEP = 0 , MAX_TIMESTEP , COUNT }
 

Public Member Functions

 Scene ()
 
virtual ~Scene ()
 
bool addObject (const std::string &name, Object *object, UncontrolledObject *base=&Object::world, const std::string &baseFrame="")
 
bool addConstraintSet (const std::string &name, ConstraintSet *task, const std::string &object1, const std::string &object2, const std::string &ee1="", const std::string &ee2="")
 
bool addSolver (Solver *_solver)
 
bool addCache (Cache *_cache)
 
bool initialize ()
 
bool update (double timestamp, double timestep, unsigned int numsubstep=1, bool reiterate=false, bool cache=true, bool interpolate=true)
 
bool setParam (SceneParam paramId, double value)
 

Friends

class SceneLock
 

Detailed Description

Definition at line 23 of file Scene.hpp.

Member Enumeration Documentation

◆ SceneParam

enum iTaSC::Scene::SceneParam
Enumerator
MIN_TIMESTEP 
MAX_TIMESTEP 
COUNT 

Definition at line 26 of file Scene.hpp.

Constructor & Destructor Documentation

◆ Scene()

Scene::Scene ( )

Definition at line 52 of file Scene.cpp.

◆ ~Scene()

Scene::~Scene ( )
virtual

Definition at line 82 of file Scene.cpp.

Member Function Documentation

◆ addCache()

bool Scene::addCache ( Cache _cache)

Definition at line 222 of file Scene.cpp.

References NULL.

◆ addConstraintSet()

bool Scene::addConstraintSet ( const std::string &  name,
ConstraintSet task,
const std::string &  object1,
const std::string &  object2,
const std::string &  ee1 = "",
const std::string &  ee2 = "" 
)

Definition at line 180 of file Scene.cpp.

References result, and blender::compositor::task.

◆ addObject()

bool Scene::addObject ( const std::string &  name,
Object object,
UncontrolledObject base = &Object::world,
const std::string &  baseFrame = "" 
)

◆ addSolver()

bool Scene::addSolver ( Solver _solver)

Definition at line 212 of file Scene.cpp.

References NULL.

◆ initialize()

bool Scene::initialize ( void  )

Definition at line 232 of file Scene.cpp.

References count, e_zero_matrix, e_zero_vector, iTaSC::Solver::init(), NULL, iTaSC::project(), and result.

◆ setParam()

bool Scene::setParam ( SceneParam  paramId,
double  value 
)

Definition at line 96 of file Scene.cpp.

References MAX_TIMESTEP, and MIN_TIMESTEP.

◆ update()

bool Scene::update ( double  timestamp,
double  timestep,
unsigned int  numsubstep = 1,
bool  reiterate = false,
bool  cache = true,
bool  interpolate = true 
)

Friends And Related Function Documentation

◆ SceneLock

friend class SceneLock
friend

Definition at line 24 of file Scene.hpp.


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