ls1-MarDyn
ls1-MarDyn molecular dynamics code
Public Member Functions | Static Public Member Functions | List of all members
ObjectIntersection Class Reference

#include <Objects.h>

Inheritance diagram for ObjectIntersection:
Object

Public Member Functions

 ObjectIntersection (std::shared_ptr< Object > obj1, std::shared_ptr< Object > obj2)
 
void readXML (XMLfileUnits &xmlconfig)
 Read in XML configuration for ObjectIntersection and all its included objects. More...
 
std::string getName ()
 
bool isInside (double r[3])
 
bool isInsideNoBorder (double r[3])
 
void getBboxMin (double rmin[3])
 
void getBboxMax (double rmax[3])
 
- Public Member Functions inherited from Object
virtual std::string getPluginName () final
 

Static Public Member Functions

static ObjectcreateInstance ()
 

Detailed Description

Abstract class for the intersection of two objects

Constructor & Destructor Documentation

◆ ObjectIntersection()

ObjectIntersection::ObjectIntersection ( std::shared_ptr< Object obj1,
std::shared_ptr< Object obj2 
)
inline

Constructor

Parameters
[in]obj1First object.
[in]obj2Second object.

Member Function Documentation

◆ getBboxMax()

void ObjectIntersection::getBboxMax ( double  rmax[3])
inlinevirtual

Get upper corner of a bounding box around the object

Implements Object.

◆ getBboxMin()

void ObjectIntersection::getBboxMin ( double  rmin[3])
inlinevirtual

Get lower corner of a bounding box around the object

Implements Object.

◆ getName()

std::string ObjectIntersection::getName ( )
inlinevirtual

Get name of object

Implements Object.

◆ isInside()

bool ObjectIntersection::isInside ( double  r[3])
inlinevirtual

Determines if the given point is inside the object

Implements Object.

◆ isInsideNoBorder()

bool ObjectIntersection::isInsideNoBorder ( double  r[3])
inlinevirtual

Determines if the given point is inside the object excluding it's border

Implements Object.

◆ readXML()

void ObjectIntersection::readXML ( XMLfileUnits xmlconfig)
virtual

Read in XML configuration for ObjectIntersection and all its included objects.

The following xml object structure is handled by this method:

<object>
<object1 type="..."> <!-- (summand) ... --> </object1>
<object2 type="..."> <!-- (summand) ... --> </object2>
</object>

Reimplemented from Object.


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