Cafu Engine
ClipWorld_private.hpp
Go to the documentation of this file.
1 /*
2 Cafu Engine, http://www.cafu.de/
3 Copyright (c) Carsten Fuchs and other contributors.
4 This project is licensed under the terms of the MIT license.
5 */
6 
7 #ifndef CAFU_CLIPSYS_CLIPWORLD_PRIVATE_HPP_INCLUDED
8 #define CAFU_CLIPSYS_CLIPWORLD_PRIVATE_HPP_INCLUDED
9 
10 /// @file
11 /// This header contains declarations of classes that are privately used by the ClipWorldT and ClipModelT classes.
12 /// (The classes declared here are also shared by the ClipWorldT and ClipModelT classes, because they are friends of each other.)
13 
14 
15 namespace cf
16 {
17  namespace ClipSys
18  {
19  class ClipLinkT
20  {
21  public:
22 
23  ClipModelT* ClipModel; ///< This clip model is...
24  ClipSectorT* ClipSector; ///< ...in this clip sector (the model can be in more sectors and the sector can have more models).
25  ClipLinkT* PrevModelInSector; ///< The previous model that is in the same sector.
26  ClipLinkT* NextModelInSector; ///< The next model that is in the same sector.
27  ClipLinkT* NextSectorOfModel; ///< The next sector of the same model.
28  };
29 
30 
32  {
33  public:
34 
35  /// The constructor.
37 
38  unsigned long WorldContents; ///< The combined (or'ed) contents of the world model for this sector.
39  unsigned long ModelContents; ///< The combined (or'ed) contents of the models in ListOfModels.
40  ClipLinkT* ListOfModels; ///< The list of all clip models (except for the world model) that are in this sector. The world model is not in the list, because it implicitly and always is in every sector anyway.
41  };
42  }
43 }
44 
45 #endif
unsigned long WorldContents
The combined (or'ed) contents of the world model for this sector.
Definition: ClipWorld_private.hpp:38
ClipLinkT * NextSectorOfModel
The next sector of the same model.
Definition: ClipWorld_private.hpp:27
A clip model represents an object in the world against which clipping queries can be performed...
Definition: ClipModel.hpp:31
ClipModelT * ClipModel
This clip model is...
Definition: ClipWorld_private.hpp:23
Definition: ClipWorld_private.hpp:31
ClipLinkT * PrevModelInSector
The previous model that is in the same sector.
Definition: ClipWorld_private.hpp:25
ClipSectorT()
The constructor.
Definition: ClipWorld_private.hpp:36
ClipSectorT * ClipSector
...in this clip sector (the model can be in more sectors and the sector can have more models)...
Definition: ClipWorld_private.hpp:24
ClipLinkT * ListOfModels
The list of all clip models (except for the world model) that are in this sector. The world model is ...
Definition: ClipWorld_private.hpp:40
unsigned long ModelContents
The combined (or'ed) contents of the models in ListOfModels.
Definition: ClipWorld_private.hpp:39
ClipLinkT * NextModelInSector
The next model that is in the same sector.
Definition: ClipWorld_private.hpp:26
Definition: ClipWorld_private.hpp:19