#include <Solutions.h>
Collaboration diagram for SlvPainter:
Public Member Functions | |
SlvPainter (const SlvCube *_scube) | |
void | paint (const Shape *shape, GLWidget *context, bool fTargets, int singleChoise, int upToStep, ELinesDraw cfgLines) const |
bool | isNull () const |
void | setSlvCube (const SlvCube *sc) |
Public Attributes | |
Coord3df | qmin |
Coord3df | qmax |
LinesCollection | m_linesIFS |
Private Member Functions | |
void | paintPiece (const Shape *shape, int f, GLWidget *context, bool fTargets) const |
void | paintLines (const MyObject &obj, bool singleChoise, GLWidget *context, ELinesDraw cfgLines) const |
Private Attributes | |
const SlvCube * | scube |
It is responsible for arranging the various pieces objects in their right position and orientation according to a specific SlvCube which lives in the context of a specific Shape. An instance of SlvPainter is contained in every SlvCube created. Upon demand it would paint the pieces of that specific SlvCube. Notice, there is some preperation that should be done before the painter can do its job. this preperation is performed in SlvCube::genPainter()
SlvPainter::SlvPainter | ( | const SlvCube * | _scube | ) | [inline] |
void SlvPainter::paint | ( | const Shape * | shape, | |
GLWidget * | context, | |||
bool | fTargets, | |||
int | singleChoise, | |||
int | upToStep, | |||
ELinesDraw | cfgLines | |||
) | const |
bool SlvPainter::isNull | ( | ) | const [inline] |
void SlvPainter::setSlvCube | ( | const SlvCube * | sc | ) | [inline] |
void SlvPainter::paintPiece | ( | const Shape * | shape, | |
int | f, | |||
GLWidget * | context, | |||
bool | fTargets | |||
) | const [private] |
void SlvPainter::paintLines | ( | const MyObject & | obj, | |
bool | singleChoise, | |||
GLWidget * | context, | |||
ELinesDraw | cfgLines | |||
) | const [private] |
const SlvCube* SlvPainter::scube [private] |