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

vuBasicSubViewer Class Reference

#include <vuBasicSubViewer.h>

Inheritance diagram for vuBasicSubViewer:

Inheritance graph
[legend]
Collaboration diagram for vuBasicSubViewer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vuBasicSubViewer (wxWindow *parent, vuString title="")
 ~vuBasicSubViewer ()
void init (bool showControl=true)
 this method creates the whole SubViewer
void redraw ()
 redraws the canvas
void glOnMouse (wxMouseEvent &event)
bool isControlVisible ()
void showControl (bool doShow=true)

Protected Member Functions

virtual vuBasicSubViewerCanvasgetCanvas ()=0
virtual void addLeftRight (wxSizer *verSpacer, wxWindow *control)=0
void showHideControl ()
void makeCanvasSizeEqual ()
bool TransferDataToWindow ()
 Part of the wxWindows architecture -- there is no data to transfer.
bool TransferDataFromWindow ()
 Part of the wxWindows architecture -- there is no data to transfer.

Protected Attributes

wxBoxSizer * m_MainSizer
 wxWindows GUI
wxWindow * m_ControlWindow
int m_ControlPosition
 position of the control window
bool m_IsMakeCanvasSizeEqual

Constructor & Destructor Documentation

vuBasicSubViewer::vuBasicSubViewer wxWindow *  parent,
vuString  title = ""
 

Definition at line 25 of file vuBasicSubViewer.cpp.

vuBasicSubViewer::~vuBasicSubViewer  ) 
 

Definition at line 74 of file vuBasicSubViewer.cpp.

References m_ControlWindow, and m_MainSizer.


Member Function Documentation

virtual void vuBasicSubViewer::addLeftRight wxSizer *  verSpacer,
wxWindow *  control
[protected, pure virtual]
 

adds all UI control elements that should appear to the left or to the right of the canvas (subclass responsibility)

Implemented in vuFBRSubViewer< SIZE, TYPE >, vuSimpleFVRDialog, and vuFBRSubViewer< SIZE, byte >.

Referenced by init().

virtual vuBasicSubViewerCanvas* vuBasicSubViewer::getCanvas  )  [protected, pure virtual]
 

returns a "newed" instance of a vuBasicSubViewerCanvas (subclass responsibility)

Implemented in vuFBRSubViewer< SIZE, TYPE >, vuSimpleFVRDialog, and vuFBRSubViewer< SIZE, byte >.

Referenced by glOnMouse(), init(), redraw(), and showControl().

void vuBasicSubViewer::glOnMouse wxMouseEvent &  event  ) 
 

Definition at line 89 of file vuBasicSubViewer.cpp.

References getCanvas(), makeCanvasSizeEqual(), vuGLCanvas::redraw(), and showHideControl().

Here is the call graph for this function:

void vuBasicSubViewer::init bool  showControl = true  ) 
 

this method creates the whole SubViewer

Note:
this method MUST be called immediataly after instantiation

Definition at line 35 of file vuBasicSubViewer.cpp.

References addLeftRight(), getCanvas(), m_ControlPosition, m_ControlWindow, and m_MainSizer.

Here is the call graph for this function:

bool vuBasicSubViewer::isControlVisible  ) 
 

Definition at line 103 of file vuBasicSubViewer.cpp.

References m_ControlPosition.

Referenced by showControl().

void vuBasicSubViewer::makeCanvasSizeEqual  )  [protected]
 

Definition at line 167 of file vuBasicSubViewer.cpp.

References dword, vuBasicUtility::getCanvas(), vuGLCanvas::getHeight(), vuGLCanvas::getWidth(), m_ControlPosition, m_ControlWindow, m_IsMakeCanvasSizeEqual, NULL, SCREEN_HEIGHT, and SCREEN_WIDTH.

Referenced by glOnMouse(), and vuSimpleFVRDialog::OnButtonEqualSize().

Here is the call graph for this function:

void vuBasicSubViewer::redraw  ) 
 

redraws the canvas

Definition at line 80 of file vuBasicSubViewer.cpp.

References getCanvas(), and vuGLCanvas::redraw().

Here is the call graph for this function:

void vuBasicSubViewer::showControl bool  doShow = true  ) 
 

Definition at line 113 of file vuBasicSubViewer.cpp.

References dword, getCanvas(), vuGLCanvas::getHeight(), vuGLCanvas::getWidth(), isControlVisible(), m_ControlPosition, m_ControlWindow, and m_MainSizer.

Referenced by showHideControl().

Here is the call graph for this function:

void vuBasicSubViewer::showHideControl  )  [protected]
 

Definition at line 160 of file vuBasicSubViewer.cpp.

References m_ControlPosition, and showControl().

Referenced by glOnMouse().

Here is the call graph for this function:

bool vuBasicSubViewer::TransferDataFromWindow  )  [inline, protected]
 

Part of the wxWindows architecture -- there is no data to transfer.

Definition at line 67 of file vuBasicSubViewer.h.

bool vuBasicSubViewer::TransferDataToWindow  )  [inline, protected]
 

Part of the wxWindows architecture -- there is no data to transfer.

Definition at line 65 of file vuBasicSubViewer.h.


Member Data Documentation

int vuBasicSubViewer::m_ControlPosition [protected]
 

position of the control window

Definition at line 79 of file vuBasicSubViewer.h.

Referenced by init(), isControlVisible(), makeCanvasSizeEqual(), showControl(), and showHideControl().

wxWindow* vuBasicSubViewer::m_ControlWindow [protected]
 

Definition at line 72 of file vuBasicSubViewer.h.

Referenced by init(), makeCanvasSizeEqual(), showControl(), and ~vuBasicSubViewer().

bool vuBasicSubViewer::m_IsMakeCanvasSizeEqual [protected]
 

Definition at line 80 of file vuBasicSubViewer.h.

Referenced by makeCanvasSizeEqual().

wxBoxSizer* vuBasicSubViewer::m_MainSizer [protected]
 

wxWindows GUI

Definition at line 71 of file vuBasicSubViewer.h.

Referenced by init(), showControl(), and ~vuBasicSubViewer().


The documentation for this class was generated from the following files:
Generated on Wed Dec 15 21:21:11 2004 for vuVolume by  doxygen 1.3.9.1