Aurelon Open API 8.1.1
Loading...
Searching...
No Matches
AOI_Object_Ellipse Class Reference

Circle and ellipse. More...

Inheritance diagram for AOI_Object_Ellipse:
AOI_Object_Vector AOI_Object

Public Member Functions

void GetEllipse (AOI_Rectangle &outRect) const
 
void GetEllipse (AOI_Rectangle &outRect, float &startAngle, float &sweep, bool &wedge) const
 
float GetStartAngle () const
 
float GetSweepAngle () const
 
float GetXRadius () const
 
float GetYRadius () const
 
bool GetWedge () const
 
AOI_Point GetStartPoint () const
 
AOI_Point GetEndPoint () const
 
AOI_Mapping GetMapping () const
 
void GetContour (AOI_ContourPtr) const
 
AOI_StylePtr GetFillStyle () const
 
AOI_StylePtr GetStrokeStyle () const
 
void SetFillStyle (AOI_StylePtr)
 
void SetStrokeStyle (AOI_StylePtr)
 
bool GetEOFill () const
 
void SetEOFill (bool)
 
float GetStrokeWidth () const
 
void SetStrokeWidth (float)
 
float GetJoin () const
 
void SetJoin (float)
 
uint8_t GetCaps () const
 
void SetCaps (uint8_t)
 
void GetDash (int32_t *, float **, float *) const
 
void SetDash (int32_t, float *, float)
 
uint32_t GetType () const
 
void GetBounds (AOI_Rectangle &) const
 
AOI_ObjectGetNext () const
 
void GetMaskedBounds (AOI_Rectangle &) const
 
void GetPrecisionBounds (AOI_Rectangle &) const
 
AOI_BlendMode GetBlendMode () const
 
float GetBlendValue () const
 
AOI_Intent GetIntent () const
 
bool Visible () const
 
void SetBlendMode (AOI_BlendMode)
 
void SetBlendValue (float)
 
void SetIntent (AOI_Intent)
 
void Map (const AOI_Mapping &mapping)
 
void Scale (const AOI_Mapping &)
 

Static Public Member Functions

static void operator delete (void *)
 

Detailed Description

Circle and ellipse.

Definition at line 10 of file AOI_Ellipse.h.

Member Function Documentation

◆ GetBlendMode()

AOI_BlendMode AOI_Object::GetBlendMode ( ) const
inherited

Returns the BlendMode of the object.

Possible BlendModes are:

  • eBMNormal
  • eBMMultiply
  • eBMScreen
  • eBMOverlay
  • eBMSoftLight
  • eBMHardLight
  • eBMColorDodge
  • eBMColorBurn
  • eBMDarken
  • eBMLighten
  • eBMDifference
  • eBMExclusion
  • eBMHue
  • eBMSaturation
  • eBMColor
  • eBMLuminosity
Returns
The BlendMode.

Definition at line 132 of file AOI_Object.cpp.

◆ GetBlendValue()

float AOI_Object::GetBlendValue ( ) const
inherited

Returns the value with which blending should be done. For normal blending this is the opacity value. 0 is transparent and 1 is opaque.

Returns
The BlendValue.
See also
GetBlendMode

Definition at line 145 of file AOI_Object.cpp.

◆ GetBounds()

void AOI_Object::GetBounds ( AOI_Rectangle & r) const
inherited

Returns the bounds of the object.

This function is quick and will suffice in most situations. It handles bezier curves by adding the complete hull to the bounds. For precise bounds use GetPrecisionBounds

Parameters
rReceives the bounds
See also
GetPrecisionBounds GetMaskedBounds

Definition at line 40 of file AOI_Object.cpp.

◆ GetCaps()

uint8_t AOI_Object_Vector::GetCaps ( ) const
inherited

Return the caps type of the nodes of the path.

Possible values:

  • kButtCap
  • kRoundCap
  • kSquareCap
Returns
The type of caps used.
See also
SetCaps

Definition at line 153 of file AOI_Vector.cpp.

◆ GetContour()

void AOI_Object_Vector::GetContour ( AOI_ContourPtr outContour) const
inherited

Returns the AOI_Contour.

All AOI_Objects derived from AOI_Object_Vector have a contour. So if the contour information ao an AOI_Object_Text is needed, caal this function.

Parameters
outContourReceives the contour. Should be a pointer to an existing empty AOI_Contour.
See also
AOI_Contour

Definition at line 23 of file AOI_Vector.cpp.

◆ GetDash()

void AOI_Object_Vector::GetDash ( int32_t * nrOffDashes,
float ** dashes,
float * fase ) const
inherited

Returns the dash definition of this Vector.

The dashes parameter is filled with a pointer to an existing dashes array. Do not supply an array nor delete this after use.

Parameters
nrOffDashesRecieves the number of alternating values.
dashesRecieves the alternating values.
faseRecieves the offset in the alternating values to start with at the beginning of the vector.
See also
SetDash

Definition at line 180 of file AOI_Vector.cpp.

◆ GetEllipse() [1/2]

void AOI_Object_Ellipse::GetEllipse ( AOI_Rectangle & outRect) const

Returns the bounding box of the ellipse.

Parameters
outRectReceives the bounding box.

Definition at line 18 of file AOI_Ellipse.cpp.

◆ GetEllipse() [2/2]

void AOI_Object_Ellipse::GetEllipse ( AOI_Rectangle & outRect,
float & startAngle,
float & sweep,
bool & wedge ) const

Returns settings of the ellipse.

Parameters
outRectReceives the bounding box of the ellipse.
startAngleReceives the startAngle in degrees [0..360]
sweepReceives the sweep in degrees, always positive
wedgeReceives if a wedge should be drawn
See also
GetEllipse, GetStartAngle, GetSweepAngle, GetWedge

Definition at line 32 of file AOI_Ellipse.cpp.

◆ GetEndPoint()

AOI_Point AOI_Object_Ellipse::GetEndPoint ( ) const

Returns the end point on the ellipse.

If the sweep is 360 than GetStartPoint will return the right most point of the ellipse.

Returns
the end point on the ellipse
See also
GetStartPoint

Definition at line 120 of file AOI_Ellipse.cpp.

◆ GetEOFill()

bool AOI_Object_Vector::GetEOFill ( ) const
inherited

Returns if the fill should be done with EOFill or winding fill filling rule

Returns
True if the filling rule is EOFill ( Even/Odd )
See also
SetEOFill

Definition at line 81 of file AOI_Vector.cpp.

◆ GetFillStyle()

AOI_StylePtr AOI_Object_Vector::GetFillStyle ( ) const
inherited

Returns the fill style of an object.

Returns
The fill style.
See also
AOI_Style

Definition at line 36 of file AOI_Vector.cpp.

◆ GetIntent()

AOI_Intent AOI_Object::GetIntent ( ) const
inherited

Returns the intent with which this object should be rendered.

Possible values:

  • ePerceptual
  • eRelativeColorimetric
  • eSaturation
  • eAbsoluteColorimetric
Returns
The intent.

Definition at line 161 of file AOI_Object.cpp.

◆ GetJoin()

float AOI_Object_Vector::GetJoin ( ) const
inherited

Returns the value used at joins beyond which to switch to bevel.

Returns
Join value.
See also
SetJoin

Definition at line 126 of file AOI_Vector.cpp.

◆ GetMapping()

AOI_Mapping AOI_Object_Ellipse::GetMapping ( ) const

Returns the mapping of the ellipse.

Returns
the mapping

Definition at line 131 of file AOI_Ellipse.cpp.

◆ GetMaskedBounds()

void AOI_Object::GetMaskedBounds ( AOI_Rectangle & r) const
inherited

Returns the bounds of the object, taking into account the clipping.

Parameters
rReceives the bounds
See also
GetBounds GetPrecisionBounds

Definition at line 63 of file AOI_Object.cpp.

◆ GetNext()

AOI_ObjectPtr AOI_Object::GetNext ( ) const
inherited

Returns the next object.

The objects are stored in a tree with parents and children. The next object is the next kid of a parent. If there are no more kids, NULL will be returned.

Returns
The next object.

Definition at line 104 of file AOI_Object.cpp.

◆ GetPrecisionBounds()

void AOI_Object::GetPrecisionBounds ( AOI_Rectangle & r) const
inherited

Returns the bounds of the object. Beziers are handled completely, unlike in GetBounds.

Parameters
rReceives the bounds
See also
GetBounds GetMaskedBounds

Definition at line 52 of file AOI_Object.cpp.

◆ GetStartAngle()

float AOI_Object_Ellipse::GetStartAngle ( ) const

Returns the startAngle of the ellipse. If the sweep not is 360, an ellipsepart will be drawn. The ellipspart will start at the point of the ellipse where the angle of the line through the center and the point on the ellipse with the positive X-axis equals the startAngle.

Returns
The startAngle in degrees [0..360]

Definition at line 45 of file AOI_Ellipse.cpp.

◆ GetStartPoint()

AOI_Point AOI_Object_Ellipse::GetStartPoint ( ) const

Returns the starting point on the ellipse.

If the sweep is 360 than GetStartPoint will return the right most point of the ellipse.

Returns
The starting point on the ellipse
See also
GetEndPoint

Definition at line 106 of file AOI_Ellipse.cpp.

◆ GetStrokeStyle()

AOI_StylePtr AOI_Object_Vector::GetStrokeStyle ( ) const
inherited

Returns the stroke style of an object.

Returns
The fill style.
See also
AOI_Style

Definition at line 48 of file AOI_Vector.cpp.

◆ GetStrokeWidth()

float AOI_Object_Vector::GetStrokeWidth ( ) const
inherited

Returns the stroke width.

Returns
The stroke width.
See also
SetStrokeWidth

Definition at line 103 of file AOI_Vector.cpp.

◆ GetSweepAngle()

float AOI_Object_Ellipse::GetSweepAngle ( ) const

Returns the sweep of the ellipse.

The sweep is a positive number, determining the length of the ellipsepart which starts at startAngle. A sweep of 360 constitutes a complete ellipse.

Returns
The sweep in degrees

Definition at line 58 of file AOI_Ellipse.cpp.

◆ GetType()

uint32_t AOI_Object::GetType ( ) const
inherited

Returns the type of the object.

Possible types are:

  • gDimensionType
  • gGroupType
  • gRasterType
  • gSymbolType
  • gMultiSymbolType
  • gEllipseType
  • gPathType
  • gMultigonType
  • gRectangleType
  • gTextType
  • gPathTextType
  • gGroupType
  • gPlaceHolderType
Returns
The type of the object.
See also
AOI_Object_Bitmap AOI_Object_Dimension AOI_Object_Ellipse AOI_Object_Group AOI_Object_Layer AOI_Object_Multigon AOI_Object_MultiSymbol AOI_Object_Path AOI_Object_PathText AOI_Object_PlaceHolder AOI_Object_Raster AOI_Object_Rectangle AOI_Object_Symbol AOI_Object_Text AOI_Object_Vector

Definition at line 90 of file AOI_Object.cpp.

◆ GetWedge()

bool AOI_Object_Ellipse::GetWedge ( ) const

Returns the wedge state.

If wedge is true, and the sweep is not 360, than lines will be drawn from the start end end point of the ellipsepart to the centre of the ellipse.

Returns
Wedge

Definition at line 93 of file AOI_Ellipse.cpp.

◆ GetXRadius()

float AOI_Object_Ellipse::GetXRadius ( ) const

Returns half the width of the ellipse.

Returns
the X-radius
See also
GetYRadius

Definition at line 69 of file AOI_Ellipse.cpp.

◆ GetYRadius()

float AOI_Object_Ellipse::GetYRadius ( ) const

Returns half the height of the ellipse.

Returns
the Y-radius
See also
GetXRadius

Definition at line 80 of file AOI_Ellipse.cpp.

◆ Map()

void AOI_Object::Map ( const AOI_Mapping & mapping)
inherited

Maps the object.

Parameters
mappingThe mapping which should be applied to this object.
See also
AOI_Mapping, Scale

Definition at line 192 of file AOI_Object.cpp.

◆ operator delete()

void AOI_Object::operator delete ( void * p)
staticinherited

Deletes the object, after removing it from the object tree.

Definition at line 181 of file AOI_Object.cpp.

◆ Scale()

void AOI_Object::Scale ( const AOI_Mapping & mapping)
inherited

Scale the objects while retaining properties like line-width and dash distance proportional to the supplied scale.

Parameters
mappingThe mapping which should be applied to this object. The mapping should only contain a scale to avoid unwanted side effect.
See also
AOI_Mapping, Map

Definition at line 206 of file AOI_Object.cpp.

◆ SetBlendMode()

void AOI_Object::SetBlendMode ( AOI_BlendMode blendmode)
inherited

Sets the object its blendmode.

Parameters
blendmodeThe blend mode to use.
See also
AOI_BlendMode GetBlendMode

Definition at line 217 of file AOI_Object.cpp.

◆ SetBlendValue()

void AOI_Object::SetBlendValue ( float blendValue)
inherited

Sets the object its blendmode.

Parameters
blendValueThe amount of opacity. For normal blending this is the opacity value. 0 is transparent and 1 is opaque.
See also
GetBlendValue

Definition at line 230 of file AOI_Object.cpp.

◆ SetCaps()

void AOI_Object_Vector::SetCaps ( uint8_t caps)
inherited

Set the caps type of the nodes of the path.

Parameters
capskButtCap, kRoundCap, kSquareCap are valid values.
See also
GetCaps

Definition at line 164 of file AOI_Vector.cpp.

◆ SetDash()

void AOI_Object_Vector::SetDash ( int32_t nrOffDashes,
float * dashes,
float fase )
inherited

Sets the dash definition of this path.

Parameters
nrOffDashesSet the number of alternating values; the size of the dashes array.
dashesArray containing the alternating values.
faseThe offset in the alternating values to start with at the beginning of the vector.
See also
GetDash

Definition at line 198 of file AOI_Vector.cpp.

◆ SetEOFill()

void AOI_Object_Vector::SetEOFill ( bool eoFill)
inherited

Set the EOFill or window fill.

Parameters
eoFillTrue will set EOFill and false will set winding fill.
See also
GetEOFill

Definition at line 92 of file AOI_Vector.cpp.

◆ SetFillStyle()

void AOI_Object_Vector::SetFillStyle ( AOI_StylePtr style)
inherited

Replaces the fill style.

Parameters
styleThe fill style to use.
See also
AOI_Style

Definition at line 60 of file AOI_Vector.cpp.

◆ SetIntent()

void AOI_Object::SetIntent ( AOI_Intent intent)
inherited

Sets the object its blendmode.

Parameters
intentIntent to be used to convert to the device when a ICC based colorspace is assigned to this object.
See also
GetIntent

Definition at line 242 of file AOI_Object.cpp.

◆ SetJoin()

void AOI_Object_Vector::SetJoin ( float join)
inherited

Set the join type of the nodes of the path.

Parameters
join< 0 : round join, 0 : bevel join, > 0 mitter join (x line width)
See also
GetJoin

Definition at line 137 of file AOI_Vector.cpp.

◆ SetStrokeStyle()

void AOI_Object_Vector::SetStrokeStyle ( AOI_StylePtr style)
inherited

Replaces the stroke style.

Parameters
styleThe stroke style to use.
See also
AOI_Style

Definition at line 71 of file AOI_Vector.cpp.

◆ SetStrokeWidth()

void AOI_Object_Vector::SetStrokeWidth ( float width)
inherited

Set the width of the stroke in units.

Parameters
widthWidth of the stroke. 0 represents a hairline. Negative values are not allowed.
See also
GetStrokeWidth

Definition at line 115 of file AOI_Vector.cpp.

◆ Visible()

bool AOI_Object::Visible ( ) const
inherited

Returns if this object is visible.

Returns
The visibility.

Definition at line 171 of file AOI_Object.cpp.


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