Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

Border.h

Go to the documentation of this file.
00001 // Border.h: interface for the Border class.
00002 //
00004 
00005 #ifndef BORDER_H
00006 #define BORDER_H
00007 
00008 #include "PhysicalObject.h"
00009 
00010 class Simulator;
00011 
00017 class Border : public PhysicalObject  {
00018 public:
00020    Border(real x, real y, real normalX, real normalY, std::string label="");
00022    virtual ~Border();
00023 
00024   virtual bool detectContacts(PhysicalObject* object, GlobalContactInfoVector* contacts) {
00025       return object->detectContacts(this, contacts);
00026   }
00027 
00029   virtual bool detectContacts(Border* object, GlobalContactInfoVector* contacts) { return false; }
00030 
00032    virtual void computeDerivativesWithoutContacts(ContactSolver* contactSolver) {}
00033 
00034    virtual void integrate(const Integrator &integrator) {}
00035    virtual void rollback() {}
00036 
00037    void fillContactMatrix(ContactSolver* contactSolver, ContactInfo* contact) {}
00038    void draw(GUI *gui)  {}
00039 
00041    Vector2 normal;
00042 };
00043 
00044 #endif //BORDER_H

Thyrix homepageUsers' guide

(C) Arxia 2004-2005