ctkVTKConnection.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Library:   CTK
00004  
00005   Copyright (c) 2010  Kitware Inc.
00006 
00007   Licensed under the Apache License, Version 2.0 (the "License");
00008   you may not use this file except in compliance with the License.
00009   You may obtain a copy of the License at
00010 
00011       http://www.commontk.org/LICENSE
00012 
00013   Unless required by applicable law or agreed to in writing, software
00014   distributed under the License is distributed on an "AS IS" BASIS,
00015   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00016   See the License for the specific language governing permissions and
00017   limitations under the License.
00018  
00019 =========================================================================*/
00020 
00021 #ifndef __ctkVTKConnection_h
00022 #define __ctkVTKConnection_h
00023 
00024 // Qt includes
00025 #include <QObject>
00026 #include <QVector>
00027 
00028 // CTK includes
00029 #include <ctkPimpl.h>
00030 
00031 #include "CTKVisualizationVTKCoreExport.h"
00032 
00033 class vtkObject;
00034 class ctkVTKConnectionPrivate;
00035 
00036 class CTK_VISUALIZATION_VTK_CORE_EXPORT ctkVTKConnection : public QObject
00037 {
00038 Q_OBJECT
00039 
00040 public:
00041   typedef QObject Superclass;
00042   explicit ctkVTKConnection(QObject* parent);
00043 
00045   virtual void printAdditionalInfo();
00046   QString shortDescription();
00047   static QString shortDescription(vtkObject* vtk_obj, unsigned long vtk_event,
00048     const QObject* qt_obj, QString qt_slot = "");
00049 
00051   void SetParameters(vtkObject* vtk_obj, unsigned long vtk_event,
00052     const QObject* qt_obj, QString qt_slot, float priority);
00053 
00057   static bool ValidateParameters(vtkObject* vtk_obj, unsigned long vtk_event,
00058     const QObject* qt_obj, QString qt_slot);
00059 
00063   void setEnabled(bool enable);
00064   bool isEnabled()const;
00065 
00070   void setBlocked(bool block);
00071   bool isBlocked()const;
00072 
00074   bool isEqual(vtkObject* vtk_obj, unsigned long vtk_event,
00075                const QObject* qt_obj, QString qt_slot)const;
00076 
00079   QString id()const;
00080 public slots:
00083   void deleteConnection();
00084 
00085 signals:
00089   void emitExecute(vtkObject* caller, vtkObject* call_data);
00090 
00095   void emitExecute(vtkObject* caller, void* call_data, unsigned long vtk_event, void* client_data);
00096 protected:
00097   virtual ~ctkVTKConnection();
00098 
00099 private:
00100   CTK_DECLARE_PRIVATE(ctkVTKConnection);
00101 };
00102 
00103 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 21 May 2010 for CTK by  doxygen 1.6.1