Seamly2D
Code documentation
VNodeSplinePath Class Reference

The VNodeSplinePath class spline path detail node. More...

#include <vnodesplinepath.h>

Inheritance diagram for VNodeSplinePath:
Collaboration diagram for VNodeSplinePath:

Public Slots

virtual void FullUpdateFromFile () Q_DECL_OVERRIDE
 
virtual void AllowHover (bool enabled) Q_DECL_OVERRIDE
 
virtual void AllowSelecting (bool enabled) Q_DECL_OVERRIDE
 
- 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

virtual QString getTagName () const Q_DECL_OVERRIDE
 
- Public Member Functions inherited from VAbstractNode
 VAbstractNode (VAbstractPattern *doc, VContainer *data, const quint32 &id, const quint32 &idNode, const QString &blockName=QString(), const quint32 &idTool=0, QObject *parent=nullptr)
 VAbstractNode constructor. More...
 
virtual ~VAbstractNode () Q_DECL_EQ_DEFAULT
 
virtual void ShowVisualization (bool show) Q_DECL_OVERRIDE
 
virtual void incrementReferens () Q_DECL_OVERRIDE
 incrementReferens increment referens. More...
 
virtual void decrementReferens () Q_DECL_OVERRIDE
 decrementReferens decrement reference for all parent objects. More...
 
ParentType GetParentType () const
 
void SetParentType (const ParentType &value)
 
virtual void GroupVisibility (quint32 object, bool visible) Q_DECL_OVERRIDE
 
bool IsExluded () const
 
void SetExluded (bool exluded)
 
- 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 VContainergetData () const
 getData return pointer to data container. More...
 
QMap< QString, quint32 > PointsList () const
 
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...
 

Static Public Member Functions

static void Create (VAbstractPattern *doc, VContainer *data, quint32 id, quint32 idSpline, const Document &parse, const Source &typeCreation, const QString &blockName=QString(), const quint32 &idTool=0)
 Create help create tool. More...
 
- 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

static const QString ToolType = QStringLiteral("modelingPath")
 
- Static Public Attributes inherited from VAbstractNode
static const QString AttrIdTool = QStringLiteral("idTool")
 
- Static Public Attributes inherited from VAbstractTool
static bool m_suppressContextMenu = false
 
static const QString AttrInUse = QStringLiteral("inUse")
 

Protected Member Functions

virtual void AddToFile () Q_DECL_OVERRIDE
 AddToFile add tag with Information about tool into file. More...
 
virtual void ShowNode () Q_DECL_OVERRIDE
 
virtual void HideNode () Q_DECL_OVERRIDE
 
- Protected Member Functions inherited from VAbstractNode
void AddToModeling (const QDomElement &domElement)
 AddToModeling add tag to modeling tag current pattern peace. More...
 
virtual void ToolCreation (const Source &typeCreation) Q_DECL_OVERRIDE
 
virtual void SetVisualization () Q_DECL_OVERRIDE
 
- Protected Member Functions inherited from VAbstractTool
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 ()
 

Private Member Functions

 VNodeSplinePath (VAbstractPattern *doc, VContainer *data, quint32 id, quint32 idSpline, const Source &typeCreation, const QString &blockName=QString(), const quint32 &idTool=0, QObject *qoParent=nullptr)
 VNodeSplinePath constructor. More...
 

Additional Inherited Members

- 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 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< VPieceNodePrepareNodes (const VPiecePath &path, VMainGraphicsScene *scene, VAbstractPattern *doc, VContainer *data)
 
static quint32 PrepareNode (const VPieceNode &node, VMainGraphicsScene *scene, VAbstractPattern *doc, VContainer *data)
 
- Protected Attributes inherited from VAbstractNode
ParentType parentType
 
quint32 idNode
 idNodenode id. More...
 
quint32 idTool
 idTool id tool. More...
 
QString m_blockName
 
bool m_exluded
 
- Protected Attributes inherited from VAbstractTool
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 VNodeSplinePath class spline path detail node.

Definition at line 69 of file vnodesplinepath.h.

Constructor & Destructor Documentation

◆ VNodeSplinePath()

VNodeSplinePath::VNodeSplinePath ( VAbstractPattern doc,
VContainer data,
quint32  id,
quint32  idSpline,
const Source typeCreation,
const QString &  blockName = QString(),
const quint32 &  idTool = 0,
QObject *  qoParent = nullptr 
)
private

VNodeSplinePath constructor.

Parameters
docdom document container.
datacontainer with variables.
idobject id in container.
idSplineobject id in containerSpline.
typeCreationway we create this tool.
idTooltool id.
qoParentQObject parent.

Definition at line 78 of file vnodesplinepath.cpp.

References VAbstractNode::ToolCreation().

Referenced by Create().

Member Function Documentation

◆ AddToFile()

void VNodeSplinePath::AddToFile ( )
protectedvirtual

◆ AllowHover

void VNodeSplinePath::AllowHover ( bool  enabled)
virtualslot

Definition at line 133 of file vnodesplinepath.cpp.

◆ AllowSelecting

void VNodeSplinePath::AllowSelecting ( bool  enabled)
virtualslot

Definition at line 140 of file vnodesplinepath.cpp.

◆ Create()

void VNodeSplinePath::Create ( VAbstractPattern doc,
VContainer data,
quint32  id,
quint32  idSpline,
const Document parse,
const Source typeCreation,
const QString &  blockName = QString(),
const quint32 &  idTool = 0 
)
static

Create help create tool.

Parameters
docdom document container.
datacontainer with variables.
idobject id in container.
idSplineobject id in containerSpline.
parseparser file mode.
typeCreationway we create this tool.
idTooltool id.

Definition at line 97 of file vnodesplinepath.cpp.

References VAbstractTool::AddRecord(), VAbstractPattern::AddTool(), VAbstractPattern::AddToolOnRemove(), VDataTool::data, VAbstractTool::doc, FullParse, VAbstractPattern::getTool(), VAbstractNode::idTool, NodeSplinePath, NULL_ID, SCASSERT, splPath, VAbstractPattern::UpdateToolData(), and VNodeSplinePath().

Referenced by QT_WARNING_POP::AddNodeSplinePath(), VPattern::ParseNodeSplinePath(), and VAbstractTool::PrepareNode().

◆ FullUpdateFromFile

virtual void VNodeSplinePath::FullUpdateFromFile ( )
inlinevirtualslot

Definition at line 80 of file vnodesplinepath.h.

◆ getTagName()

QString VNodeSplinePath::getTagName ( ) const
virtual

Implements VAbstractTool.

Definition at line 127 of file vnodesplinepath.cpp.

References VAbstractPattern::TagSpline.

Referenced by AddToFile().

◆ HideNode()

virtual void VNodeSplinePath::HideNode ( )
inlineprotectedvirtual

Implements VAbstractNode.

Definition at line 86 of file vnodesplinepath.h.

◆ ShowNode()

virtual void VNodeSplinePath::ShowNode ( )
inlineprotectedvirtual

Implements VAbstractNode.

Definition at line 85 of file vnodesplinepath.h.

Member Data Documentation

◆ ToolType

const QString VNodeSplinePath::ToolType = QStringLiteral("modelingPath")
static

Definition at line 77 of file vnodesplinepath.h.

Referenced by AddToFile(), and VPattern::ParseSplineElement().


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