In file /home/blah/darwin2k/src/dyno/mechanism/dyno.h:assemblies are groups of parts linked together by connections.
Public Fields
-
part* root
- the root part for the assembly
-
ptrList* connectors
- the free (unused) connectors in the assembly
Public Methods
-
assembly(void)
- constructor
-
~assembly(void)
- destructor.
-
inline void addPart(part* p)
- adds a part to the assembly
-
inline int addConnector(connector* c)
- adds a connector to the assembly
-
inline part* getPart(int i)
- gets the i'th part
-
part* getPart(const char* name)
- returns the first part with the indicated name
-
inline connector* getConnector(int i)
- returns the i'th free connector
-
mechanism* connectParts(mechanism::baseMotionType baseType, int mechVerboseLevel = SO_WARNINGS)
- merges the assembly's rigidly-connected parts into links and creates a mechanism from them.
-
void merge(assembly* other)
- merges other's parts and free connectors into this assembly.
-
inline int numParts(void) const
- returns the number of parts in the assembly
Documentation
assemblies are groups of parts linked together by connections.
assemblies are used for representing both small pieces (such as joints
and links) and complete mechanisms. The assembly class is primarily
used as a temporary class for creating mechanisms. When it is deleted,
it does not delete any objects it references (such as parts, links,
or joints)
- part* root
- the root part for the assembly
- ptrList* connectors
- the free (unused) connectors in the assembly
- assembly(void)
- constructor
- ~assembly(void)
- destructor. When an assembly belongs to a mechanism, it will
be deleted by the mechanism when the mechanism is deleted, so that
the creator of the mechanism does not have to keep track of it.
- inline void addPart(part* p)
- adds a part to the assembly
- inline int addConnector(connector* c)
- adds a connector to the assembly
- inline part* getPart(int i)
- gets the i'th part
- part* getPart(const char* name)
- returns the first part with the indicated name
- inline connector* getConnector(int i)
- returns the i'th free connector
- mechanism* connectParts(mechanism::baseMotionType baseType, int mechVerboseLevel = SO_WARNINGS)
- merges the assembly's rigidly-connected parts into links and
creates a mechanism from them. baseType indicates the type of motion
for the mechanism's root, while mechVerboseLevel sets the mechanism's
verboseLevel member
- void merge(assembly* other)
- merges other's parts and free connectors into this assembly.
other can then be safely deleted.
- inline int numParts(void) const
- returns the number of parts in the assembly
- This class has no child classes.
- Friends:
- part
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.