Open3D (C++ API)
|
#include <SelectionPolygon.h>
Public Types | |
enum | SectionPolygonType { SectionPolygonType::Unfilled = 0, SectionPolygonType::Rectangle = 1, SectionPolygonType::Polygon = 2 } |
Public Types inherited from open3d::geometry::Geometry | |
enum | GeometryType { GeometryType::Unspecified = 0, GeometryType::PointCloud = 1, GeometryType::VoxelGrid = 2, GeometryType::Octree = 3, GeometryType::LineSet = 4, GeometryType::TriangleMesh = 5, GeometryType::HalfEdgeTriangleMesh = 6, GeometryType::Image = 7 } |
Public Member Functions | |
SelectionPolygon () | |
~SelectionPolygon () override | |
void | Clear () override |
bool | IsEmpty () const override |
Eigen::Vector2d | GetMinBound () const final |
Eigen::Vector2d | GetMaxBound () const final |
void | FillPolygon (int width, int height) |
std::shared_ptr< geometry::PointCloud > | CropPointCloud (const geometry::PointCloud &input, const ViewControl &view) |
std::shared_ptr< geometry::TriangleMesh > | CropTriangleMesh (const geometry::TriangleMesh &input, const ViewControl &view) |
std::shared_ptr< SelectionPolygonVolume > | CreateSelectionPolygonVolume (const ViewControl &view) |
Public Member Functions inherited from open3d::geometry::Geometry2D | |
~Geometry2D () override | |
Public Member Functions inherited from open3d::geometry::Geometry | |
virtual | ~Geometry () |
GeometryType | GetGeometryType () const |
int | Dimension () const |
Data Fields | |
std::vector< Eigen::Vector2d > | polygon_ |
bool | is_closed_ = false |
geometry::Image | polygon_interior_mask_ |
SectionPolygonType | polygon_type_ = SectionPolygonType::Unfilled |
Additional Inherited Members | |
Protected Member Functions inherited from open3d::geometry::Geometry2D | |
Geometry2D (GeometryType type) | |
Protected Member Functions inherited from open3d::geometry::Geometry | |
Geometry (GeometryType type, int dimension) | |
A 2D polygon used for selection on screen It is a utility class for Visualization The coordinates in SelectionPolygon are lower-left corner based (the OpenGL convention).
|
inline |
|
inlineoverride |
|
overridevirtual |
Implements open3d::geometry::Geometry2D.
std::shared_ptr< SelectionPolygonVolume > open3d::visualization::SelectionPolygon::CreateSelectionPolygonVolume | ( | const ViewControl & | view | ) |
std::shared_ptr< geometry::PointCloud > open3d::visualization::SelectionPolygon::CropPointCloud | ( | const geometry::PointCloud & | input, |
const ViewControl & | view | ||
) |
std::shared_ptr< geometry::TriangleMesh > open3d::visualization::SelectionPolygon::CropTriangleMesh | ( | const geometry::TriangleMesh & | input, |
const ViewControl & | view | ||
) |
void open3d::visualization::SelectionPolygon::FillPolygon | ( | int | width, |
int | height | ||
) |
|
finalvirtual |
Implements open3d::geometry::Geometry2D.
|
finalvirtual |
Implements open3d::geometry::Geometry2D.
|
overridevirtual |
Implements open3d::geometry::Geometry2D.
bool open3d::visualization::SelectionPolygon::is_closed_ = false |
std::vector<Eigen::Vector2d> open3d::visualization::SelectionPolygon::polygon_ |
geometry::Image open3d::visualization::SelectionPolygon::polygon_interior_mask_ |
SectionPolygonType open3d::visualization::SelectionPolygon::polygon_type_ = SectionPolygonType::Unfilled |