OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::FillPainter2D Class Reference

#include "FillPainter2D.h"

Inheritance diagram for ot::FillPainter2D:
ot::Painter2D ot::Serializable

Public Member Functions

 FillPainter2D ()
 
 FillPainter2D (ot::DefaultColor _color)
 
 FillPainter2D (const ot::Color &_color)
 
virtual ~FillPainter2D ()
 
virtual void addToJsonObject (JsonValue &_object, JsonAllocator &_allocator) const override
 Add the object contents to the provided JSON object.
 
virtual void setFromJsonObject (const ConstJsonObject &_object) override
 Will set the object contents from the provided JSON object.
 
virtual std::string getFactoryKey (void) const override
 Returns the key that is used to create an instance of this class in the simple factory.
 
virtual std::string generateQss (void) const override
 
virtual ot::Color getDefaultColor (void) const override
 
virtual bool isEqualTo (const Painter2D *_other) const override
 Returns true if this painter is equal to the other painter.
 
void setColor (const ot::Color &_color)
 
const ot::ColorgetColor (void) const
 
- Public Member Functions inherited from ot::Painter2D
 Painter2D ()
 
virtual ~Painter2D ()
 
Painter2DcreateCopy (void) const
 Creates a copy of this painter.
 
- Public Member Functions inherited from ot::Serializable
 Serializable ()
 
virtual ~Serializable ()
 
virtual void addToJsonObject (ot::JsonValue &_object, ot::JsonAllocator &_allocator) const =0
 Add the object contents to the provided JSON object.
 

Constructor & Destructor Documentation

◆ FillPainter2D() [1/3]

ot::FillPainter2D::FillPainter2D ( )

◆ FillPainter2D() [2/3]

ot::FillPainter2D::FillPainter2D ( ot::DefaultColor _color)

◆ FillPainter2D() [3/3]

ot::FillPainter2D::FillPainter2D ( const ot::Color & _color)

◆ ~FillPainter2D()

ot::FillPainter2D::~FillPainter2D ( )
virtual

Member Function Documentation

◆ addToJsonObject()

void ot::FillPainter2D::addToJsonObject ( JsonValue & _object,
JsonAllocator & _allocator ) const
overridevirtual

Add the object contents to the provided JSON object.

Parameters
_documentThe JSON document (used to get the allocator)
_objectThe JSON object to add the contents to

Reimplemented from ot::Painter2D.

◆ generateQss()

std::string ot::FillPainter2D::generateQss ( void ) const
overridevirtual

Implements ot::Painter2D.

◆ getColor()

const ot::Color & ot::FillPainter2D::getColor ( void ) const
inline

◆ getDefaultColor()

ot::Color ot::FillPainter2D::getDefaultColor ( void ) const
overridevirtual

Implements ot::Painter2D.

◆ getFactoryKey()

virtual std::string ot::FillPainter2D::getFactoryKey ( void ) const
inlineoverridevirtual

Returns the key that is used to create an instance of this class in the simple factory.

Implements ot::Painter2D.

◆ isEqualTo()

bool ot::FillPainter2D::isEqualTo ( const Painter2D * _other) const
overridevirtual

Returns true if this painter is equal to the other painter.

Implements ot::Painter2D.

◆ setColor()

void ot::FillPainter2D::setColor ( const ot::Color & _color)
inline

◆ setFromJsonObject()

void ot::FillPainter2D::setFromJsonObject ( const ConstJsonObject & _object)
overridevirtual

Will set the object contents from the provided JSON object.

Parameters
_objectThe JSON object containing the information
Exceptions
Willthrow an exception if the provided object is not valid (members missing or invalid types)

Reimplemented from ot::Painter2D.


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