Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

vuFBRSubViewer.cpp

Go to the documentation of this file.
00001 #include "vuFBRSubViewer.h"
00002 
00003 #include <iostream>
00004 #include "../vuUtilityWindow.h"
00005 #include "../wxUtilities/vuBasicUtility.h"
00006 
00007 #define WINDOW_TITLE "FBR"
00008 
00009 enum {
00010   idCANVAS,
00011   idMETHOD
00012 };
00013 
00014 //****************************************************************************
00015 //************************* The constructor **********************************
00016 //****************************************************************************
00017 
00018 template <int S, class T>
00019 vuFBRSubViewer<S,T>::vuFBRSubViewer(wxWindow *parent)
00020     : vuBasicSubViewer(parent, WINDOW_TITLE)
00021 {
00022   m_Canvas = new vuFBRSubCanvas<S,T>(this, idCANVAS);
00023   m_Canvas->SetSize(200,200);
00024 
00025   m_CHOICEmethod = NULL;
00026 }
00027 
00028 template <int S, class T>
00029 vuFBRSubViewer<S,T>::~vuFBRSubViewer()
00030 {
00031   m_Canvas       = NULL;
00032 
00033   m_CHOICEmethod = NULL;
00034 }
00035 
00036 template <int S, class T>
00037 void vuFBRSubViewer<S,T>::setInteractive(vuSphericInteractive<S,T> *ia)
00038 {
00039   m_Canvas->setInteractive(ia);
00040 }
00041 
00042 template <int S, class T>
00043 vuBasicSubViewerCanvas *vuFBRSubViewer<S,T>::getCanvas()
00044 {
00045   return m_Canvas;
00046 }
00047 
00048 template <int S, class T>
00049 void vuFBRSubViewer<S,T>::addLeftRight(wxSizer *sizer, wxWindow *control)
00050 {
00051   wxStaticBox      *borderBox   = NULL;
00052   wxStaticBoxSizer *borderSizer = NULL;
00053   wxFlexGridSizer  *flexGrid    = NULL;
00054 
00055   // --- file section ------------------------------------------------------
00056 
00057   borderBox   = new wxStaticBox(control, -1, "File", wxDefaultPosition,
00058                                 wxSize(-1,-1),wxCAPTION);
00059   borderSizer = new wxStaticBoxSizer(borderBox, wxVERTICAL);
00060   flexGrid    = new wxFlexGridSizer(2,5,5);
00061 
00062   // comparison method
00063   {
00064     m_CHOICEmethod = 
00065       new wxChoice(control, idMETHOD, wxDefaultPosition, wxSize(130,20),
00066                    0, NULL, wxCAPTION, wxDefaultValidator, "Method");
00067 
00068     m_CHOICEmethod->Append("Spatial");
00069     m_CHOICEmethod->Append("Spatial Delta");
00070     m_CHOICEmethod->Append("Freq. Ampl.");
00071     m_CHOICEmethod->Append("Freq. Ampl. Delta");
00072     m_CHOICEmethod->Append("Freq. Phase");
00073     m_CHOICEmethod->Append("Freq. Phase Delta");
00074     m_CHOICEmethod->Append("Freq. Real");
00075     m_CHOICEmethod->Append("Freq. Real Delta");
00076     m_CHOICEmethod->Append("Freq. Imag.");
00077     m_CHOICEmethod->Append("Freq. Imag. Delta");
00078 
00079     m_CHOICEmethod->SetSelection(0);
00080   }
00081 
00082   flexGrid->Add(80,10);
00083   flexGrid->Add(m_CHOICEmethod);
00084   
00085   borderSizer->Add(flexGrid);
00086   sizer->Add(borderSizer,0,wxEXPAND,5);
00087   sizer->Add(0,10);
00088 }
00089 
00090 //****************************************************************************
00091 //************************* The vuFBRSubViewer event table ****************
00092 //****************************************************************************
00093 
00094 //BEGIN_EVENT_TABLE(vuFBRSubViewer, vuBasicSubViewer)
00095 //END_EVENT_TABLE()

Generated on Wed Dec 15 21:20:33 2004 for vuVolume by  doxygen 1.3.9.1