|
|
| PointCloud () |
| | Creates a cloud with no points.
|
| |
|
virtual | ~PointCloud () |
| | Destroys cloud and frees all property data.
|
| |
|
| PointCloud (const PointCloud &source) |
| | Make a deep copy of the source PointCloud.
|
| |
|
PointCloud & | operator= (const PointCloud &source) |
| | Make a deep copy of the source PointCloud.
|
| |
|
| PointCloud (PointCloud &&) noexcept=default |
| | Move-construct PointCloud.
|
| |
|
PointCloud & | operator= (PointCloud &&) noexcept=default |
| | Move-construct PointCloud.
|
| |
|
virtual bool | Import (const std::string &filename) |
| | Imports point cloud from a file.
|
| |
|
virtual bool | Export (const std::string &filename) const |
| | Exports point clouds to a file.
|
| |
|
virtual bool | Resize (uint32_t new_size) |
| | Resizes point count to the new value without initialization of data of newly created points.
|
| |
|
virtual uint32_t | GetSize () const |
| | Returns number of points currently stored in the cloud.
|
| |
|
virtual void | Reserve (uint32_t new_capacity) |
| | Changes capacity of cloud. This method is not adding any points.
|
| |
|
uint32_t | GetCapacity () const |
| | Returns how much points can be added with currently reserved memory.
|
| |
|
virtual void | ShrinkToFit () |
| | Frees spare memory so that new capacity exactly matches size.
|
| |
|
virtual void | Clear () |
| | Removes all points from cloud.
|
| |
| virtual bool | Erase (std::vector< uint32_t > indices_to_erase, std::vector< int > *replacement_map=nullptr) |
| | Removes points with specific indices from cloud. More...
|
| |
| virtual bool | Erase (const PointNormalPredicate &Predicate, std::vector< int > *replacement_map=nullptr) |
| | Removes all points from cloud that satisfy a specified condition. More...
|
| |
| virtual bool | Append (const PointCloud &pc) |
| | Increments size of this by the size of pc and copies property data available in both. More...
|
| |
| glm::vec3 * | GetPositions () |
| | Returns pointer to position data. More...
|
| |
| const glm::vec3 * | GetPositions () const |
| | Returns pointer to position data. More...
|
| |
| bool | HasNormals () const |
| | Checks whether normal property exists. More...
|
| |
| glm::vec3 * | GetNormals () |
| | When normal property exists, returns the pointer to data, nullptr otherwise. More...
|
| |
| const glm::vec3 * | GetNormals () const |
| | When normal property exists, returns the pointer to data, nullptr otherwise. More...
|
| |
| const PointCloudProperty & | AddNormals () |
| | Creates PointCloud::NORMALS property buffer if it was not added already. More...
|
| |
| bool | HasColors () const |
| | Checks whether color property exists. More...
|
| |
| struct Color3f * | GetColors () |
| | When color property exists, returns the pointer to data, nullptr otherwise. More...
|
| |
| const struct Color3f * | GetColors () const |
| | When color property exists, returns the pointer to data, nullptr otherwise. More...
|
| |
| const PointCloudProperty & | AddColors () |
| | Creates PointCloud::COLORS property buffer if it was not added already. More...
|
| |
| bool | HasIntensities () const |
| | Checks whether intensity property exists. More...
|
| |
| float * | GetIntensities () |
| | When intensity property exists, returns the pointer to data, nullptr otherwise. More...
|
| |
| const float * | GetIntensities () const |
| | When intensity property exists, returns the pointer to data, nullptr otherwise. More...
|
| |
| const PointCloudProperty & | AddIntensities () |
| | Creates PointCloud::INTENSITIES property buffer if it was not added already. More...
|
| |
|
const std::vector< PointCloudProperty > & | GetProperties () const |
| | Returns all available properties.
|
| |
| const PointCloudProperty & | AddProperty (const PointCloudProperty::Key &key, DataType type) |
| | Creates new property buffer. More...
|
| |
| const PointCloudProperty & | AddProperty (const PointCloudProperty::Key &key, size_t bytes_per_point) |
| | Creates new property buffer. More...
|
| |
|
void | RemoveProperty (const PointCloudProperty::Key &key) |
| | Remove a single property by key..
|
| |
|
void | ClonePropertiesOf (const PointCloud &pc) |
| | Adds all properties, which are not already present in this.
|
| |
|
bool | HasProperty (const PointCloudProperty::Key &key) const |
| | Checks whether a specific property exists.
|
| |
|
std::optional< PointCloudProperty > | GetProperty (const PointCloudProperty::Key &key) |
| | Returns property with specified key if it exists, std::nullopt otherwise.
|
| |
|
std::optional< const PointCloudProperty > | GetProperty (const PointCloudProperty::Key &key) const |
| | Returns property with specified key if it exists, std::nullopt otherwise.
|
| |
|
virtual void * | GetVoidData (const PointCloudProperty::Key &key) |
| | When property exists, returns the pointer to data, nullptr otherwise.
|
| |
|
const void * | GetVoidData (const PointCloudProperty::Key &key) const |
| | When property exists, returns the pointer to data, nullptr otherwise.
|
| |
|
template<typename T > |
| T * | GetData (const PointCloudProperty::Key &key) |
| | When property exists, returns the pointer to data of a template type, nullptr otherwise.
|
| |
|
template<typename T > |
| const T * | GetData (const PointCloudProperty::Key &key) const |
| | When property exists, returns the pointer to data of a template type, nullptr otherwise.
|
| |
| virtual void | Transform (const glm::mat4 &transformation, const std::optional< utils::SpaceDefinition > &resulting_space=std::nullopt) |
| | Transforms point positions and normals. More...
|
| |
|
bool | HasSpace () const |
| | Returns true, if there is a space defined for this structure.
|
| |
|
const std::optional< utils::SpaceDefinition > & | GetSpace () const |
| | Returns current space definition, if there is one.
|
| |
|
std::string | GetSpaceId () const |
| | Returns string representation of current space definition. Returns "N/A" otherwise.
|
| |
|
void | SetSpace (const std::optional< utils::SpaceDefinition > &new_space) |
| | Assigns a new space definition to the structure, overwriting the previous one.
|
| |
|
bool | TransformToSpace (const utils::SpaceDefinition &new_space) |
| | Transforms the structure to the new space. Fails, if the current space is not defined.
|
| |
Management class for a set of data points in a 3D space.
Class stores point data separated in data buffers. Every data record is called a property, and by default, only a single property exists - PointCloud::POSITIONS. User can specify custom properties which will be assigned to all points in the cloud.