Public Types | |
enum | TransformEvent { EVENT_TRANSLATION, EVENT_ROTATE, EVENT_SKEW, EVENT_SCALE, EVENT_CORNERPIN, EVENT_PUSH, EVENT_RELEASE } |
Public Member Functions | |
virtual bool | transformEvent (ViewerContext *ctx, const TransformJack_KnobI *transformJack, TransformEvent event)=0 |
virtual void | aboutToChange (ViewerContext *ctx, const TransformJack_KnobI *transformJack, int sourceFlags)=0 |
virtual void | finishedChange (ViewerContext *ctx, const TransformJack_KnobI *transformJack, int sourceFlags)=0 |
virtual bool | needsIndividualHandles () const |
virtual bool | jackIsVisible () |
A class that can be inherited from an object interested in using the transform jack making it a transform jack client which can receive update reports
the transform event types
virtual bool DD::Image::TransformJack_ClientI::transformEvent | ( | ViewerContext * | ctx, |
const TransformJack_KnobI * | transformJack, | ||
TransformEvent | event | ||
) | [pure virtual] |
a function that signals the client of an event that is about to happen
ctx | the current viewer context |
event | the current event |
virtual void DD::Image::TransformJack_ClientI::aboutToChange | ( | ViewerContext * | ctx, |
const TransformJack_KnobI * | transformJack, | ||
int | sourceFlags | ||
) | [pure virtual] |
indicates that a change is about to happen
ctx | the current viewer context |
source | the source of the change about to happen |
virtual void DD::Image::TransformJack_ClientI::finishedChange | ( | ViewerContext * | ctx, |
const TransformJack_KnobI * | transformJack, | ||
int | sourceFlags | ||
) | [pure virtual] |
indicates that a change has just finished
ctx | the viewer context for the change |
source | the source of the change |
virtual bool DD::Image::TransformJack_ClientI::needsIndividualHandles | ( | ) | const [inline, virtual] |
indicates that this client requires an individual transform box. Defaults to false, meaning that all clients share a single transform box. Override if individual transform boxes are needed for each client
virtual bool DD::Image::TransformJack_ClientI::jackIsVisible | ( | ) | [inline, virtual] |
an overrideable function that can be used to signal if the jack is visible or not under certain circumstances