OpenSceneGraph  3.0.1
Public Member Functions | Protected Member Functions
osgManipulator::GridConstraint Class Reference

Constraint to snap motion commands to a sugar cube grid. More...

Inheritance diagram for osgManipulator::GridConstraint:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 GridConstraint (osg::Node &refNode, const osg::Vec3d &origin, const osg::Vec3d &spacing)
void setOrigin (const osg::Vec3d &origin)
const osg::Vec3dgetOrigin () const
void setSpacing (const osg::Vec3d &spacing)
const osg::Vec3dgetSpacing () const
virtual bool constrain (TranslateInLineCommand &command) const
virtual bool constrain (TranslateInPlaneCommand &command) const
virtual bool constrain (Scale1DCommand &command) const
virtual bool constrain (Scale2DCommand &command) const
virtual bool constrain (ScaleUniformCommand &command) const
- Public Member Functions inherited from osgManipulator::Constraint
virtual bool constrain (MotionCommand &) const
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 Referenced (bool threadSafeRefUnref)
 Referenced (const Referenced &)
Referencedoperator= (const Referenced &)
virtual void setThreadSafeRefUnref (bool threadSafe)
 Set whether to use a mutex to ensure ref() and unref() are thread safe.
bool getThreadSafeRefUnref () const
 Get whether a mutex is used to ensure ref() and unref() are thread safe.
OpenThreads::Mutex * getRefMutex () const
 Get the mutex used to ensure thread safety of ref()/unref().
int ref () const
 Increment the reference count by one, indicating that this object has another pointer which is referencing it.
int unref () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
int unref_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
int referenceCount () const
 Return the number of pointers currently referencing this object.
ObserverSetgetObserverSet () const
 Get the ObserverSet if one is attached, otherwise return NULL.
ObserverSetgetOrCreateObserverSet () const
 Get the ObserverSet if one is attached, otherwise create an ObserverSet, attach it, then return this newly created ObserverSet.
void addObserver (Observer *observer) const
 Add a Observer that is observing this object, notify the Observer when this object gets deleted.
void removeObserver (Observer *observer) const
 Remove Observer that is observing this object.

Protected Member Functions

virtual ~GridConstraint ()
- Protected Member Functions inherited from osgManipulator::Constraint
 Constraint (osg::Node &refNode)
virtual ~Constraint ()
osg::NodegetReferenceNode ()
const osg::NodegetReferenceNode () const
const osg::MatrixgetLocalToWorld () const
const osg::MatrixgetWorldToLocal () const
void computeLocalToWorldAndWorldToLocal () const
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
void deleteUsingDeleteHandler () const

Detailed Description

Constraint to snap motion commands to a sugar cube grid.


Constructor & Destructor Documentation

osgManipulator::GridConstraint::GridConstraint ( osg::Node refNode,
const osg::Vec3d origin,
const osg::Vec3d spacing 
)
virtual osgManipulator::GridConstraint::~GridConstraint ( )
inlineprotectedvirtual

Member Function Documentation

virtual bool osgManipulator::GridConstraint::constrain ( TranslateInLineCommand command) const
virtual

Reimplemented from osgManipulator::Constraint.

virtual bool osgManipulator::GridConstraint::constrain ( TranslateInPlaneCommand command) const
virtual

Reimplemented from osgManipulator::Constraint.

virtual bool osgManipulator::GridConstraint::constrain ( Scale1DCommand command) const
virtual

Reimplemented from osgManipulator::Constraint.

virtual bool osgManipulator::GridConstraint::constrain ( Scale2DCommand command) const
virtual

Reimplemented from osgManipulator::Constraint.

virtual bool osgManipulator::GridConstraint::constrain ( ScaleUniformCommand command) const
virtual

Reimplemented from osgManipulator::Constraint.

const osg::Vec3d& osgManipulator::GridConstraint::getOrigin ( ) const
inline
const osg::Vec3d& osgManipulator::GridConstraint::getSpacing ( ) const
inline
void osgManipulator::GridConstraint::setOrigin ( const osg::Vec3d origin)
inline
void osgManipulator::GridConstraint::setSpacing ( const osg::Vec3d spacing)
inline

The documentation for this class was generated from the following file:

osg logo
Generated at Fri Nov 2 2012 21:42:44 for the OpenSceneGraph by doxygen 1.8.1.1.