IS3D::Default3DMenu Class Reference

#include <Default3DMenu.H>

Inherits IS3D::DrawObj.

List of all members.

Public Types

enum  ItemState { ENABLED, DISABLED, HIGHLIGHTED, ACTIVATED }

Public Member Functions

 Default3DMenu (const std::string &configName)
 Default3DMenu (const std::string &configName, Array< std::string > disableTriggers, Array< std::string > enableTriggers)
virtual ~Default3DMenu ()
void trackerMove (EventRef e)
void trackerMoveInMenu (EventRef e)
void trackerMoveBtnDown (EventRef e)
void menuBtnOn (EventRef e)
void menuBtnOff (EventRef e)
ItemState getItemState (const int i)
void setItemState (const int i, ItemState s)
void menuEnable ()
void menuDisable ()
void chooseItem (const int i)
void draw ()
 Override this function and place your G3D draw calls inside it.

Protected Member Functions

void init (const std::string &configName, Array< std::string > disableTriggers, Array< std::string > enableTriggers)
void drawTextOnBox (const std::string &str, AABox box, Color4 color, Color4 outline)

Protected Attributes

std::string _title
Array< std::string > _items
Array< ItemState_states
CoordinateFrame _initialFrame
Array< AABox > _boxes
GFontRef _font
double _textHeight
double _padding
Color4 _outlineCol
Color4 _titleFG
Color4 _titleBG
Color4 _itemFG
Color4 _itemBG
Color4 _disabledFG
Color4 _disabledBG
Color4 _highltFG
Color4 _highltBG
Color4 _activatedFG
Color4 _activatedBG
FsaRef _fsa
CoordinateFrame _dragOffset
bool _firstDrag


Member Enumeration Documentation

Enumerator:
ENABLED 
DISABLED 
HIGHLIGHTED 
ACTIVATED 


Constructor & Destructor Documentation

IS3D::Default3DMenu::Default3DMenu ( const std::string &  configName  ) 

IS3D::Default3DMenu::Default3DMenu ( const std::string &  configName,
Array< std::string >  disableTriggers,
Array< std::string >  enableTriggers 
)

virtual IS3D::Default3DMenu::~Default3DMenu (  )  [virtual]


Member Function Documentation

void IS3D::Default3DMenu::trackerMove ( EventRef  e  ) 

void IS3D::Default3DMenu::trackerMoveInMenu ( EventRef  e  ) 

void IS3D::Default3DMenu::trackerMoveBtnDown ( EventRef  e  ) 

void IS3D::Default3DMenu::menuBtnOn ( EventRef  e  ) 

void IS3D::Default3DMenu::menuBtnOff ( EventRef  e  ) 

ItemState IS3D::Default3DMenu::getItemState ( const int  i  )  [inline]

References _states.

void IS3D::Default3DMenu::setItemState ( const int  i,
ItemState  s 
) [inline]

References _states.

void IS3D::Default3DMenu::menuEnable (  ) 

void IS3D::Default3DMenu::menuDisable (  ) 

void IS3D::Default3DMenu::chooseItem ( const int  i  ) 

void IS3D::Default3DMenu::draw (  )  [virtual]

Override this function and place your G3D draw calls inside it.

Implements IS3D::DrawObj.

void IS3D::Default3DMenu::init ( const std::string &  configName,
Array< std::string >  disableTriggers,
Array< std::string >  enableTriggers 
) [protected]

void IS3D::Default3DMenu::drawTextOnBox ( const std::string &  str,
AABox  box,
Color4  color,
Color4  outline 
) [protected]


Member Data Documentation

std::string IS3D::Default3DMenu::_title [protected]

Array<std::string> IS3D::Default3DMenu::_items [protected]

Referenced by getItemState(), and setItemState().

CoordinateFrame IS3D::Default3DMenu::_initialFrame [protected]

Array<AABox> IS3D::Default3DMenu::_boxes [protected]

GFontRef IS3D::Default3DMenu::_font [protected]

double IS3D::Default3DMenu::_padding [protected]

Color4 IS3D::Default3DMenu::_titleFG [protected]

Color4 IS3D::Default3DMenu::_titleBG [protected]

Color4 IS3D::Default3DMenu::_itemFG [protected]

Color4 IS3D::Default3DMenu::_itemBG [protected]

Color4 IS3D::Default3DMenu::_highltFG [protected]

Color4 IS3D::Default3DMenu::_highltBG [protected]

CoordinateFrame IS3D::Default3DMenu::_dragOffset [protected]


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

Generated on Wed Jan 26 06:31:20 2011 for IS3D by  doxygen 1.5.6