Basic Image AlgorithmS Library
2.8.0
|
2D image display canvas using OpenGL rendering internally. More...
#include <Gui/ImageCanvasGLBase.hh>
Public Member Functions | |
virtual void | Display () |
display call to be overridden by child classes More... | |
virtual void | DisplayCalls () |
virtual void | DisplayCameraView () |
virtual void | DisplayCameraViewExternalParams () |
virtual void | DisplayCameraViewInternalParams () |
virtual void | DisplayClear (const GLbitfield &mask=CLEAR_DEFAULT_MASK) |
clears buffers and resets virtual camera to identity More... | |
void | DisplayCoordCross (const float &size=1.0f, const float &linewidth=1.0f) |
virtual void | DisplayRenderMode () |
display default shade model, polygon mode, More... | |
void | DisplaySelectBuffer () |
useful for quadbuffered stereo, e.g. shutetr glasses More... | |
void | EnableMipMapping (const bool &avoidAliasingByMipmapping=true) |
set to true for prettier OpenGL texture mipmapping display (which costs performance) JW More... | |
float | GetAspectRatio () const |
GetAspectRatio is X/Y. More... | |
unsigned long | GetFrameCount () const |
unsigned int | GetHeight () const |
virtual void | GetInfoGL (std::ostream &os=std::cout) |
return GL state info More... | |
wxFrame * | GetOwnerframe () |
float | GetPixelValueDepth (const wxPoint &pos2d) const |
BIAS::Vector3< float > | GetPixelValueRGB (const wxPoint &pos2d) |
BIAS::Vector4< float > | GetPixelValueRGBA (const wxPoint &pos2d) |
GLuint | GetTexId () const |
ImgObjGL | GetTexobj () const |
ImgObjGL & | GetTexobj () |
GLenum | GetTexTarget () const |
CameraViewController | GetViewController () const |
CameraViewController & | GetViewController () |
unsigned int | GetWidth () const |
ImageCanvasGLBase (wxFrame *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=AsciiToWx("ImageCanvasGLBase"), int *attribList=NULL, const wxPalette &palette=wxNullPalette) | |
ImageCanvasGLBase (wxFrame *parent, wxGLContext *sharedContext=NULL, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=AsciiToWx("ImageCanvasGLBase"), int *attribList=0, const wxPalette &palette=wxNullPalette) | |
constructor using a shared context More... | |
virtual void | InitMembers () |
any constructor should call this function to initialize all data members (e.g. More... | |
virtual void | InitWithContext () |
init all things that need a context. More... | |
bool | IsContextAvailable () |
activates the current rendereing context if there is one and More... | |
virtual void | OnChar (wxKeyEvent &event) |
void | OnEraseBackground (wxEraseEvent &event) |
void | OnIdle (wxIdleEvent &event) |
void | OnMotion (wxMouseEvent &event) |
void | OnMouseDown (wxMouseEvent &event) |
void | OnMouseWheel (wxMouseEvent &event) |
void | OnPaint (wxPaintEvent &event) |
EVT handlers: ---------------------------------------—. More... | |
void | OnSize (wxSizeEvent &event) |
virtual std::ostream & | PrintHelp (std::ostream &os) |
pop up keyboard layout help. More... | |
virtual void | Reshape () |
change of size and aspect ratio. More... | |
void | ScreenShot (BIAS::ImageBase &dest, const bool &flipY=true, const GLenum &format=GL_RGB, const bool &force8Bit=false) |
void | ScreenShot (const std::string &filename, const bool &flipY=true, const GLenum &format=GL_RGB, const bool &force8Bit=false) |
void | ScreenShot () |
JW automatic screenshot to file with filename based on frame, instance etc. More... | |
int | Set (const ImgObjGL &NewTexobj, const std::string &name=std::string("ImgObjGL")) |
feed in an existing, possibly shared, GL texture obj for display note: it is no good idea to call thsi method Show because it conflicts with WX::Show(bool) (JW) More... | |
int | Set (BIAS::ImageBase &img, const std::string &name=std::string("Image<unsigned char>"), const bool &forcePow2tex=true, const bool &flipY=true) |
void | SetFrameCount (const unsigned long &newVal) |
void | SetOwnerframe (wxFrame *ptr) |
int | SetRECT (BIAS::ImageBase &img, const std::string &name=std::string("RECT Image<unsigned char>"), const bool &flipY=true) |
sets imaeg as a RECT texture JW More... | |
void | SetStatusText (const wxString &text, const int c_field=0) |
let an OpenGL canvas use the status bar of the containing frame and cout as fallback (JW) More... | |
void | ShowFPS (const int &framecounter, const float &minUpdateIntervalSec, const unsigned int &minNewFrames, const unsigned int nField) |
shows FPS to status bar base don frame counter and last call to this function Measures and updates only, if two conditions ar eboth met: More... | |
void | ShowFPS () |
simple interface for the above More... | |
void | ShowValue (const wxPoint &pos) |
void | SwapBuffers () |
expands parents SwapBUffers by automatic framecount increase More... | |
void | ToggleFullScreen () |
BIAS::Vector3< float > | Unproject (const wxPoint &pos2d, double &d) |
computes 3D coordinate from 2D+Z by "unprojection" JW More... | |
virtual void | UpdateTime () |
sets the internal time param, by default based on realtime wall clock More... | |
bool | ValidTexobj (const ImgObjGL &t) const |
virtual | ~ImageCanvasGLBase () |
destructor More... | |
Static Public Member Functions | |
static void | DisplaySampleScene () |
display soem very simple Gl calls to draw something at all More... | |
static bool | GetVSync () |
static void | SetVSync (const bool &trueForOn) |
vertical sync control on or off (VSYNC) JW More... | |
static void | StereoI_CaptureStereoImage (const int &format, const int &quality) |
static float | StereoI_GetConvergence () |
static void | StereoI_GetInfo (std::ostream &os=std::cout) |
query status information on current NVStereo rendering state JW More... | |
static float | StereoI_GetSeparation () |
static int | StereoI_GetStereoState () |
wrappers for StereoI interface More... | |
static int | StereoI_Init () |
interace to NVidias consumer Stereo NVStereo driver API. More... | |
static float | StereoI_SetConvergence (const float &val) |
static float | StereoI_SetSeparation (const float &val) |
static int | StereoI_SetStereoState (const int &val) |
static bool | ToggleIP (bool &value) |
helper toggling a bool value in place More... | |
static bool | ToggleVSync () |
try to toggle VSync setting. More... | |
Static Public Attributes | |
static bool | animationUpdateEnabled = OPENGLCANVASBASE_DEFAULT_animationUpdateEnabled |
static bool | idleRepaintEnabled = OPENGLCANVAS_DEFAULT_idleRepaintEnabled |
static bool | realtimeAnimation = OPENGLCANVAS_DEFAULT_realtimeAnimation |
static double | time = 0.0 |
Protected Attributes | |
GLenum | _polygonmodeGL |
unsigned long | framecount_ |
bool | InitWithContextDone_ |
unsigned int | instance_ |
BIAS::Vector2< float > | InterestPoint |
std::string | name |
BIAS::DrawTextGL * | p_font |
wxFrame * | p_ownerframe |
CameraViewController * | p_viewCtrl_ |
BIAS::RenderModeGL | rendermode |
float | scalefactor |
BIAS::ImgObjGL | texobj |
Static Protected Attributes | |
static unsigned int | instancesTotalNo_ = 0 |
2D image display canvas using OpenGL rendering internally.
Thus zooming, interpolation etc is easy and very fast. In particular useful if you use shared contexts to display OPenGL Image (ids). This class should not have extended dependencies. Use The CG Version to display non power of two textures bceause you need a shder for display.
An OpenGL texture (id) is displayed. This can be created by feeding in a BIAS image, the "value" image.
Thus the true values from "valueimage" are displayed even with fewer bit depth display.
Definition at line 40 of file ImageCanvasGLBase.hh.
|
virtual |
destructor
Definition at line 22 of file ImageCanvasGLBase.cpp.
ImageCanvasGLBase::ImageCanvasGLBase | ( | wxFrame * | parent, |
wxWindowID | id = -1 , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = 0 , |
||
const wxString & | name = AsciiToWx("ImageCanvasGLBase") , |
||
int * | attribList = NULL , |
||
const wxPalette & | palette = wxNullPalette |
||
) |
Definition at line 26 of file ImageCanvasGLBase.cpp.
References InitMembers().
ImageCanvasGLBase::ImageCanvasGLBase | ( | wxFrame * | parent, |
wxGLContext * | sharedContext = NULL , |
||
wxWindowID | id = -1 , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = 0 , |
||
const wxString & | name = AsciiToWx("ImageCanvasGLBase") , |
||
int * | attribList = 0 , |
||
const wxPalette & | palette = wxNullPalette |
||
) |
constructor using a shared context
Definition at line 43 of file ImageCanvasGLBase.cpp.
References InitMembers().
|
virtualinherited |
display call to be overridden by child classes
Reimplemented from BIAS::OpenGLCanvasBase.
Definition at line 102 of file OpenGLCanvas.cpp.
References BIAS::OpenGLCanvasBase::Display(), and BIAS::OpenGLCanvas::idleRepaintEnabled.
Referenced by BIAS::OpenGLCanvas::OnIdle(), BIAS::OpenGLCanvas::OnMotion(), BIAS::OpenGLCanvas::OnMouseWheel(), BIAS::OpenGLCanvas::Reshape(), and Set().
|
virtual |
Reimplemented from BIAS::OpenGLCanvasBase.
Definition at line 60 of file ImageCanvasGLBase.cpp.
References BIAS::CameraViewport::DisplayGL(), BIAS::GeometryGL::DisplayQuadTexCoord2DFull(), BIAS::CameraViewController::GetInternals(), BIAS::OpenGLCanvas::GetViewController(), BIAS::ImgObjGL::heightBrutto, texobj, BIAS::CameraViewInternals::viewport, and BIAS::ImgObjGL::widthBrutto.
|
virtualinherited |
Definition at line 112 of file OpenGLCanvas.cpp.
References BIAS::OpenGLCanvas::DisplayCameraViewExternalParams(), and BIAS::OpenGLCanvas::DisplayCameraViewInternalParams().
|
virtualinherited |
Definition at line 124 of file OpenGLCanvas.cpp.
References BIAS::CameraViewController::DisplayGLExternal(), and BIAS::OpenGLCanvas::GetViewController().
Referenced by BIAS::OpenGLCanvas::DisplayCameraView().
|
virtualinherited |
Definition at line 119 of file OpenGLCanvas.cpp.
References BIAS::CameraViewController::DisplayGLInternal(), and BIAS::OpenGLCanvas::GetViewController().
Referenced by BIAS::OpenGLCanvas::DisplayCameraView().
|
virtualinherited |
clears buffers and resets virtual camera to identity
Definition at line 407 of file OpenGLCanvasBase.cpp.
References BIAS::GeometryGL::DisplayClear().
Referenced by BIAS::OpenGLCanvasBase::DisplayCalls().
|
inherited |
Definition at line 427 of file OpenGLCanvasBase.cpp.
References BIAS::GeometryGL::DisplayCoordCross(), BIAS::GeometryGL::DisplayCoordCrossAxesLabel(), and BIAS::OpenGLCanvasBase::p_font.
|
virtualinherited |
display default shade model, polygon mode,
Definition at line 414 of file OpenGLCanvasBase.cpp.
References BIAS::GeometryGL::DisplayRenderMode(), and BIAS::OpenGLCanvasBase::rendermode.
Referenced by BIAS::OpenGLCanvasBase::Display().
|
staticinherited |
display soem very simple Gl calls to draw something at all
Definition at line 421 of file OpenGLCanvasBase.cpp.
References BIAS::GeometryGL::DisplaySceneExampleSimple().
Referenced by BIAS::OpenGLCanvasBase::DisplayCalls().
|
inherited |
useful for quadbuffered stereo, e.g. shutetr glasses
Definition at line 353 of file OpenGLCanvasBase.cpp.
References BIAS::RenderModeGL::drawbuffermode, BIAS::MONO, BIAS::OpenGLCanvasBase::rendermode, BIAS::STEREO_CONSUMER_NV, BIAS::STEREO_LEFT_RIGHT, BIAS::STEREO_QUADBUFFERED, and BIAS::STEREO_UNTOUCHED.
Referenced by BIAS::OpenGLCanvasBase::Display().
void ImageCanvasGLBase::EnableMipMapping | ( | const bool & | avoidAliasingByMipmapping = true | ) |
set to true for prettier OpenGL texture mipmapping display (which costs performance) JW
Definition at line 85 of file ImageCanvasGLBase.cpp.
References BIAS::ImgObjGL::minificationMode, and texobj.
|
inherited |
GetAspectRatio is X/Y.
Definition at line 474 of file OpenGLCanvasBase.cpp.
References BIAS::OpenGLCanvasBase::GetHeight(), and BIAS::OpenGLCanvasBase::GetWidth().
Referenced by BIAS::OpenGLCanvas::Reshape().
|
inlineinherited |
Definition at line 301 of file OpenGLCanvasBase.hh.
|
inherited |
Definition at line 464 of file OpenGLCanvasBase.cpp.
Referenced by BIAS::OpenGLCanvasBase::GetAspectRatio(), BIAS::OpenGLCanvasBase::GetPixelValueDepth(), BIAS::OpenGLCanvasBase::GetPixelValueRGB(), BIAS::OpenGLCanvasBase::GetPixelValueRGBA(), BIAS::OpenGLCanvas::OnMouseDown(), BIAS::OpenGLCanvas::Reshape(), BIAS::OpenGLCanvasBase::Reshape(), and BIAS::OpenGLCanvasBase::ScreenShot().
|
virtualinherited |
return GL state info
Reimplemented from BIAS::OpenGLCanvasBase.
Definition at line 224 of file OpenGLCanvas.cpp.
References BIAS::OpenGLCanvasBase::GetInfoGL(), BIAS::OpenGLCanvas::GetViewController(), and BIAS::CameraViewController::Print().
|
inherited |
Definition at line 258 of file OpenGLCanvasBase.cpp.
References BIAS::OpenGLCanvasBase::p_ownerframe.
|
inherited |
Definition at line 520 of file OpenGLCanvasBase.cpp.
References BIAS::OpenGLCanvasBase::GetHeight().
Referenced by BIAS::OpenGLCanvasBase::ShowValue().
|
inherited |
Definition at line 481 of file OpenGLCanvasBase.cpp.
References BIAS::OpenGLCanvasBase::GetHeight(), BIAS::OpenGLCanvasBase::IsContextAvailable(), and BIAS::Vector3< T >::Set().
|
inherited |
Definition at line 501 of file OpenGLCanvasBase.cpp.
References BIAS::OpenGLCanvasBase::GetHeight(), BIAS::OpenGLCanvasBase::IsContextAvailable(), and BIAS::Vector4< T >::Set().
Referenced by BIAS::OpenGLCanvasBase::ShowValue().
GLuint ImageCanvasGLBase::GetTexId | ( | ) | const |
Definition at line 96 of file ImageCanvasGLBase.cpp.
References BIAS::ImgObjGL::id, and texobj.
|
inline |
Definition at line 108 of file ImageCanvasGLBase.hh.
Referenced by SetRECT().
|
inline |
Definition at line 109 of file ImageCanvasGLBase.hh.
GLenum ImageCanvasGLBase::GetTexTarget | ( | ) | const |
Definition at line 108 of file ImageCanvasGLBase.cpp.
References BIAS::ImgObjGL::target, and texobj.
|
inherited |
Definition at line 253 of file OpenGLCanvas.cpp.
References BIAS::OpenGLCanvas::p_viewCtrl_.
Referenced by DisplayCalls(), BIAS::OpenGLCanvas::DisplayCameraViewExternalParams(), BIAS::OpenGLCanvas::DisplayCameraViewInternalParams(), BIAS::OpenGLCanvas::GetInfoGL(), BIAS::OpenGLCanvas::OnMotion(), BIAS::OpenGLCanvas::OnMouseDown(), BIAS::OpenGLCanvas::OnMouseWheel(), and BIAS::OpenGLCanvas::Reshape().
|
inherited |
Definition at line 248 of file OpenGLCanvas.cpp.
References BIAS::OpenGLCanvas::p_viewCtrl_.
|
staticinherited |
@return true if vertical sync is enable,
false for free running mode JW
Definition at line 1153 of file OpenGLCanvasBase.cpp.
References BIAS::SettingsGL::GetVSyncInterval().
Referenced by BIAS::OpenGLCanvasBase::InitWithContext(), BIAS::OpenGLCanvasBase::OnChar(), and BIAS::OpenGLCanvasBase::ToggleVSync().
|
inherited |
Definition at line 455 of file OpenGLCanvasBase.cpp.
Referenced by BIAS::OpenGLCanvasBase::GetAspectRatio(), BIAS::OpenGLCanvas::OnMouseDown(), BIAS::OpenGLCanvas::Reshape(), BIAS::OpenGLCanvasBase::Reshape(), and BIAS::OpenGLCanvasBase::ScreenShot().
|
virtual |
any constructor should call this function to initialize all data members (e.g.
pointers to NULL)
Reimplemented from BIAS::OpenGLCanvas.
Definition at line 74 of file ImageCanvasGLBase.cpp.
References BIAS::OpenGLCanvas::InitMembers(), InterestPoint, scalefactor, and BIAS::Vector2< T >::Set().
Referenced by ImageCanvasGLBase().
|
virtualinherited |
init all things that need a context.
sets _InitWithContextDone
OK, we have a (valid) Gl Context run init with context once
Definition at line 143 of file OpenGLCanvasBase.cpp.
References BIAS::Singleton< GlutInitWrapper >::GetInstance(), BIAS::OpenGLCanvasBase::GetVSync(), BIAS::GlutInitWrapper::Init(), BIAS::DrawTextGL::InitFont(), BIAS::OpenGLCanvasBase::InitWithContextDone_, BIAS::OpenGLCanvasBase::IsContextAvailable(), BIAS::OpenGLCanvasBase::p_font, BIAS::OpenGLCanvasBase::rendermode, BIAS::OpenGLCanvasBase::SetVSync(), and BIAS::RenderModeGL::vsync.
Referenced by BIAS::OpenGLCanvasBase::Display().
|
inherited |
activates the current rendereing context if there is one and
Definition at line 224 of file OpenGLCanvasBase.cpp.
Referenced by BIAS::OpenGLCanvasBase::Display(), BIAS::OpenGLCanvasBase::GetPixelValueRGB(), BIAS::OpenGLCanvasBase::GetPixelValueRGBA(), and BIAS::OpenGLCanvasBase::InitWithContext().
|
virtualinherited |
Definition at line 963 of file OpenGLCanvasBase.cpp.
References BIAS::OpenGLCanvasBase::animationUpdateEnabled, BIAS::AsciiToWx(), BIAS::RenderModeGL::cullface, BIAS::OpenGLCanvasBase::Display(), BIAS::RenderModeGL::enable_cullface, BIAS::OpenGLCanvasBase::GetInfoGL(), BIAS::OpenGLCanvasBase::GetVSync(), BIAS::RenderModeGL::pointsize, BIAS::RenderModeGL::polygonmodeBACK, BIAS::RenderModeGL::polygonmodeFRONT, BIAS::OpenGLCanvasBase::PrintHelp(), BIAS::OpenGLCanvasBase::rendermode, BIAS::OpenGLCanvasBase::ScreenShot(), BIAS::OpenGLCanvasBase::SetStatusText(), BIAS::RenderModeGL::shademodel, BIAS::OpenGLCanvasBase::StereoI_GetInfo(), BIAS::OpenGLCanvasBase::ToggleFullScreen(), and BIAS::OpenGLCanvasBase::ToggleVSync().
|
inherited |
Definition at line 1138 of file OpenGLCanvasBase.cpp.
|
inherited |
Definition at line 186 of file OpenGLCanvas.cpp.
References BIAS::OpenGLCanvas::Display(), BIAS::OpenGLCanvas::idleRepaintEnabled, BIAS::OpenGLCanvasBase::ShowFPS(), and BIAS::OpenGLCanvas::UpdateTime().
|
inherited |
Definition at line 131 of file OpenGLCanvas.cpp.
References BIAS::OpenGLCanvas::Display(), BIAS::OpenGLCanvas::GetViewController(), BIAS::OpenGLCanvas::idleRepaintEnabled, BIAS::CameraViewController::MotionTranslation(), BIAS::CameraViewController::MotionTranslationCoplanar(), BIAS::CameraViewController::MotionTranslationForward(), and BIAS::OpenGLCanvasBase::ShowValue().
|
inherited |
Definition at line 155 of file OpenGLCanvas.cpp.
References BIAS::OpenGLCanvasBase::GetHeight(), BIAS::OpenGLCanvas::GetViewController(), BIAS::OpenGLCanvasBase::GetWidth(), BIAS::CameraViewController::SetSize(), and BIAS::CameraViewController::SetStartPos().
|
inherited |
Definition at line 164 of file OpenGLCanvas.cpp.
References BIAS::OpenGLCanvas::Display(), BIAS::OpenGLCanvas::GetViewController(), BIAS::OpenGLCanvas::idleRepaintEnabled, and BIAS::CameraViewController::MoveToCenter().
|
inherited |
EVT handlers: ---------------------------------------—.
Definition at line 920 of file OpenGLCanvasBase.cpp.
References BIAS::OpenGLCanvasBase::Display().
|
inherited |
Definition at line 929 of file OpenGLCanvasBase.cpp.
References BIAS::OpenGLCanvasBase::Reshape().
|
virtualinherited |
pop up keyboard layout help.
Must be virtual to let child class add their bindings
Definition at line 935 of file OpenGLCanvasBase.cpp.
Referenced by BIAS::OpenGLCanvasBase::OnChar().
|
virtualinherited |
change of size and aspect ratio.
Reimplemented from BIAS::OpenGLCanvasBase.
Definition at line 232 of file OpenGLCanvas.cpp.
References BIAS::CameraViewFrustum::AdaptWidth(), BIAS::OpenGLCanvas::Display(), BIAS::CameraViewInternals::frustum, BIAS::OpenGLCanvasBase::GetAspectRatio(), BIAS::OpenGLCanvasBase::GetHeight(), BIAS::CameraViewController::GetInternals(), BIAS::OpenGLCanvas::GetViewController(), BIAS::OpenGLCanvasBase::GetWidth(), BIAS::CameraViewport::height, BIAS::CameraViewInternals::viewport, and BIAS::CameraViewport::width.
|
inherited |
Definition at line 599 of file OpenGLCanvasBase.cpp.
References BIAS::ImageBase::Flip(), BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetDepth(), BIAS::OpenGLCanvasBase::GetHeight(), BIAS::ImageBase::GetHeight(), BIAS::ImageBase::GetImageData(), BIAS::OpenGLCanvasBase::GetWidth(), BIAS::ImageBase::GetWidth(), BIAS::ImageBase::Init(), BIAS::ImageBase::IsEmpty(), BIAS::ImageBase::Release(), BIAS::ImageBase::ST_float, and BIAS::ImageBase::ST_unsignedchar.
|
inherited |
Definition at line 573 of file OpenGLCanvasBase.cpp.
References BIAS::OpenGLCanvasBase::GetHeight(), BIAS::OpenGLCanvasBase::GetWidth(), BIAS::ImageIO::Save(), and BIAS::OpenGLCanvasBase::ScreenShot().
|
inherited |
JW automatic screenshot to file with filename based on frame, instance etc.
JW
Definition at line 687 of file OpenGLCanvasBase.cpp.
References BIAS::OpenGLCanvasBase::framecount_, BIAS::OpenGLCanvasBase::instance_, and BIAS::FileHandling::LeadingZeroString().
Referenced by BIAS::OpenGLCanvasBase::OnChar(), and BIAS::OpenGLCanvasBase::ScreenShot().
int ImageCanvasGLBase::Set | ( | const ImgObjGL & | NewTexobj, |
const std::string & | name = std::string("ImgObjGL") |
||
) |
feed in an existing, possibly shared, GL texture obj for display
note: it is no good idea to call thsi method Show because it conflicts with WX::Show(bool) (JW)
Definition at line 141 of file ImageCanvasGLBase.cpp.
References BIAS::OpenGLCanvas::Display(), name, BIAS::ImgObjGL::p_valueImage, BIAS::ImgObjGL::p_valueImage_SelfAllocated, texobj, and ValidTexobj().
Referenced by SetRECT().
int ImageCanvasGLBase::Set | ( | BIAS::ImageBase & | img, |
const std::string & | name = std::string("Image<unsigned char>") , |
||
const bool & | forcePow2tex = true , |
||
const bool & | flipY = true |
||
) |
Definition at line 170 of file ImageCanvasGLBase.cpp.
References BIAS::ImgObjGL::CreateGLTexture(), BIAS::OpenGLCanvas::Display(), name, and texobj.
|
inlineinherited |
Definition at line 302 of file OpenGLCanvasBase.hh.
|
inherited |
Definition at line 264 of file OpenGLCanvasBase.cpp.
References BIAS::OpenGLCanvasBase::p_ownerframe.
int ImageCanvasGLBase::SetRECT | ( | BIAS::ImageBase & | img, |
const std::string & | name = std::string("RECT Image<unsigned char>") , |
||
const bool & | flipY = true |
||
) |
sets imaeg as a RECT texture JW
Definition at line 192 of file ImageCanvasGLBase.cpp.
References GetTexobj(), Set(), and BIAS::ImgObjGL::SetTargetRECT().
|
inherited |
let an OpenGL canvas use the status bar of the containing frame and cout as fallback (JW)
Definition at line 747 of file OpenGLCanvasBase.cpp.
References BIAS::OpenGLCanvasBase::p_ownerframe.
Referenced by BIAS::OpenGLCanvasBase::OnChar(), BIAS::OpenGLCanvasBase::ShowFPS(), and BIAS::OpenGLCanvasBase::ShowValue().
|
staticinherited |
vertical sync control on or off (VSYNC) JW
Definition at line 1144 of file OpenGLCanvasBase.cpp.
References BIAS::SettingsGL::SetVSyncInterval().
Referenced by BIAS::OpenGLCanvasBase::InitWithContext(), and BIAS::OpenGLCanvasBase::ToggleVSync().
|
inherited |
shows FPS to status bar base don frame counter and last call to this function
Measures and updates only, if two conditions ar eboth met:
Definition at line 826 of file OpenGLCanvasBase.cpp.
References BIAS::AsciiToWx(), and BIAS::OpenGLCanvasBase::SetStatusText().
|
inherited |
simple interface for the above
Definition at line 906 of file OpenGLCanvasBase.cpp.
References BIAS::OpenGLCanvasBase::framecount_.
Referenced by BIAS::OpenGLCanvas::OnIdle().
|
inherited |
Definition at line 786 of file OpenGLCanvasBase.cpp.
References BIAS::AsciiToWx(), BIAS::OpenGLCanvasBase::GetPixelValueDepth(), BIAS::OpenGLCanvasBase::GetPixelValueRGBA(), BIAS::OpenGLCanvasBase::SetStatusText(), and BIAS::OpenGLCanvasBase::Unproject().
Referenced by BIAS::OpenGLCanvas::OnMotion().
|
staticinherited |
Definition at line 1303 of file OpenGLCanvasBase.cpp.
|
staticinherited |
Definition at line 1287 of file OpenGLCanvasBase.cpp.
|
staticinherited |
query status information on current NVStereo rendering state JW
Definition at line 1222 of file OpenGLCanvasBase.cpp.
References BIAS::OpenGLCanvasBase::StereoI_Init().
Referenced by BIAS::OpenGLCanvasBase::GetInfoGL(), BIAS::OpenGLCanvasBase::OnChar(), and BIAS::OpenGLCanvasBase::StereoI_Init().
|
staticinherited |
Definition at line 1271 of file OpenGLCanvasBase.cpp.
|
staticinherited |
wrappers for StereoI interface
Definition at line 1255 of file OpenGLCanvasBase.cpp.
|
staticinherited |
interace to NVidias consumer Stereo NVStereo driver API.
to enable/disbale stereo and control convergence and separation for stereo rendering
Definition at line 1181 of file OpenGLCanvasBase.cpp.
References BIAS::OpenGLCanvasBase::StereoI_GetInfo().
Referenced by BIAS::OpenGLCanvasBase::StereoI_GetInfo().
|
staticinherited |
Definition at line 1295 of file OpenGLCanvasBase.cpp.
|
staticinherited |
Definition at line 1279 of file OpenGLCanvasBase.cpp.
|
staticinherited |
Definition at line 1263 of file OpenGLCanvasBase.cpp.
|
inherited |
expands parents SwapBUffers by automatic framecount increase
Definition at line 288 of file OpenGLCanvasBase.cpp.
References BIAS::OpenGLCanvasBase::framecount_.
Referenced by BIAS::OpenGLCanvasBase::Display().
|
inherited |
Definition at line 882 of file OpenGLCanvasBase.cpp.
References BIAS::RenderModeGL::drawbuffermode, BIAS::OpenGLCanvasBase::p_ownerframe, BIAS::OpenGLCanvasBase::rendermode, and BIAS::STEREO_CONSUMER_NV.
Referenced by BIAS::OpenGLCanvasBase::OnChar().
|
staticinherited |
helper toggling a bool value in place
Definition at line 1173 of file OpenGLCanvasBase.cpp.
|
staticinherited |
try to toggle VSync setting.
Definition at line 1159 of file OpenGLCanvasBase.cpp.
References BIAS::OpenGLCanvasBase::GetVSync(), and BIAS::OpenGLCanvasBase::SetVSync().
Referenced by BIAS::OpenGLCanvasBase::OnChar().
|
inherited |
computes 3D coordinate from 2D+Z by "unprojection" JW
Definition at line 536 of file OpenGLCanvasBase.cpp.
Referenced by BIAS::OpenGLCanvasBase::ShowValue().
|
virtualinherited |
sets the internal time param, by default based on realtime wall clock
Reimplemented from BIAS::OpenGLCanvasBase.
Definition at line 207 of file OpenGLCanvas.cpp.
References BIAS::OpenGLCanvasBase::animationUpdateEnabled, BIAS::OpenGLCanvas::realtimeAnimation, BIAS::OpenGLCanvasBase::time, and BIAS::OpenGLCanvasBase::UpdateTime().
Referenced by BIAS::OpenGLCanvas::OnIdle().
bool ImageCanvasGLBase::ValidTexobj | ( | const ImgObjGL & | t | ) | const |
Definition at line 117 of file ImageCanvasGLBase.cpp.
References BIAS::ImgObjGL::heightBrutto, BIAS::ImgObjGL::id, BIAS::ImageBase::IsPowerOfTwoSize(), BIAS::ImgObjGL::target, and BIAS::ImgObjGL::widthBrutto.
Referenced by Set().
|
protectedinherited |
Definition at line 143 of file OpenGLCanvas.hh.
Referenced by BIAS::OpenGLCanvas::InitMembers().
|
staticinherited |
Definition at line 354 of file OpenGLCanvasBase.hh.
Referenced by BIAS::OpenGLCanvasBase::InitMembers(), BIAS::OpenGLCanvasBase::OnChar(), and BIAS::OpenGLCanvas::UpdateTime().
|
protectedinherited |
Definition at line 359 of file OpenGLCanvasBase.hh.
Referenced by BIAS::OpenGLCanvasBase::InitMembers(), BIAS::OpenGLCanvasBase::ScreenShot(), BIAS::OpenGLCanvasBase::ShowFPS(), and BIAS::OpenGLCanvasBase::SwapBuffers().
|
staticinherited |
Definition at line 128 of file OpenGLCanvas.hh.
Referenced by BIAS::OpenGLCanvas::Display(), BIAS::OpenGLCanvas::OnIdle(), BIAS::OpenGLCanvas::OnMotion(), and BIAS::OpenGLCanvas::OnMouseWheel().
|
protectedinherited |
Definition at line 365 of file OpenGLCanvasBase.hh.
Referenced by BIAS::OpenGLCanvasBase::Display(), BIAS::OpenGLCanvasBase::InitMembers(), and BIAS::OpenGLCanvasBase::InitWithContext().
|
protectedinherited |
Definition at line 367 of file OpenGLCanvasBase.hh.
Referenced by BIAS::OpenGLCanvasBase::GetInfoGL(), BIAS::OpenGLCanvasBase::InitMembers(), and BIAS::OpenGLCanvasBase::ScreenShot().
|
staticprotectedinherited |
Definition at line 368 of file OpenGLCanvasBase.hh.
Referenced by BIAS::OpenGLCanvasBase::InitMembers().
|
protected |
Definition at line 128 of file ImageCanvasGLBase.hh.
Referenced by InitMembers().
|
protected |
Definition at line 125 of file ImageCanvasGLBase.hh.
Referenced by Set().
|
protectedinherited |
Definition at line 376 of file OpenGLCanvasBase.hh.
Referenced by BIAS::OpenGLCanvasBase::DisplayCoordCross(), and BIAS::OpenGLCanvasBase::InitWithContext().
|
protectedinherited |
Definition at line 362 of file OpenGLCanvasBase.hh.
Referenced by BIAS::OpenGLCanvasBase::GetOwnerframe(), BIAS::OpenGLCanvasBase::OpenGLCanvasBase(), BIAS::OpenGLCanvasBase::SetOwnerframe(), BIAS::OpenGLCanvasBase::SetStatusText(), and BIAS::OpenGLCanvasBase::ToggleFullScreen().
|
protectedinherited |
Definition at line 139 of file OpenGLCanvas.hh.
Referenced by BIAS::OpenGLCanvas::GetViewController(), and BIAS::OpenGLCanvas::InitMembers().
|
staticinherited |
Definition at line 130 of file OpenGLCanvas.hh.
Referenced by BIAS::OpenGLCanvas::UpdateTime().
|
protectedinherited |
Definition at line 371 of file OpenGLCanvasBase.hh.
Referenced by BIAS::OpenGLCanvasBase::DisplayRenderMode(), BIAS::OpenGLCanvasBase::DisplaySelectBuffer(), BIAS::OpenGLCanvasBase::InitWithContext(), BIAS::OpenGLCanvasBase::OnChar(), and BIAS::OpenGLCanvasBase::ToggleFullScreen().
|
protected |
Definition at line 130 of file ImageCanvasGLBase.hh.
Referenced by InitMembers().
|
protected |
Definition at line 122 of file ImageCanvasGLBase.hh.
Referenced by DisplayCalls(), EnableMipMapping(), GetTexId(), GetTexTarget(), and Set().
|
staticinherited |
Definition at line 352 of file OpenGLCanvasBase.hh.
Referenced by BIAS::OpenGLCanvas::UpdateTime().