Seamly2D
Code documentation
VisToolEllipticalArc Class Reference

#include <vistoolellipticalarc.h>

Inheritance diagram for VisToolEllipticalArc:
Collaboration diagram for VisToolEllipticalArc:

Public Types

enum  { Type = UserType + static_cast<int>(Vis::ToolEllipticalArc) }
 
- Public Types inherited from VisPath
enum  { Type = UserType + static_cast<int>(Vis::Path) }
 
- Public Types inherited from VCurvePathItem
enum  { Type = UserType + static_cast<int>(Vis::CurvePathItem) }
 

Public Member Functions

 VisToolEllipticalArc (const VContainer *data, QGraphicsItem *parent=nullptr)
 
virtual ~VisToolEllipticalArc () Q_DECL_EQ_DEFAULT
 
virtual void RefreshGeometry () Q_DECL_OVERRIDE
 
void setRadius1 (const QString &expression)
 
void setRadius2 (const QString &expression)
 
void setF1 (const QString &expression)
 
void setF2 (const QString &expression)
 
void setRotationAngle (const QString &expression)
 
virtual int type () const Q_DECL_OVERRIDE
 
- Public Member Functions inherited from VisPath
 VisPath (const VContainer *data, QGraphicsItem *parent=nullptr)
 
virtual ~VisPath ()=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 VCurvePathItem
 VCurvePathItem (QGraphicsItem *parent=nullptr)
 
virtual ~VCurvePathItem ()=default
 
virtual QPainterPath shape () const Q_DECL_OVERRIDE
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) Q_DECL_OVERRIDE
 
void SetDirectionArrows (const QVector< QPair< QLineF, QLineF >> &arrows)
 
void SetPoints (const QVector< QPointF > &points)
 

Private Attributes

VScaledEllipsearcCenter
 
qreal radius1
 
qreal radius2
 
qreal f1
 
qreal f2
 
qreal rotationAngle
 

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 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 VisPath
virtual void initPen () Q_DECL_OVERRIDE
 
virtual void AddOnScene () Q_DECL_OVERRIDE
 
VSimplePointGetPoint (QVector< VSimplePoint * > &points, quint32 i, const QColor &color)
 
- 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)
 
- Protected Member Functions inherited from VCurvePathItem
virtual void ScalePenWidth ()
 
- 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 41 of file vistoolellipticalarc.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Definition at line 56 of file vistoolellipticalarc.h.

Constructor & Destructor Documentation

◆ VisToolEllipticalArc()

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

◆ ~VisToolEllipticalArc()

virtual VisToolEllipticalArc::~VisToolEllipticalArc ( )
virtual

Member Function Documentation

◆ RefreshGeometry()

◆ setF1()

void VisToolEllipticalArc::setF1 ( const QString &  expression)

◆ setF2()

void VisToolEllipticalArc::setF2 ( const QString &  expression)

◆ setRadius1()

void VisToolEllipticalArc::setRadius1 ( const QString &  expression)

◆ setRadius2()

void VisToolEllipticalArc::setRadius2 ( const QString &  expression)

◆ setRotationAngle()

void VisToolEllipticalArc::setRotationAngle ( const QString &  expression)

◆ type()

virtual int VisToolEllipticalArc::type ( ) const
inlinevirtual

Reimplemented from VisPath.

Definition at line 55 of file vistoolellipticalarc.h.

References Type.

Member Data Documentation

◆ arcCenter

VScaledEllipse* VisToolEllipticalArc::arcCenter
private

Definition at line 59 of file vistoolellipticalarc.h.

Referenced by RefreshGeometry(), and VisToolEllipticalArc().

◆ f1

qreal VisToolEllipticalArc::f1
private

Definition at line 62 of file vistoolellipticalarc.h.

Referenced by RefreshGeometry(), and setF1().

◆ f2

qreal VisToolEllipticalArc::f2
private

Definition at line 63 of file vistoolellipticalarc.h.

Referenced by RefreshGeometry(), and setF2().

◆ radius1

qreal VisToolEllipticalArc::radius1
private

Definition at line 60 of file vistoolellipticalarc.h.

Referenced by RefreshGeometry(), and setRadius1().

◆ radius2

qreal VisToolEllipticalArc::radius2
private

Definition at line 61 of file vistoolellipticalarc.h.

Referenced by RefreshGeometry(), and setRadius2().

◆ rotationAngle

qreal VisToolEllipticalArc::rotationAngle
private

Definition at line 64 of file vistoolellipticalarc.h.

Referenced by RefreshGeometry(), and setRotationAngle().


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