vcg::tri::TrivialSampler< MeshType > Class Template Reference

#include <point_sampling.h>

List of all members.

Public Types

typedef MeshType::CoordType CoordType
typedef MeshType::FaceType FaceType
typedef MeshType::VertexType VertexType

Public Member Functions

void AddFace (const FaceType &f, const CoordType &p)
void AddTextureSample (const FaceType &, const CoordType &, const Point2i &, float)
void AddVert (const VertexType &p)
 TrivialSampler (std::vector< CoordType > &Vec)
 TrivialSampler ()
 ~TrivialSampler ()

Private Attributes

std::vector< CoordType > * sampleVec
bool vectorOwner

Detailed Description

template<class MeshType>
class vcg::tri::TrivialSampler< MeshType >

Trivial Sampler, an example sampler object that show the required interface used by the sampling class. Most of the sampling classes call the AddFace method with the face containing the sample and its barycentric coord. Beside being an example of how to write a sampler it provides a simple way to use the various sampling classes.

Definition at line 64 of file point_sampling.h.


Member Typedef Documentation

template<class MeshType>
typedef MeshType::CoordType vcg::tri::TrivialSampler< MeshType >::CoordType

Definition at line 67 of file point_sampling.h.

template<class MeshType>
typedef MeshType::FaceType vcg::tri::TrivialSampler< MeshType >::FaceType

Definition at line 69 of file point_sampling.h.

template<class MeshType>
typedef MeshType::VertexType vcg::tri::TrivialSampler< MeshType >::VertexType

Definition at line 68 of file point_sampling.h.


Constructor & Destructor Documentation

template<class MeshType>
vcg::tri::TrivialSampler< MeshType >::TrivialSampler (  )  [inline]

Definition at line 71 of file point_sampling.h.

template<class MeshType>
vcg::tri::TrivialSampler< MeshType >::TrivialSampler ( std::vector< CoordType > &  Vec  )  [inline]

Definition at line 77 of file point_sampling.h.

template<class MeshType>
vcg::tri::TrivialSampler< MeshType >::~TrivialSampler (  )  [inline]

Definition at line 84 of file point_sampling.h.


Member Function Documentation

template<class MeshType>
void vcg::tri::TrivialSampler< MeshType >::AddFace ( const FaceType f,
const CoordType p 
) [inline]

Definition at line 98 of file point_sampling.h.

template<class MeshType>
void vcg::tri::TrivialSampler< MeshType >::AddTextureSample ( const FaceType ,
const CoordType ,
const Point2i ,
float   
) [inline]

Definition at line 103 of file point_sampling.h.

template<class MeshType>
void vcg::tri::TrivialSampler< MeshType >::AddVert ( const VertexType p  )  [inline]

Definition at line 94 of file point_sampling.h.


Member Data Documentation

template<class MeshType>
std::vector<CoordType>* vcg::tri::TrivialSampler< MeshType >::sampleVec [private]

Definition at line 90 of file point_sampling.h.

template<class MeshType>
bool vcg::tri::TrivialSampler< MeshType >::vectorOwner [private]

Definition at line 91 of file point_sampling.h.


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


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:23:36 2013