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

PlaneConstraint Class Reference

#include <Constraint.h>

Inheritance diagram for PlaneConstraint:

Constraint gutz::Counted List of all members.

Detailed Description

constrain to plane, makes sure moves stay on the plane and below the mouse

Definition at line 53 of file Constraint.h.

Public Member Functions

 PlaneConstraint (const gutz::planef &pl)
virtual ~PlaneConstraint ()
virtual gutz::vec3f getMoveBy (gutz::vec3f pos, const gutz::MouseMoveEvent &mme)
void setPlane (const gutz::planef &pl)
gutz::planef getPlane () const
virtual gutz::vec3f getMoveBy (gutz::vec3f pos, const gutz::MouseMoveEvent &mme) const
 getMoveBy, returs space delta, takes the current space position (not the pick pos, but the point that needs to be constrained), and the move event.


Protected Member Functions

virtual void _incCount ()
 gutz::Counted interface, increment reference count by one.

virtual void _decCount ()
 gutz::Counted interface, decrement reference count by one.

virtual int _getCount () const
 gutz::Counted interface, get the current reference count.


Protected Attributes

gutz::planef _plane

Friends

class SmartPtr
class SmartPtrRef


Constructor & Destructor Documentation

PlaneConstraint::PlaneConstraint const gutz::planef pl  )  [inline]
 

Definition at line 55 of file Constraint.h.

References _plane.

virtual PlaneConstraint::~PlaneConstraint  )  [inline, virtual]
 

Definition at line 58 of file Constraint.h.


Member Function Documentation

virtual void gutz::Counted::_decCount  )  [inline, protected, virtual, inherited]
 

gutz::Counted interface, decrement reference count by one.

Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr. Sometimes you need to call this though, see the documentation for gutz::SmartPtr

Definition at line 54 of file smartptr.h.

Referenced by TFImage::clear(), NrroImage::fBlendOverRGBA(), and Nrro::updateMinMax().

virtual int gutz::Counted::_getCount  )  const [inline, protected, virtual, inherited]
 

gutz::Counted interface, get the current reference count.

Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr.

Definition at line 58 of file smartptr.h.

virtual void gutz::Counted::_incCount  )  [inline, protected, virtual, inherited]
 

gutz::Counted interface, increment reference count by one.

Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr. Sometimes you need to call this though, see the documentation for gutz::SmartPtr

Definition at line 48 of file smartptr.h.

Referenced by TFImage::clear(), NrroImage::fBlendOverRGBA(), and Nrro::updateMinMax().

virtual gutz::vec3f Constraint::getMoveBy gutz::vec3f  pos,
const gutz::MouseMoveEvent mme
const [inline, virtual, inherited]
 

getMoveBy, returs space delta, takes the current space position (not the pick pos, but the point that needs to be constrained), and the move event.

Definition at line 39 of file Constraint.h.

References gutz::MouseMoveEvent::getWorldDel().

virtual gutz::vec3f PlaneConstraint::getMoveBy gutz::vec3f  pos,
const gutz::MouseMoveEvent mme
[inline, virtual]
 

Definition at line 60 of file Constraint.h.

References gutz::MouseMoveEvent::getWorldDel().

gutz::planef PlaneConstraint::getPlane  )  const [inline]
 

Definition at line 64 of file Constraint.h.

References _plane.

void PlaneConstraint::setPlane const gutz::planef pl  )  [inline]
 

Definition at line 63 of file Constraint.h.

References _plane.


Friends And Related Function Documentation

friend class SmartPtr [friend, inherited]
 

Definition at line 40 of file smartptr.h.

Referenced by Nrro::NrroIter< T >::NrroIter().

friend class SmartPtrRef [friend, inherited]
 

Definition at line 41 of file smartptr.h.


Member Data Documentation

gutz::planef PlaneConstraint::_plane [protected]
 

Definition at line 67 of file Constraint.h.

Referenced by getPlane(), PlaneConstraint(), and setPlane().


The documentation for this class was generated from the following file:
Send questions, comments, and bug reports to:
jmk