29#ifndef NOMLIB_GRAPHICS_SHAPES_SHAPE_HPP
30#define NOMLIB_GRAPHICS_SHAPES_SHAPE_HPP
32#include "nomlib/config.hpp"
33#include "nomlib/math/Transformable.hpp"
34#include "nomlib/math/Color4.hpp"
38class Shape:
public Transformable
41 typedef Shape self_type;
Run-time type information (RTTI) container class.
Color4i outline_color_
RGBA color used in rendering the outline of a shape.
const Color4i & outline_color(void) const
Obtain the outline color used in rendering a shape.
ObjectTypeInfo type() const override
Re-implements the IObject::type method.
Shape(const Shape ©)
Copy constructor.
virtual Shape * clone() const =0
Copy assignment operator.
void set_fill_color(const Color4i &color)
Set the inside (fill) color of the shape to be rendered.
Color4i fill_color_
RGBA color used in rendering the inside (fill) of a shape.
const Color4i & fill_color(void) const
Obtain the inside fill color used in rendering a shape.
void set_outline_color(const Color4i &color)
Set the outline color of the shape to be rendered.
virtual ~Shape(void)
Destructor.