Seamly2D
Code documentation
VisToolCubicBezier Class Reference

#include <vistoolcubicbezier.h>

Inheritance diagram for VisToolCubicBezier:
Collaboration diagram for VisToolCubicBezier:

Public Types

enum  { Type = UserType + static_cast<int>(Vis::ToolCubicBezier) }
 
- 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

 VisToolCubicBezier (const VContainer *data, QGraphicsItem *parent=nullptr)
 
virtual ~VisToolCubicBezier () Q_DECL_EQ_DEFAULT
 
virtual void RefreshGeometry () Q_DECL_OVERRIDE
 
void setObject2Id (const quint32 &value)
 
void setObject3Id (const quint32 &value)
 
void setObject4Id (const quint32 &value)
 
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)
 

Protected Attributes

quint32 object2Id
 
quint32 object3Id
 
quint32 object4Id
 
VScaledEllipsepoint1
 
VScaledEllipsepoint2
 
VScaledEllipsepoint3
 
VScaledEllipsepoint4
 
VScaledLinehelpLine1
 
VScaledLinehelpLine2
 
- Protected Attributes inherited from Visualization
const VContainerdata
 
QPointF scenePos
 
QColor mainColor
 
QColor supportColor
 
Qt::PenStyle lineStyle
 
qreal lineWeight
 
quint32 object1Id
 
QString toolTip
 
Mode mode
 

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)
 

Detailed Description

Definition at line 65 of file vistoolcubicbezier.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Definition at line 79 of file vistoolcubicbezier.h.

Constructor & Destructor Documentation

◆ VisToolCubicBezier()

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

◆ ~VisToolCubicBezier()

virtual VisToolCubicBezier::~VisToolCubicBezier ( )
virtual

Member Function Documentation

◆ RefreshGeometry()

◆ setObject2Id()

void VisToolCubicBezier::setObject2Id ( const quint32 &  value)

Definition at line 148 of file vistoolcubicbezier.cpp.

References object2Id.

◆ setObject3Id()

void VisToolCubicBezier::setObject3Id ( const quint32 &  value)

Definition at line 154 of file vistoolcubicbezier.cpp.

References object3Id.

◆ setObject4Id()

void VisToolCubicBezier::setObject4Id ( const quint32 &  value)

Definition at line 160 of file vistoolcubicbezier.cpp.

References object4Id.

◆ type()

virtual int VisToolCubicBezier::type ( ) const
inlinevirtual

Reimplemented from VisPath.

Definition at line 78 of file vistoolcubicbezier.h.

References Type.

Member Data Documentation

◆ helpLine1

VScaledLine* VisToolCubicBezier::helpLine1
protected

Definition at line 89 of file vistoolcubicbezier.h.

Referenced by RefreshGeometry(), and VisToolCubicBezier().

◆ helpLine2

VScaledLine* VisToolCubicBezier::helpLine2
protected

Definition at line 90 of file vistoolcubicbezier.h.

Referenced by RefreshGeometry(), and VisToolCubicBezier().

◆ object2Id

quint32 VisToolCubicBezier::object2Id
protected

Definition at line 82 of file vistoolcubicbezier.h.

Referenced by RefreshGeometry(), and setObject2Id().

◆ object3Id

quint32 VisToolCubicBezier::object3Id
protected

Definition at line 83 of file vistoolcubicbezier.h.

Referenced by RefreshGeometry(), and setObject3Id().

◆ object4Id

quint32 VisToolCubicBezier::object4Id
protected

Definition at line 84 of file vistoolcubicbezier.h.

Referenced by RefreshGeometry(), and setObject4Id().

◆ point1

VScaledEllipse* VisToolCubicBezier::point1
protected

Definition at line 85 of file vistoolcubicbezier.h.

Referenced by RefreshGeometry(), and VisToolCubicBezier().

◆ point2

VScaledEllipse* VisToolCubicBezier::point2
protected

Definition at line 86 of file vistoolcubicbezier.h.

Referenced by RefreshGeometry(), and VisToolCubicBezier().

◆ point3

VScaledEllipse* VisToolCubicBezier::point3
protected

Definition at line 87 of file vistoolcubicbezier.h.

Referenced by RefreshGeometry(), and VisToolCubicBezier().

◆ point4

VScaledEllipse* VisToolCubicBezier::point4
protected

Definition at line 88 of file vistoolcubicbezier.h.

Referenced by RefreshGeometry(), and VisToolCubicBezier().


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