Loading...
Searching...
No Matches
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 () override = default;
// 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
Definition grid.h:21
Grid::Grid
Grid(std::string name, int size=10, double spacing=1.0)
Grid::getGridActor
vtkSmartPointer< vtkActor > getGridActor() const
Definition grid.h:39
Grid::getGrid
vtkSmartPointer< vtkRectilinearGrid > getGrid() const
Definition grid.h:32
Grid::~Grid
~Grid() override=default
Object
Definition object.h:19
vtkSmartPointer
Definition actor_map.h:51