VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtMountingController Class Reference

DtMountingController; models rotation of a launcher. More...

Inheritance diagram for DtMountingController:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtMountingController (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,
virtual ~DtMountingController ()
 destructor
virtual DtString type () const
 Returns a string identifies the class type of component.
virtual void findDesiredAzimuthAndElevation ()
virtual void setTargetPoint (const DtVector &localTargetPoint)
 Set a point you want this mounting to line up with.
virtual const DtVectortargetPoint ()
virtual void findBodyAzimuthElevationToTargetPoint (const DtVector &targetPointIn)
 Through the out params, this method returns the azimuth and elevation relative to the body required to point the mount at a particular targetPoint.

Static Public Member Functions

static DtSimComponentcreator (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,

Protected Member Functions

 DtMountingController ()
 Default constructor; should not be called.
 DtMountingController (const DtMountingController &orig)
 copy constructor; shallow; does not copy the ports.
const DtMountingControlleroperator= (const DtMountingController &orig)
 assignment operator; see comments on copy constructor!

Protected Attributes

bool myUseTargetPoint
 Where the mount is supposed to point in local database coords.
DtVector myTargetPoint

Detailed Description

DtMountingController; models rotation of a launcher.

DtMountingController is a controller that generates the azimuth and elevation controls needed to manipulate a launcher.

End User Description: Given a target location to aim towards, it generates the control outputs necessary to rotate a launcher into position.

Uses Descriptor Type: DtComponentDescriptor


Constructor & Destructor Documentation

DtMountingController::DtMountingController ( const DtString name,
DtVrfObject owner,
DtSimManager simManager,
DtComponentDescriptor desc = 0,
DtReaderWriterRegistry parentRegistry = 0 
)

(const DtString&,DtVrfObject*,DtSimManager*,

Parameters:
nameReader writer name of this component.
ownerThe DtVrfObject that owns this component
simManagerThe simulation manager (provides access to terrain, message interface, simulation clock).
descThe component descriptor used to initialize this component.
parentRegistryPointer to the parent reader writer registry (the containing object that reads/writes this object).
(const DtString&,DtVrfObject*,DtSimManager*, DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)

destructor

Default constructor; should not be called.

Here because the compiler will generate an unprotected one otherwise.

copy constructor; shallow; does not copy the ports.


Member Function Documentation

virtual DtString DtMountingController::type ( ) const [virtual]

Returns a string identifies the class type of component.

Type values are defined in compTypes.h. DtSimComponent creation functions are registered with the DtSimComponentFactory using the type values as the key.

Returns:
DtMountingControllerType

Reimplemented from DtBaseMountingController.

Reimplemented from DtBaseMountingController.

virtual void DtMountingController::setTargetPoint ( const DtVector localTargetPoint) [virtual]

Set a point you want this mounting to line up with.

The localTargetPoint is in local database coords.

virtual const DtVector& DtMountingController::targetPoint ( ) [virtual]
virtual void DtMountingController::findBodyAzimuthElevationToTargetPoint ( const DtVector targetPointIn) [virtual]

Through the out params, this method returns the azimuth and elevation relative to the body required to point the mount at a particular targetPoint.

static DtSimComponent* DtMountingController::creator ( const DtString name,
DtVrfObject owner,
DtSimManager simManager,
DtComponentDescriptor desc = 0,
DtReaderWriterRegistry parentRegistry = 0 
) [static]

(const DtString&,DtVrfObject*,DtSimManager*,

Parameters:
nameReader writer name of this component.
ownerThe DtVrfObject that owns this component
simManagerThe simulation manager (provides access to terrain, message interface, simulation clock).
descThe component descriptor used to initialize this component.
parentRegistryPointer to the parent reader writer registry (the containing object that reads/writes this object).
(const DtString&,DtVrfObject*,DtSimManager*, DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)

Returns:
New instance of this class.

Reimplemented from DtBaseMountingController.

const DtMountingController& DtMountingController::operator= ( const DtMountingController orig) [protected]

assignment operator; see comments on copy constructor!


Member Data Documentation

Where the mount is supposed to point in local database coords.


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)