VR-Forces 4.0.4 Class Documentation
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]

List of all members.

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 ()

Protected Member Functions

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

Protected Attributes

DtDemyDe
QActionmyAction
DtRandomNumberGenerator myRandomNumberGenerator

Detailed Description

The "Examples" Menu item.


Constructor & Destructor Documentation


Member Function Documentation

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

Build a menu item (via an action).

Implements makVrv::DtMenuItem.

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.

Reimplemented from makVrv::DtMenuItem.

const DtUnicode* makVrv::DtCreateObjectMenuItem::chooseRandomString ( const std::vector< DtUnicode > &  definitions) [protected]

Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)