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

observer that attaches to a Conformation and displays graphics More...

#include <ConformationViewer.hh>

Inheritance diagram for protocols::viewer::ConformationViewer:
Inheritance graph
[legend]
Collaboration diagram for protocols::viewer::ConformationViewer:
Collaboration graph
[legend]

Public Types

typedef utility::vector1
< core::conformation::ResidueCOP
ResidueCOPs
 

Public Member Functions

 ConformationViewer ()
 default constructor More...
 
 ConformationViewer (std::string const &name)
 constructor More...
 
 ConformationViewer (std::string const &name, int length, int width, bool debug_pause)
 constructor More...
 
 ~ConformationViewer ()
 
void display_func ()
 called by glutDisplayFunc More...
 
void display_if_necessary ()
 called by glutIdleFunc More...
 
int window () const
 
void window (int const setting)
 
int get_width () const
 
int get_length () const
 
protocols::viewer::GraphicsStateget_gs ()
 
std::string const & name () const
 
core::conformation::Conformation
const * 
is_observing () const
 is currently observing a Conformation? More...
 
void attach_to (core::conformation::Conformation const &conf)
 attach to Conformation More...
 
void detach_from ()
 detach from Conformation More...
 
void on_connection_change (core::conformation::signals::ConnectionEvent const &event)
 upon receiving a ConnectionEvent do... More...
 
void on_xyz_change (core::conformation::signals::XYZEvent const &event)
 upon receiving a GeneralEvent update the residues and atom tree root More...
 

Private Types

typedef
utility::pointer::ReferenceCount 
Super
 

Private Member Functions

 ConformationViewer (ConformationViewer const &rval)
 disallow copy constructor More...
 
ConformationVieweroperator= (ConformationViewer const &rval)
 disallow copy assignment More...
 

Private Attributes

ResidueCOPs residues_
 
utility::vector1< char > secstruct_
 
protocols::viewer::GraphicsState current_gs_
 
utility::vector1< triangletriangles_
 
core::id::AtomID anchor_id_
 
std::string const name_
 
bool new_conformation_
 
int my_window_
 
int length_
 
int width_
 
bool use_debug_pause_
 
utility::signals::Link connection_event_link_
 
utility::signals::Link xyz_event_link_
 
core::conformation::Conformation
const * 
conf_
 the Conformation being observed, we need this to ensure debug_pause is reset upon detachment More...
 

Detailed Description

observer that attaches to a Conformation and displays graphics

Member Typedef Documentation

Constructor & Destructor Documentation

protocols::viewer::ConformationViewer::ConformationViewer ( )

default constructor

protocols::viewer::ConformationViewer::ConformationViewer ( std::string const &  name)

constructor

protocols::viewer::ConformationViewer::ConformationViewer ( std::string const &  name,
int  length,
int  width,
bool  debug_pause 
)

constructor

protocols::viewer::ConformationViewer::~ConformationViewer ( )
protocols::viewer::ConformationViewer::ConformationViewer ( ConformationViewer const &  rval)
private

disallow copy constructor

Member Function Documentation

void protocols::viewer::ConformationViewer::attach_to ( core::conformation::Conformation const &  conf)

attach to Conformation

void protocols::viewer::ConformationViewer::detach_from ( )

detach from Conformation

void protocols::viewer::ConformationViewer::display_func ( )

called by glutDisplayFunc

void protocols::viewer::ConformationViewer::display_if_necessary ( )

called by glutIdleFunc

protocols::viewer::GraphicsState& protocols::viewer::ConformationViewer::get_gs ( )
inline

References current_gs_.

int protocols::viewer::ConformationViewer::get_length ( ) const
inline

References length_.

int protocols::viewer::ConformationViewer::get_width ( ) const
inline

References width_.

core::conformation::Conformation const* protocols::viewer::ConformationViewer::is_observing ( ) const

is currently observing a Conformation?

Returns
the Conformation, otherwise NULL
std::string const& protocols::viewer::ConformationViewer::name ( ) const
inline

References name_.

void protocols::viewer::ConformationViewer::on_connection_change ( core::conformation::signals::ConnectionEvent const &  event)

upon receiving a ConnectionEvent do...

void protocols::viewer::ConformationViewer::on_xyz_change ( core::conformation::signals::XYZEvent const &  event)

upon receiving a GeneralEvent update the residues and atom tree root

ConformationViewer& protocols::viewer::ConformationViewer::operator= ( ConformationViewer const &  rval)
private

disallow copy assignment

int protocols::viewer::ConformationViewer::window ( ) const
inline

References my_window_.

void protocols::viewer::ConformationViewer::window ( int const  setting)
inline

References my_window_.

Member Data Documentation

core::id::AtomID protocols::viewer::ConformationViewer::anchor_id_
private
core::conformation::Conformation const* protocols::viewer::ConformationViewer::conf_
private

the Conformation being observed, we need this to ensure debug_pause is reset upon detachment

utility::signals::Link protocols::viewer::ConformationViewer::connection_event_link_
private
protocols::viewer::GraphicsState protocols::viewer::ConformationViewer::current_gs_
private

Referenced by get_gs().

int protocols::viewer::ConformationViewer::length_
private

Referenced by get_length().

int protocols::viewer::ConformationViewer::my_window_
private

Referenced by window().

std::string const protocols::viewer::ConformationViewer::name_
private

Referenced by name().

bool protocols::viewer::ConformationViewer::new_conformation_
private
ResidueCOPs protocols::viewer::ConformationViewer::residues_
private
utility::vector1< char > protocols::viewer::ConformationViewer::secstruct_
private
utility::vector1< triangle > protocols::viewer::ConformationViewer::triangles_
private
bool protocols::viewer::ConformationViewer::use_debug_pause_
private
int protocols::viewer::ConformationViewer::width_
private

Referenced by get_width().

utility::signals::Link protocols::viewer::ConformationViewer::xyz_event_link_
private

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