Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

OSCAR::ThreeStateTool Class Reference
[Device]

Base class for all tools that support Forward, Reverse, and Off functionality. More...

#include <ThreeStateTool.h>

Inheritance diagram for OSCAR::ThreeStateTool:

Inheritance graph
[legend]
List of all members.

Public Methods

 ThreeStateTool (const String &name=String(), OSCARError &err=DUMMY_ERROR(noError))
 ThreeStateTool (const Vector3D &toolPoint, const String &name=String(), OSCARError &err=DUMMY_ERROR(noError))
 ThreeStateTool (const Xform &toolFrame, const String &name=String(""), OSCARError &err=DUMMY_ERROR(noError))
 ThreeStateTool (const ThreeStateTool &ThreeStateTool)
ThreeStateTool & operator= (const ThreeStateTool &)
virtual ~ThreeStateTool ()
virtual bool Reverse ()

Detailed Description

Author:
Chetan Kapoor


Constructor & Destructor Documentation

OSCAR::ThreeStateTool::ThreeStateTool const String   name = String(),
OSCARError   err = DUMMY_ERROR(noError)
 

Constructor for ThreeStateTool Use this to construct a ThreeStateTool object in which no tool frame is specified. The default call mode specified here is Block.

Parameters:
name Name you want to assign to object. Default is " ".
err An OSCARError object that on return will hold the value of the error code that was generated when the constructor was called. If this error was not 'noError' you can call GetError() to get the details of the error code.
See also:
ThreeStateTool(const Vector3D& toolPoint, const String& name, OSCARError& err)

ThreeStateTool(const Xform& toolFrame, const String& name, OSCARError& err)

OSCAR::ThreeStateTool::ThreeStateTool const Vector3D   toolPoint,
const String   name = String(),
OSCARError   err = DUMMY_ERROR(noError)
 

Constructor for ThreeStateTool Use this to construct a ThreeStateTool object by specifying a tool frame for the tool.

Parameters:
toolPoint A three long vector that specifies the X, Y, and Z coordinates of the tool point for the tool with respect to the base plate of the tool. This tool point can then be used by the kinematics objects.
name Name you want to assign to object. Default is " ".
err An OSCARError object that on return will hold the value of the error code that was generated when the constructor was called. If this error was not 'noError' you can call GetError() to get the details of the error code.
See also:
ThreeStateTool(const String& name, OSCARError& err)

ThreeStateTool(const Xform& toolFrame, const String& name, OSCARError& err)

OSCAR::ThreeStateTool::ThreeStateTool const Xform   toolFrame,
const String   name = String(""),
OSCARError   err = DUMMY_ERROR(noError)
 

Constructor for ThreeStateTool Use this to construct a ThreeStateTool object by specifying a tool frame for the tool.

Parameters:
toolFrame A 4X4 matrix that specifies the X, Y, and Z coordinates and the orientation of the tool point for the tool with respect to the base plate of the tool. This tool frame can then be used by the kinematics objects.
name Name you want to assign to object. Default is " ".
err An OSCARError object that on return will hold the value of the error code that was generated when the constructor was called. If this error was not 'noError' you can call GetError() to get the details of the error code.
See also:
ThreeStateTool(const String& name, OSCARError& err)

ThreeStateTool(const Vector3D& toolPoint, const String& name, OSCARError& err)

OSCAR::ThreeStateTool::ThreeStateTool const ThreeStateTool &    ThreeStateTool
 

virtual OSCAR::ThreeStateTool::~ThreeStateTool   [inline, virtual]
 


Member Function Documentation

ThreeStateTool& OSCAR::ThreeStateTool::operator= const ThreeStateTool &   
 

virtual bool OSCAR::ThreeStateTool::Reverse   [virtual]
 

Method to make the tool move in the reverse direction Call to this method should return immediately. Override this method in derived classes. For this class, all this method does is to check whether Initialize() has been called. As such, derived classes should call ThreeStateTool::Reverse() and check its return value before proceeding.

Returns:
true or false. If false, call GetError() to get detailed error information
See also:
Forward()

Off()

Exceptions:
notInitialized notInitialized

Reimplemented in OSCAR::Drill, and OSCAR::Saw.


The documentation for this class was generated from the following file:
RRG Homepage OSCAR Overview OSCAR Tutorials Simulations