Public Member Functions | Private Attributes

lssr::PLYElement Class Reference

Representation of an element in a ply file. More...

#include <PLYElement.hpp>

Collaboration diagram for lssr::PLYElement:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

Representation of an element in a ply file.

Definition at line 25 of file PLYElement.hpp.


Constructor & Destructor Documentation

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.

Parameters:
name The name element
count The number of elements in the file

Definition at line 40 of file PLYElement.hpp.


Member Function Documentation

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.

Parameters:
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.

Here is the caller graph for this function:

vector<Property*>::iterator lssr::PLYElement::getFirstProperty (  )  [inline]

Definition at line 129 of file PLYElement.hpp.

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

string lssr::PLYElement::getName (  )  [inline]

Returns the name of the element.

Definition at line 139 of file PLYElement.hpp.

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

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.

A list of properties of the current element.

Definition at line 171 of file PLYElement.hpp.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Defines