35 #include "../ifc/ifcdef.h"
36 #include "../visualization.h"
37 #include "../vgeometry/vgobject.h"
38 #include "../vgeometry/vpointf.h"
39 #include "../vmisc/vcommonsettings.h"
40 #include "../vpatterndb/vcontainer.h"
41 #include "../../tools/drawTools/toolpoint/toolsinglepoint/intersect_circletangent_tool.h"
43 #include <QGraphicsEllipseItem>
44 #include <QGraphicsLineItem>
45 #include <QSharedPointer>
60 , m_secondarySupportColor(QColor(
qApp->Settings()->getSecondarySupportColor()))
88 FindRays(
static_cast<QPointF
>(*tan),
static_cast<QPointF
>(*center),
cRadius);
91 static_cast<QPointF
>(*center),
134 this->setVisible(
false);
CrossCirclesPoint crossPoint
virtual void RefreshGeometry() Q_DECL_OVERRIDE
QColor m_secondarySupportColor
void setCRadius(const QString &value)
void setCrossPoint(const CrossCirclesPoint &value)
QGraphicsEllipseItem * cPath
void setObject2Id(const quint32 &value)
IntersectCircleTangentVisual(const VContainer *data, QGraphicsItem *parent=nullptr)
void FindRays(const QPointF &p, const QPointF ¢er, qreal radius)
The VContainer class container of all variables.
const QSharedPointer< T > GeometricObject(const quint32 &id) const
static int ContactPoints(const QPointF &p, const QPointF ¢er, qreal radius, QPointF &p1, QPointF &p2)
The VPointF class keep data of point.
void DrawRay(VScaledLine *lineItem, const QPointF &p, const QPointF &pTangent, const QColor &color, Qt::PenStyle style)
void DrawPoint(QGraphicsEllipseItem *point, const QPointF &pos, const QColor &color, Qt::PenStyle style=Qt::SolidLine)
static qreal FindLength(const QString &expression, const QHash< QString, QSharedPointer< VInternalVariable > > *vars)
VScaledEllipse * InitPoint(const QColor &color, QGraphicsItem *parent, qreal z=0) const
QRectF PointRect(qreal radius)