#include <Brush.hpp>
Public Member Functions | |
BrushFace () | |
Constructor. | |
~BrushFace () | |
Destructor. | |
void | setPlaneVectors (const Vector3 &vector1, const Vector3 &vector2, const Vector3 &vector3) |
Set three vectors defining the plane of the face. | |
const Vector3 & | getPlaneVector1 () const |
Get the first vector defining the plane of the face. | |
const Vector3 & | getPlaneVector2 () const |
Get the second vector defining the plane of the face. | |
const Vector3 & | getPlaneVector3 () const |
Get the third vector defining the plane of the face. | |
const Plane & | getPlane () const |
Get the plane of the face. | |
void | setTexture (const std::string &name, const Vector3 &axisU, const Vector3 &axisV, const double shiftU, const double shiftV, const double scaleU, const double scaleV) |
Set the texture and its settings. | |
const std::string & | getTextureName () const |
Get the texture name. | |
const Vector3 & | getTextureUAxis () const |
Get the texture u axis. | |
const Vector3 & | getTextureVAxis () const |
Get the texture v axis. | |
const double | getTextureUShift () const |
Get the texture u shift. | |
const double | getTextureVShift () const |
Get the texture v shift. | |
const double | getTextureUScale () const |
Get the texture u scale. | |
const double | getTextureVScale () const |
Get the texture v scale. | |
Private Attributes | |
Vector3 | m_planeVector1 |
First vector defining the plane of the face. | |
Vector3 | m_planeVector2 |
Second vector defining the plane of the face. | |
Vector3 | m_planeVector3 |
Third vector defining the plane of the face. | |
Plane | m_plane |
Plane of the face. | |
std::string | m_textureName |
Texture name. | |
Vector3 | m_textureAxisU |
Texture U axis. | |
Vector3 | m_textureAxisV |
Texture V axis. | |
double | m_textureShiftU |
Texture U shift. | |
double | m_textureShiftV |
Texture V shift. | |
double | m_textureScaleU |
Texture U scale. | |
double | m_textureScaleV |
Texture V scale. |
syBR::map2syBR::BrushFace::BrushFace | ( | ) |
Constructor.
syBR::map2syBR::BrushFace::~BrushFace | ( | ) |
Destructor.
void syBR::map2syBR::BrushFace::setPlaneVectors | ( | const Vector3 & | vector1, | |
const Vector3 & | vector2, | |||
const Vector3 & | vector3 | |||
) |
Set three vectors defining the plane of the face.
vector1 | First vector defining the plane of the face | |
vector2 | Second vector defining the plane of the face | |
vector3 | Third vector defining the plane of the face |
const Vector3 & syBR::map2syBR::BrushFace::getPlaneVector1 | ( | ) | const |
Get the first vector defining the plane of the face.
const Vector3 & syBR::map2syBR::BrushFace::getPlaneVector2 | ( | ) | const |
Get the second vector defining the plane of the face.
const Vector3 & syBR::map2syBR::BrushFace::getPlaneVector3 | ( | ) | const |
Get the third vector defining the plane of the face.
const Plane & syBR::map2syBR::BrushFace::getPlane | ( | ) | const |
void syBR::map2syBR::BrushFace::setTexture | ( | const std::string & | name, | |
const Vector3 & | axisU, | |||
const Vector3 & | axisV, | |||
const double | shiftU, | |||
const double | shiftV, | |||
const double | scaleU, | |||
const double | scaleV | |||
) |
Set the texture and its settings.
name | Name of the texture | |
axisU | Texture coordinates u axis | |
axisV | Texture coordinates v axis | |
shiftU | Texture coordinates u shift | |
shiftV | Texture coordinates v shift | |
scaleU | Texture coordinates u scale | |
scaleV | Texture coordinates v scale |
const std::string & syBR::map2syBR::BrushFace::getTextureName | ( | ) | const |
Get the texture name.
const Vector3 & syBR::map2syBR::BrushFace::getTextureUAxis | ( | ) | const |
Get the texture u axis.
const Vector3 & syBR::map2syBR::BrushFace::getTextureVAxis | ( | ) | const |
Get the texture v axis.
const double syBR::map2syBR::BrushFace::getTextureUShift | ( | ) | const |
Get the texture u shift.
const double syBR::map2syBR::BrushFace::getTextureVShift | ( | ) | const |
Get the texture v shift.
const double syBR::map2syBR::BrushFace::getTextureUScale | ( | ) | const |
Get the texture u scale.
const double syBR::map2syBR::BrushFace::getTextureVScale | ( | ) | const |
Get the texture v scale.
First vector defining the plane of the face.
Second vector defining the plane of the face.
Third vector defining the plane of the face.
Plane syBR::map2syBR::BrushFace::m_plane [private] |
Plane of the face.
std::string syBR::map2syBR::BrushFace::m_textureName [private] |
Texture name.
Texture U axis.
Texture V axis.
double syBR::map2syBR::BrushFace::m_textureShiftU [private] |
Texture U shift.
double syBR::map2syBR::BrushFace::m_textureShiftV [private] |
Texture V shift.
double syBR::map2syBR::BrushFace::m_textureScaleU [private] |
Texture U scale.
double syBR::map2syBR::BrushFace::m_textureScaleV [private] |
Texture V scale.
Copyright © 2008 by Sebastien Frippiat
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.
Last modified Tue Dec 30 17:57:34 2008