dust3d/thirdparty/cgal/CGAL-5.1/include/CGAL/Classification/Label.h

68 lines
1.4 KiB
C
Raw Normal View History

// Copyright (c) 2017 GeometryFactory Sarl (France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
//
2020-10-13 12:44:25 +00:00
// $URL: https://github.com/CGAL/cgal/blob/v5.1/Classification/include/CGAL/Classification/Label.h $
// $Id: Label.h 0779373 2020-03-26T13:31:46+01:00 Sébastien Loriot
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
//
// Author(s) : Simon Giraudot
#ifndef CGAL_CLASSIFICATION_LABEL_H
#define CGAL_CLASSIFICATION_LABEL_H
#include <CGAL/license/Classification.h>
#include <boost/shared_ptr.hpp>
namespace CGAL {
namespace Classification {
/*!
\ingroup PkgClassificationLabel
\brief %Classification label (for example: vegetation, ground, etc.)
defined as a set of relationships with classification features.
*/
class Label
{
private:
std::string m_name;
public:
2020-10-13 12:44:25 +00:00
/*!
\param name name of the classification label (e.g. vegetation).
2020-10-13 12:44:25 +00:00
*/
Label (std::string name) : m_name (name) { }
const std::string& name() const { return m_name; }
2020-10-13 12:44:25 +00:00
/// \cond SKIP_IN_MANUAL
void set_name (const std::string& name) { m_name = name; }
/// \endcond
};
#ifdef DOXYGEN_RUNNING
/*!
\ingroup PkgClassificationLabel
\brief %Handle to a classification `Label`.
\cgalModels Handle
*/
class Label_handle { };
#else
typedef boost::shared_ptr<Label> Label_handle;
#endif
} // namespace Classification
} // namespace CGAL
#endif // CGAL_CLASSIFICATION_LABEL_H