Representation of an element in a ply file. More...
#include <PLYElement.hpp>
Public Member Functions | |
PLYElement () | |
Default ctor. | |
PLYElement (string name, size_t count) | |
Creates an element description with given name and count. | |
void | addProperty (string name, string elementType, string listType="", size_t count=0) |
Adds a new property with the given name into the element. | |
vector< Property * >::iterator | getFirstProperty () |
vector< Property * >::iterator | getLastProperty () |
Returns an iterator to the end of the property list. | |
string | getName () |
Returns the name of the element. | |
size_t | getCount () |
Returns the number of elements in the ply file. | |
void | printProperties (ostream &out) |
Prints a ply conform description of each property in the element to the given stream. | |
Private Attributes | |
vector< Property * > | m_properties |
A list of properties of the current element. | |
string | m_name |
The name of the element. | |
size_t | m_count |
The number of elements of this type in the ply file. |
Representation of an element in a ply file.
Definition at line 25 of file PLYElement.hpp.
lssr::PLYElement::PLYElement | ( | ) | [inline] |
Default ctor.
Definition at line 32 of file PLYElement.hpp.
lssr::PLYElement::PLYElement | ( | string | name, | |
size_t | count | |||
) | [inline] |
Creates an element description with given name and count.
name | The name element | |
count | The number of elements in the file |
Definition at line 40 of file PLYElement.hpp.
void lssr::PLYElement::addProperty | ( | string | name, | |
string | elementType, | |||
string | listType = "" , |
|||
size_t | count = 0 | |||
) | [inline] |
Adds a new property with the given name into the element.
name | The name of the new property. | |
elementType | The element type @ |
Definition at line 49 of file PLYElement.hpp.
size_t lssr::PLYElement::getCount | ( | ) | [inline] |
Returns the number of elements in the ply file.
Definition at line 144 of file PLYElement.hpp.
vector<Property*>::iterator lssr::PLYElement::getFirstProperty | ( | ) | [inline] |
vector<Property*>::iterator lssr::PLYElement::getLastProperty | ( | ) | [inline] |
Returns an iterator to the end of the property list.
Definition at line 134 of file PLYElement.hpp.
string lssr::PLYElement::getName | ( | ) | [inline] |
Returns the name of the element.
Definition at line 139 of file PLYElement.hpp.
void lssr::PLYElement::printProperties | ( | ostream & | out | ) | [inline] |
Prints a ply conform description of each property in the element to the given stream.
Definition at line 150 of file PLYElement.hpp.
size_t lssr::PLYElement::m_count [private] |
The number of elements of this type in the ply file.
Definition at line 177 of file PLYElement.hpp.
string lssr::PLYElement::m_name [private] |
The name of the element.
Definition at line 174 of file PLYElement.hpp.
vector<Property*> lssr::PLYElement::m_properties [private] |
A list of properties of the current element.
Definition at line 171 of file PLYElement.hpp.