Reference documentation for deal.II version 9.2.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
data_out.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2017 - 2020 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 #ifndef dealii_particles_data_out_h
16 #define dealii_particles_data_out_h
17 
18 #include <deal.II/base/config.h>
19 
21 
22 #include <string>
23 #include <vector>
24 
26 
27 namespace Particles
28 {
29  template <int dim, int spacedim>
31 
43  template <int dim, int spacedim>
44  class DataOut : public ::DataOutInterface<0, spacedim>
45  {
46  public:
50  DataOut() = default;
51 
55  ~DataOut() = default;
56 
57 
68  void
70 
71  protected:
76  virtual const std::vector<DataOutBase::Patch<0, spacedim>> &
77  get_patches() const override;
78 
83  virtual std::vector<std::string>
84  get_dataset_names() const override;
85 
86  private:
92  std::vector<DataOutBase::Patch<0, spacedim>> patches;
93 
97  std::vector<std::string> dataset_names;
98  };
99 
100 } // namespace Particles
101 
103 
104 #endif
Particles::DataOut::get_dataset_names
virtual std::vector< std::string > get_dataset_names() const override
Definition: data_out.cc:57
Particles::DataOut::~DataOut
~DataOut()=default
Particles::DataOut::build_patches
void build_patches(const Particles::ParticleHandler< dim, spacedim > &particles)
Definition: data_out.cc:25
Particles
Definition: data_out.h:27
Particles::DataOut::dataset_names
std::vector< std::string > dataset_names
Definition: data_out.h:97
data_out_base.h
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
Particles::DataOut
Definition: data_out.h:44
Particles::DataOut::DataOut
DataOut()=default
Particles::DataOut::patches
std::vector< DataOutBase::Patch< 0, spacedim > > patches
Definition: data_out.h:92
Particles::ParticleHandler
Definition: data_out.h:30
config.h
Particles::DataOut::get_patches
virtual const std::vector< DataOutBase::Patch< 0, spacedim > > & get_patches() const override
Definition: data_out.cc:48
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
DataOutInterface
Definition: data_out_base.h:2598