FaceTexdef Class Reference

#include <brush.h>

Inheritance diagram for FaceTexdef:
Inheritance graph
[legend]
Collaboration diagram for FaceTexdef:
Collaboration graph
[legend]

Data Structures

class  SavedState

Public Member Functions

 FaceTexdef (FaceShader &shader, const TextureProjection &projection, bool projectionInitialised=true)
 ~FaceTexdef ()
void addScale ()
void removeScale ()
void realiseShader ()
void unrealiseShader ()
void setTexdef (const TextureProjection &projection)
void shift (float s, float t)
void scale (float s, float t)
void rotate (float angle)
void fit (const Vector3 &normal, const Winding &winding, float s_repeat, float t_repeat)
void emitTextureCoordinates (Winding &winding, const Vector3 &normal, const Matrix4 &localToWorld)
void transform (const Plane3 &plane, const Matrix4 &matrix)
TextureProjection normalised () const
void setBasis (const Vector3 &normal)

Data Fields

FaceShaderm_shader
TextureProjection m_projection
bool m_projectionInitialised
bool m_scaleApplied

Private Member Functions

 FaceTexdef (const FaceTexdef &other)
FaceTexdefoperator= (const FaceTexdef &other)

Detailed Description

Definition at line 443 of file brush.h.


Constructor & Destructor Documentation

FaceTexdef::FaceTexdef ( const FaceTexdef other  )  [private]
FaceTexdef::FaceTexdef ( FaceShader shader,
const TextureProjection &  projection,
bool  projectionInitialised = true 
) [inline]

Definition at line 471 of file brush.h.

References FaceShader::attach(), and m_shader.

FaceTexdef::~FaceTexdef (  )  [inline]

Definition at line 477 of file brush.h.

References FaceShader::detach(), and m_shader.


Member Function Documentation

void FaceTexdef::addScale (  )  [inline]
void FaceTexdef::emitTextureCoordinates ( Winding &  winding,
const Vector3 normal,
const Matrix4 &  localToWorld 
) [inline]

Definition at line 542 of file brush.h.

References FaceShader::height(), m_projection, m_shader, and FaceShader::width().

void FaceTexdef::fit ( const Vector3 normal,
const Winding &  winding,
float  s_repeat,
float  t_repeat 
) [inline]

Definition at line 537 of file brush.h.

References FaceShader::height(), m_projection, m_shader, and FaceShader::width().

Referenced by Face::FitTexture().

TextureProjection FaceTexdef::normalised (  )  const [inline]

Definition at line 555 of file brush.h.

References FaceShader::height(), m_projection, m_shader, and FaceShader::width().

Referenced by Face::GetTexdef().

FaceTexdef& FaceTexdef::operator= ( const FaceTexdef other  )  [private]
void FaceTexdef::realiseShader (  )  [inline, virtual]

Implements FaceShaderObserver.

Definition at line 495 of file brush.h.

References addScale(), m_projectionInitialised, and m_scaleApplied.

void FaceTexdef::removeScale (  )  [inline]
void FaceTexdef::rotate ( float  angle  )  [inline]

Definition at line 530 of file brush.h.

References addScale(), m_projection, and removeScale().

Referenced by Face::RotateTexdef().

void FaceTexdef::scale ( float  s,
float  t 
) [inline]

Definition at line 523 of file brush.h.

References addScale(), m_projection, and removeScale().

Referenced by Face::ScaleTexdef().

void FaceTexdef::setBasis ( const Vector3 normal  )  [inline]

Definition at line 561 of file brush.h.

References m_projection.

Referenced by Face::Face().

void FaceTexdef::setTexdef ( const TextureProjection &  projection  )  [inline]

Definition at line 508 of file brush.h.

References addScale(), m_projection, and removeScale().

Referenced by Face::SetTexdef().

void FaceTexdef::shift ( float  s,
float  t 
) [inline]

Definition at line 515 of file brush.h.

References addScale(), m_projection, removeScale(), and texdef_sane().

Referenced by Face::ShiftTexdef().

void FaceTexdef::transform ( const Plane3 plane,
const Matrix4 &  matrix 
) [inline]
void FaceTexdef::unrealiseShader (  )  [inline, virtual]

Implements FaceShaderObserver.

Definition at line 501 of file brush.h.

References m_projectionInitialised, m_scaleApplied, and removeScale().


Field Documentation

TextureProjection FaceTexdef::m_projection

Definition at line 468 of file brush.h.

Referenced by realiseShader(), and unrealiseShader().

Definition at line 469 of file brush.h.

Referenced by addScale(), realiseShader(), removeScale(), and unrealiseShader().


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

Generated by  doxygen 1.6.2