38 #ifndef PCL_VISUALIZATION_PCL_CONTEXT_ITEM_H_
39 #define PCL_VISUALIZATION_PCL_CONTEXT_ITEM_H_
41 #include <pcl/pcl_macros.h>
42 #include <vtkContextItem.h>
51 namespace visualization
62 virtual bool Paint (vtkContext2D *) {
return (
false); };
63 void setColors (
unsigned char r,
unsigned char g,
unsigned char b);
64 void setColors (
unsigned char rgb[3]) { memcpy (colors, rgb, 3 *
sizeof (
unsigned char)); }
65 void setOpacity (
double opacity) { SetOpacity (opacity); };
66 unsigned char colors[3];
82 virtual bool Paint (vtkContext2D *painter);
83 void set (
float _x,
float _y, vtkImageData *_image);
88 namespace context_items
94 virtual bool Paint (vtkContext2D *painter);
95 virtual void set (
float _x,
float _y);
102 virtual bool Paint (vtkContext2D *painter);
103 virtual void set (
float _x_1,
float _y_1,
float _x_2,
float _y_2);
110 virtual bool Paint (vtkContext2D *painter);
111 virtual void set (
float _x,
float _y,
float _r);
118 virtual bool Paint (vtkContext2D *painter);
125 virtual bool Paint (vtkContext2D *painter);
126 virtual void set (
float _x,
float _y,
float _w,
float _h);
133 virtual bool Paint (vtkContext2D *painter);
140 virtual bool Paint (vtkContext2D *painter);
141 void set (
const std::vector<float>& _xy) { params = _xy; }
148 virtual bool Paint (vtkContext2D *painter);
155 virtual bool Paint (vtkContext2D *painter);
156 virtual void set (
float x,
float y,
const std::string& _text);
164 virtual bool Paint (vtkContext2D *painter);
166 void setPointColors (
unsigned char r,
unsigned char g,
unsigned char b);
167 void setPointColors (
unsigned char rgb[3]);
169 unsigned char point_colors[3];
Struct PCLContextItem represents our own custom version of vtkContextItem, used by the ImageViewer cl...
Struct PCLContextImageItem a specification of vtkContextItem, used to add an image to the scene in th...
void setOpacity(double opacity)
virtual bool Paint(vtkContext2D *)
std::vector< float > params
void setSize(float _size)
void setColors(unsigned char rgb[3])
vtkSmartPointer< vtkImageData > image
void set(const std::vector< float > &_xy)