Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Member Functions | Private Attributes | List of all members
TYReflectionVisibilityPruningStrategy Class Reference

Pruning strategy which prunes the tree when the reflecting segment to be added in the tree is not visible by the parent image source through the parent reflecting segment. More...

#include <TYReflectionPruningStrategy.h>

Inheritance diagram for TYReflectionVisibilityPruningStrategy:
Inheritance graph
[legend]
Collaboration diagram for TYReflectionVisibilityPruningStrategy:
Collaboration graph
[legend]

Public Member Functions

 TYReflectionVisibilityPruningStrategy ()
 
std::unique_ptr< TYAbstractReflectionPruningStrategyinstanciate () const override
 Instanciate a new pruning strategy of the same type. More...
 
void initialize (const std::vector< const TYSIntersection * > &currentReflectingSegments, const std::deque< OPoint3D > &currentImageSources) override
 Inform the pruning strategy of the current reflecting segments tree state. More...
 
bool pruningCriterionMet (const TYSIntersection &nextReflectingSegment) const override
 Check if the tree can be pruned before inserting the next reflecting segment. More...
 
- Public Member Functions inherited from TYAbstractReflectionPruningStrategy
virtual ~TYAbstractReflectionPruningStrategy ()=default
 

Private Attributes

std::unique_ptr< VisibilityCone_pVisibilityCone
 

Additional Inherited Members

- Protected Member Functions inherited from TYAbstractReflectionPruningStrategy
 TYAbstractReflectionPruningStrategy ()=default
 

Detailed Description

Pruning strategy which prunes the tree when the reflecting segment to be added in the tree is not visible by the parent image source through the parent reflecting segment.

Definition at line 90 of file TYReflectionPruningStrategy.h.

Constructor & Destructor Documentation

◆ TYReflectionVisibilityPruningStrategy()

TYReflectionVisibilityPruningStrategy::TYReflectionVisibilityPruningStrategy ( )
inline

Definition at line 93 of file TYReflectionPruningStrategy.h.

Member Function Documentation

◆ initialize()

void TYReflectionVisibilityPruningStrategy::initialize ( const std::vector< const TYSIntersection * > &  currentReflectingSegments,
const std::deque< OPoint3D > &  currentImageSources 
)
overridevirtual

Inform the pruning strategy of the current reflecting segments tree state.

Parameters
currentReflectingSegmentsCurrent list of reflecting segments B1 to Bn
currentImageSourcesCurrent list of image sources from S0 to Sn

Implements TYAbstractReflectionPruningStrategy.

Definition at line 19 of file TYReflectionPruningStrategy.cpp.

◆ instanciate()

std::unique_ptr<TYAbstractReflectionPruningStrategy> TYReflectionVisibilityPruningStrategy::instanciate ( ) const
inlineoverridevirtual

Instanciate a new pruning strategy of the same type.

Implements TYAbstractReflectionPruningStrategy.

Definition at line 95 of file TYReflectionPruningStrategy.h.

◆ pruningCriterionMet()

bool TYReflectionVisibilityPruningStrategy::pruningCriterionMet ( const TYSIntersection nextReflectingSegment) const
overridevirtual

Check if the tree can be pruned before inserting the next reflecting segment.

Parameters
nextReflectingSegmentnext reflecting segment to add as a leaf of the current tree

Implements TYAbstractReflectionPruningStrategy.

Definition at line 32 of file TYReflectionPruningStrategy.cpp.

Member Data Documentation

◆ _pVisibilityCone

std::unique_ptr<VisibilityCone> TYReflectionVisibilityPruningStrategy::_pVisibilityCone
private

Definition at line 106 of file TYReflectionPruningStrategy.h.


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