ctkTransferFunctionControlPointsItem.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 __ctkTransferFunctionControlPointsItem_h
00022 #define __ctkTransferFunctionControlPointsItem_h
00023 
00025 #include <QGraphicsObject>
00026 
00028 #include "CTKWidgetsExport.h"
00029 #include "ctkPimpl.h"
00030 #include "ctkTransferFunctionItem.h"
00031 
00032 class ctkTransferFunctionControlPointsItemPrivate;
00033 
00034 //-----------------------------------------------------------------------------
00035 class CTK_WIDGETS_EXPORT ctkTransferFunctionControlPointsItem: public ctkTransferFunctionItem
00036 {
00037   Q_OBJECT
00038 public:
00039   explicit ctkTransferFunctionControlPointsItem(QGraphicsItem* parent = 0);
00040   ctkTransferFunctionControlPointsItem(ctkTransferFunction* transferFunction, 
00041                                        QGraphicsItem* parent = 0);
00042   virtual ~ctkTransferFunctionControlPointsItem();
00043 
00044   virtual void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0);
00045 
00046 protected:
00047   virtual void mousePressEvent(QGraphicsSceneMouseEvent* e);
00048   virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* e);
00049   virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* e);
00050 private:
00051   CTK_DECLARE_PRIVATE(ctkTransferFunctionControlPointsItem);
00052 };
00053 
00054 #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