Tissue Forge C++ 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
Loading...
Searching...
No Matches
TissueForge::AngleHandle Struct Reference

A handle to an angle bond. More...

#include <tfAngle.h>

Public Member Functions

Angleget ()
 Gets the angle of this handle.
 
std::string str () const
 Get a summary string of the angle.
 
bool check ()
 Check the validity of the handle.
 
HRESULT destroy ()
 Destroy the angle.
 
bool decays ()
 Tests whether this bond decays.
 
struct ParticleHandleoperator[] (unsigned int index)
 
bool has (const int32_t &pid)
 
bool has (ParticleHandle *part)
 
FloatP_t getAngle ()
 
FPTYPE getEnergy ()
 
std::vector< int32_t > getParts ()
 
ParticleList getPartList ()
 
PotentialgetPotential ()
 
uint32_t getId ()
 
FPTYPE getDissociationEnergy ()
 
void setDissociationEnergy (const FPTYPE &dissociation_energy)
 
FPTYPE getHalfLife ()
 
void setHalfLife (const FPTYPE &half_life)
 
rendering::StylegetStyle ()
 
void setStyle (rendering::Style *style)
 
FPTYPE getAge ()
 
 AngleHandle (const int &_id)
 Construct a new angle handle from an existing angle id.
 

Static Public Member Functions

static std::vector< AngleHandleitems ()
 Gets all angles in the universe.
 

Public Attributes

int id
 

Detailed Description

A handle to an angle bond.

This is a safe way to work with an angle bond.

Constructor & Destructor Documentation

◆ AngleHandle()

TissueForge::AngleHandle::AngleHandle ( const int & _id)

Construct a new angle handle from an existing angle id.

Parameters
idid of existing angle

Member Function Documentation

◆ check()

bool TissueForge::AngleHandle::check ( )

Check the validity of the handle.

Returns
true if ok
false

◆ decays()

bool TissueForge::AngleHandle::decays ( )

Tests whether this bond decays.

Returns
true when the bond should decay

◆ destroy()

HRESULT TissueForge::AngleHandle::destroy ( )

Destroy the angle.

Automatically updates when running on a CUDA device.

◆ get()

Angle * TissueForge::AngleHandle::get ( )

Gets the angle of this handle.

Returns
angle, if available

◆ getAge()

FPTYPE TissueForge::AngleHandle::getAge ( )

Get the age

◆ getAngle()

FloatP_t TissueForge::AngleHandle::getAngle ( )

Get the current angle

◆ getDissociationEnergy()

FPTYPE TissueForge::AngleHandle::getDissociationEnergy ( )

Get the dissociation energy

◆ getEnergy()

FPTYPE TissueForge::AngleHandle::getEnergy ( )

Get the energy

◆ getHalfLife()

FPTYPE TissueForge::AngleHandle::getHalfLife ( )

Get the half life

◆ getId()

uint32_t TissueForge::AngleHandle::getId ( )

Get the id

◆ getPartList()

ParticleList TissueForge::AngleHandle::getPartList ( )

Get the particle list

◆ getParts()

std::vector< int32_t > TissueForge::AngleHandle::getParts ( )

Get the particle ids

◆ getPotential()

Potential * TissueForge::AngleHandle::getPotential ( )

Get the potential

◆ getStyle()

rendering::Style * TissueForge::AngleHandle::getStyle ( )

Get the style

◆ has() [1/2]

bool TissueForge::AngleHandle::has ( const int32_t & pid)

Test whether the bond has an id

◆ has() [2/2]

bool TissueForge::AngleHandle::has ( ParticleHandle * part)

Test whether the bond has a particle

◆ setDissociationEnergy()

void TissueForge::AngleHandle::setDissociationEnergy ( const FPTYPE & dissociation_energy)

Set the dissociation energy

◆ setHalfLife()

void TissueForge::AngleHandle::setHalfLife ( const FPTYPE & half_life)

Set the half life

◆ setStyle()

void TissueForge::AngleHandle::setStyle ( rendering::Style * style)

Set the style


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