-
Notifications
You must be signed in to change notification settings - Fork 0
/
GW_IntegralDataChunk.h
executable file
·70 lines (52 loc) · 2.11 KB
/
GW_IntegralDataChunk.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*------------------------------------------------------------------------------*/
/**
* \file GW_IntegralDataChunk.h
* \brief Definition of class \c GW_IntegralDataChunk
* \author Gabriel Peyré
* \date 11-12-2002
*/
/*------------------------------------------------------------------------------*/
#ifndef _GW_INTEGRALDATACHUNK_H_
#define _GW_INTEGRALDATACHUNK_H_
#include "../gw_core/GW_Config.h"
#include "GW_DataChunk_ABC.h"
GW_BEGIN_NAMESPACE
/*------------------------------------------------------------------------------*/
/**
* \class GW_IntegralDataChunk
* \brief Contains the data needed by a vertex base linear wavelet
* \author Gabriel Peyré
* \date 11-12-2002
*
* A data chunk is put on each vertex V. It contains the value of the integral
* a the scale function that is 1 on this vertex, and decrease linearly to
* zero on the neighbor vertex of the level of the node that owned this vertex V.
*/
/*------------------------------------------------------------------------------*/
class GW_IntegralDataChunk: public GW_DataChunk_ABC
{
public:
/*------------------------------------------------------------------------------*/
/** \name Constructor and destructor */
/*------------------------------------------------------------------------------*/
//@{
GW_IntegralDataChunk();
virtual ~GW_IntegralDataChunk();
//@}
GW_U32 GetType();
GW_Float GetIntegral(GW_U32 nLevel);
void SetIntegral(GW_Float rVal, GW_I32 nLevel);
void AddIntegral(GW_Float rVal, GW_I32 nLevel);
private:
T_FloatVector IntegralValues_;
};
GW_END_NAMESPACE
#ifdef GW_USE_INLINE
#include "GW_IntegralDataChunk.inl"
#endif
#endif // _GW_INTEGRALDATACHUNK_H_
///////////////////////////////////////////////////////////////////////////////
// Copyright (c) Gabriel Peyré
///////////////////////////////////////////////////////////////////////////////
// END OF FILE //
///////////////////////////////////////////////////////////////////////////////