
#include <scene.h>
Public Methods | |
| Scene (Problem *problem, string path) | |
| Scene must be initialized with the Problem that was passed to the planner. | |
| virtual | ~Scene () | 
| Empty destructor. | |
| void | SetProblem (Problem *P) | 
| A method for changing the associated Problem. | |
| virtual MSLVector | StateToSceneConfiguration (const MSLVector &x) | 
| Convert the state into configurations for each body (a long MSLVector). | |
| virtual MSLVector | InterpolatedSceneConfiguration (const MSLVector &x1, const MSLVector &x2, const double &a) | 
| Interpolate the states; convert the result to a SceneConfiguratrion. | |
Public Attributes | |
| string | FilePath | 
| A common filepath. | |
| int | GeomDim | 
| The geometry dimension, 2 or 3. | |
| int | NumBodies | 
| The number of bodies in the scene. | |
| int | SceneConfigurationDim | 
| Total degrees of freedom of the scene. | |
| MSLVector | LowerWorld | 
| The smallest x,y,z world coordinates for the environment. | |
| MSLVector | UpperWorld | 
| The largest x,y,z world coordinated for the environment. | |
| MSLVector | GlobalCameraPosition | 
| The location of the default camera in x,y,z. | |
| MSLVector | GlobalCameraDirection | 
| The direction the default camera is pointing with respect to the model. | |
| MSLVector | GlobalCameraZenith | 
| The up direction of the default camera. | |
| MSLVector | AttachedCameraPosition | 
| The location of the body-attached camera in x,y,z. | |
| MSLVector | AttachedCameraDirection | 
| The direction the body-attached camera is pointing. | |
| MSLVector | AttachedCameraZenith | 
| The up direction of the body-attached camera. | |
| int | AttachedCameraBody | 
| The index of the body to which the camera is attached (default = 0). | |
Protected Attributes | |
| Problem* | P | 
| The Problem instance used by the planner/solver. | |
This is an interface class that computes configurations of all bodies to be displayed by a rendering method. Currently, configuration information is passed through an instance of Problem. Thus, the base class for Scene is simply a wrapper to Problem.
      
  | 
  
| 
 Scene must be initialized with the Problem that was passed to the planner. 
  | 
  
      
  | 
  
| 
 Empty destructor. 
  | 
  
      
  | 
  
| 
 Interpolate the states; convert the result to a SceneConfiguratrion. 
  | 
  
      
  | 
  
| 
 A method for changing the associated Problem. 
  | 
  
      
  | 
  
| 
 Convert the state into configurations for each body (a long MSLVector). 
  | 
  
      
  | 
  
| 
 The index of the body to which the camera is attached (default = 0). 
  | 
  
      
  | 
  
| 
 The direction the body-attached camera is pointing. 
  | 
  
      
  | 
  
| 
 The location of the body-attached camera in x,y,z. 
  | 
  
      
  | 
  
| 
 The up direction of the body-attached camera. 
  | 
  
      
  | 
  
| 
 A common filepath. 
  | 
  
      
  | 
  
| 
 The geometry dimension, 2 or 3. 
  | 
  
      
  | 
  
| 
 The direction the default camera is pointing with respect to the model. 
  | 
  
      
  | 
  
| 
 The location of the default camera in x,y,z. 
  | 
  
      
  | 
  
| 
 The up direction of the default camera. 
  | 
  
      
  | 
  
| 
 The smallest x,y,z world coordinates for the environment. 
  | 
  
      
  | 
  
| 
 The number of bodies in the scene. 
  | 
  
      
  | 
  
| 
 The Problem instance used by the planner/solver. 
  | 
  
      
  | 
  
| 
 Total degrees of freedom of the scene. 
  | 
  
      
  | 
  
| 
 The largest x,y,z world coordinated for the environment. 
  |