VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtProjectile Class Reference

Public Types

typedef std::function< void(const
DtIntersectorResult &, double)> 
IntersectionCallback
 

Public Member Functions

 DtProjectile (DtDe &de, const DtVector &start, const DtTaitBryan &orientation, double speed, const DtVector &direction, const std::string &modelDefinitionName, IntersectionCallback callback=(IntersectionCallback) 0)
 
virtual ~DtProjectile ()
 
bool tick (double simTime)
 
DtElementID id () const
 

Protected Member Functions

virtual DtTaitBryan orientationFromOldAndNewPositions (const DtVector &oldPos, const DtVector &newPos)
 
virtual void slot_coordinateSystemChanged ()
 

Protected Attributes

DtDemyDe
 
DtEntity3dFacademyFacade
 
DtTaitBryan myOrientation
 
double myFiringStartTime
 
IntersectionCallback myIntersectionCallback
 
DtVector myFiringPosition
 
DtVector myDirection
 
DtVector myVelocity0
 
DtVector myAcceleration
 
DtIntersectormyIntersector = nullptr
 
DtSignalConnectionManager myConnections
 
DtCoordinateSystemmyCoordinateSystem = nullptr
 

Member Typedef Documentation

Constructor & Destructor Documentation

makVrv::DtProjectile::DtProjectile ( DtDe de,
const DtVector start,
const DtTaitBryan &  orientation,
double  speed,
const DtVector direction,
const std::string &  modelDefinitionName,
IntersectionCallback  callback = (IntersectionCallback) 0 
)

CTOR.

virtual makVrv::DtProjectile::~DtProjectile ( )
virtual

Virtual DTOR.

Member Function Documentation

bool makVrv::DtProjectile::tick ( double  simTime)

update mechanism

DtElementID makVrv::DtProjectile::id ( ) const

return the projectile ID

virtual DtTaitBryan makVrv::DtProjectile::orientationFromOldAndNewPositions ( const DtVector oldPos,
const DtVector newPos 
)
protectedvirtual

return projectile orientation

virtual void makVrv::DtProjectile::slot_coordinateSystemChanged ( )
protectedvirtual

slot for when the coordinate system changes

Member Data Documentation

DtDe& makVrv::DtProjectile::myDe
protected

DtDe reference.

DtEntity3dFacade* makVrv::DtProjectile::myFacade
protected
DtTaitBryan makVrv::DtProjectile::myOrientation
protected

projectile orientation

double makVrv::DtProjectile::myFiringStartTime
protected

simulation time that the projectile got fired

IntersectionCallback makVrv::DtProjectile::myIntersectionCallback
protected

Intersection function callback.

DtVector makVrv::DtProjectile::myFiringPosition
protected

initial projectile position

DtVector makVrv::DtProjectile::myDirection
protected

vector direction

DtVector makVrv::DtProjectile::myVelocity0
protected

speed of the projectile

DtVector makVrv::DtProjectile::myAcceleration
protected

projectile acceleration

DtIntersector* makVrv::DtProjectile::myIntersector = nullptr
protected
DtSignalConnectionManager makVrv::DtProjectile::myConnections
protected
DtCoordinateSystem* makVrv::DtProjectile::myCoordinateSystem = nullptr
protected

local clone of the system wide coordinate system. for thread safety.


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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)