walberla::gui::BlockView3D Class Reference

#include <BlockView3D.h>

+ Inheritance diagram for walberla::gui::BlockView3D:

Public Member Functions

 BlockView3D (QWidget *parent=0)
 
virtual ~BlockView3D ()
 
void setup (BlockForest *blockForest)
 Shows the contents of a BlockField use this as initialization function of the widget. More...
 
- Public Member Functions inherited from walberla::gui::ISliceChangeListener
virtual ~ISliceChangeListener ()
 

Slice Indicators


typedef BlockDisplayObject::SliceID SliceID
 
double shrinkingFactor_
 The bounding box of the blocks is scaled down to generated free space between blocks, which makes picking easier the factor can be changed dynamically by using Ctrl+MouseWheel. More...
 
BlockForestblockForest_
 
QList< BlockDisplayObject * > blocks_
 
QList< int > registeredBlocks_
 
QMap< SliceID, BlockDisplayObject * > sliceToDisplayObject
 
virtual SliceID addSlice (IBlock *block, int sliceDim, double position)
 
virtual void removeSlice (SliceID id)
 
virtual void setSliceActive (SliceID id, bool active=true)
 
void onBlockForestChange ()
 
void paintGL (QGLPainter *painter)
 
void initializeGL (QGLPainter *painter)
 
virtual void wheelEvent (QWheelEvent *we)
 
virtual void mousePressEvent (QMouseEvent *me)
 

Additional Inherited Members

- Public Types inherited from walberla::gui::ISliceChangeListener
typedef int SliceID
 

Member Typedef Documentation

◆ SliceID

Constructor & Destructor Documentation

◆ BlockView3D()

walberla::gui::BlockView3D::BlockView3D ( QWidget *  parent = 0)

◆ ~BlockView3D()

walberla::gui::BlockView3D::~BlockView3D ( )
virtual

Member Function Documentation

◆ addSlice()

BlockView3D::SliceID walberla::gui::BlockView3D::addSlice ( IBlock block,
int  sliceDim,
double  position 
)
virtual

◆ initializeGL()

void walberla::gui::BlockView3D::initializeGL ( QGLPainter *  painter)
protected

◆ mousePressEvent()

void walberla::gui::BlockView3D::mousePressEvent ( QMouseEvent *  me)
protectedvirtual

◆ onBlockForestChange

void walberla::gui::BlockView3D::onBlockForestChange ( )
slot

◆ paintGL()

void walberla::gui::BlockView3D::paintGL ( QGLPainter *  painter)
protected

◆ removeSlice()

void walberla::gui::BlockView3D::removeSlice ( SliceID  id)
virtual

◆ setSliceActive()

void walberla::gui::BlockView3D::setSliceActive ( SliceID  id,
bool  active = true 
)
virtual

◆ setup()

void walberla::gui::BlockView3D::setup ( BlockForest blockForest)

Shows the contents of a BlockField use this as initialization function of the widget.

◆ wheelEvent()

void walberla::gui::BlockView3D::wheelEvent ( QWheelEvent *  we)
protectedvirtual

Member Data Documentation

◆ blockForest_

BlockForest* walberla::gui::BlockView3D::blockForest_
private

◆ blocks_

QList<BlockDisplayObject*> walberla::gui::BlockView3D::blocks_
private

◆ registeredBlocks_

QList<int> walberla::gui::BlockView3D::registeredBlocks_
private

◆ shrinkingFactor_

double walberla::gui::BlockView3D::shrinkingFactor_
private

The bounding box of the blocks is scaled down to generated free space between blocks, which makes picking easier the factor can be changed dynamically by using Ctrl+MouseWheel.

◆ sliceToDisplayObject

QMap<SliceID, BlockDisplayObject*> walberla::gui::BlockView3D::sliceToDisplayObject
private

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