src
tools
lvr2_viewer
vtkBridge
LVRVtkArrow.hpp
Go to the documentation of this file.
1
34
#ifndef LVRVTKARROW_HPP_
35
#define LVRVTKARROW_HPP_
36
37
#include <vtkSmartPointer.h>
38
#include <vtkActor.h>
39
40
#include "
lvr2/geometry/BaseVector.hpp
"
41
42
namespace
lvr2
43
{
44
49
class
LVRVtkArrow
50
{
51
using
Vec
=
BaseVector<float>
;
52
53
public
:
54
55
LVRVtkArrow
(
Vec
start,
Vec
end);
56
57
vtkSmartPointer<vtkActor>
getArrowActor
();
58
vtkSmartPointer<vtkActor>
getStartActor
();
59
vtkSmartPointer<vtkActor>
getEndActor
();
60
61
void
restoreColor
();
62
void
setTmpColor
(
double
r,
double
g,
double
b);
63
64
virtual
~LVRVtkArrow
();
65
66
private
:
67
vtkSmartPointer<vtkActor>
m_arrowActor
;
68
vtkSmartPointer<vtkActor>
m_startActor
;
69
vtkSmartPointer<vtkActor>
m_endActor
;
70
Vec
m_start
;
71
Vec
m_end
;
72
double
m_r
;
73
double
m_g
;
74
double
m_b
;
75
76
};
77
78
}
/* namespace lvr2 */
79
80
#endif
/* LVRVTKARROW_HPP_ */
lvr2::LVRVtkArrow::setTmpColor
void setTmpColor(double r, double g, double b)
Definition:
LVRVtkArrow.cpp:145
BaseVector.hpp
lvr2::LVRVtkArrow::getEndActor
vtkSmartPointer< vtkActor > getEndActor()
Definition:
LVRVtkArrow.cpp:160
lvr2::LVRVtkArrow::m_r
double m_r
Definition:
LVRVtkArrow.hpp:72
lvr2::BaseVector< float >
lvr2::LVRVtkArrow
A wrapper class to generate arrow actors for vtk based on VTK's oriented arrow example.
Definition:
LVRVtkArrow.hpp:49
lvr2::LVRVtkArrow::LVRVtkArrow
LVRVtkArrow(Vec start, Vec end)
Definition:
LVRVtkArrow.cpp:56
lvr2::LVRVtkArrow::getStartActor
vtkSmartPointer< vtkActor > getStartActor()
Definition:
LVRVtkArrow.cpp:155
lvr2::LVRVtkArrow::m_g
double m_g
Definition:
LVRVtkArrow.hpp:73
lvr2::LVRVtkArrow::m_start
Vec m_start
Definition:
LVRVtkArrow.hpp:70
lvr2::LVRVtkArrow::m_b
double m_b
Definition:
LVRVtkArrow.hpp:74
lvr2::LVRVtkArrow::m_end
Vec m_end
Definition:
LVRVtkArrow.hpp:71
lvr2
Definition:
BaseBufferManipulators.hpp:39
lvr2::LVRVtkArrow::m_arrowActor
vtkSmartPointer< vtkActor > m_arrowActor
Definition:
LVRVtkArrow.hpp:67
lvr2::LVRVtkArrow::restoreColor
void restoreColor()
Definition:
LVRVtkArrow.cpp:140
lvr2::LVRVtkArrow::m_endActor
vtkSmartPointer< vtkActor > m_endActor
Definition:
LVRVtkArrow.hpp:69
lvr2::LVRVtkArrow::getArrowActor
vtkSmartPointer< vtkActor > getArrowActor()
Definition:
LVRVtkArrow.cpp:150
lvr2::LVRVtkArrow::m_startActor
vtkSmartPointer< vtkActor > m_startActor
Definition:
LVRVtkArrow.hpp:68
lvr2::LVRVtkArrow::~LVRVtkArrow
virtual ~LVRVtkArrow()
Definition:
LVRVtkArrow.cpp:165
lvr2
Author(s): Thomas Wiemann
, Sebastian Pütz
, Alexander Mock
, Lars Kiesow
, Lukas Kalbertodt
, Tristan Igelbrink
, Johan M. von Behren
, Dominik Feldschnieders
, Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:24