OpenStructure
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
stage
include
ost
mol
residue_handle.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-2011 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_RESIDUE_HANDLE_HU
20
#define OST_RESIDUE_HANDLE_HU
21
22
#include <
ost/geom/vec3.hh
>
23
#include <
ost/geom/aligned_cuboid.hh
>
24
25
#include <
ost/mol/query.hh
>
26
#include <
ost/mol/module_config.hh
>
27
#include <
ost/mol/residue_base.hh
>
28
#include <
ost/mol/entity_visitor_fw.hh
>
29
#include <
ost/mol/iterator_fw.hh
>
30
31
namespace
ost {
namespace
mol {
32
55
class
DLLEXPORT_OST_MOL
ResidueHandle
:
public
ResidueBase
{
56
public
:
57
ResidueHandle
();
58
60
ResidueHandle
(
const
impl::ResidueImplPtr
& impl)
61
:
ResidueBase
(impl) {}
62
EntityHandle
GetEntity()
const
;
63
65
AtomHandle
GetCentralAtom()
const
;
66
68
geom::Vec3
GetCentralNormal()
const
;
69
71
double
GetMass()
const
;
72
74
geom::Vec3
GetCenterOfMass()
const
;
75
80
geom::Vec3
GetCenterOfAtoms()
const
;
81
83
geom::AlignedCuboid
GetBounds()
const
;
84
86
ChainHandle
GetChain()
const
;
87
90
ResidueHandle
GetPrev()
const
;
91
94
ResidueHandle
GetNext()
const
;
95
99
AtomHandle
FindAtom(
const
String
& aname)
const
;
100
105
void
Apply(
EntityVisitor
& visitor);
106
110
AtomHandleList
GetAtomList()
const
;
111
113
int
GetAtomCount()
const
;
114
120
int
GetBondCount()
const
;
121
131
TorsionHandle
FindTorsion(
const
String
& torsion_name)
const
;
132
134
TorsionHandleList
GetTorsionList()
const
;
135
137
int
GetIndex()
const
;
138
145
146
147
148
bool
HasAltAtomGroup(
const
String
& group)
const
;
149
154
const
String
& GetCurrentAltGroupName()
const
;
155
157
std::vector<String> GetAltAtomGroupNames()
const
;
158
160
bool
HasAltAtoms()
const
;
161
165
geom::Vec3
GetAltAtomPos(
const
AtomHandle
& atom,
const
String
& group)
const
;
166
173
bool
SwitchAtomPos(
const
String
& group);
175
182
AtomHandleIter
AtomsBegin()
const
;
183
187
ResidueHandle
GetHandle()
const
;
188
unsigned
long
GetHashCode()
const
;
191
AtomHandleIter
AtomsEnd()
const
;
192
195
EntityView
Select(
const
Query
& q,
QueryFlags
flags=0)
const
;
196
199
EntityView
Select(
const
String
& query_string,
QueryFlags
flags=0)
const
;
200
201
bool
operator==
(
const
ResidueHandle
& ref)
const
;
202
bool
operator!=(
const
ResidueHandle
& ref)
const
;
203
204
205
206
};
207
212
bool
DLLEXPORT_OST_MOL
InSequence
(
const
ResidueHandle& residue_one,
213
const
ResidueHandle& residue_two);
214
215
216
}}
//ns
217
218
#endif // OST_RESIDUE_HANDLE_HH
219
Generated on Thu Jun 14 2012 18:58:01 for OpenStructure by
1.8.1.1