ui::ParticlePreview Class Reference
#include <ParticlePreview.h>
Detailed Description
Preview widget for a particle. This class encapsulates the GTK widgets to render a specified particle using OpenGL, and return a single GTK widget to be packed into the parent window.
Definition at line 17 of file ParticlePreview.h.
Constructor & Destructor Documentation
ui::ParticlePreview::ParticlePreview |
( |
|
) |
|
ui::ParticlePreview::~ParticlePreview |
( |
|
) |
|
Destructor for destroying loaded models
Member Function Documentation
static void ui::ParticlePreview::callbackGLMotion |
( |
GtkWidget * |
, |
|
|
GdkEventMotion * |
, |
|
|
ParticlePreview * |
| |
|
) |
| | [static, private] |
static void ui::ParticlePreview::callbackGLScroll |
( |
GtkWidget * |
, |
|
|
GdkEventScroll * |
, |
|
|
ParticlePreview * |
| |
|
) |
| | [static, private] |
static void ui::ParticlePreview::callbackToggleBBox |
( |
GtkToggleToolButton * |
, |
|
|
ParticlePreview * |
| |
|
) |
| | [static, private] |
void ui::ParticlePreview::initialisePreview |
( |
|
) |
|
Initialise the GL preview. This clears the window and sets up the initial matrices and lights.
ui::ParticlePreview::operator GtkWidget * |
( |
|
) |
[inline] |
Operator cast to GtkWidget*, for packing into the parent window.
Definition at line 70 of file ParticlePreview.h.
References _widget.
void ui::ParticlePreview::setSize |
( |
int |
size |
) |
|
Set the pixel size of the ParticlePreview 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: