#include <point_sampling.h>
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 |
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.
typedef MeshType::CoordType vcg::tri::TrivialSampler< MeshType >::CoordType |
Definition at line 67 of file point_sampling.h.
typedef MeshType::FaceType vcg::tri::TrivialSampler< MeshType >::FaceType |
Definition at line 69 of file point_sampling.h.
typedef MeshType::VertexType vcg::tri::TrivialSampler< MeshType >::VertexType |
Definition at line 68 of file point_sampling.h.
vcg::tri::TrivialSampler< MeshType >::TrivialSampler | ( | ) | [inline] |
Definition at line 71 of file point_sampling.h.
vcg::tri::TrivialSampler< MeshType >::TrivialSampler | ( | std::vector< CoordType > & | Vec | ) | [inline] |
Definition at line 77 of file point_sampling.h.
vcg::tri::TrivialSampler< MeshType >::~TrivialSampler | ( | ) | [inline] |
Definition at line 84 of file point_sampling.h.
void vcg::tri::TrivialSampler< MeshType >::AddFace | ( | const FaceType & | f, | |
const CoordType & | p | |||
) | [inline] |
Definition at line 98 of file point_sampling.h.
void vcg::tri::TrivialSampler< MeshType >::AddTextureSample | ( | const FaceType & | , | |
const CoordType & | , | |||
const Point2i & | , | |||
float | ||||
) | [inline] |
Definition at line 103 of file point_sampling.h.
void vcg::tri::TrivialSampler< MeshType >::AddVert | ( | const VertexType & | p | ) | [inline] |
Definition at line 94 of file point_sampling.h.
std::vector<CoordType>* vcg::tri::TrivialSampler< MeshType >::sampleVec [private] |
Definition at line 90 of file point_sampling.h.
bool vcg::tri::TrivialSampler< MeshType >::vectorOwner [private] |
Definition at line 91 of file point_sampling.h.