Camera control.
More...
#include <camera.hpp>
MWRender::Camera::Camera |
( |
osg::Camera * |
camera | ) |
|
MWRender::Camera::~Camera |
( |
| ) |
|
void MWRender::Camera::allowVanityMode |
( |
bool |
allow | ) |
|
float MWRender::Camera::getCameraDistance |
( |
| ) |
const |
osg::Vec3d MWRender::Camera::getFocalPoint |
( |
| ) |
|
float MWRender::Camera::getPitch |
( |
| ) |
|
void MWRender::Camera::getPosition |
( |
osg::Vec3f & |
focal, |
|
|
osg::Vec3f & |
camera |
|
) |
| |
Stores focal and camera world positions in passed arguments.
float MWRender::Camera::getYaw |
( |
| ) |
|
bool MWRender::Camera::isFirstPerson |
( |
| ) |
const |
|
inline |
bool MWRender::Camera::isNearest |
( |
| ) |
|
bool MWRender::Camera::isVanityOrPreviewModeEnabled |
( |
| ) |
|
void MWRender::Camera::processViewChange |
( |
| ) |
|
void MWRender::Camera::reset |
( |
| ) |
|
void MWRender::Camera::rotateCamera |
( |
float |
pitch, |
|
|
float |
yaw, |
|
|
bool |
adjust |
|
) |
| |
Set where the camera is looking at. Uses Morrowind (euler) angles
- Parameters
-
rot | Rotation angles in radians |
void MWRender::Camera::setCameraDistance |
( |
float |
dist, |
|
|
bool |
adjust = false , |
|
|
bool |
override = true |
|
) |
| |
Set camera distance for current mode. Don't work on 1st person view.
- Parameters
-
adjust | Indicates should distance be adjusted or set. |
override | If true new distance will be used as default. If false, default distance can be restored with setCameraDistance(). |
void MWRender::Camera::setCameraDistance |
( |
| ) |
|
Restore default camera distance for current mode.
void MWRender::Camera::setPitch |
( |
float |
angle | ) |
|
void MWRender::Camera::setSneakOffset |
( |
float |
offset | ) |
|
Lowers the camera for sneak.
void MWRender::Camera::setYaw |
( |
float |
angle | ) |
|
void MWRender::Camera::togglePlayerLooking |
( |
bool |
enable | ) |
|
void MWRender::Camera::togglePreviewMode |
( |
bool |
enable | ) |
|
- Note
- this may be ignored if an important animation is currently playing
bool MWRender::Camera::toggleVanityMode |
( |
bool |
enable | ) |
|
void MWRender::Camera::toggleViewMode |
( |
bool |
force = false | ) |
|
- Parameters
-
Force | view mode switch, even if currently not allowed by the animation. |
void MWRender::Camera::update |
( |
float |
duration, |
|
|
bool |
paused = false |
|
) |
| |
void MWRender::Camera::updateCamera |
( |
osg::Camera * |
cam | ) |
|
Update the view matrix of cam.
bool MWRender::Camera::allowed |
bool MWRender::Camera::enabled |
osg::ref_ptr<osg::Camera> MWRender::Camera::mCamera |
|
private |
float MWRender::Camera::mCameraDistance |
|
private |
bool MWRender::Camera::mFirstPersonView |
|
private |
bool MWRender::Camera::mFreeLook |
|
private |
float MWRender::Camera::mFurthest |
|
private |
float MWRender::Camera::mHeight |
|
private |
float MWRender::Camera::mHeightScale |
|
private |
bool MWRender::Camera::mIsNearest |
|
private |
float MWRender::Camera::mMaxCameraDistance |
|
private |
float MWRender::Camera::mNearest |
|
private |
CamData MWRender::Camera::mPreviewCam |
|
private |
bool MWRender::Camera::mPreviewMode |
|
private |
osg::ref_ptr<const osg::Node> MWRender::Camera::mTrackingNode |
|
private |
osg::ref_ptr<osg::NodeCallback> MWRender::Camera::mUpdateCallback |
|
private |
struct { ... } MWRender::Camera::mVanity |
bool MWRender::Camera::mVanityToggleQueued |
|
private |
bool MWRender::Camera::mVanityToggleQueuedValue |
|
private |
bool MWRender::Camera::mViewModeToggleQueued |
|
private |
The documentation for this class was generated from the following files:
- /home/travis/build/OpenMW/openmw/apps/openmw/mwrender/camera.hpp
- /home/travis/build/OpenMW/openmw/apps/openmw/mwrender/camera.cpp