Templated class for a storing a set of 2D texture coord plus their texture id. More...
#include <texcoord2.h>
Public Types | |
enum | { n_coords = NMAX } |
typedef Point2< T > | PointType |
typedef T | ScalarType |
Public Member Functions | |
short & | N () |
Return a reference to the texture id of the vertex. | |
short | N () const |
Return a const reference to the texture id of the vertex. | |
short & | N (int i) |
short | N (int i) const |
short & | n () |
short | n () const |
short & | n (int i) |
short | n (int i) const |
bool | operator!= (const TexCoord2 &p) const |
bool | operator< (const TexCoord2 &p) const |
bool | operator== (const TexCoord2 &p) const |
const PointType & | P () const |
PointType & | P () |
const PointType & | P (const int i) const |
PointType & | P (const int i) |
Point2< T > & | t (int i) |
Point2< T > | t (int i) const |
Point2< T > & | t () |
Point2< T > | t () const |
TexCoord2 (T u, T v) | |
TexCoord2 () | |
T & | U () |
Return a reference to the u texture coordinate of the vertex. | |
const T & | U () const |
Return a const reference to the u texture coordinate of the vertex. | |
T & | U (int i) |
const T & | U (int i) const |
T & | u () |
const T & | u () const |
T & | u (int i) |
const T & | u (int i) const |
T & | V () |
Return a reference to the v texture coordinate of the vertex. | |
const T & | V () const |
Return a const reference to the v texture coordinate of the vertex. | |
T & | V (int i) |
const T & | V (int i) const |
T & | v () |
const T & | v () const |
T & | v (int i) |
const T & | v (int i) const |
Private Attributes | |
short | _n [NMAX] |
PointType | _t [NMAX] |
Templated class for a storing a set of 2D texture coord plus their texture id.
This class is templated over two parameters:
This class is intended to be used when multiple textures id are shared over the same surface. so for each coord the id of the texture is stored. If no texture id is needed see the vcg::TexCoord2Simple class.
Definition at line 47 of file texcoord2.h.
typedef Point2<T> vcg::TexCoord2< T, NMAX >::PointType |
Definition at line 50 of file texcoord2.h.
typedef T vcg::TexCoord2< T, NMAX >::ScalarType |
Definition at line 51 of file texcoord2.h.
anonymous enum |
Definition at line 134 of file texcoord2.h.
vcg::TexCoord2< T, NMAX >::TexCoord2 | ( | T | u, |
T | v | ||
) | [inline] |
Definition at line 59 of file texcoord2.h.
vcg::TexCoord2< T, NMAX >::TexCoord2 | ( | ) | [inline] |
Definition at line 60 of file texcoord2.h.
short& vcg::TexCoord2< T, NMAX >::N | ( | ) | [inline] |
Return a reference to the texture id of the vertex.
Definition at line 82 of file texcoord2.h.
short vcg::TexCoord2< T, NMAX >::N | ( | ) | const [inline] |
Return a const reference to the texture id of the vertex.
Definition at line 84 of file texcoord2.h.
short& vcg::TexCoord2< T, NMAX >::N | ( | int | i | ) | [inline] |
Definition at line 86 of file texcoord2.h.
short vcg::TexCoord2< T, NMAX >::N | ( | int | i | ) | const [inline] |
Definition at line 87 of file texcoord2.h.
short& vcg::TexCoord2< T, NMAX >::n | ( | ) | [inline] |
Definition at line 100 of file texcoord2.h.
short vcg::TexCoord2< T, NMAX >::n | ( | ) | const [inline] |
Definition at line 101 of file texcoord2.h.
short& vcg::TexCoord2< T, NMAX >::n | ( | int | i | ) | [inline] |
Definition at line 103 of file texcoord2.h.
short vcg::TexCoord2< T, NMAX >::n | ( | int | i | ) | const [inline] |
Definition at line 104 of file texcoord2.h.
bool vcg::TexCoord2< T, NMAX >::operator!= | ( | const TexCoord2< T, NMAX > & | p | ) | const [inline] |
Definition at line 120 of file texcoord2.h.
bool vcg::TexCoord2< T, NMAX >::operator< | ( | const TexCoord2< T, NMAX > & | p | ) | const [inline] |
Definition at line 127 of file texcoord2.h.
bool vcg::TexCoord2< T, NMAX >::operator== | ( | const TexCoord2< T, NMAX > & | p | ) | const [inline] |
Definition at line 113 of file texcoord2.h.
const PointType& vcg::TexCoord2< T, NMAX >::P | ( | ) | const [inline] |
Definition at line 62 of file texcoord2.h.
PointType& vcg::TexCoord2< T, NMAX >::P | ( | ) | [inline] |
Definition at line 63 of file texcoord2.h.
const PointType& vcg::TexCoord2< T, NMAX >::P | ( | const int | i | ) | const [inline] |
Definition at line 65 of file texcoord2.h.
PointType& vcg::TexCoord2< T, NMAX >::P | ( | const int | i | ) | [inline] |
Definition at line 66 of file texcoord2.h.
Point2<T>& vcg::TexCoord2< T, NMAX >::t | ( | int | i | ) | [inline] |
Definition at line 106 of file texcoord2.h.
Point2<T> vcg::TexCoord2< T, NMAX >::t | ( | int | i | ) | const [inline] |
Definition at line 107 of file texcoord2.h.
Point2<T>& vcg::TexCoord2< T, NMAX >::t | ( | ) | [inline] |
Definition at line 109 of file texcoord2.h.
Point2<T> vcg::TexCoord2< T, NMAX >::t | ( | ) | const [inline] |
Definition at line 110 of file texcoord2.h.
T& vcg::TexCoord2< T, NMAX >::U | ( | ) | [inline] |
Return a reference to the u texture coordinate of the vertex.
Definition at line 69 of file texcoord2.h.
const T& vcg::TexCoord2< T, NMAX >::U | ( | ) | const [inline] |
Return a const reference to the u texture coordinate of the vertex.
Definition at line 73 of file texcoord2.h.
T& vcg::TexCoord2< T, NMAX >::U | ( | int | i | ) | [inline] |
Definition at line 76 of file texcoord2.h.
const T& vcg::TexCoord2< T, NMAX >::U | ( | int | i | ) | const [inline] |
Definition at line 78 of file texcoord2.h.
T& vcg::TexCoord2< T, NMAX >::u | ( | ) | [inline] |
Definition at line 91 of file texcoord2.h.
const T& vcg::TexCoord2< T, NMAX >::u | ( | ) | const [inline] |
Definition at line 93 of file texcoord2.h.
T& vcg::TexCoord2< T, NMAX >::u | ( | int | i | ) | [inline] |
Definition at line 95 of file texcoord2.h.
const T& vcg::TexCoord2< T, NMAX >::u | ( | int | i | ) | const [inline] |
Definition at line 97 of file texcoord2.h.
T& vcg::TexCoord2< T, NMAX >::V | ( | ) | [inline] |
Return a reference to the v texture coordinate of the vertex.
Definition at line 71 of file texcoord2.h.
const T& vcg::TexCoord2< T, NMAX >::V | ( | ) | const [inline] |
Return a const reference to the v texture coordinate of the vertex.
Definition at line 75 of file texcoord2.h.
T& vcg::TexCoord2< T, NMAX >::V | ( | int | i | ) | [inline] |
Definition at line 77 of file texcoord2.h.
const T& vcg::TexCoord2< T, NMAX >::V | ( | int | i | ) | const [inline] |
Definition at line 79 of file texcoord2.h.
T& vcg::TexCoord2< T, NMAX >::v | ( | ) | [inline] |
Definition at line 92 of file texcoord2.h.
const T& vcg::TexCoord2< T, NMAX >::v | ( | ) | const [inline] |
Definition at line 94 of file texcoord2.h.
T& vcg::TexCoord2< T, NMAX >::v | ( | int | i | ) | [inline] |
Definition at line 96 of file texcoord2.h.
const T& vcg::TexCoord2< T, NMAX >::v | ( | int | i | ) | const [inline] |
Definition at line 98 of file texcoord2.h.
short vcg::TexCoord2< T, NMAX >::_n[NMAX] [private] |
Definition at line 56 of file texcoord2.h.
PointType vcg::TexCoord2< T, NMAX >::_t[NMAX] [private] |
Definition at line 55 of file texcoord2.h.