Reference documentation for deal.II version Git c93c00f928 2020-04-01 06:59:45 +0200
\(\newcommand{\vcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\vcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
data_out.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2017 - 2019 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 
20 #include <deal.II/base/data_out_base.h>
21 
22 #include <string>
23 #include <vector>
24 
25 DEAL_II_NAMESPACE_OPEN
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 
102 DEAL_II_NAMESPACE_CLOSE
103 
104 #endif
virtual const std::vector< DataOutBase::Patch< 0, spacedim > > & get_patches() const override
Definition: data_out.cc:48
virtual std::vector< std::string > get_dataset_names() const override
Definition: data_out.cc:57
void build_patches(const Particles::ParticleHandler< dim, spacedim > &particles)
Definition: data_out.cc:25
std::vector< std::string > dataset_names
Definition: data_out.h:97
std::vector< DataOutBase::Patch< 0, spacedim > > patches
Definition: data_out.h:92