VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
makVrf::DtCreateMenuBuilder Class Reference

List of all members.

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 DtMenucreateMenu () 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::DtDemyDe
const DtModelSetmyModelSet
std::vector< DtEntityMapperKeymyIndividualMenuItems

Private Member Functions

 DtCreateMenuBuilder ()
 Not implemented.

Constructor & Destructor Documentation

Not implemented.


Member Function Documentation

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


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)