~robot3d-team/robot3d/trunk

« back to all changes in this revision

Viewing changes to inc/srFactory/bodyFactory.h

  • Committer: Anne van Rossum
  • Date: 2010-08-10 15:58:55 UTC
  • Revision ID: anne@gamix-20100810155855-kve7x2vwouagdij9
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef BODYFACTORY_H_
 
2
#define BODYFACTORY_H_
 
3
 
 
4
#include <srCore/export.h>
 
5
#include <srCore/body/bodyBase.h>
 
6
#include <srCore/robot/robotActorBase.h>
 
7
 
 
8
namespace srCore {
 
9
 
 
10
/**
 
11
 * Body Type Enumeration
 
12
 */
 
13
enum bodytype
 
14
{
 
15
//      FRONT_BODY,
 
16
//      BACK_BODY,
 
17
//      LINK_BODY,
 
18
        WHEEL_BODY,
 
19
//      SYMB01_BODY,
 
20
//      SYMB02_BODY,
 
21
 
 
22
        KIT_1,
 
23
        KIT_2,
 
24
        KIT_SCREW,
 
25
 
 
26
//      LEO_BODY
 
27
};
 
28
 
 
29
//! Body Factory Class
 
30
class BodyFactory       // : public myFactory
 
31
{
 
32
public:
 
33
 
 
34
 
 
35
        //! Creates a body
 
36
        /*! @param type                                         type of the body
 
37
         *  @param id                                           a 16bit id, used to set the colliding bit parameter.
 
38
         *      @param x, y, z                                  the position of the hinge in the world coordinate system.
 
39
         *  @param heading, pitch, roll         the orientation of the axis of the hinge in the world coordinate system.
 
40
         *  @param Scene                                        the scene in which the body should be placed.
 
41
         *  @param osgGroup                                     using this group, another scene will be created that will be used by sensors
 
42
         *
 
43
         */
 
44
        static dtCore::RefPtr<BodyBase> createBody(bodytype type, RobotActorBase* robot,
 
45
                        float x, float y, float z,
 
46
                        float heading, float pitch, float roll);
 
47
};
 
48
}
 
49
 
 
50
#endif /*BODYFACTORY_H_*/