syBR::map2syBR::Vertex Class Reference

Polygon vertex class. More...

#include <Polygon.hpp>

List of all members.

Public Member Functions

 Vertex ()
 Contructor.
 ~Vertex ()
 Destructor.
const Vector3getVector () const
 Get the vector.
void setVector (const Vector3 &vector)
 Set the vector.
const double getTextureU () const
 Get texture u coordinates.
const double getTextureV () const
 Get texture v coordinates.
void setTextureUV (const double u, const double v)
 Set texture coordinates.
const std::string & getTextureName () const
 Get texture name.
void setTextureName (const std::string &name)
 Set texture name.
VertexgetNext () const
 Get the next vertex.
void setNext (Vertex *pNext)
 Set the next vertex.

Private Attributes

Vertexm_pNext
 Pointer to the next Vertex in the linked list.
Vector3 m_vector
 Vector.
double m_textureU
 Texture u coordinate.
double m_textureV
 Texture v coordinate.
std::string m_textureName
 Name of the texture.


Detailed Description

Polygon vertex class.

Constructor & Destructor Documentation

syBR::map2syBR::Vertex::Vertex (  ) 

Contructor.

syBR::map2syBR::Vertex::~Vertex (  ) 

Destructor.


Member Function Documentation

const Vector3 & syBR::map2syBR::Vertex::getVector (  )  const

Get the vector.

Returns:
Vector of the vertex

void syBR::map2syBR::Vertex::setVector ( const Vector3 vector  ) 

Set the vector.

Parameters:
vector Vector of the vertex

const double syBR::map2syBR::Vertex::getTextureU (  )  const

Get texture u coordinates.

Returns:
Texture u coordinates

const double syBR::map2syBR::Vertex::getTextureV (  )  const

Get texture v coordinates.

Returns:
Texture v coordinates

void syBR::map2syBR::Vertex::setTextureUV ( const double  u,
const double  v 
)

Set texture coordinates.

Parameters:
u Texture u coordinates
v Texture v coordinates

const std::string & syBR::map2syBR::Vertex::getTextureName (  )  const

Get texture name.

Returns:
Name of the texture

void syBR::map2syBR::Vertex::setTextureName ( const std::string &  name  ) 

Set texture name.

Parameters:
name Name of the texture

Vertex * syBR::map2syBR::Vertex::getNext (  )  const

Get the next vertex.

Returns:
One of these:
  • Pointer to the next vertex of the linked list
  • NULL if this is the last element of the linked list

void syBR::map2syBR::Vertex::setNext ( Vertex pNext  ) 

Set the next vertex.

Parameters:
pNext Pointer to the next vertex of the linked list


Member Data Documentation

Vertex* syBR::map2syBR::Vertex::m_pNext [private]

Pointer to the next Vertex in the linked list.

Vector3 syBR::map2syBR::Vertex::m_vector [private]

Vector.

double syBR::map2syBR::Vertex::m_textureU [private]

Texture u coordinate.

double syBR::map2syBR::Vertex::m_textureV [private]

Texture v coordinate.

std::string syBR::map2syBR::Vertex::m_textureName [private]

Name of the texture.


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

Copyright © 2008 by Sebastien Frippiat
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.
Last modified Tue Dec 30 17:57:34 2008