A Shape that represents a Union of many shapes.  
 More...
#include <UnionSet.h>
|  | 
| 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... 
 | 
| double | integrateToPercentThreshold (double percent) | 
| double | integrateToCount (int count) | 
| virtual point | minBounds (point p1, point p2) const | 
| virtual point | maxBounds (point p1, point p2) const | 
A Shape that represents a Union of many shapes. 
◆ UnionSet()
      
        
          | lm::builder::UnionSet::UnionSet | ( | site_t | type | ) |  | 
      
 
Create a UnionSet. 
- Parameters
- 
  
    | type | The type of the sites within the union |  
 
 
 
◆ ~UnionSet()
  
  | 
        
          | lm::builder::UnionSet::~UnionSet | ( |  | ) |  |  | virtual | 
 
 
◆ addShape()
      
        
          | void lm::builder::UnionSet::addShape | ( | Shape * | s | ) |  | 
      
 
Add a shape to the union. 
- Parameters
- 
  
  
 
 
◆ contains() [1/2]
  
  | 
        
          | bool lm::builder::UnionSet::contains | ( | point | query | ) |  |  | virtual | 
 
Determine if the shape contains the specified point. 
- Parameters
- 
  
  
- Returns
- true/false 
Implements lm::builder::Shape.
 
 
◆ contains() [2/2]
  
  | 
        
          | bool lm::builder::UnionSet::contains | ( | Shape * | query | ) |  |  | virtual | 
 
Determine if the shape contains the specified shape. 
- Parameters
- 
  
  
- Returns
- true/false 
Implements lm::builder::Shape.
 
 
◆ getVolume() [1/2]
  
  | 
        
          | virtual double lm::builder::UnionSet::getVolume | ( |  | ) |  |  | inlinevirtual | 
 
 
◆ getVolume() [2/2]
  
  | 
        
          | double lm::builder::UnionSet::getVolume | ( | bool | reintegrate = false | ) |  |  | virtual | 
 
Get the volume bounded by the sphere. 
 
 
◆ intersects()
  
  | 
        
          | bool lm::builder::UnionSet::intersects | ( | Shape * | query | ) |  |  | virtual | 
 
Check if two shapes intersect. 
- Parameters
- 
  
    | query | The other shape to check |  
 
- Returns
- true/false 
Implements lm::builder::Shape.
 
 
◆ hasBeenIntegrated
  
  | 
        
          | bool lm::builder::UnionSet::hasBeenIntegrated |  | protected | 
 
 
◆ shapes
  
  | 
        
          | std::vector<Shape *> lm::builder::UnionSet::shapes |  | protected | 
 
 
◆ storedVolume
  
  | 
        
          | double lm::builder::UnionSet::storedVolume |  | protected | 
 
 
The documentation for this class was generated from the following files:
- /data2/LM_zls_github/Lattice-Microbes/src/builder/UnionSet.h
- /data2/LM_zls_github/Lattice-Microbes/src/builder/UnionSet.cpp