Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 3 : //* 4 : //* All rights reserved, see COPYRIGHT for full restrictions 5 : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT 6 : //* 7 : //* Licensed under LGPL 2.1, please see LICENSE for details 8 : //* https://www.gnu.org/licenses/lgpl-2.1.html 9 : 10 : #pragma once 11 : 12 : // MOOSE includes 13 : #include "SampledOutput.h" 14 : 15 : /** 16 : * 17 : */ 18 : class VTKOutput : public SampledOutput 19 : { 20 : public: 21 : static InputParameters validParams(); 22 : 23 : /** 24 : * Class constructor 25 : * @param parameters Object parameters 26 : */ 27 : VTKOutput(const InputParameters & parameters); 28 : 29 24 : bool supportsMaterialPropertyOutput() const override { return true; } 30 : 31 : protected: 32 : /** 33 : * Perform the output of VTKOutput 34 : */ 35 : virtual void output() override; 36 : 37 : /** 38 : * Return the file name with the *.vtk extension 39 : */ 40 : virtual std::string filename() override; 41 : 42 : private: 43 : /// Flag for using binary compression 44 : bool _binary; 45 : };