VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtPropsLogic.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2008 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 /*****************************************************************************
6  * $RCSfile: DtPropsLogic.h,v $ $Revision: 1.16 $ $State: Exp $
7  *****************************************************************************/
8 
12 
13 #pragma once
14 
15 #include <vrvCoreQt/vrvCoreQt.h>
18 
19 namespace makVrv
20 {
21 
22  class DtDe;
23  class DtProp;
24  class DtSelectionManager;
25 
29  {
30  public:
31 
33  DtPropsLogic( DtDe& de, DtPropsInterface& iFace);
34 
36  ~DtPropsLogic();
37 
38  protected:
39 
41  void populate();
42 
44  void slot_propTypeAdded(const std::string& propType);
45 
47  void slot_propTypeRemoved(const std::string& propType);
48 
50  void slot_propCreated(DtProp& prop);
51 
53  void slot_propDestroyed(const DtProp& prop);
54 
56  void slot_selectionChanged(const DtPropsInterface::UniqueIdSet& idSet);
57 
59  void updateGuiWithSelectedProp();
60 
62  void updatePositionAndUnits();
63 
65  void updateOrientationAndUnits();
66 
68  void slot_removePropsBtnClicked();
69 
71  void slot_opacityChanged(int opacity);
72 
74  void slot_visibilityChanged(int visibility);
75 
77  void slot_propTypeChanged(const std::string& propType);
78 
80  void slot_modelDefinitionChanged(const std::string& modelDef);
81 
83  void slot_externalSelectionChanged(
84  const DtSelectionManager::IdSet& selected,
85  const DtSelectionManager::IdSet& deselected );
86 
88  void slot_positionChanged( const double x,
89  const double y, const double z );
90 
92  void slot_orientationChanged( const double yaw,
93  const double pitch, const double roll );
94 
95  void slot_displayUnitChanged( int type, int unit );
96 
97  void slot_displayUnitDecimalsChanged( int type, int unit, int decimals );
98 
100  int selectedOpacity();
101 
106  int selectedVisibility();
107 
109  std::string selectedPropType();
110 
112  std::string selectedModelDefinition();
113 
117  bool getSelectedOrientation(double& xOut, double& yOut, double& zOut);
118 
121  bool getSelectedPosition(double& xOut, double& yOut, double& zOut );
122 
123  protected:
124 
130 
131  };
132 
133 }
DtSignalConnectionManager mySignals
Definition: DtPropsLogic.h:127
Contains makVrv:DtSelectionManager class.
DtPropsInterface & myGui
Definition: DtPropsLogic.h:126
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
DtDe & myDe
Definition: DtPropsLogic.h:125
bool myUpdatingSelectionManager
Definition: DtPropsLogic.h:129
Facade object for a scene prop.
Definition: DtProp.h:37
Contains the DtPropsInterface.
std::set< DtUniqueID > UniqueIdSet
Definition: DtPropsInterface.h:36
DtPropsInterface::UniqueIdSet mySelectedPropIds
Definition: DtPropsLogic.h:128
The interface for the props widget.
Definition: DtPropsInterface.h:28
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:24
The DtPropsLogic controls the state of props via a dialog page.
Definition: DtPropsLogic.h:28
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
std::set< DtUniqueID > IdSet
Definition: DtSelectionManager.h:32

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)