DrawingStyle
Description
Type defines style of graphical object to be drawn
Structure fields and default values (if defined) are described below:
- DrawingMode DrawingMode - Selects between high quality or fast drawing
- real Opacity = 1.0f - Allows drawing transparent shapes
- real Thickness = 3.0f - Thickness of drawn lines
- Bool Filled - Defines if the interior of the shape should be filled or not
- PointShape PointShape - Shape of drawn points
- real PointSize = 2.0f - Thickness of drawn points
struct DrawingStyle
{
DrawingMode DrawingMode;
real Opacity;
real Thickness;
Bool Filled;
PointShape PointShape;
real PointSize;
explicit DrawingStyle
(
real Opacity_ = 1.0f,
real Thickness_ = 3.0f,
real PointSize_ = 2.0f
) :
Opacity(Opacity_),
Thickness(Thickness_),
PointSize(PointSize_)
{}
DrawingMode DrawingMode( void ) const { return DrawingMode; };
real Opacity( void ) const { return Opacity; };
real Thickness( void ) const { return Thickness; };
Bool Filled( void ) const { return Filled; };
PointShape PointShape( void ) const { return PointShape; };
real PointSize( void ) const { return PointSize; };
bool operator == ( const avl::DrawingStyle& rhs ) const
{
return DrawingMode == rhs.DrawingMode &&
Opacity == rhs.Opacity && Thickness == rhs.Thickness &&
Filled == rhs.Filled && PointShape == rhs.PointShape &&
PointSize == rhs.PointSize;
}
bool operator != ( const avl::DrawingStyle& rhs ) const
{
return !(operator==(rhs));
}
};
