OpenSceneGraph
Public Member Functions | Protected Member Functions | List of all members
osgManipulator::Constraint Class Reference
Inheritance diagram for osgManipulator::Constraint:
osg::Referenced osgManipulator::GridConstraint

Public Member Functions

virtual bool constrain (MotionCommand &) 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
 
virtual bool constrain (Rotate3DCommand &command) const
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 Deprecated, Referenced is now always uses thread safe ref/unref, use default Referenced() constructor instead. More...
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
virtual void setThreadSafeRefUnref (bool)
 Deprecated, Referenced is always theadsafe so there method now has no effect and does not need to be called. More...
 
bool getThreadSafeRefUnref () const
 Get whether a mutex is used to ensure ref() and unref() are thread safe. More...
 
OpenThreads::MutexgetRefMutex () const
 Get the mutex used to ensure thread safety of ref()/unref(). More...
 
int ref () const
 Increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
int unref () const
 Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. More...
 
int unref_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. More...
 
int referenceCount () const
 Return the number of pointers currently referencing this object. More...
 
ObserverSetgetObserverSet () const
 Get the ObserverSet if one is attached, otherwise return NULL. More...
 
ObserverSetgetOrCreateObserverSet () const
 Get the ObserverSet if one is attached, otherwise create an ObserverSet, attach it, then return this newly created ObserverSet. More...
 
void addObserver (Observer *observer) const
 Add a Observer that is observing this object, notify the Observer when this object gets deleted. More...
 
void removeObserver (Observer *observer) const
 Remove Observer that is observing this object. More...
 

Protected Member Functions

 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
 

Additional Inherited Members

- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 Get the optional global Referenced mutex, this can be shared between all osg::Referenced. More...
 
static void setDeleteHandler (DeleteHandler *handler)
 Set a DeleteHandler to which deletion of all referenced counted objects will be delegated. More...
 
static DeleteHandlergetDeleteHandler ()
 Get a DeleteHandler. More...
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Constructor & Destructor Documentation

§ Constraint() [1/2]

osgManipulator::Constraint::Constraint ( )
inlineprotected

§ Constraint() [2/2]

osgManipulator::Constraint::Constraint ( osg::Node refNode)
inlineprotected

§ ~Constraint()

virtual osgManipulator::Constraint::~Constraint ( )
inlineprotectedvirtual

Member Function Documentation

§ computeLocalToWorldAndWorldToLocal()

void osgManipulator::Constraint::computeLocalToWorldAndWorldToLocal ( ) const
protected

§ constrain() [1/7]

virtual bool osgManipulator::Constraint::constrain ( MotionCommand ) const
inlinevirtual

§ constrain() [2/7]

virtual bool osgManipulator::Constraint::constrain ( TranslateInLineCommand command) const
inlinevirtual

Reimplemented in osgManipulator::GridConstraint.

References constrain().

Referenced by constrain().

§ constrain() [3/7]

virtual bool osgManipulator::Constraint::constrain ( TranslateInPlaneCommand command) const
inlinevirtual

Reimplemented in osgManipulator::GridConstraint.

References constrain().

Referenced by constrain().

§ constrain() [4/7]

virtual bool osgManipulator::Constraint::constrain ( Scale1DCommand command) const
inlinevirtual

Reimplemented in osgManipulator::GridConstraint.

References constrain().

Referenced by constrain().

§ constrain() [5/7]

virtual bool osgManipulator::Constraint::constrain ( Scale2DCommand command) const
inlinevirtual

Reimplemented in osgManipulator::GridConstraint.

References constrain().

Referenced by constrain().

§ constrain() [6/7]

virtual bool osgManipulator::Constraint::constrain ( ScaleUniformCommand command) const
inlinevirtual

Reimplemented in osgManipulator::GridConstraint.

References constrain().

Referenced by constrain().

§ constrain() [7/7]

virtual bool osgManipulator::Constraint::constrain ( Rotate3DCommand command) const
inlinevirtual

References constrain().

Referenced by constrain().

§ getLocalToWorld()

const osg::Matrix& osgManipulator::Constraint::getLocalToWorld ( ) const
inlineprotected

§ getReferenceNode() [1/2]

osg::Node& osgManipulator::Constraint::getReferenceNode ( )
inlineprotected

§ getReferenceNode() [2/2]

const osg::Node& osgManipulator::Constraint::getReferenceNode ( ) const
inlineprotected

§ getWorldToLocal()

const osg::Matrix& osgManipulator::Constraint::getWorldToLocal ( ) const
inlineprotected

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