ICF 3.1.1.10
Technical documentation of ICF Libraries
CCaliperDistanceFeature.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#ifndef iipr_CCaliperDistanceFeature_included
7#define iipr_CCaliperDistanceFeature_included
8
9
10// ICF includes
11#include <i2d/CLine2d.h>
13
14
15namespace iipr
16{
17
18
23{
24public:
26
27 CCaliperDistanceFeature(const i2d::CLine2d& caliperLine, double weight);
28
29 double GetDistance() const;
30
31 // reimplemented (imeas::INumericValue)
32 bool IsValueTypeSupported(ValueTypeId valueTypeId, bool editableOnly = false) const override;
33 double GetComponentValue(ValueTypeId valueTypeId) const override;
34 bool SetComponentValue(ValueTypeId valueTypeId, double value) override;
35};
36
37
38} // namespace iipr
39
40
41#endif // !iipr_CCaliperDistanceFeature_included
42
43
Definition of a line in 2D-space.
Definition CLine2d.h:26
Implementation of INumericValue interface for caliper based distance measurement feature.
CCaliperDistanceFeature(const i2d::CLine2d &caliperLine, double weight)
bool IsValueTypeSupported(ValueTypeId valueTypeId, bool editableOnly=false) const override
bool SetComponentValue(ValueTypeId valueTypeId, double value) override
double GetComponentValue(ValueTypeId valueTypeId) const override
iipr::TWeightedFeatureWrap< i2d::CLine2d > BaseClass
Wrapper allowing to create feature object from some another serializable one.
INumericConstraints::ValueTypeId ValueTypeId
Contains the image processing classes.

© Witold Gantzke and Kirill Lepskiy