Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

MenuBar Class Reference

#include <MenuBar.h>

List of all members.

Public Member Functions

 MenuBar (int mainWindowRef=0, int position=0)
void switchRenderMode ()
void enableModeSelection ()
void disableModeSelection ()
void updateFileList ()

Public Attributes

int selectedFile
string renderModeStr
string fileInfoStr

Private Attributes

GLUI * panel
GLUI_Listbox * openFileList
GLUI_Button * setFileBtn
GLUI_Button * addPathBtn


Detailed Description

This file defines the MenuBar shown at the top (=default) of the window.


Constructor & Destructor Documentation

MenuBar::MenuBar int  mainWindowRef = 0,
int  position = 0
 

Constructor of the menu bar.

Parameters:
mainWindowRef the name of the GLUI window to wich this subwindow is added
position the position of the menu bar = a GLUI constant, e.g GLUI_SUBWINDOW_TOP, GLUI_SUBWINDOW_BOTTOM, GLUI_SUBWINDOW_LEFT, GLUI_SUBWINDOW_RIGHT.


Member Function Documentation

void MenuBar::disableModeSelection  ) 
 

Disables the mode selection button.

void MenuBar::enableModeSelection  ) 
 

Enables the mode selection button.

void MenuBar::switchRenderMode  ) 
 

Switch between volume and slice visualisation.

void MenuBar::updateFileList  ) 
 

Update the contents of the current fileList from wich the user can select available files


Member Data Documentation

GLUI_Button* MenuBar::addPathBtn [private]
 

Button to add a path

string MenuBar::fileInfoStr
 

The info of the opened file that is shown in the statebar.

GLUI_Listbox* MenuBar::openFileList [private]
 

List that holds the file names in the current directory

GLUI* MenuBar::panel [private]
 

GLUI root element for this window

string MenuBar::renderModeStr
 

The renderMode name that is shown in the stateBar.

int MenuBar::selectedFile
 

Index of the selected file

GLUI_Button* MenuBar::setFileBtn [private]
 

Button to load the selected file


The documentation for this class was generated from the following files:
Generated on Tue Jan 24 00:36:47 2006 for ZVis by  doxygen 1.4.1