Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes

H3DViewerTreeViewDialog Class Reference

#include <H3DViewerTreeViewDialog.h>

Inheritance diagram for H3DViewerTreeViewDialog:
TreeViewDialog

List of all members.

Public Member Functions

 H3DViewerTreeViewDialog (wxWindow *parent)
virtual void OnClose (wxCloseEvent &event)
virtual void OnNodeSelected (wxTreeEvent &event)
virtual void OnCellEdit (wxGridEvent &event)
virtual void OnTreeRightClick (wxTreeEvent &event)
 Callback for when user right clicked on a tree node.
virtual void OnTreeViewCollapseAll (wxCommandEvent &event)
 Callback for collapse all menu choice.
virtual void OnTreeViewExpandAll (wxCommandEvent &event)
 Callback for expand all menu choice.
virtual void OnTreeViewCollapseChildren (wxCommandEvent &event)
 Callback for collapse children menu choice.
virtual void OnTreeViewNodeWatch (wxCommandEvent &event)
 Callback for node watch menu choice.
virtual void OnTreeViewSaveX3D (wxCommandEvent &event)
 Callback for node save x3d menu choice.
virtual void OnTreeViewSaveSTL (wxCommandEvent &event)
 Callback for node save stl menu choice.
void OnIdle (wxIdleEvent &event)
void displayFieldsFromNode (Node *)
void showEntireSceneAsTree (bool expand_new=true)
void clearTreeView ()

Protected Types

typedef std::map
< wxTreeItemIdValue,
H3D::AutoRef< H3D::Node > > 
TreeIdMap

Protected Member Functions

void updateRowFromFieldDB (int row, Node *n, FieldDBElement *db, bool new_node)
void expandTree (const wxTreeItemId &id)
void collapseTree (const wxTreeItemId &id)
void deleteTree (const wxTreeItemId &id)
void addNodeToTree (wxTreeItemId tree_id, H3D::Node *n, bool expand=true)
void updateNodeTree (wxTreeItemId tree_id, list< H3D::Node * > nodes, bool expand_new=true)

Protected Attributes

bool shown_last_loop
TimeStamp last_tree_update
TreeIdMap node_map
wxTreeItemId bindable_tree_id
TimeStamp last_fields_update
auto_ptr< Node > default_values_node
AutoRef< Node > displayed_node
AutoRef< Node > selected_node

Detailed Description

Implementing TreeViewDialog


Member Typedef Documentation

typedef std::map< wxTreeItemIdValue, H3D::AutoRef< H3D::Node > > H3DViewerTreeViewDialog::TreeIdMap [protected]

Constructor & Destructor Documentation

H3DViewerTreeViewDialog::H3DViewerTreeViewDialog ( wxWindow *  parent  ) 

Constructor


Member Function Documentation

void H3DViewerTreeViewDialog::addNodeToTree ( wxTreeItemId  tree_id,
H3D::Node *  n,
bool  expand = true 
) [protected]
void H3DViewerTreeViewDialog::clearTreeView (  ) 
void H3DViewerTreeViewDialog::collapseTree ( const wxTreeItemId &  id  )  [protected]
void H3DViewerTreeViewDialog::deleteTree ( const wxTreeItemId &  id  )  [protected]
void H3DViewerTreeViewDialog::displayFieldsFromNode ( Node *  n  ) 
void H3DViewerTreeViewDialog::expandTree ( const wxTreeItemId &  id  )  [protected]
void H3DViewerTreeViewDialog::OnCellEdit ( wxGridEvent &  event  )  [virtual]

Reimplemented from TreeViewDialog.

void H3DViewerTreeViewDialog::OnClose ( wxCloseEvent &  event  )  [virtual]

Callback for when the window is closed. Hides the window instead of destroying it.

Reimplemented from TreeViewDialog.

void H3DViewerTreeViewDialog::OnIdle ( wxIdleEvent &  event  )  [virtual]

Reimplemented from TreeViewDialog.

void H3DViewerTreeViewDialog::OnNodeSelected ( wxTreeEvent &  event  )  [virtual]

Reimplemented from TreeViewDialog.

void H3DViewerTreeViewDialog::OnTreeRightClick ( wxTreeEvent &  event  )  [virtual]

Callback for when user right clicked on a tree node.

Reimplemented from TreeViewDialog.

void H3DViewerTreeViewDialog::OnTreeViewCollapseAll ( wxCommandEvent &  event  )  [virtual]

Callback for collapse all menu choice.

Reimplemented from TreeViewDialog.

void H3DViewerTreeViewDialog::OnTreeViewCollapseChildren ( wxCommandEvent &  event  )  [virtual]

Callback for collapse children menu choice.

Reimplemented from TreeViewDialog.

void H3DViewerTreeViewDialog::OnTreeViewExpandAll ( wxCommandEvent &  event  )  [virtual]

Callback for expand all menu choice.

Reimplemented from TreeViewDialog.

void H3DViewerTreeViewDialog::OnTreeViewNodeWatch ( wxCommandEvent &  event  )  [virtual]

Callback for node watch menu choice.

Reimplemented from TreeViewDialog.

void H3DViewerTreeViewDialog::OnTreeViewSaveSTL ( wxCommandEvent &  event  )  [virtual]

Callback for node save stl menu choice.

Callback for node save x3d menu choice.

Reimplemented from TreeViewDialog.

void H3DViewerTreeViewDialog::OnTreeViewSaveX3D ( wxCommandEvent &  event  )  [virtual]

Callback for node save x3d menu choice.

Reimplemented from TreeViewDialog.

void H3DViewerTreeViewDialog::showEntireSceneAsTree ( bool  expand_new = true  ) 
void H3DViewerTreeViewDialog::updateNodeTree ( wxTreeItemId  tree_id,
list< H3D::Node * >  nodes,
bool  expand_new = true 
) [protected]
void H3DViewerTreeViewDialog::updateRowFromFieldDB ( int  row,
Node *  n,
FieldDBElement *  db,
bool  new_node 
) [protected]

Member Data Documentation

auto_ptr< Node > H3DViewerTreeViewDialog::default_values_node [protected]
AutoRef< Node > H3DViewerTreeViewDialog::displayed_node [protected]
AutoRef< Node > H3DViewerTreeViewDialog::selected_node [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines