|
Polyphase Game Engine
|
#include <PointCloud.h>
Classes | |
| struct | AttribArray |
Public Member Functions | |
| PointCloud ()=default | |
| ~PointCloud ()=default | |
| uint32_t | GetNumPoints () const |
| void | Resize (uint32_t count) |
| void | AddPoint (const glm::vec3 &pos) |
| void | RemovePoint (uint32_t index) |
| void | Clear () |
| const glm::vec3 & | GetPosition (uint32_t i) const |
| void | SetPosition (uint32_t i, const glm::vec3 &p) |
| const std::vector< glm::vec3 > & | GetPositions () const |
| void | AddAttribute (const std::string &name, DatumType type) |
| bool | HasAttribute (const std::string &name) const |
| DatumType | GetAttributeType (const std::string &name) const |
| float | GetAttributeFloat (uint32_t pointIndex, const std::string &name) const |
| int32_t | GetAttributeInt (uint32_t pointIndex, const std::string &name) const |
| glm::vec3 | GetAttributeVector (uint32_t pointIndex, const std::string &name) const |
| glm::vec4 | GetAttributeColor (uint32_t pointIndex, const std::string &name) const |
| const std::string & | GetAttributeString (uint32_t pointIndex, const std::string &name) const |
| void | SetAttributeFloat (uint32_t pointIndex, const std::string &name, float value) |
| void | SetAttributeInt (uint32_t pointIndex, const std::string &name, int32_t value) |
| void | SetAttributeVector (uint32_t pointIndex, const std::string &name, const glm::vec3 &value) |
| void | SetAttributeColor (uint32_t pointIndex, const std::string &name, const glm::vec4 &value) |
| void | SetAttributeString (uint32_t pointIndex, const std::string &name, const std::string &value) |
| float | GetPScale (uint32_t i) const |
| glm::vec4 | GetCd (uint32_t i) const |
| glm::vec3 | GetNormal (uint32_t i) const |
| glm::vec3 | GetVelocity (uint32_t i) const |
| void | Merge (const PointCloud &other) |
| PointCloud * | Clone () const |
| const std::unordered_map< std::string, AttribArray > & | GetAttributes () const |
|
default |
|
default |
| void PointCloud::AddAttribute | ( | const std::string & | name, |
| DatumType | type | ||
| ) |
| void PointCloud::AddPoint | ( | const glm::vec3 & | pos | ) |
| void PointCloud::Clear | ( | ) |
| PointCloud * PointCloud::Clone | ( | ) | const |
| glm::vec4 PointCloud::GetAttributeColor | ( | uint32_t | pointIndex, |
| const std::string & | name | ||
| ) | const |
| float PointCloud::GetAttributeFloat | ( | uint32_t | pointIndex, |
| const std::string & | name | ||
| ) | const |
| int32_t PointCloud::GetAttributeInt | ( | uint32_t | pointIndex, |
| const std::string & | name | ||
| ) | const |
|
inline |
| const std::string & PointCloud::GetAttributeString | ( | uint32_t | pointIndex, |
| const std::string & | name | ||
| ) | const |
| DatumType PointCloud::GetAttributeType | ( | const std::string & | name | ) | const |
| glm::vec3 PointCloud::GetAttributeVector | ( | uint32_t | pointIndex, |
| const std::string & | name | ||
| ) | const |
| glm::vec4 PointCloud::GetCd | ( | uint32_t | i | ) | const |
| glm::vec3 PointCloud::GetNormal | ( | uint32_t | i | ) | const |
| uint32_t PointCloud::GetNumPoints | ( | ) | const |
| const glm::vec3 & PointCloud::GetPosition | ( | uint32_t | i | ) | const |
| const std::vector< glm::vec3 > & PointCloud::GetPositions | ( | ) | const |
| float PointCloud::GetPScale | ( | uint32_t | i | ) | const |
| glm::vec3 PointCloud::GetVelocity | ( | uint32_t | i | ) | const |
| bool PointCloud::HasAttribute | ( | const std::string & | name | ) | const |
| void PointCloud::Merge | ( | const PointCloud & | other | ) |
| void PointCloud::RemovePoint | ( | uint32_t | index | ) |
| void PointCloud::Resize | ( | uint32_t | count | ) |
| void PointCloud::SetAttributeColor | ( | uint32_t | pointIndex, |
| const std::string & | name, | ||
| const glm::vec4 & | value | ||
| ) |
| void PointCloud::SetAttributeFloat | ( | uint32_t | pointIndex, |
| const std::string & | name, | ||
| float | value | ||
| ) |
| void PointCloud::SetAttributeInt | ( | uint32_t | pointIndex, |
| const std::string & | name, | ||
| int32_t | value | ||
| ) |
| void PointCloud::SetAttributeString | ( | uint32_t | pointIndex, |
| const std::string & | name, | ||
| const std::string & | value | ||
| ) |
| void PointCloud::SetAttributeVector | ( | uint32_t | pointIndex, |
| const std::string & | name, | ||
| const glm::vec3 & | value | ||
| ) |
| void PointCloud::SetPosition | ( | uint32_t | i, |
| const glm::vec3 & | p | ||
| ) |