An example Object: a Vertex with x,y,z coordinates. More...
#include <example.h>
Public Member Functions | |
| Vertex () | |
| Default constructor. | |
| Vertex (float x, float y, float z) | |
| Instantiated constructor. More... | |
| Value * | get_value (const Element &elem, const Property &prop) |
| Get a Value. More... | |
| bool | make_element (Element &elem) const |
| Construct an Element describing this Object. More... | |
Accessors. | |
| float | x () const |
| Get the x coordinate. More... | |
| float | y () const |
| Get the y coordinate. More... | |
| float | z () const |
| Get the z coordinate. More... | |
Mutators. | |
| void | x (float coord) |
| Set the x coordinate. More... | |
| void | y (float coord) |
| Set the y coordinate. More... | |
| void | z (float coord) |
| Set the z coordinate. More... | |
Public Member Functions inherited from PLY::Object | |
| virtual void | prepare (const Element &elem) |
| Prepare the Object to represent an Element. More... | |
| bool | describe_element (Header &header) const |
| Add an Element describing this Object to a Header. More... | |
| bool | storage_test (const Element &elem) |
| Check if the Object matches with an Element. More... | |
Public Attributes | |
The coordinates. | |
| FloatValue | value_x |
| FloatValue | value_y |
| FloatValue | value_z |
Static Public Attributes | |
| static const char * | name = "vertex" |
| The identifier. | |
The Properties. | |
| static const Property | prop_x = Property("x", SCALAR, Float32) |
| static const Property | prop_y = Property("y", SCALAR, Float32) |
| static const Property | prop_z = Property("z", SCALAR, Float32) |
An example Object: a Vertex with x,y,z coordinates.
Note that this Object forgets any Propeties of the Vertex (e.g. color) except the coordinates.
|
inline |
Instantiated constructor.
| x | the value for x |
| y | the value for y |
| z | the value for z |
|
inlinevirtual |
|
inline |
Get the x coordinate.
|
inline |
Set the x coordinate.
| coord | the x coordinate. |
|
inline |
Get the y coordinate.
|
inline |
Set the y coordinate.
| coord | the y coordinate. |
|
inline |
Get the z coordinate.
|
inline |
Set the z coordinate.
| coord | the z coordinate. |
1.8.4