Files
create/src/Mod/Robot/Gui/TaskRobot6Axis.h
2011-10-10 13:44:52 +00:00

85 lines
3.0 KiB
C++

/***************************************************************************
* Copyright (c) 2009 Jürgen Riegel <juergen.riegel@web.de> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/
#ifndef GUI_TASKVIEW_TaskRobot6Axis_H
#define GUI_TASKVIEW_TaskRobot6Axis_H
#include <Gui/TaskView/TaskView.h>
#include <Gui/Selection.h>
#include <Mod/Robot/App/RobotObject.h>
#include <Mod/Robot/App/TrajectoryObject.h>
class Ui_TaskRobot6Axis;
class QLineEdit;
namespace App {
class Property;
}
namespace Gui {
class ViewProvider;
}
namespace RobotGui {
class TaskRobot6Axis : public Gui::TaskView::TaskBox
{
Q_OBJECT
public:
TaskRobot6Axis(Robot::RobotObject *pcRobotObject,QWidget *parent = 0);
~TaskRobot6Axis();
void setRobot(Robot::RobotObject *pcRobotObject);
private Q_SLOTS:
void setAxis(float A1,float A2,float A3,float A4,float A5,float A6,const Base::Placement &Tcp);
void changeSliderA1(int value);
void changeSliderA2(int value);
void changeSliderA3(int value);
void changeSliderA4(int value);
void changeSliderA5(int value);
void changeSliderA6(int value);
void createPlacementDlg(void);
protected:
Robot::RobotObject *pcRobot;
void viewTcp(const Base::Placement pos);
void viewTool(const Base::Placement pos);
void setColor(int i,float angle, QLineEdit &lineEdit);
private:
private:
QWidget* proxy;
Ui_TaskRobot6Axis* ui;
Robot::Robot6Axis *Rob;
};
} //namespace PartDesignGui
#endif // GUI_TASKVIEW_TASKAPPERANCE_H