LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Vertex Class Referencefinal

The Vertex class. More...

#include <vertex.h>

+ Inheritance diagram for Vertex:
+ Collaboration diagram for Vertex:

Public Member Functions

 Vertex () noexcept
 
 Vertex (const Vertex &other) noexcept
 
 Vertex (const Point &pos, const Angle &angle=Angle::deg0()) noexcept
 
 Vertex (const SExpression &node)
 
 ~Vertex () noexcept
 
const PointgetPos () const noexcept
 
const AnglegetAngle () const noexcept
 
void setPos (const Point &pos) noexcept
 
void setAngle (const Angle &angle) noexcept
 
void serialize (SExpression &root) const override
 Serialize the object into an existing S-Expression node. More...
 
bool operator== (const Vertex &rhs) const noexcept
 
bool operator!= (const Vertex &rhs) const noexcept
 
Vertexoperator= (const Vertex &rhs) noexcept
 
- Public Member Functions inherited from SerializableObject
 SerializableObject () noexcept
 
virtual ~SerializableObject () noexcept
 
SExpression serializeToDomElement (const QString &name) const
 Serialize the object to a new S-Expression node. More...
 

Private Attributes

Point mPos
 
Angle mAngle
 

Additional Inherited Members

- Static Public Member Functions inherited from SerializableObject
template<typename T >
static void serializeObjectContainer (SExpression &root, const T &container, const QString &itemName)
 
template<typename T >
static void serializePointerContainer (SExpression &root, const T &container, const QString &itemName)
 
template<typename T >
static void serializePointerContainerUuidSorted (SExpression &root, const T &container, const QString &itemName)
 

Detailed Description

The Vertex class.

Constructor & Destructor Documentation

Vertex ( )
inlinenoexcept
Vertex ( const Vertex other)
inlinenoexcept
Vertex ( const Point pos,
const Angle angle = Angle::deg0() 
)
inlineexplicitnoexcept
Vertex ( const SExpression node)
explicit

+ Here is the call graph for this function:

~Vertex ( )
inlinenoexcept

Member Function Documentation

const Point& getPos ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

const Angle& getAngle ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

void setPos ( const Point pos)
inlinenoexcept
void setAngle ( const Angle angle)
inlinenoexcept
void serialize ( SExpression root) const
overridevirtual

Serialize the object into an existing S-Expression node.

This method inserts/appends all attributes and childs of the object to an existing S-Expression node. The content which already exists in the given S-Expression node will not be removed.

Note
The generated S-Expression node has always the format of the application's major version (it's not possible to generate DOMs of older versions).
Parameters
rootThe target DOM root node
Exceptions
ExceptionThis method throws an exception if an error occurs.

Implements SerializableObject.

+ Here is the call graph for this function:

bool operator== ( const Vertex rhs) const
noexcept
bool operator!= ( const Vertex rhs) const
inlinenoexcept
Vertex & operator= ( const Vertex rhs)
noexcept

Member Data Documentation

Point mPos
private
Angle mAngle
private

angle of the line between this vertex and the following vertex


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