VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrv::DtExampleProjectile Class Reference
Inheritance diagram for makVrv::DtExampleProjectile:
Inheritance graph
[legend]

Classes

struct  DetonationData
 Detonation information. More...
 
struct  SplashData
 Detonation over water information. More...
 

Public Member Functions

 DtExampleProjectile (makVrv::DtAgentManager &am)
 CTOR. More...
 
virtual ~DtExampleProjectile ()
 Virtual DTOR. More...
 
- Public Member Functions inherited from makVrv::DtDriver
 DtDriver (DtAgentManager &agentManager, const std::string &instanceName)
 CTOR. More...
 
virtual ~DtDriver ()
 DTOR. More...
 
virtual void realizeConfiguration (const DtConfiguration &configuration)
 Realize the driver using the configuration. More...
 
virtual DtConfiguration createConfiguration () const
 Create a configuration for the driver. More...
 
DtAgentManageragentManager ()
 Get the master scene for this host. More...
 
virtual DtAgentManagerInterfacesceneInterface ()
 Get the scene manager interface for creating agents. More...
 
bool started () const
 Get this driver's active state. More...
 
virtual const std::string & instanceName () const
 Get this driver's instance name. More...
 
virtual bool autoStart () const
 Get whether this driver is set to automatically start if it is persistent. More...
 
virtual void setAutoStart (bool autoStart)
 Set whether this driver automatically starts if it is persistent. More...
 
virtual bool isWindowDependent () const
 Get whether this driver is set to automatically start when the first window is created and stop when the last window is destroyed. More...
 
virtual void setIsWindowDependent (bool dep)
 Set whether this driver is set to automatically start when the first window is created and stop when the last window is destroyed. More...
 
virtual void setIsUserControllable (bool)
 Set whether this driver can be started and stopped by the user. More...
 
virtual bool isUserControllable () const
 Get whether this driver can be started and stopped by the user. More...
 
virtual void setIsPersistent (bool per)
 Set if the driver is persistent and should be saved between runs. More...
 
virtual bool isPersistent () const
 Get if the driver is persistent and should be saved between runs. More...
 
virtual bool isOnDriverSelectionList () const
 Returns whether or not this driver is to be automatically started/stopped from the driver selection list. More...
 
virtual void setOnDriverSelectionList (bool)
 Sets whether or not this item is on the driver selection list. More...
 
bool objectFromAgentManager (const DtUniqueID &id) const
 check to see if the object was created using this driver's agent manager. More...
 

Protected Types

typedef std::list< DetonationDataDetonationList
 Detonation list type. More...
 
typedef std::list< SplashDataSplashList
 Detonation (water) list type. More...
 

Protected Member Functions

virtual void processIntersection (const DtIntersectorResult &isect, double speed)
 Process an intersection from a projectile. More...
 
virtual void createDetonation (const DtVector &position)
 Create the detonation (set position, model definition, add the detonation) More...
 
virtual void createSplash (const DtVector &position, double speed)
 Create a detonation over water (set position, model definition, add the detonation) More...
 
- Protected Member Functions inherited from makVrv::DtDriver
void applyChangesAndDelete (DtElementChanges *changes)
 Function for apply changes from a changes object and deleting it. More...
 
void reportElementCreated (DtElementID id, DtElementID parentId, DtElementEntry::ElementType type)
 Report an element created. More...
 
void reportElementAttribute (DtElementID id, DtElementAttribute *attribute)
 Report an element attribute changed. More...
 
void reportElementDestroyed (DtElementID id)
 Report an element destroyed. More...
 
void start ()
 Start the driver. More...
 
void stop ()
 Stop the driver. More...
 
bool tick ()
 Tick the host driver. More...
 
virtual void setInstanceName (const std::string &name)
 set the Instance name. More...
 
virtual void installAccessories ()
 Installs accessories on this driver. More...
 
virtual void uninstallAccessories ()
 Removes accessories from this driver. More...
 

Protected Attributes

DtObserverShootermyObserverShooter
 Shooter observer reference. More...
 
DetonationList myDetonationObjects
 Detonation list. More...
 
SplashList mySplashObjects
 Detonation (water) list. More...
 
- Protected Attributes inherited from makVrv::DtDriver
DtAgentManagermyAgentManager
 
bool myStartedFlag
 
std::string myName
 
DtConfiguration myConfiguration
 
bool myPersistentFlag
 
bool myUserControllableFlag
 
bool myRequestStateDiffPendingFlag
 
DtElementChanges myChanges
 

Methods Inherited from makVrv::DtDriver

virtual const std::string & className () const
 Returns the driver's class name. More...
 
virtual bool onStart ()
 Performs startup logic for the driver. More...
 
virtual bool onStop ()
 Performs shutdown logic for the driver. More...
 
virtual bool onTick ()
 Performs update logic for the driver. More...
 
virtual void slot_displayEngineAdded (const makVrv::DtDeRecord &igRecord)
 Ensures the driver is properly restarted when a de is connected (such as a remote display engine). More...
 

Member Typedef Documentation

Detonation list type.

Detonation (water) list type.

Constructor & Destructor Documentation

makVrv::DtExampleProjectile::DtExampleProjectile ( makVrv::DtAgentManager am)

CTOR.

virtual makVrv::DtExampleProjectile::~DtExampleProjectile ( )
virtual

Virtual DTOR.

Member Function Documentation

virtual const std::string& makVrv::DtExampleProjectile::className ( ) const
virtual

Returns the driver's class name.

See Also
makVrv::DtDriver::className() const

Implements makVrv::DtDriver.

virtual bool makVrv::DtExampleProjectile::onStart ( )
protectedvirtual

Performs startup logic for the driver.

See Also
makVrv::DtDriver::start()

Implements makVrv::DtDriver.

virtual bool makVrv::DtExampleProjectile::onStop ( )
protectedvirtual

Performs shutdown logic for the driver.

See Also
makVrv::DtDriver::stop()

Implements makVrv::DtDriver.

virtual bool makVrv::DtExampleProjectile::onTick ( )
protectedvirtual

Performs update logic for the driver.

See Also
makVrv::DtDriver::tick()

Implements makVrv::DtDriver.

virtual void makVrv::DtExampleProjectile::slot_displayEngineAdded ( const makVrv::DtDeRecord igRecord)
protectedvirtual

Ensures the driver is properly restarted when a de is connected (such as a remote display engine).

See Also
makVrv::DtDriver::slot_displayEngineAdded( const makVrv::DtDeRecord& )

Reimplemented from makVrv::DtDriver.

virtual void makVrv::DtExampleProjectile::processIntersection ( const DtIntersectorResult isect,
double  speed 
)
protectedvirtual

Process an intersection from a projectile.

virtual void makVrv::DtExampleProjectile::createDetonation ( const DtVector position)
protectedvirtual

Create the detonation (set position, model definition, add the detonation)

virtual void makVrv::DtExampleProjectile::createSplash ( const DtVector position,
double  speed 
)
protectedvirtual

Create a detonation over water (set position, model definition, add the detonation)

Member Data Documentation

DtObserverShooter* makVrv::DtExampleProjectile::myObserverShooter
protected

Shooter observer reference.

DetonationList makVrv::DtExampleProjectile::myDetonationObjects
protected

Detonation list.

SplashList makVrv::DtExampleProjectile::mySplashObjects
protected

Detonation (water) list.


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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)