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

Border Class Reference

#include <Border.h>

Inheritance diagram for Border:

PhysicalObject GraphicalObject List of all members.

Public Member Functions

Public Attributes


Detailed Description

A border object: a line that delimitates a semiplane in the simulation space. The line has infinite length; it is defined by one point belonging to the line and the normal to this line, oriented towards the interior (the zone where the simulated objects evolve). The location of the reference point r on the line does not matter.

Definition at line 17 of file Border.h.


Constructor & Destructor Documentation

Border::Border real  x,
real  y,
real  normalX,
real  normalY,
std::string  label = ""
 

Constructor, sets the position and the normal.

Definition at line 12 of file Border.cpp.

References normal, Vector2::x, and Vector2::y.

Border::~Border  )  [virtual]
 

Destructor, does nothing.

Definition at line 49 of file Border.cpp.


Member Function Documentation

virtual void Border::computeDerivativesWithoutContacts ContactSolver contactSolver  )  [inline, virtual]
 

Does nothing (the border is fixed). Overrides method defined in PhysicalObject.

Reimplemented from PhysicalObject.

Definition at line 32 of file Border.h.

virtual bool Border::detectContacts Border object,
GlobalContactInfoVector contacts
[inline, virtual]
 

No contact is possible between two border objects.

Reimplemented from PhysicalObject.

Definition at line 29 of file Border.h.

virtual bool Border::detectContacts PhysicalObject object,
GlobalContactInfoVector contacts
[inline, virtual]
 

Contact handling.

Implements PhysicalObject.

Definition at line 24 of file Border.h.

References PhysicalObject::detectContacts().

void Border::draw GUI gui  )  [inline, virtual]
 

Draw the object to the graphical user interface.

Implements GraphicalObject.

Definition at line 38 of file Border.h.

void Border::fillContactMatrix ContactSolver contactSolver,
ContactInfo contact
[inline, virtual]
 

Computes the contribution of the current object to the matrix of interactions between all objects that are in contact.

Reimplemented from PhysicalObject.

Definition at line 37 of file Border.h.

virtual void Border::integrate const Integrator integrator  )  [inline, virtual]
 

Advances the time to the next timestep.

Reimplemented from PhysicalObject.

Definition at line 34 of file Border.h.

virtual void Border::rollback  )  [inline, virtual]
 

Rolls back the time to the previous timestep.

Reimplemented from PhysicalObject.

Definition at line 35 of file Border.h.


Member Data Documentation

Vector2 Border::normal
 

The normal to the border.

Definition at line 41 of file Border.h.

Referenced by Border(), Circle::detectContacts(), and CappedRectangle::detectContacts().


The documentation for this class was generated from the following files:

Thyrix homepageUsers' guide

(C) Arxia 2004-2005