CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Libs
Widgets
ctkHistogram.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Library: CTK
4
5
Copyright (c) Kitware Inc.
6
7
Licensed under the Apache License, Version 2.0 (the "License");
8
you may not use this file except in compliance with the License.
9
You may obtain a copy of the License at
10
11
http://www.apache.org/licenses/LICENSE-2.0.txt
12
13
Unless required by applicable law or agreed to in writing, software
14
distributed under the License is distributed on an "AS IS" BASIS,
15
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
See the License for the specific language governing permissions and
17
limitations under the License.
18
19
=========================================================================*/
20
21
#ifndef __ctkHistogram_h
22
#define __ctkHistogram_h
23
25
#include <QColor>
26
#include <QObject>
27
#include <QtGlobal>
28
#include <QSharedPointer>
29
#include <QVariant>
30
32
#include "
ctkTransferFunction.h
"
33
#include "ctkWidgetsExport.h"
34
35
//-----------------------------------------------------------------------------
37
struct
CTK_WIDGETS_EXPORT
ctkHistogramBar
:
public
ctkControlPoint
38
{
39
QColor
Color
;
40
};
41
42
//-----------------------------------------------------------------------------
44
class
CTK_WIDGETS_EXPORT
ctkHistogram
:
public
ctkTransferFunction
45
{
46
Q_OBJECT
47
public
:
48
ctkHistogram
(QObject* parent = 0);
49
virtual
~
ctkHistogram
();
50
51
virtual
bool
isDiscrete
()
const
;
52
virtual
bool
isEditable
()
const
;
53
55
virtual
int
insertControlPoint
(
const
ctkControlPoint
& cp);
56
virtual
int
insertControlPoint
(qreal pos);
57
61
virtual
void
setControlPointPos
(
int
index, qreal pos);
65
virtual
void
setControlPointValue
(
int
index,
const
QVariant& value);
66
virtual
void
build()=0;
67
protected
:
68
69
};
70
71
#endif
ctkControlPoint
Definition:
ctkTransferFunction.h:58
ctkHistogramBar::Color
QColor Color
Definition:
ctkHistogram.h:39
ctkTransferFunction
Definition:
ctkTransferFunction.h:85
ctkTransferFunction::setControlPointValue
virtual void setControlPointValue(int index, const QVariant &value)=0
ctkTransferFunction::isEditable
virtual bool isEditable() const =0
ctkHistogram
Definition:
ctkHistogram.h:44
ctkHistogramBar
Qt includes.
Definition:
ctkHistogram.h:37
ctkTransferFunction::insertControlPoint
virtual int insertControlPoint(const ctkControlPoint &cp)=0
ctkTransferFunction::isDiscrete
virtual bool isDiscrete() const =0
ctkTransferFunction.h
ctkTransferFunction::setControlPointPos
virtual void setControlPointPos(int index, qreal pos)=0
Generated on Tue Jan 28 2020 00:00:00 for CTK by
1.8.17