Logo Search packages:      
Sourcecode: kdenlive version File versions  Download package

BPoint Class Reference

Represents a point in a cubic Bézier spline. More...

#include <bpoint.h>

List of all members.

Public Member Functions

void autoSetLinked ()
 Sets handlesLinked to true if the handles are in a linked state (line through h1, p, h2) otherwise to false.
 BPoint ()
 Sets the point to -1, -1 to mark it as unusable (until point + handles have proper values)
 BPoint (QPointF handle1, QPointF point, QPointF handle2)
 Sets up according to the params. Linking detecting is done using autoSetLinked().
void keepInRange (qreal xMin, qreal xMax)
bool operator== (const BPoint &point) const
QPointF & operator[] (int i)
 Returns h1 if i = 0, p if i = 1, h2 if i = 2.
const QPointF & operator[] (int i) const
 Returns h1 if i = 0, p if i = 1, h2 if i = 2.
void setH1 (QPointF handle1)
 Sets h1 to.
void setH2 (QPointF handle2)
 Sets h2 to.
void setP (QPointF point, bool updateHandles=true)
 Sets p to.

Public Attributes

QPointF h1
QPointF h2
bool handlesLinked
QPointF p

Detailed Description

Represents a point in a cubic Bézier spline.

Definition at line 28 of file bpoint.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index