#include <PSPFGraphic.h>
Inherits PSPFObject.
Inherited by PSPFAnimation, PSPFImage, PSPFSplash, and PSPFSprite.
Public Member Functions | |
virtual | ~PSPFGraphic () |
PSPFGraphic. | |
virtual void | setPos (int pX, int pY) |
setPos | |
virtual void | setScale (int sX, int sY) |
setScale | |
virtual void | setPivot (int pX, int pY) |
setPivot | |
virtual void | setAngle (int ang) |
setAngle | |
virtual void | Draw () |
Draw. | |
virtual void | DrawXY (int pX, int pY) |
DrawXY. | |
virtual int | getPosX () |
getPosX | |
virtual int | getPosY () |
getPosY | |
virtual int | getSizeX () |
getSizeX | |
virtual int | getSizeY () |
getSizeY | |
virtual int | getPivotX () |
getPivotX | |
virtual int | getPivotY () |
getPivotY | |
virtual int | getAngle () |
getAngle | |
virtual int | getScaleX () |
getScaleX | |
virtual int | getScaleY () |
getScaleY |
virtual PSPFGraphic::~PSPFGraphic | ( | ) | [virtual] |
Create an instance of the class PSPFGraphic. This class is abstract and serve as base for the specification of the other classes (PSPFImage, PSPFAnimation, PSPFSprite and other). ~PSPFGraphic
desctruct PSPFGraphic.
virtual void PSPFGraphic::setPos | ( | int | pX, | |
int | pY | |||
) | [virtual] |
setPos
permit to define the position of the graphc pivot. Should be specified the coordinates X and Y as parameters. The screen of PSP possesses the resolution of 480x272. The position is used to draw the graphic in the screen.
pX | Pivot position in X. | |
pY | Pivot position in Y. |
getPosY Function that return the position Y of the graph.
Reimplemented in PSPFAnimation, PSPFAnimationFrame, PSPFAnimationSheet, PSPFImage, and PSPFSprite.
virtual void PSPFGraphic::setScale | ( | int | sX, | |
int | sY | |||
) | [virtual] |
setScale
This method permits the graphic to be scale. enough to inform the new sizes. The original size won't be altered, just as it will be drawn.
sX | Size in X. | |
sY | Size in Y. |
getScaleY Function that return the image size scaled in Y.
Reimplemented in PSPFAnimation, PSPFAnimationFrame, PSPFAnimationSheet, PSPFImage, and PSPFSprite.
virtual void PSPFGraphic::setPivot | ( | int | pX, | |
int | pY | |||
) | [virtual] |
setPivot
Define the graphc pivot. The pivot and the point of graphc reference. This point is used for the displacement operations and graphc rotation. Its is relative the position (0,0) of the graph.
pX | Pivot Position X. | |
pY | Pivot Position Y. |
getPivotY Function that return the pivot position in Y.
Reimplemented in PSPFAnimation, PSPFAnimationFrame, PSPFAnimationSheet, PSPFImage, and PSPFSprite.
virtual void PSPFGraphic::setAngle | ( | int | ang | ) | [virtual] |
setAngle
This function defines the grephc angle. Positive values rotate the graph in the counterclockwise sense, and value negative in the hourly sense.
ang | Angle of graphc rotation. |
Reimplemented in PSPFAnimation, PSPFAnimationFrame, PSPFAnimationSheet, PSPFImage, and PSPFSprite.
virtual void PSPFGraphic::Draw | ( | ) | [virtual] |
Draw.
This function draws the graph in the screen, in agreement with the defined values previously.
Reimplemented in PSPFAnimation, PSPFAnimationFrame, PSPFAnimationSheet, PSPFImage, and PSPFSprite.
virtual void PSPFGraphic::DrawXY | ( | int | pX, | |
int | pY | |||
) | [virtual] |
DrawXY.
draw the graph in the screen, in the informed position for the parameters. Just the attribute of class position and ignored.
pX | Position X | |
pY | Position Y |
Reimplemented in PSPFAnimation, PSPFAnimationFrame, PSPFAnimationSheet, PSPFImage, and PSPFSprite.
virtual int PSPFGraphic::getPosX | ( | ) | [virtual] |
getPosX
Function to get the graphc position in X.
Reimplemented in PSPFAnimation, PSPFAnimationFrame, PSPFAnimationSheet, PSPFImage, and PSPFSprite.
virtual int PSPFGraphic::getPosY | ( | ) | [virtual] |
getPosY
Function to get the graphc position in Y.
Reimplemented in PSPFAnimation, PSPFAnimationFrame, PSPFAnimationSheet, PSPFImage, and PSPFSprite.
virtual int PSPFGraphic::getSizeX | ( | ) | [virtual] |
getSizeX
Function to get the graphc size in X. The size returned, is the size. real graphc
Reimplemented in PSPFAnimation, PSPFAnimationFrame, PSPFAnimationSheet, PSPFImage, and PSPFSprite.
virtual int PSPFGraphic::getSizeY | ( | ) | [virtual] |
getSizeY
Function to get the graphc size in Y. The size returned, is the size. real graphc
Reimplemented in PSPFAnimation, PSPFAnimationFrame, PSPFAnimationSheet, PSPFImage, and PSPFSprite.
virtual int PSPFGraphic::getPivotX | ( | ) | [virtual] |
getPivotX
Return the pivot position in X, graphc relative.
Reimplemented in PSPFAnimation, PSPFAnimationFrame, PSPFAnimationSheet, PSPFImage, and PSPFSprite.
virtual int PSPFGraphic::getPivotY | ( | ) | [virtual] |
getPivotY
Return the pivot position in Y, graphc relative.
Reimplemented in PSPFAnimation, PSPFAnimationFrame, PSPFAnimationSheet, PSPFImage, and PSPFSprite.
virtual int PSPFGraphic::getAngle | ( | ) | [virtual] |
getAngle
Return the angle of graphc rotation.
Reimplemented in PSPFAnimation, PSPFAnimationFrame, PSPFAnimationSheet, PSPFImage, and PSPFSprite.
virtual int PSPFGraphic::getScaleX | ( | ) | [virtual] |
getScaleX
Return the graphc size to be scale in X. This function doesn't return the real size.
Reimplemented in PSPFAnimation, PSPFAnimationFrame, PSPFAnimationSheet, PSPFImage, and PSPFSprite.
virtual int PSPFGraphic::getScaleY | ( | ) | [virtual] |
getScaleY
Return the graphc size to be scale in Y. This function doesn't return the real size.
Reimplemented in PSPFAnimation, PSPFAnimationFrame, PSPFAnimationSheet, PSPFImage, and PSPFSprite.