VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtPropsLogic Class Reference

The DtPropsLogic controls the state of props via a dialog page.

Public Member Functions

 DtPropsLogic (DtDe &de, DtPropsInterface &iFace)
 
 ~DtPropsLogic ()
 

Protected Member Functions

void populate ()
 
void slot_propTypeAdded (const std::string &propType)
 
void slot_propTypeRemoved (const std::string &propType)
 
void slot_propCreated (DtProp &prop)
 
void slot_propDestroyed (const DtProp &prop)
 
void slot_selectionChanged (const DtPropsInterface::UniqueIdSet &idSet)
 
void updateGuiWithSelectedProp ()
 
void updatePositionAndUnits ()
 
void updateOrientationAndUnits ()
 
void slot_removePropsBtnClicked ()
 
void slot_opacityChanged (int opacity)
 
void slot_visibilityChanged (int visibility)
 
void slot_propTypeChanged (const std::string &propType)
 
void slot_modelDefinitionChanged (const std::string &modelDef)
 
void slot_externalSelectionChanged (const DtSelectionManager::IdSet &selected, const DtSelectionManager::IdSet &deselected)
 
void slot_positionChanged (const double x, const double y, const double z)
 
void slot_orientationChanged (const double yaw, const double pitch, const double roll)
 
void slot_displayUnitChanged (const DtUnicode &displayUnitCollectionName, const DtUnicode &displayUnitName)
 
int selectedOpacity ()
 
int selectedVisibility ()
 
std::string selectedPropType ()
 
std::string selectedModelDefinition ()
 
bool getSelectedOrientation (double &xOut, double &yOut, double &zOut)
 
bool getSelectedPosition (double &xOut, double &yOut, double &zOut)
 

Protected Attributes

DtDemyDe
 
DtPropsInterfacemyGui
 
DtSignalConnectionManager mySignals
 
DtPropsInterface::UniqueIdSet mySelectedPropIds
 
bool myUpdatingSelectionManager
 

Constructor & Destructor Documentation

makVrv::DtPropsLogic::DtPropsLogic ( DtDe de,
DtPropsInterface iFace 
)

CTOR.

makVrv::DtPropsLogic::~DtPropsLogic ( )

DTOR.

Member Function Documentation

void makVrv::DtPropsLogic::populate ( )
protected

Fills the gui with props and prop types.

void makVrv::DtPropsLogic::slot_propTypeAdded ( const std::string &  propType)
protected

Called when the prop type manager creates a new prop type.

void makVrv::DtPropsLogic::slot_propTypeRemoved ( const std::string &  propType)
protected

Called when the prop type manager removes a prop type.

void makVrv::DtPropsLogic::slot_propCreated ( DtProp prop)
protected

Called when a new prop is created.

void makVrv::DtPropsLogic::slot_propDestroyed ( const DtProp prop)
protected

Called when a new prop is destoyed.

void makVrv::DtPropsLogic::slot_selectionChanged ( const DtPropsInterface::UniqueIdSet idSet)
protected

Called when a user changes selection of props.

void makVrv::DtPropsLogic::updateGuiWithSelectedProp ( )
protected

Update the GUI the selected prop settings.

void makVrv::DtPropsLogic::updatePositionAndUnits ( )
protected

Update the prop position fields and unit label.

void makVrv::DtPropsLogic::updateOrientationAndUnits ( )
protected

Update the prop orientation fields and unit label.

void makVrv::DtPropsLogic::slot_removePropsBtnClicked ( )
protected

Called when the user has clicked the remove props button.

void makVrv::DtPropsLogic::slot_opacityChanged ( int  opacity)
protected

Called when the user has changed the opacity.

void makVrv::DtPropsLogic::slot_visibilityChanged ( int  visibility)
protected

Called when the user has changed the visibility.

void makVrv::DtPropsLogic::slot_propTypeChanged ( const std::string &  propType)
protected

Called when the user has changed the prop type.

void makVrv::DtPropsLogic::slot_modelDefinitionChanged ( const std::string &  modelDef)
protected

Called when the user has changed the Model Definition.

void makVrv::DtPropsLogic::slot_externalSelectionChanged ( const DtSelectionManager::IdSet selected,
const DtSelectionManager::IdSet deselected 
)
protected

Called when selection changes in the selection manager.

void makVrv::DtPropsLogic::slot_positionChanged ( const double  x,
const double  y,
const double  z 
)
protected

Called when the user changes the position of a prop.

void makVrv::DtPropsLogic::slot_orientationChanged ( const double  yaw,
const double  pitch,
const double  roll 
)
protected

Called when the user changes the orientation of a prop.

void makVrv::DtPropsLogic::slot_displayUnitChanged ( const DtUnicode displayUnitCollectionName,
const DtUnicode displayUnitName 
)
protected

Called when the user changes the display unit used for props.

Parameters
constDtUnicode& displayUnitCollectionName The name of the collection the 'display unit' is a part of
constDtUnicode& displayUnitName The name of the 'display unit'
int makVrv::DtPropsLogic::selectedOpacity ( )
protected

Return the opacity for the selected prop ids. Returns 0 if the values isn't the same for all selected ids.

int makVrv::DtPropsLogic::selectedVisibility ( )
protected

Return the visibility for the selected prop ids. Returns 0 if the no selected id's are visible. Returns 1 if the some selected id's are visible. Returns 2 if the all selected id's are visible.

std::string makVrv::DtPropsLogic::selectedPropType ( )
protected

Returns the propType for the selected ids or the empty string if the values isn't the same for all selected ids.

std::string makVrv::DtPropsLogic::selectedModelDefinition ( )
protected

Returns the model definition for the selected ids or the empty string if the values isn't the same for all selected ids.

bool makVrv::DtPropsLogic::getSelectedOrientation ( double xOut,
double yOut,
double zOut 
)
protected

Returns true if the orientation for selected id's is the same and returns those values in x, y, z. False otherwise and returns zero's. Values are returned in degrees.

bool makVrv::DtPropsLogic::getSelectedPosition ( double xOut,
double yOut,
double zOut 
)
protected

Returns true if the orientation for selected id's is the same and returns those values in x, y, z. False otherwise and returns zero's.

Member Data Documentation

DtDe& makVrv::DtPropsLogic::myDe
protected
DtPropsInterface& makVrv::DtPropsLogic::myGui
protected
DtSignalConnectionManager makVrv::DtPropsLogic::mySignals
protected
DtPropsInterface::UniqueIdSet makVrv::DtPropsLogic::mySelectedPropIds
protected
bool makVrv::DtPropsLogic::myUpdatingSelectionManager
protected

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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)