Visualize a description and the corresponding data.
More...
#include <bbb_visualizer.h>
|
| Visualizer (const Description &description, const Data &data, const Perspective_camera &camera, const Activity_library &library) |
| Construct a visualizer with the given description, data, and camera. More...
|
|
| Visualizer (const Description &description, const Data &data, const Activity_library &library) |
| Construct a visualizer with the given description and data, using an overhead view of the scene. More...
|
|
template<class InputIterator > |
void | set_frame_images (InputIterator first, InputIterator last) |
| Set frame images from files. More...
|
|
void | set_alternative_camera (const Perspective_camera &cam) |
| Set an overhead view. More...
|
|
void | set_overhead_view () |
| Set an overhead view. More...
|
|
void | clear_alternative_camera () |
| Return to the scene's camera. More...
|
|
void | resize (size_t width, size_t height) |
| Resize this viewer. More...
|
|
void | set_frame (size_t f) |
| Set the current frame to the given value. More...
|
|
void | advance_frame (size_t df=1) |
| Advance the current frame by the given value. More...
|
|
void | rewind_frame (size_t df=1) |
| Rewind (move backwards) the current frame by the given value. More...
|
|
template<class Func > |
void | set_key_callback (const Func &cb) |
| Set the key handling callback. More...
|
|
void | draw_images (bool di) |
|
double | width () const |
| Get this viewer's width. More...
|
|
double | height () const |
| Get this viewer's height. More...
|
|
Visualize a description and the corresponding data.
Construct a visualizer with the given description, data, and camera.
Construct a visualizer with the given description and data, using an overhead view of the scene.
void kjb::bbb::Visualizer::advance_frame |
( |
size_t |
df = 1 | ) |
|
|
inline |
Advance the current frame by the given value.
void Visualizer::clear_alternative_camera |
( |
| ) |
|
Return to the scene's camera.
void Visualizer::draw_images |
( |
bool |
di | ) |
|
Set whether or not the images are rendered in the background.
double kjb::bbb::Visualizer::height |
( |
| ) |
const |
|
inline |
Get this viewer's height.
void kjb::bbb::Visualizer::resize |
( |
size_t |
width, |
|
|
size_t |
height |
|
) |
| |
|
inline |
void kjb::bbb::Visualizer::rewind_frame |
( |
size_t |
df = 1 | ) |
|
|
inline |
Rewind (move backwards) the current frame by the given value.
void kjb::bbb::Visualizer::set_frame |
( |
size_t |
f | ) |
|
|
inline |
Set the current frame to the given value.
template<class InputIterator >
void kjb::bbb::Visualizer::set_frame_images |
( |
InputIterator |
first, |
|
|
InputIterator |
last |
|
) |
| |
|
inline |
Set frame images from files.
template<class Func >
void kjb::bbb::Visualizer::set_key_callback |
( |
const Func & |
cb | ) |
|
|
inline |
Set the key handling callback.
void Visualizer::set_overhead_view |
( |
| ) |
|
double kjb::bbb::Visualizer::width |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: