arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

WidgetManip.h File Reference

#include <mathGutz.h>
#include <iostream>

Go to the source code of this file.

Functions

gutz::mat3f ballPlaneRot (const gutz::vec3f &center, const float rad, const gutz::CameraSP cam, const gutz::vec3f &last, const gutz::vec3f &curr)
 current mouse point (world space)

gutz::mat4f ballPlane (const gutz::MouseMoveEvent &mme, const gutz::vec3f &center, const float rad)
 a convenience version of ballPlaneRot that takes the event and the objects center & rad, calls ballPlaneRot and builds a 4x4 matrix from the result.


Function Documentation

gutz::mat4f ballPlane const gutz::MouseMoveEvent mme,
const gutz::vec3f center,
const float  rad
[inline]
 

a convenience version of ballPlaneRot that takes the event and the objects center & rad, calls ballPlaneRot and builds a 4x4 matrix from the result.

Definition at line 60 of file WidgetManip.h.

References ballPlaneRot(), gutz::CameraEvent::getCamera(), gutz::MouseMoveEvent::getWorldLast(), gutz::MouseEvent::getWorldPos(), and gutz::mat4f.

gutz::mat3f ballPlaneRot const gutz::vec3f center,
const float  rad,
const gutz::CameraSP  cam,
const gutz::vec3f last,
const gutz::vec3f curr
[inline]
 

current mouse point (world space)

ray plane intersect

Parameters:
rad  center of object being rotated
cam  radius (distance from center)
last  camera for current event
curr  last mouse point (world space)

Definition at line 32 of file WidgetManip.h.

References gutz::g_min(), and x.

Referenced by ballPlane().


Send questions, comments, and bug reports to:
jmk