ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::geometry::OctreeNode Class Reference

The base class for octree node. More...

#include <Octree.h>

Inheritance diagram for cloudViewer::geometry::OctreeNode:
Collaboration diagram for cloudViewer::geometry::OctreeNode:

Public Member Functions

 OctreeNode ()
 Default Constructor. More...
 
virtual ~OctreeNode ()
 
- Public Member Functions inherited from cloudViewer::utility::IJsonConvertible
virtual ~IJsonConvertible ()
 
virtual bool ConvertToJsonValue (Json::Value &value) const =0
 
virtual bool ConvertFromJsonValue (const Json::Value &value)=0
 
virtual std::string ToString () const
 Convert to a styled string representation of JSON data for display. More...
 

Static Public Member Functions

static std::shared_ptr< OctreeNodeConstructFromJsonValue (const Json::Value &value)
 Factory function to construct an OctreeNode by parsing the json value. More...
 
- Static Public Member Functions inherited from cloudViewer::utility::IJsonConvertible
static bool EigenVector3dFromJsonArray (Eigen::Vector3d &vec, const Json::Value &value)
 
static bool EigenVector3dToJsonArray (const Eigen::Vector3d &vec, Json::Value &value)
 
static bool EigenVector4dFromJsonArray (Eigen::Vector4d &vec, const Json::Value &value)
 
static bool EigenVector4dToJsonArray (const Eigen::Vector4d &vec, Json::Value &value)
 
static bool EigenMatrix3dFromJsonArray (Eigen::Matrix3d &mat, const Json::Value &value)
 
static bool EigenMatrix3dToJsonArray (const Eigen::Matrix3d &mat, Json::Value &value)
 
static bool EigenMatrix4dFromJsonArray (Eigen::Matrix4d &mat, const Json::Value &value)
 
static bool EigenMatrix4dToJsonArray (const Eigen::Matrix4d &mat, Json::Value &value)
 
static bool EigenMatrix4dFromJsonArray (Eigen::Matrix4d_u &mat, const Json::Value &value)
 
static bool EigenMatrix4dToJsonArray (const Eigen::Matrix4d_u &mat, Json::Value &value)
 
static bool EigenMatrix6dFromJsonArray (Eigen::Matrix6d &mat, const Json::Value &value)
 
static bool EigenMatrix6dToJsonArray (const Eigen::Matrix6d &mat, Json::Value &value)
 
static bool EigenMatrix6dFromJsonArray (Eigen::Matrix6d_u &mat, const Json::Value &value)
 
static bool EigenMatrix6dToJsonArray (const Eigen::Matrix6d_u &mat, Json::Value &value)
 

Detailed Description

The base class for octree node.

Design decision: do not store origin and size of a node

  • Good: better space efficiency.
  • Bad: need to recompute origin and size when traversing.

Definition at line 75 of file Octree.h.

Constructor & Destructor Documentation

◆ OctreeNode()

cloudViewer::geometry::OctreeNode::OctreeNode ( )
inline

Default Constructor.

Definition at line 79 of file Octree.h.

◆ ~OctreeNode()

virtual cloudViewer::geometry::OctreeNode::~OctreeNode ( )
inlinevirtual

Definition at line 80 of file Octree.h.

Member Function Documentation

◆ ConstructFromJsonValue()

static std::shared_ptr<OctreeNode> cloudViewer::geometry::OctreeNode::ConstructFromJsonValue ( const Json::Value &  value)
static

Factory function to construct an OctreeNode by parsing the json value.


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