DD::Image::ShutterControls Class Reference

List of all members.

Public Types

enum  OffsetEnum { eCentredOffset, eStartOffset, eEndOffset, eCustomOffset }

Public Member Functions

 ShutterControls (double duration=0.5, OffsetEnum offset=eStartOffset, double customOffset=0.0)
 Constructor.
void knobs (Knob_Closure &f, bool earlyStore=false, const char *durationName="shutter", const char *offsetTypeName="shutteroffset", const char *customOffsetName="shuttercustomoffset")
double getDuration () const
double calcOffset () const
OffsetEnum getOffset () const
double getCustomOffset () const
void setDuration (double v)
void setOffset (OffsetEnum v)
void setCustomOffset (double v)
KnobgetDurationKnob ()
KnobgetOffsetKnob ()
KnobgetCustomOffsetKnob ()
void append (DD::Image::Hash &hash)

Detailed Description

Class used to standardise shutter controls throughout NUKE


Member Enumeration Documentation

Enum used to specify what kind of shutter offset we have


Member Function Documentation

void DD::Image::ShutterControls::knobs ( Knob_Closure &  f,
bool  earlyStore = false,
const char *  durationName = "shutter",
const char *  offsetTypeName = "shutteroffset",
const char *  customOffsetName = "shuttercustomoffset" 
)
double DD::Image::ShutterControls::getDuration ( ) const [inline]
double DD::Image::ShutterControls::calcOffset ( ) const

Offset to the start of the shutter period from integer frame number

Referenced by DD::Image::Transform::_validate(), and DD::Image::Transform::append().

OffsetEnum DD::Image::ShutterControls::getOffset ( ) const [inline]

The type of offset.

double DD::Image::ShutterControls::getCustomOffset ( ) const [inline]

The Offset if the enum is set to eCustomOffset