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

class connector

connector - a coordinate frame located on a part.

Public Fields

[more]int id
an identifier for the connector
[more]part* p
the part to which the connector is attached
[more]tmatrix frame
the position and orientation of the connector relative to the part

Public Methods

[more]inline connector(void)
constructor
[more] connector(part* P, int ID = 0)
constructor.
[more]inline void translate(double x, double y, double z)
translates the frame by the specified vector
[more]inline void rotate(tmatrix::axis a, double angle)
rotates the frame about the indicated axis, by the given angle
[more]inline void setFrame(tmatrix &m)
sets the connector's frame to m
[more]inline int used(void)
indicates whether the connector is connected to another connector
[more]void clearConnection(void)
breaks a connection between connectors
[more]inline int wasProcessed(void)
access method; returns 1 if processed
[more]inline connection* getConnection(void)
returns the connection; may be null
[more]inline connector* getOtherConnector(void)
returns the connector on the other side of the connection, if any
[more]inline part* getOtherPart(void)
returns the part on the other side of the connection, if any
[more]inline triple computePosition(void)
returns the current location of the connector in world coordinates
[more]inline triple computeAxis(int which)
returns the direction of the indicated axis in world coords
[more]inline triple computeLinkPosition(void)
returns the current location of the connector in link coordinates
[more]inline triple computeLinkAxis(int which)
returns the direction of the indicated axis in link coords


Documentation

connector - a coordinate frame located on a part. connectors easily allow parts to be aligned and attached to each other by connectors. each connector has an id, an associated part, and a coordinate frame relative to the part's origin. when connecting two parts via their respective connectors, one part (the child) is oriented so that its connector's frame is aligned to the frame of the parent's connector. a part may have any number of connectors.
oint id
an identifier for the connector

opart* p
the part to which the connector is attached

otmatrix frame
the position and orientation of the connector relative to the part

oinline connector(void)
constructor

o connector(part* P, int ID = 0)
constructor. adds the connector to p's list of connectors

oinline void translate(double x, double y, double z)
translates the frame by the specified vector

oinline void rotate(tmatrix::axis a, double angle)
rotates the frame about the indicated axis, by the given angle

oinline void setFrame(tmatrix &m)
sets the connector's frame to m

oinline int used(void)
indicates whether the connector is connected to another connector

ovoid clearConnection(void)
breaks a connection between connectors

oinline int wasProcessed(void)
access method; returns 1 if processed

oinline connection* getConnection(void)
returns the connection; may be null

oinline connector* getOtherConnector(void)
returns the connector on the other side of the connection, if any

oinline part* getOtherPart(void)
returns the part on the other side of the connection, if any

oinline triple computePosition(void)
returns the current location of the connector in world coordinates

oinline triple computeAxis(int which)
returns the direction of the indicated axis in world coords

oinline triple computeLinkPosition(void)
returns the current location of the connector in link coordinates

oinline triple computeLinkAxis(int which)
returns the direction of the indicated axis in link coords


This class has no child classes.
Friends:
link
connection
assembly
mechanism

Alphabetic index HTML hierarchy of classes or Java



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