-
Notifications
You must be signed in to change notification settings - Fork 0
/
GW_TreeFunction_ABC.h
executable file
·70 lines (56 loc) · 2.64 KB
/
GW_TreeFunction_ABC.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_TreeFunction_ABC.h
* \brief Definition of class \c GW_TreeFunction_ABC
* \author Gabriel Peyré
* \date 10-26-2002
*/
/*------------------------------------------------------------------------------*/
#ifndef _GW_TREEFUNCTION_H_
#define _GW_TREEFUNCTION_H_
#include "../gw_core/GW_Config.h"
#include "../gw_multiresolution/GW_SphericalMaths.h"
GW_BEGIN_NAMESPACE
class GW_QuadTreeNode;
class GW_QuadTreeVertex;
/*------------------------------------------------------------------------------*/
/**
* \class GW_TreeFunction_ABC
* \brief The base class for all spherical functions.
* \author Gabriel Peyré
* \date 10-26-2002
*
* Describe the methods that functions defined on the manifold must
* implement. One for vertex based and one for face based.
*/
/*------------------------------------------------------------------------------*/
class GW_TreeFunction_ABC
{
public:
//-------------------------------------------------------------------------
/** \name The default implementation set coefficient to zero. */
//-------------------------------------------------------------------------
//@{
virtual GW_Float GetValue( GW_Float rU, GW_Float rV ) const;
//@}
//-------------------------------------------------------------------------
/** \name Helpers. */
//-------------------------------------------------------------------------
//@{
void ComputeSphericalNormal(GW_Vector3D& Normal, GW_Float theta, GW_Float phi) const;
void ComputePlanarNormal(GW_Vector3D& Normal, GW_Float theta, GW_Float phi) const;
//@}
};
GW_END_NAMESPACE
#endif // _GW_TREEFUNCTION_H_
///////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2000-2002 The Orion3D Rewiew Board //
//---------------------------------------------------------------------------//
// This file is under the Orion3D licence. //
// Refer to orion3d_licence.txt for more details about the Orion3D Licence. //
//---------------------------------------------------------------------------//
// Ce fichier est soumis a la Licence Orion3D. //
// Se reporter a orion3d_licence.txt pour plus de details sur cette licence.//
///////////////////////////////////////////////////////////////////////////////
// END OF FILE //
///////////////////////////////////////////////////////////////////////////////