42 #include <pcl/point_cloud.h>
46 class vtkUnstructuredGrid;
57 struct ModelCoefficients;
58 template <
typename Po
intT>
class PlanarPolygon;
60 namespace visualization
82 createLine (
const Eigen::Vector4f &pt1,
const Eigen::Vector4f &pt2);
91 createSphere (
const Eigen::Vector4f ¢er,
double radius,
int res = 10);
268 createCube (
const Eigen::Vector3f &translation,
const Eigen::Quaternionf &rotation,
269 double width,
double height,
double depth);
281 double y_min,
double y_max,
282 double z_min,
double z_max);
294 double radius_x,
double radius_y,
double radius_z);
305 #include <pcl/visualization/common/impl/shapes.hpp>
PlanarPolygon represents a planar (2D) polygon, potentially in a 3D space.
shared_ptr< const PointCloud< PointT > > ConstPtr
PCL_EXPORTS vtkSmartPointer< vtkDataSet > createPlane(const pcl::ModelCoefficients &coefficients)
Create a planar shape from a set of model coefficients.
vtkSmartPointer< vtkDataSet > createPolygon(const typename pcl::PointCloud< PointT >::ConstPtr &cloud)
Create a 3d poly line from a set of points.
PCL_EXPORTS vtkSmartPointer< vtkDataSet > createEllipsoid(const Eigen::Isometry3d &transform, double radius_x, double radius_y, double radius_z)
Create an ellipsoid shape from the given parameters.
PCL_EXPORTS vtkSmartPointer< vtkDataSet > createCylinder(const pcl::ModelCoefficients &coefficients, int numsides=30)
Create a cylinder shape from a set of model coefficients.
PCL_EXPORTS vtkSmartPointer< vtkDataSet > createSphere(const Eigen::Vector4f ¢er, double radius, int res=10)
Create a sphere shape from a point and a radius.
PCL_EXPORTS vtkSmartPointer< vtkDataSet > createCube(const pcl::ModelCoefficients &coefficients)
Create a cube shape from a set of model coefficients.
PCL_EXPORTS vtkSmartPointer< vtkDataSet > createLine(const Eigen::Vector4f &pt1, const Eigen::Vector4f &pt2)
Create a line shape from two points.
PCL_EXPORTS vtkSmartPointer< vtkDataSet > createCone(const pcl::ModelCoefficients &coefficients)
Create a cone shape from a set of model coefficients.
PCL_EXPORTS vtkSmartPointer< vtkDataSet > create2DCircle(const pcl::ModelCoefficients &coefficients, double z=0.0)
Create a 2d circle shape from a set of model coefficients.
PCL_EXPORTS void allocVtkUnstructuredGrid(vtkSmartPointer< vtkUnstructuredGrid > &polydata)
Allocate a new unstructured grid smartpointer.