![]() |
VR-Forces 4.7 Class Documentation
|
This class represents the dialog that is part of the multiple entity creation task. More...

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 DtCreateItemData & | crowdCreationData () |
| 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::DtDe & | myDe |
| DtEntityCreatePalette * | myEntityPalettePanel |
| makVrf::DtVrfTaskSetMenu * | myTaskMenu |
| makVrv::DtMenu * | myTaskMenuBuilder |
| makVrf::DtVrfTaskSetMenu * | mySetMenu |
| makVrv::DtMenu * | mySetMenuBuilder |
| makVrf::DtEntityMapperKey * | myEntityMapperKey |
| QString | myEntityText |
| DtCreateItemData | myCreateItem |
| DtRateEntryWidget * | mySetSpeed |
| DtRateEntryWidget * | myMinSpeed |
| DtRateEntryWidget * | myMaxSpeed |
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
| makVrf::DtNewCrowdItemDialog::DtNewCrowdItemDialog | ( | makVrv::DtDe & | de, |
| QWidget * | parent = NULL, |
||
| const Qt::WindowFlags & | flags = 0 |
||
| ) |
default constructor
|
virtual |
destructor
|
virtual |
Initializer.
Implements makVrf::DtNewCrowdItemDialogInterface.
|
virtual |
Disables the task and set menus.
Implements makVrf::DtNewCrowdItemDialogInterface.
|
virtual |
Enables the task and set menus.
Implements makVrf::DtNewCrowdItemDialogInterface.
sets the menu's enabled state based on b.
|
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 |
Set the entity type we will create a crowd of.
|
virtual |
|
virtual |
|
virtual |
Returns myCreateItem, the data that defines the parameters of the crowd to create.
|
protectedvirtual |
Will tell crowd item dialog to disable its menus.
|
protectedvirtual |
Will tell crowd item dialog to enable its menus.
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtual |
construct the gui
|
protectedvirtual |
Sets up the contents of the widget onto the supplied parent.
|
protectedvirtual |
Create menus.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Calls down to logic to add mapper key to the createItemData.
This represents the type of entity to be create.
|
protectedvirtual |
Calls down to logic to add set statement to the createItemData.
|
protectedvirtual |
Calls down to logic to add task statement to createItemData.
|
protectedvirtual |
If user hits the esc key, cancel the dialog.
If they hit the ok button, this accepts the dialog.
|
protectedvirtual |
|
signal |
|
signal |
emit signal to the parent CrowdDialog so it can add it to its list of crowds to create.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |