#include <wxglviewer.h>
Definition at line 42 of file wxglviewer.h.
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.
void LuxGLViewer::CreateTextures | ( | ) | [private] |
Definition at line 501 of file wxglviewer.cpp.
References luxStatistics(), m_displayMode, m_imageH, m_imageW, m_logoData, m_logoDataSize, m_textureH, m_texturesReady, m_textureW, m_tilesNr, m_tilesX, m_tilesY, m_tileTextureNames, m_useAlpha, cimg_library::cimg::min(), and lux::RENDER_VIEW.
Referenced by OnPaint().
void LuxGLViewer::DeleteTextures | ( | ) | [private] |
Definition at line 584 of file wxglviewer.cpp.
References m_tilesNr, m_tilesX, m_tilesY, and m_tileTextureNames.
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] |
Definition at line 632 of file wxglviewer.cpp.
References lux::LuxGLViewer::FontGenerator::DrawText(), m_fontgen, m_imageH, m_imageW, m_prevMouseX, m_prevMouseY, m_rulerSize, m_rulersNormalized, m_scale, m_trackMousePos, m_windowH, m_windowW, cimg_library::cimg::max(), TransformPoint(), lux::Point::x, and lux::Point::y.
Referenced by OnPaint().
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] |
Definition at line 596 of file wxglviewer.cpp.
References m_postScaleOffsetX, m_postScaleOffsetY, m_preScaleOffsetX, m_preScaleOffsetY, m_scale, lux::Point::x, and lux::Point::y.
Referenced by OnMouse().
void LuxGLViewer::OnEraseBackground | ( | wxEraseEvent & | event | ) | [protected] |
Definition at line 229 of file wxglviewer.cpp.
void LuxGLViewer::OnMouse | ( | wxMouseEvent & | event | ) | [protected] |
Definition at line 271 of file wxglviewer.cpp.
References lux::wxViewerSelection::GetCorner2(), InverseTransformPoint(), cimg_library::log(), m_controlMode, m_displayMode, m_imageH, m_imageW, m_postScaleOffsetX, m_postScaleOffsetY, m_preScaleOffsetX, m_preScaleOffsetY, m_prevMouseX, m_prevMouseY, m_rulersEnabled, m_scale, m_scaleExp, m_selection, m_selectionChanged, m_texturesReady, m_trackMousePos, m_viewH, m_viewW, m_viewX, m_viewY, m_windowH, m_windowW, cimg_library::cimg::min(), p, lux::PANZOOM, cimg_library::pow(), lux::RENDER_VIEW, lux::SELECTION, lux::wxViewerSelection::SetBounds(), lux::wxViewerSelection::SetCorner2(), TransformPoint(), lux::Point::x, and lux::Point::y.
void LuxGLViewer::OnPaint | ( | wxPaintEvent & | event | ) | [protected] |
Definition at line 132 of file wxglviewer.cpp.
References CreateTextures(), DrawMarchingAnts(), DrawRulers(), lux::wxViewerSelection::HasSize(), lux::LuxGLViewer::FontGenerator::Init(), lux::LOGO_VIEW, luxFramebuffer(), luxStatistics(), m_displayMode, m_fontgen, m_glContext, m_highlightSel, m_imageChanged, m_imageH, m_imageW, m_postScaleOffsetX, m_postScaleOffsetY, m_preScaleOffsetX, m_preScaleOffsetY, m_refreshMarchingAntsOnly, m_rulersEnabled, m_scale, m_scaleExp, m_selection, m_textureH, m_texturesReady, m_textureW, m_tilesX, m_tilesY, m_tileTextureNames, m_useAlpha, m_viewH, m_viewW, m_viewX, m_viewY, m_windowH, m_windowW, cimg_library::cimg::min(), and lux::RENDER_VIEW.
void LuxGLViewer::OnSize | ( | wxSizeEvent & | event | ) | [protected] |
Definition at line 235 of file wxglviewer.cpp.
References m_imageH, m_imageW, m_postScaleOffsetX, m_postScaleOffsetY, m_prevWindowH, m_prevWindowW, m_rulersEnabled, m_rulerSize, m_texturesReady, m_viewH, m_viewW, m_viewX, m_viewY, m_windowH, m_windowW, TransformPoint(), lux::Point::x, and lux::Point::y.
void LuxGLViewer::OnTimer | ( | wxTimerEvent & | event | ) | [protected] |
Definition at line 490 of file wxglviewer.cpp.
References lux::wxViewerSelection::HasSize(), m_highlightSel, m_refreshMarchingAntsOnly, m_selection, m_selectionChanged, and m_stipple.
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] |
Reimplemented from lux::wxViewerBase.
Definition at line 391 of file wxglviewer.cpp.
References DeleteTextures(), lux::EMPTY_VIEW, lux::LOGO_VIEW, m_controlMode, m_displayMode, m_logoData, m_texturesReady, and lux::RENDER_VIEW.
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] |
Reimplemented from lux::wxViewerBase.
Definition at line 439 of file wxglviewer.cpp.
References lux::wxViewerSelection::GetBounds(), cimg_library::log(), m_imageH, m_imageW, m_postScaleOffsetX, m_postScaleOffsetY, m_preScaleOffsetX, m_preScaleOffsetY, m_scale, m_scaleExp, m_viewH, m_viewW, m_viewX, m_viewY, cimg_library::cimg::max(), and cimg_library::cimg::min().
lux::Point LuxGLViewer::TransformPoint | ( | const Point & | p | ) | [private] |
Definition at line 591 of file wxglviewer.cpp.
References m_postScaleOffsetX, m_postScaleOffsetY, m_preScaleOffsetX, m_preScaleOffsetY, m_scale, lux::Point::x, and lux::Point::y.
Referenced by DrawRulers(), OnMouse(), and OnSize().
wxTimer* lux::LuxGLViewer::m_animTimer [private] |
Definition at line 93 of file wxglviewer.h.
Referenced by ~LuxGLViewer().
wxViewerMode lux::LuxGLViewer::m_controlMode [private] |
Definition at line 106 of file wxglviewer.h.
wxViewerMode lux::LuxGLViewer::m_displayMode [private] |
Definition at line 107 of file wxglviewer.h.
Referenced by CreateTextures(), OnMouse(), OnPaint(), and SetMode().
class lux::LuxGLViewer::FontGenerator lux::LuxGLViewer::m_fontgen [private] |
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().
bool lux::LuxGLViewer::m_imageChanged [private] |
Definition at line 90 of file wxglviewer.h.
int lux::LuxGLViewer::m_imageH [private] |
Definition at line 77 of file wxglviewer.h.
Referenced by CreateTextures(), DrawRulers(), OnMouse(), OnPaint(), OnSize(), and SetZoom().
int lux::LuxGLViewer::m_imageW [private] |
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().
unsigned int lux::LuxGLViewer::m_logoDataSize [private] |
Definition at line 104 of file wxglviewer.h.
Referenced by CreateTextures(), and SetLogoData().
int lux::LuxGLViewer::m_postScaleOffsetX [private] |
Definition at line 81 of file wxglviewer.h.
Referenced by InverseTransformPoint(), OnMouse(), OnPaint(), OnSize(), SetZoom(), and TransformPoint().
int lux::LuxGLViewer::m_postScaleOffsetY [private] |
Definition at line 81 of file wxglviewer.h.
Referenced by InverseTransformPoint(), OnMouse(), OnPaint(), OnSize(), SetZoom(), and TransformPoint().
int lux::LuxGLViewer::m_preScaleOffsetX [private] |
Definition at line 81 of file wxglviewer.h.
Referenced by InverseTransformPoint(), OnMouse(), OnPaint(), SetZoom(), and TransformPoint().
int lux::LuxGLViewer::m_preScaleOffsetY [private] |
Definition at line 81 of file wxglviewer.h.
Referenced by InverseTransformPoint(), OnMouse(), OnPaint(), SetZoom(), and TransformPoint().
int lux::LuxGLViewer::m_prevMouseX [private] |
Definition at line 88 of file wxglviewer.h.
Referenced by DrawRulers(), and OnMouse().
int lux::LuxGLViewer::m_prevMouseY [private] |
Definition at line 88 of file wxglviewer.h.
Referenced by DrawRulers(), and OnMouse().
int lux::LuxGLViewer::m_prevWindowH [private] |
Definition at line 87 of file wxglviewer.h.
Referenced by OnSize().
int lux::LuxGLViewer::m_prevWindowW [private] |
Definition at line 87 of file wxglviewer.h.
Referenced by OnSize().
bool lux::LuxGLViewer::m_refreshMarchingAntsOnly [private] |
Definition at line 98 of file wxglviewer.h.
bool lux::LuxGLViewer::m_rulersEnabled [private] |
Definition at line 100 of file wxglviewer.h.
Referenced by OnMouse(), OnPaint(), OnSize(), and SetRulersEnabled().
int lux::LuxGLViewer::m_rulerSize [private] |
Definition at line 101 of file wxglviewer.h.
Referenced by DrawRulers(), OnSize(), and SetRulersEnabled().
bool lux::LuxGLViewer::m_rulersNormalized [private] |
Definition at line 102 of file wxglviewer.h.
Referenced by DrawRulers(), and SetRulersEnabled().
float lux::LuxGLViewer::m_scale [private] |
Definition at line 82 of file wxglviewer.h.
Referenced by DrawRulers(), InverseTransformPoint(), OnMouse(), OnPaint(), SetZoom(), and TransformPoint().
float lux::LuxGLViewer::m_scaleExp [private] |
Definition at line 83 of file wxglviewer.h.
Definition at line 95 of file wxglviewer.h.
Referenced by GetSelection(), OnMouse(), OnPaint(), OnTimer(), and SetSelection().
bool lux::LuxGLViewer::m_selectionChanged [private] |
Definition at line 96 of file wxglviewer.h.
int lux::LuxGLViewer::m_stipple [private] |
Definition at line 94 of file wxglviewer.h.
Referenced by DrawMarchingAnts(), and OnTimer().
const int lux::LuxGLViewer::m_textureH [private] |
Definition at line 78 of file wxglviewer.h.
Referenced by CreateTextures(), and OnPaint().
bool lux::LuxGLViewer::m_texturesReady [private] |
Definition at line 89 of file wxglviewer.h.
Referenced by CreateTextures(), OnMouse(), OnPaint(), OnSize(), Reset(), and SetMode().
const int lux::LuxGLViewer::m_textureW [private] |
Definition at line 78 of file wxglviewer.h.
Referenced by CreateTextures(), and OnPaint().
int lux::LuxGLViewer::m_tilesNr [private] |
Definition at line 79 of file wxglviewer.h.
Referenced by CreateTextures(), and DeleteTextures().
int lux::LuxGLViewer::m_tilesX [private] |
Definition at line 79 of file wxglviewer.h.
Referenced by CreateTextures(), DeleteTextures(), and OnPaint().
int lux::LuxGLViewer::m_tilesY [private] |
Definition at line 79 of file wxglviewer.h.
Referenced by CreateTextures(), DeleteTextures(), and OnPaint().
unsigned int* lux::LuxGLViewer::m_tileTextureNames [private] |
Definition at line 80 of file wxglviewer.h.
Referenced by CreateTextures(), DeleteTextures(), OnPaint(), and ~LuxGLViewer().
bool lux::LuxGLViewer::m_trackMousePos [private] |
Definition at line 99 of file wxglviewer.h.
Referenced by DrawRulers(), and OnMouse().
bool lux::LuxGLViewer::m_useAlpha [private] |
Definition at line 91 of file wxglviewer.h.
Referenced by CreateTextures(), and OnPaint().
int lux::LuxGLViewer::m_viewH [private] |
Definition at line 85 of file wxglviewer.h.
Referenced by OnMouse(), OnPaint(), OnSize(), SetRulersEnabled(), and SetZoom().
int lux::LuxGLViewer::m_viewW [private] |
Definition at line 85 of file wxglviewer.h.
Referenced by OnMouse(), OnPaint(), OnSize(), SetRulersEnabled(), and SetZoom().
int lux::LuxGLViewer::m_viewX [private] |
Definition at line 84 of file wxglviewer.h.
Referenced by OnMouse(), OnPaint(), OnSize(), SetRulersEnabled(), and SetZoom().
int lux::LuxGLViewer::m_viewY [private] |
Definition at line 84 of file wxglviewer.h.
Referenced by OnMouse(), OnPaint(), OnSize(), SetRulersEnabled(), and SetZoom().
int lux::LuxGLViewer::m_windowH [private] |
Definition at line 86 of file wxglviewer.h.
Referenced by DrawRulers(), OnMouse(), OnPaint(), OnSize(), and SetRulersEnabled().
int lux::LuxGLViewer::m_windowW [private] |
Definition at line 86 of file wxglviewer.h.
Referenced by DrawRulers(), OnMouse(), OnPaint(), OnSize(), and SetRulersEnabled().