Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

PieceImage Class Reference

This class represents a piece image which consists of piece image layers. More...

#include <piece_image.h>

List of all members.

Public Methods

 PieceImage (QDomElement const &dom_element)
QImage createImage () const
double xOffset () const
double yOffset () const
int size () const
bool operator== (PieceImage const &other_piece_image) const

Private Attributes

PieceImageEffect m_effect
std::vector< PieceImageLayerm_layers
int m_size
double m_x_offset
double m_y_offset

Detailed Description

This class represents a piece image which consists of piece image layers.

Ralf Schmelter (

Constructor & Destructor Documentation

PieceImage::PieceImage QDomElement const & dom_element

Constructs a piece image from a dom element.

dom_element   The dom element to use.

Member Function Documentation

QImage PieceImage::createImage const

Returns the image of the given native size.

bool PieceImage::operator== PieceImage const & other_piece_image const

Returns true if the two piece images are equal.

other_piece_image   The other piece image.

int PieceImage::size const

Returns the native size of the image created in createImage().

double PieceImage::xOffset const

Returns the x-offset of the piece image.

double PieceImage::yOffset const

Returns the y-offset of the piece image.

Member Data Documentation

PieceImageEffect PieceImage::m_effect [private]

The global effect.

std::vector<PieceImageLayer> PieceImage::m_layers [private]

The layers used.

int PieceImage::m_size [private]

The native size.

double PieceImage::m_x_offset [private]

The x-offset.

double PieceImage::m_y_offset [private]

The y-offset.

The documentation for this class was generated from the following file:
Generated at Sun Jan 6 18:49:12 2002 for EasySok by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001