Computer Assited Medical Intervention Tool Kit  version 4.1
VolumeRenderingAction.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2018 Univ. Grenoble Alpes, CNRS, TIMC-IMAG UMR 5525 (GMCAO)
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 VOLUMERENDERINGACTION_H
26 #define VOLUMERENDERINGACTION_H
27 
28 #include <QObject>
29 #include <Action.h>
30 
31 #include <ImageComponent.h>
32 
33 #include "VolumeRenderingWidget.h"
34 
45  Q_OBJECT
46 
47 public:
50 
52  virtual ~VolumeRenderingAction() = default;
53 
54 
56 
57 
58 public slots:
64  virtual ApplyStatus apply();
65 
66  // Returns NULL: no permanent widget for this action. The GUI is run shown a one-shot dialog in apply
67  // A special widget will be displaied to edit colors.
68  virtual QWidget* getWidget();
69 
70 
71 private:
73  virtual void process(camitk::ImageComponent* comp);
74 
75 
78 
81  QString volumeName;
82 
83 
84 };
85 #endif // VOLUMERENDERINGACTION_H
VolumeRenderingWidget::getAmbiant
double getAmbiant()
Definition: VolumeRenderingWidget.cpp:259
camitk::Action::setFamily
void setFamily(QString family)
the name of the family in which this action is associated
Definition: Action.cpp:128
VolumeRenderingWidget::getSpecular
double getSpecular()
Definition: VolumeRenderingWidget.cpp:279
camitk::Component::getTransform
const vtkSmartPointer< vtkTransform > getTransform() const override
Get the transformation with respect to the parent frame.
Definition: sdk/libraries/core/component/Component.cpp:665
VolumeRenderingAction::createVolumeRendering
void createVolumeRendering(camitk::ImageComponent *comp)
Definition: VolumeRenderingAction.cpp:142
camitk::Component::removeProp
bool removeProp(const QString &name)
remove a given additional prop.
Definition: sdk/libraries/core/component/Component.h:597
VolumeRenderingWidget.h
VolumeRenderingAction::~VolumeRenderingAction
virtual ~VolumeRenderingAction()=default
Default Destructor.
camitk::Action::SUCCESS
everything went according to plan
Definition: Action.h:245
VolumeRenderingAction::myWidget
VolumeRenderingWidget * myWidget
no default widget but a VolumeRenderingWidget displaied when necessary
Definition: VolumeRenderingAction.h:98
camitk::Action::ApplyStatus
ApplyStatus
Definition: Action.h:244
camitk::Action::setName
void setName(QString name)
Definition: Action.cpp:112
camitk::Action::getQAction
QAction * getQAction()
Get the corresponding QAction.
Definition: Action.cpp:182
VolumeRenderingAction::process
virtual void process(camitk::ImageComponent *comp)
helper method to simplify the target component processing
Definition: VolumeRenderingAction.cpp:112
camitk::Action::setComponent
void setComponent(QString component)
the name of the component class that can be used by this action
Definition: Action.cpp:123
VolumeRenderingAction::apply
virtual ApplyStatus apply()
this method is automatically called when the action is triggered.
Definition: VolumeRenderingAction.cpp:104
camitk::Component::getProp
vtkSmartPointer< vtkPointSet > vtkSmartPointer< vtkAlgorithmOutput > const RenderingModes vtkSmartPointer< vtkProp > getProp(const QString &param)
Return the vtkProp (actors, volumes and annotations) corresponding to the given name.
Definition: sdk/libraries/core/component/Component.h:556
camitk::renderer
renderer
The current renderer.
Definition: RendererWidget.cpp:507
camitk::ImageComponent
The manager of the Image Volume data. An image volume data has no concrete 3D representation,...
Definition: ImageComponent.h:72
camitk::Action::getTargets
const ComponentList getTargets() const
the currently selected and valid (regarding the component property) components, for which this action...
Definition: Action.cpp:158
Action.h
camitk::Action::setEmbedded
void setEmbedded(bool isEmbedded)
set the embedded property (an action is embedded by default, unless specified otherwise by explicitly...
Definition: Action.cpp:138
VolumeRenderingWidget::getOpacityPoints
QMap< int, double > getOpacityPoints()
Definition: VolumeRenderingWidget.cpp:239
camitk::Action::addTag
void addTag(QString tag)
add a tag to the tags list of this action
Definition: Action.cpp:133
Log.h
VolumeRenderingAction::getWidget
virtual QWidget * getWidget()
Definition: VolumeRenderingAction.cpp:99
MeshComponent.h
RendererWidget.h
camitk::Action
Action class is an abstract class that enables you to build a action (generally on a component)....
Definition: Action.h:228
VolumeRenderingAction::volumeName
QString volumeName
Name given to the Volume rendering actor attached to the Volume Rendering subComponant of a volume im...
Definition: VolumeRenderingAction.h:102
camitk::Component::getVisibility
virtual bool getVisibility(Viewer *) const
get the visibility of a viewer
Definition: sdk/libraries/core/component/Component.cpp:287
camitk::Component::addProp
bool addProp(const QString &name, vtkSmartPointer< vtkProp > prop)
insert an additional prop, defining it by its name (default visibility = false)
Definition: sdk/libraries/core/component/Component.h:586
camitk::Component::setVisibility
virtual void setVisibility(Viewer *, bool)
set the visibility for a viewer
Definition: sdk/libraries/core/component/Component.cpp:275
VolumeRenderingAction
This action perform a volume rendering.
Definition: VolumeRenderingAction.h:43
camitk::Action::setDescription
void setDescription(QString description)
the description of the action
Definition: Action.cpp:118
VolumeRenderingWidget
The widget allows the user to select the desired parameter for the transfer function.
Definition: VolumeRenderingWidget.h:54
VolumeRenderingWidget::updateImage
void updateImage(camitk::ImageComponent *comp)
Definition: VolumeRenderingWidget.cpp:80
camitk::ActionExtension
This class describes what is a generic Action extension. To add a ActionExtension to CamiTK core,...
Definition: ActionExtension.h:80
camitk::ImageComponent::getImageData
vtkSmartPointer< vtkImageData > getImageData() const
get the image volume managed by this Component
Definition: ImageComponent.h:103
InteractiveViewer.h
camitk::ImageComponent::getVolumeRenderingChild
MeshComponent * getVolumeRenderingChild()
Returns the MeshComponent which will contain the volume rendering actor.
Definition: ImageComponent.cpp:515
VolumeRenderingWidget::getTransparencyPoints
QMap< int, double > getTransparencyPoints()
Definition: VolumeRenderingWidget.cpp:185
VolumeRenderingWidget::getDiffuse
double getDiffuse()
Definition: VolumeRenderingWidget.cpp:269
camitk::refresh
void refresh()
refresh the display
VolumeRenderingAction::VolumeRenderingAction
VolumeRenderingAction(camitk::ActionExtension *)
Default Constructor.
Definition: VolumeRenderingAction.cpp:57
VolumeRenderingAction.h
ImageComponent.h
VolumeRenderingWidget::getColorPoints
QMap< int, QColor > getColorPoints()
Definition: VolumeRenderingWidget.cpp:131
camitk::Component
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:297
Application.h
camitk
Definition: Action.cpp:36