Visualization Library 2.0.0

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes | List of all members
vl::PlyLoader::PlyScalar Class Reference

Used by PlyLoader. More...

#include <ioPLY.hpp>

+ Inheritance diagram for vl::PlyLoader::PlyScalar:

Public Member Functions

 PlyScalar ()
 
void setScalarType (EType type)
 
EType scalarType () const
 
virtual void read (VirtualFile *file, bool le)
 
virtual void read (TextStream *text)
 
float getAsFloat () const
 
int getAsInt () const
 
- Public Member Functions inherited from vl::PlyLoader::PlyPropertyAbstract
const Stringname () const
 
void setName (const String &name)
 
- Public Member Functions inherited from vl::Object
 Object ()
 Constructor. More...
 
 Object (const Object &other)
 Copy constructor: copies the name, ref count mutex and user data. More...
 
Objectoperator= (const Object &other)
 Copy operator: copies the object's name, ref count mutex and user data. More...
 
const std::string & objectName () const
 The name of the object, by default set to the object's class name. More...
 
void setObjectName (const char *name)
 The name of the object, by default set to the object's class name in debug builds. More...
 
void setObjectName (const std::string &name)
 The name of the object, by default set to the object's class name in debug builds. More...
 
void setRefCountMutex (IMutex *mutex)
 The mutex used to protect the reference counting of an Object across multiple threads. More...
 
IMutexrefCountMutex ()
 The mutex used to protect the reference counting of an Object across multiple threads. More...
 
const IMutexrefCountMutex () const
 The mutex used to protect the reference counting of an Object across multiple threads. More...
 
int referenceCount () const
 Returns the number of references of an object. More...
 
void incReference () const
 Increments the reference count of an object. More...
 
void decReference ()
 Decrements the reference count of an object and deletes it if both automaticDelete() is true the count reaches 0. More...
 
void setAutomaticDelete (bool autodel_on)
 If set to true the Object is deleted when its reference count reaches 0. More...
 
bool automaticDelete () const
 If set to true the Object is deleted when its reference count reaches 0. More...
 
template<class T >
T * as ()
 Casts an Object to the specified class. More...
 
template<class T >
const T * as () const
 Casts an Object to the specified class. More...
 

Protected Attributes

union {
   char   mChar
 
   unsigned char   mUChar
 
   short   mShort
 
   unsigned short   mUShort
 
   int   mInt
 
   unsigned int   mUInt
 
   float   mFloat
 
   double   mDouble
 
mData
 
EType mScalarType
 
- Protected Attributes inherited from vl::PlyLoader::PlyPropertyAbstract
String mName
 
- Protected Attributes inherited from vl::Object
std::string mObjectName
 
IMutexmRefCountMutex
 
int mReferenceCount
 
bool mAutomaticDelete
 

Additional Inherited Members

- Protected Member Functions inherited from vl::Object
virtual ~Object ()
 

Detailed Description

Used by PlyLoader.

Definition at line 118 of file ioPLY.hpp.

Constructor & Destructor Documentation

◆ PlyScalar()

vl::PlyLoader::PlyScalar::PlyScalar ( )
inline

Definition at line 121 of file ioPLY.hpp.

Referenced by vl::PlyLoader::readHeader().

Member Function Documentation

◆ getAsFloat()

float PlyLoader::PlyScalar::getAsFloat ( ) const

◆ getAsInt()

int PlyLoader::PlyScalar::getAsInt ( ) const

◆ read() [1/2]

void PlyLoader::PlyScalar::read ( VirtualFile file,
bool  le 
)
virtual

◆ read() [2/2]

void PlyLoader::PlyScalar::read ( TextStream text)
virtual

◆ scalarType()

EType vl::PlyLoader::PlyScalar::scalarType ( ) const
inline

Definition at line 123 of file ioPLY.hpp.

Referenced by getAsFloat(), getAsInt(), and read().

◆ setScalarType()

void vl::PlyLoader::PlyScalar::setScalarType ( EType  type)
inline

Definition at line 122 of file ioPLY.hpp.

Referenced by vl::PlyLoader::PlyScalarList::read().

Member Data Documentation

◆ mChar

char vl::PlyLoader::PlyScalar::mChar

Definition at line 131 of file ioPLY.hpp.

◆ mData

union { ... } vl::PlyLoader::PlyScalar::mData

Referenced by getAsFloat(), getAsInt(), and read().

◆ mDouble

double vl::PlyLoader::PlyScalar::mDouble

Definition at line 138 of file ioPLY.hpp.

◆ mFloat

float vl::PlyLoader::PlyScalar::mFloat

Definition at line 137 of file ioPLY.hpp.

◆ mInt

int vl::PlyLoader::PlyScalar::mInt

Definition at line 135 of file ioPLY.hpp.

◆ mScalarType

EType vl::PlyLoader::PlyScalar::mScalarType
protected

Definition at line 140 of file ioPLY.hpp.

◆ mShort

short vl::PlyLoader::PlyScalar::mShort

Definition at line 133 of file ioPLY.hpp.

◆ mUChar

unsigned char vl::PlyLoader::PlyScalar::mUChar

Definition at line 132 of file ioPLY.hpp.

◆ mUInt

unsigned int vl::PlyLoader::PlyScalar::mUInt

Definition at line 136 of file ioPLY.hpp.

◆ mUShort

unsigned short vl::PlyLoader::PlyScalar::mUShort

Definition at line 134 of file ioPLY.hpp.


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