Seamly2D
Code documentation
VDataTool Class Referenceabstract

The VDataTool class need for getting access to data container of tool. More...

#include <vdatatool.h>

Inheritance diagram for VDataTool:
Collaboration diagram for VDataTool:

Public Member Functions

 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
 

Protected Attributes

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 VDataTool class need for getting access to data container of tool.

Definition at line 70 of file vdatatool.h.

Constructor & Destructor Documentation

◆ VDataTool()

VDataTool::VDataTool ( VContainer data,
QObject *  parent = nullptr 
)
explicit

VDataTool constructor.

Parameters
datacontainer with variables
parentparent object

Definition at line 64 of file vdatatool.cpp.

References SCASSERT.

◆ ~VDataTool()

virtual VDataTool::~VDataTool ( )
virtual

Member Function Documentation

◆ decrementReferens()

void VDataTool::decrementReferens ( )
virtual

◆ getData()

VContainer VDataTool::getData ( ) const
inline

getData return data container.

Returns
container.

Definition at line 97 of file vdatatool.h.

Referenced by VPattern::setCurrentData().

◆ GroupVisibility()

virtual void VDataTool::GroupVisibility ( quint32  object,
bool  visible 
)
pure virtual

◆ incrementReferens()

void VDataTool::incrementReferens ( )
inlinevirtual

incrementReferens increment referens.

Reimplemented in UnionTool, VToolInternalPath, and VAbstractNode.

Definition at line 126 of file vdatatool.h.

References _referens.

Referenced by VAbstractNode::incrementReferens(), VToolInternalPath::incrementReferens(), UnionTool::incrementReferens(), and VPattern::IncrementReferens().

◆ referens()

quint32 VDataTool::referens ( ) const
inlinevirtual

referens return count of referens.

Returns
count count of referens.

Definition at line 117 of file vdatatool.h.

References _referens.

◆ setData()

void VDataTool::setData ( const VContainer value)
inline

setData set data container.

Parameters
valuecontainer.

Definition at line 107 of file vdatatool.h.

References data.

Member Data Documentation

◆ _referens

◆ data

VContainer VDataTool::data
protected

data container with data

Definition at line 84 of file vdatatool.h.

Referenced by VDrawTool::addDependence(), PatternPieceTool::AddGrainline(), PatternPieceTool::AddPatternInfo(), PatternPieceTool::AddPatternPieceData(), VToolBasePoint::AddToFile(), VDrawTool::AddToFile(), AnchorPointTool::AddToFile(), VNodePoint::AddToFile(), VToolInternalPath::AddToFile(), PatternPieceTool::AddToFile(), UnionTool::AddToFile(), VToolPointOfContact::ArcCenterPointName(), VToolPointFromArcAndTangent::ArcName(), VToolTriangle::AxisP1Name(), VToolTriangle::AxisP2Name(), VToolTrueDarts::BaseLineP1Name(), VToolTrueDarts::BaseLineP2Name(), VToolLinePoint::BasePointName(), VToolArc::CenterPointName(), VToolArcWithLength::CenterPointName(), VToolEllipticalArc::CenterPointName(), VAbstractTool::CheckFormula(), IntersectCircleTangentTool::CircleCenterPointName(), VAbstractOperation::complexCurveToolTip(), VAbstractOperation::complexPointToolTip(), VToolDoublePoint::complexToolTip(), VDrawTool::ContextMenu(), VNodePoint::contextMenuEvent(), PatternPieceTool::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::createArc(), VToolRotation::createArc(), VToolMove::createArc(), VAbstractMirror::createCurve(), VToolRotation::createCurve(), VToolMove::createCurve(), VAbstractMirror::createCurveWithSegments(), VToolRotation::createCurveWithSegments(), VToolMove::createCurveWithSegments(), VAbstractMirror::createDestination(), VAbstractMirror::createItem(), VToolRotation::createItem(), VToolMove::createItem(), VAbstractTool::CreateNode(), VAbstractMirror::createPoint(), VToolRotation::createPoint(), VToolMove::createPoint(), VToolCut::CurveName(), VToolCurveIntersectAxis::CurveName(), VToolTrueDarts::DartP1Name(), VToolTrueDarts::DartP2Name(), VToolTrueDarts::DartP3Name(), VToolInternalPath::DecrementNodes(), VAbstractNode::decrementReferens(), VToolInternalPath::decrementReferens(), PatternPieceTool::deleteTool(), DoubleLinePointTool::DoubleLinePointTool(), PatternPieceTool::EnableToolMove(), PatternPieceTool::FindGrainlineGeometry(), PatternPieceTool::FindLabelGeometry(), VToolPointOfIntersectionArcs::FirstArcName(), IntersectCirclesTool::FirstCircleCenterPointName(), VToolPointOfIntersectionCurves::FirstCurveName(), VToolLineIntersectAxis::FirstLinePoint(), VToolMirrorByLine::firstLinePointName(), VToolHeight::FirstLinePointName(), VToolCubicBezier::FirstPointName(), PointIntersectXYTool::firstPointName(), VToolBisector::FirstPointName(), VToolPointOfContact::FirstPointName(), VToolTriangle::FirstPointName(), VToolLine::FirstPointName(), VToolCubicBezier::ForthPointName(), VAbstractOperation::FullUpdateFromFile(), VToolDoublePoint::FullUpdateFromFile(), VToolBasePoint::FullUpdateFromFile(), VToolSinglePoint::FullUpdateFromFile(), VNodePoint::FullUpdateFromFile(), VToolArc::getArc(), VToolBasePoint::GetBasePointPos(), VToolArc::getCenter(), VToolArcWithLength::getCenter(), VToolEllipticalArc::getCenter(), VAbstractTool::getData(), VToolArc::GetFormulaF1(), VToolArcWithLength::GetFormulaF1(), VToolEllipticalArc::GetFormulaF1(), VToolArc::GetFormulaF2(), VToolEllipticalArc::GetFormulaF2(), VToolArcWithLength::GetFormulaLength(), VToolArc::GetFormulaRadius(), VToolArcWithLength::GetFormulaRadius(), VToolEllipticalArc::GetFormulaRadius1(), VToolEllipticalArc::GetFormulaRadius2(), VToolEllipticalArc::GetFormulaRotationAngle(), VAbstractSpline::getLineColor(), VAbstractSpline::getLineWeight(), VToolMirrorByAxis::getOriginPointName(), VToolMove::getOriginPointName(), VToolRotation::getOriginPointName(), VAbstractSpline::GetPenStyle(), VToolCubicBezier::getSpline(), VToolSpline::getSpline(), VToolCubicBezierPath::getSplinePath(), VToolSplinePath::getSplinePath(), VNodePoint::hoverEnterEvent(), VToolSplinePath::hoverEnterEvent(), VToolInternalPath::IncrementNodes(), VAbstractNode::incrementReferens(), VToolInternalPath::incrementReferens(), VToolCurveIntersectAxis::InitArc(), VAbstractOperation::InitCurve(), VAbstractSpline::InitDefShape(), PatternPieceTool::initializeNode(), PatternPieceTool::initializeNodes(), VAbstractOperation::InitOperatedObjects(), PatternPieceTool::insertNodes(), VToolSpline::IsMovable(), VToolSplinePath::IsMovable(), VAbstractOperation::isPointNameVisible(), VToolDoublePoint::isPointNameVisible(), VToolSinglePoint::isPointNameVisible(), PatternPieceTool::itemChange(), PatternPieceTool::keyReleaseEvent(), VToolLineIntersect::Line1P1Name(), VToolLineIntersect::Line1P2Name(), VToolLineIntersect::Line2P1Name(), VToolLineIntersect::Line2P2Name(), VAbstractSpline::makeToolTip(), VToolArc::makeToolTip(), VToolArcWithLength::makeToolTip(), VToolEllipticalArc::makeToolTip(), VToolCutArc::makeToolTip(), VToolCutSpline::makeToolTip(), VToolCutSplinePath::makeToolTip(), DoubleLinePointTool::makeToolTip(), VToolAlongLine::makeToolTip(), VToolHeight::makeToolTip(), VToolLineIntersectAxis::makeToolTip(), VToolLinePoint::makeToolTip(), VToolShoulderPoint::makeToolTip(), VToolBasePoint::makeToolTip(), VToolLineIntersect::makeToolTip(), VToolPointOfContact::makeToolTip(), VToolLine::makeToolTip(), VToolSpline::mouseMoveEvent(), VToolSplinePath::mouseMoveEvent(), VToolSplinePath::mousePressEvent(), VDrawTool::ObjectName(), VAbstractSpline::paint(), PatternPieceTool::paint(), PatternPieceTool::PatternPieceTool(), PatternPieceTool::pieceLockedChanged(), DoubleLinePointTool::point1Name(), DoubleLinePointTool::point2Name(), VAbstractTool::PointsList(), PatternPieceTool::PrepareLabelData(), VAbstractTool::PrepareNode(), VAbstractTool::PrepareNodes(), VToolSpline::refreshCtrlPoints(), VToolSplinePath::refreshCtrlPoints(), PatternPieceTool::RefreshDataInFile(), VToolCut::RefreshGeometry(), DoubleLinePointTool::RefreshGeometry(), VToolLinePoint::RefreshGeometry(), VToolLine::RefreshGeometry(), VToolInternalPath::RefreshGeometry(), PatternPieceTool::RefreshGeometry(), VToolCubicBezier::RefreshGeometry(), VToolCubicBezierPath::RefreshGeometry(), 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(), PatternPieceTool::ResetChildren(), PatternPieceTool::SaveDialogChange(), PatternPieceTool::SaveMoveGrainline(), PatternPieceTool::SaveMovePattern(), PatternPieceTool::saveMovePiece(), VToolDoublePoint::SaveOptions(), PatternPieceTool::savePieceRotation(), PatternPieceTool::SaveResizeGrainline(), PatternPieceTool::SaveResizePattern(), PatternPieceTool::saveResizePiece(), PatternPieceTool::SaveRotateGrainline(), PatternPieceTool::SaveRotationPattern(), VToolPointOfIntersectionArcs::SecondArcName(), IntersectCirclesTool::SecondCircleCenterPointName(), VToolPointOfIntersectionCurves::SecondCurveName(), VToolLineIntersectAxis::SecondLinePoint(), VToolMirrorByLine::secondLinePointName(), VToolHeight::SecondLinePointName(), VToolCubicBezier::SecondPointName(), PointIntersectXYTool::secondPointName(), VToolAlongLine::SecondPointName(), VToolNormal::SecondPointName(), VToolShoulderPoint::SecondPointName(), VToolPointOfContact::SecondPointName(), VToolTriangle::SecondPointName(), VToolLine::SecondPointName(), VToolLinePoint::SetAngle(), VToolArc::setArc(), VToolPointFromArcAndTangent::SetArcId(), VToolPointOfContact::setArcRadius(), VToolTriangle::SetAxisP1Id(), VToolTriangle::SetAxisP2Id(), 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(), setData(), PatternPieceTool::SetDialog(), VToolArc::setDialog(), VToolArcWithLength::setDialog(), VToolCubicBezier::setDialog(), VToolCubicBezierPath::setDialog(), VToolEllipticalArc::setDialog(), VToolSpline::setDialog(), VToolSplinePath::setDialog(), VToolTrueDarts::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(), DoubleLinePointTool::setFirstPointId(), VToolBisector::SetFirstPointId(), VToolLineIntersectAxis::SetFirstPointId(), VToolPointOfContact::SetFirstPointId(), VToolTriangle::SetFirstPointId(), VToolCut::SetFormula(), VToolCurveIntersectAxis::SetFormulaAngle(), VToolEndLine::SetFormulaAngle(), VToolLineIntersectAxis::SetFormulaAngle(), VToolArc::SetFormulaF1(), VToolArcWithLength::SetFormulaF1(), VToolEllipticalArc::SetFormulaF1(), VToolArc::SetFormulaF2(), VToolEllipticalArc::SetFormulaF2(), VToolArcWithLength::SetFormulaLength(), VToolLinePoint::SetFormulaLength(), VToolArc::SetFormulaRadius(), VToolArcWithLength::SetFormulaRadius(), VToolEllipticalArc::SetFormulaRadius1(), VToolEllipticalArc::SetFormulaRadius2(), VToolEllipticalArc::SetFormulaRotationAngle(), VToolPointOfIntersectionCurves::SetHCrossPoint(), VAbstractSpline::setLineColor(), DoubleLinePointTool::setLineColor(), VToolLinePoint::setLineColor(), VDrawTool::setLineType(), VAbstractSpline::setLineWeight(), VDrawTool::setLineWeight(), VToolMove::setOriginPointId(), VToolRotation::setOriginPointId(), VToolLineIntersect::SetP1Line1(), VToolLineIntersect::SetP1Line2(), VToolHeight::SetP1LineId(), VToolShoulderPoint::SetP2Line(), VToolLineIntersect::SetP2Line1(), VToolLineIntersect::SetP2Line2(), VToolHeight::SetP2LineId(), VAbstractSpline::SetPenStyle(), VAbstractPoint::SetPointName(), VAbstractOperation::setPointNamePosition(), VToolDoublePoint::setPointNamePosition(), VToolSinglePoint::setPointNamePosition(), VNodePoint::setPointNamePosition(), VAbstractOperation::setPointNameVisiblity(), VToolDoublePoint::setPointNameVisiblity(), VToolSinglePoint::setPointNameVisiblity(), VNodePoint::setPointNameVisiblity(), VToolShoulderPoint::setPShoulder(), VToolPointOfIntersectionArcs::SetSecondArcId(), IntersectCirclesTool::SetSecondCircleCenterId(), IntersectCirclesTool::SetSecondCircleRadius(), VToolPointOfIntersectionCurves::SetSecondCurveId(), DoubleLinePointTool::setSecondPointId(), VToolAlongLine::SetSecondPointId(), VToolLineIntersectAxis::SetSecondPointId(), VToolNormal::SetSecondPointId(), VToolPointOfContact::SetSecondPointId(), VToolTriangle::SetSecondPointId(), VToolCubicBezier::setSpline(), VToolSpline::setSpline(), VToolCubicBezierPath::setSplinePath(), VToolSplinePath::setSplinePath(), IntersectCircleTangentTool::SetTangentPointId(), VToolPointFromArcAndTangent::SetTangentPointId(), VToolBisector::SetThirdPointId(), VToolPointOfIntersectionCurves::SetVCrossPoint(), VToolArc::SetVisualization(), VToolArcWithLength::SetVisualization(), VToolCubicBezier::SetVisualization(), VToolCubicBezierPath::SetVisualization(), VToolEllipticalArc::SetVisualization(), VToolSpline::SetVisualization(), VToolSplinePath::SetVisualization(), VToolCutArc::SetVisualization(), VToolCutSpline::SetVisualization(), VToolCutSplinePath::SetVisualization(), VAbstractSpline::shape(), VToolShoulderPoint::ShoulderPointName(), VToolCut::ShowToolVisualization(), IntersectCircleTangentTool::TangentPointName(), VToolPointFromArcAndTangent::TangentPointName(), VToolCubicBezier::ThirdPointName(), VToolBisector::ThirdPointName(), PatternPieceTool::toggleFlipping(), PatternPieceTool::toggleGrainline(), PatternPieceTool::toggleInLayout(), PatternPieceTool::togglePatternLabel(), PatternPieceTool::togglePieceLabel(), PatternPieceTool::togglePieceLock(), PatternPieceTool::toggleSeamAllowance(), PatternPieceTool::toggleSeamLine(), VAbstractMirror::updateArc(), VToolRotation::updateArc(), VToolMove::updateArc(), VAbstractMirror::updateCurve(), VToolRotation::updateCurve(), VToolMove::updateCurve(), VAbstractMirror::updateCurveWithSegments(), VToolRotation::updateCurveWithSegments(), VToolMove::updateCurveWithSegments(), PatternPieceTool::UpdateExcludeState(), PatternPieceTool::UpdateGrainline(), VAbstractMirror::updateItem(), VToolRotation::updateItem(), VToolMove::updateItem(), PatternPieceTool::UpdatePatternLabel(), PatternPieceTool::UpdatePieceLabel(), VAbstractMirror::updatePoint(), VToolRotation::updatePoint(), VToolMove::updatePoint(), VNodePoint::VNodePoint(), VToolDoublePoint::VToolDoublePoint(), VToolInternalPath::VToolInternalPath(), VToolLinePoint::VToolLinePoint(), VToolSinglePoint::VToolSinglePoint(), VToolSpline::VToolSpline(), and VToolSplinePath::VToolSplinePath().


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