Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

OglGui::View Class Reference

Views are children of windows that themselves have no children. More...

#include <View.h>

Inheritance diagram for OglGui::View:

Inheritance graph
[legend]
Collaboration diagram for OglGui::View:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 View (Window *wnd, OGLIMAGE *oglIm, int x, int y, int w, int h, ViewListener *li=0)
 View (OGLWND *oglWnd, OGLIMAGE *oglIm, int x, int y, int w, int h, ViewListener *li=0)
 View (OGLVIEW *view2D, ViewListener *li=0)
 View (Window *wnd, OGLIMAGE *oglIm, float x, float y, float z, float w, float h, float d, ViewListener *li=0)
 View (OGLWND *oglWnd, OGLIMAGE *oglIm, float x, float y, float z, float w, float h, float d, ViewListener *li=0)
 View (OGLVIEW3D *view3D, ViewListener *li=0)
virtual ~View ()
void SetListener (ViewListener *listener, int lData=0, bool oldDelete=false)
ViewListenerGetListener ()
OGLVIEW * GetOGLVIEW2D ()
OGLVIEW3D * GetOGLVIEW3D ()
OGLIMAGE * GetOGLIMAGE ()
OGLIMAGE * GetImage ()
void SetImage (OGLIMAGE *im)
int GetId () const
void SetDimensions (int x, int y, int w, int h)
void GetDimensions (int &x, int &y, int &w, int &h)
void GetDimensions2D (int *x, int *y, int *w, int *h)
void SetDimensions2D (int x, int y, int w, int h)
void GetDimensions3D (float *x, float *y, float *z, float *w, float *h, float *d)
void SetDimensions3D (float x, float y, float z, float w, float h, float d)
void SetText (std::string text)
void SetZoom (float zoomX, float zoomY)
void SetPan (float panX, float panY)
void SetTags (ULONG tags)
void ClearTags (ULONG tags)
void SetTagsTo (int tags, bool mode)
bool HasTags (int tags)
void SetSelected (bool flag)
bool GetSelected ()
void SetVisible (bool mode)
bool GetVisible ()
void SetBorderColor (ULONG color)
ULONG BorderColor ()
void WndToIm (int wndX, int wndY, int &imX, int &imY)
void ViewToIm (int vX, int vY, int &imX, int &imY)
virtual void OnSelection (bool selected)
virtual void OnMouse (int msg, int btn, int state, float x, float y)
virtual void OnPreDrawView ()
virtual void OnDrawView ()
virtual void OnDestroyView ()

Protected Attributes

bool mIs2D
bool mIsDestructing
bool mIsDestroying
int mID
OGLVIEW * mView2D
OGLVIEW3D * mView3D
VIEW2DFUNCS mOldView2DFuncs
VIEW3DFUNCS mOldView3DFuncs

Private Member Functions

void Init (bool is2D, ViewListener *listener)

Static Private Member Functions

static void MyOnSelection (OGLVIEW *view, GLBOOL selected)
static void MyOnMouse (OGLVIEW *view, int msg, int btn, int state, float x, float y)
static void MyOnPreDrawView (OGLVIEW *view)
static void MyOnDrawView (OGLVIEW *view)
static void MyOnDestroyView (OGLVIEW *view)
static void MyOnSelection3D (OGLVIEW3D *view, GLBOOL selected)
static void MyOnMouse3D (OGLVIEW3D *view, int msg, int btn, int state, float x, float y)
static void MyOnPreDrawView3D (OGLVIEW3D *view)
static void MyOnDrawView3D (OGLVIEW3D *view)
static void MyOnDestroyView3D (OGLVIEW3D *view)

Private Attributes

ViewListenermListener

Static Private Attributes

static int sNr
static int sNrCreated

Classes

struct  VIEW2DFUNCS
struct  VIEW3DFUNCS

Detailed Description

Views are children of windows that themselves have no children.

A view is used mainly to display images. A lot of that is encapsulated by the class Visualisation::Window, new users are advised to look there for the easiest (ahem) way to display images on screen. -------------------------- RvB: The text above is bullshit, or at least biased. Moreover the statement only refers to users of Impala and images as defined in impala. I do not know who wrote this.

Maybe the statement should start with: Note: For users of Impala. ....for the easiest (ahem) way to display IMPALA images on screen.

Definition at line 45 of file View.h.


The documentation for this class was generated from the following files:
Generated on Fri Mar 19 12:09:31 2010 for ImpalaSrc by  doxygen 1.5.1