LibreOffice Module slideshow (master) 1
Classes | Typedefs | Enumerations | Functions
box2d::utils Namespace Reference

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< box2DWorldBox2DWorldSharedPtr
 
typedef std::shared_ptr< box2DBodyBox2DBodySharedPtr
 

Enumerations

enum  box2DBodyType {
  BOX2D_STATIC_BODY = 0 ,
  BOX2D_KINEMATIC_BODY ,
  BOX2D_DYNAMIC_BODY
}
 
enum  box2DNonsimulatedShapeUpdateType {
  BOX2D_UPDATE_POSITION_CHANGE ,
  BOX2D_UPDATE_POSITION ,
  BOX2D_UPDATE_ANGLE ,
  BOX2D_UPDATE_SIZE ,
  BOX2D_UPDATE_VISIBILITY ,
  BOX2D_UPDATE_LINEAR_VELOCITY ,
  BOX2D_UPDATE_ANGULAR_VELOCITY
}
 

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 Documentation

◆ Box2DBodySharedPtr

typedef std::shared_ptr<box2DBody> box2d::utils::Box2DBodySharedPtr

Definition at line 32 of file box2dtools.hxx.

◆ Box2DWorldSharedPtr

typedef::std::shared_ptr< box2DWorld > box2d::utils::Box2DWorldSharedPtr

Definition at line 95 of file slideshowimpl.cxx.

Enumeration Type Documentation

◆ box2DBodyType

Enumerator
BOX2D_STATIC_BODY 
BOX2D_KINEMATIC_BODY 
BOX2D_DYNAMIC_BODY 

Definition at line 34 of file box2dtools.hxx.

◆ box2DNonsimulatedShapeUpdateType

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.

Function Documentation

◆ makeBodyDynamic()

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.

Parameters
pBox2DBodyPointer to the Box2D body

Definition at line 660 of file box2dtools.cxx.

References BOX2D_DYNAMIC_BODY.

Referenced by box2d::utils::box2DWorld::makeShapeDynamic().

◆ makeBodyStatic()

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.

Parameters
pBox2DBodyPointer 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().