Swiftray  1.0
Layer Class Reference

#include <layer.h>

Public Types

enum class  Type { Line , Fill , FillLine , Mixed }
 

Public Member Functions

 Layer ()
 
 Layer (Document *doc)
 
 Layer (Document *doc, const QColor &color, const QString &name)
 
 Layer (Document *doc, int layer_id)
 
 ~Layer ()
 
void addShape (const ShapePtr &shape)
 
QList< ShapePtr > & children ()
 
shared_ptr< Layerclone ()
 
const QColor & color () const
 
Documentdocument ()
 
void flushCache ()
 
bool isLocked () const
 
bool isUseDiode () const
 
bool isVisible () const
 
const QString & name () const
 
int paint (QPainter *painter) const
 
int power () const
 
void removeShape (const ShapePtr &shape)
 
int repeat () const
 
void setColor (const QColor &color)
 
void setDocument (Document *doc)
 
void setLayerCounter (int i)
 
void setLocked (bool isLocked)
 
void setName (const QString &name)
 
void setRepeat (int repeat)
 
void setSpeed (int speed)
 
void setStepHeight (double step_height)
 
void setStrength (int strength)
 
void setTargetHeight (double height)
 
void setType (Type type)
 
void setUseDiode (bool is_diode)
 
void setVisible (bool visible)
 
int speed () const
 
double stepHeight () const
 
double targetHeight () const
 
Type type () const
 

Friends

class DocumentSerializer
 

Member Enumeration Documentation

◆ Type

enum Layer::Type
strong
Enumerator
Line 
Fill 
FillLine 
Mixed 

Constructor & Destructor Documentation

◆ Layer() [1/4]

Layer::Layer ( Document doc,
const QColor &  color,
const QString &  name 
)

Constructors

◆ Layer() [2/4]

Layer::Layer ( Document doc,
int  layer_id 
)

◆ Layer() [3/4]

Layer::Layer ( Document doc)

◆ Layer() [4/4]

Layer::Layer ( )

◆ ~Layer()

Layer::~Layer ( )
default

Member Function Documentation

◆ addShape()

void Layer::addShape ( const ShapePtr shape)

◆ children()

QList< ShapePtr > & Layer::children ( )

◆ clone()

LayerPtr Layer::clone ( )

◆ color()

const QColor & Layer::color ( ) const

Getters

◆ document()

Document & Layer::document ( )

◆ flushCache()

void Layer::flushCache ( )

◆ isLocked()

bool Layer::isLocked ( ) const

◆ isUseDiode()

bool Layer::isUseDiode ( ) const

◆ isVisible()

bool Layer::isVisible ( ) const

◆ name()

const QString & Layer::name ( ) const

◆ paint()

int Layer::paint ( QPainter *  painter) const

◆ power()

int Layer::power ( ) const

◆ removeShape()

void Layer::removeShape ( const ShapePtr shape)

◆ repeat()

int Layer::repeat ( ) const

◆ setColor()

void Layer::setColor ( const QColor &  color)

Setters

◆ setDocument()

void Layer::setDocument ( Document doc)

◆ setLayerCounter()

void Layer::setLayerCounter ( int  i)

◆ setLocked()

void Layer::setLocked ( bool  isLocked)

◆ setName()

void Layer::setName ( const QString &  name)

◆ setRepeat()

void Layer::setRepeat ( int  repeat)

◆ setSpeed()

void Layer::setSpeed ( int  speed)

◆ setStepHeight()

void Layer::setStepHeight ( double  step_height)

◆ setStrength()

void Layer::setStrength ( int  strength)

◆ setTargetHeight()

void Layer::setTargetHeight ( double  height)

◆ setType()

void Layer::setType ( Layer::Type  type)

◆ setUseDiode()

void Layer::setUseDiode ( bool  is_diode)

◆ setVisible()

void Layer::setVisible ( bool  visible)

◆ speed()

int Layer::speed ( ) const

◆ stepHeight()

double Layer::stepHeight ( ) const

◆ targetHeight()

double Layer::targetHeight ( ) const

◆ type()

Layer::Type Layer::type ( ) const

Friends And Related Function Documentation

◆ DocumentSerializer

friend class DocumentSerializer
friend

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