Lattice Microbes 2.5
This is for whole cell modeling
Loading...
Searching...
No Matches
lm::builder::CapsuleShell Class Reference

A capsule shell Shape with a hollow inside. More...

#include <CapsuleShell.h>

Inheritance diagram for lm::builder::CapsuleShell:
[legend]
Collaboration diagram for lm::builder::CapsuleShell:
[legend]

Public Member Functions

 CapsuleShell (point p1, point p2, si_dist_t innerRadius, si_dist_t outerRadius, site_t type)
 Create a Capsule.
virtual ~CapsuleShell ()
virtual bool intersects (Shape *query)
 Check if two shapes intersect.
virtual bool contains (point query)
 Determine if the shape contains the specified point.
virtual bool contains (Shape *query)
 Determine if the shape contains the specified shape.
virtual point getP1 ()
 Get point of first end of cylinder.
virtual point getP2 ()
 Get point of second end of cylinder.
virtual si_dist_t getInnerRadius ()
 Get the inner radius of the cylinder.
virtual si_dist_t getOuterRadius ()
 Get the outer radius of the cylinder.
virtual double getVolume ()
 Get the total enclosed voluem of the CapsuleShell.
Public Member Functions inherited from lm::builder::Shape
 Shape (ShapeType shapeType, bounding_box boundingBox, site_t type, vector at=vector(0.0, 0.0, 1.0), vector up=vector(0.0, 1.0, 0.0))
 Create a Shape.
virtual ~Shape ()
 Destroy the Shape.
virtual bool boundingBoxesIntersect (Shape *query)
 Checks if another shape's bounding box interstects with this shape's bounding box.
virtual bounding_box getBoundingBox ()
 Get the bounding box.
virtual site_t getType ()
 Get the site type associated with the shape.
virtual ShapeType getShapeType ()
 Get the shape type.
virtual void discretizeTo (lm::rdme::Lattice *lattice)
 Discretize the object to the specified lattice.

Protected Attributes

point p1
point p2
si_dist_t innerRadius
si_dist_t outerRadius
si_dist_t length
Protected Attributes inherited from lm::builder::Shape
ShapeType shapeType
bounding_box boundingBox
site_t type
vector at
vector up
matrix rotation

Additional Inherited Members

Public Types inherited from lm::builder::Shape
enum  ShapeType {
  SPHERE = 1 , HEMISPHERE = 2 , CYLINDER = 3 , CAPSULE = 4 ,
  CUBOID = 5 , CAPSULE_SHELL = 6 , UNION = 7 , DIFFERENCE = 8 ,
  INTERSECTION = 9 , MESH = 10 , TORUS = 11 , ELLIPSE = 12 ,
  CONE = 13 , UNIONSET = 14
}
 Possible shape types that can be used in Lattice Microbes. More...
Protected Member Functions inherited from lm::builder::Shape
double integrateToPercentThreshold (double percent)
double integrateToCount (int count)
virtual point minBounds (point p1, point p2) const
virtual point maxBounds (point p1, point p2) const

Detailed Description

A capsule shell Shape with a hollow inside.

Constructor & Destructor Documentation

◆ CapsuleShell()

lm::builder::CapsuleShell::CapsuleShell ( point p1,
point p2,
si_dist_t innerRadius,
si_dist_t outerRadius,
site_t type )

Create a Capsule.

Parameters
p1Point of first end of cylinder
p2Point of second end of cylinder
innerRadiusInner radius of the capsule shell
outerRadiusOuter radius of the capsule shell
typeType of the sites in the capsule shell
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~CapsuleShell()

lm::builder::CapsuleShell::~CapsuleShell ( )
virtual

Member Function Documentation

◆ contains() [1/2]

bool lm::builder::CapsuleShell::contains ( point query)
virtual

Determine if the shape contains the specified point.

Parameters
queryPoint to test
Returns
true/false

Implements lm::builder::Shape.

Here is the call graph for this function:

◆ contains() [2/2]

bool lm::builder::CapsuleShell::contains ( Shape * query)
virtual

Determine if the shape contains the specified shape.

Parameters
queryShape to test
Returns
true/false

Implements lm::builder::Shape.

Here is the call graph for this function:

◆ getInnerRadius()

virtual si_dist_t lm::builder::CapsuleShell::getInnerRadius ( )
inlinevirtual

Get the inner radius of the cylinder.

Here is the caller graph for this function:

◆ getOuterRadius()

virtual si_dist_t lm::builder::CapsuleShell::getOuterRadius ( )
inlinevirtual

Get the outer radius of the cylinder.

Here is the caller graph for this function:

◆ getP1()

virtual point lm::builder::CapsuleShell::getP1 ( )
inlinevirtual

Get point of first end of cylinder.

Here is the caller graph for this function:

◆ getP2()

virtual point lm::builder::CapsuleShell::getP2 ( )
inlinevirtual

Get point of second end of cylinder.

Here is the caller graph for this function:

◆ getVolume()

double lm::builder::CapsuleShell::getVolume ( )
virtual

Get the total enclosed voluem of the CapsuleShell.

Implements lm::builder::Shape.

◆ intersects()

bool lm::builder::CapsuleShell::intersects ( Shape * query)
virtual

Check if two shapes intersect.

Parameters
queryThe other shape to check
Returns
true/false

Implements lm::builder::Shape.

Here is the call graph for this function:

Member Data Documentation

◆ innerRadius

si_dist_t lm::builder::CapsuleShell::innerRadius
protected

◆ length

si_dist_t lm::builder::CapsuleShell::length
protected

◆ outerRadius

si_dist_t lm::builder::CapsuleShell::outerRadius
protected

◆ p1

point lm::builder::CapsuleShell::p1
protected

◆ p2

point lm::builder::CapsuleShell::p2
protected

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