NIREP

NIREPDisplay Class Reference

This class takes care of placing views and labels into a grid format for this window. This class will also take care of linking the views and deleting a view. More...

Inheritance diagram for NIREPDisplay:
Collaboration diagram for NIREPDisplay:

List of all members.

Public Member Functions

void CreateGrid ()
 This function is the main function for this class. This will add in the.
void CreateNIREPDisplay (const std::string &FileName)
void DeleteWidget (const int &Location)
 This function works but needs to be changed.
void EditPanel (int row, int col, bool editViewPanel=false)
int GetColumns ()
 Get the number of columns from the sizer.
DisplayDescriptionGetDisplayDescription ()
 Return the DisplayDescription that is created in this class from.
wxString GetFileName ()
 Get the display description filename for this display.
PanelGetPanel (int r, int c)
PanelGetPanel (int i)
wxStaticText * GetPanelTitle (int panelID)
 Get the label of the panel that is specfied. This is.
int GetPresetView ()
void LinkViews (bool val)
 Link all the views (true) or unlink all the views (false)
void LinkViews (std::vector< int > Panels)
 Link the panels that are passed in.
 NIREPDisplay (wxWindow *parent, NIREPEvaluator *ev, const std::string &FileName="", int id=wxID_ANY, const wxString &title=wxT(""), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxT("Frame"))
 Class constructor.
void OnAddColumnClick (wxCommandEvent &event)
 wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU
void OnAddLandmarksClick (wxCommandEvent &event)
 wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU
void OnAddObjectMapsClick (wxCommandEvent &event)
 wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU
void OnAddRowClick (wxCommandEvent &event)
 wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU
void OnCloseClick (wxCommandEvent &event)
 wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU
void OnEditDisplayFileClick (wxCommandEvent &event)
 wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU
void OnEditPanelClick (wxCommandEvent &event)
 wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU
void OnGroup1Click (wxCommandEvent &event)
 wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU
void OnGroup2Click (wxCommandEvent &event)
 wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU
void OnGroup3Click (wxCommandEvent &event)
 wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU
void OnLockAllClick (wxCommandEvent &event)
 wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU
void OnLockColsClick (wxCommandEvent &event)
 wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU
void OnLockRowsClick (wxCommandEvent &event)
 wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU
void OnNewWindowClick (wxCommandEvent &event)
 wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU
void OnNextGroupClick (wxCommandEvent &event)
 wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU
void OnOpenDisplayDescriptionClick (wxCommandEvent &event)
 wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU
void OnPreviousGroupClick (wxCommandEvent &event)
 wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU
void OnSaveClick (wxCommandEvent &event)
 wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU
void OnSingleAlgorithmComparisonClick (wxCommandEvent &event)
 wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU
void OnTurnOffAllCursorsClick (wxCommandEvent &event)
 Turn off cursors for all displayed widgets.
void OnTurnOffTitlesClick (wxCommandEvent &event)
 wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU
void OnTurnOnAllCursorsClick (wxCommandEvent &event)
 Turn on cursors for all displayed widgets.
void OnTurnOnTitlesClick (wxCommandEvent &event)
 wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU
void OnUnLockAllClick (wxCommandEvent &event)
 wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU
void RemoveAll (void)
 Remove all the panels from this window.
void Render (void)
 Run through all the panels and call render on them.
void SetColumns (int col)
 Set the size of the columns and run through the sizer and add growable columns if the sizer had less columns then what was passed in.
void SetDisplayDescription (DisplayDescription *dd)
void SetFileName (wxString fn)
 Set the display discription filename for this display.
void SetPresetView (int pv)
void ShowCursors (bool value)
 Run through the panels and show cursors if value true or turn them off if value is false.
void UnLinkViews (std::vector< int > LinkedPanels, std::vector< int > UnLinkedPanels)
 Run through the unlinked panels. Check the linked vector in each unlinked panel and make sure that if there is a panel in the linkedPanels and in the panel that is not supposed to be linked that the panel is taken out. I.E. if linkedPanels has 1,2 and unlinked panels has 0,3,4 and panel 0 has panel 1 in the linked panels vector that we take panel 1 out.
void UpdatePanels ()
 ~NIREPDisplay ()
 Class Destructor.

Detailed Description

This class takes care of placing views and labels into a grid format for this window. This class will also take care of linking the views and deleting a view.

Notes
  • Work in progress
Dependencies
  • Libraries:
Bugs
  • None that I know of right now.
Change Log

Constructor & Destructor Documentation

NIREPDisplay::NIREPDisplay ( wxWindow *  parent,
NIREPEvaluator ev,
const std::string &  FileName = "",
int  id = wxID_ANY,
const wxString &  title = wxT(""),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxDEFAULT_FRAME_STYLE,
const wxString &  name = wxT ("Frame") 
)

Class constructor.

Parameters:
FileNamestd::string
evNIREPEvaluator
idint
titleconst wxString&
posconst wxPoint&
sizewxSize&
stylelong
nameconst wxString&
parentwxWindow*
NIREPDisplay::~NIREPDisplay ( )

Class Destructor.


Member Function Documentation

void NIREPDisplay::CreateGrid ( )

This function is the main function for this class. This will add in the.

labels and the views based on the NIREPDisplay description. So this function will run through an outer loop of the rows and an inner loop twice. The first for loop runs through the columns to place the labels and then run another for loop to place the views in.

void NIREPDisplay::CreateNIREPDisplay ( const std::string &  FileName)
void NIREPDisplay::DeleteWidget ( const int &  Location)

This function works but needs to be changed.

This will delete a widget and push all the other items behind it in the sizer one space forward. So the problem comes in that a widget might go into a slot for the label and a label will go into a slot for the view. So this kind of works but needs to be changed.

Parameters:
Locationconst int
void NIREPDisplay::EditPanel ( int  row,
int  col,
bool  editViewPanel = false 
)
int NIREPDisplay::GetColumns ( ) [inline]

Get the number of columns from the sizer.

Returns:
int the number of the columns
DisplayDescription* NIREPDisplay::GetDisplayDescription ( ) [inline]

Return the DisplayDescription that is created in this class from.

the file that is passed in the constructor.

Returns:
DisplayDescription*
wxString NIREPDisplay::GetFileName ( ) [inline]

Get the display description filename for this display.

Panel* NIREPDisplay::GetPanel ( int  i) [inline]
Panel* NIREPDisplay::GetPanel ( int  r,
int  c 
) [inline]
wxStaticText * NIREPDisplay::GetPanelTitle ( int  panelID)

Get the label of the panel that is specfied. This is.

mostly used in the panelForm so that the user can change the label.

Parameters:
panelIDint
Returns:
wxStaticText *
int NIREPDisplay::GetPresetView ( )
void NIREPDisplay::LinkViews ( bool  val)

Link all the views (true) or unlink all the views (false)

Parameters:
valbool
void NIREPDisplay::LinkViews ( std::vector< int >  Panels)

Link the panels that are passed in.

Parameters:
Panelsstd::vector<int>
void NIREPDisplay::OnAddColumnClick ( wxCommandEvent &  event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU

void NIREPDisplay::OnAddLandmarksClick ( wxCommandEvent &  event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU

void NIREPDisplay::OnAddObjectMapsClick ( wxCommandEvent &  event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU

void NIREPDisplay::OnAddRowClick ( wxCommandEvent &  event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU

void NIREPDisplay::OnCloseClick ( wxCommandEvent &  event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU

void NIREPDisplay::OnEditDisplayFileClick ( wxCommandEvent &  event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU

void NIREPDisplay::OnEditPanelClick ( wxCommandEvent &  event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU

void NIREPDisplay::OnGroup1Click ( wxCommandEvent &  event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU

void NIREPDisplay::OnGroup2Click ( wxCommandEvent &  event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU

void NIREPDisplay::OnGroup3Click ( wxCommandEvent &  event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU

void NIREPDisplay::OnLockAllClick ( wxCommandEvent &  event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU

void NIREPDisplay::OnLockColsClick ( wxCommandEvent &  event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU

void NIREPDisplay::OnLockRowsClick ( wxCommandEvent &  event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU

void NIREPDisplay::OnNewWindowClick ( wxCommandEvent &  event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU

void NIREPDisplay::OnNextGroupClick ( wxCommandEvent &  event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU

void NIREPDisplay::OnOpenDisplayDescriptionClick ( wxCommandEvent &  event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU

void NIREPDisplay::OnPreviousGroupClick ( wxCommandEvent &  event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU

void NIREPDisplay::OnSaveClick ( wxCommandEvent &  event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU

void NIREPDisplay::OnSingleAlgorithmComparisonClick ( wxCommandEvent &  event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU

void NIREPDisplay::OnTurnOffAllCursorsClick ( wxCommandEvent &  event)

Turn off cursors for all displayed widgets.

void NIREPDisplay::OnTurnOffTitlesClick ( wxCommandEvent &  event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU

void NIREPDisplay::OnTurnOnAllCursorsClick ( wxCommandEvent &  event)

Turn on cursors for all displayed widgets.

void NIREPDisplay::OnTurnOnTitlesClick ( wxCommandEvent &  event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU

void NIREPDisplay::OnUnLockAllClick ( wxCommandEvent &  event)

wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU

void NIREPDisplay::RemoveAll ( void  )

Remove all the panels from this window.

void NIREPDisplay::Render ( void  )

Run through all the panels and call render on them.

void NIREPDisplay::SetColumns ( int  col)

Set the size of the columns and run through the sizer and add growable columns if the sizer had less columns then what was passed in.

Parameters:
colint
void NIREPDisplay::SetDisplayDescription ( DisplayDescription dd) [inline]
void NIREPDisplay::SetFileName ( wxString  fn) [inline]

Set the display discription filename for this display.

void NIREPDisplay::SetPresetView ( int  pv)
NIREPDisplay::ShowCursors ( bool  value)

Run through the panels and show cursors if value true or turn them off if value is false.

void NIREPDisplay::UnLinkViews ( std::vector< int >  LinkedPanels,
std::vector< int >  UnLinkedPanels 
)

Run through the unlinked panels. Check the linked vector in each unlinked panel and make sure that if there is a panel in the linkedPanels and in the panel that is not supposed to be linked that the panel is taken out. I.E. if linkedPanels has 1,2 and unlinked panels has 0,3,4 and panel 0 has panel 1 in the linked panels vector that we take panel 1 out.

Parameters:
LinkedPanelsstd::vector<int>
UnLinkedPanelsstd::vector<int>
void NIREPDisplay::UpdatePanels ( )
 All Classes Functions Variables Typedefs Enumerations Enumerator