DART  6.7.3
dart::gui::glut::Win2D Class Referenceabstract

#include <Win2D.hpp>

Inheritance diagram for dart::gui::glut::Win2D:
dart::gui::glut::Window dart::gui::glut::GraphWindow

Public Member Functions

 Win2D ()
 
void resize (int _w, int _h) override
 
void render () override
 
void keyboard (unsigned char _key, int _x, int _y) override
 
void click (int _button, int _state, int _x, int _y) override
 
void drag (int _x, int _y) override
 
virtual void initGL ()
 
virtual void draw ()=0
 
virtual void initWindow (int _w, int _h, const char *_name)
 

Static Public Member Functions

static void reshape (int _w, int _h)
 
static void keyEvent (unsigned char _key, int _x, int _y)
 
static void specKeyEvent (int _key, int _x, int _y)
 
static void mouseClick (int _button, int _state, int _x, int _y)
 
static void mouseDrag (int _x, int _y)
 
static void mouseMove (int _x, int _y)
 
static void refresh ()
 
static void refreshTimer (int _val)
 
static void runTimer (int _val)
 
static Windowcurrent ()
 

Static Public Attributes

static std::vector< Window * > mWindows
 
static std::vector< int > mWinIDs
 

Protected Member Functions

virtual void specKey (int _key, int _x, int _y)
 
virtual void move (int _x, int _y)
 
virtual void displayTimer (int _val)
 
virtual void simTimer (int _val)
 
virtual bool screenshot ()
 

Protected Attributes

bool mTranslate
 
double mTransX
 
double mTransY
 
int mWinWidth
 
int mWinHeight
 
int mMouseX
 
int mMouseY
 
double mDisplayTimeout
 
bool mMouseDown
 
bool mMouseDrag
 
bool mCapture
 
double mBackground [4]
 
gui::RenderInterfacemRI
 
std::vector< unsigned char > mScreenshotTemp
 
std::vector< unsigned char > mScreenshotTemp2
 

Constructor & Destructor Documentation

◆ Win2D()

dart::gui::glut::Win2D::Win2D ( )

Member Function Documentation

◆ click()

void dart::gui::glut::Win2D::click ( int  _button,
int  _state,
int  _x,
int  _y 
)
overridevirtual

Reimplemented from dart::gui::glut::Window.

◆ current()

Window * dart::gui::glut::Window::current ( )
inlinestaticinherited

◆ displayTimer()

void dart::gui::glut::Window::displayTimer ( int  _val)
protectedvirtualinherited

◆ drag()

void dart::gui::glut::Win2D::drag ( int  _x,
int  _y 
)
overridevirtual

Reimplemented from dart::gui::glut::Window.

◆ draw()

virtual void dart::gui::glut::Win2D::draw ( )
pure virtual

◆ initGL()

void dart::gui::glut::Win2D::initGL ( )
virtual

◆ initWindow()

void dart::gui::glut::Window::initWindow ( int  _w,
int  _h,
const char *  _name 
)
virtualinherited
Warning
This function should be called once.

Reimplemented in dart::gui::glut::Win3D.

◆ keyboard()

void dart::gui::glut::Win2D::keyboard ( unsigned char  _key,
int  _x,
int  _y 
)
overridevirtual

Reimplemented from dart::gui::glut::Window.

◆ keyEvent()

void dart::gui::glut::Window::keyEvent ( unsigned char  _key,
int  _x,
int  _y 
)
staticinherited

◆ mouseClick()

void dart::gui::glut::Window::mouseClick ( int  _button,
int  _state,
int  _x,
int  _y 
)
staticinherited

◆ mouseDrag()

void dart::gui::glut::Window::mouseDrag ( int  _x,
int  _y 
)
staticinherited

◆ mouseMove()

void dart::gui::glut::Window::mouseMove ( int  _x,
int  _y 
)
staticinherited

◆ move()

void dart::gui::glut::Window::move ( int  _x,
int  _y 
)
protectedvirtualinherited

◆ refresh()

void dart::gui::glut::Window::refresh ( )
staticinherited

◆ refreshTimer()

void dart::gui::glut::Window::refreshTimer ( int  _val)
staticinherited

◆ render()

void dart::gui::glut::Win2D::render ( )
overridevirtual

◆ reshape()

void dart::gui::glut::Window::reshape ( int  _w,
int  _h 
)
staticinherited

◆ resize()

void dart::gui::glut::Win2D::resize ( int  _w,
int  _h 
)
overridevirtual

◆ runTimer()

void dart::gui::glut::Window::runTimer ( int  _val)
staticinherited

◆ screenshot()

bool dart::gui::glut::Window::screenshot ( )
protectedvirtualinherited

◆ simTimer()

void dart::gui::glut::Window::simTimer ( int  _val)
protectedvirtualinherited

◆ specKey()

void dart::gui::glut::Window::specKey ( int  _key,
int  _x,
int  _y 
)
protectedvirtualinherited

◆ specKeyEvent()

void dart::gui::glut::Window::specKeyEvent ( int  _key,
int  _x,
int  _y 
)
staticinherited

Member Data Documentation

◆ mBackground

double dart::gui::glut::Window::mBackground[4]
protectedinherited

◆ mCapture

bool dart::gui::glut::Window::mCapture
protectedinherited

◆ mDisplayTimeout

double dart::gui::glut::Window::mDisplayTimeout
protectedinherited

◆ mMouseDown

bool dart::gui::glut::Window::mMouseDown
protectedinherited

◆ mMouseDrag

bool dart::gui::glut::Window::mMouseDrag
protectedinherited

◆ mMouseX

int dart::gui::glut::Window::mMouseX
protectedinherited

◆ mMouseY

int dart::gui::glut::Window::mMouseY
protectedinherited

◆ mRI

gui::RenderInterface* dart::gui::glut::Window::mRI
protectedinherited

◆ mScreenshotTemp

std::vector<unsigned char> dart::gui::glut::Window::mScreenshotTemp
protectedinherited

◆ mScreenshotTemp2

std::vector<unsigned char> dart::gui::glut::Window::mScreenshotTemp2
protectedinherited

◆ mTranslate

bool dart::gui::glut::Win2D::mTranslate
protected

◆ mTransX

double dart::gui::glut::Win2D::mTransX
protected

◆ mTransY

double dart::gui::glut::Win2D::mTransY
protected

◆ mWindows

std::vector< Window * > dart::gui::glut::Window::mWindows
staticinherited

◆ mWinHeight

int dart::gui::glut::Window::mWinHeight
protectedinherited

◆ mWinIDs

std::vector< int > dart::gui::glut::Window::mWinIDs
staticinherited

◆ mWinWidth

int dart::gui::glut::Window::mWinWidth
protectedinherited