OgreMovablePlane.h
Go to the documentation of this file.
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2013 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-----------------------------------------------------------------------------
*/
#ifndef __MovablePlane_H__
#define __MovablePlane_H__
#include "OgrePrerequisites.h"
#include "OgrePlane.h"
#include "OgreMovableObject.h"
#include "OgreHeaderPrefix.h"
namespace Ogre {
class _OgreExport MovablePlane : public Plane, public MovableObject
{
protected:
mutable Plane mDerivedPlane;
mutable Vector3 mLastTranslate;
mutable Quaternion mLastRotate;
AxisAlignedBox mNullBB;
mutable bool mDirty;
static String msMovableType;
public:
MovablePlane(const String& name);
MovablePlane (const Plane& rhs);
MovablePlane (const Vector3& rkNormal, Real fConstant);
MovablePlane (const Vector3& rkNormal, const Vector3& rkPoint);
MovablePlane (const Vector3& rkPoint0, const Vector3& rkPoint1,
const Vector3& rkPoint2);
~MovablePlane() {}
void _notifyCurrentCamera(Camera*) { /* don't care */ }
const AxisAlignedBox& getBoundingBox(void) const { return mNullBB; }
Real getBoundingRadius(void) const { return 0.0f; }
void _updateRenderQueue(RenderQueue*) { /* do nothing */}
const String& getMovableType(void) const;
const Plane& _getDerivedPlane(void) const;
void visitRenderables(Renderable::Visitor* visitor,
bool debugRenderables = false)
{
/* do nothing */
(void)visitor;
(void)debugRenderables;
}
};
}
#include "OgreHeaderSuffix.h"
#endif
_OgreExport
#define _OgreExport
Definition: OgrePlatform.h:257
Ogre::MovableObject
Abstract class defining a movable object in a scene.
Definition: OgreMovableObject.h:60
OgreMovableObject.h
Ogre::MovablePlane::_notifyCurrentCamera
void _notifyCurrentCamera(Camera *)
Overridden from MovableObject.
Definition: OgreMovablePlane.h:74
Ogre::Quaternion
Implementation of a Quaternion, i.e.
Definition: OgreQuaternion.h:57
OgrePlane.h
Ogre::Real
float Real
Software floating point type.
Definition: OgrePrerequisites.h:70
Ogre::RenderQueue
Class to manage the scene object rendering queue.
Definition: OgreRenderQueue.h:92
Ogre::Plane
Defines a plane in 3D space.
Definition: OgrePlane.h:61
Ogre::Vector3
Standard 3-dimensional vector.
Definition: OgreVector3.h:51
OgrePrerequisites.h
Ogre::Renderable::Visitor
Visitor object that can be used to iterate over a collection of Renderable instances abstractly...
Definition: OgreRenderable.h:377
Ogre::MovablePlane::getBoundingBox
const AxisAlignedBox & getBoundingBox(void) const
Overridden from MovableObject.
Definition: OgreMovablePlane.h:76
Ogre::MovablePlane::mLastRotate
Quaternion mLastRotate
Definition: OgreMovablePlane.h:59
Ogre::MovablePlane::getBoundingRadius
Real getBoundingRadius(void) const
Overridden from MovableObject.
Definition: OgreMovablePlane.h:78
Ogre::String
_StringBase String
Definition: OgrePrerequisites.h:439
Ogre::MovablePlane::mLastTranslate
Vector3 mLastTranslate
Definition: OgreMovablePlane.h:58
Ogre::MovablePlane::msMovableType
static String msMovableType
Definition: OgreMovablePlane.h:62
Ogre::Camera
A viewpoint from which the scene will be rendered.
Definition: OgreCamera.h:86
OgreHeaderSuffix.h
Ogre::MovablePlane::mDerivedPlane
Plane mDerivedPlane
Definition: OgreMovablePlane.h:57
Ogre::MovablePlane::mDirty
bool mDirty
Definition: OgreMovablePlane.h:61
Ogre::MovablePlane::~MovablePlane
~MovablePlane()
Definition: OgreMovablePlane.h:72
Ogre
Definition: OgreAndroidLogListener.h:34
OgreHeaderPrefix.h
Ogre::MovablePlane::mNullBB
AxisAlignedBox mNullBB
Definition: OgreMovablePlane.h:60
Ogre::AxisAlignedBox
A 3D box aligned with the x/y/z axes.
Definition: OgreAxisAlignedBox.h:54
Ogre::MovablePlane
Definition of a Plane that may be attached to a node, and the derived details of it retrieved simply...
Definition: OgreMovablePlane.h:54
Ogre::MovablePlane::_updateRenderQueue
void _updateRenderQueue(RenderQueue *)
Overridden from MovableObject.
Definition: OgreMovablePlane.h:80
Ogre::MovablePlane::visitRenderables
void visitRenderables(Renderable::Visitor *visitor, bool debugRenderables=false)
Method to allow a caller to abstractly iterate over the Renderable instances that this MovableObject ...
Definition: OgreMovablePlane.h:86

Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.