|
Omnidome
Fulldome Mapping Software Toolkit
|
A blend mask consists of an edge mask and stroke mask with a brush Edge mask and stroke mask are stored in different buffers. More...
#include <BlendMask.h>

Public Types | |
| typedef Buffer< uint8_t > | buffer_type |
Public Member Functions | |
| BlendMask (proj::Tuning const &_tuning) | |
| void | clear () |
| Clears stroke buffer. More... | |
| void | setRect (QRectF const &) |
| Sets rect of blends Clamps rect to borders 0,0,1,1 if its overlapping. More... | |
| QRectF | rect () const |
| Returns rectangle. More... | |
| float | topWidth () const |
| Returns distance to top edge. More... | |
| float | bottomWidth () const |
| Returns distance to bottom edge. More... | |
| float | leftWidth () const |
| Returns distance to left edge. More... | |
| float | rightWidth () const |
| Returns distance to right edge. More... | |
| void | setGamma (float _gamma) |
| Sets gamma value for edge mask. More... | |
| float | gamma () const |
| Return gamma value. More... | |
| void | setBrush (float _size, float _feather, float _opacity, bool _invert) |
| Set blend brush settings. More... | |
| float | brushSize () const |
| Brush size for tuning. More... | |
| void | invertBrush (bool) |
| Invert brush. More... | |
| void | changeBrushSize (float _delta) |
| Change brush size by +- amount of pixel. More... | |
| BlendBrush const & | brush () const |
| Return reference blend brush (const version) More... | |
| void | stamp (const QPointF &_pos) |
| Stamp on stroke buffer with current brush at position x y. More... | |
| float | drawLine (QPointF const &_p0, QPointF const &_p1, float _leftOver=0.0) |
| Draws a line on stroke buffer. More... | |
| buffer_type const & | strokeBuffer () const |
| Returns stroke buffer (read only) More... | |
| void | resize (int width, int height) |
| void * | strokeBufferData () const |
| Return void* pointer to strokebuffer data, used for OpenGL Texture. More... | |
| void | toStream (QDataStream &) const |
| Write blend mask to stream. More... | |
| void | fromStream (QDataStream &) |
| Read blend mask from stream. More... | |
Static Public Member Functions | |
| static constexpr int | resolution () |
| Resolution of blend mask. More... | |
Private Member Functions | |
| QPointF | transformedPoint (QPointF const &) const |
| Transform point from tuning coordinates to stroke buffer coordinates. More... | |
| float | borderValue (float _x, float _y) const |
| Returns blend value for mask buffer at position x y. More... | |
Private Attributes | |
| proj::Tuning const & | tuning_ |
| QRectF | rect_ |
| float | gamma_ |
| BlendBrush | brush_ |
| buffer_type | strokeBuffer_ |
Friends | |
| bool | operator== (BlendMask const &, BlendMask const &) |
| Test for equality, buffers are ignored. More... | |
A blend mask consists of an edge mask and stroke mask with a brush Edge mask and stroke mask are stored in different buffers.
| typedef Buffer<uint8_t> omni::BlendMask::buffer_type |
| omni::BlendMask::BlendMask | ( | proj::Tuning const & | _tuning | ) |
|
private |
Returns blend value for mask buffer at position x y.
| float omni::BlendMask::bottomWidth | ( | ) | const |
Returns distance to bottom edge.
| BlendBrush const & omni::BlendMask::brush | ( | ) | const |
Return reference blend brush (const version)
| float omni::BlendMask::brushSize | ( | ) | const |
Brush size for tuning.
| void omni::BlendMask::changeBrushSize | ( | float | _delta | ) |
Change brush size by +- amount of pixel.
| void omni::BlendMask::clear | ( | ) |
Clears stroke buffer.
| float omni::BlendMask::drawLine | ( | QPointF const & | _p0, |
| QPointF const & | _p1, | ||
| float | _leftOver = 0.0 |
||
| ) |
Draws a line on stroke buffer.
| void omni::BlendMask::fromStream | ( | QDataStream & | _is | ) |
Read blend mask from stream.
| float omni::BlendMask::gamma | ( | ) | const |
Return gamma value.
| void omni::BlendMask::invertBrush | ( | bool | _invert | ) |
Invert brush.
| float omni::BlendMask::leftWidth | ( | ) | const |
Returns distance to left edge.
| QRectF omni::BlendMask::rect | ( | ) | const |
Returns rectangle.
| void omni::BlendMask::resize | ( | int | width, |
| int | height | ||
| ) |
|
inlinestatic |
| float omni::BlendMask::rightWidth | ( | ) | const |
Returns distance to right edge.
| void omni::BlendMask::setBrush | ( | float | _size, |
| float | _feather, | ||
| float | _opacity, | ||
| bool | _invert | ||
| ) |
Set blend brush settings.
| void omni::BlendMask::setGamma | ( | float | _gamma | ) |
Sets gamma value for edge mask.
| void omni::BlendMask::setRect | ( | QRectF const & | _rect | ) |
Sets rect of blends Clamps rect to borders 0,0,1,1 if its overlapping.
| void omni::BlendMask::stamp | ( | const QPointF & | _pos | ) |
Stamp on stroke buffer with current brush at position x y.
| BlendMask::buffer_type const & omni::BlendMask::strokeBuffer | ( | ) | const |
Returns stroke buffer (read only)
| void * omni::BlendMask::strokeBufferData | ( | ) | const |
Return void* pointer to strokebuffer data, used for OpenGL Texture.
| float omni::BlendMask::topWidth | ( | ) | const |
Returns distance to top edge.
| void omni::BlendMask::toStream | ( | QDataStream & | _os | ) | const |
Write blend mask to stream.
|
private |
Transform point from tuning coordinates to stroke buffer coordinates.
Test for equality, buffers are ignored.
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.6