OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
OgreMovablePlane.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 */
28 #ifndef __MovablePlane_H__
29 #define __MovablePlane_H__
30 
31 #include "OgrePrerequisites.h"
32 
33 #include "OgrePlane.h"
34 #include "OgreMovableObject.h"
35 #include "OgreHeaderPrefix.h"
36 
37 namespace Ogre {
38 
39 
55  {
56  protected:
61  mutable bool mDirty;
63  public:
64 
65  MovablePlane( IdType id, ObjectMemoryManager *objectMemoryManager );
66  MovablePlane ( IdType id, ObjectMemoryManager *objectMemoryManager, const Plane& rhs );
68  MovablePlane ( IdType id, ObjectMemoryManager *objectMemoryManager,
69  const Vector3& rkNormal, Real fConstant );
70  MovablePlane ( IdType id, ObjectMemoryManager *objectMemoryManager,
71  const Vector3& rkNormal, const Vector3& rkPoint );
72  MovablePlane ( IdType id, ObjectMemoryManager *objectMemoryManager,
73  const Vector3& rkPoint0, const Vector3& rkPoint1, const Vector3& rkPoint2 );
76  void _notifyCurrentCamera(Camera*) { /* don't care */ }
78  const AxisAlignedBox& getBoundingBox(void) const { return mNullBB; }
80  void _updateRenderQueue(RenderQueue*, Camera *camera, const Camera *lodCamera) { /* do nothing */}
82  const String& getMovableType(void) const;
84  const Plane& _getDerivedPlane(void) const;
87  bool debugRenderables = false)
88  {
89  /* do nothing */
90  (void)visitor;
91  (void)debugRenderables;
92  }
93 
94  };
97 }
98 
99 #include "OgreHeaderSuffix.h"
100 
101 #endif
A viewpoint from which the scene will be rendered.
Definition: OgreCamera.h:82
float Real
Software floating point type.
#define _OgreExport
Definition: OgrePlatform.h:255
Defines a plane in 3D space.
Definition: OgrePlane.h:61
void visitRenderables(Renderable::Visitor *visitor, bool debugRenderables=false)
Method to allow a caller to abstractly iterate over the Renderable instances that this MovableObject ...
static String msMovableType
A 3D box aligned with the x/y/z axes.
AxisAlignedBox mNullBB
Wrap-around class that contains multiple ArrayMemoryManager, one per render queue.
Abstract class defining a movable object in a scene.
Implementation of a Quaternion, i.e.
void _notifyCurrentCamera(Camera *)
Overridden from MovableObject.
void _updateRenderQueue(RenderQueue *, Camera *camera, const Camera *lodCamera)
Overridden from MovableObject.
Ogre::uint32 IdType
Big projects with lots, lots of units for very long periods of time (MMORPGs?) may want to define thi...
Definition: OgreId.h:36
Visitor object that can be used to iterate over a collection of Renderable instances abstractly...
Definition of a Plane that may be attached to a node, and the derived details of it retrieved simply...
Standard 3-dimensional vector.
Definition: OgreVector3.h:50
Class to manage the scene object rendering queue.
_StringBase String
Definition: OgreCommon.h:53
const AxisAlignedBox & getBoundingBox(void) const
Overridden from MovableObject.