Point Cloud Library (PCL)
1.14.1-dev
pcl
outofcore
visualization
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
// -----------------------------------------------------------------------------
31
inline
vtkSmartPointer<vtkRectilinearGrid>
32
getGrid
()
const
33
{
34
return
grid_;
35
}
36
37
// virtual vtkSmartPointer<vtkActor>
38
vtkSmartPointer<vtkActor>
39
getGridActor
()
const
40
{
41
return
grid_actor_;
42
}
43
44
private
:
45
46
// Members
47
// -----------------------------------------------------------------------------
48
vtkSmartPointer<vtkRectilinearGrid>
grid_;
49
vtkSmartPointer<vtkActor>
grid_actor_;
50
51
};
Grid
Definition:
grid.h:21
Grid::Grid
Grid(std::string name, int size=10, double spacing=1.0)
Grid::getGrid
vtkSmartPointer< vtkRectilinearGrid > getGrid() const
Definition:
grid.h:32
Grid::getGridActor
vtkSmartPointer< vtkActor > getGridActor() const
Definition:
grid.h:39
Grid::~Grid
~Grid() override=default
Object
Definition:
object.h:19
vtkSmartPointer< vtkRectilinearGrid >