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_OUTPUT_PORT
00024 #define M_PLUGIN_CONTROL_OUTPUT_PORT
00025
00026 #include "MPluginPort.h"
00027 #include "MControlOutputPort.h"
00028
00029 #include "MPlugin.h"
00030
00035 class MPluginControlOutputPort : public MControlOutputPort, public MPluginPort
00036 {
00037
00038 Q_OBJECT
00039
00040 public:
00041
00042
00043
00044 virtual ~ MPluginControlOutputPort ( ) { }
00045
00046
00047
00053 virtual float * Buffer ( );
00054
00058 virtual float Value ( ) const;
00059
00060 public slots :
00061
00065 virtual bool Connect ( MControlInputPort * port );
00066
00070 virtual bool Disconnect ( MControlInputPort * port );
00071
00072 protected:
00073
00074
00075
00083 MPluginControlOutputPort ( MPlugin * plugin, const unsigned long portNumber );
00084
00085 friend void MPlugin::createControlOutput ( const unsigned long portNumber );
00086
00087
00088
00090 float _localValue;
00091
00092 };
00093
00094 #endif // M_PLUGIN_CONTROL_OUTPUT_PORT_H