Skip to content
Snippets Groups Projects
Commit 88141b96 authored by Fabian Reister's avatar Fabian Reister
Browse files

arviz client: line element (coin classes already existed)

parent ec32168b
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,9 @@ set(SOURCES
Client/elements/Mesh.cpp
Client/elements/Robot.cpp
Client/elements/RobotHand.cpp
Client/elements/Line.cpp
Client/elements/Path.cpp
Client/drawer/ArVizDrawerBase.cpp
Client/ScopedClient.cpp
......@@ -80,6 +82,7 @@ set(HEADERS
Client/elements/PointCloud.h
Client/elements/Robot.h
Client/elements/RobotHand.h
Client/elements/Line.h
Client/elements/Path.h
Client/drawer/ArVizDrawerBase.h
......
#include "Line.h"
#include "ArmarXCore/interface/core/BasicVectorTypesHelpers.h"
namespace armarx::viz
{
Line& Line::lineWidth(float w)
{
data_->lineWidth = w;
return *this;
}
Line& Line::fromTo(Eigen::Vector3f from, Eigen::Vector3f to)
{
data_->from = ToBasicVectorType(from);
data_->to = ToBasicVectorType(to);
return *this;
}
} // namespace armarx::viz
\ No newline at end of file
/*
* This file is part of ArmarX.
*
* ArmarX is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* ArmarX 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @author Fabian Reister ( fabian dot reister at kit dot edu )
* @date 2021
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
* GNU General Public License
*/
#pragma once
#include "RobotAPI/components/ArViz/Client/elements/ElementOps.h"
#include <RobotAPI/interface/ArViz/Elements.h>
namespace armarx::viz
{
class Line : public ElementOps<Line, data::ElementLine>
{
public:
using ElementOps::ElementOps;
Line& lineWidth(float w);
Line& fromTo(Eigen::Vector3f from, Eigen::Vector3f to);
};
} // namespace armarx::viz
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment