gepetto-viewer 6.1.0
An user-friendly Graphical Interface
Loading...
Searching...
No Matches
QCPItemStraightLine Class Reference

#include </local/robotpkg/var/tmp/robotpkg/graphics/py-qt-gepetto-viewer/work/gepetto-viewer-6.1.0/plugins/pyqcustomplot/qcustomplot-1.3.2/qcustomplot.h>

Inheritance diagram for QCPItemStraightLine:
Collaboration diagram for QCPItemStraightLine:

Public Member Functions

 QCPItemStraightLine (QCustomPlot *parentPlot)
virtual ~QCPItemStraightLine ()
QPen pen () const
QPen selectedPen () const
void setPen (const QPen &pen)
void setSelectedPen (const QPen &pen)
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 QCPItemStraightLine (QCustomPlot *parentPlot)
virtual ~QCPItemStraightLine ()
QPen pen () const
QPen selectedPen () const
void setPen (const QPen &pen)
void setSelectedPen (const QPen &pen)
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const Q_DECL_OVERRIDE
 QCPItemStraightLine (QCustomPlot *parentPlot)
virtual ~QCPItemStraightLine ()
QPen pen () const
QPen selectedPen () const
void setPen (const QPen &pen)
void setSelectedPen (const QPen &pen)
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
Public Member Functions inherited from QCPAbstractItem
 QCPAbstractItem (QCustomPlot *parentPlot)
virtual ~QCPAbstractItem ()
bool clipToAxisRect () const
QCPAxisRect * clipAxisRect () const
bool selectable () const
bool selected () const
void setClipToAxisRect (bool clip)
void setClipAxisRect (QCPAxisRect *rect)
Q_SLOT void setSelectable (bool selectable)
Q_SLOT void setSelected (bool selected)
QList< QCPItemPosition * > positions () const
QList< QCPItemAnchor * > anchors () const
QCPItemPosition * position (const QString &name) const
QCPItemAnchor * anchor (const QString &name) const
bool hasAnchor (const QString &name) const
 QCPAbstractItem (QCustomPlot *parentPlot)
virtual ~QCPAbstractItem ()
bool clipToAxisRect () const
QCPAxisRect * clipAxisRect () const
bool selectable () const
bool selected () const
void setClipToAxisRect (bool clip)
void setClipAxisRect (QCPAxisRect *rect)
Q_SLOT void setSelectable (bool selectable)
Q_SLOT void setSelected (bool selected)
QList< QCPItemPosition * > positions () const
QList< QCPItemAnchor * > anchors () const
QCPItemPosition * position (const QString &name) const
QCPItemAnchor * anchor (const QString &name) const
bool hasAnchor (const QString &name) const
 QCPAbstractItem (QCustomPlot *parentPlot)
virtual ~QCPAbstractItem ()
bool clipToAxisRect () const
QCPAxisRect * clipAxisRect () const
bool selectable () const
bool selected () const
void setClipToAxisRect (bool clip)
void setClipAxisRect (QCPAxisRect *rect)
Q_SLOT void setSelectable (bool selectable)
Q_SLOT void setSelected (bool selected)
QList< QCPItemPosition * > positions () const
QList< QCPItemAnchor * > anchors () const
QCPItemPosition * position (const QString &name) const
QCPItemAnchor * anchor (const QString &name) const
bool hasAnchor (const QString &name) const
Public Member Functions inherited from QCPLayerable
 QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0)
 ~QCPLayerable ()
bool visible () const
QCustomPlot * parentPlot () const
QCPLayerable * parentLayerable () const
QCPLayer * layer () const
bool antialiased () const
void setVisible (bool on)
Q_SLOT bool setLayer (QCPLayer *layer)
bool setLayer (const QString &layerName)
void setAntialiased (bool enabled)
bool realVisibility () const
 QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0)
virtual ~QCPLayerable ()
bool visible () const
QCustomPlot * parentPlot () const
QCPLayerable * parentLayerable () const
QCPLayer * layer () const
bool antialiased () const
void setVisible (bool on)
Q_SLOT bool setLayer (QCPLayer *layer)
bool setLayer (const QString &layerName)
void setAntialiased (bool enabled)
bool realVisibility () const
 QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0)
 ~QCPLayerable ()
bool visible () const
QCustomPlot * parentPlot () const
QCPLayerable * parentLayerable () const
QCPLayer * layer () const
bool antialiased () const
void setVisible (bool on)
Q_SLOT bool setLayer (QCPLayer *layer)
bool setLayer (const QString &layerName)
void setAntialiased (bool enabled)
bool realVisibility () const

Public Attributes

QCPItemPosition *const point1
QCPItemPosition *const point2

Protected Member Functions

virtual void draw (QCPPainter *painter)
double distToStraightLine (const QVector2D &point1, const QVector2D &vec, const QVector2D &point) const
QLineF getRectClippedStraightLine (const QVector2D &point1, const QVector2D &vec, const QRect &rect) const
QPen mainPen () const
virtual void draw (QCPPainter *painter) Q_DECL_OVERRIDE
QLineF getRectClippedStraightLine (const QCPVector2D &point1, const QCPVector2D &vec, const QRect &rect) const
QPen mainPen () const
virtual void draw (QCPPainter *painter)
double distToStraightLine (const QVector2D &point1, const QVector2D &vec, const QVector2D &point) const
QLineF getRectClippedStraightLine (const QVector2D &point1, const QVector2D &vec, const QRect &rect) const
QPen mainPen () const
Protected Member Functions inherited from QCPAbstractItem
virtual QCP::Interaction selectionCategory () const
virtual QRect clipRect () const
virtual void applyDefaultAntialiasingHint (QCPPainter *painter) const
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
virtual void deselectEvent (bool *selectionStateChanged)
virtual QPointF anchorPixelPoint (int anchorId) const
double distSqrToLine (const QPointF &start, const QPointF &end, const QPointF &point) const
double rectSelectTest (const QRectF &rect, const QPointF &pos, bool filledRect) const
QCPItemPosition * createPosition (const QString &name)
QCPItemAnchor * createAnchor (const QString &name, int anchorId)
virtual QCP::Interaction selectionCategory () const Q_DECL_OVERRIDE
virtual QRect clipRect () const Q_DECL_OVERRIDE
virtual void applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged) Q_DECL_OVERRIDE
virtual void deselectEvent (bool *selectionStateChanged) Q_DECL_OVERRIDE
virtual QPointF anchorPixelPosition (int anchorId) const
double rectDistance (const QRectF &rect, const QPointF &pos, bool filledRect) const
QCPItemPosition * createPosition (const QString &name)
QCPItemAnchor * createAnchor (const QString &name, int anchorId)
virtual QCP::Interaction selectionCategory () const
virtual QRect clipRect () const
virtual void applyDefaultAntialiasingHint (QCPPainter *painter) const
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
virtual void deselectEvent (bool *selectionStateChanged)
virtual QPointF anchorPixelPoint (int anchorId) const
double distSqrToLine (const QPointF &start, const QPointF &end, const QPointF &point) const
double rectSelectTest (const QRectF &rect, const QPointF &pos, bool filledRect) const
QCPItemPosition * createPosition (const QString &name)
QCPItemAnchor * createAnchor (const QString &name, int anchorId)
Protected Member Functions inherited from QCPLayerable
virtual void parentPlotInitialized (QCustomPlot *parentPlot)
void initializeParentPlot (QCustomPlot *parentPlot)
void setParentLayerable (QCPLayerable *parentLayerable)
bool moveToLayer (QCPLayer *layer, bool prepend)
void applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const
virtual void parentPlotInitialized (QCustomPlot *parentPlot)
virtual void mousePressEvent (QMouseEvent *event, const QVariant &details)
virtual void mouseMoveEvent (QMouseEvent *event, const QPointF &startPos)
virtual void mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos)
virtual void mouseDoubleClickEvent (QMouseEvent *event, const QVariant &details)
virtual void wheelEvent (QWheelEvent *event)
void initializeParentPlot (QCustomPlot *parentPlot)
void setParentLayerable (QCPLayerable *parentLayerable)
bool moveToLayer (QCPLayer *layer, bool prepend)
void applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const
virtual void parentPlotInitialized (QCustomPlot *parentPlot)
void initializeParentPlot (QCustomPlot *parentPlot)
void setParentLayerable (QCPLayerable *parentLayerable)
bool moveToLayer (QCPLayer *layer, bool prepend)
void applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const

Protected Attributes

QPen mPen
QPen mSelectedPen
Protected Attributes inherited from QCPAbstractItem
bool mClipToAxisRect
QPointer< QCPAxisRect > mClipAxisRect
QList< QCPItemPosition * > mPositions
QList< QCPItemAnchor * > mAnchors
bool mSelectable
bool mSelected
Protected Attributes inherited from QCPLayerable
bool mVisible
QCustomPlot * mParentPlot
QPointer< QCPLayerable > mParentLayerable
QCPLayer * mLayer
bool mAntialiased

Additional Inherited Members

Signals inherited from QCPAbstractItem
void selectionChanged (bool selected)
void selectableChanged (bool selectable)
void selectionChanged (bool selected)
void selectableChanged (bool selectable)
void selectionChanged (bool selected)
void selectableChanged (bool selectable)
Signals inherited from QCPLayerable
void layerChanged (QCPLayer *newLayer)
void layerChanged (QCPLayer *newLayer)
void layerChanged (QCPLayer *newLayer)

Constructor & Destructor Documentation

◆ QCPItemStraightLine() [1/3]

QCPItemStraightLine::QCPItemStraightLine ( QCustomPlot * parentPlot)

◆ ~QCPItemStraightLine() [1/3]

virtual QCPItemStraightLine::~QCPItemStraightLine ( )
virtual

◆ QCPItemStraightLine() [2/3]

QCPItemStraightLine::QCPItemStraightLine ( QCustomPlot * parentPlot)
explicit

◆ ~QCPItemStraightLine() [2/3]

virtual QCPItemStraightLine::~QCPItemStraightLine ( )
virtual

◆ QCPItemStraightLine() [3/3]

QCPItemStraightLine::QCPItemStraightLine ( QCustomPlot * parentPlot)

◆ ~QCPItemStraightLine() [3/3]

virtual QCPItemStraightLine::~QCPItemStraightLine ( )
virtual

Member Function Documentation

◆ distToStraightLine() [1/2]

double QCPItemStraightLine::distToStraightLine ( const QVector2D & point1,
const QVector2D & vec,
const QVector2D & point ) const
protected

◆ distToStraightLine() [2/2]

double QCPItemStraightLine::distToStraightLine ( const QVector2D & point1,
const QVector2D & vec,
const QVector2D & point ) const
protected

◆ draw() [1/3]

virtual void QCPItemStraightLine::draw ( QCPPainter * painter)
protectedvirtual

Implements QCPAbstractItem.

◆ draw() [2/3]

virtual void QCPItemStraightLine::draw ( QCPPainter * painter)
protectedvirtual

Implements QCPAbstractItem.

◆ draw() [3/3]

virtual void QCPItemStraightLine::draw ( QCPPainter * painter)
protectedvirtual

Implements QCPAbstractItem.

◆ getRectClippedStraightLine() [1/3]

QLineF QCPItemStraightLine::getRectClippedStraightLine ( const QCPVector2D & point1,
const QCPVector2D & vec,
const QRect & rect ) const
protected

◆ getRectClippedStraightLine() [2/3]

QLineF QCPItemStraightLine::getRectClippedStraightLine ( const QVector2D & point1,
const QVector2D & vec,
const QRect & rect ) const
protected

◆ getRectClippedStraightLine() [3/3]

QLineF QCPItemStraightLine::getRectClippedStraightLine ( const QVector2D & point1,
const QVector2D & vec,
const QRect & rect ) const
protected

◆ mainPen() [1/3]

QPen QCPItemStraightLine::mainPen ( ) const
protected

◆ mainPen() [2/3]

QPen QCPItemStraightLine::mainPen ( ) const
protected

◆ mainPen() [3/3]

QPen QCPItemStraightLine::mainPen ( ) const
protected

◆ pen() [1/3]

QPen QCPItemStraightLine::pen ( ) const
inline

◆ pen() [2/3]

QPen QCPItemStraightLine::pen ( ) const
inline

◆ pen() [3/3]

QPen QCPItemStraightLine::pen ( ) const
inline

◆ selectedPen() [1/3]

QPen QCPItemStraightLine::selectedPen ( ) const
inline

◆ selectedPen() [2/3]

QPen QCPItemStraightLine::selectedPen ( ) const
inline

◆ selectedPen() [3/3]

QPen QCPItemStraightLine::selectedPen ( ) const
inline

◆ selectTest() [1/3]

virtual double QCPItemStraightLine::selectTest ( const QPointF & pos,
bool onlySelectable,
QVariant * details = 0 ) const
virtual

Implements QCPAbstractItem.

◆ selectTest() [2/3]

virtual double QCPItemStraightLine::selectTest ( const QPointF & pos,
bool onlySelectable,
QVariant * details = 0 ) const
virtual

Implements QCPAbstractItem.

◆ selectTest() [3/3]

virtual double QCPItemStraightLine::selectTest ( const QPointF & pos,
bool onlySelectable,
QVariant * details = 0 ) const
virtual

Implements QCPAbstractItem.

◆ setPen() [1/3]

void QCPItemStraightLine::setPen ( const QPen & pen)

◆ setPen() [2/3]

void QCPItemStraightLine::setPen ( const QPen & pen)

◆ setPen() [3/3]

void QCPItemStraightLine::setPen ( const QPen & pen)

◆ setSelectedPen() [1/3]

void QCPItemStraightLine::setSelectedPen ( const QPen & pen)

◆ setSelectedPen() [2/3]

void QCPItemStraightLine::setSelectedPen ( const QPen & pen)

◆ setSelectedPen() [3/3]

void QCPItemStraightLine::setSelectedPen ( const QPen & pen)

Member Data Documentation

◆ mPen

QPen QCPItemStraightLine::mPen
protected

◆ mSelectedPen

QPen QCPItemStraightLine::mSelectedPen
protected

◆ point1

QCPItemPosition *const QCPItemStraightLine::point1

◆ point2

QCPItemPosition *const QCPItemStraightLine::point2

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