https://github.com/lsw9021/DexterousManipulation
Tip revision: 11269e20e5283c3f31b6ce1ea9a4805c8bdeecac authored by Lee Seung Hwan on 07 October 2021, 05:40:43 UTC
Create LICENSE
Create LICENSE
Tip revision: 11269e2
SimWindow.h
#ifndef __VMCON_SIM_WINDOW_H__
#define __VMCON_SIM_WINDOW_H__
#include "Camera.h"
#include "GLUTWindow.h"
#include "GLfunctions.h"
#include "DART_interface.h"
#include "FEM_interface.h"
#include <string>
class IntegratedWorld;
class SimWindow : public GUI::GLUTWindow
{
public:
SimWindow(const std::string& record_path);
std::shared_ptr<IntegratedWorld> mWorld;
Eigen::VectorXd mDisplacement;
int mFrame;
bool mIsPlay;
bool mIsRotate;
bool mIsDrag;
bool mRenderDetail;
bool mCapture;
double mDisplayRatio;
void LoadFromFolder(const std::string& path);
void WriteTransformation(const std::string& path);
protected:
void Display() override;
void Keyboard(unsigned char key,int x,int y) override;
void Mouse(int button, int state, int x, int y) override;
void Motion(int x, int y) override;
void Reshape(int w, int h) override;
void Timer(int value) override;
void Screenshot();
};
#endif