FreeCAD / src /Mod /Robot /Gui /TaskRobot6Axis.h
AbdulElahGwaith's picture
Upload folder using huggingface_hub
985c397 verified
// SPDX-License-Identifier: LGPL-2.1-or-later
/***************************************************************************
* 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 <Mod/Robot/App/RobotObject.h>
class QLineEdit;
namespace App
{
class Property;
}
namespace Gui
{
class ViewProvider;
}
namespace RobotGui
{
class Ui_TaskRobot6Axis;
class TaskRobot6Axis: public Gui::TaskView::TaskBox
{
Q_OBJECT
public:
explicit TaskRobot6Axis(Robot::RobotObject* pcRobotObject, QWidget* parent = nullptr);
~TaskRobot6Axis() override;
void setRobot(Robot::RobotObject* pcRobotObject);
public 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();
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 RobotGui
#endif // GUI_TASKVIEW_TASKAPPERANCE_H