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
  • float Opacity = 1.0f - Allows drawing transparent shapes
  • float 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
  • float PointSize = 2.0f - Thickness of drawn points
struct DrawingStyle
{
	DrawingMode	DrawingMode;
	float		Opacity;
	float		Thickness;
	Bool		Filled;
	PointShape	PointShape;
	float		PointSize;

	explicit DrawingStyle
	(
		 float Opacity_ = 1.0f,
		 float Thickness_ = 3.0f,
		 float PointSize_ = 2.0f 
	) :
		 Opacity(Opacity_),
		 Thickness(Thickness_),
		 PointSize(PointSize_) 
	{}

	DrawingMode DrawingMode( void ) const	{ return DrawingMode;	};
	float Opacity( void ) const				{ return Opacity;		};
	float Thickness( void ) const			{ return Thickness;		};
	Bool Filled( void ) const				{ return Filled;		};
	PointShape PointShape( void ) const		{ return PointShape;	};
	float 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));
	}

};