Chemical Data Processing Library C++ API - Version 1.1.1
Public Member Functions | List of all members
CDPL::Vis::Path2DConverter Class Referenceabstract

Provides an interface for classes that implement the conversion of Vis::Path2D objects into rendering backend specific path descriptions or drawing operations. More...

#include <Path2DConverter.hpp>

Public Member Functions

virtual ~Path2DConverter ()
 Virtual destructor. More...
 
virtual void moveTo (double x, double y)=0
 Called when a Vis::Path2D element created by a Vis::Path2D::moveTo() call is encountered. More...
 
virtual void arcTo (double cx, double cy, double rx, double ry, double start_ang, double sweep)=0
 Called when a Vis::Path2D element created by a Vis::Path2D::arcTo() call is encountered. More...
 
virtual void lineTo (double x, double y)=0
 Called when a Vis::Path2D element created by a Vis::Path2D::lineTo() call is encountered. More...
 
virtual void closePath ()=0
 Called when a Vis::Path2D element created by a Vis::Path2D::closePath() call is encountered. More...
 

Detailed Description

Provides an interface for classes that implement the conversion of Vis::Path2D objects into rendering backend specific path descriptions or drawing operations.

See also
Vis::Renderer2D
Since
1.1

Constructor & Destructor Documentation

◆ ~Path2DConverter()

virtual CDPL::Vis::Path2DConverter::~Path2DConverter ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

◆ moveTo()

virtual void CDPL::Vis::Path2DConverter::moveTo ( double  x,
double  y 
)
pure virtual

Called when a Vis::Path2D element created by a Vis::Path2D::moveTo() call is encountered.

Parameters
xThe x-coordinate of the newly set current position.
yThe y-coordinate of the newly set current position.

◆ arcTo()

virtual void CDPL::Vis::Path2DConverter::arcTo ( double  cx,
double  cy,
double  rx,
double  ry,
double  start_ang,
double  sweep 
)
pure virtual

Called when a Vis::Path2D element created by a Vis::Path2D::arcTo() call is encountered.

Parameters
cxThe x-coordinate of the ellipse center.
cyThe y-coordinate of the ellipse center.
rxThe x-radius of the ellipse.
ryThe y-radius of the ellipse.
start_angThe start angle of the arg in degrees.
sweepThe length of the arg in degrees.

◆ lineTo()

virtual void CDPL::Vis::Path2DConverter::lineTo ( double  x,
double  y 
)
pure virtual

Called when a Vis::Path2D element created by a Vis::Path2D::lineTo() call is encountered.

Parameters
xSpecifies the x-coordinate of the line's end point.
ySpecifies the y-coordinate of the line's end point.

◆ closePath()

virtual void CDPL::Vis::Path2DConverter::closePath ( )
pure virtual

Called when a Vis::Path2D element created by a Vis::Path2D::closePath() call is encountered.


The documentation for this class was generated from the following file: