VirtualFluids 0.2.0
Parallel CFD LBM Solver
Loading...
Searching...
No Matches
GbCuboid3D Class Reference

This Class provides basic 3D box objects. More...

#include <GbCuboid3D.h>

Inheritance diagram for GbCuboid3D:
GbObject3D UbObserver ObObject UbObservable

Public Member Functions

 GbCuboid3D ()
 
 GbCuboid3D (const double &minX1, const double &minX2, const double &minX3, const double &maxX1, const double &maxX2, const double &maxX3)
 
 GbCuboid3D (GbPoint3D *p1, GbPoint3D *p2)
 
 GbCuboid3D (GbCuboid3D *cuboid)
 
 ~GbCuboid3D () override
 
GbCuboid3D * clone () override
 
void finalize () override
 
GbPoint3D * getPoint1 ()
 
GbPoint3D * getPoint2 ()
 
void setPoint1 (GbPoint3D *point1)
 
void setPoint2 (GbPoint3D *point2)
 
void setPoints (GbPoint3D *point1, GbPoint3D *point2)
 
double getX1Centroid () override
 
double getX1Minimum () override
 
double getX1Maximum () override
 
double getX2Centroid () override
 
double getX2Minimum () override
 
double getX2Maximum () override
 
double getX3Centroid () override
 
double getX3Minimum () override
 
double getX3Maximum () override
 
void setCenterCoordinates (const UbTupleDouble3 &) override
 
void setCenterCoordinates (const double &x1, const double &x2, const double &x3) override
 
void translate (const double &x1, const double &x2, const double &x3) override
 
void rotate (const double &rx1, const double &rx2, const double &rx3) override
 
void scale (const double &sx1, const double &sx2, const double &sx3) override
 
double getLengthX1 ()
 
double getLengthX2 ()
 
double getLengthX3 ()
 
bool isPointInGbObject3D (const double &x1p, const double &x2p, const double &x3p, bool &pointIsOnBoundary) override
 
bool isPointInGbObject3D (const double &x1p, const double &x2p, const double &x3p) override
 
bool isCellInsideGbObject3D (const double &x1a, const double &x2a, const double &x3a, const double &x1b, const double &x2b, const double &x3b) override
 
bool isCellCuttingGbObject3D (const double &x1a, const double &x2a, const double &x3a, const double &x1b, const double &x2b, const double &x3b) override
 
bool isCellInsideOrCuttingGbObject3D (const double &x1a, const double &x2a, const double &x3a, const double &x1b, const double &x2b, const double &x3b) override
 
double getCellVolumeInsideGbObject3D (const double &x1a, const double &x2a, const double &x3a, const double &x1b, const double &x2b, const double &x3b) override
 
GbPoint3D * calculateInterSectionPoint3D (GbPoint3D &point1, GbPoint3D &point2)
 
GbLine3D * createClippedLine3D (GbPoint3D &point1, GbPoint3D &point2) override
 
std::vector< GbTriangle3D * > getSurfaceTriangleSet () override
 
void addSurfaceTriangleSet (std::vector< UbTupleFloat3 > &nodes, std::vector< UbTupleInt3 > &triangles) override
 
bool hasRaytracing () override
 
double getIntersectionRaytraceFactor (const double &x1, const double &x2, const double &x3, const double &rx1, const double &rx2, const double &rx3) override
 
double getDistance (GbPoint3D *p)
 
double getDistance (const double &x1p, const double &x2p, const double &x3p)
 
std::string toString () override
 
void objectChanged (UbObservable *changedObject) override
 
void objectWillBeDeleted (UbObservable *objectForDeletion) override
 
virtual bool isPointInGbObject3D (GbPoint3D *p)
 
virtual bool isPointInGbObject3D (const double &x1, const double &x2, const double &x3, bool &pointIsOnBoundary)=0
 
virtual bool isPointInGbObject3D (const double &x1, const double &x2, const double &x3)=0
 
- Public Member Functions inherited from GbObject3D
virtual ~GbObject3D ()=default
 
double getLengthX1 ()
 
double getLengthX2 ()
 
double getLengthX3 ()
 
virtual void setCenterX1Coordinate (const double &)
 
virtual void setCenterX2Coordinate (const double &)
 
virtual void setCenterX3Coordinate (const double &)
 
virtual bool isInsideCell (const double &minX1, const double &minX2, const double &minX3, const double &maxX1, const double &maxX2, const double &maxX3)
 
virtual bool raytracingSupportsPointsInside ()
 
- Public Member Functions inherited from ObObject
 ObObject ()=default
 
 ObObject (const std::string &name)
 
 ~ObObject () override=default
 
virtual std::string getName ()
 
void setName (std::string name)
 
- Public Member Functions inherited from UbObservable
virtual ~UbObservable ()
 
virtual void addObserver (UbObserver *observer)
 
virtual void removeObserver (UbObserver *observer)
 
virtual void removeAllObservers ()
 
virtual bool isObservedBy (UbObserver *observer)
 
virtual void notifyObserversObjectChanged ()
 
std::list< UbObserver * > * getObserverList ()
 
- Public Member Functions inherited from UbObserver
virtual ~UbObserver ()=default
 

Protected Attributes

GbPoint3D * p1
 
GbPoint3D * p2
 

Additional Inherited Members

- Protected Member Functions inherited from UbObservable
 UbObservable ()=default
 
 UbObservable (const UbObservable &)
 
UbObservable & operator= (const UbObservable &)
 
- Protected Member Functions inherited from UbObserver
 UbObserver ()=default
 

Detailed Description

This Class provides basic 3D box objects.

Definition at line 52 of file GbCuboid3D.h.

Member Function Documentation

◆ clone()

GbCuboid3D * GbCuboid3D::clone ( )
inlineoverridevirtual

Implements ObObject.

Definition at line 62 of file GbCuboid3D.h.

◆ getDistance() [1/2]

double GbCuboid3D::getDistance ( const double &  x1p,
const double &  x2p,
const double &  x3p 
)
inline

Definition at line 123 of file GbCuboid3D.h.

◆ getDistance() [2/2]

double GbCuboid3D::getDistance ( GbPoint3D *  p)
inline

Definition at line 119 of file GbCuboid3D.h.

◆ getPoint1()

GbPoint3D * GbCuboid3D::getPoint1 ( )
inline

Definition at line 65 of file GbCuboid3D.h.

◆ getPoint2()

GbPoint3D * GbCuboid3D::getPoint2 ( )
inline

Definition at line 66 of file GbCuboid3D.h.

◆ hasRaytracing()

bool GbCuboid3D::hasRaytracing ( )
inlineoverridevirtual

Reimplemented from GbObject3D.

Definition at line 114 of file GbCuboid3D.h.

◆ isPointInGbObject3D() [1/3]

virtual bool GbObject3D::isPointInGbObject3D ( const double &  x1,
const double &  x2,
const double &  x3 
)
virtual

Implements GbObject3D.

◆ isPointInGbObject3D() [2/3]

virtual bool GbObject3D::isPointInGbObject3D ( const double &  x1,
const double &  x2,
const double &  x3,
bool &  pointIsOnBoundary 
)
virtual

Implements GbObject3D.

◆ isPointInGbObject3D() [3/3]

bool GbObject3D::isPointInGbObject3D ( GbPoint3D *  p)
virtual

Reimplemented from GbObject3D.

Definition at line 153 of file GbObject3D.cpp.

◆ rotate()

void GbCuboid3D::rotate ( const double &  rx1,
const double &  rx2,
const double &  rx3 
)
inlineoverridevirtual

Reimplemented from GbObject3D.

Definition at line 88 of file GbCuboid3D.h.

◆ setCenterCoordinates()

void GbCuboid3D::setCenterCoordinates ( const UbTupleDouble3 &  )
inlineoverridevirtual

Reimplemented from GbObject3D.

Definition at line 81 of file GbCuboid3D.h.

Member Data Documentation

◆ p1

GbPoint3D* GbCuboid3D::p1
protected

Definition at line 148 of file GbCuboid3D.h.

◆ p2

GbPoint3D* GbCuboid3D::p2
protected

Definition at line 149 of file GbCuboid3D.h.


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