Klamp't  0.8.1
three.js.h
1 #ifndef IO_THREE_JS_H
2 #define IO_THREE_JS_H
3 
5 #include <Klampt/Simulation/WorldSimulation.h>
6 #include <KrisLibrary/utils/AnyCollection.h>
7 
10 
15 void ThreeJSExport(const RobotWorld& world,AnyCollection& out);
16 void ThreeJSExportTransforms(const RobotWorld& world,AnyCollection& out);
17 
22 void ThreeJSExport(WorldSimulation& sim,AnyCollection& out);
23 void ThreeJSExportTransforms(WorldSimulation& sim,AnyCollection& out);
24 
27 void ThreeJSExport(const Robot& robot,AnyCollection& out);
28 void ThreeJSExportTransforms(const Robot& robot,AnyCollection& out);
29 
32 void ThreeJSExport(const RigidObject& object,AnyCollection& out);
33 void ThreeJSExportTransforms(const RigidObject& object,AnyCollection& out);
34 
37 void ThreeJSExport(const Terrain& terrain,AnyCollection& out);
38 void ThreeJSExportTransforms(const Terrain& terrain,AnyCollection& out);
39 
42 void ThreeJSExportGeometry(const ManagedGeometry& geom,AnyCollection& out);
45 void ThreeJSExportAppearance(const ManagedGeometry& geom,AnyCollection& out);
47 void ThreeJSExport(const Geometry::AnyCollisionGeometry3D& geom,AnyCollection& out);
49 void ThreeJSExport(const GLDraw::GeometryAppearance& app,AnyCollection& out);
50 
53 #endif
The main robot type used in RobotSim.
Definition: Robot.h:79
void ThreeJSExport(const RobotWorld &world, AnyCollection &out)
void ThreeJSExportAppearance(const ManagedGeometry &geom, AnyCollection &out)
The main world class containing multiple robots, objects, and static geometries (terrains). Lights and other viewport information may also be stored here.
Definition: World.h:20
A model of a static terrain with known friction.
Definition: Terrain.h:13
A "smart" geometry loading class that caches previous geometries, and does not re-load or re-initiali...
Definition: ManagedGeometry.h:37
void ThreeJSExportGeometry(const ManagedGeometry &geom, AnyCollection &out)
A (static) rigid object that may be manipulated.
Definition: RigidObject.h:13
A physical simulator for a RobotWorld.
Definition: WorldSimulation.h:67