Data Structures | |
struct | scalarBar |
Public Types | |
enum | colourByType { cbColour, cbField } |
enum | colourMapType { cmRainbow, cmBlueWhiteRed, cmFire, cmGreyscale } |
Public Member Functions | |
fieldVisualisationBase (const runTimePostProcessing &parent, const dictionary &dict, const HashPtrTable< DataEntry< vector >, word > &colours) | |
Construct from dictionary. More... | |
virtual | ~fieldVisualisationBase () |
Destructor. More... | |
const HashPtrTable< DataEntry< vector >, word > & | colours () const |
Return the colours. More... | |
const word & | fieldName () const |
Return the field name. More... | |
Static Public Attributes | |
static const NamedEnum< colourByType, 2 > | colourByTypeNames |
static const NamedEnum< colourMapType, 4 > | colourMapTypeNames |
Protected Member Functions | |
void | setColourMap (vtkLookupTable *lut) const |
Set the colour map. More... | |
void | addScalarBar (const scalar position, vtkRenderer *renderer, vtkLookupTable *lut) const |
Add scalar bar to renderer. More... | |
void | setField (const scalar position, const word &colourFieldName, vtkPolyDataMapper *mapper, vtkRenderer *renderer) const |
Set field/configure mapper, add scalar bar. More... | |
void | addGlyphs (const scalar position, const word &scaleFieldName, const word &colourFieldName, const scalar maxGlyphLength, vtkPolyData *data, vtkActor *actor, vtkRenderer *renderer) const |
Add glyphs. More... | |
Protected Attributes | |
const HashPtrTable< DataEntry< vector >, word > & | colours_ |
Colours. More... | |
word | fieldName_ |
Field name. More... | |
colourByType | colourBy_ |
Colour by type. More... | |
colourMapType | colourMap_ |
Colour map type. More... | |
Tuple2< scalar, scalar > | range_ |
Range of values. More... | |
scalarBar | scalarBar_ |
Scalar bar. More... | |
Private Member Functions | |
fieldVisualisationBase (const fieldVisualisationBase &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const fieldVisualisationBase &) |
Disallow default bitwise assignment. More... | |
Private Attributes | |
const runTimePostProcessing & | parent_ |
Reference to the parent function object. More... | |
Definition at line 65 of file fieldVisualisationBase.H.
enum colourByType |
Enumerator | |
---|---|
cbColour | |
cbField |
Definition at line 71 of file fieldVisualisationBase.H.
enum colourMapType |
Enumerator | |
---|---|
cmRainbow | |
cmBlueWhiteRed | |
cmFire | |
cmGreyscale |
Definition at line 79 of file fieldVisualisationBase.H.
|
private |
Disallow default bitwise copy construct.
fieldVisualisationBase | ( | const runTimePostProcessing & | parent, |
const dictionary & | dict, | ||
const HashPtrTable< DataEntry< vector >, word > & | colours | ||
) |
Construct from dictionary.
Definition at line 437 of file fieldVisualisationBase.C.
References dict, dictionary::found(), dictionary::lookup(), ITstream::read(), and dictionary::subDict().
|
virtual |
Destructor.
Definition at line 486 of file fieldVisualisationBase.C.
|
private |
Disallow default bitwise assignment.
|
protected |
Set the colour map.
Definition at line 76 of file fieldVisualisationBase.C.
References Foam::constant::universal::c, fieldVisualisationBase::cmBlueWhiteRed, fieldVisualisationBase::cmFire, fieldVisualisationBase::cmGreyscale, fieldVisualisationBase::cmRainbow, fieldVisualisationBase::colourMap_, and Foam::compressible::New().
|
protected |
Add scalar bar to renderer.
Definition at line 133 of file fieldVisualisationBase.C.
References Foam::compressible::New().
|
protected |
Set field/configure mapper, add scalar bar.
Definition at line 242 of file fieldVisualisationBase.C.
References Foam::compressible::New().
|
protected |
Add glyphs.
Definition at line 287 of file fieldVisualisationBase.C.
References Foam::endl(), Foam::compressible::New(), range, setField(), and WarningInFunction.
const Foam::HashPtrTable< Foam::DataEntry< Foam::vector >, Foam::word > & colours | ( | ) | const |
Return the colours.
Definition at line 493 of file fieldVisualisationBase.C.
const Foam::word & fieldName | ( | ) | const |
Return the field name.
Definition at line 499 of file fieldVisualisationBase.C.
|
static |
Definition at line 77 of file fieldVisualisationBase.H.
|
static |
Definition at line 87 of file fieldVisualisationBase.H.
|
private |
Reference to the parent function object.
Definition at line 95 of file fieldVisualisationBase.H.
|
protected |
Colours.
Definition at line 123 of file fieldVisualisationBase.H.
|
protected |
Field name.
Definition at line 126 of file fieldVisualisationBase.H.
|
protected |
Colour by type.
Definition at line 129 of file fieldVisualisationBase.H.
|
protected |
Colour map type.
Definition at line 132 of file fieldVisualisationBase.H.
Referenced by fieldVisualisationBase::setColourMap().
|
protected |
Range of values.
Definition at line 135 of file fieldVisualisationBase.H.
|
protected |
Scalar bar.
Definition at line 138 of file fieldVisualisationBase.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.