TuttleOFX  1
TuttleOFX/libraries/tuttle/src/tuttle/host/attribute/ParamInteger.cpp
Go to the documentation of this file.
00001 #include "ParamInteger.hpp"
00002 
00003 #include <tuttle/host/INode.hpp>
00004 
00005 namespace tuttle {
00006 namespace host {
00007 namespace attribute {
00008 
00009 ParamInteger::ParamInteger( INode&                           effect,
00010                             const std::string&                         name,
00011                             const ofx::attribute::OfxhParamDescriptor& descriptor,
00012                             const std::size_t                          index )
00013   : AnimatedParamInteger( effect, name, descriptor, index, 0 )
00014 {
00015         this->_value = getDefault();
00016 }
00017 
00018 int ParamInteger::getDefault() const
00019 {
00020         return getProperties().getIntProperty( kOfxParamPropDefault, this->_index );
00021 }
00022 
00023 }
00024 }
00025 }
00026