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

#include <Win3D.hpp>

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

Public Member Functions

 Win3D ()
 
void initWindow (int _w, int _h, const char *_name) override
 
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 initLights ()
 
virtual void draw ()=0
 

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

Trackball mTrackBall
 
Eigen::Vector3d mTrans
 
Eigen::Vector3d mEye
 
Eigen::Vector3d mUp
 
float mZoom
 
float mPersp
 
bool mRotate
 
bool mTranslate
 
bool mZooming
 
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

◆ Win3D()

dart::gui::glut::Win3D::Win3D ( )

Member Function Documentation

◆ click()

void dart::gui::glut::Win3D::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::Win3D::drag ( int  _x,
int  _y 
)
overridevirtual

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

◆ draw()

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

Implemented in dart::gui::glut::SimWindow.

◆ initGL()

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

◆ initLights()

void dart::gui::glut::Win3D::initLights ( )
virtual

◆ initWindow()

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

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

◆ keyboard()

void dart::gui::glut::Win3D::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::Win3D::render ( )
overridevirtual

◆ reshape()

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

◆ resize()

void dart::gui::glut::Win3D::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

◆ mEye

Eigen::Vector3d dart::gui::glut::Win3D::mEye
protected

◆ 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

◆ mPersp

float dart::gui::glut::Win3D::mPersp
protected

◆ mRI

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

◆ mRotate

bool dart::gui::glut::Win3D::mRotate
protected

◆ mScreenshotTemp

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

◆ mScreenshotTemp2

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

◆ mTrackBall

Trackball dart::gui::glut::Win3D::mTrackBall
protected

◆ mTrans

Eigen::Vector3d dart::gui::glut::Win3D::mTrans
protected

◆ mTranslate

bool dart::gui::glut::Win3D::mTranslate
protected

◆ mUp

Eigen::Vector3d dart::gui::glut::Win3D::mUp
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

◆ mZoom

float dart::gui::glut::Win3D::mZoom
protected

◆ mZooming

bool dart::gui::glut::Win3D::mZooming
protected