OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
OgrePCZCamera.h
Go to the documentation of this file.
1 /*
2 -----------------------------------------------------------------------------
3 This source file is part of OGRE
4 (Object-oriented Graphics Rendering Engine)
5 For the latest info, see http://www.ogre3d.org/
6 
7 Copyright (c) 2000-2014 Torus Knot Software Ltd
8 
9 Permission is hereby granted, free of charge, to any person obtaining a copy
10 of this software and associated documentation files (the "Software"), to deal
11 in the Software without restriction, including without limitation the rights
12 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 copies of the Software, and to permit persons to whom the Software is
14 furnished to do so, subject to the following conditions:
15 
16 The above copyright notice and this permission notice shall be included in
17 all copies or substantial portions of the Software.
18 
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25 THE SOFTWARE.
26 -----------------------------------------------------------------------------
27 PCZCamera.h - description
28 -----------------------------------------------------------------------------
29 begin : Wed Feb 21 2007
30 author : Eric Cha
31 email : ericc@xenopi.com
32 Code Style Update :
33 -----------------------------------------------------------------------------
34 */
35 
36 #ifndef PCZCAMERA_H
37 #define PCZCAMERA_H
38 
39 #include "OgreCamera.h"
40 #include "OgrePCZFrustum.h"
41 #include "OgrePCZPrerequisites.h"
42 
43 namespace Ogre
44 {
45  #define MAX_EXTRA_CULLING_PLANES 40
46 
47  class PCZone;
48 
53  {
54  public:
57  {
60  FULL
61  };
62 
63  /* Standard constructor */
64  PCZCamera( const String& name, SceneManager* sm );
65  /* Standard destructor */
66  ~PCZCamera();
67 
72  virtual const AxisAlignedBox& getBoundingBox(void) const;
73 
74  /* Overridden isVisible function for aabb */
75  virtual bool isVisible( const AxisAlignedBox &bound, FrustumPlane *culledBy=0) const;
76 
77  /* isVisible() function for portals */
78  bool isVisible(PortalBase* portal, FrustumPlane* culledBy = 0) const;
79 
82  bool isVisibile( const AxisAlignedBox &bound );
83 
86  PCZCamera::Visibility getVisibility( const AxisAlignedBox &bound );
87 
89  void setProjectionType(ProjectionType pt);
90 
91  /* Update function (currently used for making sure the origin stuff for the
92  extra culling frustum is up to date */
93  void update(void);
94 
97  int addPortalCullingPlanes(PortalBase* portal);
99  void removePortalCullingPlanes(PortalBase* portal);
101  void removeAllExtraCullingPlanes(void);
102  protected:
105  };
106 
107 }
108 
109 #endif
A viewpoint from which the scene will be rendered.
Definition: OgreCamera.h:82
Specialized frustum shaped culling volume that has culling planes created from portals.
Manages the organisation and rendering of a 'scene' i.e.
A 3D box aligned with the x/y/z axes.
PortalBase - Base class to Portal and AntiPortal classes.
ProjectionType
Specifies perspective (realistic) or orthographic (architectural) projection.
Definition: OgreFrustum.h:62
AxisAlignedBox mBox
#define _OgrePCZPluginExport
PCZFrustum mExtraCullingFrustum
FrustumPlane
Worldspace clipping planes.
Definition: OgreFrustum.h:70
_StringBase String
Definition: OgreCommon.h:53
Visibility
Visibility types.
Definition: OgrePCZCamera.h:56
Specialized viewpoint from which an PCZone Scene can be rendered.
Definition: OgrePCZCamera.h:52