Assimp  v4.1. (December 2018)
Assimp::PLY::Element Class Reference

Helper class for an element in a PLY file. More...

Public Member Functions

 Element () AI_NO_EXCEPT
 Default constructor. More...
 

Static Public Member Functions

static bool ParseElement (IOStreamBuffer< char > &streamBuffer, std::vector< char > &buffer, Element *pOut)
 Parse an element from a string. More...
 
static EElementSemantic ParseSemantic (std::vector< char > &buffer)
 Parse a semantic from a string. More...
 

Public Attributes

std::vector< PropertyalProperties
 List of properties assigned to the element std::vector to support operator[]. More...
 
EElementSemantic eSemantic
 Semantic of the element. More...
 
unsigned int NumOccur
 How many times will the element occur? More...
 
std::string szName
 Of the semantic of the element could not be parsed: Contains the semantic specified in the file. More...
 

Detailed Description

Helper class for an element in a PLY file.

This can e.g. be the vertex declaration. Elements contain a well-defined number of properties.

Constructor & Destructor Documentation

◆ Element()

Assimp::PLY::Element::Element ( )
inline

Default constructor.

Member Function Documentation

◆ ParseElement()

bool PLY::Element::ParseElement ( IOStreamBuffer< char > &  streamBuffer,
std::vector< char > &  buffer,
PLY::Element pOut 
)
static

Parse an element from a string.

The function will parse all properties contained in the element, too.

◆ ParseSemantic()

PLY::EElementSemantic PLY::Element::ParseSemantic ( std::vector< char > &  buffer)
static

Parse a semantic from a string.

Member Data Documentation

◆ alProperties

std::vector<Property> Assimp::PLY::Element::alProperties

List of properties assigned to the element std::vector to support operator[].

◆ eSemantic

EElementSemantic Assimp::PLY::Element::eSemantic

Semantic of the element.

◆ NumOccur

unsigned int Assimp::PLY::Element::NumOccur

How many times will the element occur?

◆ szName

std::string Assimp::PLY::Element::szName

Of the semantic of the element could not be parsed: Contains the semantic specified in the file.


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