DART
6.7.3
|
#include <SimWindow.hpp>
Public Member Functions | |
SimWindow () | |
virtual | ~SimWindow () |
virtual void | timeStepping () |
virtual void | drawWorld () const |
virtual void | drawSkeletons () const |
virtual void | drawSkels () |
virtual void | drawEntities () |
void | displayTimer (int _val) override |
void | draw () override |
void | keyboard (unsigned char _key, int _x, int _y) override |
void | setWorld (dart::simulation::WorldPtr _world) |
void | saveWorld () |
Save world in 'tempWorld.txt'. More... | |
void | plot (Eigen::VectorXd &_data) |
Plot _data in a 2D window. More... | |
void | initWindow (int _w, int _h, const char *_name) override |
void | resize (int _w, int _h) override |
void | render () 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 () |
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 Window * | current () |
Static Public Attributes | |
static std::vector< Window * > | mWindows |
static std::vector< int > | mWinIDs |
Protected Member Functions | |
virtual void | drawSkeleton (const dynamics::Skeleton *skeleton, const Eigen::Vector4d &color=Eigen::Vector4d::Constant(0.5), bool useDefaultColor=true) const |
virtual void | drawEntity (const dynamics::Entity *entity, const Eigen::Vector4d &color=Eigen::Vector4d::Constant(0.5), bool useDefaultColor=true) const |
virtual void | drawBodyNode (const dynamics::BodyNode *bodyNode, const Eigen::Vector4d &color=Eigen::Vector4d::Constant(0.5), bool useDefaultColor=true, bool recursive=false) const |
virtual void | drawShapeFrame (const dynamics::ShapeFrame *shapeFrame, const Eigen::Vector4d &color=Eigen::Vector4d::Constant(0.5), bool useDefaultColor=true) const |
virtual void | drawShape (const dynamics::Shape *shape, const Eigen::Vector4d &color=Eigen::Vector4d::Constant(0.5)) const |
virtual void | drawPointMasses (const std::vector< dynamics::PointMass * > pointMasses, const Eigen::Vector4d &color=Eigen::Vector4d::Constant(0.5), bool useDefaultColor=true) const |
virtual void | drawMarker (const dynamics::Marker *marker, const Eigen::Vector4d &color=Eigen::Vector4d::Constant(0.5), bool useDefaultColor=true) const |
virtual void | specKey (int _key, int _x, int _y) |
virtual void | move (int _x, int _y) |
virtual void | simTimer (int _val) |
virtual bool | screenshot () |
Protected Attributes | |
simulation::WorldPtr | mWorld |
int | mPlayFrame |
bool | mPlay |
bool | mSimulating |
bool | mShowPointMasses |
If true, render point masses of soft bodies. More... | |
bool | mShowMarkers |
If true, render markers. More... | |
std::vector< GraphWindow * > | mGraphWindows |
Array of graph windows. More... | |
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::RenderInterface * | mRI |
std::vector< unsigned char > | mScreenshotTemp |
std::vector< unsigned char > | mScreenshotTemp2 |
dart::gui::glut::SimWindow::SimWindow | ( | ) |
|
virtual |
|
overridevirtualinherited |
Reimplemented from dart::gui::glut::Window.
|
inlinestaticinherited |
|
overridevirtual |
Reimplemented from dart::gui::glut::Window.
|
overridevirtualinherited |
Reimplemented from dart::gui::glut::Window.
|
overridevirtual |
Implements dart::gui::glut::Win3D.
|
protectedvirtual |
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
|
virtual |
|
virtual |
|
virtualinherited |
|
virtualinherited |
|
overridevirtualinherited |
Reimplemented from dart::gui::glut::Window.
|
overridevirtual |
Reimplemented from dart::gui::glut::Window.
Reimplemented in dart::gui::glut::SoftSimWindow.
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
protectedvirtualinherited |
void dart::gui::glut::SimWindow::plot | ( | Eigen::VectorXd & | _data | ) |
Plot _data in a 2D window.
|
staticinherited |
|
staticinherited |
|
overridevirtualinherited |
Implements dart::gui::glut::Window.
|
staticinherited |
|
overridevirtualinherited |
Implements dart::gui::glut::Window.
|
staticinherited |
void dart::gui::glut::SimWindow::saveWorld | ( | ) |
Save world in 'tempWorld.txt'.
|
protectedvirtualinherited |
void dart::gui::glut::SimWindow::setWorld | ( | dart::simulation::WorldPtr | _world | ) |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
staticinherited |
|
virtual |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protected |
Array of graph windows.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protected |
If true, render markers.
|
protected |
If true, render point masses of soft bodies.
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
staticinherited |
|
protectedinherited |
|
staticinherited |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protectedinherited |