VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtExtractReferencesWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsgQt/vrvOsgQt.h>
14 #include <QtWidgets/QWidget>
15 
16 class QCheckBox;
17 class QComboBox;
18 class QLabel;
19 class QLineEdit;
20 class QListWidget;
21 class QListWidgetItem;
22 class QPushButton;
23 class QTreeWidget;
24 
25 namespace makVrv
26 {
27 
28  class DtPropTypeComboBox;
29  class DtModelDefinitionComboBox;
30 
34  : public QWidget
36  {
37  Q_OBJECT;
38 
39  public:
40 
42  DtExtractReferencesWidget(DtDe& de, QWidget* parent);
43 
45  virtual ~DtExtractReferencesWidget();
46 
48  virtual void setSearchCandidateSet(const DtExtractPropsInterface::SearchCandidateSet& scSet);
49 
52  virtual void reset();
53 
55  virtual void setValidSchemas(const std::vector<std::string>& schemaNames);
56 
58  void clear();
59 
61  virtual void disable(const std::string& tooltip);
62 
63  protected slots:
64 
66  virtual void onExtractClicked();
67 
69  virtual void onSelectAllClicked();
70 
72  virtual void onDeselectAllClicked();
73 
75  virtual void onPropTypeComboChanged(const QString& text);
76 
78  virtual void onModelDefinitionComboChanged(const QString& text);
79 
80  virtual void onExtractAsSpeedTreesCheckChanged(int state);
81 
82  protected:
83 
85  void setupGui();
86 
87  protected:
88 
90 
93 
96 
98  QListWidget* myReferencesList;
99 
102 
105 
107 
110 
112  std::string myCurrentType;
113 
116 
119 
122  };
123 }
124 
125 
std::string myCurrentModelDefinition
The currently selected model definition.
Definition: DtExtractReferencesWidget.h:115
DtModelDefinitionComboBox * myModelDefCombo
Combo for selecting a model definition.
Definition: DtExtractReferencesWidget.h:95
QLabel * myHelpLabel
A label with some helpful information.
Definition: DtExtractReferencesWidget.h:101
QListWidget * myReferencesList
List box of external references.
Definition: DtExtractReferencesWidget.h:98
#define DT_DLL_VRVOSGQT
Definition: vrvOsgQt.h:22
std::set< std::string > SearchCandidateSet
Definition: DtExtractPropsInterface.h:23
Contains makVrv::DtExtractPropsInterface class.
Contains DLL export macros.
DtPropTypeComboBox::DtPropTypeList myTypes
The list of prop types.
Definition: DtExtractReferencesWidget.h:109
int myExtractAsSpeedTreeState
extract as speed tree check box state
Definition: DtExtractReferencesWidget.h:118
std::string myCurrentType
The currently selected prop type.
Definition: DtExtractReferencesWidget.h:112
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
DtPropTypeComboBox * myPropTypeCombo
Combo for selecting a prop type.
Definition: DtExtractReferencesWidget.h:92
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
Widget for extracting external references to props.
Definition: DtExtractReferencesWidget.h:33
Interface for the extract props widget.
Definition: DtExtractPropsInterface.h:19
DtDe & myDe
The Display Engine.
Definition: DtExtractReferencesWidget.h:121
std::vector< std::string > DtPropTypeList
A list of props.
Definition: DtPropTypeComboBox.h:28
QPushButton * myExtractButton
The extract all button.
Definition: DtExtractReferencesWidget.h:104

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)