Changeset 3961 in orxonox.OLD for orxonox/branches/physics/src/util
- Timestamp:
- Apr 25, 2005, 6:15:02 PM (20 years ago)
- 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 12 12 13 13 ### File Specific: 14 main-programmer: ...14 main-programmer: Patrick Boenzli 15 15 co-programmer: ... 16 16 */ 17 17 18 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ WORLD_ENTITY18 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_PHYSICS 19 19 20 #include " proto_class.h"20 #include "i_physics.h" 21 21 22 #include "stdincl.h" // maybe22 #include "stdincl.h" 23 23 24 24 using namespace std; … … 27 27 /** 28 28 \brief standard constructor 29 \todo this constructor is not jet implemented - do it30 29 */ 31 ProtoClass::ProtoClass ()30 IPhysics::IPhysics () 32 31 { 33 this->setClassName (" ProtoClass");32 this->setClassName ("IPhysics"); 34 33 } 35 34 … … 39 38 40 39 */ 41 ProtoClass::~ProtoClass ()40 IPhysics::~IPhysics () 42 41 { 43 42 // delete what has to be deleted here 44 43 } 45 46 /**47 \brief nonsense - delete this method48 \param realy nothing to give49 \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 1 1 /*! 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 8 4 */ 9 5 10 #ifndef _ PROTO_CLASS_H11 #define _ PROTO_CLASS_H6 #ifndef _I_PHYSICS_H 7 #define _I_PHYSICS_H 12 8 13 #include "what realy has to be included"14 9 #include "base_object.h" 15 10 16 // FORWARD DEFINITION \\17 class someClassWeNeed;18 11 19 12 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 23 14 /** 24 15 here can be some longer description of this class 25 16 */ 26 class ProtoClass : public BaseObject {17 class IPhysics : public BaseObject { 27 18 28 19 public: 29 ProtoClass(); 30 virtual ~ProtoClass(); 31 32 bool doNonSense (int nothing); 20 IPhysics(); 21 virtual ~IPhysics(); 33 22 34 23 private: 35 int nonSense; //!< doxygen tag here like this for all the variables - delete this variable if you use this 24 36 25 37 26 }; 38 27 39 #endif /* _ PROTO_CLASS_H */28 #endif /* _I_PHYSICS_H */ -
orxonox/branches/physics/src/util/physics/physical_interaction.cc
r3954 r3961 12 12 13 13 ### File Specific: 14 main-programmer: ...14 main-programmer: Patrick Boenzli 15 15 co-programmer: ... 16 16 */ 17 17 18 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ WORLD_ENTITY18 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_PHYSICS 19 19 20 #include "p roto_class.h"20 #include "physical_interaction.h" 21 21 22 #include "stdincl.h" // maybe22 #include "stdincl.h" 23 23 24 24 using namespace std; … … 27 27 /** 28 28 \brief standard constructor 29 \todo this constructor is not jet implemented - do it30 29 */ 31 P rotoClass::ProtoClass()30 PhysicalInteraction::PhysicalInteraction () 32 31 { 33 this->setClassName ("P rotoClass");32 this->setClassName ("PhysicalInteraction"); 34 33 } 35 34 … … 39 38 40 39 */ 41 P rotoClass::~ProtoClass()40 PhysicalInteraction::~PhysicalInteraction () 42 41 { 43 42 // delete what has to be deleted here 44 43 } 45 46 /**47 \brief nonsense - delete this method48 \param realy nothing to give49 \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 8 8 */ 9 9 10 #ifndef _P ROTO_CLASS_H11 #define _P ROTO_CLASS_H10 #ifndef _PHYSICAL_INTERACTION_H 11 #define _PHYSICAL_INTERACTION_H 12 12 13 #include "what realy has to be included" 13 14 14 #include "base_object.h" 15 15 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 23 17 /** 24 18 here can be some longer description of this class 25 19 */ 26 class P rotoClass: public BaseObject {20 class PhysicalInteraction : public BaseObject { 27 21 28 22 public: 29 ProtoClass(); 30 virtual ~ProtoClass(); 31 32 bool doNonSense (int nothing); 23 PhysicalInteraction(); 24 virtual ~PhysicalInteraction(); 33 25 34 26 private: 35 int nonSense; //!< doxygen tag here like this for all the variables - delete this variable if you use this36 27 37 28 }; 38 29 39 #endif /* _P ROTO_CLASS_H */30 #endif /* _PHYSICAL_INTERACTION_H */ -
orxonox/branches/physics/src/util/physics/physical_interaction_asym.cc
r3954 r3961 16 16 */ 17 17 18 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ WORLD_ENTITY18 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_PHYSICS 19 19 20 #include "p roto_class.h"20 #include "physical_interaction_asym.h" 21 21 22 #include "stdincl.h" // maybe22 #include "stdincl.h" 23 23 24 24 using namespace std; … … 27 27 /** 28 28 \brief standard constructor 29 \todo this constructor is not jet implemented - do it30 29 */ 31 P rotoClass::ProtoClass()30 PhysicalInteractionAsym::PhysicalInteractionAsym () 32 31 { 33 this->setClassName ("P rotoClass");32 this->setClassName ("PhysicalInteractionAsym"); 34 33 } 35 34 … … 39 38 40 39 */ 41 P rotoClass::~ProtoClass()40 PhysicalInteractionAsym::~PhysicalInteractionAsym () 42 41 { 43 42 // delete what has to be deleted here 44 43 } 45 46 /**47 \brief nonsense - delete this method48 \param realy nothing to give49 \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 1 1 /*! 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 8 5 */ 9 6 10 #ifndef _P ROTO_CLASS_H11 #define _P ROTO_CLASS_H7 #ifndef _PHYSICAL_INTERACTION_ASYM_H 8 #define _PHYSICAL_INTERACTION_ASYM_H 12 9 13 #include "what realy has to be included"14 10 #include "base_object.h" 15 11 16 // FORWARD DEFINITION \\17 class someClassWeNeed;18 12 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 23 14 /** 24 here can be some longer description of this class15 forces, that only work in one firection 25 16 */ 26 class P rotoClass: public BaseObject {17 class PhysicalInteractionAsym : public BaseObject { 27 18 28 19 public: 29 ProtoClass(); 30 virtual ~ProtoClass(); 31 32 bool doNonSense (int nothing); 20 PhysicalInteractionAsym(); 21 virtual ~PhysicalInteractionAsym(); 33 22 34 23 private: 35 int nonSense; //!< doxygen tag here like this for all the variables - delete this variable if you use this36 24 37 25 }; 38 26 39 #endif /* _P ROTO_CLASS_H */27 #endif /* _PHYSICAL_INTERACTION_ASYM_H */ -
orxonox/branches/physics/src/util/physics/physical_interaction_sym.cc
r3954 r3961 12 12 13 13 ### File Specific: 14 main-programmer: ...14 main-programmer: Patrick Boenzli 15 15 co-programmer: ... 16 16 */ 17 17 18 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ WORLD_ENTITY18 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_PHYSICS 19 19 20 #include "p roto_class.h"20 #include "physical_interaction_sym.h" 21 21 22 #include "stdincl.h" // maybe22 #include "stdincl.h" 23 23 24 24 using namespace std; … … 27 27 /** 28 28 \brief standard constructor 29 \todo this constructor is not jet implemented - do it30 29 */ 31 P rotoClass::ProtoClass()30 PhysicalInteractionSym::PhysicalInteractionSym () 32 31 { 33 this->setClassName ("P rotoClass");32 this->setClassName ("PhysicalInteractionSym"); 34 33 } 35 34 … … 39 38 40 39 */ 41 P rotoClass::~ProtoClass()40 PhysicalInteractionSym::~PhysicalInteractionSym () 42 41 { 43 42 // delete what has to be deleted here 44 43 } 45 46 /**47 \brief nonsense - delete this method48 \param realy nothing to give49 \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 1 1 /*! 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 8 4 */ 9 5 10 #ifndef _P ROTO_CLASS_H11 #define _P ROTO_CLASS_H6 #ifndef _PHYSICAL_INTERACTION_SYM_H 7 #define _PHYSICAL_INTERACTION_SYM_H 12 8 13 #include "what realy has to be included"14 9 #include "base_object.h" 15 10 16 // FORWARD DEFINITION \\ 17 class someClassWeNeed; 11 12 //! A symmetrical physical interaction 13 /** 14 eg. this can be a spring 15 */ 16 class PhysicalInteractionSym : public BaseObject { 17 18 public: 19 PhysicalInteractionSym(); 20 virtual ~PhysicalInteractionSym(); 18 21 19 22 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 class23 /**24 here can be some longer description of this class25 */26 class ProtoClass : public BaseObject {27 28 public:29 ProtoClass();30 virtual ~ProtoClass();31 32 bool doNonSense (int nothing);33 34 23 private: 35 int nonSense; //!< doxygen tag here like this for all the variables - delete this variable if you use this36 24 37 25 }; 38 26 39 #endif /* _PROTO_CLASS_H */ 27 28 #endif /* _PHYSICAL_INTERACTION_SYM_H */
Note: See TracChangeset
for help on using the changeset viewer.