grid.h
#pragma once
// C++
#include <iostream>
#include <string>
// PCL
#include "geometry.h"
#include "object.h"
// VTK
#include <vtkActor.h>
#include <vtkRectilinearGrid.h>
#include <vtkDataSetMapper.h>
#include <vtkDoubleArray.h>
#include <vtkPolyData.h>
#include <vtkSmartPointer.h>
//class Grid : public Geometry
class Grid : public Object
{
public:
// Operators
// -----------------------------------------------------------------------------
Grid (std::string name, int size = 10, double spacing = 1.0);
~Grid () { }
// Accessors
// -----------------------------------------------------------------------------
inline vtkSmartPointer<vtkRectilinearGrid>
getGrid () const
{
return grid_;
}
// virtual vtkSmartPointer<vtkActor>
vtkSmartPointer<vtkActor>
getGridActor () const
{
return grid_actor_;
}
private:
// Members
// -----------------------------------------------------------------------------
vtkSmartPointer<vtkRectilinearGrid> grid_;
vtkSmartPointer<vtkActor> grid_actor_;
};
Grid::~Grid
~Grid()
Definition: grid.h:27
Grid::Grid
Grid(std::string name, int size=10, double spacing=1.0)
Grid
Definition: grid.h:20
Grid::getGridActor
vtkSmartPointer< vtkActor > getGridActor() const
Definition: grid.h:39
Grid::getGrid
vtkSmartPointer< vtkRectilinearGrid > getGrid() const
Definition: grid.h:32
Object
Definition: object.h:18
vtkSmartPointer< vtkRectilinearGrid >