#include <visline.h>
Public Types | |
enum | { Type = UserType + static_cast<int>(Vis::Line) } |
Public Types inherited from VScaledLine | |
enum | { Type = UserType + static_cast<int>(Vis::ScaledLine) } |
Public Member Functions | |
VisLine (const VContainer *data, QGraphicsItem *parent=nullptr) | |
virtual | ~VisLine ()=default |
virtual int | type () const Q_DECL_OVERRIDE |
Public Member Functions inherited from Visualization | |
Visualization (const VContainer *data) | |
virtual | ~Visualization () Q_DECL_EQ_DEFAULT |
virtual void | RefreshGeometry ()=0 |
void | setObject1Id (const quint32 &value) |
void | setLineStyle (const Qt::PenStyle &value) |
void | setLineWeight (const QString &value) |
void | setScenePos (const QPointF &value) |
virtual void | VisualMode (const quint32 &pointId) |
void | setMainColor (const QColor &value) |
const VContainer * | getData () const |
void | setData (const VContainer *data) |
Mode | GetMode () const |
void | SetMode (const Mode &value) |
QString | CurrentToolTip () const |
Public Member Functions inherited from VScaledLine | |
VScaledLine (QGraphicsItem *parent=nullptr) | |
VScaledLine (const QLineF &line, QGraphicsItem *parent=nullptr) | |
virtual | ~VScaledLine ()=default |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) Q_DECL_OVERRIDE |
qreal | GetBasicWidth () const |
void | setBasicWidth (const qreal &value) |
Static Public Member Functions | |
static qreal | CorrectAngle (const qreal &angle) |
Static Public Member Functions inherited from Visualization | |
static qreal | FindLength (const QString &expression, const QHash< QString, QSharedPointer< VInternalVariable > > *vars) |
static qreal | FindVal (const QString &expression, const QHash< QString, QSharedPointer< VInternalVariable > > *vars) |
Protected Member Functions | |
QPointF | Ray (const QPointF &firstPoint, const qreal &angle) const |
QPointF | Ray (const QPointF &firstPoint) const |
QLineF | Axis (const QPointF &p, const qreal &angle) const |
QLineF | Axis (const QPointF &p1, const QPointF &p2) const |
virtual void | initPen () Q_DECL_OVERRIDE |
virtual void | AddOnScene () Q_DECL_OVERRIDE |
void | DrawRay (VScaledLine *lineItem, const QPointF &p, const QPointF &pTangent, const QColor &color, Qt::PenStyle style) |
Protected Member Functions inherited from Visualization | |
VScaledEllipse * | InitPoint (const QColor &color, QGraphicsItem *parent, qreal z=0) const |
void | DrawPoint (QGraphicsEllipseItem *point, const QPointF &pos, const QColor &color, Qt::PenStyle style=Qt::SolidLine) |
virtual void | DrawLine (VScaledLine *lineItem, const QLineF &line, const QColor &color, const qreal &lineWeight, Qt::PenStyle style=Qt::SolidLine) |
void | DrawPath (VCurvePathItem *pathItem, const QPainterPath &path, const QColor &color, Qt::PenStyle style=Qt::SolidLine, const qreal &weight=0.35, Qt::PenCapStyle cap=Qt::SquareCap) |
void | DrawPath (VCurvePathItem *pathItem, const QPainterPath &path, const QVector< DirectionArrow > &directionArrows, const QColor &color, Qt::PenStyle style=Qt::SolidLine, const qreal &weight=0.35, Qt::PenCapStyle cap=Qt::SquareCap) |
void | drawArrowedLine (ArrowedLineItem *item, const QLineF &line, const QColor &color, Qt::PenStyle style=Qt::SolidLine) |
void | drawArrow (const QLineF &axis, QPainterPath &path, const qreal &arrow_size) |
template<typename Item > | |
void | addItem (Item *item) |
template<class Item > | |
Item * | InitItem (const QColor &color, QGraphicsItem *parent) |
Additional Inherited Members | |
Public Slots inherited from Visualization | |
void | mousePos (const QPointF &scenePos) |
Signals inherited from Visualization | |
void | ToolTip (const QString &toolTip) |
Static Protected Member Functions inherited from Visualization | |
static VScaledEllipse * | GetPointItem (QVector< VScaledEllipse * > &points, quint32 i, const QColor &color, QGraphicsItem *parent) |
Protected Attributes inherited from Visualization | |
const VContainer * | data |
QPointF | scenePos |
QColor | mainColor |
QColor | supportColor |
Qt::PenStyle | lineStyle |
qreal | lineWeight |
quint32 | object1Id |
QString | toolTip |
Mode | mode |
|
explicit |
Definition at line 46 of file visline.cpp.
References initPen().
|
virtualdefault |
|
protectedvirtual |
Implements Visualization.
Definition at line 149 of file visline.cpp.
References Visualization::addItem().
Referenced by IntersectCirclesVisual::VisualMode(), VisToolPointOfIntersectionArcs::VisualMode(), and VisOperation::VisualMode().
|
protected |
Definition at line 123 of file visline.cpp.
References Ray().
Referenced by Axis(), VisToolMirrorByAxis::RefreshGeometry(), PointIntersectXYVisual::RefreshGeometry(), VisToolCurveIntersectAxis::RefreshGeometry(), and VisToolLineIntersectAxis::RefreshGeometry().
|
protected |
Definition at line 131 of file visline.cpp.
References Axis().
|
static |
Definition at line 54 of file visline.cpp.
Referenced by VAbstractSpline::CorrectedSpline(), Ray(), VisToolMove::RefreshGeometry(), and VisToolEndLine::RefreshGeometry().
|
protected |
Definition at line 155 of file visline.cpp.
References VGObject::BuildLine(), Visualization::DrawLine(), Ray(), and SCASSERT.
Referenced by IntersectCircleTangentVisual::FindRays(), and VisToolPointFromArcAndTangent::FindRays().
|
protectedvirtual |
Implements Visualization.
Definition at line 138 of file visline.cpp.
References Visualization::lineStyle, Visualization::lineWeight, and Visualization::mainColor.
Referenced by VisLine().
|
protected |
Definition at line 116 of file visline.cpp.
References Ray(), and Visualization::scenePos.
|
protected |
Definition at line 85 of file visline.cpp.
References VGObject::BuildRay(), CorrectAngle(), and Visualization::scenePos.
Referenced by Axis(), DrawRay(), Ray(), VisToolMove::RefreshGeometry(), VisToolBisector::RefreshGeometry(), VisToolNormal::RefreshGeometry(), and VisToolShoulderPoint::RefreshGeometry().
|
inlinevirtual |
Reimplemented from VScaledLine.
Reimplemented in VisToolTrueDarts, VisToolTriangle, VisToolShoulderPoint, VisToolPointOfIntersectionArcs, VisToolPointOfContact, VisToolPointFromArcAndTangent, VisToolNormal, VisToolLineIntersectAxis, VisToolLineIntersect, VisToolLine, VisToolHeight, VisToolEndLine, VisToolCurveIntersectAxis, VisToolBisector, VisToolAlongLine, PointIntersectXYVisual, VisToolRotation, VisToolMove, VisToolMirrorByLine, VisToolMirrorByAxis, VisOperation, IntersectCircleTangentVisual, IntersectCirclesVisual, and AnchorPointVisual.
Definition at line 78 of file visline.h.
References Type.