|
GPU-Accelerated Coverage
0.1.0
Compute coverage tours for known environment with articulated objects on GPU
|
Represents the animation of a scene object. More...
#include <Animation.h>
Public Types | |
| typedef std::vector< Channel * > | Channels |
Public Member Functions | |
| Animation (Scene *const scene, const aiAnimation *const animation, const size_t id) | |
| Constructor. More... | |
| virtual | ~Animation () |
| Destructor. | |
| void | toDot (FILE *dot) |
| Write Graphviz Dot node representing this animation to file for debugging. More... | |
| const size_t & | getId () const |
| Returns the unique ID of this animation. More... | |
| const std::string & | getName () const |
| Returns the name of this animation for logging. More... | |
| const size_t & | getStartFrame () const |
| Frame number where this animation starts. More... | |
| const size_t & | getEndFrame () const |
| Frame number where this animation ends. More... | |
| const size_t & | getNumFrames () const |
| Duration of this animation in frames. More... | |
| const Channels & | getChannels () const |
| Vector of Channel pointers that this animation influences. More... | |
| const double & | getDuration () const |
| Duration of this animation in seconds. More... | |
Protected Attributes | |
| const size_t | id |
| Unique ID, see getId(). | |
| const std::string | name |
| Name of this animation, see getName(). | |
| const double | duration |
| Duration of the animation in seconds. | |
| size_t | startFrame |
| Start frame of the animation. | |
| size_t | endFrame |
| End frame of the animation. | |
| size_t | numFrames |
| Number of frames of the animation. | |
| Channels | channels |
| Channels manipulated by this animation. | |
Represents the animation of a scene object.
This class is our equivalent of Assimp's aiAnimation class.
| gpu_coverage::Animation::Animation | ( | Scene *const | scene, |
| const aiAnimation *const | animation, | ||
| const size_t | id | ||
| ) |
Constructor.
| [in] | scene | Scene that contains this animation. |
| [in] | animation | The Assimp aiAnimation for creating this animation. |
| [in] | id | Unique ID of this animation. |
|
inline |
Vector of Channel pointers that this animation influences.
|
inline |
Duration of this animation in seconds.
|
inline |
Frame number where this animation ends.
|
inline |
Returns the unique ID of this animation.
|
inline |
Returns the name of this animation for logging.
If available, the name included in the input file read by Assimp is used, otherwise a generic string is constructed.
|
inline |
Duration of this animation in frames.
|
inline |
Frame number where this animation starts.
| void gpu_coverage::Animation::toDot | ( | FILE * | dot | ) |
Write Graphviz Dot node representing this animation to file for debugging.
| [in] | dot | Output Dot file. |
1.8.11