VR-Forces 5.0.3 Developer's Guide
 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) 2020 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCoreQt/vrvCoreQt.h>
15 
16 namespace makVrv
17 {
18 
19  class DtDe;
20  class DtProp;
21  class DtSelectionManager;
22 
26  {
27  public:
28 
30  DtPropsLogic( DtDe& de, DtPropsInterface& iFace);
31 
33  ~DtPropsLogic();
34 
35  protected:
36 
38  void populate();
39 
41  void slot_propTypeAdded(const std::string& propType);
42 
44  void slot_propTypeRemoved(const std::string& propType);
45 
47  void slot_propCreated(DtProp& prop);
48 
50  void slot_propDestroyed(const DtProp& prop);
51 
53  void slot_selectionChanged(const DtPropsInterface::UniqueIdSet& idSet);
54 
56  void updateGuiWithSelectedProp();
57 
59  void updatePositionAndUnits();
60 
62  void updateOrientationAndUnits();
63 
65  void slot_removePropsBtnClicked();
66 
68  void slot_opacityChanged(int opacity);
69 
71  void slot_visibilityChanged(int visibility);
72 
74  void slot_propTypeChanged(const std::string& propType);
75 
77  void slot_modelDefinitionChanged(const std::string& modelDef);
78 
80  void slot_externalSelectionChanged(
81  const DtSelectionManager::IdSet& selected,
82  const DtSelectionManager::IdSet& deselected );
83 
85  void slot_positionChanged( const double x,
86  const double y, const double z );
87 
89  void slot_orientationChanged( const double yaw,
90  const double pitch, const double roll );
91 
95  void slot_displayUnitChanged( const DtUnicode& displayUnitCollectionName, const DtUnicode& displayUnitName );
96 
98  int selectedOpacity();
99 
104  int selectedVisibility();
105 
107  std::string selectedPropType();
108 
110  std::string selectedModelDefinition();
111 
115  bool getSelectedOrientation(double& xOut, double& yOut, double& zOut);
116 
119  bool getSelectedPosition(double& xOut, double& yOut, double& zOut );
120 
121  protected:
122 
128 
129  };
130 
131 }
DtSignalConnectionManager mySignals
Definition: DtPropsLogic.h:125
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
Contains makVrv:DtSelectionManager class.
DtPropsInterface & myGui
Definition: DtPropsLogic.h:124
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
DtDe & myDe
Definition: DtPropsLogic.h:123
bool myUpdatingSelectionManager
Definition: DtPropsLogic.h:127
Facade object for a scene prop.
Definition: DtProp.h:34
Contains the DtPropsInterface.
std::set< DtUniqueID > UniqueIdSet
Definition: DtPropsInterface.h:33
DtPropsInterface::UniqueIdSet mySelectedPropIds
Definition: DtPropsLogic.h:126
The interface for the props widget.
Definition: DtPropsInterface.h:25
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
The DtPropsLogic controls the state of props via a dialog page.
Definition: DtPropsLogic.h:25
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
std::set< DtUniqueID > IdSet
Definition: DtSelectionManager.h:32

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)