VR-Vantage API Documentation
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 }


Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)