public

Inheritance Graph

graph BT
	TrianglesEvaluator
	TrianglesEvaluator --> Evaluator
	click TrianglesEvaluator "classMinSG_1_1Evaluators_1_1TrianglesEvaluator"
	click Evaluator "classMinSG_1_1Evaluators_1_1Evaluator"

Description

Evaluator to determine the number of visible triangles. First the visible GeometryNodes are determined and in a second pass every triangle is tested for visibility using OpenGL occlusion queries. The result is the overall number of visible triangles.

Author: Benjamin Eikel

Date: 2009-07-28

Public Functions

   
   
  TrianglesEvaluator()
This uses always Evaluator::SINGLE_VALUE mode.
   
  ~TrianglesEvaluator()
   
void beginMeasure()
   
void measure( FrameContext & context, Node & node, const Geometry::Rect & r)
   
void endMeasure( FrameContext & context)
   
const Util::GenericAttributeList * getResults()

Documentation

function
MinSG::Evaluators::TrianglesEvaluator::TrianglesEvaluator

public
   
   
TrianglesEvaluator( )

This uses always Evaluator::SINGLE_VALUE mode.

Defined in MinSG/Ext/Evaluator/TrianglesEvaluator.h:44


function
MinSG::Evaluators::TrianglesEvaluator::~TrianglesEvaluator

public virtual
   
   
~TrianglesEvaluator( )

Defined in MinSG/Ext/Evaluator/TrianglesEvaluator.h:45


function
MinSG::Evaluators::TrianglesEvaluator::beginMeasure

public virtual
   
   
void beginMeasure( )

Defined in MinSG/Ext/Evaluator/TrianglesEvaluator.h:48


function
MinSG::Evaluators::TrianglesEvaluator::measure

public virtual
     
     
void measure( FrameContext & context,
  Node & node,
  const Geometry::Rect & r
)    

Defined in MinSG/Ext/Evaluator/TrianglesEvaluator.h:49


function
MinSG::Evaluators::TrianglesEvaluator::endMeasure

public virtual
     
     
void endMeasure( FrameContext & context )

Defined in MinSG/Ext/Evaluator/TrianglesEvaluator.h:50


function
MinSG::Evaluators::TrianglesEvaluator::getResults

public virtual
   
   
const Util::GenericAttributeList * getResults( )

Return the number of visible triangles.

Returns

Value ofnumTrianglesVisible

Defined in MinSG/Ext/Evaluator/TrianglesEvaluator.h:57