TuttleOFX
1
|
00001 #include "OfxhClipAccessor.hpp" 00002 00003 namespace tuttle { 00004 namespace host { 00005 namespace ofx { 00006 namespace attribute { 00007 00008 OfxhClipAccessor::OfxhClipAccessor() 00009 {} 00010 00011 OfxhClipAccessor::~OfxhClipAccessor() 00012 {} 00013 00014 /** 00015 * is the clip optional 00016 */ 00017 bool OfxhClipAccessor::isOptional() const 00018 { 00019 return getProperties().getIntProperty( kOfxImageClipPropOptional ) != 0; 00020 } 00021 00022 00023 const bool OfxhClipAccessor::isConnected() const 00024 { 00025 return getProperties().getIntProperty( kOfxImageClipPropConnected ) != 0; 00026 } 00027 00028 /** 00029 * @brief Connected 00030 * Says whether the clip is currently connected. 00031 */ 00032 void OfxhClipAccessor::setConnected( const bool isConnected ) 00033 { 00034 getEditableProperties().setIntProperty( kOfxImageClipPropConnected, 1 ); 00035 } 00036 00037 } 00038 } 00039 } 00040 } 00041