ui::MapPreview Class Reference
#include <MapPreview.h>
Detailed Description
greebo: This is a preview widget similar to the ui::ModelPreview class, providing a GL render preview of a given root node.
It comes with a Filters Menu included. Use the GtkWidget* operator to retrieve the widget for packing into a parent container.
Use the setRootNode() method to specify the subgraph to preview.
Definition at line 23 of file MapPreview.h.
Constructor & Destructor Documentation
ui::MapPreview::MapPreview |
( |
|
) |
|
ui::MapPreview::~MapPreview |
( |
|
) |
|
Member Function Documentation
void ui::MapPreview::draw |
( |
|
) |
|
static float ui::MapPreview::getRadius |
( |
scene::Node * |
root |
) |
[static, private] |
scene::Node* ui::MapPreview::getRootNode |
( |
|
) |
|
void ui::MapPreview::initialisePreview |
( |
|
) |
|
Initialise the GL preview. This clears the window and sets up the initial matrices and lights.
static void ui::MapPreview::onMouseMotion |
( |
GtkWidget * |
, |
|
|
GdkEventMotion * |
, |
|
|
MapPreview * |
| |
|
) |
| | [static, private] |
static void ui::MapPreview::onMouseScroll |
( |
GtkWidget * |
, |
|
|
GdkEventScroll * |
, |
|
|
MapPreview * |
| |
|
) |
| | [static, private] |
ui::MapPreview::operator GtkWidget * |
( |
|
) |
[inline] |
Operator cast to GtkWidget*, for packing into the parent window.
Definition at line 69 of file MapPreview.h.
References _widget.
void ui::MapPreview::setRootNode |
( |
scene::Node * |
root |
) |
|
void ui::MapPreview::setSize |
( |
int |
size |
) |
|
Set the pixel size of the MapPreviewCam widget. The widget is always square.
- Parameters:
-
| size | The pixel size of the square widget. |
Field Documentation
The documentation for this class was generated from the following file: