public

Inheritance Graph

graph BT
	DirectionalInterpolator
	click DirectionalInterpolator "classMinSG_1_1DirectionalInterpolator"

Description

Used to interpolate between the side-values of a ValuatedRegionNode according to a given frustum.

(Cl) Work in progress...

Public Types

   
   
enum side_t {LEFT_SIDE, FRONT_SIDE, RIGHT_SIDE, BACK_SIDE, BOTTOM_SIDE, TOP_SIDE}

Public Attributes

   
   
std::map< side_t , int > assignement_sides_valueIndice

Public Functions

   
   
  DirectionalInterpolator()
   
  ~DirectionalInterpolator()
   
Util::GenericAttribute * calculateValue( Rendering::RenderingContext & renderingContext, ValuatedRegionNode * node, const Geometry::Frustum & frustum, float measurementApertureAngle_deg)
   
void calculateRatio( Rendering::RenderingContext & renderingContext, float ratio, const Geometry::Frustum & frustum, float measurementApertureAngle_deg)
   
Util::GenericAttribute * getValueForSide( ValuatedRegionNode * node, side_t side)

Documentation

enum
MinSG::DirectionalInterpolator::side_t

public
 
 
enum side_t
Enumerator   Description
Enumerator   Description
LEFT_SIDE = 0  
FRONT_SIDE = 1  
RIGHT_SIDE = 2  
BACK_SIDE = 3  
BOTTOM_SIDE = 4  
TOP_SIDE = 5  

The order of the sides is defined by the measuring script in ClassificationAlgo.escript. This is different from Box::side_t!

Defined in MinSG/Ext/ValuatedRegion/DirectionalInterpolator.h:40


variable
MinSG::DirectionalInterpolator::assignement_sides_valueIndice

public
 
 
std::map< side_t , int > assignement_sides_valueIndice

Defined in MinSG/Ext/ValuatedRegion/DirectionalInterpolator.h:70


function
MinSG::DirectionalInterpolator::DirectionalInterpolator

public
   
   
DirectionalInterpolator( )

Default constructor

Defined in MinSG/Ext/ValuatedRegion/DirectionalInterpolator.h:50


function
MinSG::DirectionalInterpolator::~DirectionalInterpolator

public
   
   
~DirectionalInterpolator( )

Default destructor

Defined in MinSG/Ext/ValuatedRegion/DirectionalInterpolator.h:52


function
MinSG::DirectionalInterpolator::calculateValue

public
     
     
Util::GenericAttribute * calculateValue( Rendering::RenderingContext & renderingContext,
  ValuatedRegionNode * node,
  const Geometry::Frustum & frustum,
  float measurementApertureAngle_deg
)    

Defined in MinSG/Ext/ValuatedRegion/DirectionalInterpolator.h:54


function
MinSG::DirectionalInterpolator::calculateRatio

public
     
     
void calculateRatio( Rendering::RenderingContext & renderingContext,
  float ratio,
  const Geometry::Frustum & frustum,
  float measurementApertureAngle_deg
)    

Calculate the ratio of the visible sides of a cube.

Parameters

ratio
The resulting ratios
frustum
measurementApertureAngle_deg
Size in degree of the (possibly) overlapping cube sides

Defined in MinSG/Ext/ValuatedRegion/DirectionalInterpolator.h:65


function
MinSG::DirectionalInterpolator::getValueForSide

public
     
     
Util::GenericAttribute * getValueForSide( ValuatedRegionNode * node,
  side_t side
)    

Defined in MinSG/Ext/ValuatedRegion/DirectionalInterpolator.h:68