Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
core::kinematics::RT Class Reference

Rotation + translation class. More...

#include <RT.hh>

Collaboration diagram for core::kinematics::RT:
Collaboration graph
[legend]

Public Types

typedef numeric::xyzVector< RealVector
 
typedef numeric::xyzMatrix< RealMatrix
 
typedef void iterator_category
 
typedef void difference_type
 

Public Member Functions

 RT ()
 Default constructor. More...
 
 RT (Matrix const &rot, Vector const &vec)
 matrix/vector constructor More...
 
 RT (Stub const &stub1, Stub const &stub2)
 construct from two stubs More...
 
 RT (RT const &src)
 copy constructor More...
 
void from_stubs (Stub const &stub1, Stub const &stub2)
 update from stubs More...
 
void reverse ()
 reverse the "view" More...
 
void inverse ()
 reverse the "view" More...
 
void reset ()
 return to default-constructed state More...
 
void identity_transform ()
 return to default-constructed state (another name) More...
 
void set_translation (Vector const &t)
 set the tranlsation More...
 
void set_rotation (Matrix const &r)
 set the rotation More...
 
Matrix const & get_rotation () const
 get the rotation More...
 
Vector const & get_translation () const
 get the translation More...
 
Real distance_squared (RT const &b) const
 
void fold_in_rb_deltas (utility::vector1< Real > const &rb, Vector const &rb_center)
 update the transform to include small additional rigid-body rotations and translations More...
 
void make_jump (Stub const &stub1, Stub &stub2) const
 should be inverse of RT::from_stubs More...
 
RToperator= (RT const &src)
 copy operator More...
 
bool ortho_check () const
 check for orthogonality More...
 

Private Attributes

Matrix rotation
 rotation matrix, written in stub1 frame More...
 
Vector translation
 tranlsation vector, written in stub1 frame More...
 

Friends

std::ostream & operator<< (std::ostream &os, RT const &rt)
 output operator More...
 
std::istream & operator>> (std::istream &is, RT &rt)
 input operator More...
 
Real distance (RT const &a, RT const &b)
 root squared devitation of two RTs More...
 

Detailed Description

Rotation + translation class.

Note
Used in jumps

Definition at line 45 of file RT.hh.

Member Typedef Documentation

Definition at line 54 of file RT.hh.

Definition at line 53 of file RT.hh.

Definition at line 50 of file RT.hh.

Definition at line 49 of file RT.hh.

Constructor & Destructor Documentation

core::kinematics::RT::RT ( )
inline

Default constructor.

Definition at line 60 of file RT.hh.

core::kinematics::RT::RT ( Matrix const &  rot,
Vector const &  vec 
)
inline

matrix/vector constructor

Definition at line 67 of file RT.hh.

core::kinematics::RT::RT ( Stub const &  stub1,
Stub const &  stub2 
)
inline

construct from two stubs

Definition at line 73 of file RT.hh.

References from_stubs().

core::kinematics::RT::RT ( RT const &  src)
inline

copy constructor

Definition at line 79 of file RT.hh.

Member Function Documentation

Real core::kinematics::RT::distance_squared ( RT const &  b) const
inline

Definition at line 162 of file RT.hh.

References rotation, and translation.

Referenced by core::kinematics::AtomTree::insert_single_fragment().

void core::kinematics::RT::fold_in_rb_deltas ( utility::vector1< Real > const &  rb,
Vector const &  rb_center 
)

update the transform to include small additional rigid-body rotations and translations

Note
PHIL: IT WOULD BE GOOD TO ELIMINATE ARGUMENT ARRAYS IN MINI BY USE OF APPROPRIATE LAYERED DATA STRUCTURES

rb are the small changes in translation and rotation, written in up-stream (jump_start) rb_center is the center of rotation, written in the down-stream (jump_end)

Definition at line 42 of file RT.cc.

References rotation, and translation.

Referenced by core::kinematics::Jump::fold_in_rb_deltas(), and core::kinematics::Jump::make_jump().

void core::kinematics::RT::from_stubs ( Stub const &  stub1,
Stub const &  stub2 
)
inline
Matrix const& core::kinematics::RT::get_rotation ( ) const
inline
Vector const& core::kinematics::RT::get_translation ( ) const
inline
void core::kinematics::RT::identity_transform ( )
inline

return to default-constructed state (another name)

Definition at line 125 of file RT.hh.

References rotation, and translation.

Referenced by core::kinematics::Jump::identity_transform().

void core::kinematics::RT::inverse ( )
inline

reverse the "view"

Definition at line 110 of file RT.hh.

References reverse().

void core::kinematics::RT::make_jump ( Stub const &  stub1,
Stub stub2 
) const
inline
RT& core::kinematics::RT::operator= ( RT const &  src)
inline

copy operator

Definition at line 198 of file RT.hh.

References rotation, and translation.

bool core::kinematics::RT::ortho_check ( ) const

check for orthogonality

Definition at line 76 of file RT.cc.

References rotation.

Referenced by core::kinematics::operator<<(), core::kinematics::operator>>(), and core::kinematics::Jump::ortho_check().

void core::kinematics::RT::reset ( )
inline

return to default-constructed state

Definition at line 117 of file RT.hh.

References rotation, and translation.

Referenced by core::kinematics::Jump::reset().

void core::kinematics::RT::reverse ( )
inline
void core::kinematics::RT::set_rotation ( Matrix const &  r)
inline
void core::kinematics::RT::set_translation ( Vector const &  t)
inline

Friends And Related Function Documentation

Real distance ( RT const &  a,
RT const &  b 
)
friend

root squared devitation of two RTs

Definition at line 226 of file RT.hh.

std::ostream& operator<< ( std::ostream &  os,
RT const &  rt 
)
friend

output operator

Definition at line 108 of file RT.cc.

std::istream& operator>> ( std::istream &  is,
RT rt 
)
friend

input operator

Definition at line 131 of file RT.cc.

Member Data Documentation

Matrix core::kinematics::RT::rotation
private
Vector core::kinematics::RT::translation
private

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