Klamp't
0.9.0
|
Contains the functionality for the RobotPose program. More...
#include <RobotPoseGUI.h>
Public Member Functions | |
RobotPoseBackend (WorldModel *world, ResourceManager *library) | |
virtual void | Start () |
Default implementation of following do nothing. | |
void | UpdateConfig () |
virtual void | RenderWorld () |
virtual bool | OnButtonPress (const string &button) |
virtual bool | OnButtonToggle (const string &button, int checked) |
virtual bool | OnCommand (const string &cmd, const string &args) |
virtual void | DoPassiveMouseMove (int x, int y) |
Overload this to handle plain, non-dragging mouse motion events. | |
virtual void | BeginDrag (int x, int y, int button, int modifiers) |
virtual void | EndDrag (int x, int y, int button, int modifiers) |
virtual void | DoFreeDrag (int dx, int dy, int button) |
Overload this for regular (non-modified) dragging. | |
void | SetDrawExpanded (int value) |
Stance | GetFlatStance (Real tolerance=0) |
Stance | GetNearbyStance (Real tolerance=0) |
void | CleanContacts (Hold &, Real xtol=0, Real ntol=0) |
ResourcePtr | PoserToResource (const string &type) |
Public Member Functions inherited from Klampt::ResourceGUIBackend | |
ResourceGUIBackend (WorldModel *world, ResourceManager *library) | |
bool | LoadCommandLine (int argc, const char **argv) |
ResourceNodePtr | Add (ResourcePtr r) |
ResourceNodePtr | Add (const string &name, const string &type) |
template<class T > | |
ResourceNodePtr | Add (const string &name, const T &val) |
ResourceNodePtr | Add (const string &name, const vector< Real > &ts, const vector< Config > &qs) |
void | SaveCur (const string &file) |
bool | LoadNew (const string &file) |
void | SaveAll (const string &path) |
bool | LoadAll (const string &path) |
void | SetLastActive () |
void | SetActive (const string &identifier) |
virtual void | SetPathTime (double time) |
ResourcePtr | CurrentResource () |
void | RenderCurResource () |
Public Member Functions inherited from Klampt::WorldGUIBackend | |
WorldGUIBackend (WorldModel *world) | |
bool | LoadCommandLine (int argc, const char **argv) |
bool | LoadFile (const char *fn) |
bool | ReloadFile (const char *fn) |
bool | SaveWorld (const char *fn, const char *elementPath=NULL) |
virtual bool | OnIdle () |
virtual void | SetWorldLights () |
RobotModel * | ClickRobot (int x, int y, int &body, Vector3 &localpt) const |
RobotModel * | ClickRobot (const Ray3D &r, int &body, Vector3 &localpt) const |
RigidObjectModel * | ClickObject (int x, int y, Vector3 &localpt) const |
RigidObjectModel * | ClickObject (const Ray3D &r, Vector3 &localpt) const |
virtual void | RefreshIdle () |
virtual void | DoCtrlDrag (int dx, int dy, int button) |
Overload this for control-dragging. | |
virtual void | DoAltDrag (int dx, int dy, int button) |
Overload this for alt-dragging. | |
virtual void | DoShiftDrag (int dx, int dy, int button) |
Overload this for shift-dragging. | |
virtual bool | OnMouseWheel (int dwheel) |
Public Member Functions inherited from Klampt::GLNavigationBackend | |
virtual void | RenderScreen () |
virtual bool | OnGLRender () |
virtual bool | OnGLViewport (int x, int y, int w, int h) |
void | DragPan (int dx, int dy) |
void | DragRotate (int dx, int dy) |
void | DragZoom (int dx, int dy) |
void | DragTruck (int dx, int dy) |
void | Set2DMode (bool mode=true) |
void | DisplayCameraTarget () |
void | CenterCameraOn (const Math3D::AABB3D &bbox) |
void | ClickRay (int x, int y, Math3D::Vector3 &src, Math3D::Vector3 &dir) const |
void | WriteDisplaySettings (std::ostream &out) const |
void | ReadDisplaySettings (std::istream &in) |
Public Member Functions inherited from Klampt::MouseDragBackend | |
virtual bool | OnMouseClick (int button, int state, int mx, int my) |
virtual bool | OnMouseMove (int mx, int my) |
virtual bool | OnKeyDown (const string &key) |
virtual bool | OnKeyUp (const string &key) |
virtual void | DoDrag (int dx, int dy, int button, int modifiers) |
Public Member Functions inherited from Klampt::GenericBackendBase | |
virtual void | Stop () |
virtual bool | ProcessMessage (const AnyCollection &msg) |
virtual bool | SendMessage (const AnyCollection &msg) |
Send a message to the gui. | |
void | MapButtonPress (const string &button, int *var) |
void | MapButtonToggle (const string &button, int *var) |
void | MapWidgetValue (const string &button, string *var) |
void | MapKeyToggle (const string &key, int *var) |
virtual bool | OnWidgetValue (const string &widget, const string &value) |
virtual bool | OnScroll (int dy) |
virtual bool | OnSpaceball (const Math3D::RigidTransform &T) |
virtual bool | OnDevice (const string &name, const string &data) |
bool | SendQuit () |
bool | SendCommand (const string &cmd, const string &args) |
bool | SendNotify (const string &text, const string &msglevel="") |
bool | SendError (const string &text) |
bool | SendWarning (const string &text) |
bool | SendPauseIdle (double secs=1e300) |
bool | SendRefresh () |
bool | SendResize (int w, int h) |
bool | SendDrawText (double x, double y, double z, const std::string &text, int height=10) |
bool | SendDrawText (int x, int y, const std::string &text, int height=10) |
Public Attributes | |
AppUtils::ProgramSettings | settings |
RobotModel * | robot |
int | cur_link |
int | cur_driver |
vector< bool > | self_colliding |
vector< bool > | env_colliding |
int | pose_objects |
vector< RobotPoseWidget > | robotWidgets |
vector< RigidObjectPoseWidget > | objectWidgets |
WidgetSet | allWidgets |
GLDraw::Widget * | lastActiveWidget |
int | draw_geom |
int | draw_poser |
int | draw_bbs |
int | draw_com |
int | draw_frame |
int | draw_sensors |
RobotSensors | robotSensors |
Public Attributes inherited from Klampt::ResourceGUIBackend | |
ResourceManager * | resources |
ResourceNodePtr | last_added |
ViewResource | viewResource |
Public Attributes inherited from Klampt::WorldGUIBackend | |
WorldModel * | world |
Public Attributes inherited from Klampt::GLNavigationBackend | |
Camera::Viewport | viewport |
Camera::CameraController_Orbit | camera |
bool | stereo_mode |
float | stereo_offset |
Timer | timer |
int | show_view_target |
float | t_hide_view_target |
float | frames_per_second |
bool | show_frames_per_second |
int | frames_rendered |
bool | mode_2d |
Public Attributes inherited from Klampt::MouseDragBackend | |
int | oldmousex |
int | oldmousey |
int | clickButton |
int | clickModifiers |
Public Attributes inherited from Klampt::GenericBackendBase | |
GenericGUIBase * | gui |
map< string, int * > | liveButtonPresses |
map< string, int * > | liveButtonToggles |
map< string, string * > | liveWidgetValues |
map< string, int * > | liveKeys |
Additional Inherited Members | |
Public Types inherited from Klampt::GLNavigationBackend | |
typedef MouseDragBackend | BaseT |
Contains the functionality for the RobotPose program.
Accepts button toggle messages:
Accepts commands (in addition to ResourceGUIBackend and WorldGUIBackend):