OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
OpenMD::CompositeShape Class Reference

Combine composite pattern and visitor pattern. More...

#include <CompositeShape.hpp>

+ Inheritance diagram for OpenMD::CompositeShape:

Public Member Functions

virtual bool isInterior (Vector3d pos)
 
virtual std::pair< Vector3d, Vector3dgetBoundingBox ()
 
virtual bool hasAnalyticalSolution ()
 
virtual bool isComposite ()
 
virtual bool isSpherical ()
 
virtual bool isMesh ()
 
virtual HydroPropgetHydroProp (RealType viscosity)
 
void addShape (Shape *s)
 
std::vector< Shape * > getShapes ()
 
Vector3d getOrigin ()
 
void setOrigin (Vector3d o)
 
- Public Member Functions inherited from OpenMD::Shape
std::string getName ()
 
void setName (const std::string name)
 

Detailed Description

Combine composite pattern and visitor pattern.

Definition at line 57 of file CompositeShape.hpp.

Constructor & Destructor Documentation

◆ CompositeShape()

OpenMD::CompositeShape::CompositeShape ( )

Definition at line 53 of file CompositeShape.cpp.

◆ ~CompositeShape()

OpenMD::CompositeShape::~CompositeShape ( )
virtual

Definition at line 55 of file CompositeShape.cpp.

Member Function Documentation

◆ addShape()

void OpenMD::CompositeShape::addShape ( Shape * s)
inline

Definition at line 69 of file CompositeShape.hpp.

◆ getBoundingBox()

std::pair< Vector3d, Vector3d > OpenMD::CompositeShape::getBoundingBox ( )
virtual

Implements OpenMD::Shape.

Definition at line 79 of file CompositeShape.cpp.

◆ getHydroProp()

HydroProp * OpenMD::CompositeShape::getHydroProp ( RealType viscosity)
virtual

Implements OpenMD::Shape.

Definition at line 91 of file CompositeShape.cpp.

◆ getOrigin()

Vector3d OpenMD::CompositeShape::getOrigin ( )
inlinevirtual

Implements OpenMD::Shape.

Definition at line 71 of file CompositeShape.hpp.

◆ getShapes()

std::vector< Shape * > OpenMD::CompositeShape::getShapes ( )
inline

Definition at line 70 of file CompositeShape.hpp.

◆ hasAnalyticalSolution()

virtual bool OpenMD::CompositeShape::hasAnalyticalSolution ( )
inlinevirtual

Implements OpenMD::Shape.

Definition at line 63 of file CompositeShape.hpp.

◆ isComposite()

virtual bool OpenMD::CompositeShape::isComposite ( )
inlinevirtual

Implements OpenMD::Shape.

Definition at line 64 of file CompositeShape.hpp.

◆ isInterior()

bool OpenMD::CompositeShape::isInterior ( Vector3d pos)
virtual

Implements OpenMD::Shape.

Definition at line 57 of file CompositeShape.cpp.

◆ isMesh()

virtual bool OpenMD::CompositeShape::isMesh ( )
inlinevirtual

Implements OpenMD::Shape.

Definition at line 66 of file CompositeShape.hpp.

◆ isSpherical()

virtual bool OpenMD::CompositeShape::isSpherical ( )
inlinevirtual

Implements OpenMD::Shape.

Definition at line 65 of file CompositeShape.hpp.

◆ setOrigin()

void OpenMD::CompositeShape::setOrigin ( Vector3d o)
inline

Definition at line 72 of file CompositeShape.hpp.


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