lux::LuxGLViewer Class Reference

#include <wxglviewer.h>

Inheritance diagram for lux::LuxGLViewer:
[legend]
Collaboration diagram for lux::LuxGLViewer:
[legend]

List of all members.

Classes

class  FontGenerator

Public Member Functions

 LuxGLViewer (wxWindow *parent, int textureW=256, int textureH=256)
 ~LuxGLViewer ()

Protected Member Functions

void OnPaint (wxPaintEvent &event)
void OnEraseBackground (wxEraseEvent &event)
void OnSize (wxSizeEvent &event)
void OnMouse (wxMouseEvent &event)
void OnTimer (wxTimerEvent &event)
virtual wxWindowGetWindow ()
virtual wxViewerSelection GetSelection ()
virtual void SetMode (wxViewerMode mode)
virtual void SetRulersEnabled (bool enabled, bool normalized)
virtual void SetLogoData (const unsigned char *data, unsigned int length)
virtual void SetZoom (const wxViewerSelection *selection)
virtual void SetSelection (const wxViewerSelection *selection)
virtual void SetHighlight (const wxViewerSelection *selection)
virtual void Reload ()
virtual void Reset ()

Private Member Functions

void CreateTextures ()
void DeleteTextures ()
Point TransformPoint (const Point &p)
Point InverseTransformPoint (const Point &p)
void DrawMarchingAnts (const wxViewerSelection &selection, float red, float green, float blue)
void DrawRulers ()

Private Attributes

wxGLContext m_glContext
int m_imageW
int m_imageH
const int m_textureW
const int m_textureH
int m_tilesX
int m_tilesY
int m_tilesNr
unsigned intm_tileTextureNames
int m_postScaleOffsetX
int m_postScaleOffsetY
int m_preScaleOffsetX
int m_preScaleOffsetY
float m_scale
float m_scaleExp
int m_viewX
int m_viewY
int m_viewW
int m_viewH
int m_windowW
int m_windowH
int m_prevWindowW
int m_prevWindowH
int m_prevMouseX
int m_prevMouseY
bool m_texturesReady
bool m_imageChanged
bool m_useAlpha
wxTimer * m_animTimer
int m_stipple
wxViewerSelection m_selection
bool m_selectionChanged
wxViewerSelection m_highlightSel
bool m_refreshMarchingAntsOnly
bool m_trackMousePos
bool m_rulersEnabled
int m_rulerSize
bool m_rulersNormalized
const unsigned char * m_logoData
unsigned int m_logoDataSize
wxViewerMode m_controlMode
wxViewerMode m_displayMode
class
lux::LuxGLViewer::FontGenerator 
m_fontgen

Detailed Description

Definition at line 42 of file wxglviewer.h.


Constructor & Destructor Documentation

LuxGLViewer::LuxGLViewer ( wxWindow parent,
int  textureW = 256,
int  textureH = 256 
)

Definition at line 85 of file wxglviewer.cpp.

References lux::EMPTY_VIEW, glAttribList, ID_ANIMATIONUPDATE, and lux::PANZOOM.

LuxGLViewer::~LuxGLViewer (  ) 

Definition at line 125 of file wxglviewer.cpp.

References m_animTimer, and m_tileTextureNames.


Member Function Documentation

void LuxGLViewer::CreateTextures (  )  [private]
void LuxGLViewer::DeleteTextures (  )  [private]

Definition at line 584 of file wxglviewer.cpp.

References m_tilesNr, m_tilesX, m_tilesY, and m_tileTextureNames.

Referenced by Reset(), and SetMode().

void LuxGLViewer::DrawMarchingAnts ( const wxViewerSelection selection,
float  red,
float  green,
float  blue 
) [private]

Definition at line 601 of file wxglviewer.cpp.

References lux::wxViewerSelection::GetBounds(), and m_stipple.

Referenced by OnPaint().

void LuxGLViewer::DrawRulers (  )  [private]
wxViewerSelection LuxGLViewer::GetSelection (  )  [protected, virtual]

Reimplemented from lux::wxViewerBase.

Definition at line 387 of file wxglviewer.cpp.

References m_selection.

wxWindow * LuxGLViewer::GetWindow (  )  [protected, virtual]

Implements lux::wxViewerBase.

Definition at line 383 of file wxglviewer.cpp.

lux::Point LuxGLViewer::InverseTransformPoint ( const Point p  )  [private]
void LuxGLViewer::OnEraseBackground ( wxEraseEvent &  event  )  [protected]

Definition at line 229 of file wxglviewer.cpp.

void LuxGLViewer::OnMouse ( wxMouseEvent &  event  )  [protected]
void LuxGLViewer::OnPaint ( wxPaintEvent &  event  )  [protected]
void LuxGLViewer::OnSize ( wxSizeEvent &  event  )  [protected]
void LuxGLViewer::OnTimer ( wxTimerEvent &  event  )  [protected]
void LuxGLViewer::Reload (  )  [protected, virtual]

Reimplemented from lux::wxViewerBase.

Definition at line 479 of file wxglviewer.cpp.

References m_imageChanged.

void LuxGLViewer::Reset (  )  [protected, virtual]

Reimplemented from lux::wxViewerBase.

Definition at line 484 of file wxglviewer.cpp.

References DeleteTextures(), and m_texturesReady.

void LuxGLViewer::SetHighlight ( const wxViewerSelection selection  )  [protected, virtual]

Reimplemented from lux::wxViewerBase.

Definition at line 470 of file wxglviewer.cpp.

References lux::wxViewerSelection::Clear(), and m_highlightSel.

virtual void lux::LuxGLViewer::SetLogoData ( const unsigned char *  data,
unsigned int  length 
) [inline, protected, virtual]

Reimplemented from lux::wxViewerBase.

Definition at line 60 of file wxglviewer.h.

References m_logoData, and m_logoDataSize.

void LuxGLViewer::SetMode ( wxViewerMode  mode  )  [protected, virtual]
void LuxGLViewer::SetRulersEnabled ( bool  enabled,
bool  normalized 
) [protected, virtual]

Reimplemented from lux::wxViewerBase.

Definition at line 420 of file wxglviewer.cpp.

References m_rulersEnabled, m_rulerSize, m_rulersNormalized, m_viewH, m_viewW, m_viewX, m_viewY, m_windowH, and m_windowW.

void LuxGLViewer::SetSelection ( const wxViewerSelection selection  )  [protected, virtual]

Reimplemented from lux::wxViewerBase.

Definition at line 461 of file wxglviewer.cpp.

References lux::wxViewerSelection::Clear(), and m_selection.

void LuxGLViewer::SetZoom ( const wxViewerSelection selection  )  [protected, virtual]
lux::Point LuxGLViewer::TransformPoint ( const Point p  )  [private]

Member Data Documentation

wxTimer* lux::LuxGLViewer::m_animTimer [private]

Definition at line 93 of file wxglviewer.h.

Referenced by ~LuxGLViewer().

Definition at line 106 of file wxglviewer.h.

Referenced by OnMouse(), and SetMode().

Definition at line 107 of file wxglviewer.h.

Referenced by CreateTextures(), OnMouse(), OnPaint(), and SetMode().

Referenced by DrawRulers(), and OnPaint().

wxGLContext lux::LuxGLViewer::m_glContext [private]

Definition at line 75 of file wxglviewer.h.

Referenced by OnPaint().

Definition at line 97 of file wxglviewer.h.

Referenced by OnPaint(), OnTimer(), and SetHighlight().

Definition at line 90 of file wxglviewer.h.

Referenced by OnPaint(), and Reload().

Definition at line 77 of file wxglviewer.h.

Referenced by CreateTextures(), DrawRulers(), OnMouse(), OnPaint(), OnSize(), and SetZoom().

Definition at line 77 of file wxglviewer.h.

Referenced by CreateTextures(), DrawRulers(), OnMouse(), OnPaint(), OnSize(), and SetZoom().

const unsigned char* lux::LuxGLViewer::m_logoData [private]

Definition at line 103 of file wxglviewer.h.

Referenced by CreateTextures(), SetLogoData(), and SetMode().

Definition at line 104 of file wxglviewer.h.

Referenced by CreateTextures(), and SetLogoData().

Definition at line 81 of file wxglviewer.h.

Referenced by InverseTransformPoint(), OnMouse(), OnPaint(), OnSize(), SetZoom(), and TransformPoint().

Definition at line 81 of file wxglviewer.h.

Referenced by InverseTransformPoint(), OnMouse(), OnPaint(), OnSize(), SetZoom(), and TransformPoint().

Definition at line 81 of file wxglviewer.h.

Referenced by InverseTransformPoint(), OnMouse(), OnPaint(), SetZoom(), and TransformPoint().

Definition at line 81 of file wxglviewer.h.

Referenced by InverseTransformPoint(), OnMouse(), OnPaint(), SetZoom(), and TransformPoint().

Definition at line 88 of file wxglviewer.h.

Referenced by DrawRulers(), and OnMouse().

Definition at line 88 of file wxglviewer.h.

Referenced by DrawRulers(), and OnMouse().

Definition at line 87 of file wxglviewer.h.

Referenced by OnSize().

Definition at line 87 of file wxglviewer.h.

Referenced by OnSize().

Definition at line 98 of file wxglviewer.h.

Referenced by OnPaint(), and OnTimer().

Definition at line 100 of file wxglviewer.h.

Referenced by OnMouse(), OnPaint(), OnSize(), and SetRulersEnabled().

Definition at line 101 of file wxglviewer.h.

Referenced by DrawRulers(), OnSize(), and SetRulersEnabled().

Definition at line 102 of file wxglviewer.h.

Referenced by DrawRulers(), and SetRulersEnabled().

float lux::LuxGLViewer::m_scale [private]

Definition at line 83 of file wxglviewer.h.

Referenced by OnMouse(), OnPaint(), and SetZoom().

Definition at line 95 of file wxglviewer.h.

Referenced by GetSelection(), OnMouse(), OnPaint(), OnTimer(), and SetSelection().

Definition at line 96 of file wxglviewer.h.

Referenced by OnMouse(), and OnTimer().

Definition at line 94 of file wxglviewer.h.

Referenced by DrawMarchingAnts(), and OnTimer().

Definition at line 78 of file wxglviewer.h.

Referenced by CreateTextures(), and OnPaint().

Definition at line 89 of file wxglviewer.h.

Referenced by CreateTextures(), OnMouse(), OnPaint(), OnSize(), Reset(), and SetMode().

Definition at line 78 of file wxglviewer.h.

Referenced by CreateTextures(), and OnPaint().

Definition at line 79 of file wxglviewer.h.

Referenced by CreateTextures(), and DeleteTextures().

Definition at line 79 of file wxglviewer.h.

Referenced by CreateTextures(), DeleteTextures(), and OnPaint().

Definition at line 79 of file wxglviewer.h.

Referenced by CreateTextures(), DeleteTextures(), and OnPaint().

Definition at line 80 of file wxglviewer.h.

Referenced by CreateTextures(), DeleteTextures(), OnPaint(), and ~LuxGLViewer().

Definition at line 99 of file wxglviewer.h.

Referenced by DrawRulers(), and OnMouse().

Definition at line 91 of file wxglviewer.h.

Referenced by CreateTextures(), and OnPaint().

Definition at line 85 of file wxglviewer.h.

Referenced by OnMouse(), OnPaint(), OnSize(), SetRulersEnabled(), and SetZoom().

Definition at line 85 of file wxglviewer.h.

Referenced by OnMouse(), OnPaint(), OnSize(), SetRulersEnabled(), and SetZoom().

Definition at line 84 of file wxglviewer.h.

Referenced by OnMouse(), OnPaint(), OnSize(), SetRulersEnabled(), and SetZoom().

Definition at line 84 of file wxglviewer.h.

Referenced by OnMouse(), OnPaint(), OnSize(), SetRulersEnabled(), and SetZoom().

Definition at line 86 of file wxglviewer.h.

Referenced by DrawRulers(), OnMouse(), OnPaint(), OnSize(), and SetRulersEnabled().

Definition at line 86 of file wxglviewer.h.

Referenced by DrawRulers(), OnMouse(), OnPaint(), OnSize(), and SetRulersEnabled().


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.2-20100208