diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/CMakeLists-Common.txt b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/CMakeLists-Common.txt index d309a24fd5..bb98b9c158 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/CMakeLists-Common.txt +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/CMakeLists-Common.txt @@ -32,13 +32,13 @@ add_definitions( set(CMAKE_BUILD_TYPE Release) set(CMAKE_CXX_FLAGS_DEBUG - "-g -O0 -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wno-overloaded-virtual" + "-g -O0 -std=c++0x -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wno-overloaded-virtual" ) -set(CMAKE_C_FLAGS_DEBUG "-g -O0") +set(CMAKE_C_FLAGS_DEBUG "-g -O0 -std=c++0x") set(CMAKE_CXX_FLAGS_RELEASE - "-O3 -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wno-overloaded-virtual") -set(CMAKE_C_FLAGS_RELEASE "-O3") + "-O3 -std=c++0x -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wno-overloaded-virtual") +set(CMAKE_C_FLAGS_RELEASE "-O3 -std=c++0x") # Set output library destination to plugin directory set(LIBRARY_OUTPUT_PATH $ENV{FOAM_LIBBIN} diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/fieldVisualisationBase.C b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/fieldVisualisationBase.C index ed48eb60c0..d70f3d77e1 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/fieldVisualisationBase.C +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/fieldVisualisationBase.C @@ -437,7 +437,7 @@ Foam::fieldVisualisationBase::fieldVisualisationBase ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours + const HashPtrTable, word>& colours ) : parent_(parent), @@ -489,7 +489,7 @@ Foam::fieldVisualisationBase::~fieldVisualisationBase() // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * // -const Foam::HashPtrTable, Foam::word>& +const Foam::HashPtrTable, Foam::word>& Foam::fieldVisualisationBase::colours() const { return colours_; diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/fieldVisualisationBase.H b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/fieldVisualisationBase.H index e365ddf597..65fe8a36b0 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/fieldVisualisationBase.H +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/fieldVisualisationBase.H @@ -39,7 +39,7 @@ SourceFiles #include "NamedEnum.H" #include "vector.H" #include "HashPtrTable.H" -#include "DataEntry.H" +#include "Function1.H" #include "vtkSmartPointer.h" @@ -121,7 +121,7 @@ protected: }; //- Colours - const HashPtrTable, word>& colours_; + const HashPtrTable, word>& colours_; //- Field name word fieldName_; @@ -183,7 +183,7 @@ public: ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours + const HashPtrTable, word>& colours ); @@ -196,7 +196,7 @@ public: // Access //- Return the colours - const HashPtrTable, word>& colours() const; + const HashPtrTable, word>& colours() const; //- Return the field name const word& fieldName() const; diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectCloud.C b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectCloud.C index 8c1f4e8535..6150bd15ea 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectCloud.C +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectCloud.C @@ -51,7 +51,7 @@ Foam::functionObjectCloud::functionObjectCloud ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours + const HashPtrTable, word>& colours ) : pointData(parent, dict, colours), diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectCloud.H b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectCloud.H index 553bf96f3a..afc1c5262f 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectCloud.H +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectCloud.H @@ -92,7 +92,7 @@ public: ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours + const HashPtrTable, word>& colours ); diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectLine.C b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectLine.C index d950997598..1455eb6191 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectLine.C +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectLine.C @@ -51,7 +51,7 @@ Foam::functionObjectLine::functionObjectLine ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours + const HashPtrTable, word>& colours ) : pathline(parent, dict, colours), diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectLine.H b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectLine.H index 9224d7246a..3749d24597 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectLine.H +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectLine.H @@ -86,7 +86,7 @@ public: ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours + const HashPtrTable, word>& colours ); diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectSurface.C b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectSurface.C index e7c6c69176..d9d59c2bb6 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectSurface.C +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectSurface.C @@ -51,7 +51,7 @@ Foam::functionObjectSurface::functionObjectSurface ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours + const HashPtrTable, word>& colours ) : geometrySurface(parent, dict, colours, List()), diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectSurface.H b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectSurface.H index 32f4a7572c..b881611b6a 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectSurface.H +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/functionObjectSurface.H @@ -85,7 +85,7 @@ public: ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours + const HashPtrTable, word>& colours ); diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/geometryBase.C b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/geometryBase.C index a40bd6b9fe..0d78faf14b 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/geometryBase.C +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/geometryBase.C @@ -81,7 +81,7 @@ Foam::geometryBase::geometryBase ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours + const HashPtrTable, word>& colours ) : parent_(parent), @@ -98,11 +98,11 @@ Foam::geometryBase::geometryBase if (dict.found("opacity")) { - opacity_.reset(DataEntry::New("opacity", dict).ptr()); + opacity_.reset(Function1::New("opacity", dict).ptr()); } else { - opacity_.reset(new Constant("opacity", 1.0)); + opacity_.reset(new Function1Types::Constant("opacity", 1.0)); } } @@ -139,7 +139,7 @@ Foam::scalar Foam::geometryBase::opacity(const scalar position) const } -const Foam::HashPtrTable, Foam::word>& +const Foam::HashPtrTable, Foam::word>& Foam::geometryBase::colours() const { return colours_; diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/geometryBase.H b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/geometryBase.H index cc19d943ef..49997d79ad 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/geometryBase.H +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/geometryBase.H @@ -36,7 +36,7 @@ SourceFiles #include "dictionary.H" #include "vector.H" -#include "DataEntry.H" +#include "Function1.H" #include "HashPtrTable.H" #include "NamedEnum.H" @@ -99,10 +99,10 @@ protected: renderModeType renderMode_; //- Opacity - autoPtr> opacity_; + autoPtr> opacity_; //- Reference to the colours - const HashPtrTable, word>& colours_; + const HashPtrTable, word>& colours_; // Protected functions @@ -120,7 +120,7 @@ public: ( const runTimePostProcessing& parent_, const dictionary& dict, - const HashPtrTable, word>& colours + const HashPtrTable, word>& colours ); @@ -145,7 +145,7 @@ public: scalar opacity(const scalar position) const; //- Return reference to the colours - const HashPtrTable, word>& colours() const; + const HashPtrTable, word>& colours() const; //- Add geometry to scene diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/geometrySurface.C b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/geometrySurface.C index 535cdddc99..9046189f59 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/geometrySurface.C +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/geometrySurface.C @@ -136,7 +136,7 @@ Foam::geometrySurface::geometrySurface ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours + const HashPtrTable, word>& colours ) : surface(parent, dict, colours), @@ -148,7 +148,7 @@ Foam::geometrySurface::geometrySurface ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours, + const HashPtrTable, word>& colours, const List& fileNames ) : diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/geometrySurface.H b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/geometrySurface.H index 5eec3ee8d6..3b35bc171b 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/geometrySurface.H +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/geometrySurface.H @@ -94,7 +94,7 @@ public: ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours + const HashPtrTable, word>& colours ); //- Construct from components @@ -102,7 +102,7 @@ public: ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours, + const HashPtrTable, word>& colours, const List& fileNames ); diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/pathline.C b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/pathline.C index 744c092cf8..0b5a2da8be 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/pathline.C +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/pathline.C @@ -118,7 +118,7 @@ Foam::pathline::pathline ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours + const HashPtrTable, word>& colours ) : geometryBase(parent, dict, colours), @@ -131,7 +131,7 @@ Foam::pathline::pathline { if (dict.found("lineColour")) { - lineColour_.reset(DataEntry::New("lineColour", dict).ptr()); + lineColour_.reset(Function1::New("lineColour", dict).ptr()); } else { @@ -168,7 +168,7 @@ Foam::autoPtr Foam::pathline::New ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours, + const HashPtrTable, word>& colours, const word& pathlineType ) { diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/pathline.H b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/pathline.H index 41d80dd757..0686548269 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/pathline.H +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/pathline.H @@ -92,7 +92,7 @@ protected: scalar tubeRadius_; //- Line colour - autoPtr> lineColour_; + autoPtr> lineColour_; // Protected Member Functions @@ -122,7 +122,7 @@ public: ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours + const HashPtrTable, word>& colours ), (parent, dict, colours) ); @@ -135,7 +135,7 @@ public: ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours + const HashPtrTable, word>& colours ); @@ -146,7 +146,7 @@ public: ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours, + const HashPtrTable, word>& colours, const word& pathlineName ); diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/pointData.C b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/pointData.C index cae1853e65..19838d4adc 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/pointData.C +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/pointData.C @@ -87,7 +87,7 @@ Foam::pointData::pointData ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours + const HashPtrTable, word>& colours ) : geometryBase(parent, dict, colours), @@ -100,7 +100,7 @@ Foam::pointData::pointData { if (dict.found("pointColour")) { - pointColour_.reset(DataEntry::New("pointColour", dict).ptr()); + pointColour_.reset(Function1::New("pointColour", dict).ptr()); } else { @@ -128,7 +128,7 @@ Foam::autoPtr Foam::pointData::New ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours, + const HashPtrTable, word>& colours, const word& pointDataType ) { diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/pointData.H b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/pointData.H index 1ec9f06b7c..f6521b6407 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/pointData.H +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/pointData.H @@ -90,7 +90,7 @@ protected: scalar maxGlyphLength_; //- Point colour - autoPtr> pointColour_; + autoPtr> pointColour_; // Protected Member Functions @@ -121,7 +121,7 @@ public: ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours + const HashPtrTable, word>& colours ), (parent, dict, colours) ); @@ -134,7 +134,7 @@ public: ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours + const HashPtrTable, word>& colours ); @@ -145,7 +145,7 @@ public: ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours, + const HashPtrTable, word>& colours, const word& pointDataName ); diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/scene.C b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/scene.C index c96e36566c..3e8b29e85d 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/scene.C +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/scene.C @@ -103,27 +103,30 @@ void Foam::scene::readCamera(const dictionary& dict) { clipBox_ = boundBox(coeffs.lookup("clipBox")); const vector lookDir(vector(coeffs.lookup("lookDir"))); - cameraPosition_.reset(new Constant("position", -lookDir)); + cameraPosition_.reset + ( + new Function1Types::Constant("position", -lookDir) + ); const vector focalPoint(coeffs.lookup("focalPoint")); cameraFocalPoint_.reset ( - new Constant("focalPoint", focalPoint) + new Function1Types::Constant("focalPoint", focalPoint) ); const vector up(coeffs.lookup("up")); - cameraUp_.reset(new Constant("up", up)); + cameraUp_.reset(new Function1Types::Constant("up", up)); break; } case mtFlightPath: { cameraPosition_.reset ( - DataEntry::New("position", coeffs).ptr() + Function1::New("position", coeffs).ptr() ); cameraFocalPoint_.reset ( - DataEntry::New("focalPoint", coeffs).ptr() + Function1::New("focalPoint", coeffs).ptr() ); - cameraUp_.reset(DataEntry::New("up", coeffs).ptr()); + cameraUp_.reset(Function1::New("up", coeffs).ptr()); break; } default: @@ -136,20 +139,23 @@ void Foam::scene::readCamera(const dictionary& dict) if (dict.found("zoom")) { - cameraZoom_.reset(DataEntry::New("zoom", dict).ptr()); + cameraZoom_.reset(Function1::New("zoom", dict).ptr()); } else { - cameraZoom_.reset(new Constant("zoom", 1.0)); + cameraZoom_.reset(new Function1Types::Constant("zoom", 1.0)); } if (dict.found("viewAngle")) { - cameraViewAngle_.reset(DataEntry::New("viewAngle", dict).ptr()); + cameraViewAngle_.reset(Function1::New("viewAngle", dict).ptr()); } else { - cameraViewAngle_.reset(new Constant("viewAngle", 35.0)); + cameraViewAngle_.reset + ( + new Function1Types::Constant("viewAngle", 35.0) + ); } } @@ -160,7 +166,7 @@ void Foam::scene::readColours(const dictionary& dict) forAll(colours, i) { const word& c = colours[i]; - colours_.insert(c, DataEntry::New(c, dict).ptr()); + colours_.insert(c, Function1::New(c, dict).ptr()); } } @@ -305,7 +311,7 @@ Foam::scene::~scene() // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -const Foam::HashPtrTable, Foam::word>& +const Foam::HashPtrTable, Foam::word>& Foam::scene::colours() const { return colours_; diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/scene.H b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/scene.H index 2372df4ece..470780c33e 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/scene.H +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/scene.H @@ -36,7 +36,7 @@ SourceFiles // OpenFOAM includes #include "dictionary.H" -#include "DataEntry.H" +#include "Function1.H" #include "vector.H" #include "point.H" #include "boundBox.H" @@ -99,7 +99,7 @@ protected: // Protected data //- Colours - HashPtrTable, word> colours_; + HashPtrTable, word> colours_; // Camera settings @@ -108,19 +108,19 @@ protected: modeType mode_; //- Position - autoPtr> cameraPosition_; + autoPtr> cameraPosition_; //- Focal point - autoPtr> cameraFocalPoint_; + autoPtr> cameraFocalPoint_; //- Up direction - autoPtr> cameraUp_; + autoPtr> cameraUp_; //- Zoom level - autoPtr> cameraZoom_; + autoPtr> cameraZoom_; //- View angle - autoPtr> cameraViewAngle_; + autoPtr> cameraViewAngle_; // Scene management @@ -171,7 +171,7 @@ public: // Access //- Return the colours - const HashPtrTable, word>& colours() const; + const HashPtrTable, word>& colours() const; //- Return the current frame index label frameIndex() const; diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/surface.C b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/surface.C index 1cb877d9cb..45618af1a0 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/surface.C +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/surface.C @@ -135,7 +135,7 @@ Foam::surface::surface ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours + const HashPtrTable, word>& colours ) : geometryBase(parent, dict, colours), @@ -157,7 +157,7 @@ Foam::surface::surface { surfaceColour_.reset ( - DataEntry::New("surfaceColour", dict).ptr() + Function1::New("surfaceColour", dict).ptr() ); } else @@ -167,7 +167,7 @@ Foam::surface::surface if (dict.found("edgeColour")) { - edgeColour_.reset(DataEntry::New("edgeColour", dict).ptr()); + edgeColour_.reset(Function1::New("edgeColour", dict).ptr()); } else { @@ -191,7 +191,7 @@ Foam::autoPtr Foam::surface::New ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours, + const HashPtrTable, word>& colours, const word& surfaceType ) { diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/surface.H b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/surface.H index 88b57d59d6..cd6f7fbbd2 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/surface.H +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/surface.H @@ -95,10 +95,10 @@ protected: bool featureEdges_; //- Surface colour - autoPtr> surfaceColour_; + autoPtr> surfaceColour_; //- Edge colour - autoPtr> edgeColour_; + autoPtr> edgeColour_; //- Surface actor vtkSmartPointer surfaceActor_; @@ -139,7 +139,7 @@ public: ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours + const HashPtrTable, word>& colours ), (parent, dict, colours) ); @@ -152,7 +152,7 @@ public: ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours + const HashPtrTable, word>& colours ); @@ -163,7 +163,7 @@ public: ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours, + const HashPtrTable, word>& colours, const word& surfaceName ); diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/text.C b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/text.C index b4c1ff3f86..879f2c7d06 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/text.C +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/text.C @@ -39,7 +39,7 @@ Foam::text::text ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours + const HashPtrTable, word>& colours ) : geometryBase(parent, dict, colours), @@ -51,7 +51,7 @@ Foam::text::text { if (dict.found("colour")) { - colour_.reset(DataEntry::New("colour", dict).ptr()); + colour_.reset(Function1::New("colour", dict).ptr()); } else { diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/text.H b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/text.H index e4928d54e7..891519ad3e 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/text.H +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/text.H @@ -77,7 +77,7 @@ protected: scalar size_; //- Colour - autoPtr> colour_; + autoPtr> colour_; //- Bold flag bool bold_; @@ -92,7 +92,7 @@ public: ( const runTimePostProcessing& parent, const dictionary& dict, - const HashPtrTable, word>& colours + const HashPtrTable, word>& colours );