Generic Component: Per vertex Texture Coords More...
#include <component.h>
Public Types | |
typedef A | TexCoordType |
Public Member Functions | |
TexCoordType | cT () const |
template<class RightValueType > | |
void | ImportData (const RightValueType &rVert) |
const TexCoordType & | T () const |
Return a const reference to the Texture Coordinate. | |
TexCoordType & | T () |
Static Public Member Functions | |
static bool | HasTexCoord () |
static void | Name (std::vector< std::string > &name) |
Private Attributes | |
TexCoordType | _t |
Generic Component: Per vertex Texture Coords
Note that to have multiple different TexCoord for a single vertex (as it happens on atlas where a vertex can belong to two triangles mapped on different portionof the texture) you have two options:
It is templated on the TextureCoord type. Usually you use the specialized classes TexCoord2f or TexCoord2d; See the TexCoord2 class to see how to access to texture coordinate values.
Definition at line 286 of file vertex/component.h.
typedef A vcg::vertex::TexCoord< A, TT >::TexCoordType |
Definition at line 288 of file vertex/component.h.
TexCoordType vcg::vertex::TexCoord< A, TT >::cT | ( | ) | const [inline] |
Definition at line 293 of file vertex/component.h.
static bool vcg::vertex::TexCoord< A, TT >::HasTexCoord | ( | ) | [inline, static] |
Definition at line 296 of file vertex/component.h.
void vcg::vertex::TexCoord< A, TT >::ImportData | ( | const RightValueType & | rVert | ) | [inline] |
Reimplemented in vcg::vertex::VFAdj< Arity4< vertex::EmptyCore< MyUsedTypes >, vertex::InfoOcf, vertex::Coord3f, vertex::Normal3f, vertex::TexCoord2f > >, vcg::vertex::VFAdj< Arity3< vertex::EmptyCore< VoroUsedTypes >, vertex::Coord3f, vertex::Normal3f, vertex::TexCoord2f > >, vcg::vertex::Quality< float, Arity5< vertex::EmptyCore< MyUsedTypes >, vertex::InfoOcf, vertex::Coord3f, vertex::Normal3f, vertex::TexCoord2f, vertex::VFAdj > >, vcg::vertex::Quality< float, Arity4< vertex::EmptyCore< VoroUsedTypes >, vertex::Coord3f, vertex::Normal3f, vertex::TexCoord2f, vertex::VFAdj > >, vcg::vertex::Quality< double, Arity5< vertex::EmptyCore< MyUsedTypes >, vertex::Coord3d, vertex::Normal3d, vertex::BitFlags, vertex::VFAdj, vertex::TexCoord2d > >, vcg::vertex::Color< vcg::Color4b, Arity5< vertex::EmptyCore< VoroUsedTypes >, vertex::Coord3f, vertex::Normal3f, vertex::TexCoord2f, vertex::VFAdj, vertex::Qualityf > >, vcg::vertex::Color< vcg::Color4b, Arity6< vertex::EmptyCore< MyUsedTypes >, vertex::InfoOcf, vertex::Coord3f, vertex::Normal3f, vertex::TexCoord2f, vertex::VFAdj, vertex::Qualityf > >, vcg::vertex::BitFlags< Arity7< vertex::EmptyCore< MyUsedTypes >, vertex::InfoOcf, vertex::Coord3f, vertex::Normal3f, vertex::TexCoord2f, vertex::VFAdj, vertex::Qualityf, vertex::Color4b > >, vcg::vertex::BitFlags< Arity6< vertex::EmptyCore< VoroUsedTypes >, vertex::Coord3f, vertex::Normal3f, vertex::TexCoord2f, vertex::VFAdj, vertex::Qualityf, vertex::Color4b > >, and vcg::vertex::BitFlags< Arity3< vertex::EmptyCore< MyUsedTypes >, vertex::Coord3f, vertex::Normal3f, vertex::TexCoord2f > >.
Definition at line 295 of file vertex/component.h.
static void vcg::vertex::TexCoord< A, TT >::Name | ( | std::vector< std::string > & | name | ) | [inline, static] |
Reimplemented in vcg::vertex::VFAdj< Arity4< vertex::EmptyCore< MyUsedTypes >, vertex::InfoOcf, vertex::Coord3f, vertex::Normal3f, vertex::TexCoord2f > >, vcg::vertex::VFAdj< Arity3< vertex::EmptyCore< VoroUsedTypes >, vertex::Coord3f, vertex::Normal3f, vertex::TexCoord2f > >, vcg::vertex::Qualityd< Arity5< vertex::EmptyCore< MyUsedTypes >, vertex::Coord3d, vertex::Normal3d, vertex::BitFlags, vertex::VFAdj, vertex::TexCoord2d > >, vcg::vertex::Qualityf< Arity5< vertex::EmptyCore< MyUsedTypes >, vertex::InfoOcf, vertex::Coord3f, vertex::Normal3f, vertex::TexCoord2f, vertex::VFAdj > >, vcg::vertex::Qualityf< Arity4< vertex::EmptyCore< VoroUsedTypes >, vertex::Coord3f, vertex::Normal3f, vertex::TexCoord2f, vertex::VFAdj > >, vcg::vertex::Quality< float, Arity5< vertex::EmptyCore< MyUsedTypes >, vertex::InfoOcf, vertex::Coord3f, vertex::Normal3f, vertex::TexCoord2f, vertex::VFAdj > >, vcg::vertex::Quality< float, Arity4< vertex::EmptyCore< VoroUsedTypes >, vertex::Coord3f, vertex::Normal3f, vertex::TexCoord2f, vertex::VFAdj > >, vcg::vertex::Quality< double, Arity5< vertex::EmptyCore< MyUsedTypes >, vertex::Coord3d, vertex::Normal3d, vertex::BitFlags, vertex::VFAdj, vertex::TexCoord2d > >, vcg::vertex::Color4b< Arity6< vertex::EmptyCore< MyUsedTypes >, vertex::InfoOcf, vertex::Coord3f, vertex::Normal3f, vertex::TexCoord2f, vertex::VFAdj, vertex::Qualityf > >, vcg::vertex::Color4b< Arity5< vertex::EmptyCore< VoroUsedTypes >, vertex::Coord3f, vertex::Normal3f, vertex::TexCoord2f, vertex::VFAdj, vertex::Qualityf > >, vcg::vertex::Color< vcg::Color4b, Arity5< vertex::EmptyCore< VoroUsedTypes >, vertex::Coord3f, vertex::Normal3f, vertex::TexCoord2f, vertex::VFAdj, vertex::Qualityf > >, vcg::vertex::Color< vcg::Color4b, Arity6< vertex::EmptyCore< MyUsedTypes >, vertex::InfoOcf, vertex::Coord3f, vertex::Normal3f, vertex::TexCoord2f, vertex::VFAdj, vertex::Qualityf > >, vcg::vertex::BitFlags< Arity7< vertex::EmptyCore< MyUsedTypes >, vertex::InfoOcf, vertex::Coord3f, vertex::Normal3f, vertex::TexCoord2f, vertex::VFAdj, vertex::Qualityf, vertex::Color4b > >, vcg::vertex::BitFlags< Arity6< vertex::EmptyCore< VoroUsedTypes >, vertex::Coord3f, vertex::Normal3f, vertex::TexCoord2f, vertex::VFAdj, vertex::Qualityf, vertex::Color4b > >, vcg::vertex::BitFlags< Arity3< vertex::EmptyCore< MyUsedTypes >, vertex::Coord3f, vertex::Normal3f, vertex::TexCoord2f > >, vcg::vertex::TexCoord2d< TT >, vcg::vertex::TexCoord2d< Arity4< vertex::EmptyCore< MyUsedTypes >, vertex::Coord3d, vertex::Normal3d, vertex::BitFlags, vertex::VFAdj > >, vcg::vertex::TexCoord2f< TT >, vcg::vertex::TexCoord2f< Arity2< vertex::EmptyCore< VoroUsedTypes >, vertex::Coord3f, vertex::Normal3f > >, vcg::vertex::TexCoord2f< Arity3< vertex::EmptyCore< MyUsedTypes >, vertex::InfoOcf, vertex::Coord3f, vertex::Normal3f > >, vcg::vertex::TexCoord2f< Arity2< vertex::EmptyCore< MyUsedTypes >, vertex::Coord3f, vertex::Normal3f > >, and vcg::vertex::TexCoord2s< TT >.
Definition at line 297 of file vertex/component.h.
const TexCoordType& vcg::vertex::TexCoord< A, TT >::T | ( | ) | const [inline] |
Return a const reference to the Texture Coordinate.
Definition at line 291 of file vertex/component.h.
TexCoordType& vcg::vertex::TexCoord< A, TT >::T | ( | ) | [inline] |
Definition at line 292 of file vertex/component.h.
TexCoordType vcg::vertex::TexCoord< A, TT >::_t [private] |
Definition at line 300 of file vertex/component.h.