TuttleOFX  1
TuttleOFX/libraries/tuttle/src/tuttle/host/attribute/ParamInteger2D.hpp
Go to the documentation of this file.
00001 #ifndef _TUTTLE_HOST_CORE_ATTRIBUTE_PARAMINTEGER2D_HPP_
00002 #define _TUTTLE_HOST_CORE_ATTRIBUTE_PARAMINTEGER2D_HPP_
00003 
00004 #include "Param.hpp"
00005 #include "ParamInteger.hpp"
00006 
00007 #include <tuttle/host/ofx/attribute/OfxhMultiDimParam.hpp>
00008 
00009 namespace tuttle {
00010 namespace host {
00011 namespace attribute {
00012 
00013 class ParamInteger2D : public Param
00014         , public ofx::attribute::OfxhMultiDimParam<ParamInteger, 2 >
00015 {
00016 public:
00017         ParamInteger2D( INode& effect, const std::string& name, const ofx::attribute::OfxhParamDescriptor& descriptor );
00018         ParamInteger2D* clone() const { return new ParamInteger2D( *this ); }
00019 
00020         OfxPointI getDefault() const;
00021 
00022         void getValue( int& x, int& y ) const OFX_EXCEPTION_SPEC;
00023         void getValueAtTime( const OfxTime time, int& x, int& y ) const OFX_EXCEPTION_SPEC;
00024         void setValue( const int& x, const int& y, const ofx::attribute::EChange change ) OFX_EXCEPTION_SPEC;
00025         void setValueAtTime( const OfxTime time, const int& x, const int& y, const ofx::attribute::EChange change ) OFX_EXCEPTION_SPEC;
00026 };
00027 
00028 }
00029 }
00030 }
00031 
00032 #endif