BlockDisplayObject renders one Block as a Cube.
Features: - Picking is enabled - connect to signal clicked()
#include <BlockDisplayObject.h>
Classes | |
struct | Slice |
Public Member Functions | |
BlockDisplayObject (BlockForest *blockForest, const shared_ptr< blockforest::BlockID > &id, QObject *parent=0) | |
virtual | ~BlockDisplayObject () |
void | draw (QGLPainter *painter) |
shared_ptr< blockforest::BlockID > | blockId () |
void | setShrinkingFactor (qreal factor) |
Slice Indicators | |
typedef ISliceChangeListener::SliceID | SliceID |
BlockForest * | blockForest_ |
shared_ptr< blockforest::BlockID > | blockId_ |
QGLSceneNode * | mesh_ |
QGLMaterial * | blockMaterial_ |
QGLMaterial * | inactiveMaterial_ |
QGLMaterial * | hoverMaterial_ |
QGLMaterial * | activeSliceMaterial_ |
QGLMaterial * | inactiveSliceMaterial_ |
int | objectId_ |
bool | hovering_ |
QMatrix4x4 | modelViewMat_ |
QMap< SliceID, Slice > | slices |
static int | colorId = 0 |
Static counter, incremented for each object, is used as objectId_ -> every cube gets its own objectId_ for picking. More... | |
static int | nextSliceId = 0 |
SliceID | addSlice (int sliceDim, double position) |
void | removeSlice (SliceID id) |
void | setSliceActive (SliceID id, bool active=true) |
void | hoverChanged () |
bool | event (QEvent *e) |
|
explicit |
|
virtual |
BlockDisplayObject::SliceID walberla::gui::BlockDisplayObject::addSlice | ( | int | sliceDim, |
double | position | ||
) |
|
inline |
void walberla::gui::BlockDisplayObject::draw | ( | QGLPainter * | painter | ) |
|
protected |
|
signal |
|
inline |
void walberla::gui::BlockDisplayObject::setShrinkingFactor | ( | qreal | factor | ) |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
Static counter, incremented for each object, is used as objectId_ -> every cube gets its own objectId_ for picking.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |