|
Visualization Library 2.1.0
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
The Atom class represents an atom to be used with the Molecule class. More...
#include <Atom.hpp>
Inheritance diagram for vl::Atom:Public Member Functions | |
| Atom () | |
| Atom (const Atom &other) | |
| Atom & | operator= (const Atom &other) |
| Assignment operator: does not assign the adjacent atoms. More... | |
| bool | isAtomAdjacent (Atom *atom) const |
| const std::vector< Atom *> & | adjacentAtoms () const |
| std::vector< Atom *> & | adjacentAtoms () |
| EAtomType | atomType () const |
| void | setAtomType (EAtomType type) |
| unsigned int | id () const |
| void | setId (unsigned int id) |
| const fvec3 & | coordinates () const |
| void | setCoordinates (const fvec3 &coordinates) |
| float | radius () const |
| void | setRadius (float radius) |
| void | setVisited (bool visited) |
| bool | visited () const |
| void | setAtomName (const std::string &name) |
| const std::string & | atomName () const |
| const fvec4 & | color () const |
| void | setColor (const fvec4 &color) |
| bool | visible () const |
| void | setVisible (bool visible) |
| void | setShowAtomName (bool show) |
| Defines whether the atom name should be rendered or not. See also Molecule::setShowAtomNames(). More... | |
| bool | showAtomName () const |
| Defines whether the atom name should be rendered or not. See also Molecule::setShowAtomNames(). 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 Attributes | |
| fvec4 | mColor |
| fvec3 | mCoordinates |
| EAtomType | mAtomType |
| float | mRadius |
| std::vector< Atom *> | mAdjacentAtoms |
| std::string | mAtomName |
| unsigned int | mId |
| bool | mVisited |
| bool | mVisible |
| bool | mShowAtomName |
Protected Attributes inherited from vl::Object | |
| std::string | mObjectName |
| IMutex * | mRefCountMutex |
| int | mReferenceCount |
| bool | mAutomaticDelete |
Additional Inherited Members | |
Protected Member Functions inherited from vl::Object | |
| virtual | ~Object () |
|
inline |
Definition at line 56 of file Atom.hpp.
References vl::AT_Unknown, mAtomType, mColor, mCoordinates, mId, mRadius, mShowAtomName, mVisible, and mVisited.
|
inline |
Definition at line 97 of file Atom.hpp.
References mAdjacentAtoms.
Referenced by vl::Molecule::computeAtomAdjacency(), vl::RingExtractor::depthFirstVisit(), and isAtomAdjacent().
|
inline |
Definition at line 98 of file Atom.hpp.
References mAdjacentAtoms.
|
inline |
Definition at line 116 of file Atom.hpp.
References mAtomName.
Referenced by vl::Molecule::generateAtomLabel().
|
inline |
Definition at line 100 of file Atom.hpp.
References mAtomType.
Referenced by vl::Molecule::setAtomTypeVisible().
|
inline |
Definition at line 118 of file Atom.hpp.
References mColor.
Referenced by vl::Molecule::ballAndStickStyle(), setColor(), vl::Molecule::sticksStyle(), and vl::Molecule::wireframeStyle().
|
inline |
Definition at line 106 of file Atom.hpp.
References mCoordinates.
Referenced by vl::Molecule::ballAndStickStyle(), vl::RingExtractor::keepPlanarCycles(), setCoordinates(), vl::Molecule::sticksStyle(), and vl::Molecule::wireframeStyle().
|
inline |
|
inline |
Definition at line 89 of file Atom.hpp.
References adjacentAtoms().
Referenced by vl::RingExtractor::sortCycles().
Assignment operator: does not assign the adjacent atoms.
Definition at line 73 of file Atom.hpp.
References mAtomName, mAtomType, mColor, mCoordinates, mId, mRadius, mShowAtomName, and mVisible.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 107 of file Atom.hpp.
References coordinates(), and mCoordinates.
|
inline |
|
inline |
|
inline |
Defines whether the atom name should be rendered or not. See also Molecule::setShowAtomNames().
Definition at line 125 of file Atom.hpp.
References mShowAtomName.
|
inline |
Definition at line 122 of file Atom.hpp.
References mVisible, and visible().
Referenced by vl::Molecule::setAtomTypeVisible().
|
inline |
Definition at line 112 of file Atom.hpp.
References mVisited, and visited().
Referenced by vl::RingExtractor::bootstrap(), and vl::RingExtractor::depthFirstVisit().
|
inline |
Defines whether the atom name should be rendered or not. See also Molecule::setShowAtomNames().
Definition at line 127 of file Atom.hpp.
References mShowAtomName.
Referenced by vl::Molecule::generateAtomLabel().
|
inline |
Definition at line 121 of file Atom.hpp.
References mVisible.
Referenced by vl::Molecule::generateAtomLabel(), setVisible(), and vl::Molecule::wireframeStyle().
|
inline |
Definition at line 113 of file Atom.hpp.
References mVisited.
Referenced by vl::RingExtractor::depthFirstVisit(), and setVisited().
|
protected |
Definition at line 134 of file Atom.hpp.
Referenced by adjacentAtoms().
|
protected |
Definition at line 135 of file Atom.hpp.
Referenced by atomName(), operator=(), and setAtomName().
|
protected |
Definition at line 132 of file Atom.hpp.
Referenced by Atom(), atomType(), operator=(), and setAtomType().
|
protected |
Definition at line 130 of file Atom.hpp.
Referenced by Atom(), color(), operator=(), and setColor().
|
protected |
Definition at line 131 of file Atom.hpp.
Referenced by Atom(), coordinates(), operator=(), and setCoordinates().
|
protected |
|
protected |
Definition at line 133 of file Atom.hpp.
Referenced by Atom(), operator=(), radius(), and setRadius().
|
protected |
Definition at line 142 of file Atom.hpp.
Referenced by Atom(), operator=(), setShowAtomName(), and showAtomName().
|
protected |
Definition at line 140 of file Atom.hpp.
Referenced by Atom(), operator=(), setVisible(), and visible().
|
protected |
Definition at line 138 of file Atom.hpp.
Referenced by Atom(), setVisited(), and visited().
Visualization Library 2.1.0 Reference Documentation
Updated on Wed Mar 10 2021 16:02:48.
© Copyright Michele Bosi. All rights reserved.