12 #if !defined(Q_MOC_RUN)
16 #include <osg/observer_ptr>
18 #include <osg/ShapeDrawable>
20 #include <QtWidgets/QAction>
22 #if !defined(Q_MOC_RUN)
43 class DtSceneGraphTreeWidgetInterface;
44 class DtSceneGraphTreeLogic;
49 virtual bool shouldExpandTo(
const osg::Node* node);
61 virtual void removeVolume();
62 virtual void setNode(
const osg::Node* node);
63 virtual bool isNodeWithBV(
const osg::Node* node);
65 virtual void setAABoundingBoxMode();
69 void slot_triggered(
bool);
72 osg::observer_ptr<const osg::Node>
myNode;
88 virtual bool shouldExpandTo(
const osg::Node* node);
91 void slot_triggered(
bool);
94 osg::observer_ptr<const osg::Node>
myNode;
114 virtual void setNode(osg::Node* node);
117 virtual osg::Node* colorizedNode();
122 virtual void slot_triggered(
bool);
126 virtual void unColorizeNode();
128 virtual void colorizeNode();
143 virtual bool shouldExpandTo(
const osg::Node* node);
147 void slot_triggered(
bool);
150 osg::observer_ptr<const osg::Node>
myNode;
170 virtual bool shouldExpandTo(
const osg::Node* node);
181 virtual bool shouldExpandTo(
const osg::Node* node);
191 virtual bool shouldExpandTo(
const osg::Node* node);
207 virtual void setSearchQuery(
const std::string& query);
213 virtual void reset();
216 virtual size_t getCurrentIndex();
219 virtual bool hasResults(
const std::string& query);
222 virtual size_t getTotalResults(
const std::string& query);
279 virtual void onDeactivate();
282 virtual void clearAndTraverse();
286 virtual void clearAndTraverse(
int domain,
int subdomain);
289 virtual bool iterateNode(
QTreeWidgetItem* pParent,
const osg::Node* pNode,
bool bDrawIcon =
true);
294 virtual void setVisualizeNodeBounds(
bool enable);
297 virtual void setVisualizeLods(
bool enable);
304 virtual void displayPrevious(
const std::string& query);
305 virtual void displayNext(
const std::string& query);
306 virtual std::string getSearchStatusText(
const std::string& query);
308 virtual void resetSearchAction();
316 virtual void computeFormattedNodeMaskText(
unsigned int mask, QString& nodeMaskText);
321 virtual bool nodePathHasCameraParent(
const osg::NodePath& nodePath)
const;
324 virtual const osg::Matrix computeNodeBoundsWorldMatrix(
const osg::Node* node)
const;
327 virtual void visualizeNode(
const osg::Node* node);
330 virtual void visualizeLods(
const osg::Node* node,
const osg::Matrix& localToWorldMatrix,
331 const float boundsRadius);
339 virtual void visualizeLod(
const osg::LOD* lod,
unsigned int lodIndex,
340 const osg::Matrix& localToWorldMatrix,
const float boundsRadius,
341 const float brightness);
344 virtual void removeVisulizationForNodeBounds();
347 virtual void removeVisulizationForLods();
352 const QIcon & getNodeIcon(
const osg::Node* pNode);
353 const QIcon & getDrawableIcon(
const osg::Drawable* drawable);
405 static void registerInstance(
DtDe& de,
DT_DLL_EXAMPLESCENEROOTPLUGIN void init(DtDe &anIG)
DtSceneGraphTreeLogic * myTree
Definition: DtSceneGraphTreeLogic.h:151
QIcon myGeodeIcon
Definition: DtSceneGraphTreeLogic.h:372
QIcon myGeometryIcon
Definition: DtSceneGraphTreeLogic.h:373
QTreeWidgetItem * myItem
Definition: DtSceneGraphTreeLogic.h:96
DtDe & myDe
Definition: DtSceneGraphTreeLogic.h:357
std::vector< QTreeWidgetItem * > mySearchResults
Definition: DtSceneGraphTreeLogic.h:227
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
bool myVisualizeLods
Definition: DtSceneGraphTreeLogic.h:378
DtSceneGraphTreeLogic * myTree
Definition: DtSceneGraphTreeLogic.h:95
Contains makVrv::DtSubjectObserver class.
The DtSceneGraphTreeLogicCreator creator for the DtSceneGraphTreeLogicCreator class. Registered in vrvSt.cxx.
Definition: DtSceneGraphTreeLogic.h:385
Definition: DtSceneGraphTreeLogic.h:251
SceneGraphRoot
Definition: DtSceneGraphTreeLogic.h:242
DtExpandToLightsAction * myExpandLightNodesAction
Definition: DtSceneGraphTreeLogic.h:367
osg::observer_ptr< const osg::Node > myNode
Definition: DtSceneGraphTreeLogic.h:72
QIcon mySkyIcon
Definition: DtSceneGraphTreeLogic.h:370
bool myVisualizeNodeBounds
Definition: DtSceneGraphTreeLogic.h:377
osg::observer_ptr< osg::Node > myContextMenuNode
Definition: DtSceneGraphTreeLogic.h:131
Context menu item for colorizing the current node and all it's children.
Definition: DtSceneGraphTreeLogic.h:101
DtDe & myDe
Definition: DtSceneGraphTreeLogic.h:412
osg::observer_ptr< const osg::Node > myBVAttachedNode
Definition: DtSceneGraphTreeLogic.h:73
Definition: DtSceneGraphTreeLogic.h:81
Definition: DtSceneGraphTreeLogic.h:248
#define DT_DLL_VRVOSGQT
Definition: vrvOsgQt.h:22
std::string mySearchQuery
Definition: DtSceneGraphTreeLogic.h:226
Definition: DtSceneGraphTreeLogic.h:155
unsigned int myVisualizeLodsCount
Definition: DtSceneGraphTreeLogic.h:379
QIcon mySunIcon
Definition: DtSceneGraphTreeLogic.h:369
DtSearchSceneGraphAction * mySearchAction
Definition: DtSceneGraphTreeLogic.h:368
DtSceneGraphTreeWidgetInterface * myWidgetInterface
Definition: DtSceneGraphTreeLogic.h:358
DtSceneGraphTreeLogic * myTree
Definition: DtSceneGraphTreeLogic.h:229
Contains DLL export macros.
Definition: DtSceneGraphTreeLogic.h:136
QIcon myCloudsIcon
Definition: DtSceneGraphTreeLogic.h:375
osg::observer_ptr< const osg::Node > myNode
Definition: DtSceneGraphTreeLogic.h:150
DtColorSubTreeAction * myColorSubTreeAction
Definition: DtSceneGraphTreeLogic.h:363
QTreeWidgetItem * myItem
Definition: DtSceneGraphTreeLogic.h:152
Definition: DtSceneGraphTreeLogic.h:245
DtExpandToGeometryAction(QObject *parent, DtSceneGraphTreeLogic *tree)
Definition: DtSceneGraphTreeLogic.h:177
Definition: DtSceneGraphTreeLogic.h:249
Logic for scene graph tree display widget.
Definition: DtSceneGraphTreeLogic.h:234
osg::observer_ptr< const osg::Node > myNode
Definition: DtSceneGraphTreeLogic.h:94
QIcon myEmptyIcon
Definition: DtSceneGraphTreeLogic.h:374
WidgetToNodeMap myWidgetToNodeMap
Definition: DtSceneGraphTreeLogic.h:360
DtRefreshNodeAction * myRefreshAction
Definition: DtSceneGraphTreeLogic.h:364
DtDrawBoundsAction * myShowAABBoxAction
Definition: DtSceneGraphTreeLogic.h:362
search action for scene graph tab in the terrain information panel
Definition: DtSceneGraphTreeLogic.h:195
osg::observer_ptr< osg::ShapeDrawable > myBoundingVolumeDrawable
Definition: DtSceneGraphTreeLogic.h:74
Definition: DtSceneGraphTreeLogic.h:244
Definition: DtSceneGraphTreeLogic.h:164
osg::observer_ptr< osg::Node > myColorizedNode
Definition: DtSceneGraphTreeLogic.h:132
DtDrawBoundsAction * myShowBoundsAction
Definition: DtSceneGraphTreeLogic.h:361
Definition: DtSceneGraphTreeLogic.h:247
DtExpandAllAction * myExpandAllAction
Definition: DtSceneGraphTreeLogic.h:365
std::map< QTreeWidgetItem *, NodeObsPtr > WidgetToNodeMap
Definition: DtSceneGraphTreeLogic.h:238
bool myAABoundingBoxMode
Definition: DtSceneGraphTreeLogic.h:77
Definition: DtSceneGraphTreeLogic.h:246
Definition: DtSceneGraphTreeLogic.h:174
osg::ref_ptr< osg::Texture > myTexture
Definition: DtSceneGraphTreeLogic.h:76
size_t myCurrentIndex
Definition: DtSceneGraphTreeLogic.h:225
Definition: DtSceneGraphTreeLogic.h:250
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
osg::ref_ptr< osg::Image > myImage
Definition: DtSceneGraphTreeLogic.h:75
osg::observer_ptr< const osg::Node > NodeObsPtr
Definition: DtSceneGraphTreeLogic.h:237
Definition: DtSceneGraphTreeLogic.h:46
virtual bool shouldExpandTo(const osg::Node *node)
Definition: DtSceneGraphTreeLogic.h:160
DtExpandToLightsAction(QObject *parent, DtSceneGraphTreeLogic *tree)
Definition: DtSceneGraphTreeLogic.h:187
Definition: DtSceneGraphTreeLogic.h:53
QIcon myFolderIcon
Definition: DtSceneGraphTreeLogic.h:371
Definition: DtSceneGraphTreeLogic.h:184
DtExpandToGeometryAction * myExpandGeometryAction
Definition: DtSceneGraphTreeLogic.h:366