Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3961 in orxonox.OLD for orxonox/branches/physics/src/util


Ignore:
Timestamp:
Apr 25, 2005, 6:15:02 PM (20 years ago)
Author:
patrick
Message:

orxonox/branches/physics: just implemented the class hirarchy of the physics engine

Location:
orxonox/branches/physics/src/util/physics
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/physics/src/util/physics/i_physics.cc

    r3954 r3961  
    1212
    1313   ### File Specific:
    14    main-programmer: ...
     14   main-programmer: Patrick Boenzli
    1515   co-programmer: ...
    1616*/
    1717
    18 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
     18#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_PHYSICS
    1919
    20 #include "proto_class.h"
     20#include "i_physics.h"
    2121
    22 #include "stdincl.h" // maybe
     22#include "stdincl.h"
    2323
    2424using namespace std;
     
    2727/**
    2828   \brief standard constructor
    29    \todo this constructor is not jet implemented - do it
    3029*/
    31 ProtoClass::ProtoClass ()
     30IPhysics::IPhysics ()
    3231{
    33    this->setClassName ("ProtoClass");
     32   this->setClassName ("IPhysics");
    3433}
    3534
     
    3938
    4039*/
    41 ProtoClass::~ProtoClass ()
     40IPhysics::~IPhysics ()
    4241{
    4342  // delete what has to be deleted here
    4443}
    45 
    46 /**
    47    \brief nonsense - delete this method
    48    \param realy nothing to give
    49    \returns true or false - probably nothing?
    50 
    51    this is just to show the doxygen abilities (this for example is an extension for a long comment)
    52 */
    53 bool ProtoClass::doNonSense (int nothing) {}
  • orxonox/branches/physics/src/util/physics/i_physics.h

    r3954 r3961  
    11/*!
    2     \file proto_class.h
    3     \brief Definition of the proto class template, used quickly start work
    4     \todo Example: this shows how to use simply add a Marker that here has to be done something.
    5 
    6     The Protoclass exists, to help you quikly getting the run for how to develop in orxonox.
    7     It is an example for the CODING-CONVENTION, and a starting-point for every class.
     2    \file i_physics.h
     3    \brief a physics interface
    84*/
    95
    10 #ifndef _PROTO_CLASS_H
    11 #define _PROTO_CLASS_H
     6#ifndef _I_PHYSICS_H
     7#define _I_PHYSICS_H
    128
    13 #include "what realy has to be included"
    149#include "base_object.h"
    1510
    16 // FORWARD DEFINITION \\
    17 class someClassWeNeed;
    1811
    1912
    20 /*class Test;*/ /* forward definition of class Test (without including it here!)*/
    21 
    22 //! A default class that aids you to start creating a new class
     13//! A Physics interface
    2314/**
    2415   here can be some longer description of this class
    2516*/
    26 class ProtoClass : public BaseObject {
     17class IPhysics : public BaseObject {
    2718
    2819 public:
    29   ProtoClass();
    30   virtual ~ProtoClass();
    31 
    32   bool doNonSense (int nothing);
     20  IPhysics();
     21  virtual ~IPhysics();
    3322
    3423 private:
    35   int nonSense;  //!< doxygen tag here like this for all the variables - delete this variable if you use this
     24
    3625
    3726};
    3827
    39 #endif /* _PROTO_CLASS_H */
     28#endif /* _I_PHYSICS_H */
  • orxonox/branches/physics/src/util/physics/physical_interaction.cc

    r3954 r3961  
    1212
    1313   ### File Specific:
    14    main-programmer: ...
     14   main-programmer: Patrick Boenzli
    1515   co-programmer: ...
    1616*/
    1717
    18 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
     18#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_PHYSICS
    1919
    20 #include "proto_class.h"
     20#include "physical_interaction.h"
    2121
    22 #include "stdincl.h" // maybe
     22#include "stdincl.h"
    2323
    2424using namespace std;
     
    2727/**
    2828   \brief standard constructor
    29    \todo this constructor is not jet implemented - do it
    3029*/
    31 ProtoClass::ProtoClass ()
     30PhysicalInteraction::PhysicalInteraction ()
    3231{
    33    this->setClassName ("ProtoClass");
     32   this->setClassName ("PhysicalInteraction");
    3433}
    3534
     
    3938
    4039*/
    41 ProtoClass::~ProtoClass ()
     40PhysicalInteraction::~PhysicalInteraction ()
    4241{
    4342  // delete what has to be deleted here
    4443}
    45 
    46 /**
    47    \brief nonsense - delete this method
    48    \param realy nothing to give
    49    \returns true or false - probably nothing?
    50 
    51    this is just to show the doxygen abilities (this for example is an extension for a long comment)
    52 */
    53 bool ProtoClass::doNonSense (int nothing) {}
  • orxonox/branches/physics/src/util/physics/physical_interaction.h

    r3954 r3961  
    88*/
    99
    10 #ifndef _PROTO_CLASS_H
    11 #define _PROTO_CLASS_H
     10#ifndef _PHYSICAL_INTERACTION_H
     11#define _PHYSICAL_INTERACTION_H
    1212
    13 #include "what realy has to be included"
     13
    1414#include "base_object.h"
    1515
    16 // FORWARD DEFINITION \\
    17 class someClassWeNeed;
    18 
    19 
    20 /*class Test;*/ /* forward definition of class Test (without including it here!)*/
    21 
    22 //! A default class that aids you to start creating a new class
     16//! An abstract definition of a physics relation
    2317/**
    2418   here can be some longer description of this class
    2519*/
    26 class ProtoClass : public BaseObject {
     20class PhysicalInteraction : public BaseObject {
    2721
    2822 public:
    29   ProtoClass();
    30   virtual ~ProtoClass();
    31 
    32   bool doNonSense (int nothing);
     23  PhysicalInteraction();
     24  virtual ~PhysicalInteraction();
    3325
    3426 private:
    35   int nonSense;  //!< doxygen tag here like this for all the variables - delete this variable if you use this
    3627
    3728};
    3829
    39 #endif /* _PROTO_CLASS_H */
     30#endif /* _PHYSICAL_INTERACTION_H */
  • orxonox/branches/physics/src/util/physics/physical_interaction_asym.cc

    r3954 r3961  
    1616*/
    1717
    18 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
     18#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_PHYSICS
    1919
    20 #include "proto_class.h"
     20#include "physical_interaction_asym.h"
    2121
    22 #include "stdincl.h" // maybe
     22#include "stdincl.h"
    2323
    2424using namespace std;
     
    2727/**
    2828   \brief standard constructor
    29    \todo this constructor is not jet implemented - do it
    3029*/
    31 ProtoClass::ProtoClass ()
     30PhysicalInteractionAsym::PhysicalInteractionAsym ()
    3231{
    33    this->setClassName ("ProtoClass");
     32   this->setClassName ("PhysicalInteractionAsym");
    3433}
    3534
     
    3938
    4039*/
    41 ProtoClass::~ProtoClass ()
     40PhysicalInteractionAsym::~PhysicalInteractionAsym ()
    4241{
    4342  // delete what has to be deleted here
    4443}
    45 
    46 /**
    47    \brief nonsense - delete this method
    48    \param realy nothing to give
    49    \returns true or false - probably nothing?
    50 
    51    this is just to show the doxygen abilities (this for example is an extension for a long comment)
    52 */
    53 bool ProtoClass::doNonSense (int nothing) {}
  • orxonox/branches/physics/src/util/physics/physical_interaction_asym.h

    r3954 r3961  
    11/*!
    2     \file proto_class.h
    3     \brief Definition of the proto class template, used quickly start work
    4     \todo Example: this shows how to use simply add a Marker that here has to be done something.
    5 
    6     The Protoclass exists, to help you quikly getting the run for how to develop in orxonox.
    7     It is an example for the CODING-CONVENTION, and a starting-point for every class.
     2    \file physical_interaction_asym.h
     3    \brief Definition a asymmertrical physical interaction like force field that (in our implementation)
     4    hast no reactio
    85*/
    96
    10 #ifndef _PROTO_CLASS_H
    11 #define _PROTO_CLASS_H
     7#ifndef _PHYSICAL_INTERACTION_ASYM_H
     8#define _PHYSICAL_INTERACTION_ASYM_H
    129
    13 #include "what realy has to be included"
    1410#include "base_object.h"
    1511
    16 // FORWARD DEFINITION \\
    17 class someClassWeNeed;
    1812
    19 
    20 /*class Test;*/ /* forward definition of class Test (without including it here!)*/
    21 
    22 //! A default class that aids you to start creating a new class
     13//! An asymmetrical force
    2314/**
    24    here can be some longer description of this class
     15   forces, that only work in one firection
    2516*/
    26 class ProtoClass : public BaseObject {
     17class PhysicalInteractionAsym : public BaseObject {
    2718
    2819 public:
    29   ProtoClass();
    30   virtual ~ProtoClass();
    31 
    32   bool doNonSense (int nothing);
     20  PhysicalInteractionAsym();
     21  virtual ~PhysicalInteractionAsym();
    3322
    3423 private:
    35   int nonSense;  //!< doxygen tag here like this for all the variables - delete this variable if you use this
    3624
    3725};
    3826
    39 #endif /* _PROTO_CLASS_H */
     27#endif /* _PHYSICAL_INTERACTION_ASYM_H */
  • orxonox/branches/physics/src/util/physics/physical_interaction_sym.cc

    r3954 r3961  
    1212
    1313   ### File Specific:
    14    main-programmer: ...
     14   main-programmer: Patrick Boenzli
    1515   co-programmer: ...
    1616*/
    1717
    18 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
     18#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_PHYSICS
    1919
    20 #include "proto_class.h"
     20#include "physical_interaction_sym.h"
    2121
    22 #include "stdincl.h" // maybe
     22#include "stdincl.h"
    2323
    2424using namespace std;
     
    2727/**
    2828   \brief standard constructor
    29    \todo this constructor is not jet implemented - do it
    3029*/
    31 ProtoClass::ProtoClass ()
     30PhysicalInteractionSym::PhysicalInteractionSym ()
    3231{
    33    this->setClassName ("ProtoClass");
     32   this->setClassName ("PhysicalInteractionSym");
    3433}
    3534
     
    3938
    4039*/
    41 ProtoClass::~ProtoClass ()
     40PhysicalInteractionSym::~PhysicalInteractionSym ()
    4241{
    4342  // delete what has to be deleted here
    4443}
    45 
    46 /**
    47    \brief nonsense - delete this method
    48    \param realy nothing to give
    49    \returns true or false - probably nothing?
    50 
    51    this is just to show the doxygen abilities (this for example is an extension for a long comment)
    52 */
    53 bool ProtoClass::doNonSense (int nothing) {}
  • orxonox/branches/physics/src/util/physics/physical_interaction_sym.h

    r3954 r3961  
    11/*!
    2     \file proto_class.h
    3     \brief Definition of the proto class template, used quickly start work
    4     \todo Example: this shows how to use simply add a Marker that here has to be done something.
    5 
    6     The Protoclass exists, to help you quikly getting the run for how to develop in orxonox.
    7     It is an example for the CODING-CONVENTION, and a starting-point for every class.
     2    \file physical_interaction_sym.h
     3    \brief this defines a symmetrical interaction like a spring force on both ends
    84*/
    95
    10 #ifndef _PROTO_CLASS_H
    11 #define _PROTO_CLASS_H
     6#ifndef _PHYSICAL_INTERACTION_SYM_H
     7#define _PHYSICAL_INTERACTION_SYM_H
    128
    13 #include "what realy has to be included"
    149#include "base_object.h"
    1510
    16 // FORWARD DEFINITION \\
    17 class someClassWeNeed;
     11
     12//! A symmetrical physical interaction
     13/**
     14   eg. this can be a spring
     15*/
     16class PhysicalInteractionSym : public BaseObject {
     17
     18 public:
     19  PhysicalInteractionSym();
     20  virtual ~PhysicalInteractionSym();
    1821
    1922
    20 /*class Test;*/ /* forward definition of class Test (without including it here!)*/
    21 
    22 //! A default class that aids you to start creating a new class
    23 /**
    24    here can be some longer description of this class
    25 */
    26 class ProtoClass : public BaseObject {
    27 
    28  public:
    29   ProtoClass();
    30   virtual ~ProtoClass();
    31 
    32   bool doNonSense (int nothing);
    33 
    3423 private:
    35   int nonSense;  //!< doxygen tag here like this for all the variables - delete this variable if you use this
    3624
    3725};
    3826
    39 #endif /* _PROTO_CLASS_H */
     27
     28#endif /* _PHYSICAL_INTERACTION_SYM_H */
Note: See TracChangeset for help on using the changeset viewer.