BICO
1.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Pages
pointweightmodifier.h
Go to the documentation of this file.
1
#ifndef POINTWEIGHTMODIFIER_H
2
#define POINTWEIGHTMODIFIER_H
3
4
#include "../base/weightmodifier.h"
5
#include "../point/point.h"
6
7
namespace
CluE
8
{
9
15
class
PointWeightModifier
:
public
WeightModifier
<Point>
16
{
17
public
:
18
virtual
PointWeightModifier
*
clone
()
const
;
19
20
virtual
double
getWeight
(
Point
&);
21
virtual
void
setWeight
(
Point
&,
double
);
22
};
23
24
inline
25
PointWeightModifier
*
PointWeightModifier::clone
()
const
26
{
27
return
new
PointWeightModifier
(*
this
);
28
}
29
30
inline
31
double
PointWeightModifier::getWeight
(
Point
& p)
32
{
33
return
p.
getWeight
();
34
}
35
36
inline
37
void
PointWeightModifier::setWeight
(
Point
& p,
double
w)
38
{
39
p.
setWeight
(w);
40
}
41
42
}
43
44
#endif
src
point
pointweightmodifier.h
Generated on Fri Aug 30 2013 15:51:29 for BICO by
1.8.4