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

#include <Window.hpp>

Inheritance diagram for dart::gui::glut::Window:
dart::gui::glut::Win2D dart::gui::glut::Win3D dart::gui::glut::GraphWindow dart::gui::glut::SimWindow dart::gui::glut::MotionBlurSimWindow dart::gui::glut::SoftSimWindow

Public Member Functions

 Window ()
 
virtual ~Window ()
 
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 resize (int _w, int _h)=0
 
virtual void render ()=0
 
virtual void keyboard (unsigned char _key, int _x, int _y)
 
virtual void specKey (int _key, int _x, int _y)
 
virtual void click (int _button, int _state, int _x, int _y)
 
virtual void drag (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

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

◆ Window()

dart::gui::glut::Window::Window ( )

◆ ~Window()

dart::gui::glut::Window::~Window ( )
virtual

Member Function Documentation

◆ click()

void dart::gui::glut::Window::click ( int  _button,
int  _state,
int  _x,
int  _y 
)
protectedvirtual

◆ current()

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

◆ displayTimer()

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

◆ drag()

void dart::gui::glut::Window::drag ( int  _x,
int  _y 
)
protectedvirtual

◆ initWindow()

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

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

◆ keyboard()

void dart::gui::glut::Window::keyboard ( unsigned char  _key,
int  _x,
int  _y 
)
protectedvirtual

◆ keyEvent()

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

◆ mouseClick()

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

◆ mouseDrag()

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

◆ mouseMove()

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

◆ move()

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

◆ refresh()

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

◆ refreshTimer()

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

◆ render()

virtual void dart::gui::glut::Window::render ( )
protectedpure virtual

◆ reshape()

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

◆ resize()

virtual void dart::gui::glut::Window::resize ( int  _w,
int  _h 
)
protectedpure virtual

◆ runTimer()

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

◆ screenshot()

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

◆ simTimer()

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

◆ specKey()

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

◆ specKeyEvent()

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

Member Data Documentation

◆ mBackground

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

◆ mCapture

bool dart::gui::glut::Window::mCapture
protected

◆ mDisplayTimeout

double dart::gui::glut::Window::mDisplayTimeout
protected

◆ mMouseDown

bool dart::gui::glut::Window::mMouseDown
protected

◆ mMouseDrag

bool dart::gui::glut::Window::mMouseDrag
protected

◆ mMouseX

int dart::gui::glut::Window::mMouseX
protected

◆ mMouseY

int dart::gui::glut::Window::mMouseY
protected

◆ mRI

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

◆ mScreenshotTemp

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

◆ mScreenshotTemp2

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

◆ mWindows

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

◆ mWinHeight

int dart::gui::glut::Window::mWinHeight
protected

◆ mWinIDs

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

◆ mWinWidth

int dart::gui::glut::Window::mWinWidth
protected