ArborisViewer is 3d viewer based on OpenSceneGraph (OSG). It reads trajectories from HDF5 files and animates the scene accordingly.
The project is currently ABANDONED in favor of dænim. If you came here looking for the viewer to use with arboris, it is dænim.
Prerequisites:
sudo aptitude install cmake sudo aptitude install libopenscenegraph-dev \ libboost-program-options-dev zlib1g-dev
Build:
cd ArborisViewer mkdir build cd build cmake .. make
- Test::
- bin/test_avreader bin/arborisviewer ../data/simplearm.h5 /
cmake: | Helper files for cmake |
---|---|
data: | Example data, useful for tests |
hdf5: | The vanilla HDF5 library, downloaded from their website |
src: | The source code of the libray, the main executable and the tests |
szip: | The vanilla szip library |
This software does 3 things:
- get the trajectories data
- setup a 3d scene
- animate the scene
We define two pure virtual reader classes: RandomReader and LastReader. The former can acces the position at any point in time, the later can only access the latest position.
The two classes H5RandomReader and H5LastReader get their data from HDF5 files and implement these interfaces.
It's the SceneFactory class responsability to set up the scene. Its init_scene method returns a SceneTransforms object which has mappings between scene object names and the corresponding OSG transforms
The main executable (arborisviewer) intializes a scene, a reader then updates the scene with the data it gets from the reader.
- CMake to generate the build toolchain (compatible with Make, Visual C++, Eclipse CDT, Code::Blocks, etc.)
- Doxygen to generate the documentation,
- Boost.Program_options library to parse options from configuration files and/or command-line
- HDF5 library to store numerical data oin a portable way. The doc for the C++ version is sparse, but is there: http://www.hdfgroup.org/HDF5/doc/cpplus_RM/