mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: additional constructor for vtk::outputOptions
This commit is contained in:
@ -25,7 +25,6 @@ License
|
|||||||
|
|
||||||
#include "foamVtkOutputOptions.H"
|
#include "foamVtkOutputOptions.H"
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::vtk::outputOptions&
|
Foam::vtk::outputOptions&
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2016-2017 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -34,6 +34,7 @@ Description
|
|||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
foamVtkOutputOptions.C
|
foamVtkOutputOptions.C
|
||||||
|
foamVtkOutputOptionsI.H
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@ -51,7 +52,7 @@ namespace vtk
|
|||||||
{
|
{
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class outputOptions Declaration
|
Class vtk::outputOptions Declaration
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
class outputOptions
|
class outputOptions
|
||||||
@ -79,10 +80,13 @@ public:
|
|||||||
//- Construct null - XML insitu ASCII format with default precision
|
//- Construct null - XML insitu ASCII format with default precision
|
||||||
inline outputOptions();
|
inline outputOptions();
|
||||||
|
|
||||||
//- Construct with specified format.
|
//- Construct with specified format and default (ASCII) precision
|
||||||
// This constructor should remain non-explicit.
|
// \note This constructor should remain non-explicit.
|
||||||
inline outputOptions(enum formatType fmtType);
|
inline outputOptions(enum formatType fmtType);
|
||||||
|
|
||||||
|
//- Construct with specified format and (ASCII) write precision
|
||||||
|
inline outputOptions(enum formatType fmtType, unsigned prec);
|
||||||
|
|
||||||
|
|
||||||
// Selectors
|
// Selectors
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2016-2017 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -44,6 +44,17 @@ inline Foam::vtk::outputOptions::outputOptions
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
inline Foam::vtk::outputOptions::outputOptions
|
||||||
|
(
|
||||||
|
enum formatType fmtType,
|
||||||
|
unsigned prec
|
||||||
|
)
|
||||||
|
:
|
||||||
|
fmtType_(fmtType),
|
||||||
|
precision_(prec)
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
inline Foam::autoPtr<Foam::vtk::formatter>
|
inline Foam::autoPtr<Foam::vtk::formatter>
|
||||||
|
|||||||
Reference in New Issue
Block a user