|
orca-robotics INTRODUCTION Overview Download and Install Quick Start Documentation Publications REPOSITORY Interfaces Components Libraries Utilities Software Map DEVELOPER Tutorials Examples Dev Guide Dashboard Wiki login/pass: orca/orca PEOPLE Contributors Users Project Download Mailing lists
|
pathplannerinput.h00001 /* 00002 * Orca-Robotics Project: Components for robotics 00003 * http://orca-robotics.sf.net/ 00004 * Copyright (c) 2004-2008 Alex Brooks, Alexei Makarenko, Tobias Kaupp 00005 * 00006 * This copy of Orca is licensed to you under the terms described in 00007 * the LICENSE file included in this distribution. 00008 * 00009 */ 00010 00011 #ifndef PATHPLANNER_INPUT_H 00012 #define PATHPLANNER_INPUT_H 00013 00014 #include <orca/pathplanner2d.h> 00015 #include <hydroqguipath/pathdesignscreen.h> 00016 #include <hydroqguipath/pathdesigntablewidget.h> 00017 #include <hydroqguipath/ipathinput.h> 00018 #include <hydroqguipath/pathutils.h> 00019 #include <orcaqgui2dfactory/pathfilehandler.h> 00020 00021 namespace orcaqgui2d { 00022 00023 class PathPlannerUserInteraction; 00024 00031 class PathPlannerInput : public hydroqguipath::IPathInput 00032 { 00033 public: 00034 PathPlannerInput( PathPlannerUserInteraction &pathPlannerUI, 00035 hydroqguipath::WaypointSettings *wpSettings, 00036 hydroqguielementutil::IHumanManager &humanManager ); 00037 00038 virtual ~PathPlannerInput() {}; 00039 00040 virtual void paint( QPainter *painter ); 00041 virtual void setUseTransparency( bool useTransparency ); 00042 00043 virtual void processPressEvent( QMouseEvent* e); 00044 virtual void processReleaseEvent( QMouseEvent* e ); 00045 virtual void processDoubleClickEvent( QMouseEvent* e) {}; 00046 virtual void processMoveEvent( QMouseEvent* e) {}; 00047 virtual void updateWpSettings( hydroqguipath::WaypointSettings* wpSettings ); 00048 00049 virtual void savePath( const QString &filename ); 00050 virtual void loadPath( const QString &filename ); 00051 virtual void loadPreviousPath(); 00052 virtual void sendPath(); 00053 virtual void cancelPath(); 00054 00055 virtual void setWaypointFocus( int waypointId ); 00056 00057 orca::PathPlanner2dTask getTask() const; 00058 00059 private: 00060 00061 PathPlannerUserInteraction &pathPlannerUI_; 00062 00063 std::auto_ptr<hydroqguipath::PathDesignScreen> pathDesignScreen_; 00064 std::auto_ptr<hydroqguipath::PathDesignTableWidget> pathDesignTableWidget_; 00065 std::auto_ptr<hydroqguipath::GuiPath> guiPath_; 00066 std::auto_ptr<PathFileHandler> pathFileHandler_; 00067 00068 }; 00069 00070 } 00071 00072 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)
1.4.5