Peano
Loading...
Searching...
No Matches
Edge.h
Go to the documentation of this file.
1// This file is part of the Peano project. For conditions of distribution and
2// use, please see the copyright notice at www.peano-framework.org
3#pragma once
4
7
8namespace toolbox {
9 namespace curvi {
10 class Edge {
11 public:
12 Edge(Coordinate a_direction);
13 Edge(std::vector<double> a_data, Coordinate a_direction);
14 Edge(Coordinate a_direction, double start[3], double stop[3], int n);
15
16 Edge(const Edge& other);
18
19 Edge subedge(int start, int stop);
20
21 void split(double intersection_node[3], Edge& left_edge, Edge& right_edge);
22
23 Edge remesh(int numNodesNew);
24 Edge interpolate(const std::vector<double>& range_in, const std::vector<double>& range_out, int window = 11);
25
26
27 void resize(int i);
28 void push_back(double d);
29
30 int size() const;
31 int numNodes() const;
32
33 friend std::ostream& operator<<(std::ostream& ss, const Edge& e);
34 std::string printEdge() const;
35
36 double& operator()(int coord, int i);
37 const double& operator()(int coord, int i) const;
38
39 std::vector<double>& getData();
40
42
43 private:
44 Coordinate direction; // monotonically increasing index
45 std::vector<double> data;
46 };
47 } // namespace curvi
48} // namespace toolbox
void split(double intersection_node[3], Edge &left_edge, Edge &right_edge)
std::vector< double > data
Definition Edge.h:45
Coordinate direction
Definition Edge.h:44
std::string printEdge() const
friend std::ostream & operator<<(std::ostream &ss, const Edge &e)
Edge(const Edge &other)
Edge & operator=(Edge other)
const double & operator()(int coord, int i) const
Edge remesh(int numNodesNew)
Edge(Coordinate a_direction, double start[3], double stop[3], int n)
std::vector< double > & getData()
Edge subedge(int start, int stop)
double & operator()(int coord, int i)
Edge interpolate(const std::vector< double > &range_in, const std::vector< double > &range_out, int window=11)
Edge(std::vector< double > a_data, Coordinate a_direction)
void push_back(double d)
int numNodes() const
Coordinate getDirection()
Definition Edge.h:41
Edge(Coordinate a_direction)