Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

OFX::Interact Class Reference

#include <ofxsInteract.h>

Inheritance diagram for OFX::Interact:

OFX::OverlayInteract OFX::ParamInteract List of all members.

Detailed Description

Wraps up an OFX interact object for an Image Effect. It won't work for any other plug-in type at present (it would need to be broken into a hierarchy of classes).


Public Member Functions

 Interact (OfxInteractHandle handle)
 ctor
virtual ~Interact ()
 ctor
PropertySetgetProperties ()
int getBitDepth (void) const
 The bitdepth of each component in the openGL frame buffer.
bool hasAlpha (void) const
 Does the openGL frame buffer have an alpha.
OfxPointD getPixelScale (void) const
 Returns the size of a real screen pixel under the interact's cannonical projection.
OfxRGBColourD getBackgroundColour (void) const
 the background colour
void addParamToSlaveTo (Param *p)
 Set a param that the interact should be redrawn on if its value changes.
void removeParamToSlaveTo (Param *p)
 Remova a param that the interact should be redrawn on if its value changes.
void requestRedraw (void) const
 Request a redraw.
void swapBuffers (void) const
 Swap a buffer in the case of a double bufferred interact, this is possibly a silly one.
virtual bool draw (const DrawArgs &args)
 the function called to draw in the interact
virtual bool penMotion (const PenArgs &args)
 the function called to handle pen motion in the interact
virtual bool penDown (const PenArgs &args)
 the function called to handle pen down events in the interact
virtual bool penUp (const PenArgs &args)
 the function called to handle pen up events in the interact
virtual bool keyDown (const KeyArgs &args)
 the function called to handle key down events in the interact
virtual bool keyUp (const KeyArgs &args)
 the function called to handle key up events in the interact
virtual bool keyRepeat (const KeyArgs &args)
 the function called to handle key down repeat events in the interact
virtual void gainFocus (const FocusArgs &args)
 Called when the interact is given input focus.
virtual void loseFocus (const FocusArgs &args)
 Called when the interact is loses input focus.

Protected Attributes

OfxInteractHandle _interactHandle
 The handle for this interact.
PropertySet _interactProperties
 The property set on this interact.
std::list< Param * > _slaveParams
 List of params we are currently slaved to.
ImageEffect_effect
 The instance we are associated with.


Constructor & Destructor Documentation

OFX::Interact::Interact OfxInteractHandle  handle  ) 
 

ctor

OFX::Interact::~Interact  )  [virtual]
 

ctor


Member Function Documentation

void OFX::Interact::addParamToSlaveTo Param p  ) 
 

Set a param that the interact should be redrawn on if its value changes.

bool OFX::Interact::draw const DrawArgs args  )  [virtual]
 

the function called to draw in the interact

void OFX::Interact::gainFocus const FocusArgs args  )  [virtual]
 

Called when the interact is given input focus.

OfxRGBColourD OFX::Interact::getBackgroundColour void   )  const
 

the background colour

int OFX::Interact::getBitDepth void   )  const
 

The bitdepth of each component in the openGL frame buffer.

OfxPointD OFX::Interact::getPixelScale void   )  const
 

Returns the size of a real screen pixel under the interact's cannonical projection.

PropertySet& OFX::Interact::getProperties  )  [inline]
 

bool OFX::Interact::hasAlpha void   )  const
 

Does the openGL frame buffer have an alpha.

bool OFX::Interact::keyDown const KeyArgs args  )  [virtual]
 

the function called to handle key down events in the interact

returns true if the interact trapped the action in some sense. This will block the action being passed to any other interact that may share the viewer.

bool OFX::Interact::keyRepeat const KeyArgs args  )  [virtual]
 

the function called to handle key down repeat events in the interact

returns true if the interact trapped the action in some sense. This will block the action being passed to any other interact that may share the viewer.

bool OFX::Interact::keyUp const KeyArgs args  )  [virtual]
 

the function called to handle key up events in the interact

returns true if the interact trapped the action in some sense. This will block the action being passed to any other interact that may share the viewer.

void OFX::Interact::loseFocus const FocusArgs args  )  [virtual]
 

Called when the interact is loses input focus.

bool OFX::Interact::penDown const PenArgs args  )  [virtual]
 

the function called to handle pen down events in the interact

returns true if the interact trapped the action in some sense. This will block the action being passed to any other interact that may share the viewer.

bool OFX::Interact::penMotion const PenArgs args  )  [virtual]
 

the function called to handle pen motion in the interact

returns true if the interact trapped the action in some sense. This will block the action being passed to any other interact that may share the viewer.

bool OFX::Interact::penUp const PenArgs args  )  [virtual]
 

the function called to handle pen up events in the interact

returns true if the interact trapped the action in some sense. This will block the action being passed to any other interact that may share the viewer.

void OFX::Interact::removeParamToSlaveTo Param p  ) 
 

Remova a param that the interact should be redrawn on if its value changes.

void OFX::Interact::requestRedraw void   )  const
 

Request a redraw.

void OFX::Interact::swapBuffers void   )  const
 

Swap a buffer in the case of a double bufferred interact, this is possibly a silly one.


Member Data Documentation

ImageEffect* OFX::Interact::_effect [protected]
 

The instance we are associated with.

Reimplemented in OFX::ParamInteract.

OfxInteractHandle OFX::Interact::_interactHandle [protected]
 

The handle for this interact.

PropertySet OFX::Interact::_interactProperties [protected]
 

The property set on this interact.

std::list<Param *> OFX::Interact::_slaveParams [protected]
 

List of params we are currently slaved to.


The documentation for this class was generated from the following files:
Generated on Thu Oct 9 13:03:50 2008 for OFX Support by  doxygen 1.3.9.1