Enrollment 28.2.0
Loading...
Searching...
No Matches

It holds circle dimensions. More...

#include <ImageAttribute.h>

Collaboration diagram for Circle:

Public Member Functions

void WriteTo (Writer &writer) const final
 Write itself into writer.
Rectangle BoundingRectangle () const
 It provides bounding rectangle for circle.
 Circle (Point centerPoint, Radius circleRadius)
 Constructor store given coordinates.

Static Public Member Functions

static Circle CreateInscribedCircle (const Rectangle &rect)
 Creates the largest circle that fits entirely within a given rectangle.

Public Attributes

Point center
 top left
Radius radius = 0
 top right

Detailed Description

It holds circle dimensions.

Constructor & Destructor Documentation

◆ Circle()

Circle ( Point centerPoint,
Radius circleRadius )
inline

Constructor store given coordinates.

Parameters
centerPointcenter of circle
circleRadiusradius of circle

References center, and radius.

Referenced by CreateInscribedCircle().

Here is the caller graph for this function:

Member Function Documentation

◆ BoundingRectangle()

Rectangle BoundingRectangle ( ) const
inlinenodiscard

It provides bounding rectangle for circle.

Returns
Rectangle bounding rectangle of circle

References center, and radius.

◆ CreateInscribedCircle()

Circle CreateInscribedCircle ( const Rectangle & rect)
inlinestaticnodiscard

Creates the largest circle that fits entirely within a given rectangle.

Parameters
rectThe rectangle from which to create the inner circle.
Returns
Circle representing the inner circle of the rectangle.

References Rectangle::CalculateCenter(), center, Circle(), Rectangle::GetHeight(), Rectangle::GetWidth(), and radius.

Referenced by Iris::GetISO19794IrisImage().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteTo()

void WriteTo ( Writer & writer) const
inlinefinalvirtual

Write itself into writer.

Parameters
writerWriter to use to serialize this Serializable

Implements Serializable.

References center, and radius.


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