Jet  v1.3.3
Public Member Functions | List of all members
jet::PointGenerator3 Class Referenceabstract

Abstract base class for 3-D point generator. More...

#include <jet/point_generator3.h>

Inheritance diagram for jet::PointGenerator3:
jet::BccLatticePointGenerator jet::FccLatticePointGenerator jet::GridPointGenerator3

Public Member Functions

 PointGenerator3 ()
 
virtual ~PointGenerator3 ()
 
void generate (const BoundingBox3D &boundingBox, double spacing, Array1< Vector3D > *points) const
 
virtual void forEachPoint (const BoundingBox3D &boundingBox, double spacing, const std::function< bool(const Vector3D &)> &callback) const =0
 Iterates every point within the bounding box with specified point pattern and invokes the callback function. More...
 

Detailed Description

Abstract base class for 3-D point generator.

This class provides interface for 3-D point generator. For given bounding box and point spacing, the inherited classes generates points with specified pattern.

Constructor & Destructor Documentation

◆ PointGenerator3()

jet::PointGenerator3::PointGenerator3 ( )

◆ ~PointGenerator3()

virtual jet::PointGenerator3::~PointGenerator3 ( )
virtual

Member Function Documentation

◆ forEachPoint()

virtual void jet::PointGenerator3::forEachPoint ( const BoundingBox3D boundingBox,
double  spacing,
const std::function< bool(const Vector3D &)> &  callback 
) const
pure virtual

Iterates every point within the bounding box with specified point pattern and invokes the callback function.

This function iterates every point within the bounding box and invokes the callback function. The position of the point is specified by the actual implementation. The suggested spacing between the points are given by spacing. The input parameter of the callback function is the position of the point and the return value tells whether the iteration should stop or not.

Implemented in jet::BccLatticePointGenerator, jet::FccLatticePointGenerator, and jet::GridPointGenerator3.

◆ generate()

void jet::PointGenerator3::generate ( const BoundingBox3D boundingBox,
double  spacing,
Array1< Vector3D > *  points 
) const

Generates points to output array points inside given boundingBox with target point spacing.


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