View on GitHub

Vistle

Distributed Data-parallel Scientific Visualization in VR

geometry.h
Go to the documentation of this file.
1#ifndef VISTLE_GEOMETRY_H
2#define VISTLE_GEOMETRY_H
3
4#include "export.h"
5#include "object.h"
6#include "vector.h"
7
8namespace vistle {
9
10class Normals;
11typedef std::shared_ptr<Normals> normals_ptr;
12typedef std::shared_ptr<const Normals> normals_const_ptr;
13
15public:
16 virtual std::pair<Vector, Vector> getBounds() const = 0;
17 virtual Index getNumVertices() = 0;
18 virtual Index getNumVertices() const = 0;
19 virtual normals_const_ptr normals() const = 0;
20 virtual Vector3 getVertex(Index v) const = 0;
21};
22
24public:
25 virtual Index getNumElements() = 0;
26 virtual Index getNumElements() const = 0;
27 virtual Index cellNumFaces(Index elem) const = 0;
28 virtual std::vector<Index> cellVertices(Index elem) const = 0;
29};
30
31} // namespace vistle
32#endif
Definition: geometry.h:23
virtual Index getNumElements()=0
virtual std::vector< Index > cellVertices(Index elem) const =0
virtual Index cellNumFaces(Index elem) const =0
virtual Index getNumElements() const =0
Definition: geometry.h:14
virtual std::pair< Vector, Vector > getBounds() const =0
virtual Index getNumVertices() const =0
virtual Vector3 getVertex(Index v) const =0
virtual Index getNumVertices()=0
virtual normals_const_ptr normals() const =0
Definition: object.h:49
#define V_COREEXPORT
Definition: export.h:9
Definition: allobjects.cpp:30
std::shared_ptr< const Normals > normals_const_ptr
Definition: geometry.h:12
Eigen::Matrix< Scalar, 3, 1 > Vector3
Definition: vector.h:33
std::shared_ptr< Normals > normals_ptr
Definition: geometry.h:10
uint32_t Index
Definition: index.h:13