Omnidome
Fulldome Mapping Software Toolkit
|
A Warp defines a bezier point with one position and two handles / * Also stores flag if it is selected. More...
#include <WarpPoint.h>
Public Member Functions | |
WarpPoint () | |
Default constructor. More... | |
WarpPoint (QPointF const &_pos, QPointF const &_c1=QPointF(0.0, 0.0), QPointF const &_c2=QPointF(0.0, 0.0)) | |
Constructor from point. More... | |
void | setPos (QPointF const &_pos) |
Set new position. More... | |
QPointF & | pos () |
Returns reference to position. More... | |
QPointF const & | pos () const |
Returns const reference to position. More... | |
float | x () const |
Return x coordinate of position. More... | |
float | y () const |
Return y coordinate of position. More... | |
void | setC1 (QPointF const &_c1) |
Set first bezier handle. More... | |
QPointF & | c1 () |
Returns reference to first bezier handle. More... | |
QPointF const & | c1 () const |
Returns const reference to first bezier handle. More... | |
void | setC2 (QPointF const &_c2) |
Set second bezier handle. More... | |
QPointF & | c2 () |
Returns reference to second bezier handle. More... | |
QPointF const & | c2 () const |
Returns const reference to second bezier handle. More... | |
void | setSelected (bool) |
Set selection flag. More... | |
bool | selected () const |
Return selection flag. More... | |
void | toStream (QDataStream &) const |
Write tuning to stream. More... | |
void | fromStream (QDataStream &) |
Read tuning from stream. More... | |
Private Attributes | |
QPointF | pos_ |
QPointF | c1_ |
QPointF | c2_ |
bool | selected_ = false |
Friends | |
bool | operator== (WarpPoint const &, WarpPoint const &) |
Test for equality. More... | |
A Warp defines a bezier point with one position and two handles / * Also stores flag if it is selected.
omni::WarpPoint::WarpPoint | ( | QPointF const & | _pos, |
QPointF const & | _c1 = QPointF(0.0, 0.0) , |
||
QPointF const & | _c2 = QPointF(0.0, 0.0) |
||
) |
Constructor from point.
QPointF & omni::WarpPoint::c1 | ( | ) |
Returns reference to first bezier handle.
QPointF const & omni::WarpPoint::c1 | ( | ) | const |
Returns const reference to first bezier handle.
QPointF & omni::WarpPoint::c2 | ( | ) |
Returns reference to second bezier handle.
QPointF const & omni::WarpPoint::c2 | ( | ) | const |
Returns const reference to second bezier handle.
void omni::WarpPoint::fromStream | ( | QDataStream & | _is | ) |
Read tuning from stream.
QPointF & omni::WarpPoint::pos | ( | ) |
Returns reference to position.
QPointF const & omni::WarpPoint::pos | ( | ) | const |
Returns const reference to position.
bool omni::WarpPoint::selected | ( | ) | const |
Return selection flag.
void omni::WarpPoint::setC1 | ( | QPointF const & | _c1 | ) |
Set first bezier handle.
void omni::WarpPoint::setC2 | ( | QPointF const & | _c2 | ) |
Set second bezier handle.
void omni::WarpPoint::setPos | ( | QPointF const & | _pos | ) |
Set new position.
void omni::WarpPoint::setSelected | ( | bool | _selected | ) |
Set selection flag.
void omni::WarpPoint::toStream | ( | QDataStream & | _os | ) | const |
Write tuning to stream.
float omni::WarpPoint::x | ( | ) | const |
Return x coordinate of position.
float omni::WarpPoint::y | ( | ) | const |
Return y coordinate of position.
Test for equality.
|
private |
|
private |
|
private |
|
private |