12 #include <vtkSmartPointer.h>
20 namespace context_items {
23 virtual bool Paint(vtkContext2D *painter)
override;
24 virtual void set(
float _x,
float _y);
29 virtual bool Paint(vtkContext2D *painter)
override;
30 virtual void set(
float _x_1,
float _y_1,
float _x_2,
float _y_2);
35 virtual bool Paint(vtkContext2D *painter)
override;
36 virtual void set(
float _x,
float _y,
float _r);
41 virtual bool Paint(vtkContext2D *painter)
override;
47 virtual bool Paint(vtkContext2D *painter)
override;
48 virtual void set(
float _x,
float _y,
float _w,
float _h);
53 virtual bool Paint(vtkContext2D *painter)
override;
58 virtual bool Paint(vtkContext2D *painter)
override;
59 void set(
const std::vector<float> &_xy) { params = _xy; }
64 virtual bool Paint(vtkContext2D *painter)
override;
69 virtual bool Paint(vtkContext2D *painter)
override;
70 virtual void set(
float x,
float y,
const std::string &_text);
71 inline void setBold(
bool state =
false) { bold_ = state; }
72 inline void setFontSize(
int fontSize = 10) { fontSize_ = fontSize; }
80 virtual bool Paint(vtkContext2D *painter)
override;
82 void setPointColors(
unsigned char r,
unsigned char g,
unsigned char b);
83 void setPointColors(
unsigned char rgb[3]);
85 unsigned char point_colors[3];
#define QPCL_ENGINE_LIB_API
vtkTypeMacro(Circle, PCLContextItem) static Circle *New()
vtkTypeMacro(Disk, Circle) static Disk *New()
vtkTypeMacro(FilledRectangle, Rectangle) static FilledRectangle *New()
vtkTypeMacro(Line, PCLContextItem) static Line *New()
vtkTypeMacro(Markers, Points) static Markers *New()
void setSize(float _size)
vtkTypeMacro(Point, PCLContextItem) static Point *New()
vtkTypeMacro(Points, PCLContextItem) static Points *New()
void set(const std::vector< float > &_xy)
vtkTypeMacro(Polygon, Points) static Polygon *New()
vtkTypeMacro(Rectangle, Point) static Rectangle *New()
void setFontSize(int fontSize=10)
void setBold(bool state=false)
vtkTypeMacro(Text, PCLContextItem) static Text *New()