22#include "bezierarea.h"
23#include "beziercurve.h"
52 void select(
QRectF rectangle);
54 void setSelected(
int curveNumber,
int vertexNumber,
bool YesOrNo);
59 bool isSelected(
int curveNumber,
int vertexNumber);
73 QRectF getSelectionRect() {
return mSelectionRect; }
80 QRectF getBoundsOfTransformedCurves()
const;
82 bool isEmpty()
const {
return mCurves.
isEmpty(); }
90 bool isCurveVisible(
int curve);
91 void moveColor(
int start,
int end);
141 QPainterPath getStrokedPath() {
return mGetStrokedPath; }
148 QSize getSize() {
return mSize; }
150 void setOpacity(qreal opacity) { mOpacity = opacity; }
151 qreal getOpacity()
const {
return mOpacity; }
154 void addPoint(
int curveNumber,
int vertexNumber, qreal fraction);
168 qreal mOpacity = 1.0;
void applyInvisibilityToSelection(bool YesOrNo)
VectorImage::applyInvisibilityToSelection.
void applyColorToSelectedArea(int colorNumber)
VectorImage::applyColorToSelectedArea.
void addArea(BezierArea bezierArea)
VectorImage::addArea.
VertexRef getClosestVertexTo(const BezierCurve &curve, int curveNum, QPointF thisPoint)
VectorImage::getClosestVertexTo.
qreal getDistance(VertexRef r1, VertexRef r2)
VectorImage::getDistance.
void applyFeatherToSelection(qreal feather)
VectorImage::applyFeatherToSelection.
BezierCurve getLastCurve()
VectorImage::getLastCurve.
void updateArea(BezierArea &bezierArea)
VectorImage::updateArea.
void fillSelectedPath(int color)
VectorImage::fillSelectedPath.
Status createDomElement(QXmlStreamWriter &doc)
VectorImage::createDomElement.
QList< VertexRef > getCurveVertices(int curveNumber)
VectorImage::getCurveVertices.
void removeArea(QPointF point)
VectorImage::removeArea.
void deselectAll()
VectorImage::deselectAll.
void loadDomElement(QDomElement element)
VectorImage::loadDomElement.
int getNumOfCurvesSelected()
VectorImage::numOfCurvesSelected.
bool isAreaSelected(int areaNumber)
VectorImage::isAreaSelected.
void paste(VectorImage &)
VectorImage::paste.
QList< int > getSelectedCurveNumbers()
VectorImage::getSelectedCurveNumber.
void applyVariableWidthToSelection(bool YesOrNo)
VectorImage::applyVariableWidthToSelection.
void removeCurveAt(int i)
VectorImage::removeCurveAt.
void setSelected(int curveNumber, bool YesOrNo)
VectorImage::setSelected.
void paintImage(QPainter &painter, const Object &object, bool simplified, bool showThinCurves, bool antialiasing)
VectorImage::paintImage.
void calculateSelectionRect()
VectorImage::calculateSelectionRect.
int getLastCurveNumber()
VectorImage::getLastCurveNumber.
void removeAreaInCurve(int curve, int areaNumber)
VectorImage::removeAreaInCurve.
bool isPathFilled()
VectorImage::isPathFilled.
void applyColorToSelectedCurve(int colorNumber)
VectorImage::applyColorToSelectedCurve.
BezierArea getSelectedArea(QPointF currentPoint)
VectorImage::getSelectedArea.
bool usesColor(int index)
VectorImage::usesColor.
void addCurve(BezierCurve &newCurve, qreal factor, bool interacts=true)
VectorImage::addCurve.
QPointF getC1(int curveNumber, int vertexNumber)
VectorImage::getC1.
void addPoint(int curveNumber, int vertexNumber, qreal fraction)
VectorImage::addPoint.
QList< VertexRef > getAllVertices()
VectorImage::getAllVertices.
int getColorNumber(QPointF point)
VectorImage::getColorNumber.
void removeVertex(int curve, int vertex)
VectorImage::removeVertex.
void removeColor(int index)
VectorImage::removeColor.
bool read(QString filePath)
VectorImage::read.
void fillContour(QList< QPointF > contourPath, int color)
VectorImage::fillContour.
void checkCurveExtremity(BezierCurve &newCurve, qreal tolerance)
VectorImage::checkCurveExtremity.
Status write(QString filePath, QString format)
VectorImage::write.
void applyWidthToSelection(qreal width)
VectorImage::applyWidthToSelection.
int getLastAreaNumber(QPointF point)
VectorImage::getLastAreaNumber.
int getFirstSelectedArea()
VectorImage::getFirstSelectedArea.
void selectAll()
VectorImage::selectAll.
QList< VertexRef > getAndRemoveVerticesCloseTo(QPointF thisPoint, qreal maxDistance, QList< VertexRef > *listOfPoints)
VectorImage::getAndRemoveVerticesCloseTo.
int getCurvesColor(int curve)
VectorImage::getCurvesColor.
QPointF getC2(int curveNumber, int vertexNumber)
VectorImage::getC2.
QList< BezierCurve > getSelectedCurves()
VectorImage::getSelectedCurve.
void applyOpacityToSelection(qreal opacity)
VectorImage::applyOpacityToSelection.
int getFirstSelectedCurve()
VectorImage::getFirstSelectedCurve.
void checkCurveIntersections(BezierCurve &newCurve, qreal tolerance)
VectorImage::checkCurveIntersections.
QPointF getVertex(int curveNumber, int vertexNumber)
VectorImage::getVertex.
void clear()
VectorImage::clear.
void deleteSelectedPoints()
VectorImage::deleteSelectedPoints.
void clean()
VectorImage::clean.
void setAreaSelected(int areaNumber, bool YesOrNo)
VectorImage::setAreaSelected.
void insertCurve(int position, BezierCurve &newCurve, qreal factor, bool interacts)
VectorImage::insertCurve.
void applySelectionTransformation()
VectorImage::applySelectionTransformation.
void setSelectionTransformation(QTransform transform)
VectorImage::setSelectionTransformation.
void setSelectionRect(QRectF rectange)
VectorImage::setSelectionRect.
int getFirstAreaNumber(QPointF point)
VectorImage::getFirstAreaNumber.
QList< VertexRef > getVerticesCloseTo(QPointF thisPoint, qreal maxDistance)
VectorImage::getVerticesCloseTo.
bool isAnyCurveSelected()
VectorImage::isAnyCurveSelected.
bool isSelected(int curveNumber)
VectorImage::isSelected.
QList< int > getCurvesCloseTo(QPointF thisPoint, qreal maxDistance)
VectorImage::getCurvesCloseTo.
void updateImageSize(BezierCurve &updatedCurve)
VectorImage::updateImageSize.
int getCurveSize(int curveNumber)
VectorImage::getCurveSize.
void deleteSelection()
VectorImage::deleteSelection.
bool isEmpty() const const