![]() |
VR-Forces 4.0.4 Class Documentation
|
A widget class for managing different camera views the currently selected observer can be placed in. More...

Public Member Functions | |
| DtEntityCreatePalette (makVrv::DtDe &de, QWidget *parent=0, Qt::WindowFlags flags=0) | |
| CTOR. | |
| virtual | ~DtEntityCreatePalette () |
| DTOR. | |
| virtual QPixmap | icon () const |
| Icon to be used in small display. | |
| virtual QString | iconText () const |
| Name to put next to the icon. | |
| virtual void | interceptCreation (bool intercept) |
| Allow the user to intercept the creation signal so they may manage the creation in their own way If false the createPalette's logic calls DtVrfObjectManipulationManager's create with the default--create message to the backend is sent internally, user has no ability to control it. | |
Public Attributes | |
| QVBoxLayout * | myMainLayout |
| QComboBox * | myCategories |
| QComboBox * | myForces |
| QCheckBox * | myShowEntityType |
| QTreeWidget * | myEntities |
Protected Slots | |
| virtual void | slot_onForceChanged () |
| virtual void | slot_onCategoryChanged () |
| virtual void | slot_onShowEntityTypeColumn () |
| virtual void | slot_onItemPressed (QTreeWidgetItem *, int) |
Protected Member Functions | |
| void | setupUi (QWidget *p) |
| Sets up the contents of the widget onto the supplied parent. | |
| virtual void | clear () |
| Clears contents of widget. | |
| virtual void | update () |
| Tells widget to update (redraw) | |
| virtual QString | currentForce () const |
| Returns currently selected force. | |
| virtual int | currentForceType () const |
| Returns the current force type selected. | |
| virtual int | currentForceIndex () const |
| Returns the index of the currently selected force in the combo box. | |
| virtual int | forceTypeAtIndex (int) const |
| Force type at index. | |
| virtual QString | currentCategory () const |
| Returns currently selected category. | |
| virtual int | numForces () const |
| Returns number of forces. | |
| virtual int | numCategories () const |
| Returns number of categories. | |
| virtual void | addForce (const QString &, int) |
| Adds new force and force type. | |
| virtual QString | force (int) const |
| Returns the force string at the specified index. | |
| virtual bool | hasForce (int) const |
| Returns true if the specified force exists. | |
| virtual void | addCategory (const QString &) |
| Adds new category. | |
| virtual void | insertCategoryBefore (const QString &, const QString &) |
| Adds new category before the specified item. | |
| virtual void | insertCategoryAfter (const QString &, const QString &) |
| Adds new category after the specified item. | |
| virtual bool | hasCategory (const QString &) const |
| Returns true if the specified category exists. | |
| virtual void | selectForce (const QString &) |
| Selects force by name. | |
| virtual void | selectForce (int) |
| Selects force by index. | |
| virtual void | selectCategory (const QString &) |
| Selects category by name. | |
| virtual void | selectCategory (int) |
| Selects category by index. | |
| virtual void | clearCreateList () |
| Clears the create list. | |
| virtual void | setSortingEnabled (bool) |
| Sets whether or not to allow list soring. | |
| virtual void | sizeColumns () |
| Sizes the columns to contents. | |
| virtual void | addItem (const _DtEntityPaletteItem &, int force, bool newItem=false) |
| If the entity model key type and force is not already in the list, add it Set newItem to true if this is an item that is a part of the model set. | |
| virtual void | addPaletteItem (const _DtEntityPaletteItem &) |
| Adds the new item into the logic. | |
| virtual void | removePaletteItem (const DtEntityMapperKey &key) |
| Removes an item from the internal list for any key that matches the supplied key. | |
| virtual void | showEntityTypesColumn (bool) |
| Shows/hides entity types column. | |
| virtual void | setEnabled (bool) |
| Enables/Disables Gui. | |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| DtEntityCreatePaletteLogic * | myLogic |
| std::map< std::string, QTreeWidgetItem * > | myItems |
A widget class for managing different camera views the currently selected observer can be placed in.
| makVrf::DtEntityCreatePalette::DtEntityCreatePalette | ( | makVrv::DtDe & | de, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | flags = 0 |
||
| ) |
CTOR.
| virtual makVrf::DtEntityCreatePalette::~DtEntityCreatePalette | ( | ) | [virtual] |
DTOR.
| virtual QPixmap makVrf::DtEntityCreatePalette::icon | ( | ) | const [virtual] |
Icon to be used in small display.
| virtual QString makVrf::DtEntityCreatePalette::iconText | ( | ) | const [virtual] |
Name to put next to the icon.
| virtual void makVrf::DtEntityCreatePalette::interceptCreation | ( | bool | intercept | ) | [virtual] |
Allow the user to intercept the creation signal so they may manage the creation in their own way If false the createPalette's logic calls DtVrfObjectManipulationManager's create with the default--create message to the backend is sent internally, user has no ability to control it.
Set this to true if you want to be able to send the create message to the backend from some other class. This would entail that in your class, you connect to recieve the entityPalette's signal_createObject signal, call interceptCreation(true), connect your class the DtVrfObjectManipulationManager's signal_createObject and then invoke DtVrfObjectManipulationManager's create with the makVrf::DtSignalCreationAndContinue signal type. NOTE if you do this make sure after in your stop create call you reconnect this!! So call it again with false so the regular creation mechanism is put back in place.
| void makVrf::DtEntityCreatePalette::setupUi | ( | QWidget * | p | ) | [protected] |
Sets up the contents of the widget onto the supplied parent.
Reimplemented in BHAVE::BHAVE3DGui::DtBhaveEntityCreatePalette.
| virtual void makVrf::DtEntityCreatePalette::clear | ( | ) | [protected, virtual] |
Clears contents of widget.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual void makVrf::DtEntityCreatePalette::update | ( | ) | [protected, virtual] |
Tells widget to update (redraw)
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual QString makVrf::DtEntityCreatePalette::currentForce | ( | ) | const [protected, virtual] |
Returns currently selected force.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual int makVrf::DtEntityCreatePalette::currentForceType | ( | ) | const [protected, virtual] |
Returns the current force type selected.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual int makVrf::DtEntityCreatePalette::currentForceIndex | ( | ) | const [protected, virtual] |
Returns the index of the currently selected force in the combo box.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual int makVrf::DtEntityCreatePalette::forceTypeAtIndex | ( | int | ) | const [protected, virtual] |
Force type at index.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual QString makVrf::DtEntityCreatePalette::currentCategory | ( | ) | const [protected, virtual] |
Returns currently selected category.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual int makVrf::DtEntityCreatePalette::numForces | ( | ) | const [protected, virtual] |
Returns number of forces.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual int makVrf::DtEntityCreatePalette::numCategories | ( | ) | const [protected, virtual] |
Returns number of categories.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual void makVrf::DtEntityCreatePalette::addForce | ( | const QString & | , |
| int | |||
| ) | [protected, virtual] |
Adds new force and force type.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual QString makVrf::DtEntityCreatePalette::force | ( | int | ) | const [protected, virtual] |
Returns the force string at the specified index.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual bool makVrf::DtEntityCreatePalette::hasForce | ( | int | ) | const [protected, virtual] |
Returns true if the specified force exists.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual void makVrf::DtEntityCreatePalette::addCategory | ( | const QString & | ) | [protected, virtual] |
Adds new category.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual void makVrf::DtEntityCreatePalette::insertCategoryBefore | ( | const QString & | , |
| const QString & | |||
| ) | [protected, virtual] |
Adds new category before the specified item.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual void makVrf::DtEntityCreatePalette::insertCategoryAfter | ( | const QString & | , |
| const QString & | |||
| ) | [protected, virtual] |
Adds new category after the specified item.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual bool makVrf::DtEntityCreatePalette::hasCategory | ( | const QString & | ) | const [protected, virtual] |
Returns true if the specified category exists.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual void makVrf::DtEntityCreatePalette::selectForce | ( | const QString & | ) | [protected, virtual] |
Selects force by name.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual void makVrf::DtEntityCreatePalette::selectForce | ( | int | ) | [protected, virtual] |
Selects force by index.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual void makVrf::DtEntityCreatePalette::selectCategory | ( | const QString & | ) | [protected, virtual] |
Selects category by name.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual void makVrf::DtEntityCreatePalette::selectCategory | ( | int | ) | [protected, virtual] |
Selects category by index.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual void makVrf::DtEntityCreatePalette::clearCreateList | ( | ) | [protected, virtual] |
Clears the create list.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual void makVrf::DtEntityCreatePalette::setSortingEnabled | ( | bool | ) | [protected, virtual] |
Sets whether or not to allow list soring.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual void makVrf::DtEntityCreatePalette::sizeColumns | ( | ) | [protected, virtual] |
Sizes the columns to contents.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual void makVrf::DtEntityCreatePalette::addItem | ( | const _DtEntityPaletteItem & | , |
| int | force, | ||
| bool | newItem = false |
||
| ) | [protected, virtual] |
If the entity model key type and force is not already in the list, add it Set newItem to true if this is an item that is a part of the model set.
Used for dynamically adding objects to the palette during runtime.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual void makVrf::DtEntityCreatePalette::addPaletteItem | ( | const _DtEntityPaletteItem & | ) | [protected, virtual] |
Adds the new item into the logic.
Be sure to re-execute filter if need be to get these items to show up in the dialog
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual void makVrf::DtEntityCreatePalette::removePaletteItem | ( | const DtEntityMapperKey & | key | ) | [protected, virtual] |
Removes an item from the internal list for any key that matches the supplied key.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual void makVrf::DtEntityCreatePalette::showEntityTypesColumn | ( | bool | ) | [protected, virtual] |
Shows/hides entity types column.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual void makVrf::DtEntityCreatePalette::setEnabled | ( | bool | ) | [protected, virtual] |
Enables/Disables Gui.
Implements makVrf::DtEntityCreatePaletteInterface.
| virtual void makVrf::DtEntityCreatePalette::slot_onForceChanged | ( | ) | [protected, virtual, slot] |
| virtual void makVrf::DtEntityCreatePalette::slot_onCategoryChanged | ( | ) | [protected, virtual, slot] |
| virtual void makVrf::DtEntityCreatePalette::slot_onShowEntityTypeColumn | ( | ) | [protected, virtual, slot] |
| virtual void makVrf::DtEntityCreatePalette::slot_onItemPressed | ( | QTreeWidgetItem * | , |
| int | |||
| ) | [protected, virtual, slot] |
makVrv::DtDe& makVrf::DtEntityCreatePalette::myDe [protected] |
std::map<std::string, QTreeWidgetItem*> makVrf::DtEntityCreatePalette::myItems [protected] |
| QVBoxLayout* makVrf::DtEntityCreatePalette::myMainLayout |