CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | Public Attributes | List of all members
CartoTypeCore::PaintServer Class Referenceabstract

#include <cartotype_graphics_context.h>

Inheritance diagram for CartoTypeCore::PaintServer:
CartoTypeCore::Pattern

Public Member Functions

virtual CartoTypeCore::Color Color (int32_t aX, int32_t aY)=0
 
virtual const BitmapTexture ()=0
 
virtual std::shared_ptr< PaintServerBlended (CartoTypeCore::Color aBlendColor)=0
 
virtual const CartoTypeCore::ColorRamp () const
 
virtual const CartoTypeCore::HachureParamHachureParam () const
 

Public Attributes

String Name
 

Detailed Description

A paint server supplies a color for any given pixel. Paint servers are used to provide the correct color when filling shapes using gradients or patterns.

Member Function Documentation

◆ Blended()

virtual std::shared_ptr< PaintServer > CartoTypeCore::PaintServer::Blended ( CartoTypeCore::Color  aBlendColor)
pure virtual

Creates a new paint server with colors converted to night mode or other color effect by blending with the specified color.

Implemented in CartoTypeCore::Pattern.

◆ Color()

virtual CartoTypeCore::Color CartoTypeCore::PaintServer::Color ( int32_t  aX,
int32_t  aY 
)
pure virtual

Supplies a color for the pixel at (aX,aY) in premultiplied RGBA format.

Implemented in CartoTypeCore::Pattern.

◆ HachureParam()

virtual const CartoTypeCore::HachureParam * CartoTypeCore::PaintServer::HachureParam ( ) const
inlinevirtual

Returns a pointer to the hachure parameters if this is a hachure.

◆ Ramp()

virtual const CartoTypeCore::Color * CartoTypeCore::PaintServer::Ramp ( ) const
inlinevirtual

Returns a pointer to a 256-element color ramp if there is one.

◆ Texture()

virtual const Bitmap * CartoTypeCore::PaintServer::Texture ( )
pure virtual

Returns the texture: a bitmap which is the smallest possible repeating element. Returns null if that is not possible.

Implemented in CartoTypeCore::Pattern.

Member Data Documentation

◆ Name

String CartoTypeCore::PaintServer::Name

The name used in a defs section in a style sheet to refer to the paint server.


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