OpenStructure
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
stage
include
ost
qa
impl
reduced_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-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
20
#ifndef OST_QA_IMPL_REDUCED_HH
21
#define OST_QA_IMPL_REDUCED_HH
22
23
24
#include <
ost/mol/mol.hh
>
25
26
#include <
ost/qa/module_config.hh
>
27
#include <
ost/qa/amino_acids.hh
>
28
#include <
ost/qa/reduced_statistics.hh
>
29
30
namespace
ost {
namespace
qa {
namespace
impl {
31
32
class
DLLEXPORT_OST_QA
ReducedPotentialImpl
:
public
mol::EntityVisitor
{
33
public
:
34
35
ReducedPotentialImpl
(
const
ReducedStatOptions
& opts,
mol::EntityHandle
ent):
36
opts_(opts), ent_(ent)
37
{ }
38
39
ReducedPotentialImpl
(
const
ReducedStatOptions
& opts,
mol::EntityView
ent):
40
opts_(opts), view_(ent)
41
{ }
42
43
virtual
bool
VisitResidue(
const
mol::ResidueHandle
& res);
44
45
static
bool
GetCAlphaCBetaPos(
const
mol::ResidueHandle
& res,
46
geom::Vec3
& ca_pos,
47
geom::Vec3
& cb_pos);
48
49
virtual
void
OnInteraction(
AminoAcid
aa_one,
AminoAcid
aa_two,
50
Real
dist,
Real
angle)=0;
51
private
:
52
void
HandleResidue(
AminoAcid
aa_one,
const
geom::Vec3
& ca_pos_one,
53
const
geom::Vec3
& cb_pos_one,
54
uint
index_one,
const
mol::AtomHandle
& ca_two);
55
ReducedStatOptions
opts_;
56
mol::EntityHandle
ent_;
57
mol::EntityView
view_;
58
};
59
60
}}}
61
62
#endif
Generated on Thu Jun 14 2012 18:58:02 for OpenStructure by
1.8.1.1