Seamly2D
Code documentation
IntersectCircleTangentVisual Class Reference

#include <intersect_circletangent_visual.h>

Inheritance diagram for IntersectCircleTangentVisual:
Collaboration diagram for IntersectCircleTangentVisual:

Public Types

enum  { Type = UserType + static_cast<int>(Vis::ToolPointFromCircleAndTangent) }
 
- Public Types inherited from VisLine
enum  { Type = UserType + static_cast<int>(Vis::Line) }
 
- Public Types inherited from VScaledLine
enum  { Type = UserType + static_cast<int>(Vis::ScaledLine) }
 

Public Member Functions

 IntersectCircleTangentVisual (const VContainer *data, QGraphicsItem *parent=nullptr)
 
virtual ~IntersectCircleTangentVisual ()=default
 
virtual void RefreshGeometry () Q_DECL_OVERRIDE
 
void setObject2Id (const quint32 &value)
 
void setCRadius (const QString &value)
 
void setCrossPoint (const CrossCirclesPoint &value)
 
virtual int type () const Q_DECL_OVERRIDE
 
- Public Member Functions inherited from VisLine
 VisLine (const VContainer *data, QGraphicsItem *parent=nullptr)
 
virtual ~VisLine ()=default
 
- Public Member Functions inherited from Visualization
 Visualization (const VContainer *data)
 
virtual ~Visualization () Q_DECL_EQ_DEFAULT
 
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 VContainergetData () 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)
 

Private Member Functions

void FindRays (const QPointF &p, const QPointF &center, qreal radius)
 

Private Attributes

quint32 object2Id
 
qreal cRadius
 
CrossCirclesPoint crossPoint
 
VScaledEllipsepoint
 
VScaledEllipsetangent
 
VScaledEllipsecCenter
 
QGraphicsEllipseItem * cPath
 
VScaledLinetangent2
 
QColor m_secondarySupportColor
 

Additional Inherited Members

- Public Slots inherited from Visualization
void mousePos (const QPointF &scenePos)
 
- Signals inherited from Visualization
void ToolTip (const QString &toolTip)
 
- Static Public Member Functions inherited from VisLine
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 inherited from VisLine
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
VScaledEllipseInitPoint (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 >
ItemInitItem (const QColor &color, QGraphicsItem *parent)
 
- Static Protected Member Functions inherited from Visualization
static VScaledEllipseGetPointItem (QVector< VScaledEllipse * > &points, quint32 i, const QColor &color, QGraphicsItem *parent)
 
- Protected Attributes inherited from Visualization
const VContainerdata
 
QPointF scenePos
 
QColor mainColor
 
QColor supportColor
 
Qt::PenStyle lineStyle
 
qreal lineWeight
 
quint32 object1Id
 
QString toolTip
 
Mode mode
 

Detailed Description

Definition at line 47 of file intersect_circletangent_visual.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Definition at line 61 of file intersect_circletangent_visual.h.

Constructor & Destructor Documentation

◆ IntersectCircleTangentVisual()

IntersectCircleTangentVisual::IntersectCircleTangentVisual ( const VContainer data,
QGraphicsItem *  parent = nullptr 
)
explicit

◆ ~IntersectCircleTangentVisual()

virtual IntersectCircleTangentVisual::~IntersectCircleTangentVisual ( )
virtualdefault

Member Function Documentation

◆ FindRays()

void IntersectCircleTangentVisual::FindRays ( const QPointF &  p,
const QPointF &  center,
qreal  radius 
)
private

◆ RefreshGeometry()

◆ setCRadius()

void IntersectCircleTangentVisual::setCRadius ( const QString &  value)

◆ setCrossPoint()

void IntersectCircleTangentVisual::setCrossPoint ( const CrossCirclesPoint value)

◆ setObject2Id()

◆ type()

virtual int IntersectCircleTangentVisual::type ( ) const
inlinevirtual

Reimplemented from VisLine.

Definition at line 60 of file intersect_circletangent_visual.h.

References Type.

Member Data Documentation

◆ cCenter

VScaledEllipse* IntersectCircleTangentVisual::cCenter
private

◆ cPath

QGraphicsEllipseItem* IntersectCircleTangentVisual::cPath
private

◆ cRadius

qreal IntersectCircleTangentVisual::cRadius
private

Definition at line 66 of file intersect_circletangent_visual.h.

Referenced by RefreshGeometry(), and setCRadius().

◆ crossPoint

CrossCirclesPoint IntersectCircleTangentVisual::crossPoint
private

Definition at line 67 of file intersect_circletangent_visual.h.

Referenced by RefreshGeometry(), and setCrossPoint().

◆ m_secondarySupportColor

QColor IntersectCircleTangentVisual::m_secondarySupportColor
private

◆ object2Id

quint32 IntersectCircleTangentVisual::object2Id
private

Definition at line 65 of file intersect_circletangent_visual.h.

Referenced by RefreshGeometry(), and setObject2Id().

◆ point

VScaledEllipse* IntersectCircleTangentVisual::point
private

◆ tangent

VScaledEllipse* IntersectCircleTangentVisual::tangent
private

◆ tangent2

VScaledLine* IntersectCircleTangentVisual::tangent2
private

Definition at line 72 of file intersect_circletangent_visual.h.

Referenced by FindRays(), and IntersectCircleTangentVisual().


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