VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
makVrf::DtNewCrowdItemDialog Class Reference

This class represents the dialog that is part of the multiple entity creation task. More...

Inheritance diagram for makVrf::DtNewCrowdItemDialog:
Inheritance graph
[legend]

Signals

void closing ()
void accepted (const DtCreateItemData &)
 emit signal to the parent CrowdDialog so it can add it to its list of crowds to create.

Public Member Functions

 DtNewCrowdItemDialog (makVrv::DtDe &de, QWidget *parent=NULL, const Qt::WindowFlags &flags=0)
 default constructor
virtual ~DtNewCrowdItemDialog ()
 destructor
virtual bool init (DtCreateItemData *initialData=NULL)
 Initializer.
virtual void disableMenus ()
 Disables the task and set menus.
virtual void enableMenus ()
 Enables the task and set menus.
virtual void enableMenu (QMenu *qtMenu, bool b)
 sets the menu's enabled state based on b.
virtual void completeCreation (int num, const DtString &placement, const QString &stringType, bool useDefaultSpeed, double minSpeed, double maxSpeed)
 When the newCrowdItemDialog has been accepted,set the remaining createData information: num is how many of the object to create, placement is the string that describe how the objects should be placed (ie whether they will prefer roads, avoid them or don't care), stringType is a description of type that is being created, useDefaultSpeed is whether all entities should use their default speed, and minSpeed & maxSpeed specify the valid speed ranges if default speed is not being used.
virtual void setEntity (const makVrf::DtEntityMapperKey &x)
 Set the entity type we will create a crowd of.
virtual void addSetRequest (const DtSetDataRequest &)
virtual void addTaskRequest (const DtSimTask &)
virtual const DtCreateItemDatacrowdCreationData ()
 Returns myCreateItem, the data that defines the parameters of the crowd to create.
- Public Member Functions inherited from makVrf::DtNewCrowdItemDialogInterface
 DtNewCrowdItemDialogInterface ()
 Constructor.
virtual ~DtNewCrowdItemDialogInterface ()
 Destructor.

Protected Slots

virtual void accept ()
virtual void onCreateObjectName (QTreeWidgetItem *i, int col)
virtual void displayEntityPalette ()

Protected Member Functions

virtual void slot_onDialogCreated ()
 Will tell crowd item dialog to disable its menus.
virtual void slot_onDialogDestroyed ()
 Will tell crowd item dialog to enable its menus.
virtual void setupGui ()
 construct the gui
virtual void closeEvent (QCloseEvent *e)
 Sets up the contents of the widget onto the supplied parent.
virtual bool createMenus ()
 Create menus.
virtual void createEntityPalette ()
virtual void createTaskMenu ()
virtual void createSetMenu ()
virtual void finalizeMenus ()
virtual void finalizeTaskMenu ()
virtual void finalizeSetMenu ()
virtual void setupMenuForCrowdDialog (makVrf::DtVrfTaskSetMenu *)
virtual void slot_createObjectType (const makVrf::DtEntityMapperKey &x)
 Calls down to logic to add mapper key to the createItemData.
virtual void slot_addSetRequest (std::vector< DtUUID > names, const DtSetDataRequest &)
 Calls down to logic to add set statement to the createItemData.
virtual void slot_addTaskRequest (std::vector< DtUUID > names, const DtSimTask &)
 Calls down to logic to add task statement to createItemData.
virtual void keyPressEvent (QKeyEvent *e)
 If user hits the esc key, cancel the dialog.
virtual void paletteItemsAdded ()

Protected Attributes

Ui::NewCrowdItemDialogUi myUiImpl
makVrv::DtDemyDe
DtEntityCreatePalettemyEntityPalettePanel
makVrf::DtVrfTaskSetMenumyTaskMenu
makVrv::DtMenumyTaskMenuBuilder
makVrf::DtVrfTaskSetMenumySetMenu
makVrv::DtMenumySetMenuBuilder
makVrf::DtEntityMapperKeymyEntityMapperKey
QString myEntityText
DtCreateItemData myCreateItem
DtRateEntryWidgetmySetSpeed
DtRateEntryWidgetmyMinSpeed
DtRateEntryWidgetmyMaxSpeed

Detailed Description

This class represents the dialog that is part of the multiple entity creation task.

It allows the user to select the type of entity to create plus its associated the task/set

Constructor & Destructor Documentation

makVrf::DtNewCrowdItemDialog::DtNewCrowdItemDialog ( makVrv::DtDe de,
QWidget *  parent = NULL,
const Qt::WindowFlags &  flags = 0 
)

default constructor

virtual makVrf::DtNewCrowdItemDialog::~DtNewCrowdItemDialog ( )
virtual

destructor

Member Function Documentation

virtual bool makVrf::DtNewCrowdItemDialog::init ( DtCreateItemData initialData = NULL)
virtual

Initializer.

Implements makVrf::DtNewCrowdItemDialogInterface.

virtual void makVrf::DtNewCrowdItemDialog::disableMenus ( )
virtual

Disables the task and set menus.

Implements makVrf::DtNewCrowdItemDialogInterface.

virtual void makVrf::DtNewCrowdItemDialog::enableMenus ( )
virtual

Enables the task and set menus.

Implements makVrf::DtNewCrowdItemDialogInterface.

virtual void makVrf::DtNewCrowdItemDialog::enableMenu ( QMenu qtMenu,
bool  b 
)
virtual

sets the menu's enabled state based on b.

virtual void makVrf::DtNewCrowdItemDialog::completeCreation ( int  num,
const DtString placement,
const QString &  stringType,
bool  useDefaultSpeed,
double  minSpeed,
double  maxSpeed 
)
virtual

When the newCrowdItemDialog has been accepted,set the remaining createData information: num is how many of the object to create, placement is the string that describe how the objects should be placed (ie whether they will prefer roads, avoid them or don't care), stringType is a description of type that is being created, useDefaultSpeed is whether all entities should use their default speed, and minSpeed & maxSpeed specify the valid speed ranges if default speed is not being used.

virtual void makVrf::DtNewCrowdItemDialog::setEntity ( const makVrf::DtEntityMapperKey x)
virtual

Set the entity type we will create a crowd of.

virtual void makVrf::DtNewCrowdItemDialog::addSetRequest ( const DtSetDataRequest )
virtual
virtual void makVrf::DtNewCrowdItemDialog::addTaskRequest ( const DtSimTask )
virtual
virtual const DtCreateItemData& makVrf::DtNewCrowdItemDialog::crowdCreationData ( )
virtual

Returns myCreateItem, the data that defines the parameters of the crowd to create.

virtual void makVrf::DtNewCrowdItemDialog::slot_onDialogCreated ( )
protectedvirtual

Will tell crowd item dialog to disable its menus.

virtual void makVrf::DtNewCrowdItemDialog::slot_onDialogDestroyed ( )
protectedvirtual

Will tell crowd item dialog to enable its menus.

virtual void makVrf::DtNewCrowdItemDialog::accept ( )
protectedvirtualslot
virtual void makVrf::DtNewCrowdItemDialog::onCreateObjectName ( QTreeWidgetItem i,
int  col 
)
protectedvirtualslot
virtual void makVrf::DtNewCrowdItemDialog::displayEntityPalette ( )
protectedvirtualslot
virtual void makVrf::DtNewCrowdItemDialog::setupGui ( )
protectedvirtual

construct the gui

virtual void makVrf::DtNewCrowdItemDialog::closeEvent ( QCloseEvent *  e)
protectedvirtual

Sets up the contents of the widget onto the supplied parent.

virtual bool makVrf::DtNewCrowdItemDialog::createMenus ( )
protectedvirtual

Create menus.

virtual void makVrf::DtNewCrowdItemDialog::createEntityPalette ( )
protectedvirtual
virtual void makVrf::DtNewCrowdItemDialog::createTaskMenu ( )
protectedvirtual
virtual void makVrf::DtNewCrowdItemDialog::createSetMenu ( )
protectedvirtual
virtual void makVrf::DtNewCrowdItemDialog::finalizeMenus ( )
protectedvirtual
virtual void makVrf::DtNewCrowdItemDialog::finalizeTaskMenu ( )
protectedvirtual
virtual void makVrf::DtNewCrowdItemDialog::finalizeSetMenu ( )
protectedvirtual
virtual void makVrf::DtNewCrowdItemDialog::setupMenuForCrowdDialog ( makVrf::DtVrfTaskSetMenu )
protectedvirtual
virtual void makVrf::DtNewCrowdItemDialog::slot_createObjectType ( const makVrf::DtEntityMapperKey x)
protectedvirtual

Calls down to logic to add mapper key to the createItemData.

This represents the type of entity to be create.

virtual void makVrf::DtNewCrowdItemDialog::slot_addSetRequest ( std::vector< DtUUID names,
const DtSetDataRequest  
)
protectedvirtual

Calls down to logic to add set statement to the createItemData.

virtual void makVrf::DtNewCrowdItemDialog::slot_addTaskRequest ( std::vector< DtUUID names,
const DtSimTask  
)
protectedvirtual

Calls down to logic to add task statement to createItemData.

virtual void makVrf::DtNewCrowdItemDialog::keyPressEvent ( QKeyEvent *  e)
protectedvirtual

If user hits the esc key, cancel the dialog.

If they hit the ok button, this accepts the dialog.

virtual void makVrf::DtNewCrowdItemDialog::paletteItemsAdded ( )
protectedvirtual
void makVrf::DtNewCrowdItemDialog::closing ( )
signal
void makVrf::DtNewCrowdItemDialog::accepted ( const DtCreateItemData )
signal

emit signal to the parent CrowdDialog so it can add it to its list of crowds to create.

Member Data Documentation

Ui::NewCrowdItemDialogUi makVrf::DtNewCrowdItemDialog::myUiImpl
protected
makVrv::DtDe& makVrf::DtNewCrowdItemDialog::myDe
protected
DtEntityCreatePalette* makVrf::DtNewCrowdItemDialog::myEntityPalettePanel
protected
makVrf::DtVrfTaskSetMenu* makVrf::DtNewCrowdItemDialog::myTaskMenu
protected
makVrv::DtMenu* makVrf::DtNewCrowdItemDialog::myTaskMenuBuilder
protected
makVrf::DtVrfTaskSetMenu* makVrf::DtNewCrowdItemDialog::mySetMenu
protected
makVrv::DtMenu* makVrf::DtNewCrowdItemDialog::mySetMenuBuilder
protected
makVrf::DtEntityMapperKey* makVrf::DtNewCrowdItemDialog::myEntityMapperKey
protected
QString makVrf::DtNewCrowdItemDialog::myEntityText
protected
DtCreateItemData makVrf::DtNewCrowdItemDialog::myCreateItem
protected
DtRateEntryWidget* makVrf::DtNewCrowdItemDialog::mySetSpeed
protected
DtRateEntryWidget* makVrf::DtNewCrowdItemDialog::myMinSpeed
protected
DtRateEntryWidget* makVrf::DtNewCrowdItemDialog::myMaxSpeed
protected

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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)