|
Visualization Library 2.1.0
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
The Bond class represents a bond to be used with the Molecule class. More...
#include <Bond.hpp>
Inheritance diagram for vl::Bond:Public Member Functions | |
| Bond () | |
| Bond (const Bond &other) | |
| Bond & | operator= (const Bond &other)=default |
| unsigned int | id () const |
| void | setId (unsigned int id) |
| void | setBondType (EBondType type) |
| EBondType | bondType () const |
| void | setAtom1 (Atom *atom) |
| Atom * | atom1 () const |
| void | setAtom2 (Atom *atom) |
| Atom * | atom2 () const |
| void | setVisible (bool visible) |
| bool | visible () const |
| void | setColor (const fvec4 &color) |
| const fvec4 & | color () const |
| void | setUseAtomColors (bool use_atom_color) |
| bool | useAtomColors () const |
| float | radius () const |
| void | setRadius (float radius) |
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 |
| float | mRadius |
| Atom * | mAtom1 |
| Atom * | mAtom2 |
| EBondType | mType |
| unsigned int | mId |
| bool | mVisible |
| bool | mUseAtomColors |
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 71 of file Bond.hpp.
References operator=().
|
inline |
Definition at line 82 of file Bond.hpp.
References mAtom1.
Referenced by vl::Molecule::ballAndStickStyle(), vl::Molecule::bond(), vl::Molecule::computeAtomAdjacency(), vl::Molecule::eraseBond(), vl::Molecule::incidentBonds(), vl::Molecule::operator=(), vl::Molecule::sticksStyle(), and vl::Molecule::wireframeStyle().
|
inline |
Definition at line 85 of file Bond.hpp.
References mAtom2.
Referenced by vl::Molecule::ballAndStickStyle(), vl::Molecule::bond(), vl::Molecule::computeAtomAdjacency(), vl::Molecule::eraseBond(), vl::Molecule::incidentBonds(), vl::Molecule::operator=(), vl::Molecule::sticksStyle(), and vl::Molecule::wireframeStyle().
|
inline |
Definition at line 79 of file Bond.hpp.
References mType.
Referenced by vl::RingExtractor::keepAromaticCycles().
|
inline |
Definition at line 91 of file Bond.hpp.
References mColor.
Referenced by vl::Molecule::ballAndStickStyle(), setColor(), vl::Molecule::sticksStyle(), and vl::Molecule::wireframeStyle().
|
inline |
|
inline |
Definition at line 96 of file Bond.hpp.
References mRadius.
Referenced by vl::Molecule::ballAndStickStyle(), setRadius(), and vl::Molecule::sticksStyle().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 93 of file Bond.hpp.
References mUseAtomColors.
|
inline |
|
inline |
Definition at line 94 of file Bond.hpp.
References mUseAtomColors.
Referenced by vl::Molecule::ballAndStickStyle(), vl::Molecule::sticksStyle(), and vl::Molecule::wireframeStyle().
|
inline |
Definition at line 88 of file Bond.hpp.
References mVisible.
Referenced by setVisible(), and vl::Molecule::wireframeStyle().
|
protected |
Definition at line 102 of file Bond.hpp.
Referenced by atom1(), and setAtom1().
|
protected |
Definition at line 103 of file Bond.hpp.
Referenced by atom2(), and setAtom2().
|
protected |
Definition at line 100 of file Bond.hpp.
Referenced by color(), and setColor().
|
protected |
|
protected |
Definition at line 101 of file Bond.hpp.
Referenced by radius(), and setRadius().
|
protected |
Definition at line 104 of file Bond.hpp.
Referenced by bondType(), and setBondType().
|
protected |
Definition at line 107 of file Bond.hpp.
Referenced by setUseAtomColors(), and useAtomColors().
|
protected |
Definition at line 106 of file Bond.hpp.
Referenced by setVisible(), and visible().
Visualization Library 2.1.0 Reference Documentation
Updated on Wed Mar 10 2021 16:02:48.
© Copyright Michele Bosi. All rights reserved.