43 qreal getWidth()
const {
return width; }
44 qreal getFeather()
const {
return feather; }
45 bool getVariableWidth()
const {
return variableWidth; }
46 int getColorNumber()
const {
return colorNumber; }
47 void decreaseColorNumber() { colorNumber--; }
48 int getVertexSize()
const {
return vertex.
size(); }
49 QPointF getOrigin()
const {
return origin; }
50 QPointF getVertex(
int i)
const {
if (i==-1) {
return origin; }
else {
return vertex.
at(i);} }
51 QPointF getC1(
int i)
const {
return c1.
at(i); }
52 QPointF getC2(
int i)
const {
return c2.
at(i); }
53 qreal getPressure(
int i)
const {
return pressure.
at(i); }
54 bool isSelected(
int vertex)
const {
return selected.
at(vertex+1); }
55 bool isSelected()
const {
bool result=
true;
for(
int i=0; i<selected.
size(); i++) result = result && selected[i];
return result; }
56 bool isPartlySelected()
const {
bool result=
false;
for(
int i=0; i<selected.
size(); i++) result = result || selected[i];
return result; }
57 bool isInvisible()
const {
return invisible; }
58 bool intersects(
QPointF point, qreal distance);
59 bool intersects(
QRectF rectangle);
60 bool isFilled()
const {
return mFilled; }
62 void setOrigin(
const QPointF& point);
63 void setOrigin(
const QPointF& point,
const qreal& pressureValue,
const bool& trueOrFalse);
64 void setC1(
int i,
const QPointF& point);
65 void setC2(
int i,
const QPointF& point);
66 void setVertex(
int i,
const QPointF& point);
67 void setLastVertex(
const QPointF& point);
68 void setWidth(qreal desiredWidth);
69 void setFeather(qreal desiredFeather);
70 void setVariableWidth(
bool YesOrNo);
71 void setInvisibility(
bool YesOrNo);
72 void setColorNumber(
int colorNumber) { this->colorNumber = colorNumber; }
73 void setSelected(
bool YesOrNo) {
for(
int i=0; i<selected.
size(); i++) { selected[i] = YesOrNo; } }
74 void setSelected(
int i,
bool YesOrNo);
80 void appendCubic(
const QPointF& c1Point,
const QPointF& c2Point,
const QPointF& vertexPoint, qreal pressureValue);
81 void addPoint(
int position,
const QPointF point);
82 void addPoint(
int position,
const qreal fraction);
83 QPointF getPointOnCubic(
int i, qreal t);
84 void removeVertex(
int i);
92 void drawPath(
QPainter& painter,
const Object&
object,
QTransform transformation,
bool simplified,
bool showThinLines );
99 static qreal eLength(
const QPointF point);
100 static qreal mLength(
const QPointF point);
101 static void normalise(
QPointF& point);
114 bool variableWidth = 0.f;
115 bool invisible =
false;
116 bool mFilled =
false;
void setFilled(bool yesOrNo)
BezierCurve::setFilled.
const T & at(int i) const const