Planeshift
|
This class stores all required info for a particular region. More...
#include <texfactory.h>
Public Member Functions | |
void | AddScanline (psScanline *line) |
bool | CreateRectRegion (int left, int top, int right, int bottom) |
Creates a list of scanlines to make a region from the rectangle specified by the coordinates. | |
bool | CreateRegion (iDocumentNode *node) |
Scans through the xml string and pulls out all <line> tags making a list of psScanlines from the tags. | |
psScanline * | GetLine (int x) |
void | OverlayRegion (iImage *dest, iImage *src, int bitmode=0) |
Copies the pixels from the src image, in this region as specified by the list of scanlines, into the dest pixels. | |
psImageRegion () | |
psImageRegion (const char *racename, const char *partname) | |
~psImageRegion () | |
Public Attributes | |
csString | part |
csString | race |
Protected Attributes | |
csPDelArray< psScanline > | scanlines |
This class stores all required info for a particular region.
A region is defined as a list of scanlines. They do not have to be contiguous or convex. OverlayRegion copies the pixels from one specified image in the region into the other image. This is the main workhorse function here.
Definition at line 118 of file texfactory.h.
psImageRegion::psImageRegion | ( | const char * | racename, |
const char * | partname | ||
) |
psImageRegion::psImageRegion | ( | ) | [inline] |
Definition at line 128 of file texfactory.h.
psImageRegion::~psImageRegion | ( | ) |
void psImageRegion::AddScanline | ( | psScanline * | line | ) | [inline] |
Definition at line 137 of file texfactory.h.
Creates a list of scanlines to make a region from the rectangle specified by the coordinates.
bool psImageRegion::CreateRegion | ( | iDocumentNode * | node | ) |
Scans through the xml string and pulls out all <line> tags making a list of psScanlines from the tags.
psScanline* psImageRegion::GetLine | ( | int | x | ) |
void psImageRegion::OverlayRegion | ( | iImage * | dest, |
iImage * | src, | ||
int | bitmode = 0 |
||
) |
Copies the pixels from the src image, in this region as specified by the list of scanlines, into the dest pixels.
Bitmode is intended to allow different types of blending but is not used at this time.
csString psImageRegion::part |
Definition at line 125 of file texfactory.h.
csString psImageRegion::race |
Definition at line 124 of file texfactory.h.
csPDelArray<psScanline> psImageRegion::scanlines [protected] |
Definition at line 121 of file texfactory.h.