16#define OT_FactoryKey_RadialGradientPainter2D "OT_P2DRGrad"
34 virtual void setFromJsonObject(
const ConstJsonObject& _object)
override;
39 virtual std::string generateQss(
void)
const override;
41 virtual bool isEqualTo(
const Painter2D* _other)
const override;
63 double m_centerRadius;
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
#define OT_FactoryKey_RadialGradientPainter2D
Definition RadialGradientPainter2D.h:16
Definition GradientPainter2D.h:16
Definition Painter2D.h:17
2D Point with double values
Definition Point2D.h:144
Definition RadialGradientPainter2D.h:20
void setCenterPoint(const ot::Point2DD &_center)
Set the center point for the gradient.
Definition RadialGradientPainter2D.h:44
bool isFocalPointSet(void) const
Definition RadialGradientPainter2D.h:59
virtual std::string getFactoryKey(void) const override
Returns the key that is used to create an instance of this class in the simple factory.
Definition RadialGradientPainter2D.h:37
void setCenterRadius(double _r)
Definition RadialGradientPainter2D.h:47
const ot::Point2DD & getFocalPoint(void) const
Definition RadialGradientPainter2D.h:52
void setFocalRadius(double _r)
Set the focal radius Note that the focal point needs to be set.
Definition RadialGradientPainter2D.h:56
double getCenterRadius(void) const
Definition RadialGradientPainter2D.h:48
const ot::Point2DD & getCenterPoint(void) const
Definition RadialGradientPainter2D.h:45
double getFocalRadius(void) const
Definition RadialGradientPainter2D.h:57
rapidjson::Value JsonValue
Writable JSON value.
Definition JSON.h:27
rapidjson::GenericObject< true, rapidjson::GenericValue< rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > > > ConstJsonObject
Read only JSON Object.
Definition JSON.h:35
rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > JsonAllocator
Allocator used for writing to JSON values.
Definition JSON.h:30