CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | Public Attributes | List of all members
CartoType::CPaintServer Class Referenceabstract

#include <cartotype_graphics_context.h>

Inheritance diagram for CartoType::CPaintServer:

Public Member Functions

virtual TColor Color (int32_t aX, int32_t aY)=0
virtual std::shared_ptr< CBitmapTexture ()=0
virtual std::shared_ptr< CPaintServerBlended (TColor aBlendColor)=0
virtual const TColorRamp () const
virtual const THachureParamHachureParam () const

Public Attributes

CString iName

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< CPaintServer > CartoType::CPaintServer::Blended ( TColor  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 CartoType::CPattern.

◆ Color()

virtual TColor CartoType::CPaintServer::Color ( int32_t  aX,
int32_t  aY 
pure virtual

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

Implemented in CartoType::CPattern.

◆ HachureParam()

virtual const THachureParam * CartoType::CPaintServer::HachureParam ( ) const

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

◆ Ramp()

virtual const TColor * CartoType::CPaintServer::Ramp ( ) const

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

◆ Texture()

virtual std::shared_ptr< CBitmap > CartoType::CPaintServer::Texture ( )
pure virtual

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

Implemented in CartoType::CPattern.

Member Data Documentation

◆ iName

CString CartoType::CPaintServer::iName

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: