TuttleOFX  1
TuttleOFX/libraries/tuttle/src/tuttle/host/ofx/attribute/OfxhClipImageDescriptor.cpp
Go to the documentation of this file.
00001 #include "OfxhClipImageDescriptor.hpp"
00002 
00003 namespace tuttle {
00004 namespace host {
00005 namespace ofx {
00006 namespace attribute {
00007 
00008 OfxhClipImageDescriptor::OfxhClipImageDescriptor()
00009         : tuttle::host::ofx::attribute::OfxhClipDescriptor()
00010 {
00011         init( "" );
00012 }
00013 
00014 /**
00015  * descriptor
00016  */
00017 OfxhClipImageDescriptor::OfxhClipImageDescriptor( const std::string& name )
00018         : tuttle::host::ofx::attribute::OfxhClipDescriptor()
00019 {
00020         init( name );
00021 }
00022 
00023 /**
00024  * descriptor
00025  */
00026 void OfxhClipImageDescriptor::init( const std::string& name )
00027 {
00028         /// properties common to the desciptor and instance
00029         /// the desc and set them, the instance cannot
00030         static const property::OfxhPropSpec clipImageDescriptorStuffs[] = {
00031                 { kOfxClipPropType, property::ePropTypeString, 1, true, kOfxClipTypeImage },
00032                 { kOfxImageEffectPropSupportedComponents, property::ePropTypeString, 0, false, "" },
00033                 { kOfxImageEffectPropTemporalClipAccess, property::ePropTypeInt, 1, false, "0" },
00034                 { kOfxImageClipPropIsMask, property::ePropTypeInt, 1, false, "0" },
00035                 { kOfxImageClipPropFieldExtraction, property::ePropTypeString, 1, false, kOfxImageFieldDoubled },
00036                 { kOfxImageEffectPropSupportsTiles, property::ePropTypeInt, 1, false, "1" },
00037                 { 0 },
00038         };
00039 
00040         _properties.addProperties( clipImageDescriptorStuffs );
00041         _properties.setStringProperty( kOfxPropName, name );
00042 }
00043 
00044 }
00045 }
00046 }
00047 }
00048