roo_display
API Documentation for roo_display
Loading...
Searching...
No Matches
roo_display::TransformedRaster< RasterType, TransformationType > Class Template Reference

#include <smooth_transformation.h>

Inheritance diagram for roo_display::TransformedRaster< RasterType, TransformationType >:
[legend]
Collaboration diagram for roo_display::TransformedRaster< RasterType, TransformationType >:
[legend]

Public Member Functions

 TransformedRaster (RasterType &original, TransformationType transformation)
 
void readColors (const int16_t *x, const int16_t *y, uint32_t count, Color *result) const override
 Read colors for the given points.
 
Box extents () const override
 Return the bounding box encompassing all pixels that need to be drawn.
 
Box anchorExtents () const override
 Return the bounds used for alignment.
 
- Public Member Functions inherited from roo_display::Rasterizable
void readColorsMaybeOutOfBounds (const int16_t *x, const int16_t *y, uint32_t count, Color *result, Color out_of_bounds_color=color::Transparent) const
 Read colors for points that may be out of bounds.
 
virtual bool readColorRect (int16_t xMin, int16_t yMin, int16_t xMax, int16_t yMax, Color *result) const
 Read colors for a rectangle.
 
std::unique_ptr< PixelStreamcreateStream () const override
 Default createStream() using readColors().
 
std::unique_ptr< PixelStreamcreateStream (const Box &bounds) const override
 Default createStream() for a clipped box using readColors().
 
- Public Member Functions inherited from roo_display::Streamable
virtual TransparencyMode getTransparencyMode () const
 Return the transparency mode for pixels in this stream.
 
- Public Member Functions inherited from roo_display::Drawable
virtual ~Drawable ()
 

Additional Inherited Members

- Static Public Member Functions inherited from roo_display::Drawable
static const DrawableEmpty ()
 A singleton representing a no-op drawable with no bounding box.
 
- Protected Member Functions inherited from roo_display::Rasterizable
void drawTo (const Surface &s) const override
 Default drawTo() using readColors().
 

Detailed Description

template<typename RasterType, typename TransformationType>
class roo_display::TransformedRaster< RasterType, TransformationType >

Definition at line 389 of file smooth_transformation.h.

Constructor & Destructor Documentation

◆ TransformedRaster()

template<typename RasterType , typename TransformationType >
roo_display::TransformedRaster< RasterType, TransformationType >::TransformedRaster ( RasterType &  original,
TransformationType  transformation 
)
inline

Definition at line 391 of file smooth_transformation.h.

Member Function Documentation

◆ anchorExtents()

template<typename RasterType , typename TransformationType >
Box roo_display::TransformedRaster< RasterType, TransformationType >::anchorExtents ( ) const
inlineoverridevirtual

Return the bounds used for alignment.

Defaults to extents(). Some drawables (notably text labels) may want different alignment bounds.

This method is called during a transaction and must not block or perform I/O.

Reimplemented from roo_display::Drawable.

Definition at line 566 of file smooth_transformation.h.

◆ extents()

template<typename RasterType , typename TransformationType >
Box roo_display::TransformedRaster< RasterType, TransformationType >::extents ( ) const
inlineoverridevirtual

Return the bounding box encompassing all pixels that need to be drawn.

This method is called during a transaction and must not block or perform I/O.

Implements roo_display::Drawable.

Definition at line 565 of file smooth_transformation.h.

◆ readColors()

template<typename RasterType , typename TransformationType >
void roo_display::TransformedRaster< RasterType, TransformationType >::readColors ( const int16_t x,
const int16_t y,
uint32_t  count,
Color result 
) const
inlineoverridevirtual

Read colors for the given points.

The caller must ensure all points are within bounds.

Implements roo_display::Rasterizable.

Definition at line 398 of file smooth_transformation.h.

References roo_display::InterpolateColors().


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