SPH
|
#include <RenderContext.h>
Public Member Functions | |
SmoothedRenderContext (Bitmap< Rgba > &bitmap, const LutKernel< 2 > &kernel) | |
virtual void | drawCircle (const Coords center, const float radius) override |
Draws a circle, given its center and a radius. More... | |
![]() | |
AntiAliasedRenderContext (Bitmap< Rgba > &bitmap) | |
![]() | |
virtual void | fill (const Rgba &color) override |
Fills the whole canvas with given color. More... | |
PreviewRenderContext (Bitmap< Rgba > &bitmap) | |
virtual Pixel | size () const override |
Returns the size of the canvas associated with the context. More... | |
virtual void | setColor (const Rgba &color, const Flags< ColorFlag > flags) override |
Selects the color for one or more drawing modes. More... | |
virtual void | setThickness (const float newThickness) override |
Modifies the thickness of the lines. More... | |
virtual void | setFontSize (const int newFontSize) override |
virtual void | drawLine (const Coords p1, const Coords p2) override |
Draws a line connecting two points. More... | |
virtual void | drawTriangle (const Coords p1, const Coords p2, const Coords p3) override |
Draws a triangle given three points. More... | |
virtual void | drawBitmap (const Coords p, const Bitmap< Rgba > &subBitmap) override |
Draws a bitmap, given the position of its left-top corner. More... | |
virtual void | drawText (const Coords p, const Flags< TextAlign > align, const std::string &s) override |
virtual void | drawText (const Coords p, const Flags< TextAlign > align, const std::wstring &s) override |
virtual Array< IRenderOutput::Label > | getLabels () const override |
![]() | |
virtual | ~Polymorphic () |
Additional Inherited Members | |
![]() | |
Rgba | line |
Rgba | fill |
Rgba | text |
![]() | |
void | drawSafe (const Pixel p, const Rgba c) |
![]() | |
OverPixelOp | pixelOp |
Bitmap< Rgba > & | bitmap |
Array< IRenderOutput::Label > | labels |
struct { | |
Rgba line = Rgba::black() | |
Rgba fill = Rgba::black() | |
Rgba text = Rgba::white() | |
} | colors |
float | thickness |
int | fontSize |
Definition at line 162 of file RenderContext.h.
|
inline |
Definition at line 167 of file RenderContext.h.
|
overridevirtual |
Draws a circle, given its center and a radius.
Reimplemented from AntiAliasedRenderContext.
Definition at line 191 of file RenderContext.cpp.