In file /home/blah/darwin2k/src/dyno/mechanism/dyno.h:

class connection

connection class - a connection between 2 connectors.

Inheritance:


Public Fields

[more]synObject* owner
the creator of the connection
[more]int id
an id, for use by the owner
[more]connector* c0
the two connectors being connected
[more]triple fc
force exerted on part1 (c1) by part0 (c0); computed automatically
[more]triple nc
moment exerted on part1 (c1) by part0 (c0); computed automatically

Public Methods

[more] connection(connector* c1, connector* c2, int id, int &error, synObject* owner = NULL)
constructor; returns 1 in error if there was a problem.
[more]virtual ~connection(void)
destructor
[more]inline virtual int isJoint(void)
convenience function for determining class type


Documentation

connection class - a connection between 2 connectors. Connections can be fixed or moving, with moving connections belonging to the derived class joint. When two parts are connected by a fixed connection, the parts get merged into the same link; when the parts are connected by a joint, the parts belong to separate links, connected by the joint. Note that joints can also be fixed, which later allows the joint to be broken (links cannot be broken up, but two links connected by a fixed joint can be). The frames on the two connectors are initially aligned when the mechanism is created. NOTE: when creating connections, you should *always* use the new operator and you don't need to keep track of or delete the connection, as it will be recorded and deleted by one of its connectors.
osynObject* owner
the creator of the connection

oint id
an id, for use by the owner

oconnector* c0
the two connectors being connected

otriple fc
force exerted on part1 (c1) by part0 (c0); computed automatically

otriple nc
moment exerted on part1 (c1) by part0 (c0); computed automatically

o connection(connector* c1, connector* c2, int id, int &error, synObject* owner = NULL)
constructor; returns 1 in error if there was a problem. note that since the connectors keep track of the newly-created connection, it is not necessary to independently create a variable to keep track of the connection.

ovirtual ~connection(void)
destructor

oinline virtual int isJoint(void)
convenience function for determining class type


Direct child classes:
joint
Friends:
link
assembly
mechanism
connector

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.