Computer Assited Medical Intervention Tool Kit  version 5.0
InteractiveViewer.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 
26 
27 #ifndef INTERACTIVE_VIEWER_H
28 #define INTERACTIVE_VIEWER_H
29 
30 // -- Core stuff
31 #include "CamiTKAPI.h"
32 #include "Component.h"
33 #include "Viewer.h"
34 #include "RendererWidget.h"
35 #include "InteractiveViewerFrame.h"
36 
37 //-- QT stuff
38 #include <QPushButton>
39 #include <QWidgetAction>
40 #include <QComboBox>
41 class QToolBar;
42 class QFrame;
43 
44 //-- vtk stuff
45 #include <vtkType.h>
46 #include <vtkSmartPointer.h>
47 
48 //-- vtk stuff classes
49 class vtkActor;
50 class vtkPicker;
51 class vtkProp;
52 class vtkObject;
53 class vtkCamera;
54 class vtkEventQtSlotConnect;
55 
56 namespace camitk {
57 // -- Core stuff classes
58 class SliderSpinBoxWidget;
59 class GeometricObject;
60 class InterfaceGeometry;
61 class InterfaceBitMap;
62 class InteractiveViewer;
63 class MeshDataFilterModel;
64 class PropertyObject;
65 class Property;
66 
67 using vtkSmartPointerCamera = vtkSmartPointer<vtkCamera>;
68 
113  Q_OBJECT
114  Q_ENUMS(HighlightMode RendererWidget::ControlMode RendererWidget::CameraOrientation); // so that it can be used in property editor
115 
116 public:
118  enum ViewerType {
120  GEOMETRY_VIEWER
121  };
122 
125  enum PickingMode {
131  NO_PICKING
132  };
133 
139  OFF,
141  SELECTION_ONLY
142  };
143 
145 
149  Q_INVOKABLE InteractiveViewer(QString& name, camitk::InteractiveViewer::ViewerType type);
150 
152  virtual ~InteractiveViewer() override;
153 
155  QString getName() const;
157 
160  void refresh(Viewer* whoIsAsking = nullptr) override;
163 
165  QWidget* getWidget() override;
166 
168  QObject* getPropertyObject() override;
169 
171  QMenu* getMenu() override;
172 
174  QToolBar* getToolBar() override;
176 
179 
182  void refreshRenderer();
183 
185  void resetCamera();
186 
188  void setActiveCamera(QString cameraName);
189 
193  vtkSmartPointer<vtkCamera> getCamera(QString cameraName = "default");
194 
196  void screenshot(QString);
197 
198 public slots:
200  void screenshot();
202 
203 public:
205  virtual void setGradientBackground(bool);
206 
208  virtual void setBackgroundColor(QColor);
209 
210 public slots:
213  void setBackfaceCulling(bool);
216 
218  void setScreenshotAction(bool);
219 
227  void setLinesAsTubes(bool tubes);
228 
229 public:
231  void keyPressEvent(QKeyEvent* e);
232 
234  virtual void setHighlightMode();
235 
238  return rendererWidget;
239  }
240 
242 
246  void setColorScale(bool);
247 
249  bool getColorScale() const;
250 
256  void setColorScaleMinMax(double m, double M);
257 
261  void setColorScaleTitle(QString t);
262 
264  void initPicking(PickingMode);
265 
267  void getBoundsOfSelected(double* bound);
268 
270  void getBounds(double* bound);
271 
273  void setSideFrameVisible(bool);
275 
276 public slots:
277 
280 
282  void sliderChanged(int);
283 
285  void xAngleChanged(double angle);
286 
288  void yAngleChanged(double angle);
289 
291  void zAngleChanged(double angle);
292 
294  void toggleLogo(bool);
296 
297 protected:
298 
300  void init();
301 
312 
315  void initSettings();
316 
319 
321  void toggleInterpolation();
322 
324  void resetLUT();
325 
327  void updateSelectionDisplay(Component*);
328 
330  QMultiMap<Component*, vtkSmartPointer<vtkProp> > actorMap;
331 
333  void addActor(Component*, vtkSmartPointer<vtkProp>);
334 
336  void removeAllActors(Component*);
337 
340 
342  QMap<QString, vtkSmartPointerCamera> cameraMap;
344 
349 
353 
356 
358  QFrame* sideFrame;
359 
362 
364  friend void InteractiveViewerFrame::keyPressEvent(QKeyEvent* e);
365 
367  QMenu* viewerMenu;
368 
370  QToolBar* viewerToolbar;
371 
373  QComboBox* scalarDataComboBox;
374 
376 
378  void initActions();
379 
381  void updateActions();
382 
385 
388  QAction* surfaceAction;
389  QAction* wireframeAction;
390  QAction* pointsAction;
391  QAction* colorAction;
392  QAction* glyphAction;
393  QWidgetAction* scalarDataColorAction;
394 
399 
403 
408 
411 
414 
417 
420 
423 
426 
429 
432 
434  QAction* pickPointAction;
435  QAction* pickCellAction;
438 
440 
443 
448  std::vector <Component*> pickedComponent;
449 
452 
454  bool isPicking;
455 
458 
461 
464 
465  vtkSmartPointer<vtkEventQtSlotConnect> connector;
466 
468 
471  QString whatsThis;
474 
477 
479  void initWhatsThis();
480 
482  void startWhatsThisSection(const QString& title = "");
483 
485  void endWhatsThisSection();
486 
488  void addWhatsThisItem(const QString& key, const QString& description);
490 
494 
499 
504 
509 
514 
519 
524 
529 
534 
538  void createProperties();
539 
546  bool eventFilter(QObject* object, QEvent* event) override;
547 
549 
550 protected slots:
554  void renderingActorsChanged();
556 
557  void highlightModeChanged(QAction* selectedAction);
558 
559  void cameraOrientationChanged(QAction* selectedAction);
560 
561  void viewControlModeChanged(QAction*);
562 
563  void backgroundColor();
564 
565  void toggleAxes(bool);
566 
567  void toggleOrientationDecorations(bool);
568 
569  void pickingModeChanged(QAction*);
570 
572  void picked();
573 
574  void rightClick();
575 
577  void setLabel(bool);
578 
579  void setGlyph(bool);
580 
582 
583 
584 
585 };
586 
587 }
588 
590 
591 #endif
592 
593 //**************************************************************************
camitk::InteractiveViewer::cameraOrientationRightDownAction
QAction * cameraOrientationRightDownAction
to change the axes view mode
Definition: InteractiveViewer.h:405
camitk::setBackfaceCulling
void setBackfaceCulling(bool)
camitk::Component::getRepresentation
Representation getRepresentation() const
return the type of representation concretely implemented by this Component in the InteractiveViewer.
Definition: sdk/libraries/core/component/Component.cpp:302
camitk::InteractiveViewer::actorMap
QMultiMap< Component *, vtkSmartPointer< vtkProp > > actorMap
the map containing all the actors in the InteractiveViewer
Definition: InteractiveViewer.h:330
camitk::InteractiveViewer::screenshotAction
QAction * screenshotAction
Screenshot.
Definition: InteractiveViewer.h:384
InteractiveViewerFrame.h
camitk::Component::getPixelActor
vtkSmartPointer< vtkImageData > vtkSmartPointer< vtkImageActor > getPixelActor
Definition: sdk/libraries/core/component/Component.h:732
camitk::InteractiveViewer::oddWhatsThis
bool oddWhatsThis
are we currently in a odd table line
Definition: InteractiveViewer.h:476
camitk::Component::getVisibility
virtual bool getVisibility(QString) const
get the visibility inside the viewer of the given name
Definition: sdk/libraries/core/component/Component.cpp:261
camitk::setGradientBackground
void setGradientBackground(bool)
set the gradient background
camitk::InteractiveViewer::isPicking
bool isPicking
Indicates that this viewer is picking.
Definition: InteractiveViewer.h:454
camitk::InterfaceBitMap::get2DImageActor
virtual vtkSmartPointer< vtkImageActor > get2DImageActor() const =0
Return the vtkImageActor (vtkProp) representing a slice to be displayed in 2D viewers.
camitk::InterfaceFrame::getFrameVisibility
virtual bool getFrameVisibility(QString) const =0
Get the Component Frame visibility for a given viewer.
MeshDataModel.h
camitk::InteractiveViewer::colorAction
QAction * colorAction
Definition: InteractiveViewer.h:391
camitk::InteractiveViewer::renderingMenu
QMenu * renderingMenu
Rendering.
Definition: InteractiveViewer.h:387
camitk::InteractiveViewer::pickCellAction
QAction * pickCellAction
Definition: InteractiveViewer.h:435
CamiTKAPI.h
camitk::Component::isSelected
virtual bool isSelected() const
Check if this data component is selected.
Definition: sdk/libraries/core/component/Component.h:892
camitk::InteractiveViewer::highlightModeProperty
Property * highlightModeProperty
The property that stands for the type of highlight mode of the 3D viewer.
Definition: InteractiveViewer.h:503
camitk::RIGHT_UP
@ RIGHT_UP
World axes are seen so that x points to the right, y points upward.
Definition: RendererWidget.h:133
a
#define a
camitk::setActiveCamera
void setActiveCamera(vtkCamera *cam)
set active camera
camitk::Component::getSlice
int getSlice() const override
see Component.cpp
Definition: sdk/libraries/core/component/Component.cpp:749
camitk::screenshot
void screenshot(QString filename)
save the screenshot in a file
camitk::InteractiveViewer::displayedTopLevelComponents
unsigned int displayedTopLevelComponents
number of top-level component that are currently displayed
Definition: InteractiveViewer.h:339
CAMITK_INFO
#define CAMITK_INFO(MSG)
Log for info verbosity (the second most verbose one) The msg will appear only if the user asked for I...
Definition: Log.h:261
camitk::InterfaceFrame::getFrameAxisActor
virtual vtkSmartPointer< vtkAxesActor > getFrameAxisActor()=0
Gives the 3D representation of the frame (based on xyz arrows)
camitk::Component::getActor
vtkSmartPointer< vtkPointSet > vtkSmartPointer< vtkAlgorithmOutput > getActor
Definition: sdk/libraries/core/component/Component.h:589
camitk::InteractiveViewer::viewerToolbar
QToolBar * viewerToolbar
the QToolBar for the InteractiveViewer
Definition: InteractiveViewer.h:370
camitk::InteractiveViewer::toggleLinesAsTubesAction
QAction * toggleLinesAsTubesAction
button allows one to display the lines as tubes (the lines are to be in vtkPolyData)
Definition: InteractiveViewer.h:425
PropertyObject.h
camitk::RendererWidget
RendererWidget(QWidget *parent=nullptr, ControlMode mode=RendererWidget::TRACKBALL)
constructors.
camitk::toggleOrientationDecorations
void toggleOrientationDecorations(bool)
display orientation decorations
camitk::LEFT_UP
@ LEFT_UP
World axes are seen so that x points to the left, y points upward.
Definition: RendererWidget.h:132
camitk::pointSize
pointSize
default point size
Definition: RendererWidget.cpp:277
camitk::InteractiveViewer::getRendererWidget
RendererWidget * getRendererWidget()
return interactiveViewer RendererWidget
Definition: InteractiveViewer.h:237
camitk::InteractiveViewer::highlightSelectionAction
QAction * highlightSelectionAction
display mode
Definition: InteractiveViewer.h:396
Action.h
camitk::Component::getRenderingModes
const const RenderingModes InterfaceGeometry::RenderingModes getRenderingModes() const override
see Component.cpp
Definition: sdk/libraries/core/component/Component.cpp:622
camitk::backfaceCulling
backfaceCulling
Is back face culling on?
Definition: RendererWidget.cpp:273
camitk::InteractiveViewer::toggleLogoAction
QAction * toggleLogoAction
button to remove the copyright
Definition: InteractiveViewer.h:419
camitk::InteractiveViewer::CELL_PICKING
@ CELL_PICKING
pick a cell in the VTK representation of an Geometry
Definition: InteractiveViewer.h:128
camitk::InteractiveViewer::pickingMode
PickingMode pickingMode
Current picking mode, NO_PICKING be default.
Definition: InteractiveViewer.h:451
camitk::rightButtonPressed
void rightButtonPressed()
send when the mouse right button is clicked
camitk::InteractiveViewer::viewerMenu
QMenu * viewerMenu
the QMenu for the InteractiveViewer
Definition: InteractiveViewer.h:367
camitk::InteractiveViewer
InteractiveViewer is used to view 3D objects and slices (anything that provides either a InterfaceBit...
Definition: InteractiveViewer.h:112
camitk::InteractiveViewerFrame::keyPressEvent
void keyPressEvent(QKeyEvent *) override
Handle keyboard events in the scene frame, just send everything to InteractiveViewer!
Definition: InteractiveViewerFrame.cpp:60
camitk::setColorScale
void setColorScale(bool)
display the color scale in the viewport, use setColorScaleMinMax to change the displayed values
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::InteractiveViewerFrame
InteractiveViewerFrame is the basic container for the InteractiveViewer widget.
Definition: InteractiveViewerFrame.h:73
camitk::InteractiveViewer::PIXEL_PICKING
@ PIXEL_PICKING
pick a pixel on a Slice
Definition: InteractiveViewer.h:126
camitk::InteractiveViewer::glyphAction
QAction * glyphAction
Definition: InteractiveViewer.h:392
Log.h
camitk::InteractiveViewer::highlightSelectionOnlyAction
QAction * highlightSelectionOnlyAction
Definition: InteractiveViewer.h:397
camitk::Component::get3DImageActor
vtkSmartPointer< vtkImageData > get3DImageActor
Definition: sdk/libraries/core/component/Component.h:728
MeshComponent.h
camitk::resetCamera
void resetCamera()
reset the camera to the default position, default FOV.
camitk::InteractiveViewer::backgroundColorProperty
Property * backgroundColorProperty
The property that stands for the background color of the viewer.
Definition: InteractiveViewer.h:508
camitk::controlMode
controlMode
current control mode
Definition: RendererWidget.cpp:305
RendererWidget.h
camitk::Action
Action class is an abstract class that enables you to build a action (generally on a component)....
Definition: Action.h:231
camitk::toggleAxes
void toggleAxes(bool)
display the axes
camitk::InteractiveViewer::backgroundColorAction
QAction * backgroundColorAction
background color
Definition: InteractiveViewer.h:410
camitk::Action::getQAction
virtual QAction * getQAction(Component *target=nullptr)
Get the corresponding QAction.
Definition: Action.cpp:204
camitk::InteractiveViewer::isChangingSlice
bool isChangingSlice
Indicates that this viewer is changing the slice by the slice slider.
Definition: InteractiveViewer.h:457
camitk::InterfaceBitMap::pixelPicked
virtual void pixelPicked(double, double, double)=0
This method is called when the associated plane has been picked in the InteractiveViewer,...
camitk::Component::getNumberOfProp
unsigned int getNumberOfProp() const override
return the number of additional prop
Definition: sdk/libraries/core/component/Component.h:604
camitk::InteractiveViewer::controlModeTrackballAction
QAction * controlModeTrackballAction
to change the camera control mode
Definition: InteractiveViewer.h:401
camitk::InteractiveViewer::frame
InteractiveViewerFrame * frame
the InteractiveViewer frame
Definition: InteractiveViewer.h:355
camitk::InteractiveViewer::scalarDataModel
MeshDataFilterModel * scalarDataModel
Definition: InteractiveViewer.h:375
description
const char * description
Definition: applications/cepgenerator/main.cpp:38
camitk::InteractiveViewer::sideFrame
QFrame * sideFrame
the right side frame (this is where the slider and screenshot buttons are shown)
Definition: InteractiveViewer.h:358
camitk::Component::getName
QString getName() const override
get the name to be displayed
Definition: sdk/libraries/core/component/Component.h:907
camitk::InteractiveViewer::toggleAxesAction
QAction * toggleAxesAction
button allows one to display the Axes in the InteractiveViewer
Definition: InteractiveViewer.h:413
camitk::Component::getProp
vtkSmartPointer< vtkPointSet > vtkSmartPointer< vtkAlgorithmOutput > const RenderingModes vtkSmartPointer< vtkProp > getProp(const QString &param) override
Return the vtkProp (actors, volumes and annotations) corresponding to the given name.
Definition: sdk/libraries/core/component/Component.h:593
camitk::InteractiveViewer::pickedComponent
std::vector< Component * > pickedComponent
list of Component that are currently picked, correctly displayed in the InteractiveViewer,...
Definition: InteractiveViewer.h:448
camitk::InteractiveViewer::HighlightMode
HighlightMode
Definition: InteractiveViewer.h:138
camitk::InteractiveViewer::ViewerType
ViewerType
Definition: InteractiveViewer.h:118
camitk::InteractiveViewer::cameraOrientationRightUpAction
QAction * cameraOrientationRightUpAction
Definition: InteractiveViewer.h:407
camitk::InteractiveViewer::propertyObject
PropertyObject * propertyObject
The property object that holds the properties of this viewer.
Definition: InteractiveViewer.h:498
camitk::InteractiveViewer::OFF
@ OFF
both selected and non-selected Components are in default mode
Definition: InteractiveViewer.h:139
camitk::InteractiveViewer::POINT_PICKING
@ POINT_PICKING
pick a point in the VTK representation of an Geometry
Definition: InteractiveViewer.h:127
camitk::setBackgroundColor
setBackgroundColor(0.0, 0.0, 0.0)
camitk::InteractiveViewer::pickPointAction
QAction * pickPointAction
action of the picking menu
Definition: InteractiveViewer.h:434
camitk::InteractiveViewer::sliceSlider
SliderSpinBoxWidget * sliceSlider
Slider used to control the slice index in a InteractiveViewer.
Definition: InteractiveViewer.h:352
camitk::getColorScale
bool getColorScale() const
get the color display state
camitk::InteractiveViewer::wireframeAction
QAction * wireframeAction
Definition: InteractiveViewer.h:389
SliderSpinBoxWidget.h
camitk::cameraOrientation
cameraOrientation
state of the initial camera orientation
Definition: RendererWidget.cpp:306
camitk::ComponentList
QList< Component * > ComponentList
A list of Component.
Definition: CamiTKAPI.h:127
camitk::keyPressEvent
void keyPressEvent(QKeyEvent *e) override
key events (do nothing but pass on e to the parent widget), please do not add any shortcut management...
camitk::InteractiveViewer::SELECTION
@ SELECTION
the selected Components are in default mode, the non-selected Components are shaded
Definition: InteractiveViewer.h:140
camitk::InteractiveViewer::pickCellRegionAction
QAction * pickCellRegionAction
Definition: InteractiveViewer.h:436
camitk::InteractiveViewer::controlModeJoystickAction
QAction * controlModeJoystickAction
Definition: InteractiveViewer.h:402
camitk::setColorScaleMinMax
void setColorScaleMinMax(double m, double M)
set the min and max values.
camitk::vtkSmartPointerCamera
vtkSmartPointer< vtkCamera > vtkSmartPointerCamera
Definition: InteractiveViewer.h:67
camitk::setColorScaleTitle
void setColorScaleTitle(QString t)
set the color scale title.
camitk::InteractiveViewer::backfaceCullingProperty
Property * backfaceCullingProperty
Property that tells whether the viewer uses the backface culling option or not.
Definition: InteractiveViewer.h:523
camitk::MeshDataFilterModel
CamiTK intern class to help automatically sort or show specific data.
Definition: MeshDataModel.h:131
Component
A component is something that composed something and could also be a part of something.
Definition: modeling/libraries/pml/Component.h:48
camitk::InteractiveViewer::pointSizeProperty
Property * pointSizeProperty
Property which defines the point size of each point in the 3D viewer.
Definition: InteractiveViewer.h:533
camitk::Viewer
Viewer is an abstract class that is the base class for all viewers.
Definition: Viewer.h:180
camitk::RIGHT_DOWN
@ RIGHT_DOWN
World axes are seen so that x points to the right, y points downward.
Definition: RendererWidget.h:131
camitk::InteractiveViewer::cameraMap
QMap< QString, vtkSmartPointerCamera > cameraMap
all the available camera
Definition: InteractiveViewer.h:342
InteractiveSliceViewerExtension::init
virtual void init() override
initialize all the viewers
Definition: InteractiveSliceViewerExtension.cpp:32
camitk::InterfaceGeometry::setLinesAsTubes
virtual void setLinesAsTubes(bool)=0
set the lines as tubes (works only for vtkDataSet representation that contains lines)
camitk::InteractiveViewer::scalarDataComboBox
QComboBox * scalarDataComboBox
the ComboBox for mesh scalar data
Definition: InteractiveViewer.h:373
InteractiveViewer.h
camitk::InteractiveViewer::rendererWidget
RendererWidget * rendererWidget
Definition: InteractiveViewer.h:348
camitk::InteractiveViewer::toggleBackfaceCullingAction
QAction * toggleBackfaceCullingAction
back face culling
Definition: InteractiveViewer.h:428
camitk::InteractiveViewer::PickingMode
PickingMode
Definition: InteractiveViewer.h:125
camitk::InteractiveViewer::pickingEffectIsSelecting
bool pickingEffectIsSelecting
picking effect while mouse button is kept pressed is selecting (depends on the selection state of the...
Definition: InteractiveViewer.h:460
camitk::CameraOrientation
CameraOrientation
RendererWidget implements all support methods to use camiTK with Qt interface.
Definition: RendererWidget.h:130
camitk::InteractiveViewer::cameraOrientationLeftUpAction
QAction * cameraOrientationLeftUpAction
Definition: InteractiveViewer.h:406
camitk::InterfaceBitMap::getPickPlaneActor
virtual vtkSmartPointer< vtkActor > getPickPlaneActor() const =0
Return the vtkActor used to pick pixels in the slices.
camitk::Component::cellPicked
void cellPicked(vtkIdType, bool) override
an inherited class can redefine this method something specific.
Definition: sdk/libraries/core/component/Component.h:659
Viewer.h
camitk::InteractiveViewer::screenshotActionMenu
QToolBar * screenshotActionMenu
the screenshot action is inside this menu (in the slice viewer side bar)
Definition: InteractiveViewer.h:361
camitk::InteractiveViewer::pointsAction
QAction * pointsAction
Definition: InteractiveViewer.h:390
camitk::InteractiveViewer::InteractiveViewer
Q_INVOKABLE InteractiveViewer(QString &name, camitk::InteractiveViewer::ViewerType type)
Construtor.
Definition: InteractiveViewer.cpp:111
camitk::InteractiveViewer::pickPointRegionAction
QAction * pickPointRegionAction
Definition: InteractiveViewer.h:437
camitk::Component::pointPicked
void pointPicked(vtkIdType, bool) override
an inherited class can redefine this method something specific.
Definition: sdk/libraries/core/component/Component.h:654
camitk::InteractiveViewer::backgroundGradientColorProperty
Property * backgroundGradientColorProperty
Property that tells whether the viewer use a gradient background color or not.
Definition: InteractiveViewer.h:513
camitk::MeshComponent
Basic component to manage any kind of mesh.
Definition: MeshComponent.h:53
camitk::InteractiveViewer::toggleOrientationDecorationsAction
QAction * toggleOrientationDecorationsAction
button allows one to display orientation decoration in SLICE_VIEWER mode
Definition: InteractiveViewer.h:416
camitk::refresh
void refresh()
refresh the display
camitk::InteractiveViewer::toggleLabelAction
QAction * toggleLabelAction
button allows one to display the labels of the object3D
Definition: InteractiveViewer.h:422
camitk::InteractiveViewer::AREA_CELL_PICKING
@ AREA_CELL_PICKING
pick cells that are inside a rectangular area in the VTK representation of an Geometry
Definition: InteractiveViewer.h:129
camitk::InteractiveViewer::screenshotActionProperty
Property * screenshotActionProperty
Property that tells whether the screenshot action is visible or not.
Definition: InteractiveViewer.h:528
camitk::InteractiveViewer::connector
vtkSmartPointer< vtkEventQtSlotConnect > connector
Definition: InteractiveViewer.h:465
camitk::InteractiveViewer::scalarDataColorAction
QWidgetAction * scalarDataColorAction
Definition: InteractiveViewer.h:393
camitk::InteractiveViewer::SLICE_VIEWER
@ SLICE_VIEWER
display slices (the view is blocked in 2D and the slider is available)
Definition: InteractiveViewer.h:119
camitk::InteractiveViewer::toggleScreenshotAction
QAction * toggleScreenshotAction
visibility of the screenshot action in the side toolbar of slice viewer
Definition: InteractiveViewer.h:431
camitk::InteractiveViewer::AREA_POINT_PICKING
@ AREA_POINT_PICKING
pick points that are inside a rectangular area in the VTK representation of an Geometry
Definition: InteractiveViewer.h:130
camitk::PropertyObject
This class describes a property object.
Definition: PropertyObject.h:94
camitk::Component::getNumberOfSlices
vtkSmartPointer< vtkImageData > vtkSmartPointer< vtkImageActor > vtkSmartPointer< vtkActor > updatePickPlane double double vtkSmartPointer< vtkTransform > int getNumberOfSlices() const override
see Component.cpp
Definition: sdk/libraries/core/component/Component.cpp:739
camitk::InteractiveViewer::linesAsTubesProperty
Property * linesAsTubesProperty
Property that tells whether the viewer uses lines as tubes or not.
Definition: InteractiveViewer.h:518
camitk::InteractiveViewer::highlightOffAction
QAction * highlightOffAction
Definition: InteractiveViewer.h:398
camitk::InteractiveViewer::surfaceAction
QAction * surfaceAction
Definition: InteractiveViewer.h:388
camitk::SliderSpinBoxWidget
A utility class to have QSpinBox and QSlider synchronized. see for example InteractiveViewer (when it...
Definition: SliderSpinBoxWidget.h:68
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:302
CAMITK_API
#define CAMITK_API
Definition: CamiTKAPI.h:49
camitk
Definition: Action.cpp:35
camitk::toggleLogo
void toggleLogo(bool)
toggle logo
camitk::InteractiveViewer::myType
ViewerType myType
type of InteractiveViewer (display slice or geometry)
Definition: InteractiveViewer.h:318
camitk::InteractiveViewer::pickingEffectUpdated
bool pickingEffectUpdated
was the picking effect updated (it has to be updated with the first picking for a given button down s...
Definition: InteractiveViewer.h:463