#include <OgreRefAppCollideCamera.h>
Public Member Functions | |
Camera * | getRealCamera (void) |
void | disableOdeBody () |
void | _notifyCollided (SceneQuery::WorldFragment *wf, const CollisionInfo &info) |
void | _notifyCollided (ApplicationObject *otherObj, const CollisionInfo &info) |
void | _updateFromDynamics () |
Updates the position of this game object from the simulation. | |
void | setOrientation (const Quaternion &orientation) |
const Quaternion & | getOrientation (void) |
void | translate (const Vector3 &d) |
void | roll (const Radian &angle) |
void | pitch (const Radian &angle) |
void | yaw (const Radian &angle) |
void | rotate (const Vector3 &axis, const Radian &angle) |
void | rotate (const Quaternion &q) |
void | setProjectionType (ProjectionType pt) |
ProjectionType | getProjectionType (void) const |
void | setPolygonMode (PolygonMode sd) |
PolygonMode | getPolygonMode (void) const |
void | setDirection (Real x, Real y, Real z) |
void | setDirection (const Vector3 &vec) |
void | lookAt (const Vector3 &targetPoint) |
void | lookAt (Real x, Real y, Real z) |
void | setFixedYawAxis (bool useFixed, const Vector3 &fixedAxis=Vector3::UNIT_Y) |
void | setFOVy (const Radian &fovy) |
const Radian & | getFOVy (void) const |
void | setNearClipDistance (Real nearDist) |
Real | getNearClipDistance (void) const |
void | setFarClipDistance (Real farDist) |
Real | getFarClipDistance (void) const |
void | setAspectRatio (Real ratio) |
Real | getAspectRatio (void) const |
const Plane & | getFrustumPlane (FrustumPlane plane) |
bool | isVisible (const AxisAlignedBox &bound, FrustumPlane *culledBy=0) |
bool | isVisible (const Sphere &bound, FrustumPlane *culledBy=0) |
bool | isVisible (const Vector3 &vert, FrustumPlane *culledBy=0) |
Protected Member Functions | |
void | setUp (const String &name) |
Set up. | |
void | nearDistChanged (void) |
Triggers recacl of collison bounds. | |
Protected Attributes | |
Camera * | mCamera |
Contained camera. |
Camera* OgreRefApp::CollideCamera::getRealCamera | ( | void | ) | [inline] |
Gets the internal Camera object.
void OgreRefApp::CollideCamera::disableOdeBody | ( | ) |
Facilitator camera does not have a body
void OgreRefApp::CollideCamera::_notifyCollided | ( | SceneQuery::WorldFragment * | wf, | |
const CollisionInfo & | info | |||
) | [virtual] |
This method is called automatically if testCollide indicates a real collision.
Reimplemented from OgreRefApp::ApplicationObject.
void OgreRefApp::CollideCamera::_notifyCollided | ( | ApplicationObject * | otherObj, | |
const CollisionInfo & | info | |||
) | [virtual] |
This method is called automatically if testCollide indicates a real collision.
Reimplemented from OgreRefApp::ApplicationObject.
void OgreRefApp::CollideCamera::setOrientation | ( | const Quaternion & | orientation | ) | [virtual] |
Sets the orientation of this object.
Reimplemented from OgreRefApp::ApplicationObject.
const Quaternion & OgreRefApp::CollideCamera::getOrientation | ( | void | ) | [virtual] |
Gets the current orientation of this object.
Reimplemented from OgreRefApp::ApplicationObject.
void OgreRefApp::CollideCamera::translate | ( | const Vector3 & | d | ) | [virtual] |
Moves the object along it's local axes.
d | Vector with x,y,z values representing the translation. |
Reimplemented from OgreRefApp::ApplicationObject.
void OgreRefApp::CollideCamera::roll | ( | const Radian & | angle | ) | [virtual] |
Rotate the object around the local Z-axis.
Reimplemented from OgreRefApp::ApplicationObject.
void OgreRefApp::CollideCamera::pitch | ( | const Radian & | angle | ) | [virtual] |
Rotate the object around the local X-axis.
Reimplemented from OgreRefApp::ApplicationObject.
void OgreRefApp::CollideCamera::yaw | ( | const Radian & | angle | ) | [virtual] |
Rotate the object around the local Y-axis.
Reimplemented from OgreRefApp::ApplicationObject.
void OgreRefApp::CollideCamera::rotate | ( | const Vector3 & | axis, | |
const Radian & | angle | |||
) | [virtual] |
Rotate the object around an arbitrary axis.
Reimplemented from OgreRefApp::ApplicationObject.
void OgreRefApp::CollideCamera::rotate | ( | const Quaternion & | q | ) | [virtual] |
Rotate the object around an aritrary axis using a Quarternion.
Reimplemented from OgreRefApp::ApplicationObject.
void OgreRefApp::CollideCamera::setProjectionType | ( | ProjectionType | pt | ) |
Sets the type of projection to use (orthographic or perspective). Default is perspective.
ProjectionType OgreRefApp::CollideCamera::getProjectionType | ( | void | ) | const |
Retrieves info on the type of projection used (orthographic or perspective).
void OgreRefApp::CollideCamera::setPolygonMode | ( | PolygonMode | sd | ) |
Sets the level of rendering detail required from this camera.
PolygonMode OgreRefApp::CollideCamera::getPolygonMode | ( | void | ) | const |
Retrieves the level of detail that the camera will render.
void OgreRefApp::CollideCamera::setDirection | ( | Real | x, | |
Real | y, | |||
Real | z | |||
) |
Sets the camera's direction vector.
void OgreRefApp::CollideCamera::setDirection | ( | const Vector3 & | vec | ) |
Sets the camera's direction vector.
void OgreRefApp::CollideCamera::lookAt | ( | const Vector3 & | targetPoint | ) |
Points the camera at a location in worldspace.
targetPoint | A vector specifying the look at point. |
void OgreRefApp::CollideCamera::lookAt | ( | Real | x, | |
Real | y, | |||
Real | z | |||
) |
Points the camera at a location in worldspace.
x | ||
y | ||
z | Co-ordinates of the point to look at. |
void OgreRefApp::CollideCamera::setFixedYawAxis | ( | bool | useFixed, | |
const Vector3 & | fixedAxis = Vector3::UNIT_Y | |||
) |
Tells the camera whether to yaw around it's own local Y axis or a fixed axis of choice.
useFixed | If true, the axis passed in the second parameter will always be the yaw axis no matter what the camera orientation. If false, the camera returns to it's default behaviour. | |
fixedAxis | The axis to use if the first parameter is true. |
void OgreRefApp::CollideCamera::setFOVy | ( | const Radian & | fovy | ) |
Sets the Y-dimension Field Of View (FOV) of the camera.
const Radian & OgreRefApp::CollideCamera::getFOVy | ( | void | ) | const |
Retrieves the cameras Y-dimension Field Of View (FOV).
void OgreRefApp::CollideCamera::setNearClipDistance | ( | Real | nearDist | ) |
Sets the position of the near clipping plane.
near | The distance to the near clipping plane from the camera in world coordinates. |
Real OgreRefApp::CollideCamera::getNearClipDistance | ( | void | ) | const |
Sets the position of the near clipping plane.
void OgreRefApp::CollideCamera::setFarClipDistance | ( | Real | farDist | ) |
Sets the distance to the far clipping plane.
far | The distance to the far clipping plane from the camera in world coordinates. |
Real OgreRefApp::CollideCamera::getFarClipDistance | ( | void | ) | const |
Retrieves the distance from the camera to the far clipping plane.
void OgreRefApp::CollideCamera::setAspectRatio | ( | Real | ratio | ) |
Sets the aspect ratio for the camera viewport.
Real OgreRefApp::CollideCamera::getAspectRatio | ( | void | ) | const |
Retreives the current aspect ratio.
const Plane & OgreRefApp::CollideCamera::getFrustumPlane | ( | FrustumPlane | plane | ) |
Retrieves a specified plane of the frustum.
bool OgreRefApp::CollideCamera::isVisible | ( | const AxisAlignedBox & | bound, | |
FrustumPlane * | culledBy = 0 | |||
) |
Tests whether the given container is visible in the Frustum.
bound | Bounding box to be checked | |
culledBy | Optional pointer to an int which will be filled by the plane number which culled the box if the result was false; |
bool OgreRefApp::CollideCamera::isVisible | ( | const Sphere & | bound, | |
FrustumPlane * | culledBy = 0 | |||
) |
Tests whether the given container is visible in the Frustum.
bound | Bounding sphere to be checked | |
culledBy | Optional pointer to an int which will be filled by the plane number which culled the box if the result was false; |
bool OgreRefApp::CollideCamera::isVisible | ( | const Vector3 & | vert, | |
FrustumPlane * | culledBy = 0 | |||
) |
Tests whether the given vertex is visible in the Frustum.
vert | Vertex to be checked | |
culledBy | Optional pointer to an int which will be filled by the plane number which culled the box if the result was false; |