TuttleOFX
1
|
00001 #include "ParamDouble.hpp" 00002 00003 #include <tuttle/host/INode.hpp> 00004 00005 namespace tuttle { 00006 namespace host { 00007 namespace attribute { 00008 00009 ParamDouble::ParamDouble( INode& effect, 00010 const std::string& name, 00011 const ofx::attribute::OfxhParamDescriptor& descriptor, 00012 const std::size_t index ) 00013 : AnimatedParamDouble( effect, name, descriptor, index, 0.0 ) 00014 { 00015 this->_value = getDefault(); 00016 } 00017 00018 double ParamDouble::getDefault() const 00019 { 00020 return getProperties().getDoubleProperty( kOfxParamPropDefault, this->_index ); 00021 } 00022 00023 00024 } 00025 } 00026 } 00027