Loading...
Searching...
No Matches
pointcloud.hpp
1/*---------------------------------------------------------------------------*\
2 *
3 * bitpit
4 *
5 * Copyright (C) 2015-2021 OPTIMAD engineering Srl
6 *
7 * -------------------------------------------------------------------------
8 * License
9 * This file is part of bitpit.
10 *
11 * bitpit is free software: you can redistribute it and/or modify it
12 * under the terms of the GNU Lesser General Public License v3 (LGPL)
13 * as published by the Free Software Foundation.
14 *
15 * bitpit is distributed in the hope that it will be useful, but WITHOUT
16 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18 * License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with bitpit. If not, see <http://www.gnu.org/licenses/>.
22 *
23\*---------------------------------------------------------------------------*/
24
25#ifndef __BITPIT_POINTCLOUD_HPP__
26#define __BITPIT_POINTCLOUD_HPP__
27
28#include <array>
29#include <vector>
30
31#include "bitpit_IO.hpp"
32#include "bitpit_patchkernel.hpp"
33
34namespace bitpit {
35
36class PointCloud : public PointKernel {
37
38public:
39 // Constructors
40#if BITPIT_ENABLE_MPI==1
41 PointCloud(MPI_Comm communicator);
42 PointCloud(int dimension, MPI_Comm communicator);
43 PointCloud(int id, int dimension, MPI_Comm communicator);
44 PointCloud(std::istream &stream, MPI_Comm communicator);
45#else
46 PointCloud();
47 PointCloud(int dimension);
48 PointCloud(int id, int dimension);
49 PointCloud(std::istream &stream);
50#endif
51
52 // Clone
53 std::unique_ptr<PatchKernel> clone() const override;
54
55 // Setters
57
58 // Search algorithms
59 long locatePoint(const std::array<double, 3> &point) const override;
60
61protected:
62 PointCloud(const PointCloud &other) = default;
63
64 int _getDumpVersion() const override;
65 void _dump(std::ostream &stream) const override;
66 void _restore(std::istream &stream) override;
67
68};
69
70}
71
72#endif
void setExpert(bool expert)
The PointCloud class defines a point cloud.
void _restore(std::istream &stream) override
long locatePoint(const std::array< double, 3 > &point) const override
std::unique_ptr< PatchKernel > clone() const override
void _dump(std::ostream &stream) const override
PointCloud(MPI_Comm communicator)
int _getDumpVersion() const override
--- layout: doxygen_footer ---