OpenStructure
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
stage
include
ost
mol
ics_editor.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_ICS_EDITOR_HE
20
#define OST_ICS_EDITOR_HE
21
/*
22
Author: Marco Biasini
23
*/
24
25
#include <
ost/mol/module_config.hh
>
26
#include <
ost/geom/geom.hh
>
27
28
#include "
handle_type_fw.hh
"
29
#include "
editor_base.hh
"
30
namespace
ost {
namespace
mol {
31
34
class
DLLEXPORT_OST_MOL
ICSEditor
:
public
EditorBase
{
35
public
:
36
friend
class
EntityHandle
;
37
~
ICSEditor
();
38
protected
:
39
ICSEditor
(
const
EntityHandle
& ent,
EditMode
mode);
40
41
void
Update();
42
public
:
43
ICSEditor
(
const
ICSEditor
& rhs);
44
45
ICSEditor
& operator=(
const
ICSEditor
& rhs);
46
55
void
SetBondLength(
const
BondHandle
& bond,
Real
length);
56
66
67
bool
SetAngle(
const
AtomHandle
& atom_a,
const
AtomHandle
& atom_b,
68
const
AtomHandle
& atom_c,
Real
angle);
69
77
void
SetTorsionAngle(
TorsionHandle
torsion,
Real
angle);
79
void
RotateTorsionAngle(
TorsionHandle
torsion,
Real
delta);
80
81
void
RotateTorsionAngle(
const
AtomHandle
& atom_a,
82
const
AtomHandle
& atom_b,
83
const
AtomHandle
& atom_c,
84
const
AtomHandle
& atom_d,
85
Real
angle);
86
87
void
SetTorsionAngle(
const
AtomHandle
& atom_a,
const
AtomHandle
& atom_b,
88
const
AtomHandle
& atom_c,
const
AtomHandle
& atom_d,
89
Real
angle);
90
92
void
UpdateXCS();
93
};
94
95
}}
// ns
96
102
#endif
Generated on Thu Jun 14 2012 18:58:01 for OpenStructure by
1.8.1.1