TuttleOFX  1
tuttle::plugin::interact::InteractObject Class Reference

A base class for all object to use in interact or overlay. All sub classes needs to implement virtual functions from OFX::InteractI. More...

#include <InteractObject.hpp>

Inheritance diagram for tuttle::plugin::interact::InteractObject:

Public Member Functions

 InteractObject ()
virtual ~InteractObject ()=0
virtual bool draw (const OFX::DrawArgs &args) const
 the function called to draw in the interact
virtual MotionType intersect (const OFX::PenArgs &args)
virtual bool isIn (const OfxRectD &)
virtual Point2 getPosition () const
virtual void setPosition (const Point2 &)
virtual void setPositionX (const Scalar x)
virtual void setPositionY (const Scalar y)
virtual void translate (const Point2 &previous, const Point2 &vec)
virtual void rotate (const Point2 &previous, const Point2 &center, const Point2 &from, const Point2 &vec)
virtual void scale (const Point2 &previous, const Point2 &center, const Point2 &factor)
virtual void beginMove (const Point2 &penPosition)
virtual void endMove (const Point2 &penPosition)
bool getSelected () const
void setSelected (const bool s)

Private Attributes

bool _selected

Detailed Description

A base class for all object to use in interact or overlay. All sub classes needs to implement virtual functions from OFX::InteractI.

Definition at line 21 of file InteractObject.hpp.


Constructor & Destructor Documentation

tuttle::plugin::interact::InteractObject::InteractObject ( )

Definition at line 7 of file InteractObject.cpp.

tuttle::plugin::interact::InteractObject::~InteractObject ( ) [pure virtual]

Definition at line 11 of file InteractObject.cpp.


Member Function Documentation

virtual void tuttle::plugin::interact::InteractObject::beginMove ( const Point2 penPosition) [inline, virtual]

Reimplemented in tuttle::plugin::interact::SelectionManipulator.

Definition at line 63 of file InteractObject.hpp.

virtual bool tuttle::plugin::interact::InteractObject::draw ( const OFX::DrawArgs &  args) const [inline, virtual]
virtual void tuttle::plugin::interact::InteractObject::endMove ( const Point2 penPosition) [inline, virtual]

Reimplemented in tuttle::plugin::interact::SelectionManipulator.

Definition at line 64 of file InteractObject.hpp.

virtual Point2 tuttle::plugin::interact::InteractObject::getPosition ( ) const [inline, virtual]
bool tuttle::plugin::interact::InteractObject::getSelected ( ) const [inline]
virtual bool tuttle::plugin::interact::InteractObject::isIn ( const OfxRectD &  ) [inline, virtual]
virtual void tuttle::plugin::interact::InteractObject::rotate ( const Point2 previous,
const Point2 center,
const Point2 from,
const Point2 vec 
) [inline, virtual]

Definition at line 48 of file InteractObject.hpp.

virtual void tuttle::plugin::interact::InteractObject::scale ( const Point2 previous,
const Point2 center,
const Point2 factor 
) [inline, virtual]

Definition at line 59 of file InteractObject.hpp.

virtual void tuttle::plugin::interact::InteractObject::setPosition ( const Point2 ) [inline, virtual]
virtual void tuttle::plugin::interact::InteractObject::setPositionX ( const Scalar  x) [inline, virtual]
virtual void tuttle::plugin::interact::InteractObject::setPositionY ( const Scalar  y) [inline, virtual]
void tuttle::plugin::interact::InteractObject::setSelected ( const bool  s) [inline]

Definition at line 67 of file InteractObject.hpp.

References _selected.

virtual void tuttle::plugin::interact::InteractObject::translate ( const Point2 previous,
const Point2 vec 
) [inline, virtual]

Reimplemented in tuttle::plugin::interact::ParamTangent< TFrame, coord >.

Definition at line 44 of file InteractObject.hpp.

References setPosition().

Here is the call graph for this function:


Field Documentation


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