![]() |
VR-Forces Developer's Guide
|
Logic for scene graph tree display widget.
Public Types | |
| enum | SceneGraphRoot { RenderSystem, WindowChannelConfig, Environment, Terrain, Props, ScaledTerrainRoot, ScaledPropsRoot, ModelSetRoot, Overlays } |
| typedef osg::observer_ptr < const osg::Node > | NodeObsPtr |
| typedef std::map < QTreeWidgetItem *, NodeObsPtr > | WidgetToNodeMap |
Public Member Functions | |
| virtual | ~DtSceneGraphTreeLogic () |
| virtual void | onDeactivate () |
| virtual void | clearAndTraverse () |
| virtual void | clearAndTraverse (int domain, int subdomain) |
| virtual bool | iterateNode (QTreeWidgetItem *pParent, const osg::Node *pNode, bool bDrawIcon=true) |
| virtual void | buildContextMenu (QMenu *menu, QTreeWidgetItem *item) |
| virtual void | setVisualizeNodeBounds (bool enable) |
| virtual void | setVisualizeLods (bool enable) |
| virtual void | onSelectTreeItem (QTreeWidgetItem *item) |
| NodeObsPtr | getNode (QTreeWidgetItem *item) |
| virtual void | displayPrevious (const std::string &query) |
| virtual void | displayNext (const std::string &query) |
| virtual std::string | getSearchStatusText (const std::string &query) |
| virtual void | resetSearchAction () |
| virtual void | computeFormattedNodeMaskText (unsigned int mask, QString &nodeMaskText) |
Protected Member Functions | |
| DtSceneGraphTreeLogic (DtDe &de, DtSceneGraphTreeWidgetInterface *iface) | |
| virtual void | init () |
| virtual bool | nodePathHasCameraParent (const osg::NodePath &nodePath) const |
| virtual const osg::Matrix | computeNodeBoundsWorldMatrix (const osg::Node *node) const |
| virtual void | visualizeNode (const osg::Node *node) |
| virtual void | visualizeLods (const osg::Node *node, const osg::Matrix &localToWorldMatrix, const float boundsRadius) |
| virtual void | visualizeLod (const osg::LOD *lod, unsigned int lodIndex, const osg::Matrix &localToWorldMatrix, const float boundsRadius, const float brightness) |
| virtual void | removeVisulizationForNodeBounds () |
| virtual void | removeVisulizationForLods () |
Private Member Functions | |
| DtSceneGraphTreeLogic (const DtSceneGraphTreeLogic &other) | |
| DtSceneGraphTreeLogic & | operator= (const DtSceneGraphTreeLogic &other) |
| DtSceneGraphTreeLogic () | |
| const QIcon & | getNodeIcon (const osg::Node *pNode) |
| const QIcon & | getDrawableIcon (const osg::Drawable *drawable) |
Friends | |
| class | DtSceneGraphTreeLogicCreator |
| typedef osg::observer_ptr<const osg::Node> makVrv::DtSceneGraphTreeLogic::NodeObsPtr |
| typedef std::map<QTreeWidgetItem*, NodeObsPtr> makVrv::DtSceneGraphTreeLogic::WidgetToNodeMap |
|
protected |
Constructor is protected because the static creator needs to call bind().
|
virtual |
DTOR.
|
private |
Copy Constructor not implemented – Copy Not Allowed.
|
private |
|
protectedvirtual |
called by the creator when this class is created.
|
private |
Assignment Operator Not implemented � Assignment Not Allowed.
|
virtual |
Called from owner widget when it's being deactivated.
|
virtual |
Set the root scene node to begin the tree.
domain is a value within the SceneGraphRoot enumeration. subdomain is used for model set ids, if domain is ModelSetRoot.
|
virtual |
Iterates through the node and fills out the tree widget.
|
virtual |
|
virtual |
Enables or disables node bounds visualization.
|
virtual |
Enables or disables lod visualization.
|
virtual |
called when an item is selected in the scenegraph tree.
| NodeObsPtr makVrv::DtSceneGraphTreeLogic::getNode | ( | QTreeWidgetItem * | item | ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Helper method to format node mask text. The mask is a 32 bit value and will be fomatted to display binary text and ensure that all 32 bits are displayed. The format will be 1111 1111 1111 1111 1111 1111 1111 1111.
| mask | - the mask to convert to text |
| nodeMaskText | - the output text |
|
protectedvirtual |
helper to determine if the node path has a camera parent.
|
protectedvirtual |
helper to compute the world matrix to transform the bounds for the given node.
|
protectedvirtual |
performs node visualization based on the given node and settings.
|
protectedvirtual |
helper for visualizeNode to visualize all lod indices.
|
protectedvirtual |
helper for visualizeNode to visualize a specific lod index.
| lod | - the lod to visualize |
| lodIndex | - the child index of the lod to visualize |
| localToWorldMatrix | - the transform for the lod local space to world space |
| bounds | radius - the lod node bounds radius |
| brightness | = a brightness color level |
|
protectedvirtual |
removes any current visualization for node bounds.
|
protectedvirtual |
removes any current visualization for lods.
|
private |
|
private |
|
friend |
friend creator class so that the creator is the only one that can create the logic
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |