Visualization Library v1.0.3

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes

vl::Bond Class Reference

The Bond class represents a bond to be used with the Molecule class. More...

#include <Bond.hpp>

Inheritance diagram for vl::Bond:

List of all members.

Public Member Functions

 Bond ()
 Bond (const Bond &other)
unsigned int id () const
void setId (unsigned int id)
void setBondType (EBondType type)
EBondType bondType () const
void setAtom1 (Atom *atom)
Atomatom1 () const
void setAtom2 (Atom *atom)
Atomatom2 () const
void setVisible (bool visible)
bool visible () const
void setColor (const fvec4 &color)
const fvec4color () const
void setUseAtomColors (bool use_atom_color)
bool useAtomColors () const
float radius () const
void setRadius (float radius)

Protected Attributes

fvec4 mColor
float mRadius
EBondType mType
unsigned int mId
bool mVisible
bool mUseAtomColors

Detailed Description

The Bond class represents a bond to be used with the Molecule class.

See also:

Definition at line 62 of file Bond.hpp.

Constructor & Destructor Documentation

vl::Bond::Bond (  ) [inline]

Definition at line 67 of file Bond.hpp.


vl::Bond::Bond ( const Bond other ) [inline]

Definition at line 71 of file Bond.hpp.

Member Function Documentation

unsigned int vl::Bond::id (  ) const [inline]

Definition at line 73 of file Bond.hpp.

References mId.

Referenced by setId().

void vl::Bond::setId ( unsigned int  id ) [inline]

Definition at line 74 of file Bond.hpp.

References id(), and mId.

void vl::Bond::setBondType ( EBondType  type ) [inline]

Definition at line 76 of file Bond.hpp.

References mType.

EBondType vl::Bond::bondType (  ) const [inline]

Definition at line 77 of file Bond.hpp.

References mType.

Referenced by vl::RingExtractor::keepAromaticCycles().

void vl::Bond::setAtom1 ( Atom atom ) [inline]

Definition at line 79 of file Bond.hpp.

References mAtom1.

Atom* vl::Bond::atom1 (  ) const [inline]
void vl::Bond::setAtom2 ( Atom atom ) [inline]

Definition at line 82 of file Bond.hpp.

References mAtom2.

Atom* vl::Bond::atom2 (  ) const [inline]
void vl::Bond::setVisible ( bool  visible ) [inline]

Definition at line 85 of file Bond.hpp.

References mVisible, and visible().

bool vl::Bond::visible (  ) const [inline]

Definition at line 86 of file Bond.hpp.

References mVisible.

Referenced by setVisible(), and vl::Molecule::wireframeStyle().

void vl::Bond::setColor ( const fvec4 color ) [inline]

Definition at line 88 of file Bond.hpp.

References color(), and mColor.

const fvec4& vl::Bond::color (  ) const [inline]
void vl::Bond::setUseAtomColors ( bool  use_atom_color ) [inline]

Definition at line 91 of file Bond.hpp.

References mUseAtomColors.

bool vl::Bond::useAtomColors (  ) const [inline]
float vl::Bond::radius (  ) const [inline]

Definition at line 94 of file Bond.hpp.

References mRadius.

Referenced by vl::Molecule::ballAndStickStyle(), setRadius(), and vl::Molecule::sticksStyle().

void vl::Bond::setRadius ( float  radius ) [inline]

Definition at line 95 of file Bond.hpp.

References mRadius, and radius().

Member Data Documentation

fvec4 vl::Bond::mColor [protected]

Definition at line 98 of file Bond.hpp.

Referenced by color(), and setColor().

float vl::Bond::mRadius [protected]

Definition at line 99 of file Bond.hpp.

Referenced by radius(), and setRadius().

Atom* vl::Bond::mAtom1 [protected]

Definition at line 100 of file Bond.hpp.

Referenced by atom1(), and setAtom1().

Atom* vl::Bond::mAtom2 [protected]

Definition at line 101 of file Bond.hpp.

Referenced by atom2(), and setAtom2().

Definition at line 102 of file Bond.hpp.

Referenced by bondType(), and setBondType().

unsigned int vl::Bond::mId [protected]

Definition at line 103 of file Bond.hpp.

Referenced by id(), and setId().

bool vl::Bond::mVisible [protected]

Definition at line 104 of file Bond.hpp.

Referenced by setVisible(), and visible().

bool vl::Bond::mUseAtomColors [protected]

Definition at line 105 of file Bond.hpp.

Referenced by setUseAtomColors(), and useAtomColors().

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

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:12.
Permission is granted to use this page to write and publish articles regarding Visualization Library.