Go to the documentation of this file.
57 #ifndef __PCL_BUILDING_PIXINSIGHT_APPLICATION
65 #endif // __PCL_BUILDING_PIXINSIGHT_APPLICATION
106 ForwardDiagonalHatch,
107 BackwardDiagonalHatch,
128 namespace GradientSpreadMode
136 NumberOfGradientSpreadModes
142 #ifndef __PCL_BUILDING_PIXINSIGHT_APPLICATION
144 class PCL_CLASS Bitmap;
165 using style = BrushStyle::value_type;
170 Brush(
RGBA color = 0xff000000, style = BrushStyle::Solid );
230 static Brush& Null();
240 void SetColor(
RGBA );
253 return Style() == BrushStyle::Solid;
262 return Style() == BrushStyle::Empty;
281 return Style() == BrushStyle::Stipple;
293 void SetStyle( style );
306 void SetStipple(
const Bitmap& );
322 void* CloneHandle()
const override;
324 friend class GraphicsContextBase;
325 friend class Graphics;
326 friend class VectorGraphics;
327 friend class GradientBrush;
349 using spread_mode = GradientSpreadMode::value_type;
373 : position(
Range( p, 0.0, 1.0 ) )
417 spread_mode SpreadMode()
const;
432 GradientBrush(
const GradientBrush& x ) : Brush( x )
436 GradientBrush( GradientBrush&& x ) : Brush( std::move( x ) )
481 spread_mode spread = GradientSpreadMode::Pad );
492 spread_mode spread = GradientSpreadMode::Pad );
503 spread_mode spread = GradientSpreadMode::Pad );
531 SetHandle( b.handle );
552 void GetParameters(
double& x1,
double& y1,
double& x2,
double& y2 )
const;
563 GetParameters( r.
x0, r.
y0, r.
x1, r.
y1 );
612 spread_mode spread = GradientSpreadMode::Pad );
623 spread_mode spread = GradientSpreadMode::Pad );
634 spread_mode spread = GradientSpreadMode::Pad );
662 SetHandle( b.handle );
684 void GetParameters(
double& cx,
double& cy,
double& r,
double& fx,
double& fy )
const;
697 GetParameters( c.
x, c.
y, r, f.
x, f.
y );
775 SetHandle( b.handle );
796 void GetParameters(
double& cx,
double& cy,
double& a )
const;
809 GetParameters( c.
x, c.
y, a );
815 #endif // __PCL_BUILDING_PIXINSIGHT_APPLICATION
819 #endif // __PCL_Brush_h
ConicalGradientBrush(const ConicalGradientBrush &b)
void GetParameters(DPoint &c, double &a) const
constexpr const T & Range(const T &x, const T &a, const T &b) noexcept
Client-side interface to a PixInsight Bitmap object.
component y1
Vertical coordinate of the lower right corner.
A generic point in the two-dimensional space.
bool operator==(const Array< T, A > &x1, const Array< T, A > &x2) noexcept
virtual bool IsGradient() const
Root base class for all user interface objects.
bool IsTransparent() const
RadialGradientBrush(RadialGradientBrush &&x)
Base class of PCL gradient brushes.
A generic rectangle in the two-dimensional space.
component x1
Horizontal coordinate of the lower right corner.
bool IsGradient() const override
LinearGradientBrush(LinearGradientBrush &&x)
GradientSpreadMode::value_type spread_mode
component x
Abscissa (horizontal, or X-axis coordinate).
ConicalGradientBrush(ConicalGradientBrush &&x)
void GetParameters(DPoint &c, double &r, DPoint &f) const
component x0
Horizontal coordinate of the upper left corner.
double position
Stop position in the [0,1] range, where 0 and 1 correspond, respectively, to the starting and end loc...
RadialGradientBrush(const RadialGradientBrush &b)
component y0
Vertical coordinate of the upper left corner.
component y
Ordinate (vertical, or Y-axis coordinate).
RGBA color
Stop color encoded as a 32-bit AARRGGBB value.
Client-side interface to a PixInsight Brush object.
LinearGradientBrush(const LinearGradientBrush &b)
bool operator<(const Array< T, A > &x1, const Array< T, A > &x2) noexcept