Open3D (C++ API)
Public Member Functions | Data Fields
open3d::geometry::VoxelGrid Class Reference

#include <VoxelGrid.h>

Inheritance diagram for open3d::geometry::VoxelGrid:
open3d::geometry::Geometry3D open3d::geometry::Geometry open3d::geometry::TSDFVoxelGrid

Public Member Functions

 VoxelGrid ()
 
 VoxelGrid (const VoxelGrid &src_voxel_grid)
 
 ~VoxelGrid () override
 
void Clear () override
 
bool IsEmpty () const override
 
Eigen::Vector3d GetMinBound () const override
 
Eigen::Vector3d GetMaxBound () const override
 
VoxelGridTransform (const Eigen::Matrix4d &transformation) override
 
VoxelGridTranslate (const Eigen::Vector3d &translation) override
 
VoxelGridScale (const double scale, bool center=true) override
 
VoxelGridRotate (const Eigen::Vector3d &rotation, bool center=true, RotationType type=RotationType::XYZ) override
 
VoxelGridoperator+= (const VoxelGrid &voxelgrid)
 
VoxelGrid operator+ (const VoxelGrid &voxelgrid) const
 
bool HasVoxels () const
 
bool HasColors () const
 
Eigen::Vector3i GetVoxel (const Eigen::Vector3d &point) const
 
void FromOctree (const Octree &octree)
 
std::shared_ptr< geometry::OctreeToOctree (const size_t &max_depth) const
 
- Public Member Functions inherited from open3d::geometry::Geometry3D
 ~Geometry3D () override
 
- Public Member Functions inherited from open3d::geometry::Geometry
virtual ~Geometry ()
 
GeometryType GetGeometryType () const
 
int Dimension () const
 

Data Fields

double voxel_size_
 
Eigen::Vector3d origin_
 
std::vector< Voxelvoxels_
 

Additional Inherited Members

- Public Types inherited from open3d::geometry::Geometry3D
enum  RotationType {
  RotationType::XYZ, RotationType::YZX, RotationType::ZXY, RotationType::XZY,
  RotationType::ZYX, RotationType::YXZ, RotationType::AxisAngle
}
 
- 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
}
 
- Protected Member Functions inherited from open3d::geometry::Geometry3D
 Geometry3D (GeometryType type)
 
Eigen::Matrix3d GetRotationMatrix (const Eigen::Vector3d &rotation, RotationType type=RotationType::XYZ) const
 
- Protected Member Functions inherited from open3d::geometry::Geometry
 Geometry (GeometryType type, int dimension)
 

Constructor & Destructor Documentation

◆ VoxelGrid() [1/2]

open3d::geometry::VoxelGrid::VoxelGrid ( )
inline

◆ VoxelGrid() [2/2]

open3d::geometry::VoxelGrid::VoxelGrid ( const VoxelGrid src_voxel_grid)

◆ ~VoxelGrid()

open3d::geometry::VoxelGrid::~VoxelGrid ( )
inlineoverride

Member Function Documentation

◆ Clear()

void open3d::geometry::VoxelGrid::Clear ( )
overridevirtual

◆ FromOctree()

void open3d::geometry::VoxelGrid::FromOctree ( const Octree octree)

◆ GetMaxBound()

Eigen::Vector3d open3d::geometry::VoxelGrid::GetMaxBound ( ) const
overridevirtual

◆ GetMinBound()

Eigen::Vector3d open3d::geometry::VoxelGrid::GetMinBound ( ) const
overridevirtual

◆ GetVoxel()

Eigen::Vector3i open3d::geometry::VoxelGrid::GetVoxel ( const Eigen::Vector3d &  point) const

◆ HasColors()

bool open3d::geometry::VoxelGrid::HasColors ( ) const
inline

◆ HasVoxels()

bool open3d::geometry::VoxelGrid::HasVoxels ( ) const
inline

◆ IsEmpty()

bool open3d::geometry::VoxelGrid::IsEmpty ( ) const
overridevirtual

◆ operator+()

VoxelGrid open3d::geometry::VoxelGrid::operator+ ( const VoxelGrid voxelgrid) const

◆ operator+=()

VoxelGrid & open3d::geometry::VoxelGrid::operator+= ( const VoxelGrid voxelgrid)

◆ Rotate()

VoxelGrid & open3d::geometry::VoxelGrid::Rotate ( const Eigen::Vector3d &  rotation,
bool  center = true,
RotationType  type = RotationType::XYZ 
)
overridevirtual

◆ Scale()

VoxelGrid & open3d::geometry::VoxelGrid::Scale ( const double  scale,
bool  center = true 
)
overridevirtual

◆ ToOctree()

std::shared_ptr< geometry::Octree > open3d::geometry::VoxelGrid::ToOctree ( const size_t &  max_depth) const

◆ Transform()

VoxelGrid & open3d::geometry::VoxelGrid::Transform ( const Eigen::Matrix4d &  transformation)
overridevirtual

◆ Translate()

VoxelGrid & open3d::geometry::VoxelGrid::Translate ( const Eigen::Vector3d &  translation)
overridevirtual

Field Documentation

◆ origin_

Eigen::Vector3d open3d::geometry::VoxelGrid::origin_

◆ voxel_size_

double open3d::geometry::VoxelGrid::voxel_size_

◆ voxels_

std::vector<Voxel> open3d::geometry::VoxelGrid::voxels_

The documentation for this class was generated from the following files: