Skip to content

Commit d58bc85

Browse files
committed
Moved and added some bounding-related source files.
1 parent 015e45b commit d58bc85

File tree

17 files changed

+143
-22
lines changed

17 files changed

+143
-22
lines changed

source/backend/bounding/boundingtask.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
#include "backend/frame.h"
4343
#include "backend/bounding/boundingtask.h"
4444

45+
#include "core/bounding/bsptree.h"
4546
#include "core/math/matrix.h"
4647
#include "core/scene/object.h"
4748
#include "core/scene/tracethreaddata.h"
48-
#include "core/support/bsptree.h"
4949

5050
#include "povms/povmsid.h"
5151

source/backend/scene/view.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/// @parblock
99
///
1010
/// Persistence of Vision Ray Tracer ('POV-Ray') version 3.7.
11-
/// Copyright 1991-2015 Persistence of Vision Raytracer Pty. Ltd.
11+
/// Copyright 1991-2016 Persistence of Vision Raytracer Pty. Ltd.
1212
///
1313
/// POV-Ray is free software: you can redistribute it and/or modify
1414
/// it under the terms of the GNU Affero General Public License as
@@ -38,9 +38,9 @@
3838

3939
#include <vector>
4040

41+
#include "core/bounding/bsptree.h"
4142
#include "core/lighting/radiosity.h"
4243
#include "core/scene/camera.h"
43-
#include "core/support/bsptree.h"
4444

4545
#include "backend/support/taskqueue.h"
4646

source/core/bounding/bounding.cpp

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
//******************************************************************************
2+
///
3+
/// @file core/bounding/bounding.cpp
4+
///
5+
/// Implementations related to bounding mechanisms.
6+
///
7+
/// @copyright
8+
/// @parblock
9+
///
10+
/// Persistence of Vision Ray Tracer ('POV-Ray') version 3.7.
11+
/// Copyright 1991-2016 Persistence of Vision Raytracer Pty. Ltd.
12+
///
13+
/// POV-Ray is free software: you can redistribute it and/or modify
14+
/// it under the terms of the GNU Affero General Public License as
15+
/// published by the Free Software Foundation, either version 3 of the
16+
/// License, or (at your option) any later version.
17+
///
18+
/// POV-Ray is distributed in the hope that it will be useful,
19+
/// but WITHOUT ANY WARRANTY; without even the implied warranty of
20+
/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21+
/// GNU Affero General Public License for more details.
22+
///
23+
/// You should have received a copy of the GNU Affero General Public License
24+
/// along with this program. If not, see <http://www.gnu.org/licenses/>.
25+
///
26+
/// ----------------------------------------------------------------------------
27+
///
28+
/// POV-Ray is based on the popular DKB raytracer version 2.12.
29+
/// DKBTrace was originally written by David K. Buck.
30+
/// DKBTrace Ver 2.0-2.12 were written by David K. Buck & Aaron A. Collins.
31+
///
32+
/// @endparblock
33+
///
34+
//******************************************************************************
35+
36+
// Unit header file must be the first file included within POV-Ray *.cpp files (pulls in config)
37+
#include "core/bounding/bounding.h"
38+
39+
// this must be the last file included
40+
#include "base/povdebug.h"
41+
42+
namespace pov
43+
{
44+
45+
// nothing in here yet
46+
47+
}

source/core/bounding/bounding.h

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
//******************************************************************************
2+
///
3+
/// @file core/bounding/bounding.h
4+
///
5+
/// Declarations related to bounding mechanisms.
6+
///
7+
/// @copyright
8+
/// @parblock
9+
///
10+
/// Persistence of Vision Ray Tracer ('POV-Ray') version 3.7.
11+
/// Copyright 1991-2016 Persistence of Vision Raytracer Pty. Ltd.
12+
///
13+
/// POV-Ray is free software: you can redistribute it and/or modify
14+
/// it under the terms of the GNU Affero General Public License as
15+
/// published by the Free Software Foundation, either version 3 of the
16+
/// License, or (at your option) any later version.
17+
///
18+
/// POV-Ray is distributed in the hope that it will be useful,
19+
/// but WITHOUT ANY WARRANTY; without even the implied warranty of
20+
/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21+
/// GNU Affero General Public License for more details.
22+
///
23+
/// You should have received a copy of the GNU Affero General Public License
24+
/// along with this program. If not, see <http://www.gnu.org/licenses/>.
25+
///
26+
/// ----------------------------------------------------------------------------
27+
///
28+
/// POV-Ray is based on the popular DKB raytracer version 2.12.
29+
/// DKBTrace was originally written by David K. Buck.
30+
/// DKBTrace Ver 2.0-2.12 were written by David K. Buck & Aaron A. Collins.
31+
///
32+
/// @endparblock
33+
///
34+
//******************************************************************************
35+
36+
#ifndef POVRAY_CORE_BOUNDING_H
37+
#define POVRAY_CORE_BOUNDING_H
38+
39+
// Module config header file must be the first file included within POV-Ray unit header files
40+
#include "core/configcore.h"
41+
42+
namespace pov
43+
{
44+
45+
//##############################################################################
46+
///
47+
/// @defgroup PovCoreBounding Bounding
48+
/// @ingroup PovCore
49+
///
50+
/// @{
51+
52+
// nothing in here yet.
53+
54+
/// @}
55+
///
56+
//##############################################################################
57+
58+
}
59+
60+
#endif // POVRAY_CORE_BOUNDING_H

source/core/bounding/boundingbox.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ namespace pov
4848
//##############################################################################
4949
///
5050
/// @defgroup PovCoreBoundingBox Bounding Boxes
51-
/// @ingroup PovCore
51+
/// @ingroup PovCoreBounding
5252
///
5353
/// @{
5454

source/core/bounding/boundingcylinder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ namespace pov
4747
//##############################################################################
4848
///
4949
/// @defgroup PovCoreBoundingCylinder Bounding Cylinders
50-
/// @ingroup PovCore
50+
/// @ingroup PovCoreBounding
5151
///
5252
/// @{
5353

source/core/bounding/boundingsphere.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ namespace pov
4747
//##############################################################################
4848
///
4949
/// @defgroup PovCoreBoundingSphere Bounding Spheres
50-
/// @ingroup PovCore
50+
/// @ingroup PovCoreBounding
5151
///
5252
/// @{
5353

source/core/support/bsptree.cpp renamed to source/core/bounding/bsptree.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//******************************************************************************
22
///
3-
/// @file core/support/bsptree.cpp
3+
/// @file core/bounding/bsptree.cpp
44
///
55
/// @todo What's in here?
66
///
@@ -34,7 +34,7 @@
3434
//******************************************************************************
3535

3636
// Unit header file must be the first file included within POV-Ray *.cpp files (pulls in config)
37-
#include "core/support/bsptree.h"
37+
#include "core/bounding/bsptree.h"
3838

3939
#include <vector>
4040
#include <list>

source/core/support/bsptree.h renamed to source/core/bounding/bsptree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//******************************************************************************
22
///
3-
/// @file core/support/bsptree.h
3+
/// @file core/bounding/bsptree.h
44
///
55
/// @todo What's in here?
66
///

source/core/render/trace.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040

4141
#include <boost/bind.hpp>
4242

43+
#include "core/bounding/bsptree.h"
4344
#include "core/lighting/lightsource.h"
4445
#include "core/lighting/radiosity.h"
4546
#include "core/lighting/subsurface.h"
@@ -57,7 +58,6 @@
5758
#include "core/scene/tracethreaddata.h"
5859
#include "core/shape/box.h"
5960
#include "core/shape/csg.h"
60-
#include "core/support/bsptree.h"
6161
#include "core/support/imageutil.h"
6262

6363
// this must be the last file included

0 commit comments

Comments
 (0)