![]() |
VR-Forces 4.7 Class Documentation
|
Facade object for a scene prop. More...
Public Member Functions | |
| DtProp (DtDe &de, DtAgentManagerInterface &agentManagerInterface, const std::string &propType, const std::string &name) | |
| CTOR Construct a prop from a model definition. | |
| virtual | ~DtProp () |
| DTOR. | |
| void | destroy () |
| Delete the contents of the prop. | |
| bool | operator== (const DtProp &prop) const |
| Returns true IFF argument has same type and name. | |
| bool | getRecord (makArchives::DtPropRecord &recOut) const |
| Returns true if recOut was filled with all the information about this prop. | |
| void | setFromRecord (const makArchives::DtPropRecord &rec) |
| Fill out this prop from the record. | |
| void | setColorFilter (float r, float g, float b, float a) |
| Set the multipliers for the prop's color. | |
| void | setVisible (bool isVisible) |
| Set the prop visible or not. | |
| void | setScribed (bool isSelected) |
| Set the prop has a scribed bounding box. | |
| bool | scribed () const |
| Get if the prop has a scribed bounding box. | |
| DtUniqueID | uniqueID () const |
| Accessors. | |
| void | getPosition (double &x, double &y, double &z) const |
| Get the prop position. | |
| void | setPosition (double x, double y, double z) |
| Set the prop position in scene coordinates. | |
| void | getOrientation (double &x, double &y, double &z, double &w) const |
| Get the prop orientation. | |
| void | setOrientation (double x, double y, double z, double w) |
| Set the prop orientation. | |
| void | setOrientation (double psi, double theta, double phi) |
| Set the prop orientation in Euler angles. | |
| const std::string & | propType () const |
| Get type of prop (e.g. building, tree, ...) | |
| void | setPropType (const std::string &proptype) |
| Change the prop type of this prop. | |
| const std::string & | modelDefinition () const |
| Get the model definition. | |
| void | setModelDefinition (const std::string &modelDefinition) |
| Set the model definition of a prop. | |
| void | setExternalNodeLocation (const std::string &searchExpression, unsigned int index) |
| Set the location of the node moved to this prop from a terrain. | |
| const std::string & | searchExp () const |
| Get the expression used to find the prop. | |
| unsigned int | searchIndex () const |
| Get the index used to find the prop. | |
| void | setTerrainTreeSettings (DtTerrainTreeSettings *terrainTreeSettings) |
| Set tree settings (for when the prop is a tree) | |
| const DtTerrainTreeSettings * | terrainTreeSettings (void) const |
| Get the tree settings (for when the prop is a tree) | |
| const std::string & | name () const |
| Get the prop's name. | |
| void | setName (const std::string &name) |
| Set the props name. | |
| bool | isVisible () const |
| const DtModelAgent * | model () const |
| Get the prop's distributed model driver. | |
| DtModelAgent * | model () |
| Get the prop's distributed model driver. | |
| bool | operator!= (const DtProp &prop) const |
| != operator for props | |
| float | red () const |
| Get the current color filter components. | |
| float | green () const |
| float | blue () const |
| float | alpha () const |
| const DtSceneObjectAgent * | sceneObject () const |
| Get the prop's distributed scene object driver. | |
| DtSceneObjectAgent * | sceneObject () |
| Get the prop's distributed scene object driver. | |
Protected Member Functions | |
| virtual void | selectionChanged (const DtSelectionManager::IdSet &selected, const DtSelectionManager::IdSet &deselected) |
Protected Attributes | |
| DtDe & | myDe |
| std::string | myPropType |
| DtSceneObjectAgent * | mySceneObject |
| DtModelAgent * | myObjectModel |
| DtScribeBoxModelAgent * | myScribeBoxModel |
| std::string | myModelDefinition |
| The model definition. | |
| std::string | mySearchExp |
| The expression that was used to find the prop. | |
| unsigned int | mySearchIndex |
| std::string | myName |
| The prop's unique name. | |
| bool | myIsVisible |
| Whether the prop is visible. | |
| float | myAlpha |
| Color components. | |
| float | myR |
| float | myG |
| float | myB |
| double | myPosX |
| Position set by DtPropRecord on load. | |
| double | myPosY |
| double | myPosZ |
| double | myOrientationX |
| double | myOrientationY |
| double | myOrientationZ |
| double | myOrientationW |
| bool | myIsTreeFlag |
| DtTerrainTreeSettings * | myTerrainTreeSettings |
| DtAgentManagerInterface & | myAgentManagerInterface |
Private Member Functions | |
| DtProp (const DtProp ©) | |
| Copy CTOR. | |
| DtProp & | operator= (const DtProp ©) |
| Assignment operator. | |
Friends | |
| class | DtTerrainLayer |
| Befriend the DtTerrainLayer to allow it to manage connection of the selectionChanged slot to the selectionChanged signal of the DtTerrainLayer. | |
Facade object for a scene prop.
| makVrv::DtProp::DtProp | ( | DtDe & | de, |
| DtAgentManagerInterface & | agentManagerInterface, | ||
| const std::string & | propType, | ||
| const std::string & | name | ||
| ) |
CTOR Construct a prop from a model definition.
|
private |
Copy CTOR.
|
virtual |
DTOR.
| void makVrv::DtProp::destroy | ( | ) |
Delete the contents of the prop.
Returns true IFF argument has same type and name.
| bool makVrv::DtProp::getRecord | ( | makArchives::DtPropRecord & | recOut | ) | const |
Returns true if recOut was filled with all the information about this prop.
| void makVrv::DtProp::setFromRecord | ( | const makArchives::DtPropRecord & | rec | ) |
Fill out this prop from the record.
| void makVrv::DtProp::setColorFilter | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) |
Set the multipliers for the prop's color.
| void makVrv::DtProp::setVisible | ( | bool | isVisible | ) |
Set the prop visible or not.
| void makVrv::DtProp::setScribed | ( | bool | isSelected | ) |
Set the prop has a scribed bounding box.
| bool makVrv::DtProp::scribed | ( | ) | const |
Get if the prop has a scribed bounding box.
| DtUniqueID makVrv::DtProp::uniqueID | ( | ) | const |
Accessors.
Get a unique id.
Get the prop position.
Set the prop position in scene coordinates.
Get the prop orientation.
Set the prop orientation.
Set the prop orientation in Euler angles.
| const std::string& makVrv::DtProp::propType | ( | ) | const |
Get type of prop (e.g. building, tree, ...)
| void makVrv::DtProp::setPropType | ( | const std::string & | proptype | ) |
Change the prop type of this prop.
| const std::string& makVrv::DtProp::modelDefinition | ( | ) | const |
Get the model definition.
| void makVrv::DtProp::setModelDefinition | ( | const std::string & | modelDefinition | ) |
Set the model definition of a prop.
| void makVrv::DtProp::setExternalNodeLocation | ( | const std::string & | searchExpression, |
| unsigned int | index | ||
| ) |
Set the location of the node moved to this prop from a terrain.
| const std::string& makVrv::DtProp::searchExp | ( | ) | const |
Get the expression used to find the prop.
| void makVrv::DtProp::setTerrainTreeSettings | ( | DtTerrainTreeSettings * | terrainTreeSettings | ) |
Set tree settings (for when the prop is a tree)
| const DtTerrainTreeSettings* makVrv::DtProp::terrainTreeSettings | ( | void | ) | const |
Get the tree settings (for when the prop is a tree)
| float makVrv::DtProp::red | ( | ) | const |
Get the current color filter components.
| float makVrv::DtProp::green | ( | ) | const |
| float makVrv::DtProp::blue | ( | ) | const |
| float makVrv::DtProp::alpha | ( | ) | const |
| const std::string& makVrv::DtProp::name | ( | ) | const |
Get the prop's name.
| void makVrv::DtProp::setName | ( | const std::string & | name | ) |
Set the props name.
| bool makVrv::DtProp::isVisible | ( | ) | const |
| const DtSceneObjectAgent* makVrv::DtProp::sceneObject | ( | ) | const |
Get the prop's distributed scene object driver.
| DtSceneObjectAgent* makVrv::DtProp::sceneObject | ( | ) |
Get the prop's distributed scene object driver.
| const DtModelAgent* makVrv::DtProp::model | ( | ) | const |
Get the prop's distributed model driver.
| DtModelAgent* makVrv::DtProp::model | ( | ) |
Get the prop's distributed model driver.
|
protectedvirtual |
|
friend |
Befriend the DtTerrainLayer to allow it to manage connection of the selectionChanged slot to the selectionChanged signal of the DtTerrainLayer.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
The model definition.
|
protected |
The expression that was used to find the prop.
|
protected |
The prop's unique name.
|
protected |
Whether the prop is visible.
|
protected |
Color components.
|
protected |
|
protected |
|
protected |
|
protected |
Position set by DtPropRecord on load.
Need because trees require a position when they are added. The scene object doesn't exist yet when the prop is created from the record. Therefore store the position that was loaded from the DtPropRecord.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |