OpenStructure
Loading...
Searching...
No Matches
surface_impl.hh
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// This file is part of the OpenStructure project <www.openstructure.org>
3//
4// Copyright (C) 2008-2020 by the OpenStructure authors
5//
6// This library is free software; you can redistribute it and/or modify it under
7// the terms of the GNU Lesser General Public License as published by the Free
8// Software Foundation; either version 3.0 of the License, or (at your option)
9// any later version.
10// This library is distributed in the hope that it will be useful, but WITHOUT
11// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13// details.
14//
15// You should have received a copy of the GNU Lesser General Public License
16// along with this library; if not, write to the Free Software Foundation, Inc.,
17// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18//------------------------------------------------------------------------------
19#ifndef OST_SURFACE_IMPL_HH
20#define OST_SURFACE_IMPL_HH
21
22#include <vector>
23
26
27#include "surface_impl_fw.hh"
28
29namespace ost { namespace mol { namespace impl {
30
33
36
37 typedef std::vector<SurfaceVertex> VertexList;
38 typedef std::vector<SurfaceTri> FaceList;
39
40public:
42
45
46 void Attach(const EntityHandle& eh, Real cutoff);
47 void Attach(const EntityView& ev, Real cutoff);
48
51
53 const SurfaceTri& Tri(SurfaceTriID id) const;
54
55 std::vector<SurfaceVertexID> GetVertexIDList() const;
56 std::vector<SurfaceVertexID> GetTriIDList() const;
57
59
60 void Invert();
61
62private:
63 VertexList vertex_list_;
64 FaceList face_list_;
65
66 SpatialSurfaceVertexOrganizer vertex_organizer_;
67
68 std::vector<SurfaceVertexID> vertex_id_list_;
69 std::vector<SurfaceTriID> tri_id_list_;
70};
71
72}}} // ns
73
74#endif
Three dimensional vector class, using Real precision.
Definition vec3.hh:48
Protein or molecule.
definition of EntityView
const SurfaceTri & Tri(SurfaceTriID id) const
SurfaceVertexList FindWithin(const geom::Vec3 &pos, Real distance)
SurfaceTri & Tri(SurfaceTriID id)
const SurfaceVertex & Vertex(SurfaceVertexID id) const
void Attach(const EntityHandle &eh, Real cutoff)
SurfaceVertexID AddVertex(const SurfaceVertex &v)
void Attach(const EntityView &ev, Real cutoff)
std::vector< SurfaceVertexID > GetVertexIDList() const
std::vector< SurfaceVertexID > GetTriIDList() const
SurfaceTriID AddTri(SurfaceVertexID v0, SurfaceVertexID v1, SurfaceVertexID v2)
SurfaceVertex & Vertex(SurfaceVertexID id)
float Real
Definition base.hh:44
#define DLLEXPORT_OST_MOL
SpatialOrganizer< SurfaceVertexID > SpatialSurfaceVertexOrganizer
unsigned int SurfaceVertexID
std::vector< SurfaceVertex > SurfaceVertexList
unsigned int SurfaceTriID
Definition base.dox:1