Rosetta Core  2014.35
Public Member Functions | Private Attributes | List of all members
core::chemical::AtomICoor Class Reference

A basic class containing info of internal coordinates needed for building an atom within a ResidueType. More...

#include <AtomICoor.hh>

Public Member Functions

 AtomICoor ()
 default constructor More...
 
 AtomICoor (std::string const &built_atom_name, Real const phi_in, Real const theta_in, Real const d_in, std::string const &stub_atom1_name, std::string const &stub_atom2_name, std::string const &stub_atom3_name, ResidueType const &rsd_type)
 constructor More...
 
 AtomICoor (VD const &built_atom_vd, Real const phi_in, Real const theta_in, Real const d_in, VD const &stub_atom1_vd, VD const &stub_atom2_vd, VD const &stub_atom3_vd, ResidueType const &rsd_type)
 Vertex descriptor version. More...
 
Real phi () const
 accessor to stub_atom1 ICoorAtomID More...
 
Real theta () const
 
Real d () const
 
ICoorAtomID const & stub_atom1 () const
 
ICoorAtomID const & stub_atom2 () const
 accessor to stub_atom2 ICoorAtomID More...
 
ICoorAtomID const & stub_atom3 () const
 accessor to stub_atom3 ICoorAtomID More...
 
bool is_internal () const
 
bool depends_on_polymer_lower () const
 
bool depends_on_polymer_upper () const
 
bool depends_on_residue_connection (Size const connid) const
 Returns true if any of the stub atoms is the specified connection ID. More...
 
bool depends_on_residue_connection () const
 Returns true if any of the stub atoms is a connection ID. More...
 
ICoorAtomIDstub_atom (int const atm)
 accessor to stub_atom ICoorAtomID More...
 
ICoorAtomID const & stub_atom (int const atm) const
 constant accessor to stub_atom ICoorAtomID More...
 
void built_atom_vertex (core::chemical::VD vd)
 
core::chemical::VD built_atom_vertex () const
 The vertex descriptor of the atom being built by this icoor Can be null_vertex if this AtomICoor doesn't build a physical atom. (e.g. CONNECT, UPPER, LOWER) More...
 
Vector build (conformation::Residue const &rsd, conformation::Conformation const &conformation) const
 
Vector build (ResidueType const &rsd_type) const
 
Vector build (conformation::Residue const &rsd) const
 WARNING: Slightly dangerous function intended for black magic use only. Rebuilds atom location from stub atoms. If stub atom are not internal atoms, their location will be rebuilt from their residue stub atom's locations, as opposed to being retrieved from connected residues via a conformation. More...
 

Private Attributes

VD built_vd_
 
Real phi_
 
Real theta_
 
Real d_
 
ICoorAtomID stub_atom1_
 
ICoorAtomID stub_atom2_
 
ICoorAtomID stub_atom3_
 

Detailed Description

A basic class containing info of internal coordinates needed for building an atom within a ResidueType.

In atom tree, each atom is defined by its internal coordinates, which include a bond distance, a bond angle and a torsion angle. Of course, all these internal coordinates are only meaningful in the context of three reference (stub) atoms. AtomICoor information is stored in the residue param files and some terms are defined as following:

Constructor & Destructor Documentation

core::chemical::AtomICoor::AtomICoor ( )

default constructor

core::chemical::AtomICoor::AtomICoor ( std::string const &  built_atom_name,
Real const  phi_in,
Real const  theta_in,
Real const  d_in,
std::string const &  stub_atom1_name,
std::string const &  stub_atom2_name,
std::string const &  stub_atom3_name,
ResidueType const &  rsd_type 
)

constructor

core::chemical::AtomICoor::AtomICoor ( VD const &  built_atom_vd,
Real const  phi_in,
Real const  theta_in,
Real const  d_in,
VD const &  stub_atom1_vd,
VD const &  stub_atom2_vd,
VD const &  stub_atom3_vd,
ResidueType const &  rsd_type 
)

Vertex descriptor version.

Member Function Documentation

Vector core::chemical::AtomICoor::build ( conformation::Residue const &  rsd,
conformation::Conformation const &  conformation 
) const
Vector core::chemical::AtomICoor::build ( ResidueType const &  rsd_type) const
Vector core::chemical::AtomICoor::build ( conformation::Residue const &  rsd) const

WARNING: Slightly dangerous function intended for black magic use only. Rebuilds atom location from stub atoms. If stub atom are not internal atoms, their location will be rebuilt from their residue stub atom's locations, as opposed to being retrieved from connected residues via a conformation.

WARNING: Slightly dangerous function intended for black magic use only. Only to be used for situations where you know the AtomICoor /and all it's stub atoms/ can't be anything but real atoms on the given residue, and where a conformation is absolutely not availible. If you /can/ use AtomICoor::build( Residue const &, Conformation const &), you /should/.

References d_, phi_, core::kinematics::Stub::spherical(), stub_atom1_, stub_atom2_, stub_atom3_, theta_, and core::chemical::ICoorAtomID::xyz().

void core::chemical::AtomICoor::built_atom_vertex ( core::chemical::VD  vd)
inline
core::chemical::VD core::chemical::AtomICoor::built_atom_vertex ( ) const
inline

The vertex descriptor of the atom being built by this icoor Can be null_vertex if this AtomICoor doesn't build a physical atom. (e.g. CONNECT, UPPER, LOWER)

References built_vd_.

Real core::chemical::AtomICoor::d ( ) const
inline
bool core::chemical::AtomICoor::depends_on_polymer_lower ( ) const
inline
bool core::chemical::AtomICoor::depends_on_polymer_upper ( ) const
inline
bool core::chemical::AtomICoor::depends_on_residue_connection ( Size const  connid) const
inline
bool core::chemical::AtomICoor::depends_on_residue_connection ( ) const
inline

Returns true if any of the stub atoms is a connection ID.

Author
Vikram K. Mulligan (vmull.nosp@m.ig@u.nosp@m.w.edu)

References core::chemical::ICoorAtomID::is_connect(), stub_atom1_, stub_atom2_, and stub_atom3_.

bool core::chemical::AtomICoor::is_internal ( ) const
inline
Real core::chemical::AtomICoor::phi ( ) const
inline
ICoorAtomID& core::chemical::AtomICoor::stub_atom ( int const  atm)
inline
ICoorAtomID const& core::chemical::AtomICoor::stub_atom ( int const  atm) const
inline

constant accessor to stub_atom ICoorAtomID

References stub_atom1_, stub_atom2_, stub_atom3_, and utility_exit_with_message.

ICoorAtomID const& core::chemical::AtomICoor::stub_atom1 ( ) const
inline
ICoorAtomID const& core::chemical::AtomICoor::stub_atom2 ( ) const
inline
ICoorAtomID const& core::chemical::AtomICoor::stub_atom3 ( ) const
inline
Real core::chemical::AtomICoor::theta ( ) const
inline

Member Data Documentation

VD core::chemical::AtomICoor::built_vd_
private

Referenced by built_atom_vertex().

Real core::chemical::AtomICoor::d_
private

Referenced by build(), and d().

Real core::chemical::AtomICoor::phi_
private

Referenced by build(), and phi().

ICoorAtomID core::chemical::AtomICoor::stub_atom1_
private
ICoorAtomID core::chemical::AtomICoor::stub_atom2_
private
ICoorAtomID core::chemical::AtomICoor::stub_atom3_
private
Real core::chemical::AtomICoor::theta_
private

Referenced by build(), and theta().


The documentation for this class was generated from the following files: