OpenMD 3.2
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, Vector3d > getBoundingBox ()
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 60 of file CompositeShape.hpp.

Constructor & Destructor Documentation

◆ CompositeShape()

OpenMD::CompositeShape::CompositeShape ( )

Definition at line 56 of file CompositeShape.cpp.

◆ ~CompositeShape()

OpenMD::CompositeShape::~CompositeShape ( )
virtual

Definition at line 58 of file CompositeShape.cpp.

Member Function Documentation

◆ addShape()

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

Definition at line 72 of file CompositeShape.hpp.

◆ getBoundingBox()

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

Implements OpenMD::Shape.

Definition at line 82 of file CompositeShape.cpp.

◆ getHydroProp()

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

Implements OpenMD::Shape.

Definition at line 94 of file CompositeShape.cpp.

◆ getOrigin()

Vector3d OpenMD::CompositeShape::getOrigin ( )
inlinevirtual

Implements OpenMD::Shape.

Definition at line 74 of file CompositeShape.hpp.

◆ getShapes()

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

Definition at line 73 of file CompositeShape.hpp.

◆ hasAnalyticalSolution()

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

Implements OpenMD::Shape.

Definition at line 66 of file CompositeShape.hpp.

◆ isComposite()

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

Implements OpenMD::Shape.

Definition at line 67 of file CompositeShape.hpp.

◆ isInterior()

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

Implements OpenMD::Shape.

Definition at line 60 of file CompositeShape.cpp.

◆ isMesh()

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

Implements OpenMD::Shape.

Definition at line 69 of file CompositeShape.hpp.

◆ isSpherical()

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

Implements OpenMD::Shape.

Definition at line 68 of file CompositeShape.hpp.

◆ setOrigin()

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

Definition at line 75 of file CompositeShape.hpp.


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