|
neurolots
0.3.5
NeuroLOTs
|
Inheritance diagram for nlgeometry::Vertex:
Collaboration diagram for nlgeometry::Vertex:Public Member Functions | |
| NLGEOMETRY_API | Vertex (const Eigen::Vector3f &position_, const Eigen::Vector3f &normal_=Eigen::Vector3f(0.0f, 0.0f, 0.0f), const Eigen::Vector3f &color_=Eigen::Vector3f(0.0f, 0.0f, 0.0f), const Eigen::Vector2f &uv_=Eigen::Vector2f(0.0f, 0.0f)) |
| Constructor. More... | |
| NLGEOMETRY_API | Vertex (const Vertex &other_) |
| Copy constructor. More... | |
| virtual NLGEOMETRY_API | ~Vertex (void) |
| Default destructor. | |
| NLGEOMETRY_API const unsigned int & | id (void) const |
| Method to get the vertex id. More... | |
| NLGEOMETRY_API Eigen::Vector3f & | position (void) |
| Method to get the vertex position. More... | |
| NLGEOMETRY_API const Eigen::Vector3f & | position (void) const |
| NLGEOMETRY_API Eigen::Vector3f & | normal (void) |
| Method to get the vertex normal. More... | |
| NLGEOMETRY_API const Eigen::Vector3f & | normal (void) const |
| NLGEOMETRY_API Eigen::Vector3f & | color (void) |
| Method to get the vertex color. More... | |
| NLGEOMETRY_API const Eigen::Vector3f & | color (void) const |
| NLGEOMETRY_API Eigen::Vector2f & | uv (void) |
| Method to get the vertex uv coordinates. More... | |
| NLGEOMETRY_API const Eigen::Vector2f & | uv (void) const |
| virtual NLGEOMETRY_API void | displace (const Eigen::Vector3f &displacement_) |
| Method to displace the vertex position. More... | |
| virtual NLGEOMETRY_API void | place (const Eigen::Vector3f &placement_) |
| Method to place the vertex position. More... | |
| virtual NLGEOMETRY_API void | rotate (const Eigen::Matrix3f &rotation_) |
| Method to rotate the vertex position and normal. More... | |
| virtual NLGEOMETRY_API void | rotate (const Eigen::Quaternion< float > &rotation_) |
| Method to rotate the vertex position and normal. More... | |
| virtual NLGEOMETRY_API void | norm (const float norm_) |
| Method to change the modulus of the position vector. More... | |
| virtual NLGEOMETRY_API void | normalize (const Eigen::Vector3f &) |
| virtual NLGEOMETRY_API void | store (std::vector< float > &buffer_, const TAttribType attribType_) |
| NLGEOMETRY_API void | store (Attribs &attribs_, const AttribsFormat format_) |
| Method that store the vertex attribs (position, normal, color, uv coordinates) and assigns the vertex id. More... | |
| virtual NLGEOMETRY_API VertexPtr | clone (void) |
| Method that return a cloned vertex. More... | |
Protected Attributes | |
| unsigned int | _id |
| Vertex id. | |
| Eigen::Vector3f | _position |
| Vertex position. | |
| Eigen::Vector3f | _normal |
| Vertex normal. | |
| Eigen::Vector3f | _color |
| Vertex color. | |
| Eigen::Vector2f | _uv |
| Vertex uv coordinates. | |
| NLGEOMETRY_API nlgeometry::Vertex::Vertex | ( | const Eigen::Vector3f & | position_, |
| const Eigen::Vector3f & | normal_ = Eigen::Vector3f(0.0f, 0.0f, 0.0f), |
||
| const Eigen::Vector3f & | color_ = Eigen::Vector3f(0.0f, 0.0f, 0.0f), |
||
| const Eigen::Vector2f & | uv_ = Eigen::Vector2f(0.0f, 0.0f) |
||
| ) |
Constructor.
| position_ | vertex position |
| normal_ | vertex normal |
| color_ | vertex color |
| uv_ | vertex uv coordinates |
| NLGEOMETRY_API nlgeometry::Vertex::Vertex | ( | const Vertex & | other_ | ) |
Copy constructor.
| other_ | vertex to be copied |
|
virtual |
Method that return a cloned vertex.
Reimplemented in nlgeometry::OrbitalVertex.
| NLGEOMETRY_API Eigen::Vector3f& nlgeometry::Vertex::color | ( | void | ) |
Method to get the vertex color.
|
virtual |
Method to displace the vertex position.
| displacement_ | displacement applied to the vertex position |
Reimplemented in nlgeometry::OrbitalVertex.
| NLGEOMETRY_API const unsigned int& nlgeometry::Vertex::id | ( | void | ) | const |
Method to get the vertex id.
|
virtual |
Method to change the modulus of the position vector.
| norm_ | new position vector modulus |
Reimplemented in nlgeometry::OrbitalVertex.
| NLGEOMETRY_API Eigen::Vector3f& nlgeometry::Vertex::normal | ( | void | ) |
Method to get the vertex normal.
|
virtual |
Method to place the vertex position.
| placement_ | placement to place the vertex position |
Reimplemented in nlgeometry::OrbitalVertex.
| NLGEOMETRY_API Eigen::Vector3f& nlgeometry::Vertex::position | ( | void | ) |
Method to get the vertex position.
|
virtual |
Method to rotate the vertex position and normal.
| rotation_ | matrix with the rotation to be applied |
Reimplemented in nlgeometry::OrbitalVertex.
|
virtual |
Method to rotate the vertex position and normal.
| rotation_ | quaternion with the rotation to be applied |
Reimplemented in nlgeometry::OrbitalVertex.
| NLGEOMETRY_API void nlgeometry::Vertex::store | ( | Attribs & | attribs_, |
| const AttribsFormat | format_ | ||
| ) |
Method that store the vertex attribs (position, normal, color, uv coordinates) and assigns the vertex id.
| attribs_ | reference to the vertex attribs to return |
| fomat_ | vector with the attribs format |
| NLGEOMETRY_API Eigen::Vector2f& nlgeometry::Vertex::uv | ( | void | ) |
Method to get the vertex uv coordinates.