LibreOffice Module slideshow (master) 1
|
Classes | |
class | box2DBody |
Class that manages a single box2D Body. More... | |
struct | Box2DDynamicUpdateInformation |
Holds required information to perform an update to box2d body of a shape that was altered by an animation effect. More... | |
class | box2DWorld |
Class that manages the Box2D World. More... | |
Typedefs | |
typedef ::std::shared_ptr< box2DWorld > | Box2DWorldSharedPtr |
typedef std::shared_ptr< box2DBody > | Box2DBodySharedPtr |
Functions | |
Box2DBodySharedPtr | makeBodyDynamic (const Box2DBodySharedPtr &pBox2DBody) |
Make the Box2D body a dynamic one. More... | |
Box2DBodySharedPtr | makeBodyStatic (const Box2DBodySharedPtr &pBox2DBody) |
Make the Box2D body a static one. More... | |
typedef std::shared_ptr<box2DBody> box2d::utils::Box2DBodySharedPtr |
Definition at line 32 of file box2dtools.hxx.
typedef::std::shared_ptr< box2DWorld > box2d::utils::Box2DWorldSharedPtr |
Definition at line 95 of file slideshowimpl.cxx.
Enumerator | |
---|---|
BOX2D_STATIC_BODY | |
BOX2D_KINEMATIC_BODY | |
BOX2D_DYNAMIC_BODY |
Definition at line 34 of file box2dtools.hxx.
Enumerator | |
---|---|
BOX2D_UPDATE_POSITION_CHANGE | |
BOX2D_UPDATE_POSITION | |
BOX2D_UPDATE_ANGLE | |
BOX2D_UPDATE_SIZE | |
BOX2D_UPDATE_VISIBILITY | |
BOX2D_UPDATE_LINEAR_VELOCITY | |
BOX2D_UPDATE_ANGULAR_VELOCITY |
Definition at line 41 of file box2dtools.hxx.
Box2DBodySharedPtr box2d::utils::makeBodyDynamic | ( | const Box2DBodySharedPtr & | pBox2DBody | ) |
Make the Box2D body a dynamic one.
A dynamic body will be affected by other bodies and the gravity.
pBox2DBody | Pointer to the Box2D body |
Definition at line 660 of file box2dtools.cxx.
References BOX2D_DYNAMIC_BODY.
Referenced by box2d::utils::box2DWorld::makeShapeDynamic().
Box2DBodySharedPtr box2d::utils::makeBodyStatic | ( | const Box2DBodySharedPtr & | pBox2DBody | ) |
Make the Box2D body a static one.
A static body will not be affected by other bodies and the gravity.
pBox2DBody | Pointer to the Box2D body |
Definition at line 676 of file box2dtools.cxx.
References BOX2D_STATIC_BODY.
Referenced by box2d::utils::box2DWorld::alertPhysicsAnimationEnd(), and box2d::utils::box2DWorld::makeShapeStatic().