41 #include <vtkContextItem.h>
52 namespace visualization
63 bool Paint (vtkContext2D *)
override {
return (
false); };
64 void setColors (
unsigned char r,
unsigned char g,
unsigned char b);
65 void setColors (
unsigned char rgb[3]) { std::copy(rgb, rgb + 3, colors); }
66 void setOpacity (
double opacity) { SetOpacity (opacity); };
67 unsigned char colors[3];
82 bool Paint (vtkContext2D *painter)
override;
83 void set (
float _x,
float _y, vtkImageData *_image);
88 namespace context_items
94 bool Paint (vtkContext2D *painter)
override;
95 virtual void set (
float _x,
float _y);
102 bool Paint (vtkContext2D *painter)
override;
103 virtual void set (
float _x_1,
float _y_1,
float _x_2,
float _y_2);
110 bool Paint (vtkContext2D *painter)
override;
111 virtual void set (
float _x,
float _y,
float _r);
118 bool Paint (vtkContext2D *painter)
override;
125 bool Paint (vtkContext2D *painter)
override;
126 virtual void set (
float _x,
float _y,
float _w,
float _h);
133 bool Paint (vtkContext2D *painter)
override;
140 bool Paint (vtkContext2D *painter)
override;
141 void set (
const std::vector<float>& _xy) { params = _xy; }
148 bool Paint (vtkContext2D *painter)
override;
155 bool Paint (vtkContext2D *painter)
override;
156 virtual void set (
float x,
float y,
const std::string& _text);
164 bool Paint (vtkContext2D *painter)
override;
169 unsigned char point_colors[3];
Defines all the PCL and non-PCL macros used.
Struct PCLContextImageItem a specification of vtkContextItem, used to add an image to the scene in th...
void set(float _x, float _y, vtkImageData *_image)
bool Paint(vtkContext2D *painter) override
vtkTypeMacro(PCLContextImageItem, vtkContextItem)
static PCLContextImageItem * New()
vtkSmartPointer< vtkImageData > image
Struct PCLContextItem represents our own custom version of vtkContextItem, used by the ImageViewer cl...
void setOpacity(double opacity)
void setColors(unsigned char r, unsigned char g, unsigned char b)
void setColors(unsigned char rgb[3])
bool Paint(vtkContext2D *) override
static PCLContextItem * New()
std::vector< float > params
vtkTypeMacro(PCLContextItem, vtkContextItem)
vtkTypeMacro(Circle, PCLContextItem)
bool Paint(vtkContext2D *painter) override
virtual void set(float _x, float _y, float _r)
vtkTypeMacro(Disk, Circle)
bool Paint(vtkContext2D *painter) override
static FilledRectangle * New()
vtkTypeMacro(FilledRectangle, Rectangle)
bool Paint(vtkContext2D *painter) override
vtkTypeMacro(Line, PCLContextItem)
bool Paint(vtkContext2D *painter) override
virtual void set(float _x_1, float _y_1, float _x_2, float _y_2)
void setPointColors(unsigned char r, unsigned char g, unsigned char b)
void setPointColors(unsigned char rgb[3])
bool Paint(vtkContext2D *painter) override
void setSize(float _size)
vtkTypeMacro(Markers, Points)
vtkTypeMacro(Point, PCLContextItem)
bool Paint(vtkContext2D *painter) override
virtual void set(float _x, float _y)
vtkTypeMacro(Points, PCLContextItem)
bool Paint(vtkContext2D *painter) override
void set(const std::vector< float > &_xy)
vtkTypeMacro(Polygon, Points)
bool Paint(vtkContext2D *painter) override
vtkTypeMacro(Rectangle, Point)
bool Paint(vtkContext2D *painter) override
virtual void set(float _x, float _y, float _w, float _h)
bool Paint(vtkContext2D *painter) override
vtkTypeMacro(Text, PCLContextItem)
virtual void set(float x, float y, const std::string &_text)