ui::OrthoContextMenu Class Reference

#include <OrthoContextMenu.h>

Collaboration diagram for ui::OrthoContextMenu:
Collaboration graph
[legend]

Public Member Functions

 OrthoContextMenu ()
void show (const Vector3 &point)

Static Public Member Functions

static void displayInstance (const Vector3 &point)

Private Member Functions

void checkConnectEntities ()
void checkFitTexture ()
void checkGenerateMaterial ()
void checkGenerateTerrain ()
void checkConvertStatic ()

Static Private Member Functions

static void callbackAddEntity (GtkMenuItem *item, OrthoContextMenu *self)
static void callbackAddLight (GtkMenuItem *item, OrthoContextMenu *self)
static void callbackAddModel (GtkMenuItem *item, OrthoContextMenu *self)
static void callbackGenerateMaterials (GtkMenuItem *item, OrthoContextMenu *self)
static void callbackGenerateTerrain (GtkMenuItem *item, OrthoContextMenu *self)
static void callbackConnectEntities (GtkMenuItem *item, OrthoContextMenu *self)
static void callbackFitTexture (GtkMenuItem *item, OrthoContextMenu *self)
static void callbackAddSound (GtkMenuItem *item, OrthoContextMenu *self)

Private Attributes

GtkWidget_widget
Vector3 _lastPoint
GtkWidget_connectEntities
GtkWidget_fitTexture
GtkWidget_generateMaterials
GtkWidget_generateTerrain

Detailed Description

Displays a menu when the mouse is right-clicked in the ortho window. This is a singleton class which remains in existence once constructed, and is hidden and displayed as appropriate.

Definition at line 14 of file OrthoContextMenu.h.


Constructor & Destructor Documentation

ui::OrthoContextMenu::OrthoContextMenu (  ) 

Constructor. Create the GTK content here.


Member Function Documentation

static void ui::OrthoContextMenu::callbackAddEntity ( GtkMenuItem item,
OrthoContextMenu self 
) [static, private]
static void ui::OrthoContextMenu::callbackAddLight ( GtkMenuItem item,
OrthoContextMenu self 
) [static, private]
static void ui::OrthoContextMenu::callbackAddModel ( GtkMenuItem item,
OrthoContextMenu self 
) [static, private]
static void ui::OrthoContextMenu::callbackAddSound ( GtkMenuItem item,
OrthoContextMenu self 
) [static, private]
static void ui::OrthoContextMenu::callbackConnectEntities ( GtkMenuItem item,
OrthoContextMenu self 
) [static, private]
static void ui::OrthoContextMenu::callbackFitTexture ( GtkMenuItem item,
OrthoContextMenu self 
) [static, private]
static void ui::OrthoContextMenu::callbackGenerateMaterials ( GtkMenuItem item,
OrthoContextMenu self 
) [static, private]
static void ui::OrthoContextMenu::callbackGenerateTerrain ( GtkMenuItem item,
OrthoContextMenu self 
) [static, private]
void ui::OrthoContextMenu::checkConnectEntities (  )  [private]

Enables or disables the "connect entities" option (two entities must be selected to connect them)

void ui::OrthoContextMenu::checkConvertStatic (  )  [private]
void ui::OrthoContextMenu::checkFitTexture (  )  [private]

Enables or disables the "fit texture" option

void ui::OrthoContextMenu::checkGenerateMaterial (  )  [private]

Enables or disables the "generate material" option

void ui::OrthoContextMenu::checkGenerateTerrain (  )  [private]

Enables or disables the "generate terrain" option

static void ui::OrthoContextMenu::displayInstance ( const Vector3 point  )  [static]

Static instance display function. Obtain the singleton instance and call its show() function.

Parameters:
point The point in 3D space at which the chosen operation should take place.
void ui::OrthoContextMenu::show ( const Vector3 point  ) 

Display the menu at the current mouse position, and act on the choice.

Parameters:
point The point in 3D space at which the chosen operation should take place.

Field Documentation

Definition at line 42 of file OrthoContextMenu.h.

Definition at line 43 of file OrthoContextMenu.h.

Definition at line 44 of file OrthoContextMenu.h.

Definition at line 45 of file OrthoContextMenu.h.

Definition at line 22 of file OrthoContextMenu.h.

Definition at line 19 of file OrthoContextMenu.h.


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2