class PixData

Vector-drawn QPixmaps

Inheritance:

PixData


Public Fields

QCOORD** dcoords
char* drawtype
QSize dsize
bool filled
bool fixedScale
int nobj
int* npoints

Public Methods

PixData& operator=(PixData& pd)
PixData( void )
PixData( PixData& pd )
PixData( RawPixData rawdat, float bscale=1.0 )
void rescale( float bscale=1.0 )
void setColor( const QColor& fore, const QColor& back )
QPixmap toPixmap( void )

Documentation

The PixData object stores information used to create a vector-drawn QPixmap.

Performs rescalings and conversion to a QPixmap. Data for the drawing is fed in as a RawPixData variable.

QSize dsize
Holds the size of the QPixmap.
You should not change this variable.

bool fixedScale
Flag to indicate if this PixData can't be rescaled.
You should not change this variable.
See Also:
dcoords

int nobj
Number of objects to draw.
You should not change this variable.
See Also:
dcoords

bool filled
Flag to indicate whether circles and polygons should be filled.
You should not change this variable.
See Also:
dcoords

QCOORD** dcoords
An array of QCOORD defining each object to draw.
You should not change this variable. Instead, you should define a
RawPixData variable and use this variable in a constructor call.

int* npoints
Array of integers specifying the number of QCOORD for each object.
You should not change this variable.
See Also:
dcoords

char* drawtype
Array of character flags specifying the typ eof object to draw.
You should not change this variable.
See Also:
dcoords

PixData( void )
Class Constructor. Creates an empty PixData object.

PixData( PixData& pd )
Copy Constructor.

PixData( RawPixData rawdat, float bscale=1.0 )
Class Constructor. This is the one you should use to define a PixData object using information in the RawPixData variable, rawdat. bscale specified a default rescaling factor, which is multiplied by the default scale of the RawPixData to calculate the size of the resulting QPixmap.

void rescale( float bscale=1.0 )
Rescales the size of the resulting QPixmap by a factor of bscale. Rescaling is done proportionately, with the size of the pixmap and all vector-coordinates defining objects multiplied accordingly.
You must recall
toPixmap() to make your changes active.

void setColor( const QColor& fore, const QColor& back )
Sets the foreground and background color of the resulting QPixmap.
You must recall
toPixmap() to make your changes active.

QPixmap toPixmap( void )
Converts the raw data to a QPixmap. This is the method you call when you want to update any changes you've made via rescale() or setColor().

PixData& operator=(PixData& pd)
Assignment operator. Duplicates the PixData object during the assignment.


This class has no child classes.

alphabetic index hierarchy of classes


Copyright 1997 by John Weiss [John.Weiss@colorado.edu] "generated by doc++"?! More like mangled ...

generated by doc++