A masking image attached to a camera.
Definition at line 97 of file brushmask.h.
#include <brushmask.h>
Public Types |
|
enum | { eColorModeUndefined = -1, eColorModeLuminance, eColorModeColored } |
Public Member Functions |
|
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 (class Image *pSrcImage) |
Creates the stencil from an exisiting image.
|
|
virtual void | CreateTextures (void) |
Creates Texture
objects from the in-memory Image.
|
|
Texture * | getTexture () const |
void | SetFromColorTexture (Texture *pSrcTexture) |
Creates the stencil from an existing
texture. |
|
Public Attributes |
|
DECLARE_CLASS | |
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 |
anonymous enum |
Definition at line 99 of file brushmask.h.
{ eColorModeUndefined = -1, eColorModeLuminance, eColorModeColored };
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 | ) | [virtual] |
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 | ) | [inline] |
Sets the stencil inverted state.
Definition at line 139 of file brushmask.h.
{ m_bInvert.SetValue(inv); }
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 | ( | class Image * | pSrcImage | ) |
Creates the stencil from an exisiting image.
virtual void CreateTextures | ( | void | ) | [virtual] |
Texture* getTexture | ( | ) | const [inline] |
void SetFromColorTexture | ( | Texture * | pSrcTexture | ) |
Creates the stencil from an existing texture.
Do not delete this texture -- it is not copied into this object, just the pointer to the texture. It will be released when this class is released. This has only been tested with a color texture. Use with caution. Used to implement the clone brush with no image traffic across the PCIe bus.
Reimplemented from BrushMask.
Definition at line 106 of file brushmask.h.
bool
m_bUIEnabled [protected] |
Definition at line 166 of file brushmask.h.
unsigned int
m_iColorMode [protected] |
Definition at line 167 of file brushmask.h.
Matrix
m_mProjector [protected] |
Definition at line 168 of file brushmask.h.
Definition at line 169 of file brushmask.h.
Texture*
m_pColorTexture [protected] |
Definition at line 171 of file brushmask.h.
afloatr
m_fVisibility [protected] |
Definition at line 174 of file brushmask.h.
Definition at line 175 of file brushmask.h.
abool
m_bUseTiles [protected] |
Definition at line 176 of file brushmask.h.
abool
m_bShowTiles [protected] |
Definition at line 177 of file brushmask.h.
Definition at line 178 of file brushmask.h.
abool
m_bAutoHide [protected] |
Definition at line 179 of file brushmask.h.
Definition at line 180 of file brushmask.h.
Definition at line 181 of file brushmask.h.
Definition at line 182 of file brushmask.h.
Definition at line 184 of file brushmask.h.
Definition at line 185 of file brushmask.h.