VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtAddPropsWidget.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2012 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCoreQt/vrvCoreQt.h>
14 
16 
17 #include <QtWidgets/QWidget>
18 
19 class QTreeWidget;
20 class QComboBox;
21 
22 namespace makVrv
23 {
24 
25  class DtDe;
26  class DtPropTypeComboBox;
27  class DtModelDefinitionComboBox;
28 
32  : public QWidget, public DtAddPropsInterface
33  {
34 
35  Q_OBJECT
36 
37  public:
38 
40  DtAddPropsWidget( DtDe& de, QWidget* parent = 0,
41  Qt::WindowFlags flags = 0 );
42 
44  virtual ~DtAddPropsWidget();
45 
49 
51  virtual void setFeatureFieldValuePairs(
52  const DtFeatureFieldValueParser::FeatureFieldValueMap& featureFieldValueMap);
53 
55  virtual void addRuleToHistory(const makArchives::DtAddPropsRuleRecord& rule);
56 
59  virtual void fillInRotationComboBox();
60 
62  void clear();
63 
65 
66  public slots:
67 
71 
73  void on_plusButton_clicked();
74 
76  void on_minusButton_clicked();
77 
79  void onAddPropsButtonClicked();
80 
82 
83  protected:
84 
87  void setupGui();
88 
90  QStringList ruleToStringList(const makArchives::DtAddPropsRuleRecord& rule);
91 
92  protected:
93 
94  static const int theFieldColumn = 0;
95  static const int theValueColumn = 1;
96 
105 
106  };
107 
108 }
DtModelDefinitionComboBox * myModelDefCombo
Definition: DtAddPropsWidget.h:101
QTreeWidget * myHistory
Definition: DtAddPropsWidget.h:99
DtPropTypeComboBox * myPropTypeCombo
Definition: DtAddPropsWidget.h:100
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
QTreeWidget * myFieldValueMapWidget
Definition: DtAddPropsWidget.h:98
Contains DLL export macros.
Record of a rule used to add props to a feaure layer.
Definition: DtAddPropsRuleRecord.h:23
Interface to the DtAddPropsWidget.
Definition: DtAddPropsInterface.h:21
QComboBox * myRotationCombo
Definition: DtAddPropsWidget.h:103
DtFeatureFieldValueParser::FeatureFieldValueMap myFeatureFieldValueMap
Definition: DtAddPropsWidget.h:97
Contains makArchives::DtAddPropsRuleRecord class.
A DtPropTypeComboBox automatically connects with the prop type manager and knows when props are added...
Definition: DtPropTypeComboBox.h:20
A DtModelDefinitionComboBox populates itself with model definitions.
Definition: DtModelDefinitionComboBox.h:43
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:76
DtDe & myDe
Definition: DtAddPropsWidget.h:104
QComboBox * myGroundClampCombo
Definition: DtAddPropsWidget.h:102
The DtAddPropsWidget lets users see add props to a DtFeatureLayer.
Definition: DtAddPropsWidget.h:31
Contains makVrv::DtAddPropsInterface class.
std::map< std::string, std::set< std::string > > FeatureFieldValueMap
Map of feature fields to a set of values.
Definition: DtFeatureFieldValueParser.h:68

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)