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

#include <Objects.h>

Inheritance diagram for Cuboid:
Object BoundingBox

Public Member Functions

 Cuboid (double lower[3], double upper[3])
 
void readXML (XMLfileUnits &xmlconfig)
 Read in XML configuration for Cuboid 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])
 
double upperCorner (int d)
 
double lowerCorner (int d)
 
- Public Member Functions inherited from Object
virtual std::string getPluginName () final
 

Static Public Member Functions

static ObjectcreateInstance ()
 

Detailed Description

Class implementing a cuboid

Member Function Documentation

◆ getBboxMax()

void Cuboid::getBboxMax ( double  rmax[3])
virtual

Get upper corner of a bounding box around the object

Implements Object.

◆ getBboxMin()

void Cuboid::getBboxMin ( double  rmin[3])
virtual

Get lower corner of a bounding box around the object

Implements Object.

◆ getName()

std::string Cuboid::getName ( )
inlinevirtual

Get name of object

Implements Object.

◆ isInside()

bool Cuboid::isInside ( double  r[3])
virtual

Determines if the given point is inside the object

Implements Object.

◆ isInsideNoBorder()

bool Cuboid::isInsideNoBorder ( double  r[3])
virtual

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

Implements Object.

◆ readXML()

void Cuboid::readXML ( XMLfileUnits xmlconfig)
virtual

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

The following xml object structure is handled by this method:

<object>
<lower> <x>DOUBLE</x> <y>DOUBLE</y> <z>DOUBLE</z> </lower>
<upper> <x>DOUBLE</x> <y>DOUBLE</y> <z>DOUBLE</z> </upper>
</object>

Reimplemented from Object.


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