![]() |
VR-Forces Developer's Guide
|
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.

Signals | |
| void | closing () |
| void | accepted (const DtCreateItemData &) |
Public Member Functions | |
| DtNewCrowdItemDialog (makVrv::DtDe &de, QWidget *parent=NULL, const Qt::WindowFlags &flags=0) | |
| virtual | ~DtNewCrowdItemDialog () |
| virtual bool | init (DtCreateItemData *initialData=NULL) |
| virtual void | disableMenus () |
| virtual void | enableMenus () |
| virtual void | enableMenu (QMenu *qtMenu, bool b) |
| virtual void | completeCreation (int num, const DtString &placement, const QString &stringType, bool useDefaultSpeed, double minSpeed, double maxSpeed) |
| virtual void | setEntity (const makVrf::DtEntityMapperKey &x) |
| virtual void | addSetRequest (const DtSetDataRequest &) |
| virtual void | addTaskRequest (const DtSimTask &) |
| virtual const DtCreateItemData & | crowdCreationData () |
Public Member Functions inherited from makVrf::DtNewCrowdItemDialogInterface | |
| DtNewCrowdItemDialogInterface () | |
| virtual | ~DtNewCrowdItemDialogInterface () |
Protected Slots | |
| virtual void | accept () |
| virtual void | onCreateObjectName (QTreeWidgetItem *i, int col) |
| virtual void | displayEntityPalette () |
Protected Member Functions | |
| virtual void | slot_onDialogCreated () |
| virtual void | slot_onDialogDestroyed () |
| virtual void | setupGui () |
| virtual void | closeEvent (QCloseEvent *e) |
| virtual bool | createMenus () |
| 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) |
| virtual void | slot_addSetRequest (std::vector< DtUUID > names, const DtSetDataRequest &) |
| virtual void | slot_addTaskRequest (std::vector< DtUUID > names, const DtSimTask &) |
| virtual void | keyPressEvent (QKeyEvent *e) |
| virtual void | paletteItemsAdded () |
Protected Attributes | |
| Ui::NewCrowdItemDialogUi | myUiImpl |
| makVrv::DtDe & | myDe |
| DtCreateObjectPalette * | myCreateObjectPalettePanel |
| 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 |
| 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 |