NCBI C++ ToolKit
Public Member Functions | Public Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
StructureBase Class Reference

Search Toolkit Book for StructureBase

#include "structure_base.hpp"
(Private to src/app/cn3d.)

+ Inheritance diagram for StructureBase:
+ Collaboration diagram for StructureBase:

Public Member Functions

 StructureBase (StructureBase *parent)
 
virtual ~StructureBase (void)
 
virtual bool DrawAll (const AtomSet *atomSet=NULL) const
 
virtual bool Draw (const AtomSet *atomSet=NULL) const
 
template<class T >
bool GetParentOfType (const T **ptr, bool warnIfNotFound=true) const
 

Public Attributes

StructureSetparentSet
 

Private Types

typedef std::list< StructureBase * > _ChildList
 

Private Member Functions

 StructureBase (void)
 
void _AddChild (StructureBase *child)
 
void _RemoveChild (const StructureBase *child)
 

Private Attributes

_ChildList _children
 
StructureBase_parent
 

Detailed Description

Definition at line 48 of file structure_base.hpp.

Member Typedef Documentation

◆ _ChildList

typedef std::list< StructureBase * > StructureBase::_ChildList
private

Definition at line 78 of file structure_base.hpp.

Constructor & Destructor Documentation

◆ StructureBase() [1/2]

StructureBase::StructureBase ( StructureBase parent)

Definition at line 51 of file structure_base.cpp.

References _AddChild(), _parent, ERRORMSG, NULL, and parentSet.

◆ ~StructureBase()

StructureBase::~StructureBase ( void  )
virtual

Definition at line 64 of file structure_base.cpp.

References _children, _parent, _RemoveChild(), and NULL.

◆ StructureBase() [2/2]

StructureBase::StructureBase ( void  )
private

Member Function Documentation

◆ _AddChild()

void StructureBase::_AddChild ( StructureBase child)
private

Definition at line 75 of file structure_base.cpp.

References _children.

Referenced by StructureBase().

◆ _RemoveChild()

void StructureBase::_RemoveChild ( const StructureBase child)
private

Definition at line 80 of file structure_base.cpp.

References _children, i, and WARNINGMSG.

Referenced by ~StructureBase().

◆ Draw()

virtual bool StructureBase::Draw ( const AtomSet atomSet = NULL) const
inlinevirtual

Reimplemented in Strand3D, Helix3D, Bond, SequenceSet, AlignmentSet, StructureSet, Residue, and CoordSet.

Definition at line 68 of file structure_base.hpp.

Referenced by DrawAll().

◆ DrawAll()

bool StructureBase::DrawAll ( const AtomSet atomSet = NULL) const
virtual

Reimplemented in ChemicalGraph.

Definition at line 93 of file structure_base.cpp.

References _children, Draw(), i, parentSet, and StructureSet::renderer.

Referenced by OpenGLRenderer::Construct(), and Molecule::DrawAllWithTerminiLabels().

◆ GetParentOfType()

template<class T >
bool StructureBase::GetParentOfType ( const T **  ptr,
bool  warnIfNotFound = true 
) const
inline

Member Data Documentation

◆ _children

_ChildList StructureBase::_children
private

Definition at line 79 of file structure_base.hpp.

Referenced by _AddChild(), _RemoveChild(), DrawAll(), and ~StructureBase().

◆ _parent

StructureBase* StructureBase::_parent
private

Definition at line 84 of file structure_base.hpp.

Referenced by GetParentOfType(), StructureBase(), and ~StructureBase().

◆ parentSet

StructureSet* StructureBase::parentSet

Definition at line 71 of file structure_base.hpp.

Referenced by Messenger::AddHighlights(), UpdateViewer::BlastNeighbor(), Threader::CalculateScores(), BLASTer::CalculateSelfHitScores(), ChemicalGraph::ChemicalGraph(), Threader::CreateFldMtf(), BLASTer::CreateNewPairwiseAlignmentsByBlast(), Residue::Draw(), Bond::Draw(), Helix3D::Draw(), Strand3D::Draw(), ChemicalGraph::DrawAll(), DrawAll(), Molecule::DrawAllWithTerminiLabels(), GetAlignmentByBestNeighbor(), StyleManager::GetAtomStyle(), StyleManager::GetBondStyle(), BlockMultipleAlignment::GetCharacterTraitsAt(), Threader::GetGeometryViolations(), StyleManager::GetObjectStyle(), Molecule::GetResidueColor(), SequenceDisplay::GetRowTitle(), UpdateViewer::GetVASTAlignments(), UpdateViewer::ImportSequences(), UpdateViewer::ImportStructure(), StructureSet::Load(), MakeEmptyAlignment(), MasterDependentAlignment::MasterDependentAlignment(), AlignmentManager::MergeUpdates(), Threader::Realign(), AlignmentManager::RealignAllDependentStructures(), StructureObject::RealignStructure(), Messenger::RemoveHighlights(), AlignmentManager::ReplaceUpdatesInASN(), Residue::Residue(), AlignmentManager::SavePairwiseFromMultiple(), UpdateViewer::SavePendingStructures(), StructureObject::SetTransformToMaster(), ShowHideManager::Show(), BlockMultipleAlignment::ShowGeometryViolations(), AlignmentManager::ShowHideCallbackFunction(), StructureBase(), StructureObject::StructureObject(), Messenger::ToggleHighlight(), Messenger::ToggleHighlights(), ShowHideManager::UnHideEntityAndChildren(), ChemicalGraph::UnpackDomainFeatures(), and UnpackDPResult().


The documentation for this class was generated from the following files:
Modified on Sun Jun 23 05:16:03 2024 by modify_doxy.py rev. 669887