Public Types | Public Member Functions | Private Attributes
vcg::TexCoord2< T, NMAX > Class Template Reference

Templated class for a storing a set of 2D texture coord plus their texture id. More...

#include <texcoord2.h>

List of all members.

Public Types

enum  { n_coords = NMAX }
typedef Point2< TPointType
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 PointTypeP () const
PointTypeP ()
const PointTypeP (const int i) const
PointTypeP (const int i)
Point2< T > & t (int i)
Point2< Tt (int i) const
Point2< T > & t ()
Point2< Tt () const
 TexCoord2 (T u, T v)
 TexCoord2 ()
TU ()
 Return a reference to the u texture coordinate of the vertex.
const TU () const
 Return a const reference to the u texture coordinate of the vertex.
TU (int i)
const TU (int i) const
Tu ()
const Tu () const
Tu (int i)
const Tu (int i) const
TV ()
 Return a reference to the v texture coordinate of the vertex.
const TV () const
 Return a const reference to the v texture coordinate of the vertex.
TV (int i)
const TV (int i) const
Tv ()
const Tv () const
Tv (int i)
const Tv (int i) const

Private Attributes

short _n [NMAX]
PointType _t [NMAX]

Detailed Description

template<class T = float, int NMAX = 1>
class vcg::TexCoord2< 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.


Member Typedef Documentation

template<class T = float, int NMAX = 1>
typedef Point2<T> vcg::TexCoord2< T, NMAX >::PointType

Definition at line 50 of file texcoord2.h.

template<class T = float, int NMAX = 1>
typedef T vcg::TexCoord2< T, NMAX >::ScalarType

Definition at line 51 of file texcoord2.h.


Member Enumeration Documentation

template<class T = float, int NMAX = 1>
anonymous enum
Enumerator:
n_coords 

Definition at line 134 of file texcoord2.h.


Constructor & Destructor Documentation

template<class T = float, int NMAX = 1>
vcg::TexCoord2< T, NMAX >::TexCoord2 ( T  u,
T  v 
) [inline]

Definition at line 59 of file texcoord2.h.

template<class T = float, int NMAX = 1>
vcg::TexCoord2< T, NMAX >::TexCoord2 ( ) [inline]

Definition at line 60 of file texcoord2.h.


Member Function Documentation

template<class T = float, int NMAX = 1>
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.

template<class T = float, int NMAX = 1>
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.

template<class T = float, int NMAX = 1>
short& vcg::TexCoord2< T, NMAX >::N ( int  i) [inline]

Definition at line 86 of file texcoord2.h.

template<class T = float, int NMAX = 1>
short vcg::TexCoord2< T, NMAX >::N ( int  i) const [inline]

Definition at line 87 of file texcoord2.h.

template<class T = float, int NMAX = 1>
short& vcg::TexCoord2< T, NMAX >::n ( ) [inline]

Definition at line 100 of file texcoord2.h.

template<class T = float, int NMAX = 1>
short vcg::TexCoord2< T, NMAX >::n ( ) const [inline]

Definition at line 101 of file texcoord2.h.

template<class T = float, int NMAX = 1>
short& vcg::TexCoord2< T, NMAX >::n ( int  i) [inline]

Definition at line 103 of file texcoord2.h.

template<class T = float, int NMAX = 1>
short vcg::TexCoord2< T, NMAX >::n ( int  i) const [inline]

Definition at line 104 of file texcoord2.h.

template<class T = float, int NMAX = 1>
bool vcg::TexCoord2< T, NMAX >::operator!= ( const TexCoord2< T, NMAX > &  p) const [inline]

Definition at line 120 of file texcoord2.h.

template<class T = float, int NMAX = 1>
bool vcg::TexCoord2< T, NMAX >::operator< ( const TexCoord2< T, NMAX > &  p) const [inline]

Definition at line 127 of file texcoord2.h.

template<class T = float, int NMAX = 1>
bool vcg::TexCoord2< T, NMAX >::operator== ( const TexCoord2< T, NMAX > &  p) const [inline]

Definition at line 113 of file texcoord2.h.

template<class T = float, int NMAX = 1>
const PointType& vcg::TexCoord2< T, NMAX >::P ( ) const [inline]

Definition at line 62 of file texcoord2.h.

template<class T = float, int NMAX = 1>
PointType& vcg::TexCoord2< T, NMAX >::P ( ) [inline]

Definition at line 63 of file texcoord2.h.

template<class T = float, int NMAX = 1>
const PointType& vcg::TexCoord2< T, NMAX >::P ( const int  i) const [inline]

Definition at line 65 of file texcoord2.h.

template<class T = float, int NMAX = 1>
PointType& vcg::TexCoord2< T, NMAX >::P ( const int  i) [inline]

Definition at line 66 of file texcoord2.h.

template<class T = float, int NMAX = 1>
Point2<T>& vcg::TexCoord2< T, NMAX >::t ( int  i) [inline]

Definition at line 106 of file texcoord2.h.

template<class T = float, int NMAX = 1>
Point2<T> vcg::TexCoord2< T, NMAX >::t ( int  i) const [inline]

Definition at line 107 of file texcoord2.h.

template<class T = float, int NMAX = 1>
Point2<T>& vcg::TexCoord2< T, NMAX >::t ( ) [inline]

Definition at line 109 of file texcoord2.h.

template<class T = float, int NMAX = 1>
Point2<T> vcg::TexCoord2< T, NMAX >::t ( ) const [inline]

Definition at line 110 of file texcoord2.h.

template<class T = float, int NMAX = 1>
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.

template<class T = float, int NMAX = 1>
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.

template<class T = float, int NMAX = 1>
T& vcg::TexCoord2< T, NMAX >::U ( int  i) [inline]

Definition at line 76 of file texcoord2.h.

template<class T = float, int NMAX = 1>
const T& vcg::TexCoord2< T, NMAX >::U ( int  i) const [inline]

Definition at line 78 of file texcoord2.h.

template<class T = float, int NMAX = 1>
T& vcg::TexCoord2< T, NMAX >::u ( ) [inline]

Definition at line 91 of file texcoord2.h.

template<class T = float, int NMAX = 1>
const T& vcg::TexCoord2< T, NMAX >::u ( ) const [inline]

Definition at line 93 of file texcoord2.h.

template<class T = float, int NMAX = 1>
T& vcg::TexCoord2< T, NMAX >::u ( int  i) [inline]

Definition at line 95 of file texcoord2.h.

template<class T = float, int NMAX = 1>
const T& vcg::TexCoord2< T, NMAX >::u ( int  i) const [inline]

Definition at line 97 of file texcoord2.h.

template<class T = float, int NMAX = 1>
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.

template<class T = float, int NMAX = 1>
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.

template<class T = float, int NMAX = 1>
T& vcg::TexCoord2< T, NMAX >::V ( int  i) [inline]

Definition at line 77 of file texcoord2.h.

template<class T = float, int NMAX = 1>
const T& vcg::TexCoord2< T, NMAX >::V ( int  i) const [inline]

Definition at line 79 of file texcoord2.h.

template<class T = float, int NMAX = 1>
T& vcg::TexCoord2< T, NMAX >::v ( ) [inline]

Definition at line 92 of file texcoord2.h.

template<class T = float, int NMAX = 1>
const T& vcg::TexCoord2< T, NMAX >::v ( ) const [inline]

Definition at line 94 of file texcoord2.h.

template<class T = float, int NMAX = 1>
T& vcg::TexCoord2< T, NMAX >::v ( int  i) [inline]

Definition at line 96 of file texcoord2.h.

template<class T = float, int NMAX = 1>
const T& vcg::TexCoord2< T, NMAX >::v ( int  i) const [inline]

Definition at line 98 of file texcoord2.h.


Member Data Documentation

template<class T = float, int NMAX = 1>
short vcg::TexCoord2< T, NMAX >::_n[NMAX] [private]

Definition at line 56 of file texcoord2.h.

template<class T = float, int NMAX = 1>
PointType vcg::TexCoord2< T, NMAX >::_t[NMAX] [private]

Definition at line 55 of file texcoord2.h.


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


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:41:23