8 #ifndef VTKFIG_GLSCENE_H
9 #define VTKFIG_GLSCENE_H
11 #include <vtkPointData.h>
25 static std::shared_ptr<GLScene> New();
26 void Color(
double r,
double g,
double b);
27 void BeginLines(
void);
28 void Vertex2(
double x,
double y);
37 void RTBuildVTKPipeline()
override final;
40 vtkSmartPointer<vtkPolyData> polydata;
41 vtkSmartPointer<vtkPolyDataMapper> mapper;
42 vtkSmartPointer<vtkActor> actor;
43 vtkSmartPointer<vtkPoints> points;
44 vtkSmartPointer<vtkCellArray> lines;
45 vtkSmartPointer<vtkUnsignedCharArray> colors;
47 unsigned char current_rgb[3];