Classes | Typedefs | Enumerations | Functions
nanoply Namespace Reference

Classes

class  DataDescriptor
class  DescriptorInterface
class  ElementDescriptor
class  Info
class  NanoPlyWrapper
class  PlyElement
class  PlyFile
class  PlyProperty

Typedefs

typedef enum nanoply::NNP_ERROR ErrorCode
typedef std::vector
< ElementDescriptor * > 
MeshDescriptor
typedef enum nanoply::NNP_ELEM PlyElemEntity
typedef enum nanoply::NNP_ENTITY PlyEntity
typedef enum nanoply::NNP_PLYTYPE PlyType

Enumerations

enum  NNP_ELEM { NNP_UNKNOWN_ELEM = 0x0, NNP_VERTEX_ELEM = 0x1, NNP_EDGE_ELEM = 0x2, NNP_FACE_ELEM = 0x4 }
enum  NNP_ENTITY {
  NNP_UNKNOWN_ENTITY = 0x00000000, NNP_PX = 0x00000001, NNP_PY = 0x00000002, NNP_PZ = 0x00000004,
  NNP_PXYZ = 0x00000007, NNP_NX = 0x00000010, NNP_NY = 0x00000020, NNP_NZ = 0x00000040,
  NNP_NXYZ = 0x00000070, NNP_CR = 0x00000100, NNP_CG = 0x00000200, NNP_CB = 0x00000400,
  NNP_CRGB = 0x00000700, NNP_CA = 0x00000800, NNP_CRGBA = 0x00000F00, NNP_DENSITY = 0x00000008,
  NNP_SCALE = 0x00000080, NNP_TEXTUREU = 0x00001000, NNP_TEXTUREV = 0x00002000, NNP_TEXTURE2D = 0x00003000,
  NNP_TEXTUREW = 0x00004000, NNP_TEXTURE3D = 0x00007000, NNP_TEXTUREINDEX = 0x00008000, NNP_QUALITY = 0x00010000,
  NNP_REFLECTANCE = 0x00020000, NNP_BITFLAG = 0x00040000, NNP_K1 = 0x00080000, NNP_K2 = 0x00100000,
  NNP_KG = 0x00200000, NNP_KH = 0x00400000, NNP_K1DIR = 0x00800000, NNP_K2DIR = 0x01000000,
  NNP_EDGE_V1 = 0x02000000, NNP_EDGE_V2 = 0x04000000, NNP_FACE_VERTEX_LIST = 0x08000000, NNP_FACE_WEDGE_COLOR = 0x10000000,
  NNP_FACE_WEDGE_NORMAL = 0x20000000, NNP_FACE_WEDGE_TEX = 0x40000000
}
enum  NNP_ERROR {
  NNP_OK = 0x0000, NNP_UNABLE_TO_OPEN = 0x0001, NNP_MISSING_HEADER = 0x0002, NNP_MISSING_FORMAT = 0x0004,
  NNP_INVALID_ELEMENT = 0x0008, NNP_INVALID_PROPERTY = 0x0010
}
enum  NNP_PLYTYPE {
  NNP_UNKNOWN_TYPE = 0x000000, NNP_FLOAT32 = 0x000001, NNP_FLOAT64 = 0x000002, NNP_INT8 = 0x000004,
  NNP_INT16 = 0x000008, NNP_INT32 = 0x000010, NNP_UINT8 = 0x000020, NNP_UINT16 = 0x000040,
  NNP_UINT32 = 0x000080, NNP_LIST_UINT8_UINT32 = 0x000100, NNP_LIST_INT8_UINT32 = 0x000200, NNP_LIST_UINT8_INT32 = 0x000400,
  NNP_LIST_INT8_INT32 = 0x000800, NNP_LIST_UINT8_FLOAT32 = 0x001000, NNP_LIST_INT8_FLOAT32 = 0x002000, NNP_LIST_UINT8_FLOAT64 = 0x004000,
  NNP_LIST_INT8_FLOAT64 = 0x008000, NNP_LIST_UINT8_UINT8 = 0x010000, NNP_LIST_INT8_UINT8 = 0x020000, NNP_LIST_UINT8_INT8 = 0x040000,
  NNP_LIST_INT8_INT8 = 0x080000, NNP_LIST_UINT8_UINT16 = 0x100000, NNP_LIST_INT8_UINT16 = 0x200000, NNP_LIST_UINT8_INT16 = 0x400000,
  NNP_LIST_INT8_INT16 = 0x800000
}

Functions

template<size_t ActionType>
bool ElemProcessing (ElementDescriptor &elemDescr, PlyElement &elem, PlyFile &file, bool fixEndian)
bool OpenModel (Info &info, MeshDescriptor &meshElements)
bool SaveModel (std::string &filename, MeshDescriptor &meshElements, Info &info)

Typedef Documentation

Error Type. Error type returned by the open of a PLY file.

Definition at line 2377 of file nanoply.hpp.

PLY Element Entity. Element that can be saved in PLY file.

PLY Entity. Property that can be saved in a PLY file.

PLY Type. Type of a PLY property.


Enumeration Type Documentation

PLY Element Entity. Element that can be saved in PLY file.

Enumerator:
NNP_UNKNOWN_ELEM 

Unknown element.

NNP_VERTEX_ELEM 

Vertex element.

NNP_EDGE_ELEM 

Edge element.

NNP_FACE_ELEM 

Face element.

Definition at line 63 of file nanoply.hpp.

PLY Entity. Property that can be saved in a PLY file.

Enumerator:
NNP_UNKNOWN_ENTITY 

Unknown property.

NNP_PX 

Position x cordinate.

NNP_PY 

Position y cordinate.

NNP_PZ 

Position z cordinate.

NNP_PXYZ 

Position (x, y, z).

NNP_NX 

Normal x component.

NNP_NY 

Normal y component.

NNP_NZ 

Normal z component.

NNP_NXYZ 

Normal (x, y, z).

NNP_CR 

Color red component.

NNP_CG 

Color green component.

NNP_CB 

Color blue component.

NNP_CRGB 

Color RGB.

NNP_CA 

Color alpha component.

NNP_CRGBA 

Color RGBA.

NNP_DENSITY 

Density or Radius property.

NNP_SCALE 

Scale property.

NNP_TEXTUREU 

Texture coordinate u.

NNP_TEXTUREV 

Texture coordinate v.

NNP_TEXTURE2D 

Texture coordinate 2D.

NNP_TEXTUREW 

Texture coordinate w.

NNP_TEXTURE3D 

Texture coordinate 3D.

NNP_TEXTUREINDEX 

Texture index.

NNP_QUALITY 

Quality property.

NNP_REFLECTANCE 

Reflectance property.

NNP_BITFLAG 

Bit flags.

NNP_K1 

Main curvaure value k1.

NNP_K2 

Main curvaure value k2.

NNP_KG 

Gaussian curvature value.

NNP_KH 

Mean curvature value.

NNP_K1DIR 

Curvature direction k1.

NNP_K2DIR 

Curvature direction k2.

NNP_EDGE_V1 

Index of the first vertex of the edge.

NNP_EDGE_V2 

Index of the second vertex of the edge.

NNP_FACE_VERTEX_LIST 

List of vertex indices for the face.

NNP_FACE_WEDGE_COLOR 

List of colors for wedge.

NNP_FACE_WEDGE_NORMAL 

List of normals for wedge.

NNP_FACE_WEDGE_TEX 

List of texture coordinates for wedge.

Definition at line 75 of file nanoply.hpp.

Error Type. Error type returned by the open of a PLY file.

Enumerator:
NNP_OK 

No error.

NNP_UNABLE_TO_OPEN 

The file cannot be opend.

NNP_MISSING_HEADER 

The file does not contain a valid PLY header.

NNP_MISSING_FORMAT 

The file has an invalid internal format.

NNP_INVALID_ELEMENT 

The file has an invalid element.

NNP_INVALID_PROPERTY 

The file has an invalid property.

Definition at line 49 of file nanoply.hpp.

PLY Type. Type of a PLY property.

Enumerator:
NNP_UNKNOWN_TYPE 

Unknown type.

NNP_FLOAT32 

Float.

NNP_FLOAT64 

Double.

NNP_INT8 

Char.

NNP_INT16 

Short.

NNP_INT32 

Int.

NNP_UINT8 

Unsigned Char.

NNP_UINT16 

Unsigned Short.

NNP_UINT32 

Unsigned Int.

NNP_LIST_UINT8_UINT32 

List (size Unsigned Char) of Unsigned Int.

NNP_LIST_INT8_UINT32 

List (size Char) of Unsigned Int.

NNP_LIST_UINT8_INT32 

List (size Unsigned Char) of Int.

NNP_LIST_INT8_INT32 

List (size Char) of Int.

NNP_LIST_UINT8_FLOAT32 

List (size Unsigned Char) of Float.

NNP_LIST_INT8_FLOAT32 

List (size Char) of Float.

NNP_LIST_UINT8_FLOAT64 

List (size Unsigned Char) of Double.

NNP_LIST_INT8_FLOAT64 

List (size Char) of Double.

NNP_LIST_UINT8_UINT8 

List (size Unsigned Char) of Unsigned Char.

NNP_LIST_INT8_UINT8 

List (size Char) of Unsigned Char.

NNP_LIST_UINT8_INT8 

List (size Unsigned Char) of Char.

NNP_LIST_INT8_INT8 

List (size Char) of Char.

NNP_LIST_UINT8_UINT16 

List (size Unsigned Char) of Unsigned Short.

NNP_LIST_INT8_UINT16 

List (size Char) of Unsigned Short.

NNP_LIST_UINT8_INT16 

List (size Unsigned Char) of Short.

NNP_LIST_INT8_INT16 

List (size Char) of Short.

Definition at line 121 of file nanoply.hpp.


Function Documentation

template<size_t ActionType>
bool nanoply::ElemProcessing ( ElementDescriptor &  elemDescr,
PlyElement &  elem,
PlyFile &  file,
bool  fixEndian 
) [inline]

Definition at line 2357 of file nanoply.hpp.

bool nanoply::OpenModel ( Info info,
MeshDescriptor &  meshElements 
)

Load a 3D model from a PLY file.

Parameters:
meshElementsVector that defines how to manage the ply element data in memory.
infoInfo of the file to load.

Definition at line 2385 of file nanoply.hpp.

bool nanoply::SaveModel ( std::string &  filename,
MeshDescriptor &  meshElements,
Info info 
)

Save a 3D model in a PLY file.

Parameters:
filenamePath to the file to save.
meshElementsVector that defines how to manage the ply element data in memory.
infoInfo to saved in the PLY header.

Definition at line 2453 of file nanoply.hpp.



shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:41:09