Exemplo n.º 1
0
/** @brief ctor */
KeyArgs::KeyArgs( const PropertySet& props )
	: InteractArgs( props )
{
	time        = props.propGetDouble( kOfxPropTime );
	renderScale = getRenderScale( props );
	keyString   = props.propGetString( kOfxPropKeyString );
}
Exemplo n.º 2
0
  /** @brief ctor */
  InteractArgs::InteractArgs(const PropertySet &props)
  {
    time          = props.propGetDouble(kOfxPropTime);
    renderScale   = getRenderScale(props);
#ifdef OFX_EXTENSIONS_NUKE
    view          = props.propGetInt(kFnOfxImageEffectPropView, 0, false);
#endif
#ifdef OFX_EXTENSIONS_NATRON
    pickerColour.r = pickerColour.g = pickerColour.b = pickerColour.a = -1.;
    if ( !props.propExists(kNatronOfxPropPickerColour) ) {
      hasPickerColour = false;
    } else {
      props.propGetDoubleN(kNatronOfxPropPickerColour, &pickerColour.r, 4, false);
      hasPickerColour = (pickerColour.r != -1. || pickerColour.g != -1. || pickerColour.b != -1. || pickerColour.a != -1.);
    }
    screenPixelRatio = 1.;
    screenPixelRatio = props.propGetDouble(kOfxInteractPropScreenPixelRatio, 0, false);
#endif
  }
Exemplo n.º 3
0
/** @brief ctor */
InteractArgs::InteractArgs( const PropertySet& props )
{
	time        = props.propGetDouble( kOfxPropTime );
	renderScale = getRenderScale( props );
}