![]() |
VR-Forces 4.0.4 Class Documentation
|
Public Member Functions | |
| DtCreateMenuBuilder (makVrv::DtDe &, const DtModelSet *modelSet) | |
| virtual | ~DtCreateMenuBuilder () |
| virtual void | setIndividualMenuItems (const std::vector< DtEntityMapperKey > &) |
| If set before createMenu() is called, places these items not in a sub-menu, but, at the end of the menu as flat items. | |
| virtual DtMenu * | createMenu () const |
| Creates a menu from the loaded structure and returns a pointer to it (which must be deleted by the caller). | |
Protected Member Functions | |
| virtual bool | isIndividualMenuItem (const DtModelSetEntry *) const |
| virtual std::map< DtString, int > | categoriesWithOnlyOneForce (const DtModelSet *) const |
| Returns a mapped list of categories that only have a single force. | |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| const DtModelSet * | myModelSet |
| std::vector< DtEntityMapperKey > | myIndividualMenuItems |
Private Member Functions | |
| DtCreateMenuBuilder () | |
| Not implemented. | |
| makVrf::DtCreateMenuBuilder::DtCreateMenuBuilder | ( | ) | [private] |
Not implemented.
| makVrf::DtCreateMenuBuilder::DtCreateMenuBuilder | ( | makVrv::DtDe & | , |
| const DtModelSet * | modelSet | ||
| ) |
| virtual makVrf::DtCreateMenuBuilder::~DtCreateMenuBuilder | ( | ) | [virtual] |
| virtual void makVrf::DtCreateMenuBuilder::setIndividualMenuItems | ( | const std::vector< DtEntityMapperKey > & | ) | [virtual] |
If set before createMenu() is called, places these items not in a sub-menu, but, at the end of the menu as flat items.
The force type selected will be DtForceNeutral if DtForceAny is specified. If specific forces are specified, then it will be created with the first force in the list
| virtual DtMenu* makVrf::DtCreateMenuBuilder::createMenu | ( | ) | const [virtual] |
Creates a menu from the loaded structure and returns a pointer to it (which must be deleted by the caller).
The structure will be category-><all force="" types="" under="" category>="">-><object for="" each="" force="" type>=""> The menu will never be more than two levels deep
| virtual bool makVrf::DtCreateMenuBuilder::isIndividualMenuItem | ( | const DtModelSetEntry * | ) | const [protected, virtual] |
| virtual std::map<DtString, int> makVrf::DtCreateMenuBuilder::categoriesWithOnlyOneForce | ( | const DtModelSet * | ) | const [protected, virtual] |
Returns a mapped list of categories that only have a single force.
When creating then menu, these items will be flattened out. The value of the map is that force type
makVrv::DtDe& makVrf::DtCreateMenuBuilder::myDe [protected] |
const DtModelSet* makVrf::DtCreateMenuBuilder::myModelSet [protected] |
std::vector<DtEntityMapperKey> makVrf::DtCreateMenuBuilder::myIndividualMenuItems [protected] |