Class for drawing slices of vector fields.
#include <VectorFieldDisplayAdaptor.h>
Public Types | |
typedef field_t::value_type::value_type | T |
typedef FieldDisplayAdaptor< field_t > | base_t |
typedef Vector3< T >::Length | length_t |
Public Member Functions | |
VectorFieldDisplayAdaptor (ConstBlockDataID vectorFieldID) | |
~VectorFieldDisplayAdaptor () | |
virtual void | addConfigurationItem (QTreeWidgetItem *parentItem) |
Optionally adds a QTreeWidgetItem to a tree, containing configuration options. More... | |
virtual void | draw (QVector< QVector< CellView * > > &grid, int nrOfGhostLayers) |
Draws data structure represented by this Adaptor to a grid of cells Block has to be set first! More... | |
void | configure (const IBlock *block, int sliceDim, cell_idx_t sliceValue, Vector3< uint_t > &innerSize, cell_idx_t &ghostLayers) |
Configures the DisplayAdaptor by passing in a block and slice information. More... | |
Public Member Functions inherited from walberla::gui::FieldDisplayAdaptor< field_t > | |
FieldDisplayAdaptor (ConstBlockDataID fieldId) | |
Protected Member Functions | |
void | drawVectorFieldNumeric (CellView *cell, const typename field_t::const_iterator &it) |
void | drawVectorFieldColormap (CellView *cell, const typename field_t::const_iterator &it, length_t min, length_t max) |
void | drawVectorFieldArrow (CellView *cell, const typename field_t::const_iterator &it, length_t max) |
Protected Member Functions inherited from walberla::gui::FieldDisplayAdaptor< field_t > | |
Cell | permuteCoordAccordingToSlice (Cell input, int sliceCoord) |
void | getFieldSizeInfo (CellInterval &ciOut, cell_idx_t &ghostLayerOut) |
Protected Attributes | |
DisplayPropertiesItem * | displayProperties_ |
ConstBlockDataID | blockDataId_ |
cell_idx_t | sliceDim_ |
CellInterval | sliceInterval_ |
const field_t * | field_ |
Protected Attributes inherited from walberla::gui::FieldDisplayAdaptor< field_t > | |
const field_t * | field_ |
CellInterval | sliceInterval_ |
cell_idx_t | sliceDim_ |
ConstBlockDataID | blockDataId_ |
Additional Inherited Members | |
Signals inherited from walberla::gui::DisplayAdaptor | |
void | requestRedraw () |
This signal requests a redraw, for example after a configuration change. More... | |
typedef FieldDisplayAdaptor< field_t > walberla::gui::VectorFieldDisplayAdaptor< field_t >::base_t |
typedef Vector3<T>::Length walberla::gui::VectorFieldDisplayAdaptor< field_t >::length_t |
typedef field_t::value_type::value_type walberla::gui::VectorFieldDisplayAdaptor< field_t >::T |
walberla::gui::VectorFieldDisplayAdaptor< field_t >::VectorFieldDisplayAdaptor | ( | ConstBlockDataID | vectorFieldID | ) |
walberla::gui::VectorFieldDisplayAdaptor< field_t >::~VectorFieldDisplayAdaptor |
|
virtual |
Optionally adds a QTreeWidgetItem to a tree, containing configuration options.
Reimplemented from walberla::gui::DisplayAdaptor.
|
virtual |
Configures the DisplayAdaptor by passing in a block and slice information.
[in] | block | the block that should be displayed |
[in] | sliceDim | The coordinate value of this dimension is kept constant. Defines the slice direction 0 means x, 1 means y, 2 means z |
[in] | sliceValue | The fixed value of the sliceDim coordinate. If the value is not in the allowed range nothing is displayed |
[out] | innerSize | size of the field, without ghost layer. innerSize[0] is the horizontal extent and will be the first coordinate in the grid array of draw() innerSize[1] is the vertical extend and will be the second coordinate in the grid array innerSize[2] is used for limiting the allowed sliceValues |
[out] | ghostLayers | number of ghost layers for all three dimensions of innerSize |
Reimplemented from walberla::gui::FieldDisplayAdaptor< field_t >.
|
virtual |
Draws data structure represented by this Adaptor to a grid of cells Block has to be set first!
[in,out] | grid | Grid of cells. Use functions of CellView to draw The Grid has dimension of innerSize + ghostLayers |
[in] | nrOfGhostLayers | the number of ghost layers in each direction. This value may be bigger than the returned value of configure() since other fields might have more ghost layers. The cell at grid[0][0] lies at the outermost ghost layer |
Implements walberla::gui::DisplayAdaptor.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |