Visualization Library 2.1.0
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
The Molecule class is used to manage and render 3D molecular structures. More...
#include <Molecule.hpp>
Public Member Functions | |
Molecule () | |
~Molecule () | |
Molecule (const Molecule &other) | |
Molecule & | operator= (const Molecule &other) |
void | reset () |
void | setMoleculeName (const String &name) |
const String | moleculeName () const |
unsigned int | id () const |
void | setId (unsigned int id) |
KeyValues * | tags () |
const KeyValues * | tags () const |
const std::vector< ref< Atom > > & | atoms () const |
std::vector< ref< Atom > > & | atoms () |
int | atomCount () const |
const Atom * | atom (int index) const |
Atom * | atom (int index) |
void | addAtom (Atom *atom) |
void | eraseAtom (Atom *atom) |
void | eraseAtom (int index) |
void | eraseAllAtoms () |
const std::vector< ref< Bond > > & | bonds () const |
std::vector< ref< Bond > > & | bonds () |
int | bondCount () const |
const Bond * | bond (int index) const |
Bond * | bond (int index) |
const Bond * | bond (Atom *a1, Atom *a2) const |
Bond * | bond (Atom *a1, Atom *a2) |
void | addBond (Bond *bond) |
Bond * | addBond (Atom *a1, Atom *a2) |
void | eraseBond (Bond *bond) |
void | eraseBond (int bond) |
void | eraseBond (Atom *a1, Atom *a2) |
void | eraseBond (int a1, int a2) |
void | eraseAllBonds () |
void | computeAtomAdjacency () |
void | incidentBonds (std::vector< Bond *> &inc_bonds, Atom *atom) |
const std::vector< ref< Atom > > & | cycle (int i) const |
Returns the i-th cycle. More... | |
std::vector< ref< Atom > > & | cycle (int i) |
Returns the i-th cycle. More... | |
const std::vector< std::vector< ref< Atom > > > & | cycles () const |
Returns the list of cycles. More... | |
std::vector< std::vector< ref< Atom > > > & | cycles () |
Returns the list of cycles. More... | |
void | prepareForRendering () |
Generates the geometry representing the current molecule, atom and bond settings. More... | |
const ActorTree * | actorTree () const |
The ActorTree node containing the Actor[s] representing the molecule. More... | |
ActorTree * | actorTree () |
The ActorTree node containing the Actor[s] representing the molecule. More... | |
void | setCPKAtomColors () |
Sets all the atoms' color to their CPK color. More... | |
void | setAtomColors (const fvec4 &color) |
Sets all the atoms' color to the specified color. More... | |
void | setCalculatedAtomRadii (float percentage=1.0f) |
Sets all the atoms' radii to their calculated atom radii. More... | |
void | setEmpiricalAtomRadii (float percentage=1.0f) |
Sets all the atoms' radii to their empirical atom radii. More... | |
void | setCovalentAtomRadii (float percentage=1.0f) |
Sets all the atoms' radii to their covalent atom radii. More... | |
void | setVanDerWaalsAtomRadii (float percentage=1.0f) |
Sets all the atoms' radii to their van der Waals atom radii. More... | |
void | setAtomRadii (float radius) |
Sets all the atoms' radii to the specified one. More... | |
void | setBondRadii (float radius) |
Sets all the bonds' radii to the specified one. More... | |
void | setAtomTypeVisible (EAtomType type, bool visible) |
void | setMoleculeStyle (EMoleculeStyle style) |
The rendering style of the molecule. More... | |
EMoleculeStyle | moleculeStyle () const |
The rendering style of the molecule. More... | |
void | setAtomDetail (int detail) |
Geometrical detail used to render the atoms, usually between 0 and 3 (default is 2) More... | |
int | atomDetail () const |
Geometrical detail used to render the atoms, usually between 0 and 3 (default is 2) More... | |
void | setBondDetail (int detail) |
Geometrical detail used to render the bonds, usually between 5 and 50 (default is 20) More... | |
int | bondDetail () const |
Geometrical detail used to render the bonds, usually between 5 and 50 (default is 20) More... | |
float | ringOffset () const |
void | setRingOffset (float offset) |
void | setAromaticBondsColor (const fvec4 &color) |
void | setAromaticRingColor (const fvec4 &color) |
const fvec4 & | aromaticRingColor () const |
float | lineWidth () const |
bool | smoothLines () const |
void | setLineWidth (float w) |
void | setSmoothLines (bool smooth) |
Transform * | transformTree () |
The transform tree used by the generated bonds, atoms and labels. More... | |
const Transform * | transformTree () const |
The transform tree used by the generated bonds, atoms and labels. More... | |
const Text * | atomLabelTemplate () const |
The text settings to be used to render the atom labels. More... | |
Text * | atomLabelTemplate () |
The text settings to be used to render the atom labels. More... | |
void | setShowAtomNames (bool show) |
Globally defines whether the atom names should be rendered or not. See also Atom::setShowAtomName(). More... | |
bool | showAtomNames () const |
Globally defines whether the atom names should be rendered or not. See also Atom::setShowAtomName(). More... | |
const Effect * | atomLabelEffect () const |
The Effect used to render the atom labels. More... | |
Effect * | atomLabelEffect () |
The Effect used to render the atom labels. More... | |
void | setMoleculeToActorMapEnabled (bool enabled) |
If enabled the atomToActorMap() and bondToActorMap() maps will be compiled next time the molecule's geometry is regenerated (except for wireframe style). More... | |
bool | isMoleculeToActorMapEnabled () const |
If enabled the atomToActorMap() and bondToActorMap() maps will be compiled next time the molecule's geometry is regenerated (except for wireframe style). More... | |
void | setActorToMoleculeMapEnabled (bool enabled) |
If enabled the actorToAtomMap() and actorToBondMap() maps will be compiled next time the molecule's geometry is regenerated (except for wireframe style). More... | |
bool | isActorToMoleculeMapEnabled () const |
If enabled the actorToAtomMap() and actorToBondMap() maps will be compiled next time the molecule's geometry is regenerated (except for wireframe style). More... | |
const std::map< ref< Atom >, ref< Actor > > & | atomToActorMap () const |
Maps an Atom to it's corresponding Actor. More... | |
const std::map< ref< Actor >, ref< Atom > > & | actorToAtomMap () const |
Maps an Actor to it's corresponding Atom. More... | |
const std::map< ref< Bond >, ref< Actor > > & | bondToActorMap () const |
Maps a Bond to it's corresponding Actor. More... | |
const std::map< ref< Actor >, ref< Bond > > & | actorToBondMap () const |
Maps an Actor to it's corresponding Bond. More... | |
std::map< ref< Atom >, ref< Actor > > & | atomToActorMap () |
Maps an Atom to it's corresponding Actor. More... | |
std::map< ref< Actor >, ref< Atom > > & | actorToAtomMap () |
Maps an Actor to it's corresponding Atom. More... | |
std::map< ref< Bond >, ref< Actor > > & | bondToActorMap () |
Maps a Bond to it's corresponding Actor. More... | |
std::map< ref< Actor >, ref< Bond > > & | actorToBondMap () |
Maps an Actor to it's corresponding Bond. More... | |
Public Member Functions inherited from vl::Object | |
Object () | |
Constructor. More... | |
Object (const Object &other) | |
Copy constructor: copies the name, ref count mutex and user data. More... | |
Object & | operator= (const Object &other) |
Copy operator: copies the object's name, ref count mutex and user data. More... | |
const std::string & | objectName () const |
The name of the object, by default set to the object's class name. More... | |
void | setObjectName (const char *name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setObjectName (const std::string &name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setRefCountMutex (IMutex *mutex) |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
IMutex * | refCountMutex () |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
const IMutex * | refCountMutex () const |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
int | referenceCount () const |
Returns the number of references of an object. More... | |
void | incReference () const |
Increments the reference count of an object. More... | |
void | decReference () |
Decrements the reference count of an object and deletes it if both automaticDelete() is true the count reaches 0. More... | |
void | setAutomaticDelete (bool autodel_on) |
If set to true the Object is deleted when its reference count reaches 0. More... | |
bool | automaticDelete () const |
If set to true the Object is deleted when its reference count reaches 0. More... | |
template<class T > | |
T * | as () |
Casts an Object to the specified class. More... | |
template<class T > | |
const T * | as () const |
Casts an Object to the specified class. More... | |
Protected Member Functions | |
void | prepareAtomInsert (int bonus=100) |
void | prepareBondInsert (int bonus=100) |
void | wireframeStyle () |
void | atomsStyle () |
void | ballAndStickStyle () |
void | sticksStyle () |
void | generateRings () |
void | generateAtomLabels () |
void | generateAtomLabel (const Atom *atom, Transform *tr) |
Protected Member Functions inherited from vl::Object | |
virtual | ~Object () |
Protected Attributes | |
fvec4 | mAromaticRingColor |
ref< ActorTree > | mActorTree |
ref< Transform > | mTransformTree |
std::vector< ref< Atom > > | mAtoms |
std::vector< ref< Bond > > | mBonds |
std::vector< std::vector< ref< Atom > > > | mCycles |
std::map< ref< Atom >, ref< Actor > > | mAtomToActorMap |
std::map< ref< Actor >, ref< Atom > > | mActorToAtomMap |
std::map< ref< Bond >, ref< Actor > > | mBondToActorMap |
std::map< ref< Actor >, ref< Bond > > | mActorToBondMap |
String | mMoleculeName |
ref< KeyValues > | mTags |
ref< Text > | mAtomLabelTemplate |
ref< Effect > | mAtomLabelEffect |
unsigned int | mId |
EMoleculeStyle | mMoleculeStyle |
int | mAtomDetail |
int | mBondDetail |
float | mRingOffset |
float | mLineWidth |
bool | mSmoothLines |
bool | mShowAtomNames |
bool | mMoleculeToActorMapEnabled |
bool | mActorToMoleculeMapEnabled |
Protected Attributes inherited from vl::Object | |
std::string | mObjectName |
IMutex * | mRefCountMutex |
int | mReferenceCount |
bool | mAutomaticDelete |
The Molecule class is used to manage and render 3D molecular structures.
Definition at line 64 of file Molecule.hpp.
Molecule::Molecule | ( | ) |
Definition at line 38 of file Molecule.cpp.
References vl::EN_BLEND, mAtomLabelEffect, and reset().
|
inline |
Definition at line 70 of file Molecule.hpp.
|
inline |
Definition at line 71 of file Molecule.hpp.
Maps an Actor to it's corresponding Atom.
Definition at line 216 of file Molecule.hpp.
Maps an Actor to it's corresponding Atom.
Definition at line 225 of file Molecule.hpp.
Maps an Actor to it's corresponding Bond.
Definition at line 220 of file Molecule.hpp.
Maps an Actor to it's corresponding Bond.
Definition at line 229 of file Molecule.hpp.
|
inline |
The ActorTree node containing the Actor[s] representing the molecule.
Definition at line 131 of file Molecule.hpp.
|
inline |
The ActorTree node containing the Actor[s] representing the molecule.
Definition at line 133 of file Molecule.hpp.
void Molecule::addAtom | ( | Atom * | atom | ) |
Definition at line 119 of file Molecule.cpp.
References atoms(), and prepareAtomInsert().
void Molecule::addBond | ( | Bond * | bond | ) |
Definition at line 187 of file Molecule.cpp.
References bonds(), and prepareBondInsert().
Definition at line 157 of file Molecule.cpp.
References bond(), bonds(), vl::ref< T >::get(), prepareBondInsert(), vl::Bond::setAtom1(), and vl::Bond::setAtom2().
|
inline |
Definition at line 175 of file Molecule.hpp.
const Atom * Molecule::atom | ( | int | index | ) | const |
Definition at line 115 of file Molecule.cpp.
References mAtoms.
Referenced by vl::RingExtractor::bootstrap(), computeAtomAdjacency(), eraseAtom(), eraseBond(), incidentBonds(), operator=(), and setAtomTypeVisible().
Atom * Molecule::atom | ( | int | index | ) |
Definition at line 117 of file Molecule.cpp.
References mAtoms.
|
inline |
Definition at line 88 of file Molecule.hpp.
Referenced by vl::RingExtractor::bootstrap(), and computeAtomAdjacency().
|
inline |
Geometrical detail used to render the atoms, usually between 0 and 3 (default is 2)
Definition at line 163 of file Molecule.hpp.
|
inline |
The Effect used to render the atom labels.
Definition at line 199 of file Molecule.hpp.
|
inline |
The Effect used to render the atom labels.
Definition at line 201 of file Molecule.hpp.
|
inline |
The text settings to be used to render the atom labels.
Definition at line 189 of file Molecule.hpp.
|
inline |
The text settings to be used to render the atom labels.
Definition at line 191 of file Molecule.hpp.
Definition at line 85 of file Molecule.hpp.
Referenced by addAtom(), eraseAtom(), vl::RingExtractor::keepMinimalCycles(), vl::loadMOL2(), operator=(), setAtomColors(), setAtomRadii(), setAtomTypeVisible(), setCalculatedAtomRadii(), setCovalentAtomRadii(), setCPKAtomColors(), setEmpiricalAtomRadii(), and setVanDerWaalsAtomRadii().
Definition at line 86 of file Molecule.hpp.
|
protected |
Definition at line 310 of file Molecule_rendering.cpp.
References vl::ref< T >::get(), vl::Matrix4< float >::getTranslation(), vl::Transform::setLocalMatrix(), and vl::Actor::transform().
Maps an Atom to it's corresponding Actor.
Definition at line 214 of file Molecule.hpp.
Maps an Atom to it's corresponding Actor.
Definition at line 223 of file Molecule.hpp.
|
protected |
Definition at line 342 of file Molecule_rendering.cpp.
References vl::Bond::atom1(), vl::Bond::atom2(), vl::CC_NoCap, vl::Bond::color(), vl::Atom::color(), vl::Atom::coordinates(), vl::EN_CULL_FACE, vl::EN_DEPTH_TEST, vl::EN_LIGHTING, vl::Shader::enable(), vl::ref< T >::get(), vl::Matrix4< float >::getRotation(), vl::Matrix4< float >::getTranslation(), vl::Shader::gocLightModel(), vl::Shader::gocMaterial(), vl::length(), vl::normalize(), vl::Bond::radius(), vl::Material::setColorMaterialEnabled(), vl::Transform::setLocalMatrix(), vl::Shader::setRenderState(), vl::LightModel::setTwoSide(), vl::Effect::shader(), vl::Actor::transform(), and vl::Bond::useAtomColors().
const Bond * Molecule::bond | ( | int | index | ) | const |
Definition at line 167 of file Molecule.cpp.
References mBonds.
Referenced by addBond(), bond(), computeAtomAdjacency(), eraseBond(), incidentBonds(), vl::RingExtractor::keepAromaticCycles(), and operator=().
Bond * Molecule::bond | ( | int | index | ) |
Definition at line 169 of file Molecule.cpp.
References mBonds.
Definition at line 171 of file Molecule.cpp.
References vl::Bond::atom1(), vl::Bond::atom2(), bond(), bonds(), and NULL.
Definition at line 179 of file Molecule.cpp.
References vl::Bond::atom1(), vl::Bond::atom2(), bond(), bonds(), and NULL.
|
inline |
Definition at line 99 of file Molecule.hpp.
Referenced by computeAtomAdjacency(), and incidentBonds().
|
inline |
Geometrical detail used to render the bonds, usually between 5 and 50 (default is 20)
Definition at line 168 of file Molecule.hpp.
Definition at line 96 of file Molecule.hpp.
Referenced by addBond(), bond(), eraseAllBonds(), eraseBond(), operator=(), setAromaticBondsColor(), and setBondRadii().
Definition at line 97 of file Molecule.hpp.
Maps a Bond to it's corresponding Actor.
Definition at line 218 of file Molecule.hpp.
Maps a Bond to it's corresponding Actor.
Definition at line 227 of file Molecule.hpp.
void Molecule::computeAtomAdjacency | ( | ) |
Definition at line 224 of file Molecule.cpp.
References vl::Atom::adjacentAtoms(), atom(), vl::Bond::atom1(), vl::Bond::atom2(), atomCount(), bond(), and bondCount().
Referenced by vl::RingExtractor::bootstrap().
Returns the i-th cycle.
Definition at line 116 of file Molecule.hpp.
Referenced by vl::RingExtractor::keepAromaticCycles(), vl::RingExtractor::keepPlanarCycles(), operator=(), vl::RingExtractor::removeDoubles(), and vl::RingExtractor::sortCycles().
Returns the i-th cycle.
Definition at line 118 of file Molecule.hpp.
Returns the list of cycles.
Definition at line 121 of file Molecule.hpp.
Referenced by vl::RingExtractor::depthFirstVisit(), vl::RingExtractor::keepAromaticCycles(), vl::RingExtractor::keepMinimalCycles(), vl::RingExtractor::keepPlanarCycles(), vl::RingExtractor::removeDoubles(), and vl::RingExtractor::sortCycles().
Returns the list of cycles.
Definition at line 123 of file Molecule.hpp.
void Molecule::eraseAllAtoms | ( | ) |
Definition at line 125 of file Molecule.cpp.
void Molecule::eraseAllBonds | ( | ) |
Definition at line 207 of file Molecule.cpp.
References bonds().
void Molecule::eraseAtom | ( | Atom * | atom | ) |
Definition at line 141 of file Molecule.cpp.
References atom(), atoms(), eraseBond(), and incidentBonds().
void Molecule::eraseAtom | ( | int | index | ) |
Definition at line 132 of file Molecule.cpp.
References atom(), atoms(), eraseBond(), and incidentBonds().
void Molecule::eraseBond | ( | Bond * | bond | ) |
Definition at line 193 of file Molecule.cpp.
References bond(), and bonds().
Referenced by eraseAtom(), and eraseBond().
void Molecule::eraseBond | ( | int | bond | ) |
Definition at line 205 of file Molecule.cpp.
References bonds().
Definition at line 209 of file Molecule.cpp.
References vl::Bond::atom1(), vl::Bond::atom2(), bond(), and bonds().
void Molecule::eraseBond | ( | int | a1, |
int | a2 | ||
) |
Definition at line 222 of file Molecule.cpp.
References atom(), and eraseBond().
Definition at line 201 of file Molecule_rendering.cpp.
References vl::Atom::atomName(), vl::ref< T >::get(), vl::Text::setAlignment(), vl::Text::setBackgroundColor(), vl::Text::setBackgroundEnabled(), vl::Text::setBorderColor(), vl::Text::setBorderEnabled(), vl::Text::setColor(), vl::Text::setFont(), vl::Text::setKerningEnabled(), vl::Text::setMargin(), vl::Text::setMode(), vl::Text::setOutlineColor(), vl::Text::setOutlineEnabled(), vl::Text::setShadowColor(), vl::Text::setShadowEnabled(), vl::Text::setShadowVector(), vl::Text::setText(), vl::Text::setTextAlignment(), vl::Text::setViewportAlignment(), vl::Atom::showAtomName(), and vl::Atom::visible().
|
protected |
Definition at line 235 of file Molecule_rendering.cpp.
References vl::ref< T >::get(), and vl::Matrix4< float >::getTranslation().
|
protected |
Definition at line 474 of file Molecule_rendering.cpp.
References vl::AABB::center(), vl::Geometry::drawCalls(), vl::EN_DEPTH_TEST, vl::Shader::enable(), vl::ref< T >::get(), vl::Array< T_VectorType, T_Scalar, T_GL_Size, T_GL_Type >::initFrom(), vl::normalize(), NULL, vl::PT_LINES, vl::Geometry::setColorArray(), vl::Geometry::setVertexArray(), vl::Effect::shader(), and vl::Array< T_VectorType, T_Scalar, T_GL_Size, T_GL_Type >::size().
|
inline |
Definition at line 79 of file Molecule.hpp.
Definition at line 235 of file Molecule.cpp.
References atom(), vl::Bond::atom1(), vl::Bond::atom2(), bond(), and bondCount().
Referenced by eraseAtom().
|
inline |
If enabled the actorToAtomMap() and actorToBondMap() maps will be compiled next time the molecule's geometry is regenerated (except for wireframe style).
Definition at line 211 of file Molecule.hpp.
|
inline |
If enabled the atomToActorMap() and bondToActorMap() maps will be compiled next time the molecule's geometry is regenerated (except for wireframe style).
Definition at line 206 of file Molecule.hpp.
|
inline |
Definition at line 177 of file Molecule.hpp.
|
inline |
Definition at line 77 of file Molecule.hpp.
|
inline |
The rendering style of the molecule.
Definition at line 158 of file Molecule.hpp.
Definition at line 76 of file Molecule.cpp.
References atom(), vl::Bond::atom1(), vl::Bond::atom2(), atoms(), bond(), bonds(), cycle(), mAromaticRingColor, mAtomDetail, mBondDetail, mCycles, mLineWidth, mMoleculeName, mMoleculeStyle, mRingOffset, mSmoothLines, mTags, and reset().
|
inlineprotected |
Definition at line 232 of file Molecule.hpp.
Referenced by addAtom().
|
inlineprotected |
Definition at line 237 of file Molecule.hpp.
Referenced by addBond().
void Molecule::prepareForRendering | ( | ) |
Generates the geometry representing the current molecule, atom and bond settings.
The actors, geometry, and transforms generated by this function can be found in actorTree() and transformTree().
Definition at line 185 of file Molecule_rendering.cpp.
References vl::MS_AtomsOnly, vl::MS_BallAndStick, vl::MS_Sticks, and vl::MS_Wireframe.
void Molecule::reset | ( | ) |
Definition at line 50 of file Molecule.cpp.
References vl::ActorTreeAbstract::actors(), vl::KeyValues::clear(), vl::Collection< T >::clear(), vl::String::clear(), mActorToAtomMap, mActorToBondMap, mActorToMoleculeMapEnabled, mActorTree, mAromaticRingColor, mAtomDetail, mAtoms, mAtomToActorMap, mBondDetail, mBonds, mBondToActorMap, mCycles, mId, mLineWidth, mMoleculeName, mMoleculeStyle, mMoleculeToActorMapEnabled, mRingOffset, vl::MS_BallAndStick, mShowAtomNames, mSmoothLines, and tags().
Referenced by Molecule(), and operator=().
|
inline |
Definition at line 170 of file Molecule.hpp.
|
inline |
If enabled the actorToAtomMap() and actorToBondMap() maps will be compiled next time the molecule's geometry is regenerated (except for wireframe style).
Definition at line 209 of file Molecule.hpp.
void Molecule::setAromaticBondsColor | ( | const fvec4 & | color | ) |
Definition at line 298 of file Molecule.cpp.
References bonds(), and vl::BT_Aromatic.
|
inline |
Definition at line 174 of file Molecule.hpp.
void Molecule::setAtomColors | ( | const fvec4 & | color | ) |
Sets all the atoms' color to the specified color.
Definition at line 249 of file Molecule.cpp.
References atoms().
|
inline |
Geometrical detail used to render the atoms, usually between 0 and 3 (default is 2)
Definition at line 161 of file Molecule.hpp.
void Molecule::setAtomRadii | ( | float | radius | ) |
Sets all the atoms' radii to the specified one.
Definition at line 279 of file Molecule.cpp.
References atoms().
void Molecule::setAtomTypeVisible | ( | EAtomType | type, |
bool | visible | ||
) |
Definition at line 291 of file Molecule.cpp.
References atom(), atoms(), vl::Atom::atomType(), and vl::Atom::setVisible().
|
inline |
Geometrical detail used to render the bonds, usually between 5 and 50 (default is 20)
Definition at line 166 of file Molecule.hpp.
void Molecule::setBondRadii | ( | float | radius | ) |
Sets all the bonds' radii to the specified one.
Definition at line 285 of file Molecule.cpp.
References bonds().
void Molecule::setCalculatedAtomRadii | ( | float | percentage = 1.0f | ) |
Sets all the atoms' radii to their calculated atom radii.
Definition at line 255 of file Molecule.cpp.
References vl::atomInfo(), atoms(), and vl::atomType().
void Molecule::setCovalentAtomRadii | ( | float | percentage = 1.0f | ) |
Sets all the atoms' radii to their covalent atom radii.
Definition at line 267 of file Molecule.cpp.
References vl::atomInfo(), atoms(), and vl::atomType().
void Molecule::setCPKAtomColors | ( | ) |
Sets all the atoms' color to their CPK color.
Definition at line 243 of file Molecule.cpp.
References vl::atomInfo(), atoms(), and vl::atomType().
void Molecule::setEmpiricalAtomRadii | ( | float | percentage = 1.0f | ) |
Sets all the atoms' radii to their empirical atom radii.
Definition at line 261 of file Molecule.cpp.
References vl::atomInfo(), atoms(), and vl::atomType().
|
inline |
Definition at line 80 of file Molecule.hpp.
|
inline |
Definition at line 180 of file Molecule.hpp.
|
inline |
Definition at line 76 of file Molecule.hpp.
|
inline |
The rendering style of the molecule.
Definition at line 156 of file Molecule.hpp.
|
inline |
If enabled the atomToActorMap() and bondToActorMap() maps will be compiled next time the molecule's geometry is regenerated (except for wireframe style).
Definition at line 204 of file Molecule.hpp.
|
inline |
Definition at line 171 of file Molecule.hpp.
|
inline |
Globally defines whether the atom names should be rendered or not. See also Atom::setShowAtomName().
Definition at line 194 of file Molecule.hpp.
|
inline |
Definition at line 181 of file Molecule.hpp.
void Molecule::setVanDerWaalsAtomRadii | ( | float | percentage = 1.0f | ) |
Sets all the atoms' radii to their van der Waals atom radii.
Definition at line 273 of file Molecule.cpp.
References vl::atomInfo(), atoms(), and vl::atomType().
|
inline |
Globally defines whether the atom names should be rendered or not. See also Atom::setShowAtomName().
Definition at line 196 of file Molecule.hpp.
|
inline |
Definition at line 178 of file Molecule.hpp.
|
protected |
Definition at line 422 of file Molecule_rendering.cpp.
References vl::Bond::atom1(), vl::Bond::atom2(), vl::CC_RoundedCap, vl::Bond::color(), vl::Atom::color(), vl::Atom::coordinates(), vl::EN_CULL_FACE, vl::EN_DEPTH_TEST, vl::EN_LIGHTING, vl::Shader::enable(), vl::ref< T >::get(), vl::Matrix4< float >::getRotation(), vl::Matrix4< float >::getTranslation(), vl::Shader::gocLightModel(), vl::Shader::gocMaterial(), vl::length(), vl::normalize(), vl::Bond::radius(), vl::Material::setColorMaterialEnabled(), vl::Transform::setLocalMatrix(), vl::Shader::setRenderState(), vl::LightModel::setTwoSide(), vl::Effect::shader(), vl::Actor::transform(), and vl::Bond::useAtomColors().
|
inline |
Definition at line 82 of file Molecule.hpp.
Referenced by vl::loadMOL2(), and reset().
|
inline |
Definition at line 83 of file Molecule.hpp.
|
inline |
The transform tree used by the generated bonds, atoms and labels.
Definition at line 184 of file Molecule.hpp.
|
inline |
The transform tree used by the generated bonds, atoms and labels.
Definition at line 186 of file Molecule.hpp.
|
protected |
Definition at line 245 of file Molecule_rendering.cpp.
References vl::Bond::atom1(), vl::Bond::atom2(), vl::Bond::color(), vl::Atom::color(), vl::Atom::coordinates(), vl::Geometry::drawCalls(), vl::EN_BLEND, vl::EN_DEPTH_TEST, vl::EN_LINE_SMOOTH, vl::Shader::enable(), vl::ref< T >::get(), vl::Shader::gocLineWidth(), vl::Array< T_VectorType, T_Scalar, T_GL_Size, T_GL_Type >::initFrom(), NULL, vl::PT_LINES, vl::LineWidth::set(), vl::Geometry::setColorArray(), vl::Geometry::setVertexArray(), vl::Effect::shader(), vl::Array< T_VectorType, T_Scalar, T_GL_Size, T_GL_Type >::size(), vl::Bond::useAtomColors(), vl::Bond::visible(), and vl::Atom::visible().
Definition at line 258 of file Molecule.hpp.
Referenced by reset().
Definition at line 260 of file Molecule.hpp.
Referenced by reset().
|
protected |
Definition at line 274 of file Molecule.hpp.
Referenced by reset().
Definition at line 252 of file Molecule.hpp.
Referenced by reset().
|
protected |
Definition at line 251 of file Molecule.hpp.
Referenced by operator=(), and reset().
|
protected |
Definition at line 267 of file Molecule.hpp.
Referenced by operator=(), and reset().
Definition at line 264 of file Molecule.hpp.
Referenced by Molecule().
Definition at line 263 of file Molecule.hpp.
Definition at line 254 of file Molecule.hpp.
Referenced by atom(), eraseAllAtoms(), and reset().
Definition at line 257 of file Molecule.hpp.
Referenced by reset().
|
protected |
Definition at line 268 of file Molecule.hpp.
Referenced by operator=(), and reset().
Definition at line 255 of file Molecule.hpp.
Referenced by bond(), eraseAllAtoms(), and reset().
Definition at line 259 of file Molecule.hpp.
Referenced by reset().
Definition at line 256 of file Molecule.hpp.
Referenced by eraseAllAtoms(), operator=(), and reset().
|
protected |
Definition at line 265 of file Molecule.hpp.
Referenced by reset().
|
protected |
Definition at line 270 of file Molecule.hpp.
Referenced by operator=(), and reset().
|
protected |
Definition at line 261 of file Molecule.hpp.
Referenced by operator=(), and reset().
|
protected |
Definition at line 266 of file Molecule.hpp.
Referenced by operator=(), and reset().
|
protected |
Definition at line 273 of file Molecule.hpp.
Referenced by reset().
|
protected |
Definition at line 269 of file Molecule.hpp.
Referenced by operator=(), and reset().
|
protected |
Definition at line 272 of file Molecule.hpp.
Referenced by reset().
|
protected |
Definition at line 271 of file Molecule.hpp.
Referenced by operator=(), and reset().
Definition at line 262 of file Molecule.hpp.
Referenced by operator=().
Definition at line 253 of file Molecule.hpp.
Visualization Library 2.1.0 Reference Documentation
Updated on Wed Mar 10 2021 16:02:52.
© Copyright Michele Bosi. All rights reserved.