PrevNextUpHome SophiaFramework UNIVERSE 5.3
SFXPie
Class which represents a pie.
#include <SFXPie.h.hpp>
class SFXPie;
SFMTYPEDEFCLASS(SFXPie)

Collaboration diagram

 Collaboration diagram of SFXPieClass

Member

Constructor/Destructor
SFXPie( Void )
Constructor of the SFXPie class.
SFXPie( SFXPieConstRef param )
Constructor of the SFXPie class.
SFXPie( SFXCircleConstRef circle , SInt16 start , SInt16 arc )
Constructor of the SFXPie class.
SFXPie( SFXPixelConstRef origin , SInt16 radius , SInt16 start , SInt16 arc )
Constructor of the SFXPie class.
SFXPie( SInt16 x , SInt16 y , SInt16 radius , SInt16 start , SInt16 arc )
Constructor of the SFXPie class.
SFXPie( SFXCircleConstRef circle )
Constructor of the SFXPie class.
SFXPie( SFXArcConstRef arc )
Constructor of the SFXPie class.
Public Functions
SFXPieRef AddArc( SInt16 param )
Add the specified value to the extent angle.
SFXPieRef AddOrigin( SFXPixelConstRef param )
Add the specified value to the coordinates of the center.
SFXPieRef AddOrigin( SInt16 x , SInt16 y )
Add the specified value to the coordinates of the center.
SFXPieRef AddRadius( SInt16 param )
Add the specified value to the radius.
SFXPieRef AddStart( SInt16 param )
Add the specified value to the beginning angle.
SFXPieRef AddX( SInt16 param )
Add the specified value to the X coordinate of the center.
SFXPieRef AddY( SInt16 param )
Add the specified value to the Y coordinate of the center.
SFXPieRef DivArc( SInt16 param )
Divide the extent angle by the specified value.
SFXPieRef DivOrigin( SInt16 x , SInt16 y )
Divide the coordinates of the center by the specified value.
SFXPieRef DivOrigin( SInt16 param )
Divide the coordinates of the center by the specified value.
SFXPieRef DivRadius( SInt16 param )
Divide the radius by the specified value.
SFXPieRef DivStart( SInt16 param )
Divide the beginning angle by the specified value.
SFXPieRef DivX( SInt16 param )
Divide the X coordinate of the center by the specified value.
SFXPieRef DivY( SInt16 param )
Divide Y coordinate of the center by the specified value.
static
SFXPieConstRef
EmptyInstance( Void )
Get an empty pie.
Bool Equals( SFXPieConstRef param )
Check whether this pie equals the specified pie or not.
Bool Equals( SFXCircleConstRef circle , SInt16 start , SInt16 arc )
Check whether this pie equals the specified pie or not.
Bool Equals( SFXPixelConstRef origin , SInt16 radius , SInt16 start , SInt16 arc )
Check whether this pie equals the specified pie or not.
Bool Equals( SInt16 x , SInt16 y , SInt16 radius , SInt16 start , SInt16 arc )
Check whether this pie equals the specified pie or not.
SInt16 GetArc( Void )
Get the extent angle.
SFXPixelConstRef GetOrigin( Void )
Get the coordinates of the center.
SInt16 GetRadius( Void )
Get the radius.
SInt16 GetStart( Void )
Get the beginning angle.
SInt16 GetX( Void )
Get the X coordinate of the center.
SInt16 GetY( Void )
Get the Y coordinate of the center.
Bool IsEmpty( Void )
Check whether this pie is empty or not.
SFXPieRef ModArc( SInt16 param )
Set the extent angle to the remainder of the division of this extent angle by the specified value.
SFXPieRef ModOrigin( SInt16 x , SInt16 y )
Set the coordinates of the center to the remainder of the division of this coordinates by the specified value.
SFXPieRef ModOrigin( SInt16 param )
Set the coordinates of the center to the remainder of the division of this coordinates by the specified value.
SFXPieRef ModRadius( SInt16 param )
Set the radius to the remainder of the division of this radius by the specified value.
SFXPieRef ModStart( SInt16 param )
Set the beginning angle to the remainder of the division of the beginning angle by the specified value.
SFXPieRef ModX( SInt16 param )
Set the X coordinate of the center to the remainder of the division of this X coordinate by the specified value.
SFXPieRef ModY( SInt16 param )
Set the Y coordinate of the center to the remainder of the division of this Y coordinate by the specified value.
SFXPieRef MulArc( SInt16 param )
Multiply the extent angle by the specified value.
SFXPieRef MulOrigin( SInt16 x , SInt16 y )
Multiply the coordinates of the center by the specified value.
SFXPieRef MulOrigin( SInt16 param )
Multiply the coordinates of the center by the specified value.
SFXPieRef MulRadius( SInt16 param )
Multiply the radius by the specified value.
SFXPieRef MulStart( SInt16 param )
Multiply the beginning angle by the specified value.
SFXPieRef MulX( SInt16 param )
Multiply the X coordinate of the center by the specified value.
SFXPieRef MulY( SInt16 param )
Multiply the Y coordinate of the center by the specified value.
SFXPieRef NegArc( Void )
Negate the sign of the extent angle.
SFXPieRef NegOrigin( Void )
Negate the sign of the coordinates of the center.
SFXPieRef NegRadius( Void )
Negate the sign of the radius.
SFXPieRef NegStart( Void )
Negate the sign of the beginning angle.
SFXPieRef NegX( Void )
Negate the sign of the X coordinate of the center.
SFXPieRef NegY( Void )
Negate the sign of the Y coordinate of the center.
SFXPieRef Normalize( Void )
Normalize the pie.
SFXPieRef Offset( SFXGridConstRef param )
Add the specified value to the coordinates of the center and move this pie.
SFXPieRef Offset( SInt16 x , SInt16 y )
Add the specified value to the coordinates of the center and move this pie.
SFXPieRef Set( SFXPieConstRef param )
Set the pie.
SFXPieRef Set( SFXCircleConstRef circle , SInt16 start , SInt16 arc )
Set the pie.
SFXPieRef Set( SFXPixelConstRef origin , SInt16 radius , SInt16 start , SInt16 arc )
Set the pie.
SFXPieRef Set( SInt16 x , SInt16 y , SInt16 radius , SInt16 start , SInt16 arc )
Set the pie.
SFXPieRef Set( SFXCircleConstRef circle )
Set the pie.
SFXPieRef Set( SFXArcConstRef arc )
Set the pie.
SFXPieRef SetArc( SInt16 param )
Set the extent angle.
SFXPieRef SetOrigin( SFXPixelConstRef param )
Set the coordinates of the center.
SFXPieRef SetOrigin( SInt16 x , SInt16 y )
Set the coordinates of the center.
SFXPieRef SetRadius( SInt16 param )
Set the radius.
SFXPieRef SetStart( SInt16 param )
Set the beginning angle.
SFXPieRef SetX( SInt16 param )
Set the X coordinate of the center.
SFXPieRef SetY( SInt16 param )
Set the Y coordinate of the center.
SFXPieRef SubArc( SInt16 param )
Subtract the specified value from the extent angle.
SFXPieRef SubOrigin( SFXPixelConstRef param )
Subtract the specified value from the coordinates of the center.
SFXPieRef SubOrigin( SInt16 x , SInt16 y )
Subtract the specified value from the coordinates of the center.
SFXPieRef SubRadius( SInt16 param )
Subtract the specified value from the radius.
SFXPieRef SubStart( SInt16 param )
Subtract the specified value from the beginning angle.
SFXPieRef SubX( SInt16 param )
Subtract the specified value from the X coordinate of the center.
SFXPieRef SubY( SInt16 param )
Subtract the specified value from the Y coordinate of the center.
SFXPieRef Unoffset( SFXGridConstRef param )
Subtract the specified value from the coordinates of the center and move this pie.
SFXPieRef Unoffset( SInt16 x , SInt16 y )
Subtract the specified value from the coordinates of the center and move this pie.
static
SFXPieConstRef
ZeroInstance( Void )
Get the instance that represents 0.
SFXPieRef operator+=( SFXGridConstRef param )
Add the specified value to the coordinates of the center and move this pie.
SFXPieRef operator-=( SFXGridConstRef param )
Subtract the specified value from the coordinates of the center and move this pie.
SFXPieRef operator=( SFXPieConstRef param )
Assign a pie.
SFXPie::AtomRec * atomic_cast( SFXPie * param )
Convert SFXPie into SFXPie::AtomRec.
SFXPie::AtomRec const * atomic_cast( SFXPie const * param )
Convert SFXPie into SFXPie::AtomRec.
AEEPie * interface_cast( SFXPie * param )
Convert SFXPie into AEEPie.
AEEPie const * interface_cast( SFXPie const * param )
Convert SFXPie into AEEPie.
Bool operator==( SFXPieConstRef left , SFXPieConstRef right )
Check the "==" relation.
SFXPie operator-( SFXPieConstRef left , SFXGridConstRef right )
Subtract the specified value from the coordinates of the center of a pie and move this pie.
Bool operator!=( SFXPieConstRef left , SFXPieConstRef right )
Check the "!=" relation.
SFXPie operator+( SFXPieConstRef left , SFXGridConstRef right )
Add the specified value to the coordinates of the center of a pie and move this pie.
Types
AtomRec
Structure that represents a pie.
Global Functions
SFXPie::AtomRec * atomic_cast( SFXPie * param )
Convert SFXPie into SFXPie::AtomRec.
SFXPie::AtomRec const * atomic_cast( SFXPie const * param )
Convert SFXPie into SFXPie::AtomRec.
AEEPie * interface_cast( SFXPie * param )
Convert SFXPie into AEEPie.
AEEPie const * interface_cast( SFXPie const * param )
Convert SFXPie into AEEPie.
Bool operator==( SFXPieConstRef left , SFXPieConstRef right )
Check the "==" relation.
SFXPie operator-( SFXPieConstRef left , SFXGridConstRef right )
Subtract the specified value from the coordinates of the center of a pie and move this pie.
Bool operator!=( SFXPieConstRef left , SFXPieConstRef right )
Check the "!=" relation.
SFXPie operator+( SFXPieConstRef left , SFXGridConstRef right )
Add the specified value to the coordinates of the center of a pie and move this pie.

SFXPie::SFXPie
Constructor of the SFXPie class.
[ public, explicit ]
SFXPie(Void);
[ public ]
SFXPie(
    SFXPieConstRef param   // source pie
);
[ public, explicit ]
SFXPie(
    SFXCircleConstRef circle   // source circle
    SInt16 start               // beginning angle
    SInt16 arc                 // extent angle
);
[ public, explicit ]
SFXPie(
    SFXPixelConstRef origin   // coordinates of center
    SInt16 radius             // radius
    SInt16 start              // beginning angle
    SInt16 arc                // extent angle
);
[ public, explicit ]
SFXPie(
    SInt16 x        // X coordinate of center
    SInt16 y        // Y coordinate of center
    SInt16 radius   // radius
    SInt16 start    // beginning angle
    SInt16 arc      // extent angle
);
[ public, explicit ]
SFXPie(
    SFXCircleConstRef circle   // source circle
);
[ public, explicit ]
SFXPie(
    SFXArcConstRef arc   // source arc
);

Description

If the argument is set by SFXCircle class, the beginning angle will be 0 degree, and the extent angle will be 360 degrees.


SFXPie::AddArc
Add the specified value to the extent angle.
[ public ]
SFXPieRef AddArc(
    SInt16 param   // value to add to the extent angle
);

Reference

SFXPie::AddOrigin | SFXPie::AddRadius | SFXPie::AddStart | SFXPie::AddX | SFXPie::AddY | SFXPie::SubArc | SFXPie::MulArc | SFXPie::DivArc | SFXPie::ModArc | SFXPie::NegArc


SFXPie::AddOrigin
Add the specified value to the coordinates of the center.
[ public ]
SFXPieRef AddOrigin(
    SFXPixelConstRef param   // value to add to the coordinates of the center
);
[ public ]
SFXPieRef AddOrigin(
    SInt16 x   // value to add to the X coordinate of the center
    SInt16 y   // value to add to the Y coordinate of the center
);

Reference

SFXPie::AddArc | SFXPie::AddX | SFXPie::AddY | SFXPie::AddRadius | SFXPie::AddStart | SFXPie::SubOrigin | SFXPie::MulOrigin | SFXPie::DivOrigin | SFXPie::ModOrigin | SFXPie::NegOrigin


SFXPie::AddRadius
Add the specified value to the radius.
[ public ]
SFXPieRef AddRadius(
    SInt16 param   // value to add to the radius
);

Reference

SFXPie::AddArc | SFXPie::AddX | SFXPie::AddY | SFXPie::AddOrigin | SFXPie::AddStart | SFXPie::SubRadius | SFXPie::MulRadius | SFXPie::DivRadius | SFXPie::ModRadius | SFXPie::NegRadius


SFXPie::AddStart
Add the specified value to the beginning angle.
[ public ]
SFXPieRef AddStart(
    SInt16 param   // value to add to the beginning angle
);

Reference

SFXPie::AddArc | SFXPie::AddOrigin | SFXPie::AddRadius | SFXPie::AddX | SFXPie::AddY | SFXPie::SubStart | SFXPie::MulStart | SFXPie::DivStart | SFXPie::ModStart | SFXPie::NegStart


SFXPie::AddX
Add the specified value to the X coordinate of the center.
[ public ]
SFXPieRef AddX(
    SInt16 param   // value to add to the X coordinate of the center
);

Reference

SFXPie::AddArc | SFXPie::AddY | SFXPie::AddOrigin | SFXPie::AddRadius | SFXPie::AddStart | SFXPie::SubX | SFXPie::MulX | SFXPie::DivX | SFXPie::ModX | SFXPie::NegX


SFXPie::AddY
Add the specified value to the Y coordinate of the center.
[ public ]
SFXPieRef AddY(
    SInt16 param   // value to add to the Y coordinate of the center
);

Reference

SFXPie::AddArc | SFXPie::AddX | SFXPie::AddOrigin | SFXPie::AddRadius | SFXPie::AddStart | SFXPie::SubY | SFXPie::MulY | SFXPie::DivY | SFXPie::ModY | SFXPie::NegY


SFXPie::DivArc
Divide the extent angle by the specified value.
[ public ]
SFXPieRef DivArc(
    SInt16 param   // divide the extent angle by this value
);

Description

The behaviour is not defined when the value of param argument is 0.

Reference

SFXPie::AddArc | SFXPie::SubArc | SFXPie::MulArc | SFXPie::ModOrigin | SFXPie::ModStart | SFXPie::ModX | SFXPie::ModY | SFXPie::ModArc | SFXPie::NegArc


SFXPie::DivOrigin
Divide the coordinates of the center by the specified value.
[ public ]
SFXPieRef DivOrigin(
    SInt16 x   // divide X coordinate by this value
    SInt16 y   // divide Y coordinate by this value
);
[ public ]
SFXPieRef DivOrigin(
    SInt16 param   // divide the coordinates by this value
);

Description

The behaviour is not defined when the value of x, y, or param argument is 0.

Reference

SFXPie::AddOrigin | SFXPie::SubOrigin | SFXPie::MulOrigin | SFXPie::DivArc | SFXPie::DivX | SFXPie::DivY | SFXPie::DivRadius | SFXPie::DivStart | SFXPie::ModOrigin | SFXPie::NegOrigin


SFXPie::DivRadius
Divide the radius by the specified value.
[ public ]
SFXPieRef DivRadius(
    SInt16 param   // divide the radius by this value
);

Description

The behaviour is not defined when the value of param argument is 0.

Reference

SFXPie::AddRadius | SFXPie::SubRadius | SFXPie::MulRadius | SFXPie::DivArc | SFXPie::DivX | SFXPie::DivY | SFXPie::DivOrigin | SFXPie::DivStart | SFXPie::ModRadius | SFXPie::NegRadius


SFXPie::DivStart
Divide the beginning angle by the specified value.
[ public ]
SFXPieRef DivStart(
    SInt16 param   // divide the beginning angle by this value
);

Description

The behaviour is not defined when the value of param argument is 0.

Reference

SFXPie::AddStart | SFXPie::SubStart | SFXPie::MulStart | SFXPie::DivArc | SFXPie::DivOrigin | SFXPie::DivRadius | SFXPie::DivX | SFXPie::DivY | SFXPie::ModStart | SFXPie::NegStart


SFXPie::DivX
Divide the X coordinate of the center by the specified value.
[ public ]
SFXPieRef DivX(
    SInt16 param   // divide X coordinate by this value
);

Description

The behaviour is not defined when the value of param argument is 0.

Reference

SFXPie::AddX | SFXPie::SubX | SFXPie::MulX | SFXPie::DivArc | SFXPie::DivY | SFXPie::DivOrigin | SFXPie::DivRadius | SFXPie::DivStart | SFXPie::ModX | SFXPie::NegX


SFXPie::DivY
Divide Y coordinate of the center by the specified value.
[ public ]
SFXPieRef DivY(
    SInt16 param   // divide Y coordinate by this value
);

Description

The behaviour is not defined when the value of param argument is 0.

Reference

SFXPie::AddY | SFXPie::SubY | SFXPie::MulY | SFXPie::DivArc | SFXPie::DivX | SFXPie::DivOrigin | SFXPie::DivRadius | SFXPie::DivStart | SFXPie::ModY | SFXPie::NegY


SFXPie::EmptyInstance
Get an empty pie.
[ public, static ]
SFXPieConstRef EmptyInstance(Void);

Return value

Return an empty SFXPie instance, which means this shape has no area.

Description

A shape has no area if the value of a length-related variable is less than or equals 0. This instance is used mainly as initial value of the assignment statement or return value of the shape-related function.


SFXPie::Equals
Check whether this pie equals the specified pie or not.
[ public, const ]
Bool Equals(
    SFXPieConstRef param   // pie to compare
);
[ public, const ]
Bool Equals(
    SFXCircleConstRef circle   // circle to compare
    SInt16 start               // beginning angle
    SInt16 arc                 // extent angle
);
[ public, const ]
Bool Equals(
    SFXPixelConstRef origin   // coordinates of center of the pie to compare
    SInt16 radius             // radius of the pie to compare
    SInt16 start              // beginning angle of the pie to compare
    SInt16 arc                // extent angle of the pie to compare
);
[ public, const ]
Bool Equals(
    SInt16 x        // X coordinate of center of the pie to compare
    SInt16 y        // Y coordinate of center of the pie to compare
    SInt16 radius   // radius of the pie to compare
    SInt16 start    // beginning angle of the pie to compare
    SInt16 arc      // extent angle of the pie to compare
);

Return value

  • If yes: true
  • Otherwise: false

Reference

operator== | operator!=


SFXPie::GetArc
Get the extent angle.
[ public, const ]
SInt16 GetArc(Void);

Reference

SFXPie::GetOrigin | SFXPie::GetRadius | SFXPie::GetStart | SFXPie::GetX | SFXPie::GetY | SFXPie::SetArc


SFXPie::GetOrigin
Get the coordinates of the center.
[ public, const ]
SFXPixelConstRef GetOrigin(Void);

Reference

SFXPie::GetArc | SFXPie::GetX | SFXPie::GetY | SFXPie::GetRadius | SFXPie::GetStart | SFXPie::SetOrigin


SFXPie::GetRadius
Get the radius.
[ public, const ]
SInt16 GetRadius(Void);

Reference

SFXPie::GetArc | SFXPie::GetX | SFXPie::GetY | SFXPie::GetOrigin | SFXPie::GetStart | SFXPie::SetRadius


SFXPie::GetStart
Get the beginning angle.
[ public, const ]
SInt16 GetStart(Void);

Reference

SFXPie::GetArc | SFXPie::GetOrigin | SFXPie::GetRadius | SFXPie::GetX | SFXPie::GetY | SFXPie::SetStart


SFXPie::GetX
Get the X coordinate of the center.
[ public, const ]
SInt16 GetX(Void);

Reference

SFXPie::GetArc | SFXPie::GetY | SFXPie::GetOrigin | SFXPie::GetRadius | SFXPie::SetX


SFXPie::GetY
Get the Y coordinate of the center.
[ public, const ]
SInt16 GetY(Void);

Reference

SFXPie::GetArc | SFXPie::GetX | SFXPie::GetOrigin | SFXPie::GetRadius | SFXPie::SetY


SFXPie::IsEmpty
Check whether this pie is empty or not.
[ public, const ]
Bool IsEmpty(Void);

Return value

  • If yes: true
  • Otherwise: false

Description

The pie is empty if the radius is equal to or less than 0, or the extent angle is 0.

Reference

SFXPie::Normalize


SFXPie::ModArc
Set the extent angle to the remainder of the division of this extent angle by the specified value.
[ public ]
SFXPieRef ModArc(
    SInt16 param   // divide the extent angle by this value
);

Description

The behaviour is not defined when the value of param argument is 0.

Reference

SFXPie::AddArc | SFXPie::SubArc | SFXPie::MulArc | SFXPie::DivArc | SFXPie::ModOrigin | SFXPie::ModRadius | SFXPie::ModStart | SFXPie::ModX | SFXPie::ModY | SFXPie::NegArc


SFXPie::ModOrigin
Set the coordinates of the center to the remainder of the division of this coordinates by the specified value.
[ public ]
SFXPieRef ModOrigin(
    SInt16 x   // divide the X coordinate by this value
    SInt16 y   // divide the Y coordinate by this value
);
[ public ]
SFXPieRef ModOrigin(
    SInt16 param   // divide the coordinates by this value
);

Description

The behaviour is not defined when the value of x, y, or param argument is 0.

Reference

SFXPie::AddOrigin | SFXPie::SubOrigin | SFXPie::MulOrigin | SFXPie::DivOrigin | SFXPie::ModArc | SFXPie::ModX | SFXPie::ModY | SFXPie::ModRadius | SFXPie::ModStart | SFXPie::NegOrigin


SFXPie::ModRadius
Set the radius to the remainder of the division of this radius by the specified value.
[ public ]
SFXPieRef ModRadius(
    SInt16 param   // value to divide from the radius
);

Description

The behaviour is not defined when the value of param argument is 0.

Reference

SFXPie::AddRadius | SFXPie::SubRadius | SFXPie::MulRadius | SFXPie::DivRadius | SFXPie::ModArc | SFXPie::ModX | SFXPie::ModY | SFXPie::ModOrigin | SFXPie::ModStart | SFXPie::NegRadius


SFXPie::ModStart
Set the beginning angle to the remainder of the division of the beginning angle by the specified value.
[ public ]
SFXPieRef ModStart(
    SInt16 param   // divide the beginning angle by this value
);

Description

The behaviour is not defined when the value of param argument is 0.

Reference

SFXPie::AddStart | SFXPie::SubStart | SFXPie::MulStart | SFXPie::DivStart | SFXPie::ModArc | SFXPie::ModOrigin | SFXPie::ModX | SFXPie::ModY | SFXPie::NegStart


SFXPie::ModX
Set the X coordinate of the center to the remainder of the division of this X coordinate by the specified value.
[ public ]
SFXPieRef ModX(
    SInt16 param   // divide the X coordinate by this value
);

Description

The behaviour is not defined when the value of param argument is 0.

Reference

SFXPie::AddX | SFXPie::SubX | SFXPie::MulX | SFXPie::DivX | SFXPie::ModArc | SFXPie::ModY | SFXPie::ModOrigin | SFXPie::ModRadius | SFXPie::ModStart | SFXPie::NegX


SFXPie::ModY
Set the Y coordinate of the center to the remainder of the division of this Y coordinate by the specified value.
[ public ]
SFXPieRef ModY(
    SInt16 param   // divide the Y coordinate by this value
);

Description

The behaviour is not defined when the value of param argument is 0.

Reference

SFXPie::AddY | SFXPie::SubY | SFXPie::MulY | SFXPie::DivY | SFXPie::ModX | SFXPie::ModOrigin | SFXPie::ModRadius | SFXPie::NegY


SFXPie::MulArc
Multiply the extent angle by the specified value.
[ public ]
SFXPieRef MulArc(
    SInt16 param   // value to multiply with the extent angle
);

Reference

SFXPie::AddArc | SFXPie::SubArc | SFXPie::MulOrigin | SFXPie::MulRadius | SFXPie::MulStart | SFXPie::MulX | SFXPie::MulY | SFXPie::DivArc | SFXPie::ModArc | SFXPie::NegArc


SFXPie::MulOrigin
Multiply the coordinates of the center by the specified value.
[ public ]
SFXPieRef MulOrigin(
    SInt16 x   // value to multiply with the X coordinate of the center
    SInt16 y   // value to multiply with the Y coordinate of the center
);
[ public ]
SFXPieRef MulOrigin(
    SInt16 param   // value to multiply with the coordinates of the center
);

Reference

SFXPie::AddOrigin | SFXPie::SubOrigin | SFXPie::MulArc | SFXPie::MulX | SFXPie::MulY | SFXPie::MulRadius | SFXPie::MulStart | SFXPie::DivOrigin | SFXPie::ModOrigin | SFXPie::NegOrigin


SFXPie::MulRadius
Multiply the radius by the specified value.
[ public ]
SFXPieRef MulRadius(
    SInt16 param   // value to multiply with the radius
);

Reference

SFXPie::AddRadius | SFXPie::SubRadius | SFXPie::MulArc | SFXPie::MulX | SFXPie::MulY | SFXPie::MulOrigin | SFXPie::MulStart | SFXPie::DivRadius | SFXPie::ModRadius | SFXPie::NegRadius


SFXPie::MulStart
Multiply the beginning angle by the specified value.
[ public ]
SFXPieRef MulStart(
    SInt16 param   // value to multiply with the beginning angle
);

Reference

SFXPie::AddStart | SFXPie::SubStart | SFXPie::MulArc | SFXPie::MulRadius | SFXPie::MulOrigin | SFXPie::MulX | SFXPie::MulY | SFXPie::DivStart | SFXPie::ModStart | SFXPie::NegStart


SFXPie::MulX
Multiply the X coordinate of the center by the specified value.
[ public ]
SFXPieRef MulX(
    SInt16 param   // value to multiply with the X coordinate of the center
);

Reference

SFXPie::AddX | SFXPie::SubX | SFXPie::MulArc | SFXPie::MulY | SFXPie::MulOrigin | SFXPie::MulRadius | SFXPie::MulStart | SFXPie::DivX | SFXPie::ModX | SFXPie::NegX


SFXPie::MulY
Multiply the Y coordinate of the center by the specified value.
[ public ]
SFXPieRef MulY(
    SInt16 param   // value to multiply with the Y coordinate of the center
);

Reference

SFXPie::AddY | SFXPie::SubY | SFXPie::MulArc | SFXPie::MulX | SFXPie::MulOrigin | SFXPie::MulRadius | SFXPie::MulStart | SFXPie::DivY | SFXPie::ModY | SFXPie::NegY


SFXPie::NegArc
Negate the sign of the extent angle.
[ public ]
SFXPieRef NegArc(Void);

Reference

SFXPie::AddArc | SFXPie::SubArc | SFXPie::MulArc | SFXPie::DivArc | SFXPie::ModArc | SFXPie::NegOrigin | SFXPie::NegRadius | SFXPie::NegStart | SFXPie::NegX | SFXPie::NegY


SFXPie::NegOrigin
Negate the sign of the coordinates of the center.
[ public ]
SFXPieRef NegOrigin(Void);

Reference

SFXPie::AddOrigin | SFXPie::SubOrigin | SFXPie::MulOrigin | SFXPie::DivOrigin | SFXPie::ModOrigin | SFXPie::NegArc | SFXPie::NegX | SFXPie::NegY | SFXPie::NegRadius | SFXPie::NegStart


SFXPie::NegRadius
Negate the sign of the radius.
[ public ]
SFXPieRef NegRadius(Void);

Reference

SFXPie::AddRadius | SFXPie::SubRadius | SFXPie::MulRadius | SFXPie::DivRadius | SFXPie::ModRadius | SFXPie::NegArc | SFXPie::NegX | SFXPie::NegY | SFXPie::NegOrigin | SFXPie::NegStart


SFXPie::NegStart
Negate the sign of the beginning angle.
[ public ]
SFXPieRef NegStart(Void);

Reference

SFXPie::AddStart | SFXPie::SubStart | SFXPie::MulStart | SFXPie::DivStart | SFXPie::ModStart | SFXPie::NegArc | SFXPie::NegOrigin | SFXPie::NegRadius | SFXPie::NegX | SFXPie::NegY


SFXPie::NegX
Negate the sign of the X coordinate of the center.
[ public ]
SFXPieRef NegX(Void);

Reference

SFXPie::AddX | SFXPie::SubX | SFXPie::MulX | SFXPie::DivX | SFXPie::ModX | SFXPie::NegArc | SFXPie::NegY | SFXPie::NegOrigin | SFXPie::NegRadius | SFXPie::GetStart


SFXPie::NegY
Negate the sign of the Y coordinate of the center.
[ public ]
SFXPieRef NegY(Void);

Reference

SFXPie::AddY | SFXPie::SubY | SFXPie::MulY | SFXPie::DivY | SFXPie::ModY | SFXPie::NegArc | SFXPie::NegX | SFXPie::NegOrigin | SFXPie::NegRadius | SFXPie::NegStart


SFXPie::Normalize
Normalize the pie.
[ public ]
SFXPieRef Normalize(Void);

Description

If the radius is a positive number, do nothing.

If the radius is negative, negate its sign.

Example

SFXPie pie(70, 70, -20, 10, 270);

if(pie.IsEmpty()){     // check whether the pie is empty
                       // this function returns true since the radius is less than 0

    pie.Normalize();   // normalize the pie
}

TRACE("x = %d, y = %d, radius = %d, start = %d, arc = %d", pie.GetX(), pie.GetY(), pie.GetRadius(), pie.GetStart(), pie.GetArc());  // x = 70, y = 70, radius = 20, start = 10, arc = 270

Reference

SFXPie::IsEmpty


SFXPie::Offset
Add the specified value to the coordinates of the center and move this pie.
[ public ]
SFXPieRef Offset(
    SFXGridConstRef param   // value to add to the coordinates of the center
);
[ public ]
SFXPieRef Offset(
    SInt16 x   // value to add to the X coordinate of the center
    SInt16 y   // value to add to the Y coordinate of the center
);

Reference

SFXPie::Unoffset | operator- | operator+


SFXPie::Set
Set the pie.
[ public ]
SFXPieRef Set(
    SFXPieConstRef param   // pie to set
);
[ public ]
SFXPieRef Set(
    SFXCircleConstRef circle   // circle to set
    SInt16 start               // beginning angle to set
    SInt16 arc                 // extent angle to set
);
[ public ]
SFXPieRef Set(
    SFXPixelConstRef origin   // coordinate of the center to set
    SInt16 radius             // radius to set
    SInt16 start              // beginning angle to set
    SInt16 arc                // extent angle to set
);
[ public ]
SFXPieRef Set(
    SInt16 x        // X coordinate of the center to set
    SInt16 y        // Y coordinate of the center to set
    SInt16 radius   // radius to set
    SInt16 start    // beginning angle to set
    SInt16 arc      // extent angle to set
);
[ public ]
SFXPieRef Set(
    SFXCircleConstRef circle   // source circle to set
);
[ public ]
SFXPieRef Set(
    SFXArcConstRef arc   // cource arc to set
);

Description

If the argument is set only by the SFXCircle class, the beginning angle will be 0 degrees,and the extent angle will be 360 degrees.

Reference

SFXPie::operator=


SFXPie::SetArc
Set the extent angle.
[ public ]
SFXPieRef SetArc(
    SInt16 param   // extent angle to set
);

Reference

SFXPie::GetArc | SFXPie::SetOrigin | SFXPie::SetRadius | SFXPie::SetStart | SFXPie::SetX | SFXPie::SetY


SFXPie::SetOrigin
Set the coordinates of the center.
[ public ]
SFXPieRef SetOrigin(
    SFXPixelConstRef param   // coordinates value to set
);
[ public ]
SFXPieRef SetOrigin(
    SInt16 x   // X coordinate value to set
    SInt16 y   // Y coordinate value to set
);

Reference

SFXPie::GetOrigin | SFXPie::SetArc | SFXPie::SetX | SFXPie::SetY | SFXPie::SetRadius | SFXPie::SetStart


SFXPie::SetRadius
Set the radius.
[ public ]
SFXPieRef SetRadius(
    SInt16 param   // radius to set
);

Reference

SFXPie::GetRadius | SFXPie::SetArc | SFXPie::SetX | SFXPie::SetY | SFXPie::SetOrigin | SFXPie::SetStart


SFXPie::SetStart
Set the beginning angle.
[ public ]
SFXPieRef SetStart(
    SInt16 param   // beginning angle to set
);

Reference

SFXPie::GetStart | SFXPie::SetArc | SFXPie::SetOrigin | SFXPie::SetRadius | SFXPie::SetX | SFXPie::SetY


SFXPie::SetX
Set the X coordinate of the center.
[ public ]
SFXPieRef SetX(
    SInt16 param   // X coordinate of the center to set
);

Reference

SFXPie::GetX | SFXPie::SetArc | SFXPie::SetY | SFXPie::SetOrigin | SFXPie::SetRadius | SFXPie::SetStart


SFXPie::SetY
Set the Y coordinate of the center.
[ public ]
SFXPieRef SetY(
    SInt16 param   // Y coordinate of the center to set
);

Reference

SFXPie::GetY | SFXPie::SetArc | SFXPie::SetX | SFXPie::SetOrigin | SFXPie::SetRadius | SFXPie::SetStart


SFXPie::SubArc
Subtract the specified value from the extent angle.
[ public ]
SFXPieRef SubArc(
    SInt16 param   // value to subtract from the extent angle
);

Reference

SFXPie::AddArc | SFXPie::SubOrigin | SFXPie::SubRadius | SFXPie::SubStart | SFXPie::SubX | SFXPie::SubY | SFXPie::MulArc | SFXPie::DivArc | SFXPie::ModArc | SFXPie::NegArc


SFXPie::SubOrigin
Subtract the specified value from the coordinates of the center.
[ public ]
SFXPieRef SubOrigin(
    SFXPixelConstRef param   // value to subtract from the coordinates of the center
);
[ public ]
SFXPieRef SubOrigin(
    SInt16 x   // value to subtract from the X coordinate of the center
    SInt16 y   // value to subtract from the Y coordinate of the center
);

Reference

SFXPie::AddOrigin | SFXPie::SubArc | SFXPie::SubX | SFXPie::SubY | SFXPie::SubRadius | SFXPie::SubStart | SFXPie::MulOrigin | SFXPie::DivOrigin | SFXPie::ModOrigin | SFXPie::NegOrigin


SFXPie::SubRadius
Subtract the specified value from the radius.
[ public ]
SFXPieRef SubRadius(
    SInt16 param   // value to subtract from the radius
);

Reference

SFXPie::AddRadius | SFXPie::SubArc | SFXPie::SubX | SFXPie::SubY | SFXPie::SubOrigin | SFXPie::SubStart | SFXPie::MulRadius | SFXPie::DivRadius | SFXPie::ModRadius | SFXPie::NegRadius


SFXPie::SubStart
Subtract the specified value from the beginning angle.
[ public ]
SFXPieRef SubStart(
    SInt16 param   // value to subtract from the beginning angle
);

Reference

SFXPie::AddStart | SFXPie::SubArc | SFXPie::MulStart | SFXPie::DivStart | SFXPie::ModStart | SFXPie::NegStart


SFXPie::SubX
Subtract the specified value from the X coordinate of the center.
[ public ]
SFXPieRef SubX(
    SInt16 param   // value to subtract from the X coordinate of the center
);

Reference

SFXPie::AddX | SFXPie::SubArc | SFXPie::SubY | SFXPie::SubOrigin | SFXPie::SubRadius | SFXPie::SubStart | SFXPie::MulX | SFXPie::DivX | SFXPie::ModX | SFXPie::NegX


SFXPie::SubY
Subtract the specified value from the Y coordinate of the center.
[ public ]
SFXPieRef SubY(
    SInt16 param   // value to subtract from the Y coordinate of the center
);

Reference

SFXPie::AddY | SFXPie::SubArc | SFXPie::SubX | SFXPie::SubOrigin | SFXPie::SubRadius | SFXPie::SubStart | SFXPie::MulY | SFXPie::DivY | SFXPie::ModY | SFXPie::NegY


SFXPie::Unoffset
Subtract the specified value from the coordinates of the center and move this pie.
[ public ]
SFXPieRef Unoffset(
    SFXGridConstRef param   // value to subtract from the coordinates of the center
);
[ public ]
SFXPieRef Unoffset(
    SInt16 x   // value to subtract from the X coordinate of the center
    SInt16 y   // value to subtract from the Y coordinate of the center
);

Reference

SFXPie::Offset | operator- | operator+


SFXPie::ZeroInstance
Get the instance that represents 0.
[ public, static ]
SFXPieConstRef ZeroInstance(Void);

Description

This function returns the 0 instance, which means that 0 or null is set to all the member variables of its corresponding AtomRec struct.

Example

SFXPie pie(70, 70, 20, 10, 270);

pie = SFXPie::ZeroInstance(); // initialize pie
TRACE("x = %d, y = %d, radius = %d, start = %d, arc = %d", pie.GetX(), pie.GetY(), pie.GetRadius(), pie.GetStart(), pie.GetArc());  // x = 0, y = 0, radius = 0, start = 0, arc = 0

Reference

SFXPie::AtomRec


atomic_cast
Convert SFXPie into SFXPie::AtomRec.
[ public, friend ]
SFXPie::AtomRec * atomic_cast(
    SFXPie * param   // pie to cast
);
[ public, friend ]
SFXPie::AtomRec const * atomic_cast(
    SFXPie const * param   // pie to cast
);

Reference

SFXPie::AtomRec


interface_cast
Convert SFXPie into AEEPie.
[ public, friend ]
AEEPie * interface_cast(
    SFXPie * param   // pie to cast
);
[ public, friend ]
AEEPie const * interface_cast(
    SFXPie const * param   // pie to cast
);

SFXPie::operator=
Assign a pie.
[ public ]
SFXPieRef operator=(
    SFXPieConstRef param   // source pie
);

Reference

SFXPie::Set


operator==
Check the "==" relation.
[ public, friend ]
Bool operator==(
    SFXPieConstRef left    // pie to compare
    SFXPieConstRef right   // pie to compare
);

Return value

  • If yes: true
  • Otherwise: false

Reference

SFXPie::Equals | operator!=


SFXPie::operator-=
Subtract the specified value from the coordinates of the center and move this pie.
[ public ]
SFXPieRef operator-=(
    SFXGridConstRef param   // value to subtract from the coordinates of the center
);

Reference

SFXPie::Unoffset | operator- | SFXPie::operator+=


operator-
Subtract the specified value from the coordinates of the center of a pie and move this pie.
[ public, friend ]
SFXPie operator-(
    SFXPieConstRef left     // pie to move
    SFXGridConstRef right   // value to subtract from the coordinates of the center of the pie
);

Reference

SFXPie::Unoffset | SFXPie::operator-= | operator+


operator!=
Check the "!=" relation.
[ public, friend ]
Bool operator!=(
    SFXPieConstRef left    // pie to compare
    SFXPieConstRef right   // pie to compare
);

Return value

  • If yes: true
  • Otherwise: false

Reference

SFXPie::Equals | operator==


SFXPie::operator+=
Add the specified value to the coordinates of the center and move this pie.
[ public ]
SFXPieRef operator+=(
    SFXGridConstRef param   // value to add to the coordinates of the center
);

Reference

SFXPie::Offset | SFXPie::operator-= | operator+


operator+
Add the specified value to the coordinates of the center of a pie and move this pie.
[ public, friend ]
SFXPie operator+(
    SFXPieConstRef left     // pie to move
    SFXGridConstRef right   // value to add to the coordinates of the center of the pie
);

Reference

SFXPie::Offset | operator- | SFXPie::operator+=


SFXPie::AtomRec
Structure that represents a pie.
struct AtomRec {
  SFXCircle::AtomRec  circle;  // circle
  SInt16              start;   // beginning angle
  SInt16              arc;     // extent angle
};