#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/SLA/AGGRaster.hpp>
Public Types | |
| using | TColor = typename PixelRenderer::color_type |
| using | TValue = typename TColor::value_type |
| using | TPixel = typename PixelRenderer::pixel_type |
| enum | Orientation { roLandscape , roPortrait } |
| using | TMirroring = std::array<bool, 2> |
Public Member Functions | |
| template<class GammaFn> | |
| AGGRaster (const Resolution &res, const PixelDim &pd, const Trafo &trafo, const TColor &foreground, const TColor &background, GammaFn &&gammafn) | |
| Trafo | trafo () const override |
| Get the resolution of the raster. | |
| Resolution | resolution () const |
| PixelDim | pixel_dimensions () const |
| void | draw (const ExPolygon &poly) override |
| Draw a polygon with holes. | |
| EncodedRaster | encode (RasterEncoder encoder) const override |
| void | clear (const TColor color) |
Static Public Attributes | |
| static const constexpr TMirroring | NoMirror = {false, false} |
| static const constexpr TMirroring | MirrorX = {true, false} |
| static const constexpr TMirroring | MirrorY = {false, true} |
| static const constexpr TMirroring | MirrorXY = {true, true} |
Protected Member Functions | |
| void | flipy (agg::path_storage &path) const |
| void | flipx (agg::path_storage &path) const |
| double | getPx (const Point &p) |
| double | getPy (const Point &p) |
| agg::path_storage | to_path (const Polygon &poly) |
| template<class PointVec> | |
| agg::path_storage | _to_path (const PointVec &v) |
| template<class PointVec> | |
| agg::path_storage | _to_path_flpxy (const PointVec &v) |
| template<class PointVec> | |
| agg::path_storage | to_path (const PointVec &v) |
| template<class P> | |
| void | _draw (const P &poly) |
Protected Attributes | |
| Resolution | m_resolution |
| PixelDim | m_pxdim_scaled |
| std::vector< TPixel > | m_buf |
| agg::rendering_buffer | m_rbuf |
| PixelRenderer | m_pixrenderer |
| agg::renderer_base< PixelRenderer > | m_raw_renderer |
| Renderer< agg::renderer_base< PixelRenderer > > | m_renderer |
| Trafo | m_trafo |
| Scanline | m_scanlines |
| Rasterizer | m_rasterizer |
| using Slic3r::sla::AGGRaster< PixelRenderer, Renderer, Rasterizer, Scanline >::TColor = typename PixelRenderer::color_type |
|
inherited |
| using Slic3r::sla::AGGRaster< PixelRenderer, Renderer, Rasterizer, Scanline >::TPixel = typename PixelRenderer::pixel_type |
| using Slic3r::sla::AGGRaster< PixelRenderer, Renderer, Rasterizer, Scanline >::TValue = typename TColor::value_type |
|
inherited |
|
inline |
|
inlineprotected |
Referenced by Slic3r::sla::AGGRaster< agg::pixfmt_gray8, agg::renderer_scanline_aa_solid >::draw().
|
inlineprotected |
Referenced by Slic3r::sla::AGGRaster< agg::pixfmt_gray8, agg::renderer_scanline_aa_solid >::to_path().
|
inlineprotected |
Referenced by Slic3r::sla::AGGRaster< agg::pixfmt_gray8, agg::renderer_scanline_aa_solid >::to_path().
|
inline |
Referenced by Slic3r::sla::AGGRaster< agg::pixfmt_gray8, agg::renderer_scanline_aa_solid >::AGGRaster().
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements Slic3r::sla::RasterBase.
|
inlineprotected |
Referenced by Slic3r::sla::AGGRaster< agg::pixfmt_gray8, agg::renderer_scanline_aa_solid >::to_path().
|
inlineprotected |
Referenced by Slic3r::sla::AGGRaster< agg::pixfmt_gray8, agg::renderer_scanline_aa_solid >::to_path().
|
inlineprotected |
Referenced by Slic3r::sla::AGGRaster< agg::pixfmt_gray8, agg::renderer_scanline_aa_solid >::_to_path(), and Slic3r::sla::AGGRaster< agg::pixfmt_gray8, agg::renderer_scanline_aa_solid >::_to_path_flpxy().
|
inlineprotected |
Referenced by Slic3r::sla::AGGRaster< agg::pixfmt_gray8, agg::renderer_scanline_aa_solid >::_to_path(), and Slic3r::sla::AGGRaster< agg::pixfmt_gray8, agg::renderer_scanline_aa_solid >::_to_path_flpxy().
|
inline |
Referenced by Slic3r::sla::raster_to_polygons().
|
inline |
Referenced by marchsq::_RasterTraits< Slic3r::sla::RasterGrayscaleAA >::cols(), Slic3r::sla::raster_to_polygons(), and marchsq::_RasterTraits< Slic3r::sla::RasterGrayscaleAA >::rows().
|
inlineprotected |
|
inlineprotected |
Referenced by Slic3r::sla::AGGRaster< agg::pixfmt_gray8, agg::renderer_scanline_aa_solid >::_draw(), and Slic3r::sla::AGGRaster< agg::pixfmt_gray8, agg::renderer_scanline_aa_solid >::to_path().
|
inlineoverridevirtual |
Get the resolution of the raster.
Implements Slic3r::sla::RasterBase.
Referenced by Slic3r::sla::raster_to_polygons().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticconstexprinherited |
|
staticconstexprinherited |
|
staticconstexprinherited |
|
staticconstexprinherited |
Referenced by Slic3r::sla::RasterBase::Trafo::Trafo().