BALL::MolecularInformation Class Reference
[Object Persistence.]

#include <BALL/CONCEPT/molecularInformation.h>

Inheritance diagram for BALL::MolecularInformation:
Inheritance graph
[legend]

List of all members.

Public Types

Enums

enum  Type {
  TYPE__UNKNOWN = -1, TYPE__SYSTEM = 0, TYPE__PROTEIN = 1, TYPE__MOLECULE = 2,
  TYPE__CHAIN = 3, TYPE__FRAGMENT = 4, TYPE__RESIDUE = 5, TYPE__SECONDARY_STRUCTURE = 6,
  TYPE__ATOM = 7, TYPE__BOND = 8
}

Public Member Functions

Constructors and Destructors

 MolecularInformation ()
virtual ~MolecularInformation ()
virtual void clear ()
Accessors: inspectors and mutators

Type getType () const
String getName () const
String getTypeName () const
virtual void visit (Composite &composite)

Private Member Functions

String getBondAtomName_ (Atom *atom)
void getType_ (Composite &composite)
void getTypeName_ ()
void getName_ (Composite &composite)

Private Attributes

Type type_
String name_
String type_name_

Detailed Description

MolecularInformation class. This class is used by the class MolecularControl to retrieve names and types of the displayed Composite objects.

Definition at line 21 of file molecularInformation.h.


Member Enumeration Documentation

Type. This types are possible.

Enumerator:
TYPE__UNKNOWN 

Unkown type. This value will be set in clear.

TYPE__SYSTEM 

System type.

TYPE__PROTEIN 

Protein type.

TYPE__MOLECULE 

Molecule type.

TYPE__CHAIN 

Chain type.

TYPE__FRAGMENT 

Fragment type.

TYPE__RESIDUE 

Residue type.

TYPE__SECONDARY_STRUCTURE 

SecondaryStructure type.

TYPE__ATOM 

Atom type.

TYPE__BOND 

Bond type.

Definition at line 32 of file molecularInformation.h.


Constructor & Destructor Documentation

BALL::MolecularInformation::MolecularInformation (  ) 

Default Constructor. Calls clear.

virtual BALL::MolecularInformation::~MolecularInformation (  )  [virtual]

Destructor.


Member Function Documentation

virtual void BALL::MolecularInformation::clear (  )  [virtual]

Explicit default initialization. Reset the state of this moleculareInformation to: Calls Information::clear.

  • type is set to TYPE__UNKNOWN
String BALL::MolecularInformation::getBondAtomName_ ( Atom atom  )  [private]
String BALL::MolecularInformation::getName (  )  const [inline]

Definition at line 104 of file molecularInformation.h.

void BALL::MolecularInformation::getName_ ( Composite composite  )  [private]
Type BALL::MolecularInformation::getType (  )  const [inline]

Return the type of the given composite. If the given Composite is of any kind that is defined by the enumeration Type this type will be returned.

Returns:
Type the type of the Composite
See also:
Type
visit

Definition at line 101 of file molecularInformation.h.

void BALL::MolecularInformation::getType_ ( Composite composite  )  [private]
String BALL::MolecularInformation::getTypeName (  )  const [inline]

Definition at line 107 of file molecularInformation.h.

void BALL::MolecularInformation::getTypeName_ (  )  [private]
virtual void BALL::MolecularInformation::visit ( Composite composite  )  [virtual]

Visit method. This method tries to determine the name and the type of the Composite object. If the type of composite returned from the method getType is one of the defined type of Type than that name and type is set to the variables name_ and type_name_. If the type is TYPE__UNKOWN than the method getType is called to determine the type.

Parameters:
composite the Composite object whose information should be extracted
See also:
getType

Implements BALL::Visitor< Composite >.


Member Data Documentation

Definition at line 130 of file molecularInformation.h.

Definition at line 129 of file molecularInformation.h.

Definition at line 131 of file molecularInformation.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Generated by  doxygen 1.6.3