OpenStructure
Public Member Functions
ConnectorImpl Class Reference

#include <connector_impl.hh>

Inherits GenericPropContainerImpl, and enable_shared_from_this< ConnectorImpl >.

Public Member Functions

 ConnectorImpl (const EntityImplPtr &e, const AtomImplPtr &first, const AtomImplPtr &second, Real l, Real t, Real p, unsigned char bond_order)
 
 ~ConnectorImpl ()
 
AtomImplPtr GetFirst () const
 
AtomImplPtr GetSecond () const
 
geom::Vec3 GetPos () const
 
geom::Vec3 GetOriginalPos () const
 
Real GetLength () const
 
void SetLength (Real l)
 
bool IsConnectorOf (const AtomImplPtr &a, const AtomImplPtr &b) const
 
void Switch ()
 
void Apply (EntityVisitor &v)
 
geom::Vec3 GetDir () const
 
void SetDirAndLength (const geom::Vec3 &dir)
 
void SetDir (const geom::Vec3 &dir)
 
const geom::Mat3GetLocalRot () const
 
void SetBondOrder (unsigned char bo)
 
unsigned char GetBondOrder () const
 
- Public Member Functions inherited from GenericPropContainerImpl
 GenericPropContainerImpl ()
 
 ~GenericPropContainerImpl ()
 
 GenericPropContainerImpl (const GenericPropContainerImpl &rhs)
 
GenericPropContainerImploperator= (const GenericPropContainerImpl &r)
 
GenericPropValueGenericProp (const String &key)
 
const GenericPropValueGenericProp (const String &key) const
 
bool HasProp (const String &key) const
 
void ClearProps ()
 
void RemoveProp (const String &key)
 
void Assign (const GenericPropContainerImpl &impl)
 
PropertyMap GetPropMap () const
 
std::vector< StringGetPropList () const
 

Detailed Description

Definition at line 35 of file connector_impl.hh.

Constructor & Destructor Documentation

◆ ConnectorImpl()

ConnectorImpl ( const EntityImplPtr e,
const AtomImplPtr first,
const AtomImplPtr second,
Real  l,
Real  t,
Real  p,
unsigned char  bond_order 
)

◆ ~ConnectorImpl()

Member Function Documentation

◆ Apply()

void Apply ( EntityVisitor v)

◆ GetBondOrder()

unsigned char GetBondOrder ( ) const
inline

Definition at line 73 of file connector_impl.hh.

◆ GetDir()

geom::Vec3 GetDir ( ) const
inline

Definition at line 61 of file connector_impl.hh.

◆ GetFirst()

AtomImplPtr GetFirst ( ) const
inline

Definition at line 42 of file connector_impl.hh.

◆ GetLength()

Real GetLength ( ) const

◆ GetLocalRot()

const geom::Mat3& GetLocalRot ( ) const
inline

Definition at line 69 of file connector_impl.hh.

◆ GetOriginalPos()

geom::Vec3 GetOriginalPos ( ) const

◆ GetPos()

geom::Vec3 GetPos ( ) const

◆ GetSecond()

AtomImplPtr GetSecond ( ) const
inline

Definition at line 43 of file connector_impl.hh.

◆ IsConnectorOf()

bool IsConnectorOf ( const AtomImplPtr a,
const AtomImplPtr b 
) const

◆ SetBondOrder()

void SetBondOrder ( unsigned char  bo)
inline

Definition at line 71 of file connector_impl.hh.

◆ SetDir()

void SetDir ( const geom::Vec3 dir)

◆ SetDirAndLength()

void SetDirAndLength ( const geom::Vec3 dir)

◆ SetLength()

void SetLength ( Real  l)
inline

Definition at line 49 of file connector_impl.hh.

◆ Switch()

void Switch ( )

The documentation for this class was generated from the following file: