Cyclone | Cyclone: cyclone::ParticleLink Class Reference |
#include <plinks.h>
Inheritance diagram for cyclone::ParticleLink:
Public Member Functions | |
virtual unsigned | addContact (ParticleContact *contact, unsigned limit) const =0 |
Geneates the contacts to keep this link from being violated. | |
Public Attributes | |
Particle * | particle [2] |
Holds the pair of particles that are connected by this link. | |
Protected Member Functions | |
real | currentLength () const |
Returns the current length of the link. |
It is used as a base class for cables and rods, and could be used as a base class for springs with a limit to their extension..
|
Geneates the contacts to keep this link from being violated. This class can only ever generate a single contact, so the pointer can be a pointer to a single element, the limit parameter is assumed to be at least one (zero isn't valid) and the return value is either 0, if the cable wasn't over-extended, or one if a contact was needed. NB: This method is declared in the same way (as pure virtual) in the parent class, but is replicated here for documentation purposes. Implements cyclone::ParticleContactGenerator. Implemented in cyclone::ParticleCable, and cyclone::ParticleRod. |
|
Returns the current length of the link.
|
|
Holds the pair of particles that are connected by this link.
|
© 2000-2003 Icosagon. All Rights Reserved.
Distributed under licence.
Cyclone Version 2.0.5 (Documentation generated Fri Nov 10 20:44:27 2006). |