PCL
|
Base class of client-side interface classes to PixInsight graphics contexts More...
#include <Graphics.h>
Public Types | |
using | composition_op = CompositionOp::value_type |
using | fill_rule = FillRule::value_type |
Public Member Functions | |
GraphicsContextBase () | |
GraphicsContextBase (Bitmap &bitmap) | |
GraphicsContextBase (Control &control) | |
GraphicsContextBase (GraphicsContextBase &&x) | |
GraphicsContextBase (SVG &svg) | |
~GraphicsContextBase () override | |
pcl::Brush | BackgroundBrush () const |
bool | BeginPaint (Bitmap &bitmap) |
bool | BeginPaint (Control &control) |
bool | BeginPaint (SVG &svg) |
pcl::Brush | Brush () const |
composition_op | CompositionOperator () const |
void | DisableAntialiasing (bool disable=true) |
void | DisableClipping (bool disable=true) |
void | DisableSmoothInterpolation (bool disable=true) |
void | DisableTextAntialiasing (bool disable=true) |
void | DisableTransformation (bool disable=true) |
void | EnableAntialiasing (bool=true) |
void | EnableClipping (bool=true) |
void | EnableSmoothInterpolation (bool=true) |
void | EnableTextAntialiasing (bool=true) |
void | EnableTransformation (bool=true) |
void | EndPaint () |
void | EnsureUnique () override |
pcl::Font | Font () const |
pcl::Brush | GetBrush () const |
pcl::Font | GetFont () const |
pcl::Pen | GetPen () const |
bool | IsAntialiasingEnabled () const |
bool | IsClippingEnabled () const |
bool | IsOpaqueBackground () const |
bool | IsPainting () const |
bool | IsSmoothInterpolationEnabled () const |
bool | IsTextAntialiasingEnabled () const |
bool | IsTransformationEnabled () const |
bool | IsTransparentBackground () const |
void | MultiplyTransformationMatrix (const Matrix &M) |
void | MultiplyTransformationMatrix (double m11, double m12, double m13, double m21, double m22, double m23, double m31, double m32, double m33) |
double | Opacity () const |
GraphicsContextBase & | operator= (GraphicsContextBase &&x) |
pcl::Pen | Pen () const |
void | PopState () |
void | PushState () |
void | ResetCompositionOperator () |
void | ResetTransformation () |
void | RotateTransformation (double angleRadians) |
void | ScaleTransformation (double scale) |
void | ScaleTransformation (double xScale, double yScale) |
void | SetBackgroundBrush (const pcl::Brush &) |
void | SetBrush (const pcl::Brush &) |
void | SetCompositionOperator (composition_op) |
void | SetFont (const pcl::Font &) |
void | SetOpacity (double op) |
void | SetOpaqueBackground (bool opaque=true) |
void | SetPen (const pcl::Pen &) |
void | SetPen (RGBA color, float width) |
void | SetTransformationMatrix (const Matrix &M) |
void | SetTransformationMatrix (double m11, double m12, double m13, double m21, double m22, double m23, double m31, double m32, double m33) |
void | SetTransparentBackground (bool=true) |
void | ShearTransformation (double s) |
void | ShearTransformation (double sx, double sy) |
void | Transform (Array< DPoint > &a) const |
void | Transform (double &x, double &y) const |
void | Transform (DPoint *p, size_type n) const |
Matrix | TransformationMatrix () const |
Array< DPoint > | Transformed (const Array< DPoint > &a) const |
DPoint | Transformed (const DPoint &p) const |
DRect | Transformed (const DRect &r) const |
void | TranslateTransformation (double d) |
void | TranslateTransformation (double dx, double dy) |
Public Member Functions inherited from pcl::UIObject | |
virtual | ~UIObject () noexcept(false) |
bool | IsAlias () const |
bool | IsGarbage () const |
bool | IsNull () const |
bool | IsSameObject (const UIObject &o) const |
bool | IsUnique () const |
String | ObjectId () const |
IsoString | ObjectType () const |
bool | operator< (const UIObject &o) const |
bool | operator== (const UIObject &o) const |
size_type | RefCount () const |
void | SetObjectId (const String &id) |
Additional Inherited Members | |
Static Public Member Functions inherited from pcl::UIObject | |
static UIObject & | Null () |
Protected Member Functions inherited from pcl::UIObject | |
UIObject ()=default | |
UIObject (const UIObject &x) | |
UIObject (UIObject &&x) | |
UIObject & | operator= (const UIObject &x) |
UIObject & | operator= (UIObject &&x) |
operators, rendering performance, transformations, etc.
Definition at line 207 of file Graphics.h.
using pcl::GraphicsContextBase::composition_op = CompositionOp::value_type |
Represents a Porter-Duff alpha composition operator.
Definition at line 214 of file Graphics.h.
using pcl::GraphicsContextBase::fill_rule = FillRule::value_type |
Represents a polygon fill rule.
Definition at line 219 of file Graphics.h.
pcl::GraphicsContextBase::GraphicsContextBase | ( | ) |
Constructs an inactive graphics context.
pcl::GraphicsContextBase::GraphicsContextBase | ( | Control & | control | ) |
Constructs an active graphics context, ready to draw on the specified control.
pcl::GraphicsContextBase::GraphicsContextBase | ( | Bitmap & | bitmap | ) |
Constructs an active graphics context, ready to draw on the specified bitmap.
pcl::GraphicsContextBase::GraphicsContextBase | ( | SVG & | svg | ) |
Constructs an active graphics context, ready to draw on the specified svg object.
|
inline |
Move constructor.
Definition at line 251 of file Graphics.h.
|
inlineoverride |
Destroys a GraphicsContextBase object. If this graphics context is active, it is terminated upon destruction.
Definition at line 260 of file Graphics.h.
pcl::Brush pcl::GraphicsContextBase::BackgroundBrush | ( | ) | const |
#
bool pcl::GraphicsContextBase::BeginPaint | ( | Bitmap & | bitmap | ) |
Activates this graphics context to draw on the specified bitmap.
bool pcl::GraphicsContextBase::BeginPaint | ( | Control & | control | ) |
Activates this graphics context to draw on the specified control.
bool pcl::GraphicsContextBase::BeginPaint | ( | SVG & | svg | ) |
Activates this graphics context to draw on the specified svg object.
pcl::Brush pcl::GraphicsContextBase::Brush | ( | ) | const |
#
composition_op pcl::GraphicsContextBase::CompositionOperator | ( | ) | const |
#
|
inline |
#
Definition at line 469 of file Graphics.h.
|
inline |
#
Definition at line 454 of file Graphics.h.
|
inline |
#
Definition at line 499 of file Graphics.h.
|
inline |
#
Definition at line 484 of file Graphics.h.
|
inline |
#
Definition at line 325 of file Graphics.h.
void pcl::GraphicsContextBase::EnableAntialiasing | ( | bool | = true | ) |
#
void pcl::GraphicsContextBase::EnableClipping | ( | bool | = true | ) |
#
void pcl::GraphicsContextBase::EnableSmoothInterpolation | ( | bool | = true | ) |
#
void pcl::GraphicsContextBase::EnableTextAntialiasing | ( | bool | = true | ) |
#
void pcl::GraphicsContextBase::EnableTransformation | ( | bool | = true | ) |
#
void pcl::GraphicsContextBase::EndPaint | ( | ) |
Terminates a graphics context drawing operation.
|
inlineoverridevirtual |
Ensures that the server-side object managed by this instance is uniquely referenced.
Since graphics contexts are unique objects, calling this member function has no effect.
Reimplemented from pcl::UIObject.
Definition at line 283 of file Graphics.h.
pcl::Font pcl::GraphicsContextBase::Font | ( | ) | const |
#
|
inline |
Definition at line 587 of file Graphics.h.
|
inline |
Definition at line 603 of file Graphics.h.
|
inline |
Definition at line 564 of file Graphics.h.
bool pcl::GraphicsContextBase::IsAntialiasingEnabled | ( | ) | const |
#
bool pcl::GraphicsContextBase::IsClippingEnabled | ( | ) | const |
#
|
inline |
#
Definition at line 541 of file Graphics.h.
bool pcl::GraphicsContextBase::IsPainting | ( | ) | const |
Returns true iff this graphics context is currently active.
bool pcl::GraphicsContextBase::IsSmoothInterpolationEnabled | ( | ) | const |
#
bool pcl::GraphicsContextBase::IsTextAntialiasingEnabled | ( | ) | const |
#
bool pcl::GraphicsContextBase::IsTransformationEnabled | ( | ) | const |
#
bool pcl::GraphicsContextBase::IsTransparentBackground | ( | ) | const |
#
void pcl::GraphicsContextBase::MultiplyTransformationMatrix | ( | const Matrix & | M | ) |
#
|
inline |
#
Definition at line 353 of file Graphics.h.
double pcl::GraphicsContextBase::Opacity | ( | ) | const |
#
|
inline |
Move assignment operator. Returns a reference to this object.
Definition at line 270 of file Graphics.h.
pcl::Pen pcl::GraphicsContextBase::Pen | ( | ) | const |
#
void pcl::GraphicsContextBase::PopState | ( | ) |
#
void pcl::GraphicsContextBase::PushState | ( | ) |
#
|
inline |
#
Definition at line 514 of file Graphics.h.
void pcl::GraphicsContextBase::ResetTransformation | ( | ) |
#
void pcl::GraphicsContextBase::RotateTransformation | ( | double | angleRadians | ) |
#
|
inline |
#
Definition at line 370 of file Graphics.h.
void pcl::GraphicsContextBase::ScaleTransformation | ( | double | xScale, |
double | yScale | ||
) |
#
void pcl::GraphicsContextBase::SetBackgroundBrush | ( | const pcl::Brush & | ) |
#
void pcl::GraphicsContextBase::SetBrush | ( | const pcl::Brush & | ) |
#
void pcl::GraphicsContextBase::SetCompositionOperator | ( | composition_op | ) |
#
void pcl::GraphicsContextBase::SetFont | ( | const pcl::Font & | ) |
#
void pcl::GraphicsContextBase::SetOpacity | ( | double | op | ) |
#
|
inline |
#
Definition at line 552 of file Graphics.h.
void pcl::GraphicsContextBase::SetPen | ( | const pcl::Pen & | ) |
#
|
inline |
#
Definition at line 575 of file Graphics.h.
void pcl::GraphicsContextBase::SetTransformationMatrix | ( | const Matrix & | M | ) |
#
|
inline |
#
Definition at line 340 of file Graphics.h.
void pcl::GraphicsContextBase::SetTransparentBackground | ( | bool | = true | ) |
#
|
inline |
#
Definition at line 392 of file Graphics.h.
void pcl::GraphicsContextBase::ShearTransformation | ( | double | sx, |
double | sy | ||
) |
#
#
Definition at line 411 of file Graphics.h.
void pcl::GraphicsContextBase::Transform | ( | double & | x, |
double & | y | ||
) | const |
#
Matrix pcl::GraphicsContextBase::TransformationMatrix | ( | ) | const |
#
#
Definition at line 437 of file Graphics.h.
#
Definition at line 418 of file Graphics.h.
References pcl::GenericPoint< T >::x, and pcl::GenericPoint< T >::y.
#
Definition at line 427 of file Graphics.h.
References pcl::GenericRectangle< T >::x0, pcl::GenericRectangle< T >::x1, pcl::GenericRectangle< T >::y0, and pcl::GenericRectangle< T >::y1.
|
inline |
#
Definition at line 381 of file Graphics.h.
void pcl::GraphicsContextBase::TranslateTransformation | ( | double | dx, |
double | dy | ||
) |
#