Seamly2D
Code documentation
VAbstractTool Class Referenceabstract

The VAbstractTool abstract class for all tools. More...

#include <vabstracttool.h>

Inheritance diagram for VAbstractTool:
Collaboration diagram for VAbstractTool:

Public Slots

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)
 

Signals

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)
 

Public Member Functions

 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 VContainergetData () const
 getData return pointer to data container. More...
 
QMap< QString, quint32 > PointsList () const
 
virtual QString getTagName () const =0
 
virtual void ShowVisualization (bool show)=0
 
virtual void setPointNamePosition (quint32 id, const QPointF &pos)
 
virtual void setPointNameVisiblity (quint32 id, bool visible)
 
- 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...
 
virtual void GroupVisibility (quint32 object, bool visible)=0
 

Static Public Member Functions

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

static bool m_suppressContextMenu = false
 
static const QString AttrInUse = QStringLiteral("inUse")
 

Protected Member Functions

virtual void AddToFile ()=0
 AddToFile add tag with Information about tool into file. More...
 
virtual void RefreshDataInFile ()
 RefreshDataInFile refresh attributes in file. If attributes don't exist create them. More...
 
virtual void RemoveReferens ()
 RemoveReferens decrement value of reference. 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)
 

Static Protected Member Functions

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< VPieceNodePrepareNodes (const VPiecePath &path, VMainGraphicsScene *scene, VAbstractPattern *doc, VContainer *data)
 
static quint32 PrepareNode (const VPieceNode &node, VMainGraphicsScene *scene, VAbstractPattern *doc, VContainer *data)
 

Protected Attributes

VAbstractPatterndoc
 doc dom document container More...
 
const quint32 m_id
 id object id. More...
 
QPointer< Visualizationvis
 
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...
 

Detailed Description

The VAbstractTool abstract class for all tools.

Definition at line 79 of file vabstracttool.h.

Constructor & Destructor Documentation

◆ VAbstractTool()

VAbstractTool::VAbstractTool ( VAbstractPattern doc,
VContainer data,
quint32  id,
QObject *  parent = nullptr 
)

VAbstractTool container.

Parameters
docdom document container.
datacontainer with data.
idobject id in container.
parentparent object.

Definition at line 147 of file vabstracttool.cpp.

References doc, VAbstractPattern::FullUpdateFromFile(), FullUpdateFromFile(), VAbstractPattern::haveLiteChange(), VAbstractPattern::LiteParseTree(), LiteUpdateTree(), SCASSERT, and toolHasChanges().

◆ ~VAbstractTool()

VAbstractTool::~VAbstractTool ( )
virtual

Definition at line 161 of file vabstracttool.cpp.

References vis.

Member Function Documentation

◆ AddNode()

void VAbstractTool::AddNode ( VAbstractPattern doc,
QDomElement &  domElement,
const VPieceNode node 
)
staticprotected

Definition at line 720 of file vabstracttool.cpp.

References AddSANode(), doc, and VAbstractPattern::TagNode.

Referenced by AddNodes().

◆ AddNodes() [1/2]

void VAbstractTool::AddNodes ( VAbstractPattern doc,
QDomElement &  domElement,
const VPiece piece 
)
static

Definition at line 613 of file vabstracttool.cpp.

References AddNodes(), doc, and VPiece::GetPath().

◆ AddNodes() [2/2]

◆ AddRecord()

void VAbstractTool::AddRecord ( const quint32  id,
const Tool toolType,
VAbstractPattern doc 
)
static

AddRecord add record about tool in history.

Parameters
idobject id in container
toolTypetool type
docdom document container

Definition at line 568 of file vabstracttool.cpp.

References doc, VAbstractPattern::getActiveDraftBlockName(), VAbstractPattern::getCursor(), VAbstractPattern::getHistory(), VToolRecord::getId(), and NULL_ID.

Referenced by VToolLine::Create(), PointIntersectXYTool::Create(), VToolCurveIntersectAxis::Create(), VToolLineIntersectAxis::Create(), VToolEndLine::Create(), VToolHeight::Create(), VToolAlongLine::Create(), VToolPointOfIntersectionArcs::Create(), VToolCutSpline::Create(), VToolCutArc::Create(), VToolCutSplinePath::Create(), VToolPointFromArcAndTangent::Create(), VToolTriangle::Create(), IntersectCircleTangentTool::Create(), IntersectCirclesTool::Create(), VToolPointOfIntersectionCurves::Create(), VToolArc::Create(), VToolArcWithLength::Create(), VToolEllipticalArc::Create(), VToolRotation::Create(), VToolLineIntersect::Create(), UnionTool::Create(), VToolNormal::Create(), VToolBisector::Create(), VToolShoulderPoint::Create(), VToolPointOfContact::Create(), VToolMirrorByLine::Create(), VToolMirrorByAxis::Create(), VToolCubicBezier::Create(), VToolCubicBezierPath::Create(), VToolSpline::Create(), VToolSplinePath::Create(), VToolBasePoint::Create(), VToolTrueDarts::Create(), VToolInternalPath::Create(), VToolMove::Create(), AnchorPointTool::Create(), PatternPieceTool::Create(), VNodeArc::Create(), VNodeEllipticalArc::Create(), VNodeSpline::Create(), VNodeSplinePath::Create(), and VNodePoint::Create().

◆ AddSANode()

QDomElement VAbstractTool::AddSANode ( VAbstractPattern doc,
const QString &  tagName,
const VPieceNode node 
)
staticprotected

◆ AddToFile()

virtual void VAbstractTool::AddToFile ( )
protectedpure virtual

◆ AddVisualization()

template<typename T >
void VAbstractTool::AddVisualization
inlineprotected

Definition at line 206 of file vabstracttool.h.

References getData(), qApp, SCASSERT, ToolTip(), Visualization::ToolTip(), and vis.

◆ AllowHover

virtual void VAbstractTool::AllowHover ( bool  enabled)
pure virtualslot

◆ AllowSelecting

virtual void VAbstractTool::AllowSelecting ( bool  enabled)
pure virtualslot

◆ backgroundColorsList()

QMap< QString, QString > VAbstractTool::backgroundColorsList ( )
static

Definition at line 431 of file vabstracttool.cpp.

◆ CheckFormula()

qreal VAbstractTool::CheckFormula ( const quint32 &  toolId,
QString &  formula,
VContainer data 
)
static

CheckFormula check formula.

Try calculate formula. If find error show dialog that allow user try fix formula. If user can't throw exception. In successes case return result calculation and fixed formula string. If formula ok don't touch formula.

Parameters
toolId[in] tool's id.
formula[in|out] string with formula.
data[in] container with variables. Need for math parser.
Exceptions
QmuParserError.
Returns
result of calculation formula.

Definition at line 182 of file vabstracttool.cpp.

References VDataTool::data, VContainer::DataVariables(), Fix, qmu::QmuParserError::GetExpr(), qmu::QmuParserError::GetMsg(), qApp, and SCASSERT.

Referenced by VToolCurveIntersectAxis::Create(), VToolLineIntersectAxis::Create(), VToolEndLine::Create(), VToolAlongLine::Create(), VToolCutSpline::Create(), VToolCutArc::Create(), VToolCutSplinePath::Create(), IntersectCircleTangentTool::Create(), IntersectCirclesTool::Create(), VToolArc::Create(), VToolArcWithLength::Create(), VToolEllipticalArc::Create(), VToolRotation::Create(), VToolSplinePath::Create(), VToolNormal::Create(), VToolBisector::Create(), VToolShoulderPoint::Create(), VToolPointOfContact::Create(), VToolSpline::Create(), VToolMove::Create(), and PatternPieceTool::Create().

◆ chosenTool

◆ Colors()

◆ ColorsList()

◆ ConfirmDeletion()

◆ createColorIcon()

QPixmap VAbstractTool::createColorIcon ( const int  w,
const int  h,
const QString &  color 
)
static

◆ CreateNode()

template<typename T >
quint32 VAbstractTool::CreateNode ( VContainer data,
quint32  id 
)
static

CreateNode create new node for detail.

Parameters
datacontainer.
idid parent object.
Returns
id for new object.

Definition at line 225 of file vabstracttool.h.

References VContainer::AddGObject(), VDataTool::data, VContainer::GeometricObject(), and Modeling.

◆ deleteTool()

◆ fills()

◆ FullUpdateFromFile

virtual void VAbstractTool::FullUpdateFromFile ( )
pure virtualslot

FullUpdateFromFile update tool data form file.

Referenced by VAbstractTool().

◆ getData()

◆ getId()

◆ getTagName()

◆ LiteUpdateTree

void VAbstractTool::LiteUpdateTree ( const Document parse)
signal

FullUpdateTree emit if need reparse pattern file.

Referenced by VAbstractTool().

◆ PointsList()

QMap< QString, quint32 > VAbstractTool::PointsList ( ) const

◆ PrepareNode()

◆ PrepareNodes()

QVector< VPieceNode > VAbstractTool::PrepareNodes ( const VPiecePath path,
VMainGraphicsScene scene,
VAbstractPattern doc,
VContainer data 
)
staticprotected

◆ RefreshDataInFile()

void VAbstractTool::RefreshDataInFile ( )
protectedvirtual

RefreshDataInFile refresh attributes in file. If attributes don't exist create them.

Reimplemented in PatternPieceTool.

Definition at line 543 of file vabstracttool.cpp.

Referenced by ToolCreation(), VAbstractNode::ToolCreation(), and VToolInternalPath::ToolCreation().

◆ RemoveReferens()

◆ setPointNamePosition()

void VAbstractTool::setPointNamePosition ( quint32  id,
const QPointF &  pos 
)
virtual

Reimplemented in VNodePoint, VToolSinglePoint, VToolDoublePoint, and VAbstractOperation.

Definition at line 523 of file vabstracttool.cpp.

◆ setPointNameVisiblity()

void VAbstractTool::setPointNameVisiblity ( quint32  id,
bool  visible 
)
virtual

Reimplemented in VNodePoint, VToolSinglePoint, VToolDoublePoint, and VAbstractOperation.

Definition at line 530 of file vabstracttool.cpp.

◆ SetVisualization()

◆ ShowVisualization()

◆ supportColorsList()

QMap< QString, QString > VAbstractTool::supportColorsList ( )
static

◆ ToolCreation()

void VAbstractTool::ToolCreation ( const Source typeCreation)
protectedvirtual

Reimplemented in PatternPieceTool, VToolInternalPath, and VAbstractNode.

Definition at line 549 of file vabstracttool.cpp.

References AddToFile(), FromGui, and RefreshDataInFile().

Referenced by IntersectCirclesTool::IntersectCirclesTool(), IntersectCircleTangentTool::IntersectCircleTangentTool(), PointIntersectXYTool::PointIntersectXYTool(), UnionTool::UnionTool(), VToolAlongLine::VToolAlongLine(), VToolArc::VToolArc(), VToolArcWithLength::VToolArcWithLength(), VToolBasePoint::VToolBasePoint(), VToolBisector::VToolBisector(), VToolCubicBezier::VToolCubicBezier(), VToolCubicBezierPath::VToolCubicBezierPath(), VToolCurveIntersectAxis::VToolCurveIntersectAxis(), VToolCutArc::VToolCutArc(), VToolCutSpline::VToolCutSpline(), VToolCutSplinePath::VToolCutSplinePath(), VToolEllipticalArc::VToolEllipticalArc(), VToolEndLine::VToolEndLine(), VToolHeight::VToolHeight(), VToolLine::VToolLine(), VToolLineIntersect::VToolLineIntersect(), VToolLineIntersectAxis::VToolLineIntersectAxis(), VToolMirrorByAxis::VToolMirrorByAxis(), VToolMirrorByLine::VToolMirrorByLine(), VToolMove::VToolMove(), VToolNormal::VToolNormal(), VToolPointFromArcAndTangent::VToolPointFromArcAndTangent(), VToolPointOfContact::VToolPointOfContact(), VToolPointOfIntersectionArcs::VToolPointOfIntersectionArcs(), VToolPointOfIntersectionCurves::VToolPointOfIntersectionCurves(), VToolRotation::VToolRotation(), VToolShoulderPoint::VToolShoulderPoint(), VToolSpline::VToolSpline(), VToolSplinePath::VToolSplinePath(), VToolTriangle::VToolTriangle(), and VToolTrueDarts::VToolTrueDarts().

◆ toolHasChanges

void VAbstractTool::toolHasChanges ( )
signal

toolHasChanges emit if tool create change that need save.

Referenced by VAbstractTool().

◆ ToolSelectionType

void VAbstractTool::ToolSelectionType ( const SelectionType type)
virtualslot

◆ ToolTip

void VAbstractTool::ToolTip ( const QString &  toolTip)
signal

Member Data Documentation

◆ AttrInUse

◆ doc

VAbstractPattern* VAbstractTool::doc
protected

doc dom document container

Definition at line 144 of file vabstracttool.h.

Referenced by PatternPieceTool::addAnchors(), PatternPieceTool::AddAttributes(), VToolInternalPath::AddAttributes(), PatternPieceTool::AddCSARecord(), PatternPieceTool::AddCSARecords(), PatternPieceTool::AddGrainline(), PatternPieceTool::AddInternalPaths(), AddNode(), AddNodes(), VToolCubicBezierPath::AddPathPoint(), VToolSplinePath::AddPathPoint(), PatternPieceTool::AddPatternInfo(), PatternPieceTool::AddPatternPieceData(), UnionTool::addPiece(), AddRecord(), AddSANode(), VDrawTool::AddToCalculation(), VAbstractOperation::AddToFile(), VToolDoublePoint::AddToFile(), VToolBasePoint::AddToFile(), VDrawTool::AddToFile(), VToolLine::AddToFile(), AnchorPointTool::AddToFile(), VNodeArc::AddToFile(), VNodeEllipticalArc::AddToFile(), VNodePoint::AddToFile(), VNodeSpline::AddToFile(), VNodeSplinePath::AddToFile(), VToolInternalPath::AddToFile(), PatternPieceTool::AddToFile(), UnionTool::AddToFile(), VAbstractNode::AddToModeling(), UnionTool::AddToModeling(), VDrawTool::ContextMenu(), VNodePoint::contextMenuEvent(), VToolSpline::ControlPointChangePosition(), VToolSplinePath::ControlPointChangePosition(), AnchorPointTool::Create(), VToolMirrorByAxis::Create(), VToolMirrorByLine::Create(), VToolMove::Create(), VToolRotation::Create(), VToolArc::Create(), VToolArcWithLength::Create(), VToolCubicBezier::Create(), VToolCubicBezierPath::Create(), VToolEllipticalArc::Create(), VToolSpline::Create(), VToolSplinePath::Create(), VToolTrueDarts::Create(), IntersectCirclesTool::Create(), IntersectCircleTangentTool::Create(), PointIntersectXYTool::Create(), VToolCutArc::Create(), VToolCutSpline::Create(), VToolCutSplinePath::Create(), VToolAlongLine::Create(), VToolBisector::Create(), VToolCurveIntersectAxis::Create(), VToolEndLine::Create(), VToolHeight::Create(), VToolLineIntersectAxis::Create(), VToolNormal::Create(), VToolShoulderPoint::Create(), VToolLineIntersect::Create(), VToolPointFromArcAndTangent::Create(), VToolPointOfContact::Create(), VToolPointOfIntersectionArcs::Create(), VToolPointOfIntersectionCurves::Create(), VToolTriangle::Create(), VToolLine::Create(), VToolInternalPath::Create(), PatternPieceTool::Create(), UnionTool::Create(), VToolBasePoint::Create(), VNodeArc::Create(), VNodeEllipticalArc::Create(), VNodeSpline::Create(), VNodeSplinePath::Create(), VNodePoint::Create(), VAbstractMirror::createDestination(), VToolInternalPath::DecrementNodes(), VAbstractNode::decrementReferens(), VToolInternalPath::decrementReferens(), UnionTool::decrementReferens(), deleteTool(), VToolBasePoint::deleteTool(), PatternPieceTool::deleteTool(), UnionTool::GetReferenceObjects(), VToolInternalPath::IncrementNodes(), VAbstractNode::incrementReferens(), VToolInternalPath::incrementReferens(), UnionTool::incrementReferens(), PatternPieceTool::InitCSAPaths(), PatternPieceTool::initializeAnchorPoints(), PatternPieceTool::initializeNode(), PatternPieceTool::initializeNodes(), PatternPieceTool::InitInternalPaths(), PatternPieceTool::insertNodes(), VToolBasePoint::itemChange(), PatternPieceTool::itemChange(), VToolSpline::mouseMoveEvent(), VToolSplinePath::mouseMoveEvent(), PatternPieceTool::mousePressEvent(), VNodePoint::nameChangedPosition(), VAbstractSpline::paint(), VToolLinePoint::paint(), VToolLine::paint(), PatternPieceTool::PatternPieceTool(), PrepareNode(), PrepareNodes(), VDrawTool::ReadAttributes(), VToolMirrorByAxis::ReadToolAttributes(), VToolMirrorByLine::ReadToolAttributes(), VAbstractOperation::ReadToolAttributes(), VToolMove::ReadToolAttributes(), VToolRotation::ReadToolAttributes(), VToolTrueDarts::ReadToolAttributes(), IntersectCirclesTool::ReadToolAttributes(), IntersectCircleTangentTool::ReadToolAttributes(), PointIntersectXYTool::ReadToolAttributes(), VToolCutArc::ReadToolAttributes(), VToolCutSpline::ReadToolAttributes(), VToolCutSplinePath::ReadToolAttributes(), VToolAlongLine::ReadToolAttributes(), VToolBisector::ReadToolAttributes(), VToolCurveIntersectAxis::ReadToolAttributes(), VToolEndLine::ReadToolAttributes(), VToolHeight::ReadToolAttributes(), VToolLineIntersectAxis::ReadToolAttributes(), VToolNormal::ReadToolAttributes(), VToolShoulderPoint::ReadToolAttributes(), VToolLineIntersect::ReadToolAttributes(), VToolPointFromArcAndTangent::ReadToolAttributes(), VToolPointOfContact::ReadToolAttributes(), VToolPointOfIntersectionArcs::ReadToolAttributes(), VToolPointOfIntersectionCurves::ReadToolAttributes(), VToolTriangle::ReadToolAttributes(), VToolLine::ReadToolAttributes(), UnionTool::ReferenceObjects(), PatternPieceTool::RefreshDataInFile(), VToolArc::RemoveReferens(), VToolArcWithLength::RemoveReferens(), VToolCubicBezier::RemoveReferens(), VToolCubicBezierPath::RemoveReferens(), VToolEllipticalArc::RemoveReferens(), VToolSpline::RemoveReferens(), VToolSplinePath::RemoveReferens(), VToolTrueDarts::RemoveReferens(), IntersectCirclesTool::RemoveReferens(), IntersectCircleTangentTool::RemoveReferens(), PointIntersectXYTool::RemoveReferens(), VToolCut::RemoveReferens(), DoubleLinePointTool::RemoveReferens(), VToolAlongLine::RemoveReferens(), VToolBisector::RemoveReferens(), VToolLinePoint::RemoveReferens(), VToolNormal::RemoveReferens(), VToolShoulderPoint::RemoveReferens(), VToolLineIntersect::RemoveReferens(), VToolPointFromArcAndTangent::RemoveReferens(), VToolPointOfContact::RemoveReferens(), VToolPointOfIntersectionArcs::RemoveReferens(), VToolPointOfIntersectionCurves::RemoveReferens(), VToolTriangle::RemoveReferens(), VToolLine::RemoveReferens(), PatternPieceTool::renamePiece(), VToolMirrorByAxis::SaveDialog(), VToolMirrorByLine::SaveDialog(), VToolMove::SaveDialog(), VToolRotation::SaveDialog(), VToolArc::SaveDialog(), VToolArcWithLength::SaveDialog(), VToolCubicBezier::SaveDialog(), VToolCubicBezierPath::SaveDialog(), VToolEllipticalArc::SaveDialog(), VToolSpline::SaveDialog(), VToolSplinePath::SaveDialog(), VToolTrueDarts::SaveDialog(), IntersectCirclesTool::SaveDialog(), IntersectCircleTangentTool::SaveDialog(), PointIntersectXYTool::SaveDialog(), VToolCutArc::SaveDialog(), VToolCutSpline::SaveDialog(), VToolCutSplinePath::SaveDialog(), VToolAlongLine::SaveDialog(), VToolBisector::SaveDialog(), VToolCurveIntersectAxis::SaveDialog(), VToolEndLine::SaveDialog(), VToolHeight::SaveDialog(), VToolLineIntersectAxis::SaveDialog(), VToolNormal::SaveDialog(), VToolShoulderPoint::SaveDialog(), VToolBasePoint::SaveDialog(), VToolLineIntersect::SaveDialog(), VToolPointFromArcAndTangent::SaveDialog(), VToolPointOfContact::SaveDialog(), VToolPointOfIntersectionArcs::SaveDialog(), VToolPointOfIntersectionCurves::SaveDialog(), VToolTriangle::SaveDialog(), VToolLine::SaveDialog(), VDrawTool::SaveDialogChange(), PatternPieceTool::SaveDialogChange(), PatternPieceTool::SaveMoveGrainline(), PatternPieceTool::SaveMovePattern(), PatternPieceTool::saveMovePiece(), VDrawTool::SaveOption(), VDrawTool::SaveOptions(), VToolMirrorByAxis::SaveOptions(), VToolMirrorByLine::SaveOptions(), VAbstractOperation::SaveOptions(), VToolMove::SaveOptions(), VToolRotation::SaveOptions(), VAbstractSpline::SaveOptions(), VToolArc::SaveOptions(), VToolArcWithLength::SaveOptions(), VToolEllipticalArc::SaveOptions(), VToolDoublePoint::SaveOptions(), VToolTrueDarts::SaveOptions(), IntersectCirclesTool::SaveOptions(), IntersectCircleTangentTool::SaveOptions(), PointIntersectXYTool::SaveOptions(), VToolCutArc::SaveOptions(), VToolCutSpline::SaveOptions(), VToolCutSplinePath::SaveOptions(), DoubleLinePointTool::SaveOptions(), VToolAlongLine::SaveOptions(), VToolBisector::SaveOptions(), VToolCurveIntersectAxis::SaveOptions(), VToolEndLine::SaveOptions(), VToolHeight::SaveOptions(), VToolLineIntersectAxis::SaveOptions(), VToolLinePoint::SaveOptions(), VToolNormal::SaveOptions(), VToolShoulderPoint::SaveOptions(), VToolBasePoint::SaveOptions(), VToolLineIntersect::SaveOptions(), VToolPointFromArcAndTangent::SaveOptions(), VToolPointOfContact::SaveOptions(), VToolPointOfIntersectionArcs::SaveOptions(), VToolPointOfIntersectionCurves::SaveOptions(), VToolSinglePoint::SaveOptions(), VToolTriangle::SaveOptions(), VToolLine::SaveOptions(), PatternPieceTool::savePieceRotation(), PatternPieceTool::SaveResizeGrainline(), PatternPieceTool::SaveResizePattern(), PatternPieceTool::saveResizePiece(), PatternPieceTool::SaveRotateGrainline(), PatternPieceTool::SaveRotationPattern(), VAbstractOperation::SaveSourceDestination(), VToolCubicBezier::SetSplineAttributes(), VToolSpline::SetSplineAttributes(), VToolCubicBezierPath::SetSplinePathAttributes(), VToolSplinePath::SetSplinePathAttributes(), VToolBasePoint::showContextMenu(), PatternPieceTool::toggleFlipping(), PatternPieceTool::toggleGrainline(), PatternPieceTool::toggleInLayout(), PatternPieceTool::togglePatternLabel(), PatternPieceTool::togglePieceLabel(), PatternPieceTool::togglePieceLock(), PatternPieceTool::toggleSeamAllowance(), PatternPieceTool::toggleSeamLine(), VToolCubicBezierPath::UpdatePathPoints(), VToolSplinePath::UpdatePathPoints(), PatternPieceTool::UpdatePatternLabel(), VAbstractOperation::updatePointNamePosition(), VToolDoublePoint::updatePointNamePosition(), VToolSinglePoint::updatePointNamePosition(), VAbstractOperation::updatePointNameVisibility(), VToolDoublePoint::updatePointNameVisibility(), VToolSinglePoint::updatePointNameVisibility(), and VAbstractTool().

◆ m_id

const quint32 VAbstractTool::m_id
protected

id object id.

Definition at line 147 of file vabstracttool.h.

Referenced by VAbstractOperation::AddToFile(), VToolDoublePoint::AddToFile(), VToolBasePoint::AddToFile(), VDrawTool::AddToFile(), AnchorPointTool::AddToFile(), VNodeArc::AddToFile(), VNodeEllipticalArc::AddToFile(), VNodePoint::AddToFile(), VNodeSpline::AddToFile(), VNodeSplinePath::AddToFile(), VToolInternalPath::AddToFile(), PatternPieceTool::AddToFile(), UnionTool::AddToFile(), VDrawTool::ContextMenu(), VToolSinglePoint::contextMenuEvent(), VNodePoint::contextMenuEvent(), PatternPieceTool::contextMenuEvent(), VToolSpline::ControlPointChangePosition(), VToolSplinePath::ControlPointChangePosition(), VAbstractNode::decrementReferens(), VToolInternalPath::decrementReferens(), UnionTool::decrementReferens(), deleteTool(), PatternPieceTool::deleteTool(), PatternPieceTool::editPieceProperties(), PatternPieceTool::EnableToolMove(), VToolCubicBezier::FirstPointName(), VToolCubicBezier::ForthPointName(), VToolBasePoint::FullUpdateFromFile(), VToolSinglePoint::FullUpdateFromFile(), VNodePoint::FullUpdateFromFile(), VToolArc::getArc(), VToolPointOfContact::getArcRadius(), VToolBasePoint::GetBasePointPos(), VToolArc::getCenter(), VToolArcWithLength::getCenter(), VToolEllipticalArc::getCenter(), IntersectCircleTangentTool::GetCircleRadius(), IntersectCirclesTool::GetFirstCircleRadius(), VToolCut::GetFormula(), VToolMove::GetFormulaAngle(), VToolRotation::GetFormulaAngle(), VToolCurveIntersectAxis::GetFormulaAngle(), VToolEndLine::GetFormulaAngle(), VToolLineIntersectAxis::GetFormulaAngle(), VToolArc::GetFormulaF1(), VToolArcWithLength::GetFormulaF1(), VToolEllipticalArc::GetFormulaF1(), VToolArc::GetFormulaF2(), VToolEllipticalArc::GetFormulaF2(), VToolMove::GetFormulaLength(), VToolArcWithLength::GetFormulaLength(), VToolLinePoint::GetFormulaLength(), VToolArc::GetFormulaRadius(), VToolArcWithLength::GetFormulaRadius(), VToolEllipticalArc::GetFormulaRadius1(), VToolEllipticalArc::GetFormulaRadius2(), VToolMove::getFormulaRotation(), VToolEllipticalArc::GetFormulaRotationAngle(), getId(), VAbstractSpline::getLineColor(), VAbstractSpline::getLineWeight(), VAbstractSpline::GetPenStyle(), UnionTool::GetReferenceObjects(), IntersectCirclesTool::GetSecondCircleRadius(), VToolCubicBezier::getSpline(), VToolSpline::getSpline(), VToolCubicBezierPath::getSplinePath(), VToolSplinePath::getSplinePath(), PatternPieceTool::Highlight(), VNodePoint::hoverEnterEvent(), VToolSplinePath::hoverEnterEvent(), VAbstractNode::incrementReferens(), VToolInternalPath::incrementReferens(), UnionTool::incrementReferens(), VAbstractSpline::InitDefShape(), VToolSpline::IsMovable(), VToolSplinePath::IsMovable(), VToolSinglePoint::isPointNameVisible(), VAbstractSpline::itemChange(), VToolBasePoint::itemChange(), VToolSinglePoint::itemChange(), VToolLine::itemChange(), PatternPieceTool::itemChange(), PatternPieceTool::keyReleaseEvent(), VAbstractSpline::makeToolTip(), VToolArc::makeToolTip(), VToolArcWithLength::makeToolTip(), VToolEllipticalArc::makeToolTip(), DoubleLinePointTool::makeToolTip(), VToolAlongLine::makeToolTip(), VToolHeight::makeToolTip(), VToolLineIntersectAxis::makeToolTip(), VToolLinePoint::makeToolTip(), VToolShoulderPoint::makeToolTip(), VToolBasePoint::makeToolTip(), VToolLineIntersect::makeToolTip(), VToolPointOfContact::makeToolTip(), VToolSpline::mouseMoveEvent(), VToolSplinePath::mouseMoveEvent(), VToolSplinePath::mousePressEvent(), PatternPieceTool::mousePressEvent(), VAbstractSpline::mouseReleaseEvent(), VNodePoint::mouseReleaseEvent(), VAbstractSpline::name(), VToolSinglePoint::name(), VNodePoint::nameChangedPosition(), VAbstractOperation::ObjectSelected(), VAbstractSpline::paint(), PatternPieceTool::paint(), VToolLinePoint::paint(), VToolLine::paint(), PatternPieceTool::pieceLockedChanged(), VToolDoublePoint::point1Selected(), VToolDoublePoint::point2Selected(), VToolSinglePoint::pointChosen(), VNodePoint::pointChosen(), VToolSinglePoint::pointnameChangedPosition(), PointsList(), VDrawTool::ReadAttributes(), VToolSpline::refreshCtrlPoints(), VToolSplinePath::refreshCtrlPoints(), PatternPieceTool::RefreshDataInFile(), VToolCut::RefreshGeometry(), DoubleLinePointTool::RefreshGeometry(), VToolLinePoint::RefreshGeometry(), VToolInternalPath::RefreshGeometry(), PatternPieceTool::RefreshGeometry(), VToolCubicBezier::RefreshGeometry(), VToolCubicBezierPath::RefreshGeometry(), VToolArc::RemoveReferens(), VToolArcWithLength::RemoveReferens(), VToolCubicBezier::RemoveReferens(), VToolCubicBezierPath::RemoveReferens(), VToolEllipticalArc::RemoveReferens(), VToolSpline::RemoveReferens(), VToolSplinePath::RemoveReferens(), PatternPieceTool::renamePiece(), PatternPieceTool::ResetChildren(), VDrawTool::SaveDialogChange(), PatternPieceTool::SaveDialogChange(), PatternPieceTool::SaveMoveGrainline(), PatternPieceTool::SaveMovePattern(), PatternPieceTool::saveMovePiece(), VDrawTool::SaveOption(), VDrawTool::SaveOptions(), PatternPieceTool::savePieceRotation(), PatternPieceTool::SaveResizeGrainline(), PatternPieceTool::SaveResizePattern(), PatternPieceTool::saveResizePiece(), PatternPieceTool::SaveRotateGrainline(), PatternPieceTool::SaveRotationPattern(), VToolCubicBezier::SecondPointName(), VToolLinePoint::SetAngle(), VToolArc::setArc(), VToolPointFromArcAndTangent::SetArcId(), VToolPointOfContact::setArcRadius(), VToolTriangle::SetAxisP1Id(), VToolTriangle::SetAxisP2Id(), VToolMirrorByAxis::setAxisType(), VToolTrueDarts::SetBaseLineP1Id(), VToolTrueDarts::SetBaseLineP2Id(), VToolLinePoint::SetBasePointId(), VToolBasePoint::SetBasePointPos(), VToolArc::setCenter(), VToolArcWithLength::setCenter(), VToolEllipticalArc::setCenter(), VToolPointOfContact::setCenter(), IntersectCircleTangentTool::SetCircleCenterId(), IntersectCircleTangentTool::SetCircleRadius(), IntersectCirclesTool::setCirclesCrossPoint(), IntersectCircleTangentTool::setCirclesCrossPoint(), VToolPointFromArcAndTangent::setCirclesCrossPoint(), VToolPointOfIntersectionArcs::setCirclesCrossPoint(), VToolCut::setCurveCutId(), VToolCurveIntersectAxis::setCurveId(), VToolTrueDarts::SetDartP1Id(), VToolTrueDarts::SetDartP2Id(), VToolTrueDarts::SetDartP3Id(), PatternPieceTool::SetDialog(), VToolArc::setDialog(), VToolArcWithLength::setDialog(), VToolCubicBezier::setDialog(), VToolCubicBezierPath::setDialog(), VToolEllipticalArc::setDialog(), VToolSpline::setDialog(), VToolSplinePath::setDialog(), IntersectCirclesTool::setDialog(), IntersectCircleTangentTool::setDialog(), PointIntersectXYTool::setDialog(), VToolCutArc::setDialog(), VToolCutSpline::setDialog(), VToolCutSplinePath::setDialog(), VToolAlongLine::setDialog(), VToolBisector::setDialog(), VToolCurveIntersectAxis::setDialog(), VToolEndLine::setDialog(), VToolHeight::setDialog(), VToolLineIntersectAxis::setDialog(), VToolNormal::setDialog(), VToolShoulderPoint::setDialog(), VToolBasePoint::setDialog(), VToolLineIntersect::setDialog(), VToolPointFromArcAndTangent::setDialog(), VToolPointOfContact::setDialog(), VToolPointOfIntersectionArcs::setDialog(), VToolPointOfIntersectionCurves::setDialog(), VToolTriangle::setDialog(), VToolPointOfIntersectionArcs::SetFirstArcId(), IntersectCirclesTool::SetFirstCircleCenterId(), IntersectCirclesTool::SetFirstCircleRadius(), VToolPointOfIntersectionCurves::SetFirstCurveId(), VToolMirrorByLine::setFirstLinePointId(), DoubleLinePointTool::setFirstPointId(), VToolBisector::SetFirstPointId(), VToolLineIntersectAxis::SetFirstPointId(), VToolPointOfContact::SetFirstPointId(), VToolTriangle::SetFirstPointId(), VToolCut::SetFormula(), VToolMove::SetFormulaAngle(), VToolRotation::SetFormulaAngle(), VToolCurveIntersectAxis::SetFormulaAngle(), VToolEndLine::SetFormulaAngle(), VToolLineIntersectAxis::SetFormulaAngle(), VToolArc::SetFormulaF1(), VToolArcWithLength::SetFormulaF1(), VToolEllipticalArc::SetFormulaF1(), VToolArc::SetFormulaF2(), VToolEllipticalArc::SetFormulaF2(), VToolMove::SetFormulaLength(), VToolArcWithLength::SetFormulaLength(), VToolLinePoint::SetFormulaLength(), VToolArc::SetFormulaRadius(), VToolArcWithLength::SetFormulaRadius(), VToolEllipticalArc::SetFormulaRadius1(), VToolEllipticalArc::SetFormulaRadius2(), VToolMove::setFormulaRotation(), VToolEllipticalArc::SetFormulaRotationAngle(), VToolPointOfIntersectionCurves::SetHCrossPoint(), VAbstractSpline::setLineColor(), DoubleLinePointTool::setLineColor(), VToolLinePoint::setLineColor(), VDrawTool::setLineType(), VAbstractSpline::setLineWeight(), VDrawTool::setLineWeight(), VToolSinglePoint::setName(), VToolMirrorByAxis::setOriginPointId(), VToolMove::setOriginPointId(), VToolRotation::setOriginPointId(), VToolLineIntersect::SetP1Line1(), VToolLineIntersect::SetP1Line2(), VToolHeight::SetP1LineId(), VToolShoulderPoint::SetP2Line(), VToolLineIntersect::SetP2Line1(), VToolLineIntersect::SetP2Line2(), VToolHeight::SetP2LineId(), VAbstractSpline::SetPenStyle(), VToolSinglePoint::setPointNamePosition(), VNodePoint::setPointNamePosition(), VToolSinglePoint::setPointNameVisiblity(), VNodePoint::setPointNameVisiblity(), VToolShoulderPoint::setPShoulder(), VToolPointOfIntersectionArcs::SetSecondArcId(), IntersectCirclesTool::SetSecondCircleCenterId(), IntersectCirclesTool::SetSecondCircleRadius(), VToolPointOfIntersectionCurves::SetSecondCurveId(), VToolMirrorByLine::setSecondLinePointId(), DoubleLinePointTool::setSecondPointId(), VToolAlongLine::SetSecondPointId(), VToolLineIntersectAxis::SetSecondPointId(), VToolNormal::SetSecondPointId(), VToolPointOfContact::SetSecondPointId(), VToolTriangle::SetSecondPointId(), VToolCubicBezier::setSpline(), VToolSpline::setSpline(), VToolCubicBezierPath::setSplinePath(), VToolSplinePath::setSplinePath(), VAbstractOperation::setSuffix(), IntersectCircleTangentTool::SetTangentPointId(), VToolPointFromArcAndTangent::SetTangentPointId(), VToolBisector::SetThirdPointId(), VToolPointOfIntersectionCurves::SetVCrossPoint(), VToolArc::SetVisualization(), VToolArcWithLength::SetVisualization(), VToolCubicBezier::SetVisualization(), VToolCubicBezierPath::SetVisualization(), VToolEllipticalArc::SetVisualization(), VToolSpline::SetVisualization(), VToolSplinePath::SetVisualization(), VAbstractSpline::shape(), VToolCubicBezier::ThirdPointName(), PatternPieceTool::toggleFlipping(), PatternPieceTool::toggleGrainline(), PatternPieceTool::toggleInLayout(), PatternPieceTool::togglePatternLabel(), PatternPieceTool::togglePieceLabel(), PatternPieceTool::togglePieceLock(), PatternPieceTool::toggleSeamAllowance(), PatternPieceTool::toggleSeamLine(), PatternPieceTool::UpdateExcludeState(), PatternPieceTool::UpdateGrainline(), PatternPieceTool::UpdatePatternLabel(), PatternPieceTool::UpdatePieceLabel(), VAbstractOperation::updatePointNamePosition(), VToolDoublePoint::updatePointNamePosition(), VToolSinglePoint::updatePointNamePosition(), VAbstractOperation::updatePointNameVisibility(), VToolDoublePoint::updatePointNameVisibility(), and VToolSinglePoint::updatePointNameVisibility().

◆ m_suppressContextMenu

bool VAbstractTool::m_suppressContextMenu = false
static

◆ selectionType

◆ vis

QPointer<Visualization> VAbstractTool::vis
protected

Definition at line 149 of file vabstracttool.h.

Referenced by AddVisualization(), VToolLine::hoverLeaveEvent(), VToolMirrorByAxis::SetVisualization(), VToolMirrorByLine::SetVisualization(), VToolMove::SetVisualization(), VToolRotation::SetVisualization(), VToolArc::SetVisualization(), VToolArcWithLength::SetVisualization(), VToolCubicBezier::SetVisualization(), VToolCubicBezierPath::SetVisualization(), VToolEllipticalArc::SetVisualization(), VToolSpline::SetVisualization(), VToolSplinePath::SetVisualization(), VToolTrueDarts::SetVisualization(), IntersectCirclesTool::SetVisualization(), IntersectCircleTangentTool::SetVisualization(), PointIntersectXYTool::SetVisualization(), VToolCutArc::SetVisualization(), VToolCutSpline::SetVisualization(), VToolCutSplinePath::SetVisualization(), VToolAlongLine::SetVisualization(), VToolBisector::SetVisualization(), VToolCurveIntersectAxis::SetVisualization(), VToolEndLine::SetVisualization(), VToolHeight::SetVisualization(), VToolLineIntersectAxis::SetVisualization(), VToolNormal::SetVisualization(), VToolShoulderPoint::SetVisualization(), VToolLineIntersect::SetVisualization(), VToolPointFromArcAndTangent::SetVisualization(), VToolPointOfContact::SetVisualization(), VToolPointOfIntersectionArcs::SetVisualization(), VToolPointOfIntersectionCurves::SetVisualization(), VToolTriangle::SetVisualization(), VToolLine::SetVisualization(), VAbstractOperation::ShowToolVisualization(), VAbstractSpline::ShowToolVisualization(), VToolCut::ShowToolVisualization(), VAbstractPoint::ShowToolVisualization(), VToolLine::ShowVisualization(), and ~VAbstractTool().


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