![]() |
VR-Forces 4.8 Class Documentation
|
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. More...

Public Member Functions | |
| DtEntityWheelManager (DtDe &de) | |
| CTOR. More... | |
| virtual | ~DtEntityWheelManager () |
| DTOR. More... | |
| virtual void | addModel (DtOsgArticulatedModel &model, bool isInstanced, DtUniqueID uniqueId, DtUniqueID elementId) |
| Add a model which will have its wheel rotating. More... | |
| virtual void | removeModel (DtOsgArticulatedModel &model) |
| Remove the art part ids associated with this model from the DtEntityWheelManager. More... | |
| virtual int | numModels () const |
| How many models are in the manager. More... | |
| virtual int | wheelSetNum (const int sisoValue) const |
| 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), ... More... | |
| virtual WheelInfo::WheelSide | wheelSide (const int sisoValue) const |
| This will identify whether a wheel art part is left or right Does not check value to see if it is a wheel. More... | |
| virtual bool | hasWheels (DtOsgArticulatedModel &model) |
| Are there any wheel part ids on this model. More... | |
| virtual std::vector< int > | listWheelParts (DtOsgArticulatedModel &model) |
| Get a list of the wheel part ids on this model. More... | |
| virtual std::string | toString (const int sisoValue) const |
| String version of SISO value ex. More... | |
| virtual bool | isWheel (const int sisoValue) const |
| Is this part ID a wheel ID? More... | |
| virtual double | computeRadius (const int sisoValue, const DtArticulatedModelParser::PartMap &partIdToNode) |
| Look at the node for this part and computer a bounding box, return the (zmax-zmin)/2 as radius. More... | |
| virtual double | defaultWheelRadius () |
| Default wheel radius. More... | |
| virtual void | setDefaultWheelRadius (double wheelRadius) |
| Set the default wheel radius (if we can't compute the wheel radius for some reason) More... | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. More... | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. More... | |
Static Public Member Functions | |
| static DtEntityWheelManager & | instance (DtDe &de) |
| Get/create the DtEntityWheelManager instance. More... | |
| static void | registerInstance (DtDe &de, DtEntityWheelManager *manager) |
| static const std::string & | theClassName () |
| Get the name used to register this class. More... | |
Protected Attributes | |
| DtDe & | myDe |
| double | myDefaultWheelRadius |
| std::set< int > | myWheelPartIds |
| osg::ComputeBoundsVisitor | myComputerBoundsVisitor |
| DtEntityWheelUpdater * | myWheelUpdater |
| std::map < DtOsgArticulatedModel *, EntityWheelData > | myEntityToWheelDataMap |
Private Member Functions | |
| DtEntityWheelManager () | |
| Default CTOR (unimplemented) More... | |
| DtEntityWheelManager (const DtEntityWheelManager &orig) | |
| brief Copy CTOR (unimplemented) More... | |
| DtEntityWheelManager & | operator= (const DtEntityWheelManager) |
| brief Assignment operator (unimplemented) More... | |
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.
| 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.
|
virtual |
Remove the art part ids associated with this model from the DtEntityWheelManager.
|
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)
|
private |
brief Assignment operator (unimplemented)
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |