Point Cloud Library (PCL)  1.14.1-dev
grid.h
1 #pragma once
2 
3 // C++
4 #include <iostream>
5 #include <string>
6 
7 // PCL
8 #include "geometry.h"
9 #include "object.h"
10 
11 // VTK
12 #include <vtkActor.h>
13 #include <vtkRectilinearGrid.h>
14 #include <vtkDataSetMapper.h>
15 #include <vtkDoubleArray.h>
16 #include <vtkPolyData.h>
17 #include <vtkSmartPointer.h>
18 
19 //class Grid : public Geometry
20 class Grid : public Object
21 {
22 public:
23 
24  // Operators
25  // -----------------------------------------------------------------------------
26  Grid (std::string name, int size = 10, double spacing = 1.0);
27  ~Grid () override = default;
28 
29  // Accessors
30  // -----------------------------------------------------------------------------
32  getGrid () const
33  {
34  return grid_;
35  }
36 
37 // virtual vtkSmartPointer<vtkActor>
39  getGridActor () const
40  {
41  return grid_actor_;
42  }
43 
44 private:
45 
46  // Members
47  // -----------------------------------------------------------------------------
49  vtkSmartPointer<vtkActor> grid_actor_;
50 
51 };
Definition: grid.h:21
Grid(std::string name, int size=10, double spacing=1.0)
vtkSmartPointer< vtkRectilinearGrid > getGrid() const
Definition: grid.h:32
vtkSmartPointer< vtkActor > getGridActor() const
Definition: grid.h:39
~Grid() override=default
Definition: object.h:19