#include <bond_handle.hh>
Inherits GenericPropContainer< BondHandle >.
|
| BondHandle () |
|
| BondHandle (const impl::ConnectorImplP &im) |
|
|
| operator bool () const |
|
bool | IsValid () const |
|
void | Apply (EntityVisitor &v) |
|
void | Apply (EntityViewVisitor &v) |
|
void | ClearProps () |
|
void | SetStringProp (const String &key, const String &value) |
|
void | SetFloatProp (const String &key, Real value) |
|
void | SetIntProp (const String &key, int value) |
|
void | SetBoolProp (const String &key, bool value) |
|
void | SetVec3Prop (const String &key, geom::Vec3 value) |
|
void | RemoveProp (const String &key) |
|
bool | HasProp (const String &key) const |
|
String | GetPropAsString (const String &key) const |
|
String | GetStringProp (const String &key) const |
|
Real | GetFloatProp (const String &key) const |
|
int | GetIntProp (const String &key) const |
|
bool | GetBoolProp (const String &key) const |
|
geom::Vec3 | GetVec3Prop (const String &key) const |
|
String | GetStringProp (const String &key, const String &def) const |
|
Real | GetFloatProp (const String &key, Real def) const |
|
int | GetIntProp (const String &key, int def) const |
|
bool | GetBoolProp (const String &key, bool def) const |
|
std::map< String, GenericPropValue > | GetPropMap () const |
|
std::vector< String > | GetPropList () const |
|
chemical bond
Represents a chemical bond between two atoms (GetFirst(), GetSecond()). New bonds are created with EditorBase::Connect().
Definition at line 34 of file bond_handle.hh.
◆ BondHandle() [1/2]
necessary dummy ctor, creates invalid handle
◆ BondHandle() [2/2]
ctor for internal use, in public interface for convenience purposes
◆ Apply() [1/2]
◆ Apply() [2/2]
entry point for entity visitor
◆ CheckValidity()
void CheckValidity |
( |
| ) |
const |
|
protected |
◆ GetBondOrder()
unsigned char GetBondOrder |
( |
| ) |
const |
get the bond order ((1) single, (2) double, (3) triple, (4) aromatic)
◆ GetFirst()
Get first atom In python also available as the property first.
These methods return the atoms involved in the bond. No assumptions about the order should be made. With the internal coordinate system enabled, first and second may even be swapped when rebuilding the internal connectivity tree.
◆ GetHashCode()
unsigned long GetHashCode |
( |
| ) |
const |
◆ GetLength()
return the length of the bond
◆ GetOriginalPos()
return midpoint between the two atoms (original coordinates)
◆ GetOther()
get other atom Returns one of the two atoms that does not match the given one.
◆ GetPos()
return midpoint between the two atoms (transformed coordinates)
◆ GetSecond()
get second atom In python also available as the property second
◆ GpImpl() [1/2]
◆ GpImpl() [2/2]
◆ Impl() [1/2]
◆ Impl() [2/2]
◆ IsValid()
◆ operator bool()
check validity of handle
check, whether the bond handle points to a valid bond.
- Note
- It is an error to use any method other than IsValid, Impl and operator bool() when the handle is invalid. An InvalidHandle exception will be thrown.
◆ operator!=()
◆ operator==()
◆ SetBondOrder()
void SetBondOrder |
( |
unsigned char |
bo | ) |
|
set the bond order ((1) single, (2) double, (3) triple, (4) aromatic)
◆ BondExists()
check whether a bond exists, that connects the two atom handles.
This function checks, if a bond between a
and b
exists and returns true if this is the case. In any other case, including when one of a
and b
is an invalid AtomHandle, the method returns false. The function does not check whether there may be a connection involving more than one bond connecting a
and b
◆ ConstGenericPropContainer< BondHandle >
The documentation for this class was generated from the following file: