#include <VWorldTree.h>
Inherits wxTreeCtrl.
Collaboration diagram for VWorldTree:

Public Member Functions | |
| VWorldTree (VWorld *world, VCanvas *canvas, wxGrid *grid, wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize) | |
| ~VWorldTree () | |
| void | setWorld (VWorld *world, VCanvas *canvas) |
| bool | selectObject (MObject *object) |
| Select the given object. | |
| void | onSelectionChanged (wxTreeEvent &event) |
| Callback for the selection of an item on the tree. | |
| void | updateGrid () |
| void | onGridChanged (int row, int col) |
Protected Member Functions | |
| bool | selectObject (wxTreeItemId parent, MObject *object) |
| void | setGridToValue (const int row, const int col, const double value) |
| void | setGridToValue (const int row, const int col, const bool value) |
Protected Attributes | |
| VWorld * | myWorld |
| The world whos elements I display. | |
| VCanvas * | myCanvas |
| The canvas whos elements I display (lighting, camera). | |
| wxGrid * | myGrid |
| The grid that I display data onto. | |
Definition at line 19 of file VWorldTree.h.
|
||||||||||||||||||||||||||||||||
|
Build a new VWorldTree.
Definition at line 26 of file VWorldTree.cpp. References memTraceMsg. |
|
|
Definition at line 34 of file VWorldTree.cpp. References memTraceMsg. |
|
||||||||||||
|
Function called when the grid is changed. This will update the correct part of the model Definition at line 256 of file VWorldTree.cpp. References myGrid, TLMDataIF::setDataValue(), and traceId. Referenced by ViewerGUI::onGridDataChanged(). Here is the call graph for this function: ![]() |
|
|
Callback for the selection of an item on the tree.
Definition at line 142 of file VWorldTree.cpp. References TLMDataIF::DataInfo::editable, TLMDataIF::getAvailableData(), myGrid, and traceId. Referenced by ViewerGUI::onSelectionChanged(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Definition at line 273 of file VWorldTree.cpp. References MObject::name(), VTreeData::OBJECT, and traceId. Here is the call graph for this function: ![]() |
|
|
Select the given object.
Definition at line 134 of file VWorldTree.cpp. References traceId. Referenced by ViewerGUI::selectObject(). |
|
||||||||||||||||
|
Definition at line 302 of file VWorldTree.cpp. References myGrid. |
|
||||||||||||||||
|
Definition at line 295 of file VWorldTree.cpp. References myGrid. Referenced by updateGrid(). |
|
||||||||||||
|
Set the world that I should model. This will clear out the existing tree elements and create a new tree to display the given world Definition at line 40 of file VWorldTree.cpp. References VTreeData::BODY, VTreeData::CAMERA, VTreeData::LIGHT, VTreeData::LIGHTING, VCanvas::lighting(), VLighting::lights(), myCanvas, myWorld, VTreeData::OBJECT, MWorld::objects(), MWorld::spaces(), traceId, and warnMsg. Here is the call graph for this function: ![]() |
|
|
Update the values on the grid with the current value from the model Definition at line 210 of file VWorldTree.cpp. References VTreeData::CAMERA, VCanvas::getCameraPosition(), TLMDataIF::getDataValue(), myCanvas, myGrid, setGridToValue(), and traceId. Referenced by ViewerGUI::onIdle(). Here is the call graph for this function: ![]() |
|
|
The canvas whos elements I display (lighting, camera).
Definition at line 64 of file VWorldTree.h. Referenced by setWorld(), and updateGrid(). |
|
|
The grid that I display data onto.
Definition at line 65 of file VWorldTree.h. Referenced by onGridChanged(), onSelectionChanged(), setGridToValue(), and updateGrid(). |
|
|
The world whos elements I display.
Definition at line 63 of file VWorldTree.h. Referenced by setWorld(). |
1.4.5