SlvPainter Class Reference

SlvPainter paints an entire solution scene on the given GLWidget. More...

#include <Solutions.h>

Collaboration diagram for SlvPainter:

Collaboration graph
[legend]
List of all members.

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 SlvCubescube

Detailed Description

SlvPainter paints an entire solution scene on the given GLWidget.

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()

See also:
SlvCube


Constructor & Destructor Documentation

SlvPainter::SlvPainter ( const SlvCube _scube  )  [inline]


Member Function Documentation

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]


Member Data Documentation

const SlvCube* SlvPainter::scube [private]


The documentation for this class was generated from the following files: