![]() |
VR-Forces 5.0.1 Developer's Guide
|
The DtEntityWheelManager class is responsible for collecting art part ids related to wheels and then rotating those wheels based on the velocity of the entity The DtEntityWheelManager collects information in addModel which is then passed to DtEntityWheelUpdater.

Public Member Functions | |
| DtEntityWheelManager (DtDe &de) | |
| virtual | ~DtEntityWheelManager () |
| virtual void | addModel (DtOsgArticulatedModel &model, DtUniqueID uniqueId, DtUniqueID elementId) |
| virtual void | removeModel (DtOsgArticulatedModel &model) |
| virtual int | numModels () const |
| virtual int | wheelSetNum (const int sisoValue) const |
| virtual WheelInfo::WheelSide | wheelSide (const int sisoValue) const |
| virtual bool | hasWheels (const DtOsgArticulatedModel &model) const |
| virtual std::vector< int > | listWheelParts (const DtOsgArticulatedModel &model) |
| virtual std::string | toString (const int sisoValue) const |
| virtual bool | isWheel (const int sisoValue) const |
| virtual double | computeRadius (const int sisoValue, const DtArticulatedModelParser::PartMap &partIdToNode) |
| virtual double | defaultWheelRadius () const |
| virtual void | setDefaultWheelRadius (double wheelRadius) |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtEntityWheelManager & | instance (DtDe &de) |
| static void | registerInstance (DtDe &de, DtEntityWheelManager *manager) |
| static const std::string & | theClassName () |
Protected Member Functions | |
| virtual void | addWheels (DtOsgArticulatedModel &model) |
Protected Attributes | |
| DtDe & | myDe |
| double | myDefaultWheelRadius |
| std::set< int > | myWheelPartIds |
| osg::ComputeBoundsVisitor | myComputerBoundsVisitor |
| DtEntityWheelUpdater * | myWheelUpdater |
| std::unordered_map < DtOsgArticulatedModel *, DtEntityWheelData > | myEntityToWheelDataMap |
| std::unordered_map < DtOsgArticulatedModel *, DtEntityWheelDataCommon > | myEntityWheelFlipBookMap |
| std::unordered_map < DtOsgArticulatedModel *, DtEntityWheelDataCommon > | myEntityWheelScrollableTextureMap |
Private Member Functions | |
| DtEntityWheelManager () | |
| DtEntityWheelManager (const DtEntityWheelManager &orig) | |
| DtEntityWheelManager & | operator= (const DtEntityWheelManager) |
| makVrv::DtEntityWheelManager::DtEntityWheelManager | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
private |
Default CTOR (unimplemented)
|
private |
brief Copy CTOR (unimplemented)
|
static |
Get/create the DtEntityWheelManager instance. use de.registerInstance(DtEntityWheelManager::theClassName(),) to override the class instance.
|
static |
|
static |
Get the name used to register this class.
|
virtual |
Add a model which will have its wheel rotating.
Reimplemented in DtVrfEntityWheelManager.
|
virtual |
Remove the art part ids associated with this model from the DtEntityWheelManager.
Reimplemented in DtVrfEntityWheelManager.
|
virtual |
How many models are in the manager.
Wheels are identified based on SISO-REF-010-2019 From https://www.sisostds.org/ProductsPublications/ReferenceDocuments.aspx This function will return first (1), second (2), ... 10 based on the art part number Does not check value to see if it is a wheel.
|
virtual |
This will identify whether a wheel art part is left or right Does not check value to see if it is a wheel.
|
virtual |
Are there any wheel part ids on this model.
|
virtual |
Get a list of the wheel part ids on this model.
|
virtual |
String version of SISO value ex. 9120 -> "1st Left".
Is this part ID a wheel ID?
|
virtual |
Look at the node for this part and computer a bounding box, return the (zmax-zmin)/2 as radius.
|
virtual |
Default wheel radius.
|
virtual |
Set the default wheel radius (if we can't compute the wheel radius for some reason)
|
protectedvirtual |
internal. Add the wheel art parts,
|
private |
brief Assignment operator (unimplemented)
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |