The VToolLinePoint class parent for all tools what create point with line. More...
#include <vtoollinepoint.h>
Public Types | |
| enum | { Type = UserType + static_cast<int>(Tool::LinePoint) } |
Public Types inherited from VToolSinglePoint | |
| enum | { Type = UserType + static_cast<int>(Tool::SinglePoint) } |
Public Types inherited from VScenePoint | |
| enum | { Type = UserType + static_cast<int>(Vis::ScenePoint) } |
Public Slots | |
| virtual void | Disable (bool disable, const QString &draftBlockName) Q_DECL_OVERRIDE |
| virtual void | FullUpdateFromFile () Q_DECL_OVERRIDE |
| FullUpdateFromFile update tool data form file. More... | |
Public Slots inherited from VToolSinglePoint | |
| void | pointnameChangedPosition (const QPointF &pos) |
| pointnameChangedPosition handle change position point text. More... | |
| virtual void | Disable (bool disable, const QString &draftBlockName) Q_DECL_OVERRIDE |
| virtual void | EnableToolMove (bool move) Q_DECL_OVERRIDE |
| void | pointChosen () |
| void | pointSelected (bool selected) |
| virtual void | FullUpdateFromFile () Q_DECL_OVERRIDE |
| FullUpdateFromFile update tool data form file. More... | |
| virtual void | AllowHover (bool enabled) Q_DECL_OVERRIDE |
| virtual void | AllowSelecting (bool enabled) Q_DECL_OVERRIDE |
| void | allowTextHover (bool enabled) |
| void | allowTextSelectable (bool enabled) |
| virtual void | ToolSelectionType (const SelectionType &type) Q_DECL_OVERRIDE |
Public Slots inherited from VAbstractPoint | |
| virtual void | ShowTool (quint32 id, bool enable) Q_DECL_OVERRIDE |
| ShowTool highlight tool. More... | |
| void | deletePoint () |
Public Slots inherited from VDrawTool | |
| virtual void | ShowTool (quint32 id, bool enable) |
| ShowTool highlight tool. More... | |
| virtual void | activeBlockChanged (const QString &newName) |
| activeBlockChanged disable or enable context menu after change active draft block. More... | |
| void | blockNameChanged (const QString &oldName, const QString &newName) |
| blockNameChanged save new name active draft block. More... | |
| virtual void | EnableToolMove (bool move) |
| virtual void | Disable (bool disable, const QString &draftBlockName)=0 |
| virtual void | piecesMode (bool mode) |
Public Slots inherited from VInteractiveTool | |
| void | FullUpdateFromGuiOk (int result) |
| FullUpdateFromGuiOk refresh tool data after change in options. More... | |
| void | FullUpdateFromGuiApply () |
| FullUpdateFromGuiApply refresh tool data after change in options but do not delete dialog. More... | |
Public Slots inherited from VAbstractTool | |
| virtual void | FullUpdateFromFile ()=0 |
| FullUpdateFromFile update tool data form file. More... | |
| virtual void | AllowHover (bool enabled)=0 |
| virtual void | AllowSelecting (bool enabled)=0 |
| virtual void | ToolSelectionType (const SelectionType &type) |
Public Member Functions | |
| VToolLinePoint (VAbstractPattern *doc, VContainer *data, const quint32 &id, const QString &lineType, const QString &lineWeight, const QString &lineColor, const QString &formula, const quint32 &basePointId, const qreal &angle, QGraphicsItem *parent=nullptr) | |
| VToolLinePoint constructor. More... | |
| virtual | ~VToolLinePoint () Q_DECL_OVERRIDE |
| virtual int | type () const Q_DECL_OVERRIDE |
| virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) Q_DECL_OVERRIDE |
| VFormula | GetFormulaLength () const |
| void | SetFormulaLength (const VFormula &value) |
| QString | BasePointName () const |
| quint32 | GetBasePointId () const |
| void | SetBasePointId (const quint32 &value) |
| qreal | GetAngle () const |
| void | SetAngle (const qreal &value) |
| QString | getLineColor () const |
| void | setLineColor (const QString &value) |
Public Member Functions inherited from VToolSinglePoint | |
| VToolSinglePoint (VAbstractPattern *doc, VContainer *data, quint32 id, const QColor &lineColor, QGraphicsItem *parent=nullptr) | |
| VToolSinglePoint constructor. More... | |
| virtual | ~VToolSinglePoint () Q_DECL_EQ_DEFAULT |
| QString | name () const |
| void | setName (const QString &name) |
| void | SetEnabled (bool enabled) |
| virtual void | GroupVisibility (quint32 object, bool visible) Q_DECL_OVERRIDE |
| virtual bool | isPointNameVisible (quint32 id) const Q_DECL_OVERRIDE |
| virtual void | setPointNameVisiblity (quint32 id, bool visible) Q_DECL_OVERRIDE |
| virtual void | setPointNamePosition (quint32 id, const QPointF &pos) Q_DECL_OVERRIDE |
Public Member Functions inherited from VAbstractPoint | |
| VAbstractPoint (VAbstractPattern *doc, VContainer *data, quint32 id) | |
| virtual | ~VAbstractPoint () Q_DECL_EQ_DEFAULT |
| virtual QString | getTagName () const Q_DECL_OVERRIDE |
| template<typename T > | |
| void | ShowToolVisualization (bool show) |
Public Member Functions inherited from VDrawTool | |
| VDrawTool (VAbstractPattern *doc, VContainer *data, quint32 id, QObject *parent=nullptr) | |
| VDrawTool constructor. More... | |
| virtual | ~VDrawTool () Q_DECL_EQ_DEFAULT |
| QString | getLineType () const |
| virtual void | setLineType (const QString &value) |
| QString | getLineWeight () const |
| virtual void | setLineWeight (const QString &value) |
Public Member Functions inherited from VInteractiveTool | |
| VInteractiveTool (VAbstractPattern *doc, VContainer *data, quint32 id, QObject *parent=nullptr) | |
| virtual | ~VInteractiveTool () Q_DECL_EQ_DEFAULT |
| void | DialogLinkDestroy () |
Public Member Functions inherited from VAbstractTool | |
| VAbstractTool (VAbstractPattern *doc, VContainer *data, quint32 id, QObject *parent=nullptr) | |
| VAbstractTool container. More... | |
| virtual | ~VAbstractTool () Q_DECL_OVERRIDE |
| quint32 | getId () const |
| getId return object id. More... | |
| const VContainer * | getData () const |
| getData return pointer to data container. More... | |
| QMap< QString, quint32 > | PointsList () const |
| virtual void | ShowVisualization (bool show)=0 |
Public Member Functions inherited from VDataTool | |
| VDataTool (VContainer *data, QObject *parent=nullptr) | |
| VDataTool constructor. More... | |
| virtual | ~VDataTool () Q_DECL_EQ_DEFAULT |
| VContainer | getData () const |
| getData return data container. More... | |
| void | setData (const VContainer *value) |
| setData set data container. More... | |
| virtual quint32 | referens () const |
| referens return count of referens. More... | |
| virtual void | incrementReferens () |
| incrementReferens increment referens. More... | |
| virtual void | decrementReferens () |
| decrementReferens decrement referens. More... | |
Public Member Functions inherited from VScenePoint | |
| VScenePoint (const QColor &lineColor, QGraphicsItem *parent=nullptr) | |
| virtual | ~VScenePoint ()=default |
| virtual void | refreshPointGeometry (const VPointF &point) |
| void | refreshLeader () |
Protected Member Functions | |
| virtual void | RefreshGeometry () |
| lineColor color of a line. More... | |
| virtual void | RemoveReferens () Q_DECL_OVERRIDE |
| RemoveReferens decrement value of reference. More... | |
| virtual void | SaveOptions (QDomElement &tag, QSharedPointer< VGObject > &obj) Q_DECL_OVERRIDE |
| virtual void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) Q_DECL_OVERRIDE |
| virtual void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) Q_DECL_OVERRIDE |
| virtual QString | makeToolTip () const Q_DECL_OVERRIDE |
Protected Member Functions inherited from VToolSinglePoint | |
| virtual void | updatePointNameVisibility (quint32 id, bool visible) Q_DECL_OVERRIDE |
| virtual void | updatePointNamePosition (quint32 id, const QPointF &pos) Q_DECL_OVERRIDE |
| updatePointNamePosition save new position text to the pattern file. More... | |
| virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) Q_DECL_OVERRIDE |
| virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) Q_DECL_OVERRIDE |
| mouseReleaseEvent handle mouse release events. More... | |
| virtual QVariant | itemChange (GraphicsItemChange change, const QVariant &value) Q_DECL_OVERRIDE |
| itemChange hadle item change. More... | |
| virtual void | keyReleaseEvent (QKeyEvent *event) Q_DECL_OVERRIDE |
| keyReleaseEvent handle key release events. More... | |
| virtual void | contextMenuEvent (QGraphicsSceneContextMenuEvent *event) Q_DECL_OVERRIDE |
Protected Member Functions inherited from VAbstractPoint | |
| void | SetPointName (quint32 id, const QString &name) |
Protected Member Functions inherited from VDrawTool | |
| void | AddToCalculation (const QDomElement &domElement) |
| typeLine line weight. More... | |
| void | addDependence (QList< quint32 > &list, quint32 objectId) const |
| virtual void | SaveDialog (QDomElement &domElement)=0 |
| SaveDialog save options into file after change in dialog. More... | |
| virtual void | SaveDialogChange () Q_DECL_FINAL |
| virtual void | AddToFile () Q_DECL_OVERRIDE |
| AddToFile add tag with Information about tool into file. More... | |
| void | SaveOption (QSharedPointer< VGObject > &obj) |
| bool | CorrectDisable (bool disable, const QString &draftBlockName) const |
| void | ReadAttributes () |
| virtual void | ReadToolAttributes (const QDomElement &domElement)=0 |
| template<typename Dialog > | |
| void | ContextMenu (QGraphicsSceneContextMenuEvent *event, quint32 itemId=NULL_ID, const RemoveOption &showRemove=RemoveOption::Enable, const Referens &ref=Referens::Follow) |
| ContextMenu show context menu for tool. More... | |
| template<typename Item > | |
| void | ShowItem (Item *item, quint32 id, bool enable) |
| ShowItem highlight tool. More... | |
| template<typename T > | |
| QString | ObjectName (quint32 id) const |
| ObjectName get object (point, curve, arc) name. More... | |
Protected Member Functions inherited from VInteractiveTool | |
| virtual void | setDialog () |
| setDialog set dialog when user want change tool option. More... | |
Protected Member Functions inherited from VAbstractTool | |
| virtual void | RefreshDataInFile () |
| RefreshDataInFile refresh attributes in file. If attributes don't exist create them. More... | |
| virtual void | deleteTool (bool ask=true) |
| deleteTool full delete object form scene and file. More... | |
| template<typename T > | |
| void | AddVisualization () |
| virtual void | SetVisualization ()=0 |
| virtual void | ToolCreation (const Source &typeCreation) |
Protected Member Functions inherited from VScenePoint | |
| void | setOnlyPoint (bool value) |
| bool | isOnlyPoint () const |
| void | setPointColor (const QString &value) |
Protected Attributes | |
| QString | formulaLength |
| qreal | angle |
| formula string with length formula. More... | |
| quint32 | basePointId |
| angle line angle. More... | |
| VScaledLine * | mainLine |
| basePointId id base line point. More... | |
| QString | lineColor |
| mainLine line item. More... | |
Protected Attributes inherited from VDrawTool | |
| QString | activeBlockName |
| QString | m_lineType |
| activeBlockName name of tool's pattern peace. More... | |
| QString | m_lineWeight |
| typeLine line type. More... | |
Protected Attributes inherited from VInteractiveTool | |
| QSharedPointer< DialogTool > | m_dialog |
| m_dialog tool's dialog options. More... | |
Protected Attributes inherited from VAbstractTool | |
| VAbstractPattern * | doc |
| doc dom document container More... | |
| const quint32 | m_id |
| id object id. More... | |
| QPointer< Visualization > | vis |
| SelectionType | selectionType |
Protected Attributes inherited from VDataTool | |
| VContainer | data |
| data container with data More... | |
| quint32 | _referens |
| _referens keep count tools what use this tool. If value more than 1 you can't delete tool. More... | |
Protected Attributes inherited from VScenePoint | |
| VGraphicsSimpleTextItem * | m_pointName |
| VScaledLine * | m_pointLeader |
| namePoint point text. More... | |
| QColor | m_pointColor |
| pointL line that we see if Text is moved too away from point. More... | |
| bool | m_onlyPoint |
| m_pointColor color of point. More... | |
| bool | m_isHovered |
| bool | m_showPointName |
Additional Inherited Members | |
Signals inherited from VDrawTool | |
| void | ChangedToolSelection (bool selected, quint32 object, quint32 tool) |
Signals inherited from VAbstractTool | |
| void | toolHasChanges () |
| toolHasChanges emit if tool create change that need save. More... | |
| void | chosenTool (quint32 id, SceneObject type) |
| chosenTool emit if object was clicked. More... | |
| void | LiteUpdateTree (const Document &parse) |
| FullUpdateTree emit if need reparse pattern file. More... | |
| void | ToolTip (const QString &toolTip) |
Static Public Member Functions inherited from VAbstractTool | |
| static qreal | CheckFormula (const quint32 &toolId, QString &formula, VContainer *data) |
| CheckFormula check formula. More... | |
| static const QStringList | Colors () |
| static QMap< QString, QString > | ColorsList () |
| static QMap< QString, QString > | supportColorsList () |
| static QMap< QString, QString > | backgroundColorsList () |
| static QPixmap | createColorIcon (const int w, const int h, const QString &color) |
| static const QStringList | fills () |
| static void | AddRecord (const quint32 id, const Tool &toolType, VAbstractPattern *doc) |
| AddRecord add record about tool in history. More... | |
| static void | AddNodes (VAbstractPattern *doc, QDomElement &domElement, const VPiecePath &path) |
| static void | AddNodes (VAbstractPattern *doc, QDomElement &domElement, const VPiece &piece) |
| template<typename T > | |
| static quint32 | CreateNode (VContainer *data, quint32 id) |
| CreateNode create new node for detail. More... | |
Static Public Attributes inherited from VAbstractTool | |
| static bool | m_suppressContextMenu = false |
| static const QString | AttrInUse = QStringLiteral("inUse") |
Protected Types inherited from VDrawTool | |
| enum class | RemoveOption : bool { Disable = false , Enable = true } |
| enum class | Referens : bool { Follow = true , Ignore = false } |
Protected Slots inherited from VDrawTool | |
| virtual void | showContextMenu (QGraphicsSceneContextMenuEvent *event, quint32 id=NULL_ID)=0 |
Static Protected Member Functions inherited from VAbstractPoint | |
| template<typename T > | |
| static void | InitToolConnections (VMainGraphicsScene *scene, T *tool) |
Static Protected Member Functions inherited from VDrawTool | |
| template<typename T > | |
| static void | InitDrawToolConnections (VMainGraphicsScene *scene, T *tool) |
Static Protected Member Functions inherited from VAbstractTool | |
| static int | ConfirmDeletion () |
| static QDomElement | AddSANode (VAbstractPattern *doc, const QString &tagName, const VPieceNode &node) |
| static void | AddNode (VAbstractPattern *doc, QDomElement &domElement, const VPieceNode &node) |
| static QVector< VPieceNode > | PrepareNodes (const VPiecePath &path, VMainGraphicsScene *scene, VAbstractPattern *doc, VContainer *data) |
| static quint32 | PrepareNode (const VPieceNode &node, VMainGraphicsScene *scene, VAbstractPattern *doc, VContainer *data) |
The VToolLinePoint class parent for all tools what create point with line.
Definition at line 71 of file vtoollinepoint.h.
| anonymous enum |
| Enumerator | |
|---|---|
| Type | |
Definition at line 82 of file vtoollinepoint.h.
| VToolLinePoint::VToolLinePoint | ( | VAbstractPattern * | doc, |
| VContainer * | data, | ||
| const quint32 & | id, | ||
| const QString & | lineType, | ||
| const QString & | lineWeight, | ||
| const QString & | lineColor, | ||
| const QString & | formula, | ||
| const quint32 & | basePointId, | ||
| const qreal & | angle, | ||
| QGraphicsItem * | parent = nullptr |
||
| ) |
VToolLinePoint constructor.
| doc | dom document container. |
| data | container with variables. |
| id | object id in container. |
| lineType | line type. |
| lineColor | line color. |
| formula | string with length formula. |
| basePointId | id base line point. |
| angle | line angle. |
| parent | parent object. |
Definition at line 91 of file vtoollinepoint.cpp.
References basePointId, VDataTool::data, VContainer::GeometricObject(), lineColor, VDrawTool::m_lineType, VDrawTool::m_lineWeight, mainLine, Mm, VScaledLine::setBasicWidth(), VScenePoint::setPointColor(), and ToPixel().
|
virtual |
Definition at line 116 of file vtoollinepoint.cpp.
References mainLine.
| QString VToolLinePoint::BasePointName | ( | ) | const |
Definition at line 296 of file vtoollinepoint.cpp.
References basePointId, VDataTool::data, and VContainer::GetGObject().
Referenced by VToolOptionsPropertyBrowser::showOptionsToolAlongLine(), VToolOptionsPropertyBrowser::showOptionsToolBisector(), VToolOptionsPropertyBrowser::showOptionsToolCurveIntersectAxis(), VToolOptionsPropertyBrowser::showOptionsToolEndLine(), VToolOptionsPropertyBrowser::showOptionsToolHeight(), VToolOptionsPropertyBrowser::showOptionsToolLineIntersectAxis(), VToolOptionsPropertyBrowser::showOptionsToolNormal(), VToolOptionsPropertyBrowser::showOptionsToolShoulderPoint(), VToolOptionsPropertyBrowser::updateOptionsToolAlongLine(), VToolOptionsPropertyBrowser::updateOptionsToolBisector(), VToolOptionsPropertyBrowser::updateOptionsToolCurveIntersectAxis(), VToolOptionsPropertyBrowser::updateOptionsToolEndLine(), VToolOptionsPropertyBrowser::updateOptionsToolHeight(), VToolOptionsPropertyBrowser::updateOptionsToolLineIntersectAxis(), VToolOptionsPropertyBrowser::updateOptionsToolNormal(), and VToolOptionsPropertyBrowser::updateOptionsToolShoulderPoint().
|
virtualslot |
Definition at line 208 of file vtoollinepoint.cpp.
References VToolSinglePoint::Disable(), and mainLine.
|
virtualslot |
FullUpdateFromFile update tool data form file.
Definition at line 218 of file vtoollinepoint.cpp.
References VDrawTool::ReadAttributes(), RefreshGeometry(), and VAbstractTool::SetVisualization().
| qreal VToolLinePoint::GetAngle | ( | ) | const |
Definition at line 226 of file vtoollinepoint.cpp.
References angle.
Referenced by VToolOptionsPropertyBrowser::showOptionsToolNormal(), and VToolOptionsPropertyBrowser::updateOptionsToolNormal().
| quint32 VToolLinePoint::GetBasePointId | ( | ) | const |
Definition at line 255 of file vtoollinepoint.cpp.
References basePointId.
| VFormula VToolLinePoint::GetFormulaLength | ( | ) | const |
Definition at line 273 of file vtoollinepoint.cpp.
References formulaLength, VAbstractTool::getData(), VAbstractTool::m_id, qApp, VFormula::setCheckZero(), VFormula::setPostfix(), VFormula::setToolId(), and UnitsToStr().
Referenced by VToolOptionsPropertyBrowser::showOptionsToolAlongLine(), VToolOptionsPropertyBrowser::showOptionsToolBisector(), VToolOptionsPropertyBrowser::showOptionsToolEndLine(), VToolOptionsPropertyBrowser::showOptionsToolNormal(), VToolOptionsPropertyBrowser::showOptionsToolShoulderPoint(), VToolOptionsPropertyBrowser::updateOptionsToolAlongLine(), VToolOptionsPropertyBrowser::updateOptionsToolBisector(), VToolOptionsPropertyBrowser::updateOptionsToolEndLine(), VToolOptionsPropertyBrowser::updateOptionsToolNormal(), and VToolOptionsPropertyBrowser::updateOptionsToolShoulderPoint().
| QString VToolLinePoint::getLineColor | ( | ) | const |
Definition at line 240 of file vtoollinepoint.cpp.
References lineColor.
Referenced by VToolOptionsPropertyBrowser::updateOptionsToolAlongLine(), VToolOptionsPropertyBrowser::updateOptionsToolBisector(), VToolOptionsPropertyBrowser::updateOptionsToolCurveIntersectAxis(), VToolOptionsPropertyBrowser::updateOptionsToolEndLine(), VToolOptionsPropertyBrowser::updateOptionsToolHeight(), VToolOptionsPropertyBrowser::updateOptionsToolLineIntersectAxis(), VToolOptionsPropertyBrowser::updateOptionsToolNormal(), and VToolOptionsPropertyBrowser::updateOptionsToolShoulderPoint().
|
protectedvirtual |
Reimplemented from VToolSinglePoint.
Definition at line 170 of file vtoollinepoint.cpp.
References VToolSinglePoint::hoverEnterEvent(), VDrawTool::m_lineWeight, mainLine, Mm, VScaledLine::setBasicWidth(), and ToPixel().
|
protectedvirtual |
Reimplemented from VScenePoint.
Definition at line 177 of file vtoollinepoint.cpp.
References VScenePoint::hoverLeaveEvent(), VDrawTool::m_lineWeight, mainLine, Mm, VScaledLine::setBasicWidth(), and ToPixel().
|
protectedvirtual |
Reimplemented from VDrawTool.
Reimplemented in VToolShoulderPoint, VToolLineIntersectAxis, VToolHeight, and VToolAlongLine.
Definition at line 184 of file vtoollinepoint.cpp.
References basePointId, VDataTool::data, VContainer::GeometricObject(), VAbstractTool::m_id, qApp, and UnitsToStr().
|
virtual |
Reimplemented from VScenePoint.
Definition at line 122 of file vtoollinepoint.cpp.
References correctColor(), VAbstractTool::doc, lineColor, lineTypeToPenStyle(), VAbstractTool::m_id, VDrawTool::m_lineType, VDrawTool::m_lineWeight, mainLine, Mm, VScenePoint::paint(), ToPixel(), VAbstractPattern::useGroupColor(), VAbstractPattern::useGroupLineType(), and VAbstractPattern::useGroupLineWeight().
|
protectedvirtual |
lineColor color of a line.
RefreshGeometry refresh item on scene.
Definition at line 138 of file vtoollinepoint.cpp.
References basePointId, VDataTool::data, VContainer::GeometricObject(), lineColor, VAbstractTool::m_id, VDrawTool::m_lineWeight, mainLine, Mm, VScenePoint::refreshPointGeometry(), VScaledLine::setBasicWidth(), VScenePoint::setPointColor(), and ToPixel().
Referenced by FullUpdateFromFile().
|
protectedvirtual |
RemoveReferens decrement value of reference.
Reimplemented from VAbstractTool.
Reimplemented in VToolShoulderPoint, VToolNormal, VToolBisector, and VToolAlongLine.
Definition at line 153 of file vtoollinepoint.cpp.
References basePointId, VDataTool::data, VAbstractPattern::DecrementReferens(), VAbstractTool::doc, and VContainer::GetGObject().
Referenced by VToolAlongLine::RemoveReferens(), VToolBisector::RemoveReferens(), VToolNormal::RemoveReferens(), and VToolShoulderPoint::RemoveReferens().
|
protectedvirtual |
Reimplemented from VToolSinglePoint.
Reimplemented in VToolShoulderPoint, VToolNormal, VToolLineIntersectAxis, VToolHeight, VToolEndLine, VToolCurveIntersectAxis, VToolBisector, and VToolAlongLine.
Definition at line 160 of file vtoollinepoint.cpp.
References AttrLineColor, AttrLineType, AttrLineWeight, VAbstractTool::doc, lineColor, VDrawTool::m_lineType, VDrawTool::m_lineWeight, VToolSinglePoint::SaveOptions(), and VDomDocument::SetAttribute().
Referenced by VToolAlongLine::SaveOptions(), VToolBisector::SaveOptions(), VToolCurveIntersectAxis::SaveOptions(), VToolEndLine::SaveOptions(), VToolHeight::SaveOptions(), VToolLineIntersectAxis::SaveOptions(), VToolNormal::SaveOptions(), and VToolShoulderPoint::SaveOptions().
| void VToolLinePoint::SetAngle | ( | const qreal & | value | ) |
Definition at line 232 of file vtoollinepoint.cpp.
References angle, VDataTool::data, VContainer::GetGObject(), VAbstractTool::m_id, and VDrawTool::SaveOption().
Referenced by VToolOptionsPropertyBrowser::changeDataToolNormal().
| void VToolLinePoint::SetBasePointId | ( | const quint32 & | value | ) |
Definition at line 261 of file vtoollinepoint.cpp.
References basePointId, VDataTool::data, VContainer::GetGObject(), VAbstractTool::m_id, NULL_ID, and VDrawTool::SaveOption().
Referenced by VToolOptionsPropertyBrowser::changeDataToolAlongLine(), VToolOptionsPropertyBrowser::changeDataToolBisector(), VToolOptionsPropertyBrowser::changeDataToolCurveIntersectAxis(), VToolOptionsPropertyBrowser::changeDataToolEndLine(), VToolOptionsPropertyBrowser::changeDataToolHeight(), VToolOptionsPropertyBrowser::changeDataToolLineIntersectAxis(), VToolOptionsPropertyBrowser::changeDataToolNormal(), and VToolOptionsPropertyBrowser::changeDataToolShoulderPoint().
| void VToolLinePoint::SetFormulaLength | ( | const VFormula & | value | ) |
Definition at line 284 of file vtoollinepoint.cpp.
References VDataTool::data, VFormula::error(), formulaLength, FromUser, VFormula::GetFormula(), VContainer::GetGObject(), VAbstractTool::m_id, and VDrawTool::SaveOption().
Referenced by VToolOptionsPropertyBrowser::changeDataToolAlongLine(), VToolOptionsPropertyBrowser::changeDataToolBisector(), VToolOptionsPropertyBrowser::changeDataToolEndLine(), VToolOptionsPropertyBrowser::changeDataToolNormal(), and VToolOptionsPropertyBrowser::changeDataToolShoulderPoint().
| void VToolLinePoint::setLineColor | ( | const QString & | value | ) |
Definition at line 246 of file vtoollinepoint.cpp.
References VDataTool::data, VContainer::GetGObject(), lineColor, VAbstractTool::m_id, and VDrawTool::SaveOption().
Referenced by VToolOptionsPropertyBrowser::changeDataToolAlongLine(), VToolOptionsPropertyBrowser::changeDataToolBisector(), VToolOptionsPropertyBrowser::changeDataToolCurveIntersectAxis(), VToolOptionsPropertyBrowser::changeDataToolEndLine(), VToolOptionsPropertyBrowser::changeDataToolHeight(), VToolOptionsPropertyBrowser::changeDataToolLineIntersectAxis(), VToolOptionsPropertyBrowser::changeDataToolNormal(), and VToolOptionsPropertyBrowser::changeDataToolShoulderPoint().
|
inlinevirtual |
Reimplemented from VToolSinglePoint.
Reimplemented in VToolShoulderPoint, VToolNormal, VToolLineIntersectAxis, VToolHeight, VToolEndLine, VToolCurveIntersectAxis, VToolBisector, and VToolAlongLine.
Definition at line 81 of file vtoollinepoint.h.
References Type.
|
protected |
formula string with length formula.
Definition at line 107 of file vtoollinepoint.h.
Referenced by VToolBisector::BisectorAngle(), VToolCurveIntersectAxis::Create(), VToolNormal::Create(), VToolNormal::FindPoint(), VToolCurveIntersectAxis::FindPoint(), GetAngle(), VToolNormal::ReadToolAttributes(), VToolNormal::SaveOptions(), SetAngle(), VToolNormal::setDialog(), and VToolNormal::SetVisualization().
|
protected |
angle line angle.
Definition at line 108 of file vtoollinepoint.h.
Referenced by BasePointName(), VToolCurveIntersectAxis::Create(), VToolEndLine::Create(), VToolHeight::Create(), VToolLineIntersectAxis::Create(), GetBasePointId(), VToolAlongLine::makeToolTip(), VToolHeight::makeToolTip(), VToolLineIntersectAxis::makeToolTip(), makeToolTip(), VToolShoulderPoint::makeToolTip(), VToolAlongLine::ReadToolAttributes(), VToolBisector::ReadToolAttributes(), VToolCurveIntersectAxis::ReadToolAttributes(), VToolEndLine::ReadToolAttributes(), VToolHeight::ReadToolAttributes(), VToolLineIntersectAxis::ReadToolAttributes(), VToolNormal::ReadToolAttributes(), VToolShoulderPoint::ReadToolAttributes(), RefreshGeometry(), RemoveReferens(), VToolAlongLine::SaveOptions(), VToolBisector::SaveOptions(), VToolCurveIntersectAxis::SaveOptions(), VToolEndLine::SaveOptions(), VToolHeight::SaveOptions(), VToolLineIntersectAxis::SaveOptions(), VToolNormal::SaveOptions(), VToolShoulderPoint::SaveOptions(), SetBasePointId(), VToolAlongLine::setDialog(), VToolBisector::setDialog(), VToolCurveIntersectAxis::setDialog(), VToolEndLine::setDialog(), VToolHeight::setDialog(), VToolLineIntersectAxis::setDialog(), VToolNormal::setDialog(), VToolShoulderPoint::setDialog(), VToolAlongLine::SetVisualization(), VToolBisector::SetVisualization(), VToolCurveIntersectAxis::SetVisualization(), VToolEndLine::SetVisualization(), VToolHeight::SetVisualization(), VToolLineIntersectAxis::SetVisualization(), VToolNormal::SetVisualization(), VToolShoulderPoint::SetVisualization(), and VToolLinePoint().
|
protected |
Definition at line 106 of file vtoollinepoint.h.
Referenced by VToolEndLine::Create(), GetFormulaLength(), VToolAlongLine::ReadToolAttributes(), VToolBisector::ReadToolAttributes(), VToolEndLine::ReadToolAttributes(), VToolNormal::ReadToolAttributes(), VToolShoulderPoint::ReadToolAttributes(), VToolAlongLine::SaveOptions(), VToolBisector::SaveOptions(), VToolEndLine::SaveOptions(), VToolNormal::SaveOptions(), VToolShoulderPoint::SaveOptions(), VToolAlongLine::setDialog(), VToolBisector::setDialog(), VToolEndLine::setDialog(), VToolNormal::setDialog(), VToolShoulderPoint::setDialog(), SetFormulaLength(), VToolAlongLine::SetVisualization(), VToolBisector::SetVisualization(), VToolEndLine::SetVisualization(), VToolNormal::SetVisualization(), and VToolShoulderPoint::SetVisualization().
|
protected |
mainLine line item.
Definition at line 110 of file vtoollinepoint.h.
Referenced by VToolAlongLine::Create(), VToolBisector::Create(), VToolCurveIntersectAxis::Create(), VToolEndLine::Create(), VToolHeight::Create(), VToolLineIntersectAxis::Create(), VToolNormal::Create(), VToolShoulderPoint::Create(), getLineColor(), paint(), VToolAlongLine::ReadToolAttributes(), VToolBisector::ReadToolAttributes(), VToolCurveIntersectAxis::ReadToolAttributes(), VToolEndLine::ReadToolAttributes(), VToolHeight::ReadToolAttributes(), VToolLineIntersectAxis::ReadToolAttributes(), VToolNormal::ReadToolAttributes(), VToolShoulderPoint::ReadToolAttributes(), RefreshGeometry(), SaveOptions(), VToolAlongLine::setDialog(), VToolBisector::setDialog(), VToolCurveIntersectAxis::setDialog(), VToolEndLine::setDialog(), VToolHeight::setDialog(), VToolLineIntersectAxis::setDialog(), VToolNormal::setDialog(), VToolShoulderPoint::setDialog(), setLineColor(), VToolAlongLine::VToolAlongLine(), and VToolLinePoint().
|
protected |
basePointId id base line point.
Definition at line 109 of file vtoollinepoint.h.
Referenced by Disable(), hoverEnterEvent(), hoverLeaveEvent(), paint(), RefreshGeometry(), VToolLinePoint(), and ~VToolLinePoint().