-
Notifications
You must be signed in to change notification settings - Fork 0
/
GW_QuadTreeVertex.cpp
executable file
·95 lines (82 loc) · 2.77 KB
/
GW_QuadTreeVertex.cpp
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/*------------------------------------------------------------------------------*/
/**
* \file GW_QuadTreeVertex.cpp
* \brief Definition of class \c GW_QuadTreeVertex
* \author Gabriel Peyré
* \date 10-27-2002
*/
/*------------------------------------------------------------------------------*/
#ifdef GW_SCCSID
static const char* sccsid = "@(#) GW_QuadTreeVertex.cpp(c) Gabriel Peyré2002";
#endif // GW_SCCSID
#include "stdafx.h"
#include "GW_QuadTreeVertex.h"
#include "GW_DataChunk_ABC.h"
#ifndef GW_USE_INLINE
#include "GW_QuadTreeVertex.inl"
#endif
using namespace GW;
/*------------------------------------------------------------------------------*/
// Name : GW_QuadTreeVertex constructor
/**
* \author Gabriel Peyré
* \date 10-27-2002
*
* constructor
*/
/*------------------------------------------------------------------------------*/
GW_QuadTreeVertex::GW_QuadTreeVertex()
: pDataChunk_ ( NULL ),
rVal_ ( 0 )
{
/* NOTHING */
}
/*------------------------------------------------------------------------------*/
// Name : GW_QuadTreeVertex destructor
/**
* \author Gabriel Peyré
* \date 10-27-2002
*
* Destructor
*/
/*------------------------------------------------------------------------------*/
GW_QuadTreeVertex::~GW_QuadTreeVertex()
{
/* delete the data chunk if needed */
GW_DELETE( pDataChunk_ );
}
/*------------------------------------------------------------------------------*/
// Name : GW_QuadTreeVertex::GetDataChunk
/**
* \return [GW_DataChunk_ABC*] The data chunk.
* \author Gabriel Peyré
* \date 11-12-2002
*
* Return the data chunk. Can be null.
*/
/*------------------------------------------------------------------------------*/
GW_DataChunk_ABC* GW_QuadTreeVertex::GetDataChunk()
{
return pDataChunk_;
}
/*------------------------------------------------------------------------------*/
// Name : GW_QuadTreeVertex::SetDataChunk
/**
* \param DataChunk [GW_DataChunk_ABC&] The new data chunk.
* \author Gabriel Peyré
* \date 11-12-2002
*
* Set the data chunk used by a transform to store some precomputed values.
*/
/*------------------------------------------------------------------------------*/
void GW_QuadTreeVertex::SetDataChunk(GW_DataChunk_ABC& DataChunk)
{
/* delete the previous chunk if needed */
GW_DELETE( pDataChunk_ );
pDataChunk_ = &DataChunk;
}
///////////////////////////////////////////////////////////////////////////////
// Copyright (c) Gabriel Peyré
///////////////////////////////////////////////////////////////////////////////
// END OF FILE //
///////////////////////////////////////////////////////////////////////////////