VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtVrvTreeWidgetItems.h
Go to the documentation of this file.
1 #if OSGEARTH_UPGRADE_GOOD
2 /*****************************************************************************
3 * Copyright (c) 2019 MAK Technologies, Inc.
4 * All rights reserved.
5 *****************************************************************************/
6 
10 
11 #pragma once
12 
18 
19 namespace makVrv
20 {
25  class DT_DLL_VRVTERRAINEDITOR DtTerrainPatchPropertyTreeWidgetItem
26  : public DtTerrainEditorPropertyTreeWidgetItem
27  {
28  Q_OBJECT
29 
30  friend class DtTerrainPatchPropertyTreeWidgetItemCreator;
31  public:
32 
38  DtTerrainPatchPropertyTreeWidgetItem(QTreeWidget* parentTree, DtDe& de, const DtOsgEarthPropertyItemKey& key);
39 
41  virtual ~DtTerrainPatchPropertyTreeWidgetItem();
42 
44  virtual void setupGui();
45 
48  virtual void setModelDefinitionRecord(const makArchives::DtModelDefinitionRecord& rec);
49 
52  virtual void getModelDefinitionRecord(makArchives::DtModelDefinitionRecord& rec) const;
53 
54  protected:
55 
57  virtual void setAlphaToCoverageState(int state);
58 
60  virtual int alphaToCoverageState() const;
61  };
62 
67  class DT_DLL_VRVTERRAINEDITOR DtFeatureLayerPropertyTreeWidgetItem
68  : public DtTerrainEditorPropertyTreeWidgetItem
69  {
70  Q_OBJECT
71  friend class DtFeatureLayerPropertyTreeWidgetItemCreator;
72  public:
73 
75  virtual void setupGui();
76 
79  virtual void setFeatureLayerRecord(const makArchives::DtFeatureLayerRecord& rec);
80 
83  virtual void getFeatureLayerRecord(makArchives::DtFeatureLayerRecord& rec);
84 
85  protected:
86 
92  DtFeatureLayerPropertyTreeWidgetItem(QTreeWidget* parentTree, DtDe& de, const DtOsgEarthPropertyItemKey& key);
93 
94  };
95 
100  class DT_DLL_VRVTERRAINEDITOR DtOceanLayerPropertyTreeWidgetItem
101  : public DtTerrainEditorPropertyTreeWidgetItem
102  {
103  Q_OBJECT
104  friend class DtOceanLayerPropertyTreeWidgetItemCreator;
105  public:
106 
108  virtual void setupGui();
109 
111  virtual void connectSignals();
112 
115  virtual void setOceanLayerRecord(const makArchives::DtOceanLayerRecord& rec);
116 
119  virtual void getOceanLayerRecord(makArchives::DtOceanLayerRecord& rec);
120 
123  virtual void setOceanLayerHeight(double height);
124 
127  virtual double oceanLayerHeight();
128 
131  virtual void setOceanLayerLod(int lod);
132 
135  virtual int oceanLayerLod();
136 
137  protected:
138 
144  DtOceanLayerPropertyTreeWidgetItem(QTreeWidget* parentTree, DtDe& de, const DtOsgEarthPropertyItemKey& key);
145 
146  protected slots:
147 
149  virtual void on_heightDoubleSpinBox_valueChanged(double value);
150 
152  virtual void on_lodSpinBox_valueChanged(int value);
153 
154  public:
155 
158  boost::signal<void(double height)> signal_oceanLayerHeightChanged;
159 
162  boost::signal<void(int lod)> signal_oceanLayerLodChanged;
163 
164  };
165 
169  class DT_DLL_VRVTERRAINEDITOR DtTerrainPatchPropertyTreeWidgetItemCreator
170  : public DtTerrainEditorPropertyTreeWidgetItemCreator
171  {
172  public:
173 
176  DtTerrainPatchPropertyTreeWidgetItemCreator(const std::string& key);
177 
182  virtual DtTerrainEditorPropertyTreeWidgetItem* create(QTreeWidget* parentTree, DtDe& de, const DtOsgEarthPropertyItemKey& key);
183  };
184 
188  class DT_DLL_VRVTERRAINEDITOR DtFeatureLayerPropertyTreeWidgetItemCreator
189  : public DtTerrainEditorPropertyTreeWidgetItemCreator
190  {
191  public:
192 
195  DtFeatureLayerPropertyTreeWidgetItemCreator(const std::string& key);
196 
201  virtual DtTerrainEditorPropertyTreeWidgetItem* create(QTreeWidget* parentTree, DtDe& de, const DtOsgEarthPropertyItemKey& key);
202  };
203 
207  class DT_DLL_VRVTERRAINEDITOR DtOceanLayerPropertyTreeWidgetItemCreator
208  : public DtTerrainEditorPropertyTreeWidgetItemCreator
209  {
210  public:
211 
214  DtOceanLayerPropertyTreeWidgetItemCreator(const std::string& key);
215 
220  virtual DtTerrainEditorPropertyTreeWidgetItem* create(QTreeWidget* parentTree, DtDe& de, const DtOsgEarthPropertyItemKey& key);
221  };
222 }
223 #endif
Contains makVrv::DtOceanLayerRecord class.
A DtOceanLayerRecord contains the information to add dynamic water.
Definition: DtOceanLayerRecord.h:21
Contains DLL export macros.
A DtFeatureLayerRecord contains the information to add features from a single source file and ruleset...
Definition: DtFeatureLayerRecord.h:25
Contains makVrv::DtFeatureLayerRecord class.
A DtModelDefinitionRecord will serialize a terrain patch model definition.
Definition: DtModelDefinitionRecord.h:20
Contains makVrv::DtModelDefinitionRecord class.
Contains the DtTerrainEditorPropertyTreeWidgetItem class declaration.
#define DT_DLL_VRVTERRAINEDITOR
Definition: vrvTerrainEditor.h:25

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)