![]() ![]() ![]()
|
BREW C++ Class Library & GUI Framework & XML Middleware : SophiaFramework 4.1 |

SFXClip is the class that handles the clipping region.
| Constructor/Destructor |
|---|
|
SFXClip( Void ) Constructor of SFXClip class.
|
|
SFXClip(
SFXClipConstRef param
) Constructor of SFXClip class.
|
|
SFXClip(
SFXRectangleConstRef rectangle
) Constructor of SFXClip class.
|
|
SFXClip(
SFXCircleConstRef circle
) Constructor of SFXClip class.
|
|
SFXClip(
SFXEllipseConstRef ellipse
) Constructor of SFXClip class.
|
|
SFXClip(
SFXPieConstRef pie
) Constructor of SFXClip class.
|
|
SFXClip(
SFXTriangleConstRef triangle
) Constructor of SFXClip class.
|
|
SFXClip(
SFXPolygonConstRef polygon
) Constructor of SFXClip class.
|
| Public Functions | |
|---|---|
| static SFXClipConstRef |
EmptyInstance( Void ) Get an empty clipping region.
|
| Bool |
Equals(
SFXClipConstRef param
) Check whether this clipping region equals a specified clipping region or not.
|
| SFXCircleConstRef |
GetCircle( Void ) Get the circle.
|
| SFXEllipseConstRef |
GetEllipse( Void ) Get the ellipse.
|
| SFXPieConstRef |
GetPie( Void ) Get the pie.
|
| SFXPolygonConstRef |
GetPolygon( Void ) Get the polygon.
|
| SFXRectangleConstRef |
GetRectangle( Void ) Get the rectangle.
|
| SFXTriangleConstRef |
GetTriangle( Void ) Get the triangle.
|
| AEEClipShape |
GetType( Void ) Get the shape of the clipping region.
|
| Bool |
IsCircle( Void ) Check whether the clipping region is a circle or not.
|
| Bool |
IsEllipse( Void ) Check whether the clipping region is an ellipse or not.
|
| Bool |
IsEmpty( Void ) Check whether the clipping region has a valid area or not.
|
| Bool |
IsNone( Void ) Check whether the shape of the clipping region is undefined or not.
|
| Bool |
IsPie( Void ) Check whether the clipping region is a pie or not.
|
| Bool |
IsPolygon( Void ) Check whether the clipping region is a polygon or not.
|
| Bool |
IsRectangle( Void ) Check whether the clipping region is a rectangle or not.
|
| Bool |
IsTriangle( Void ) Check whether the clipping region is a triangle or not.
|
| static SFXClipConstRef |
NoneInstance( Void ) Set the shape of clipping region to undefined.
|
| SFXClipRef |
Normalize( Void ) Normalize the clipping region.
|
| SFXClipRef |
Offset(
SFXGridConstRef param
) Offset( SInt16 x , SInt16 y )
Add a specified value to the coordinates of the origin point or the vertices and move this clipping region.
|
| SFXClipRef |
Set(
SFXClipConstRef param
) Set( SFXPolygonConstRef polygon ) Set( SFXTriangleConstRef triangle ) Set( SFXPieConstRef pie ) Set( SFXEllipseConstRef ellipse ) Set( SFXCircleConstRef circle ) Set( SFXRectangleConstRef rectangle ) Set the clipping region.
|
| SFXClipRef |
SetNone( Void ) Set the shape of clipping region to be undefined.
|
| SFXClipRef |
Unoffset(
SFXGridConstRef param
) Unoffset( SInt16 x , SInt16 y )
Subtract a specified value from the coordinates of the origin point or a vertex and move this clipping region.
|
| SFXClipRef |
operator+=(
SFXGridConstRef param
)
Add a specified value to the coordinates of the origin point or a vertex and move this clipping region.
|
| SFXClipRef |
operator-=(
SFXGridConstRef param
)
Subtract a specified value from the coordinates of the origin point or a vertex and move this clipping region.
|
| SFXClipRef |
operator=(
SFXClipConstRef param
) Assign a clipping region.
|
| SFXClip::AtomRec * |
atomic_cast(
SFXClip * param
) Convert SFXClip into SFXClip::AtomRec.
|
| SFXClip::AtomRec const * |
atomic_cast(
SFXClip const * param
) Convert SFXClip into SFXClip::AtomRec.
|
| AEEClip * |
interface_cast(
SFXClip * param
) Convert SFXClip into AEEClip.
|
| AEEClip const * |
interface_cast(
SFXClip const * param
) Convert SFXClip into AEEClip.
|
| Bool |
operator==(
SFXClipConstRef left
, SFXClipConstRef right
) Check the "==" relation.
|
| SFXClip |
operator-(
SFXClipConstRef left
, SFXGridConstRef right
)
Subtract a specified value from the coordinates of the origin point or a vertex and move this clipping region.
|
| Bool |
operator!=(
SFXClipConstRef left
, SFXClipConstRef right
) Check the "!=" relation.
|
| SFXClip |
operator+(
SFXClipConstRef left
, SFXGridConstRef right
)
Add a specified value to the coordinates of the origin point or a vertex and move this clipping region.
|
| Types |
|---|
|
AtomRec
Structure that represents a clipping region.
|
| Global Functions | |
|---|---|
| SFXClip::AtomRec * |
atomic_cast(
SFXClip * param
) Convert SFXClip into SFXClip::AtomRec.
|
| SFXClip::AtomRec const * |
atomic_cast(
SFXClip const * param
) Convert SFXClip into SFXClip::AtomRec.
|
| AEEClip * |
interface_cast(
SFXClip * param
) Convert SFXClip into AEEClip.
|
| AEEClip const * |
interface_cast(
SFXClip const * param
) Convert SFXClip into AEEClip.
|
| Bool |
operator==(
SFXClipConstRef left
, SFXClipConstRef right
) Check the "==" relation.
|
| SFXClip |
operator-(
SFXClipConstRef left
, SFXGridConstRef right
)
Subtract a specified value from the coordinates of the origin point or a vertex and move this clipping region.
|
| Bool |
operator!=(
SFXClipConstRef left
, SFXClipConstRef right
) Check the "!=" relation.
|
| SFXClip |
operator+(
SFXClipConstRef left
, SFXGridConstRef right
)
Add a specified value to the coordinates of the origin point or a vertex and move this clipping region.
|
[ public, explicit ] SFXClip(Void);
[ public ]
SFXClip(
SFXClipConstRef param // source clipping region
);
[ public, explicit ]
SFXClip(
SFXRectangleConstRef rectangle // source rectangle
);
[ public, explicit ]
SFXClip(
SFXCircleConstRef circle // source circle
);
[ public, explicit ]
SFXClip(
SFXEllipseConstRef ellipse // source ellipse
);
[ public, explicit ]
SFXClip(
SFXPieConstRef pie // source pie
);
[ public, explicit ]
SFXClip(
SFXTriangleConstRef triangle // source triangle
);
[ public, explicit ]
SFXClip(
SFXPolygonConstRef polygon // source polygon
);
SFXRectangle | SFXCircle | SFXEllipse | SFXPie | SFXTriangle | SFXPolygon | SFXClip::operator=
[ public, static ] SFXClipConstRef EmptyInstance(Void);
Return an empty SFXClip instance, which means this shape has no area.
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.
[ public, const ] Bool Equals( SFXClipConstRef param // clipping region to compare );
[ public, const ] SFXCircleConstRef GetCircle(Void);
The operation when the clipping region is not circle has not been defined yet.
SFXCircle | SFXClip::Set | SFXClip::GetEllipse | SFXClip::GetPie | SFXClip::GetPolygon | SFXClip::GetRectangle | SFXClip::GetTriangle | SFXClip::GetType
[ public, const ] SFXEllipseConstRef GetEllipse(Void);
The operation when the clipping region is not ellipse has not been defined yet.
SFXEllipse | SFXClip::Set | SFXClip::GetCircle | SFXClip::GetPie | SFXClip::GetPolygon | SFXClip::GetRectangle | SFXClip::GetTriangle | SFXClip::GetType
[ public, const ] SFXPieConstRef GetPie(Void);
The operation when the clipping region is not pie has not been defined yet.
SFXPie | SFXClip::Set | SFXClip::GetCircle | SFXClip::GetEllipse | SFXClip::GetPolygon | SFXClip::GetRectangle | SFXClip::GetTriangle | SFXClip::GetType
[ public, const ] SFXPolygonConstRef GetPolygon(Void);
The operation when the clipping region is not polygon has not been defined yet.
SFXPolygon | SFXClip::Set | SFXClip::GetCircle | SFXClip::GetEllipse | SFXClip::GetPie | SFXClip::GetRectangle | SFXClip::GetTriangle | SFXClip::GetType
[ public, const ] SFXRectangleConstRef GetRectangle(Void);
The operation when the clipping region is not rectangle has not been defined yet.
SFXRectangle | SFXClip::Set | SFXClip::GetCircle | SFXClip::GetEllipse | SFXClip::GetPie | SFXClip::GetPolygon | SFXClip::GetTriangle | SFXClip::GetType
[ public, const ] SFXTriangleConstRef GetTriangle(Void);
The operation when the clipping region is not triangle has not been defined yet.
SFXTriangle | SFXClip::Set | SFXClip::GetCircle | SFXClip::GetEllipse | SFXClip::GetPie | SFXClip::GetPolygon | SFXClip::GetRectangle | SFXClip::GetType
[ public, const ] AEEClipShape GetType(Void);
Return the next value.
| Value | Meaning |
|---|---|
| CLIPPING_NONE | shape has not been defined |
| CLIPPING_CIRCLE | circle |
| CLIPPING_ELLIPSE | ellipse |
| CLIPPING_PIE | pie |
| CLIPPING_POLYGON | polygon |
| CLIPPING_TRIANGLE | triangle |
| CLIPPING_RECT | rectangle |
SFXClip::Set | SFXClip::GetCircle | SFXClip::GetEllipse | SFXClip::GetPie | SFXClip::GetPolygon | SFXClip::GetRectangle | SFXClip::GetTriangle
[ public, const ] Bool IsCircle(Void);
SFXClip::IsEllipse | SFXClip::IsNone | SFXClip::IsPie | SFXClip::IsPolygon | SFXClip::IsRectangle | SFXClip::IsTriangle
[ public, const ] Bool IsEllipse(Void);
SFXClip::IsCircle | SFXClip::IsNone | SFXClip::IsPie | SFXClip::IsPolygon | SFXClip::IsRectangle | SFXClip::IsTriangle
[ public, const ] Bool IsEmpty(Void);
For the clipping region that is circle, ellipse, pie, polygon, triangle, or rectangle, if it has a valid area, the function returns true.
SFXRectangle::IsEmpty | SFXCircle::IsEmpty | SFXEllipse::IsEmpty | SFXPie::IsEmpty | SFXTriangle::IsEmpty | SFXPolygon::IsEmpty
[ public, const ] Bool IsNone(Void);
This function returns true only if the type is CLIPPING_NONE.
[ public, const ] Bool IsPie(Void);
SFXPie | SFXClip::IsCircle | SFXClip::IsEllipse | SFXClip::IsNone | SFXClip::IsPolygon | SFXClip::IsRectangle | SFXClip::IsTriangle
[ public, const ] Bool IsPolygon(Void);
SFXPolygon | SFXClip::IsCircle | SFXClip::IsEllipse | SFXClip::IsNone | SFXClip::IsPie | SFXClip::IsRectangle | SFXClip::IsTriangle
[ public, const ] Bool IsRectangle(Void);
SFXRectangle | SFXClip::IsCircle | SFXClip::IsEllipse | SFXClip::IsNone | SFXClip::IsPie | SFXClip::IsPolygon | SFXClip::IsTriangle
[ public, const ] Bool IsTriangle(Void);
SFXTriangle | SFXClip::IsCircle | SFXClip::IsEllipse | SFXClip::IsNone | SFXClip::IsPie | SFXClip::IsPolygon | SFXClip::IsRectangle
[ public, static ] SFXClipConstRef NoneInstance(Void);
For an area that the shape is undefined, get the instance that represents 0.
[ public ] SFXClipRef Normalize(Void);
To make the clipping region to be valid, reverse the sign of the negative values.
SFXClip clip; SFXRectangle rect(10, 10, -50, 50); clip.Set(rect); // set the clipping region to a rectangle if(clip.IsEmpty()){ // check whether the clip is empty // this function returns true since the width is less tan 0 clip.Normalize(); // normalize the clip }
SFXRectangle::Normalize | SFXCircle::Normalize | SFXEllipse::Normalize | SFXPie::Normalize | SFXTriangle::Normalize | SFXPolygon::Normalize
[ public ] SFXClipRef Offset( SFXGridConstRef param // value to add to the coordinates );
[ public ] SFXClipRef Offset( SInt16 x // value to add to the X coordinate SInt16 y // value to add to the Y coordinate );
[ public ] SFXClipRef Set( SFXClipConstRef param // clipping region to set );
[ public ] SFXClipRef Set( SFXRectangleConstRef rectangle // rectangle to set );
[ public ] SFXClipRef Set( SFXCircleConstRef circle // circle to set );
[ public ] SFXClipRef Set( SFXEllipseConstRef ellipse // ellipse to set );
[ public ] SFXClipRef Set( SFXPieConstRef pie // pie to set );
[ public ] SFXClipRef Set( SFXTriangleConstRef triangle // triangle to set );
[ public ] SFXClipRef Set( SFXPolygonConstRef polygon // polygon to set );
SFXRectangle | SFXCircle | SFXEllipse | SFXPie | SFXTriangle | SFXPolygon | SFXClip::operator=
[ public ] SFXClipRef SetNone(Void);
[ public ] SFXClipRef Unoffset( SFXGridConstRef param // value to subtract from the coordinates );
[ public ] SFXClipRef Unoffset( SInt16 x // value to subtract from the X coordinate SInt16 y // value to subtract from the Y coordinate );
[ public, friend ]
SFXClip::AtomRec * atomic_cast(
SFXClip * param // clipping area to cast
);
[ public, friend ]
SFXClip::AtomRec const * atomic_cast(
SFXClip const * param // clipping area to cast
);
[ public, friend ] AEEClip * interface_cast( SFXClip * param // clipping region to cast );
[ public, friend ] AEEClip const * interface_cast( SFXClip const * param // clipping region to cast );
[ public ] SFXClipRef operator=( SFXClipConstRef param // source clipping region );
[ public, friend ] Bool operator==( SFXClipConstRef left // clipping region to compare SFXClipConstRef right // clipping region to compare );
[ public ] SFXClipRef operator-=( SFXGridConstRef param // value to subtract from the coordinates );
[ public, friend ] SFXClip operator-( SFXClipConstRef left // clipping region to move SFXGridConstRef right // value to subtract from the coordinates );
[ public, friend ] Bool operator!=( SFXClipConstRef left // clipping region to compare SFXClipConstRef right // clipping region to compare );
[ public ] SFXClipRef operator+=( SFXGridConstRef param // value to add to the coordinates );
[ public, friend ] SFXClip operator+( SFXClipConstRef left // clipping region to move SFXGridConstRef right // value to add to the coordinates );
struct AtomRec {
AEEClipShape type;
union {
SFXRectangle::AtomRec rectangle;
SFXCircle::AtomRec circle;
SFXEllipse::AtomRec ellipse;
SFXPie::AtomRec pie;
SFXTriangle::AtomRec triangle;
SFXPolygon::AtomRec polygon;
};
};
|
Copyright (C) 2002 - 2009 Sophia Cradle, Inc. All Rights Reserved. |
![]() ![]() ![]()
|