VR-Forces 4.1 Class Documentation
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtCreateObjectMenuItem Class Reference

The "Examples" Menu item. More...

Inheritance diagram for makVrv::DtCreateObjectMenuItem:
Inheritance graph
[legend]

Public Member Functions

 DtCreateObjectMenuItem (DtDe &de)
virtual ~DtCreateObjectMenuItem ()
virtual QActioncreateAction (DtDe &, QWidget *parent)
 Build a menu item (via an action).
virtual void on_triggered ()
 When triggered, randomly pick a model definition to show then construct an entity visual definition around that.
virtual void on_aboutToShow ()
- Public Member Functions inherited from makVrv::DtMenuItem
 DtMenuItem (const std::string &menuItemIdName)
 CTOR.
virtual ~DtMenuItem ()
 DTOR.
virtual const std::string & menuItemIdName () const
 Get the menu id name, the menu id name is not the same thing as the visible menu text.

Protected Member Functions

DtUnicode modelDefFromVisualSet (const DtVisualizerDefinitionSet &set)
const DtUnicodechooseRandomString (const std::vector< DtUnicode > &definitions)

Protected Attributes

DtDemyDe
QActionmyAction
DtRandomNumberGenerator myRandomNumberGenerator
- Protected Attributes inherited from makVrv::DtMenuItem
std::string myMenuIdName

Additional Inherited Members

- Protected Slots inherited from makVrv::DtMenuItem
virtual void on_checkStateChanged (bool)

Detailed Description

The "Examples" Menu item.

Constructor & Destructor Documentation

makVrv::DtCreateObjectMenuItem::DtCreateObjectMenuItem ( DtDe de)
virtual makVrv::DtCreateObjectMenuItem::~DtCreateObjectMenuItem ( )
virtual

Member Function Documentation

virtual QAction* makVrv::DtCreateObjectMenuItem::createAction ( DtDe ,
QWidget parent 
)
virtual

Build a menu item (via an action).

Implements makVrv::DtMenuItem.

virtual void makVrv::DtCreateObjectMenuItem::on_triggered ( )
virtual

When triggered, randomly pick a model definition to show then construct an entity visual definition around that.

That will then be passed to the DtEntityFacade to create an entity which will be randomly placed on the terrain

Reimplemented from makVrv::DtMenuItem.

virtual void makVrv::DtCreateObjectMenuItem::on_aboutToShow ( )
virtual

Reimplemented from makVrv::DtMenuItem.

DtUnicode makVrv::DtCreateObjectMenuItem::modelDefFromVisualSet ( const DtVisualizerDefinitionSet set)
protected
const DtUnicode* makVrv::DtCreateObjectMenuItem::chooseRandomString ( const std::vector< DtUnicode > &  definitions)
protected

Member Data Documentation

DtDe& makVrv::DtCreateObjectMenuItem::myDe
protected
QAction* makVrv::DtCreateObjectMenuItem::myAction
protected
DtRandomNumberGenerator makVrv::DtCreateObjectMenuItem::myRandomNumberGenerator
protected

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

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)