Euclid
Geometry Processing and Shape Analysis in C++
Euclid::PlyElement Class Reference

Ply element. More...

#include <PlyIO.h>

Classes

class  const_iterator
 Iterate through the properties in this element. More...
 
class  iterator
 Iterate through the properties in this element. More...
 

Public Member Functions

 PlyElement (const std::string &name, unsigned count)
 Create a PlyElement with name and instance count.
 
 PlyElement (const PlyElement &rhs)=delete
 
PlyElementoperator= (const PlyElement &rhs)=delete
 
 PlyElement (PlyElement &&rhs)
 
PlyElementoperator= (PlyElement &&rhs)
 
const std::string & name () const
 Return the name of the element.
 
unsigned count () const
 Return the instance count of this element in file.
 
void add_property (std::unique_ptr< PlyProperty > property)
 Add a property to this element.
 
PlyPropertyproperty (size_t i)
 Get the property by index.
 
const PlyPropertyproperty (size_t i) const
 Get the property by index.
 
size_t n_props () const
 Return the size of the property list.
 
iterator begin ()
 Return the begin iterator of the property vector.
 
const_iterator begin () const
 Return the begin const_iterator of the property vector.
 
iterator end ()
 Return the end iterator of the property vector.
 
const_iterator end () const
 Return the end const_iterator of the property vector.
 

Detailed Description

An element represents a basic geometric primitive in a ply file. An element has a name, the number of instances, and a list of properties describing its values.


The documentation for this class was generated from the following file: