CGAL 5.4.2 - Classification
CGAL::Classification::Feature::Simple_feature< InputRange, PropertyMap > Class Template Reference

#include <CGAL/Classification/Feature/Simple_feature.h>

Inherits from

CGAL::Classification::Feature_base.

Definition

Feature based on a user-defined scalar field.

Template Parameters
InputRangemodel of ConstRange. Its iterator type is RandomAccessIterator.
PropertyMapmodel of ReadablePropertyMap whose key type is the value type of the iterator of PointRange and value type is statically castable to float.

Public Member Functions

 Simple_feature (const InputRange &input, PropertyMap property_map, const std::string &name)
 constructs the feature using an input range and a property map. More...
 
- Public Member Functions inherited from CGAL::Classification::Feature_base
const std::string & name () const
 returns the name of the feature (initialized to abstract_feature for Feature_base).
 
void set_name (const std::string &name)
 changes the name of the feature.
 
virtual float value (std::size_t index)=0
 returns the value taken by the feature for at the item for the item at position index. More...
 

Constructor & Destructor Documentation

◆ Simple_feature()

template<typename InputRange , typename PropertyMap >
CGAL::Classification::Feature::Simple_feature< InputRange, PropertyMap >::Simple_feature ( const InputRange &  input,
PropertyMap  property_map,
const std::string &  name 
)

constructs the feature using an input range and a property map.

Parameters
inputpoint range.
property_mapproperty map to access scalar field.
namename of the property (no default name is given).