00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef M_PLUGIN_CONTROL_INPUT_PORT
00024 #define M_PLUGIN_CONTROL_INPUT_PORT
00025
00026 #include "MPluginPort.h"
00027 #include "MControlInputPort.h"
00028
00029 #include "MPlugin.h"
00030
00035 class MPluginControlInputPort : public MControlInputPort, public MPluginPort
00036 {
00037
00038 Q_OBJECT
00039
00040 public:
00041
00042
00043
00044 virtual ~ MPluginControlInputPort ( ) { }
00045
00046
00047
00053 virtual float * Buffer ( );
00054
00058 virtual float Value ( ) const;
00059
00060 public slots :
00061
00065 virtual bool Connect ( MControlOutputPort * port );
00066
00070 virtual bool Disconnect ( MControlOutputPort * port );
00071
00077 virtual void SetValue ( float f );
00078
00079
00080
00081
00082
00083
00084
00085 protected :
00086
00087
00088
00096 MPluginControlInputPort ( MPlugin * plugin, const unsigned long portNumber );
00097
00098 friend void MPlugin::createControlInput ( const unsigned long portNumber );
00099
00100
00101
00103 float _localValue;
00104
00105 };
00106
00107 #endif // M_PLUGIN_CONTROL_INPUT_PORT_H