OGRE  1.9.0
OgreMovablePlane.h
Go to the documentation of this file.
1/*
2-----------------------------------------------------------------------------
3This source file is part of OGRE
4(Object-oriented Graphics Rendering Engine)
5For the latest info, see http://www.ogre3d.org/
6
7Copyright (c) 2000-2014 Torus Knot Software Ltd
8
9Permission is hereby granted, free of charge, to any person obtaining a copy
10of this software and associated documentation files (the "Software"), to deal
11in the Software without restriction, including without limitation the rights
12to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13copies of the Software, and to permit persons to whom the Software is
14furnished to do so, subject to the following conditions:
15
16The above copyright notice and this permission notice shall be included in
17all copies or substantial portions of the Software.
18
19THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25THE 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
37namespace Ogre {
38
39
55 {
56 protected:
61 mutable bool mDirty;
63 public:
64
65 MovablePlane(const String& name);
66 MovablePlane (const Plane& rhs);
68 MovablePlane (const Vector3& rkNormal, Real fConstant);
69 MovablePlane (const Vector3& rkNormal, const Vector3& rkPoint);
70 MovablePlane (const Vector3& rkPoint0, const Vector3& rkPoint1,
71 const Vector3& rkPoint2);
74 void _notifyCurrentCamera(Camera*) { /* don't care */ }
76 const AxisAlignedBox& getBoundingBox(void) const { return mNullBB; }
78 Real getBoundingRadius(void) const { return 0.0f; }
80 void _updateRenderQueue(RenderQueue*) { /* 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
#define _OgreExport
A 3D box aligned with the x/y/z axes.
A viewpoint from which the scene will be rendered.
Definition OgreCamera.h:87
Abstract class defining a movable object in a scene.
Definition of a Plane that may be attached to a node, and the derived details of it retrieved simply.
MovablePlane(const Plane &rhs)
MovablePlane(const Vector3 &rkNormal, Real fConstant)
Construct a plane through a normal, and a distance to move the plane along the normal.
const AxisAlignedBox & getBoundingBox(void) const
Overridden from MovableObject.
const String & getMovableType(void) const
Overridden from MovableObject.
void _updateRenderQueue(RenderQueue *)
Overridden from MovableObject.
void _notifyCurrentCamera(Camera *)
Overridden from MovableObject.
MovablePlane(const Vector3 &rkPoint0, const Vector3 &rkPoint1, const Vector3 &rkPoint2)
void visitRenderables(Renderable::Visitor *visitor, bool debugRenderables=false)
Method to allow a caller to abstractly iterate over the Renderable instances that this MovableObject ...
Real getBoundingRadius(void) const
Overridden from MovableObject.
MovablePlane(const String &name)
AxisAlignedBox mNullBB
const Plane & _getDerivedPlane(void) const
Get the derived plane as transformed by its parent node.
MovablePlane(const Vector3 &rkNormal, const Vector3 &rkPoint)
static String msMovableType
Defines a plane in 3D space.
Definition OgrePlane.h:62
Implementation of a Quaternion, i.e.
Class to manage the scene object rendering queue.
Visitor object that can be used to iterate over a collection of Renderable instances abstractly.
Standard 3-dimensional vector.
Definition OgreVector3.h:52
float Real
Software floating point type.
_StringBase String