\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 5.0.3 - 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).