Computer Assited Medical Intervention Tool Kit  version 5.0
PixelColorChanger.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2021 Univ. Grenoble Alpes, CNRS, Grenoble INP, TIMC, 38000 Grenoble, France
6  *
7  * Visit http://camitk.imag.fr for more information
8  *
9  * This file is part of CamiTK.
10  *
11  * CamiTK is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * CamiTK is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License version 3 for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * version 3 along with CamiTK. If not, see <http://www.gnu.org/licenses/>.
22  *
23  * $CAMITK_LICENCE_END$
24  ****************************************************************************/
25 #ifndef PIXELCOLORCHANGER_H
26 #define PIXELCOLORCHANGER_H
27 
28 #include <QObject>
29 #include <qframe.h>
30 #include <Action.h>
31 #include <ImageComponent.h>
32 
34  Q_OBJECT
35 
36 public:
39 
41  virtual ~PixelColorChanger();
42 
44  virtual QWidget* getWidget();
45 
46 public slots:
53 private:
54 
55 protected:
57  int newColorValue;
59  int sizei;
61  int sizej;
63  int sizek;
65  bool isConnected;
66 };
67 #endif // PIXELCOLORCHANGER_H
PixelColorChanger::sizei
int sizei
size to draw pixels on i axis
Definition: PixelColorChanger.h:82
camitk::Action::setFamily
void setFamily(QString family)
the name of the family in which this action is associated
Definition: Action.cpp:136
PixelColorChanger
Definition: PixelColorChanger.h:33
camitk::Action::SUCCESS
@ SUCCESS
everything went according to plan
Definition: Action.h:248
camitk::Action::ApplyStatus
ApplyStatus
Definition: Action.h:247
camitk::Action::setName
void setName(QString name)
Definition: Action.cpp:120
camitk::Action::setAutoUpdateProperties
void setAutoUpdateProperties(bool)
are the properties to be udpated every time the user makes a change in the widget (default is false)?
Definition: Action.cpp:426
camitk::Action::setComponent
void setComponent(QString component)
the name of the component class that can be used by this action
Definition: Action.cpp:131
camitk::ImageComponent
The manager of the Image Volume data. An image volume data has no concrete 3D representation,...
Definition: ImageComponent.h:77
camitk::Action::getTargets
const ComponentList getTargets() const
the currently selected and valid (regarding the component property) components, for which this action...
Definition: Action.cpp:166
Action.h
PixelColorChanger::apply
virtual camitk::Action::ApplyStatus apply()
this method is automatically called when the action is triggered.
Definition: PixelColorChanger.cpp:98
camitk::ImageComponent::getLastPixelPicked
void getLastPixelPicked(int *x, int *y, int *z)
Get the last pixel picked using CTRL + LEFT/RIGHT CLICK in voxel index (i, j, k) indicates the voxel ...
Definition: ImageComponent.cpp:773
camitk::Property
This class describes a property that can be used in components and actions or any class that needs to...
Definition: Property.h:303
camitk::Action::addTag
void addTag(QString tag)
add a tag to the tags list of this action
Definition: Action.cpp:141
PixelColorChanger.h
camitk::ImageComponent::getLut
virtual vtkSmartPointer< vtkWindowLevelLookupTable > getLut()
get the current lookup table
Definition: ImageComponent.cpp:742
InteractiveSliceViewer.h
camitk::Action
Action class is an abstract class that enables you to build a action (generally on a component)....
Definition: Action.h:231
PixelColorChanger::isConnected
bool isConnected
is the widget automatically connected to image picking
Definition: PixelColorChanger.h:88
Property.h
camitk::Property::setAttribute
void setAttribute(const QString &attribute, const QVariant &value)
Set a given property for this attribute.
Definition: Property.cpp:183
PixelColorChanger::~PixelColorChanger
virtual ~PixelColorChanger()
Default Destructor.
Definition: PixelColorChanger.cpp:79
PixelColorChanger::newColorValue
int newColorValue
new color given to picked pixel
Definition: PixelColorChanger.h:80
PixelColorChanger::sizej
int sizej
size to draw pixels on j axis
Definition: PixelColorChanger.h:84
camitk::Action::setDescription
void setDescription(QString description)
the description of the action
Definition: Action.cpp:126
PixelColorChanger::getWidget
virtual QWidget * getWidget()
method called when the action when the action is triggered (i.e. started)
Definition: PixelColorChanger.cpp:84
camitk::Action::addParameter
virtual bool addParameter(Property *)
Add a new parameter to the action, using the CamiTK property class.
Definition: Action.cpp:440
camitk::ActionExtension
This class describes what is a generic Action extension. To add a ActionExtension to CamiTK core,...
Definition: ActionExtension.h:80
PixelColorChanger::sizek
int sizek
size to draw pixels on k axis
Definition: PixelColorChanger.h:86
camitk::ImageComponent::getImageData
vtkSmartPointer< vtkImageData > getImageData() const override
get the image volume managed by this Component
Definition: ImageComponent.h:123
camitk::refresh
void refresh()
refresh the display
PixelColorChanger::PixelColorChanger
PixelColorChanger(camitk::ActionExtension *)
Default Constructor.
Definition: PixelColorChanger.cpp:36
ImageComponent.h
Application.h
camitk
Definition: Action.cpp:35