deal.II version GIT relicensing-6842-g793a97d2aa 2026-10-02 14:00:01+00:00
\(\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\}}\)
Loading...
Searching...
No Matches
data_out_points.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
4// Copyright (C) 2026 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Detailed license information governing the source code and contributions
9// can be found in LICENSE.md and CONTRIBUTING.md at the top level directory.
10//
11// -----------------------------------------------------------------------------
12
13#ifndef dealii_data_out_points_h
14#define dealii_data_out_points_h
15
16
17#include <deal.II/base/config.h>
18
20
21#include <cstddef>
22#include <string>
23#include <vector>
24
26
27
28
70template <int dim, int spacedim = dim>
71class DataOutPoints : public ::DataOutInterface<0, spacedim>
72{
73public:
87 void
89 const std::vector<Point<spacedim>> &locations,
90 const std::size_t offset = 0,
91 const std::vector<std::vector<double>> &data = {},
92 const std::vector<std::string> &data_component_names = {},
93 const std::vector<DataComponentInterpretation::DataComponentInterpretation>
95
96
97protected:
101 virtual const std::vector<DataOutBase::Patch<0, spacedim>> &
102 get_patches() const override;
103
108 virtual std::vector<std::string>
109 get_dataset_names() const override;
110
117 virtual std::vector<
118 std::tuple<unsigned int,
119 unsigned int,
120 std::string,
122 get_nonscalar_data_ranges() const override;
123
124private:
130 std::vector<DataOutBase::Patch<0, spacedim>> patches;
131
135 std::vector<std::string> dataset_names;
136
142 std::vector<DataComponentInterpretation::DataComponentInterpretation>
144};
145
147
148#endif
std::vector< DataComponentInterpretation::DataComponentInterpretation > data_component_interpretations
std::vector< std::string > dataset_names
virtual std::vector< std::string > get_dataset_names() const override
void build_patches(const std::vector< Point< spacedim > > &locations, const std::size_t offset=0, const std::vector< std::vector< double > > &data={}, const std::vector< std::string > &data_component_names={}, const std::vector< DataComponentInterpretation::DataComponentInterpretation > &data_component_interpretations={})
virtual const std::vector< DataOutBase::Patch< 0, spacedim > > & get_patches() const override
virtual std::vector< std::tuple< unsigned int, unsigned int, std::string, DataComponentInterpretation::DataComponentInterpretation > > get_nonscalar_data_ranges() const override
std::vector< DataOutBase::Patch< 0, spacedim > > patches
Definition point.h:111
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
std::vector< index_type > data
Definition mpi.cc:734