#include <brushmask.h>
Inheritance diagram for mudbox::BrushStencil:
Public Types |
|
enum | { eColorModeUndefined = -1, eColorModeLuminance, eColorModeColored } |
Public Member Functions |
|
virtual const mudbox::ClassDesc * | RuntimeClass (void) const |
BrushStencil (void) | |
Constructor. |
|
~BrushStencil (void) | |
Destructor. |
|
void | SetVisibility (float f) |
Sets the visibility. |
|
float | Visibility (void) |
Returns the visibility. |
|
void | SetUIEnabled (bool b) |
Sets if the object can interact with the
user. |
|
void | SetColorMode (unsigned int mode) |
Sets the color mode. |
|
unsigned int | ColorMode (void) |
Returns the color mode. |
|
void | SetTransformation (const Matrix &mTransformation) |
Sets the transformation matrix. |
|
void | UpdateMatrix (void) |
Updates the projection matrix. |
|
const Matrix & | Final (void) const |
Returns the final matrix. |
|
Matrix | MirroredFinal (void) const |
Returns the matrix mirrored to the active
mirror axis. |
|
bool | IsMirrored (void) const |
Returns if the stencil uses mirroring.
|
|
void | SetInverted (bool inv) |
Sets the stencil inverted state. |
|
bool | IsInverted (void) const |
Returns if the stencil is inverted. |
|
bool | Activate (void) |
Sets the stencil texture as current. Returns
true if successful. |
|
bool | Deactivate (void) |
Sets the stencil texture as not current.
Returns true if successful. |
|
void | SetFromImage (int iWidth, int iHeight, const unsigned int *pData) |
Creates the stencil from an exisiting
in-memory image data. |
|
virtual void | CreateTextures (void) |
Creates Texture objects from the
in-memory Image. |
|
Static Public Member Functions |
|
const mudbox::ClassDesc * | StaticClass (void) |
mudbox::Node * | CreateInstances (unsigned int iCount=1) |
Protected Attributes |
|
bool | m_bUIEnabled |
unsigned int | m_iColorMode |
Matrix | m_mProjector |
Matrix | m_mFinal |
Texture * | m_pColorTexture |
afloatr | m_fVisibility |
abool | m_bInvert |
abool | m_bUseTiles |
abool | m_bShowTiles |
afloatr | m_fOffset |
abool | m_bAutoHide |
abool | m_bMirror |
abool | m_bFlipX |
abool | m_bFlipY |
aevent | m_cImport |
aevent | m_cExport |
|
00086 { 00087 eColorModeUndefined = -1, 00088 eColorModeLuminance, 00089 eColorModeColored 00090 }; |
|
Constructor. |
|
Destructor. |
|
Reimplemented from mudbox::BrushMask. 00125 { m_bInvert.SetValue(inv); } |
|
Reimplemented from mudbox::BrushMask. |
|
Reimplemented from mudbox::BrushMask. |
|
Sets the visibility. |
|
Returns the visibility. |
|
Sets if the object can interact with the user. |
|
Sets the color mode. |
|
Returns the color mode. |
|
Sets the transformation matrix. Reimplemented from mudbox::BrushMask. |
|
Updates the projection matrix. |
|
Returns the final matrix. |
|
Returns the matrix mirrored to the active mirror axis. |
|
Returns if the stencil uses mirroring. |
|
Sets the stencil inverted state. 00125 { m_bInvert.SetValue(inv); } |
|
Returns if the stencil is inverted. |
|
Sets the stencil texture as current. Returns true if successful. |
|
Sets the stencil texture as not current. Returns true if successful. |
|
Creates the stencil from an exisiting in-memory image data. |
|
Creates Texture objects from the in-memory Image. Reimplemented from mudbox::BrushMask. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|