MineLink
 All Data Structures Functions Variables Pages
delphos::AccessibilityFilter Class Reference

Abstracts accessibility filter function. More...

#include <filters.h>

Inheritance diagram for delphos::AccessibilityFilter:
Inheritance graph
Collaboration diagram for delphos::AccessibilityFilter:
Collaboration graph

Public Member Functions

 AccessibilityFilter (const double &vertical_angle_degrees, const double &deltax, const double &deltay, const double &deltaz, delphos::BlockModel &bm)
 defines an accessibility filter of a given angle and given block dimensions. More...
 
virtual bool Eval (const delphos::Block &block) const
 method that determine how the blocks are filtered. More...
 
- Public Member Functions inherited from delphos::BlockFilter
virtual ~BlockFilter ()
 Destroys a block filter.
 

Detailed Description

Abstracts accessibility filter function.

Constructor & Destructor Documentation

delphos::AccessibilityFilter::AccessibilityFilter ( const double &  vertical_angle_degrees,
const double &  deltax,
const double &  deltay,
const double &  deltaz,
delphos::BlockModel bm 
)

defines an accessibility filter of a given angle and given block dimensions.

Parameters
vertical_angle_degreesThe slope angle, measured in degrees with regards to the vertical axis.
deltaxPositive real number indicating the block dimensions in the X axis.
deltayPositive real number indicating the block dimensions in the Y axis.
deltazPositive real number indicating the block dimensions in the Z axis.
bmThe block model.

This version only works if the block model is regular, that is all blocks have the same dimensions \((\Delta x, \Delta y, \Delta z)\).

Member Function Documentation

bool delphos::AccessibilityFilter::Eval ( const delphos::Block block) const
virtual

method that determine how the blocks are filtered.

The method return true if the block is kept, false if it is not.

Reimplemented from delphos::BlockFilter.

Reimplemented in delphos::AccessibilityAndRangeFilter.


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