VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
sinkToDepthActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
8 #include <vlpi/disEnums.h>
11 
17 
19 {
20 public:
23  DtSinkToDepthActuator(const DtString& name,
24  DtVrfObject* owner,
25  DtSimManager* simManager,
26  DtComponentDescriptor* desc = 0,
27  DtReaderWriterRegistry* parentRegistry = 0);
28 
29 
33  virtual ~DtSinkToDepthActuator();
34 
37  virtual const char* type() const;
38 
40  enum
41  {
44  DtSinkStateRising
45  };
46 
48  virtual void tick();
49 
53  static DtSimComponent * creator(const DtString& name,
54  DtVrfObject* owner,
55  DtSimManager* simManager,
56  DtComponentDescriptor* desc = 0,
57  DtReaderWriterRegistry* parentRegistry = 0);
58 
59 
60 protected:
65  virtual void computeTerrainSituation();
66 
68  virtual double waterDragCoefficient() const;
69 
70 
74  virtual void sinkInWater();
75 
79  virtual void riseInWater();
80 
82  virtual double waterDragAccelerationFromSpeed(double curSpeed) const;
83 
84 protected:
86  virtual double riseRate(){ return 5.0; }
87 
90 
93 
95  const DtSinkToDepthActuator & operator=(const
96  DtSinkToDepthActuator & orig);
97 
98 protected:
101 };
102 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
Definition: sinkToDepthActuator.h:42
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
A falling from sky that will take underwater depth into account when beneath the surface.
Definition: sinkToDepthActuator.h:18
const DtFallingFromSkyActuatorComponent & operator=(const DtFallingFromSkyActuatorComponent &orig)
assignment operator; not implemented
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Definition: readerWriterRegistry.h:39
int myFallingState
Definition: sinkToDepthActuator.h:99
virtual void tick()
Calls isFallingApplicable to determine if it should do anything, and if so calls fallFromSky.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
Definition: sinkToDepthActuator.h:43
bool myUnderwater
Definition: sinkToDepthActuator.h:100
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
DtFallingFromSkyActuatorComponent provides a simple, kinematics-based model for air motion based on t...
Definition: fallingFromSkyActuatorComponent.h:33
virtual const char * type() const
Returns a string identifies the class type of component.
virtual double riseRate()
The constant rate at which an entity under water will rise.
Definition: sinkToDepthActuator.h:86

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)