Simbody  3.4 (development)
SimTK::CableObstacle Class Reference

An obstacle is any significant object along the cable path -- one of the end points, a via point, or a surface. More...

#include <CablePath.h>

+ Inheritance diagram for SimTK::CableObstacle:

List of all members.

Classes

class  Surface
 This obstacle is a solid object represented by a ContactGeometry surface. More...
class  ViaPoint
 This is a point through which the cable must pass. More...

Public Member Functions

 CableObstacle ()
 Create an empty obstacle handle that can refer to any type of obstacle.
 CableObstacle (CablePath &path)
 Insert this obstacle into the given cable path.
 CableObstacle (const CableObstacle &source)
 Copy constructor is shallow and reference-counted; this handle will point to the same object as does the source.
CableObstacleoperator= (const CableObstacle &source)
 Copy assignment is shallow and reference-counted; this handle will point to the same object as does the source.
 ~CableObstacle ()
 Destructor clears the handle, deleting the referenced object if this was the last reference.
const TransformgetDefaultTransform () const
 Return the default pose X_BS of the obstacle S on its body B.
const MobilizedBodygetMobilizedBody () const
 Get a reference to the Mobilized body to which this obstacle is fixed.
const CablePathgetCablePath () const
 Return a reference to the CablePath in which this obstacle resides.
CableObstacleIndex getObstacleIndex () const
 Return the obstacle index within this obstacle's CablePath.
const DecorativeGeometrygetDecorativeGeometry () const
 Return decorative geometry that can be used to display this obstacle.
DecorativeGeometryupdDecorativeGeometry ()
 Obtain writable access to the decorative geometry stored with this obstacle so you can modify it.
bool isDisabledByDefault () const
 Is this obstacle disabled by default? Note that this does not tell you whether it is currently disabled, just the setting that determines how it is treated when the system is first constructed.
CableObstaclesetDisabledByDefault (bool shouldBeDisabled)
 Set the "disabled by default" flag.
CableObstaclesetDefaultTransform (const Transform &X_BS)
 Replace the default transform for this obstacle; this is usually set in the constructor.
CableObstaclesetDecorativeGeometry (const DecorativeGeometry &viz)
 Replace the decorative geometry used for automatically-generated visualization of this obstacle when visualizing the cable path.
void clear ()
 Clear this handle, deleting the referenced object if this was the last reference.
bool isEmpty () const
 See if this handle is empty.
const Impl & getImpl () const
Impl & updImpl ()

Protected Member Functions

 CableObstacle (Impl *impl)

Detailed Description

An obstacle is any significant object along the cable path -- one of the end points, a via point, or a surface.

This is the base class that can refer to any kind of obstacles; specific types are derived from this one.


Constructor & Destructor Documentation

Create an empty obstacle handle that can refer to any type of obstacle.

Insert this obstacle into the given cable path.

Copy constructor is shallow and reference-counted; this handle will point to the same object as does the source.

Destructor clears the handle, deleting the referenced object if this was the last reference.

SimTK::CableObstacle::CableObstacle ( Impl *  impl) [explicit, protected]

Member Function Documentation

CableObstacle& SimTK::CableObstacle::operator= ( const CableObstacle source)

Copy assignment is shallow and reference-counted; this handle will point to the same object as does the source.

Return the default pose X_BS of the obstacle S on its body B.

For a via point, the point is located at the S frame origin whose position vector in B is X_BS.p().

Get a reference to the Mobilized body to which this obstacle is fixed.

There can be multiple objects on a single body, so this is not necessarily unique within a path.

Return a reference to the CablePath in which this obstacle resides.

Return the obstacle index within this obstacle's CablePath.

Return decorative geometry that can be used to display this obstacle.

The decorative geometry's coordinate frame is coincident with the obstacle's coordinate frame S.

Obtain writable access to the decorative geometry stored with this obstacle so you can modify it.

If you want to replace the decorative geometry altogether use setDecorativeGeometry().

Is this obstacle disabled by default? Note that this does not tell you whether it is currently disabled, just the setting that determines how it is treated when the system is first constructed.

Set the "disabled by default" flag.

This controls whether the obstacle is included for consideration in the cable path when the system is first constructed; it does not affect the current setting.

Replace the default transform for this obstacle; this is usually set in the constructor.

Replace the decorative geometry used for automatically-generated visualization of this obstacle when visualizing the cable path.

It is up to you to make sure the geometry is actually representative of the obstacle -- no one is going to check.

Reimplemented in SimTK::CableObstacle::Surface.

Clear this handle, deleting the referenced object if this was the last reference.

bool SimTK::CableObstacle::isEmpty ( ) const [inline]

See if this handle is empty.

const Impl& SimTK::CableObstacle::getImpl ( ) const [inline]
Impl& SimTK::CableObstacle::updImpl ( ) [inline]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines