NCBI C++ ToolKit
|
Search Toolkit Book for ChemicalGraph
#include "chemical_graph.hpp"
(Private to src/app/cn3d
.)
Public Types | |
typedef std::map< int, const Molecule * > | MoleculeMap |
typedef std::list< const Bond * > | BondList |
Public Member Functions | |
ChemicalGraph (StructureBase *parent, const ncbi::objects::CBiostruc_graph &graph, const FeatureList &features) | |
void | RedrawMolecule (int moleculeID) const |
bool | DrawAll (const AtomSet *atomSet=NULL) const |
const Residue::AtomInfo * | GetAtomInfo (const AtomPntr &atom) const |
bool | CheckForDisulfide (const Molecule *molecule, const ncbi::objects::CAtom_pntr &atomPtr1, const ncbi::objects::CAtom_pntr &atomPtr2, std::list< const Bond * > *bondList, Bond *bond, StructureBase *parent) |
Public Member Functions inherited from StructureBase | |
StructureBase (StructureBase *parent) | |
virtual | ~StructureBase (void) |
virtual bool | Draw (const AtomSet *atomSet=NULL) const |
template<class T > | |
bool | GetParentOfType (const T **ptr, bool warnIfNotFound=true) const |
Public Attributes | |
std::string | name |
MoleculeMap | molecules |
BondList | interMoleculeBonds |
Public Attributes inherited from StructureBase | |
StructureSet * | parentSet |
Private Types | |
typedef std::list< std::pair< AtomSet *, const std::string * > > | AtomSetList |
Private Member Functions | |
void | UnpackDomainFeatures (const ncbi::objects::CBiostruc_feature_set &featureSet) |
void | UnpackSecondaryStructureFeatures (const ncbi::objects::CBiostruc_feature_set &featureSet) |
Private Attributes | |
AtomSetList | atomSetList |
unsigned int | displayListOtherStart |
Definition at line 69 of file chemical_graph.hpp.
|
private |
Definition at line 104 of file chemical_graph.hpp.
typedef std::list< const Bond * > ChemicalGraph::BondList |
Definition at line 79 of file chemical_graph.hpp.
typedef std::map< int, const Molecule * > ChemicalGraph::MoleculeMap |
Definition at line 77 of file chemical_graph.hpp.
ChemicalGraph::ChemicalGraph | ( | StructureBase * | parent, |
const ncbi::objects::CBiostruc_graph & | graph, | ||
const FeatureList & | features | ||
) |
Definition at line 101 of file chemical_graph.cpp.
References atomSetList, CheckForDisulfide(), StructureObject::coordSets, displayListOtherStart, Molecule::displayLists, AtomSet::ensembles, Bond::eRealDisulfide, ERRORMSG, Bond::eUnknown, FATALMSG, StructureSet::frameMap, CBiostruc_graph_Base::GetDescr(), CBiostruc_graph_Base::GetInter_molecule_bonds(), CBiostruc_graph_Base::GetMolecule_graphs(), StructureBase::GetParentOfType(), CBiostruc_graph_Base::GetResidue_graphs(), CBiostruc_residue_graph_set_Base::GetResidue_graphs(), i, Molecule::id, interMoleculeBonds, StructureSet::IsMultiStructure(), Molecule::IsNucleotide(), Molecule::IsProtein(), CBiostruc_graph_Base::IsSetDescr(), CBiostruc_graph_Base::IsSetInter_molecule_bonds(), StructureSet::lastDisplayList, le(), MakeBond(), molecules, n, name, Molecule::nDomains, Molecule::NO_DOMAIN_SET, OpenGLRenderer::NO_LIST, NULL, Bond::order, StructureBase::parentSet, r(), Molecule::residueDomains, Molecule::residues, standardDictionary, TRACEMSG, StructureSet::transformMap, UnpackDomainFeatures(), UnpackSecondaryStructureFeatures(), and WARNINGMSG.
bool ChemicalGraph::CheckForDisulfide | ( | const Molecule * | molecule, |
const ncbi::objects::CAtom_pntr & | atomPtr1, | ||
const ncbi::objects::CAtom_pntr & | atomPtr2, | ||
std::list< const Bond * > * | bondList, | ||
Bond * | bond, | ||
StructureBase * | parent | ||
) |
Definition at line 471 of file chemical_graph.cpp.
References Residue::AtomInfo::atomicNumber, Residue::eAminoAcid, Bond::eRealDisulfide, ERRORMSG, Bond::eVirtualDisulfide, CAliasBase< TPrim >::Get(), CAtom_pntr_Base::GetAtom_id(), CAtom_pntr_Base::GetMolecule_id(), CAtom_pntr_Base::GetResidue_id(), MakeBond(), molecules, Residue::NO_ALPHA_ID, Bond::order, Molecule::residues, and TRACEMSG.
Referenced by ChemicalGraph(), and Molecule::Molecule().
Reimplemented from StructureBase.
Definition at line 382 of file chemical_graph.cpp.
References a, atomSetList, b, displayListOtherStart, OpenGLRenderer::EndDisplayList(), StructureBase::GetParentOfType(), StructureObject::GetPDBID(), interMoleculeBonds, molecules, moleculeToRedraw, n, OpenGLRenderer::NO_LIST, CoordSet::objectMap, StructureBase::parentSet, StructureSet::renderer, OpenGLRenderer::StartDisplayList(), and TRACEMSG.
Referenced by RedrawMolecule().
|
inline |
Definition at line 86 of file chemical_graph.hpp.
References AtomPntr::aID, ERR_POST, info, AtomPntr::mID, molecules, NULL, AtomPntr::rID, and Warning().
Referenced by StyleManager::GetBondStyle().
void ChemicalGraph::RedrawMolecule | ( | int | moleculeID | ) | const |
Definition at line 374 of file chemical_graph.cpp.
References DrawAll(), moleculeToRedraw, and NULL.
Referenced by Messenger::ProcessRedraws().
|
private |
Definition at line 274 of file chemical_graph.cpp.
References StructureObject::domainMap, ERRORMSG, CBiostruc_feature_Base::eType_subgraph, f(), ctll::front(), CBiostruc_feature_set_Base::GetFeatures(), StructureBase::GetParentOfType(), i, Molecule::id, molecules, Molecule::nDomains, Molecule::NO_DOMAIN_SET, NULL, StructureBase::parentSet, r(), Molecule::residueDomains, Molecule::residues, TRACEMSG, and WARNINGMSG.
Referenced by ChemicalGraph().
|
private |
Definition at line 329 of file chemical_graph.cpp.
References Molecule::eCoil, Molecule::eHelix, ERRORMSG, Molecule::eStrand, CBiostruc_feature_Base::eType_helix, CBiostruc_feature_Base::eType_strand, f(), CAliasBase< TPrim >::Get(), CBiostruc_feature_set_Base::GetFeatures(), CResidue_interval_pntr_Base::GetFrom(), CResidue_interval_pntr_Base::GetMolecule_id(), CResidue_interval_pntr_Base::GetTo(), Molecule::id, molecules, r(), Molecule::residues, Molecule::residueSecondaryStructures, TRACEMSG, and WARNINGMSG.
Referenced by ChemicalGraph().
|
private |
Definition at line 105 of file chemical_graph.hpp.
Referenced by ChemicalGraph(), and DrawAll().
|
private |
Definition at line 106 of file chemical_graph.hpp.
Referenced by ChemicalGraph(), and DrawAll().
BondList ChemicalGraph::interMoleculeBonds |
Definition at line 80 of file chemical_graph.hpp.
Referenced by ChemicalGraph(), and DrawAll().
MoleculeMap ChemicalGraph::molecules |
Definition at line 78 of file chemical_graph.hpp.
Referenced by CheckForDisulfide(), ChemicalGraph(), DrawAll(), GetAtomInfo(), StructureSet::MatchSequenceToMoleculeInObject(), PostRedrawEntity(), StructureObject::SelectByDistance(), CDDAnnotateDialog::ShowEvidence(), UnpackDomainFeatures(), and UnpackSecondaryStructureFeatures().
std::string ChemicalGraph::name |
Definition at line 76 of file chemical_graph.hpp.
Referenced by ChemicalGraph(), and Sequence::GetDescription().