#include <brush.h>
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 | |
FaceShader & | m_shader |
TextureProjection | m_projection |
bool | m_projectionInitialised |
bool | m_scaleApplied |
Private Member Functions | |
FaceTexdef (const FaceTexdef &other) | |
FaceTexdef & | operator= (const FaceTexdef &other) |
Definition at line 443 of file brush.h.
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.
void FaceTexdef::addScale | ( | ) | [inline] |
Definition at line 482 of file brush.h.
References FaceShader::height(), m_projection, m_scaleApplied, m_shader, and FaceShader::width().
Referenced by realiseShader(), rotate(), scale(), setTexdef(), shift(), and transform().
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] |
Definition at line 488 of file brush.h.
References FaceShader::height(), m_projection, m_scaleApplied, m_shader, and FaceShader::width().
Referenced by rotate(), scale(), setTexdef(), shift(), transform(), and unrealiseShader().
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] |
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] |
Definition at line 548 of file brush.h.
References addScale(), FaceShader::height(), m_projection, m_shader, removeScale(), and FaceShader::width().
void FaceTexdef::unrealiseShader | ( | ) | [inline, virtual] |
Implements FaceShaderObserver.
Definition at line 501 of file brush.h.
References m_projectionInitialised, m_scaleApplied, and removeScale().
TextureProjection FaceTexdef::m_projection |
Definition at line 467 of file brush.h.
Referenced by addScale(), emitTextureCoordinates(), FaceTexdef::SavedState::exportState(), fit(), Face::freezeTransform(), normalised(), removeScale(), Face::revertTexdef(), Face::revertTransform(), rotate(), FaceTexdef::SavedState::SavedState(), scale(), setBasis(), setTexdef(), shift(), and transform().
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().
Definition at line 466 of file brush.h.
Referenced by addScale(), emitTextureCoordinates(), FaceTexdef(), fit(), normalised(), removeScale(), transform(), and ~FaceTexdef().