41#include <vtkContextItem.h>
50 namespace visualization
62 void setColors (
unsigned char r,
unsigned char g,
unsigned char b);
65 unsigned char colors[3];
86 namespace context_items
139 void set (
const std::vector<float>&
_xy) { params =
_xy; }
154 virtual void set (
float x,
float y,
const std::string&
_text);
167 unsigned char point_colors[3];
Iterator class for point clouds with or without given indices.
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...
static PCLContextImageItem * New()
void set(float _x, float _y, vtkImageData *_image)
bool Paint(vtkContext2D *painter) override
vtkTypeMacro(PCLContextImageItem, vtkContextItem)
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])
static PCLContextItem * New()
bool Paint(vtkContext2D *) override
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
vtkTypeMacro(FilledRectangle, Rectangle)
bool Paint(vtkContext2D *painter) override
static FilledRectangle * New()
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)