 |
Computer Assited Medical Intervention Tool Kit
version 4.1
|
Go to the documentation of this file.
27 #ifndef INTERACTIVE_VIEWER_H
28 #define INTERACTIVE_VIEWER_H
32 #include "Component.h"
38 #include <QPushButton>
39 #include <QWidgetAction>
45 #include <vtkSmartPointer.h>
53 class vtkEventQtSlotConnect;
57 class SliderSpinBoxWidget;
58 class GeometricObject;
59 class InterfaceGeometry;
60 class InterfaceBitMap;
61 class InteractiveViewer;
62 class MeshDataFilterModel;
205 QString getName()
const;
210 unsigned int numberOfViewedComponent()
override;
218 QWidget* getWidget(QWidget* parent)
override;
221 QObject* getPropertyObject()
override;
224 QMenu* getMenu()
override;
227 QToolBar* getToolBar()
override;
235 void refreshRenderer();
246 vtkSmartPointer<vtkCamera> getCamera(QString cameraName =
"default");
271 void setScreenshotAction(
bool);
285 void setLinesAsTubes(
bool tubes);
296 return rendererWidget;
324 void initPicking(PickingMode);
327 void getBoundsOfSelected(
double* bound);
330 void getBounds(
double* bound);
333 void setSideFrameVisible(
bool);
340 void sliderChanged(
int);
343 void xAngleChanged(
double angle);
346 void yAngleChanged(
double angle);
349 void zAngleChanged(
double angle);
365 static QMap<QString, InteractiveViewer*>
viewers;
368 static QString defaultNames[5];
392 void toggleInterpolation();
398 QMultiMap<Component*, vtkSmartPointer<vtkProp> >
actorMap;
401 void addActor(
Component*, vtkSmartPointer<vtkProp>);
450 void updateActions();
548 void initWhatsThis();
551 void startWhatsThisSection(
const QString& title =
"");
554 void endWhatsThisSection();
557 void addWhatsThisItem(
const QString& key,
const QString&
description);
607 void createProperties();
615 bool eventFilter(QObject*
object, QEvent* event)
override;
623 void renderingActorsChanged();
626 void highlightModeChanged(QAction* selectedAction);
628 void cameraOrientationChanged(QAction* selectedAction);
630 void viewControlModeChanged(QAction*);
632 void backgroundColor();
638 void pickingModeChanged(QAction*);
QAction * cameraOrientationRightDownAction
to change the axes view mode
Definition: InteractiveViewer.h:474
void setBackfaceCulling(bool)
Representation getRepresentation() const
return the type of representation concretely implemented by this Component in the InteractiveViewer.
Definition: sdk/libraries/core/component/Component.cpp:319
@ SCALARS
1D (scalar value)
Definition: MeshComponent.h:59
QMultiMap< Component *, vtkSmartPointer< vtkProp > > actorMap
the map containing all the actors in the InteractiveViewer
Definition: InteractiveViewer.h:398
@ Shaded
the object is shaded
Definition: InterfaceGeometry.h:77
void backgroundColor()
Definition: InteractiveViewer.cpp:2036
QAction * screenshotAction
Screenshot.
Definition: InteractiveViewer.h:453
void setLinesAsTubes(bool tubes)
get the backface current culling mode.
Definition: InteractiveViewer.cpp:2091
virtual void setBackgroundColor(QColor)
set background color
Definition: InteractiveViewer.cpp:1613
void addWhatsThisItem(const QString &key, const QString &description)
add an item (row) in the the what's this message (to describe a shortcut)
Definition: InteractiveViewer.cpp:1050
InteractiveViewer * myInteractiveViewer
Definition: InteractiveViewer.h:78
void viewControlModeChanged(QAction *)
Definition: InteractiveViewer.cpp:2026
bool oddWhatsThis
are we currently in a odd table line
Definition: InteractiveViewer.h:545
void removeAllActors(Component *)
remove all the given Component actors from the renderer and delete comp from the map
Definition: InteractiveViewer.cpp:695
void setGradientBackground(bool)
set the gradient background
bool isPicking
Indicates that this viewer is picking.
Definition: InteractiveViewer.h:523
static InteractiveViewer * getNewViewer(QString, ViewerType type)
Use this method to create a new custom instance of this class.
Definition: InteractiveViewer.cpp:110
QAction * colorAction
Definition: InteractiveViewer.h:460
QMenu * renderingMenu
Rendering.
Definition: InteractiveViewer.h:456
QAction * pickCellAction
Definition: InteractiveViewer.h:504
@ LEFT_BACK
Definition: RendererWidget.h:168
QWidget * getWidget(QWidget *parent) override
get the InteractiveViewer widget (QTreeWidget).
Definition: InteractiveViewer.cpp:368
@ Normal
the object is normally displayed
Definition: InterfaceGeometry.h:75
QAction * toggleCopyrightAction
button to remove the copyright
Definition: InteractiveViewer.h:488
void setColorScaleTitle(QString t)
set the color scale title.
Definition: InteractiveViewer.cpp:1818
static QSettings & getSettings()
Get the Core wide settings.
Definition: Application.cpp:300
virtual bool isSelected() const
Check if this data component is selected.
Definition: sdk/libraries/core/component/Component.h:833
void setEnumTypeName(QString)
if the property's type is an enum, set the name of the registered Qt Enum.
Definition: Property.cpp:109
static InteractiveViewer * getArbitraryViewer()
get the arbitrary default InteractiveViewer (provided for convenience, equivalent to getViewer("arbit...
Definition: InteractiveViewer.cpp:198
Property * highlightModeProperty
The property that stands for the type of highlight mode of the 3D viewer.
Definition: InteractiveViewer.h:572
static const ComponentList & getAllComponents()
get the current application wide list of all Components.
Definition: Application.cpp:889
void setActiveCamera(vtkCamera *cam)
set active camera
QAction * getQAction()
Get the corresponding QAction.
Definition: Action.cpp:183
static InteractiveViewer * get3DViewer()
get the 3D viewer default InteractiveViewer (provided for convenience, equivalent to getViewer("3DVie...
Definition: InteractiveViewer.cpp:182
void screenshot(QString filename)
save the screenshot in a file
void setSideFrameVisible(bool)
set the slice viewer side bar+screenshot button visibility
Definition: InteractiveViewer.cpp:1667
unsigned int displayedTopLevelComponents
number of top-level component that are currently displayed
Definition: InteractiveViewer.h:407
#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:258
virtual vtkSmartPointer< vtkAxesActor > getFrameAxisActor()=0
Gives the 3D representation of the frame (based on xyz arrows)
@ JOYSTICK
the mouse is used a joystick
Definition: RendererWidget.h:175
static InteractiveViewer * getAxialViewer()
get the axial default InteractiveViewer (provided for convenience, equivalent to getViewer("axialView...
Definition: InteractiveViewer.cpp:186
void toggleOrientationDecorations(bool)
Definition: InteractiveViewer.cpp:2053
vtkSmartPointer< vtkPointSet > vtkSmartPointer< vtkAlgorithmOutput > getActor
Definition: sdk/libraries/core/component/Component.h:553
QAction * toggleLinesAsTubesAction
button allows one to display the lines as tubes (the lines are to be in vtkPolyData)
Definition: InteractiveViewer.h:494
void setColorScaleMinMax(double m, double M)
set the min and max values.
Definition: InteractiveViewer.cpp:1813
@ Surface
the surface is visible
Definition: InterfaceGeometry.h:67
QToolBar * getToolBar() override
get the viewer toolbar
Definition: InteractiveViewer.cpp:784
vtkSmartPointer< vtkPointSet > vtkSmartPointer< vtkAlgorithmOutput > const RenderingModes vtkSmartPointer< vtkProp > getProp(const QString ¶m)
Return the vtkProp (actors, volumes and annotations) corresponding to the given name.
Definition: sdk/libraries/core/component/Component.h:557
RendererWidget(QWidget *parent=nullptr, ControlMode mode=RendererWidget::TRACKBALL)
constructors.
void screenshot()
call this method to take a screenshot in various format and write the resulting image to a file
Definition: InteractiveViewer.cpp:1770
bool getColorScale() const
get the current value of the color scale property.
Definition: InteractiveViewer.cpp:1803
@ BACK_DOWN
< World axes are seen so that x points to the left, y points backward. For Medical Images Coronal Vie...
Definition: RendererWidget.h:169
void setScreenshotAction(bool)
visibility of the screenshot in slice viewers
Definition: InteractiveViewer.cpp:2101
void toggleOrientationDecorations(bool)
display orientation decorations
virtual void setHighlightMode(InteractiveViewer::HighlightMode)
Set the current highlighting mode.
Definition: InteractiveViewer.cpp:1963
pointSize
default point size
Definition: RendererWidget.cpp:503
RendererWidget * getRendererWidget()
return interactiveViewer RendererWidget
Definition: InteractiveViewer.h:295
QAction * highlightSelectionAction
display mode
Definition: InteractiveViewer.h:465
@ TRACKBALL_2D
same as TRACKBALL but does not allow rotation using left button (but zoom and displacement parallel t...
Definition: RendererWidget.h:177
const const RenderingModes InterfaceGeometry::RenderingModes getRenderingModes() const override
see Component.cpp
Definition: sdk/libraries/core/component/Component.cpp:417
backfaceCulling
Is back face culling on?
Definition: RendererWidget.cpp:499
ControlMode
Definition: RendererWidget.h:174
static const ScreenshotFormatInfo * getScreenshotFormatInfo(unsigned int)
return the information concerning the supporting format using an index corresponding to the enum (che...
@ CELL_PICKING
pick a cell in the VTK representation of an Geometry
Definition: InteractiveViewer.h:156
PickingMode pickingMode
Current picking mode, NO_PICKING be default.
Definition: InteractiveViewer.h:520
void zAngleChanged(double angle)
Slot called when the InteractiveViewer z angle update has been changed.
Definition: InteractiveViewer.cpp:1595
void keyPressEvent(QKeyEvent *e)
Handle keyboard events in the scene, let to the parent widget if not processed here....
Definition: InteractiveViewer.cpp:1068
void rightButtonPressed()
send when the mouse right button is clicked
QMenu * viewerMenu
the QMenu for the InteractiveViewer
Definition: InteractiveViewer.h:436
void yAngleChanged(double angle)
Slot called when the InteractiveViewer y angle update has been changed.
Definition: InteractiveViewer.cpp:1582
void sliderChanged(int)
Slot called when the InteractiveViewer slider has been changed.
Definition: InteractiveViewer.cpp:1548
InteractiveViewer is used to view 3D objects and slices (anything that provides either a InterfaceBit...
Definition: InteractiveViewer.h:140
static const ComponentList & getSelectedComponents()
get the currently selected Components.
Definition: Application.cpp:894
void updateSelectionDisplay(Component *)
Update the display of the given Component, according to its selection state and the current Highlight...
Definition: InteractiveViewer.cpp:1689
void keyPressEvent(QKeyEvent *) override
Handle keyboard events in the scene frame, just send everything to InteractiveViewer!
Definition: InteractiveViewer.cpp:2405
void setColorScale(bool)
display the color scale in the viewport, use setColorScaleMinMax to change the displayed values
void toggleCopyright(bool)
toggle copyright text
This class describes a property that can be used in components and actions or any class that needs to...
Definition: Property.h:314
void cameraOrientationChanged(QAction *selectedAction)
Definition: InteractiveViewer.cpp:2001
InteractiveViewerFrame is just a QFrame that delegates all key events to its InteractiveViewer.
Definition: InteractiveViewer.h:69
@ PIXEL_PICKING
pick a pixel on a Slice
Definition: InteractiveViewer.h:154
InteractiveViewerFrame(QWidget *parent, InteractiveViewer *s3D)
default constructor
Definition: InteractiveViewer.h:72
const QString & getName() const
get the name of the property
Definition: Property.cpp:73
QAction * glyphAction
Definition: InteractiveViewer.h:461
@ Hidden
the object is hidden
Definition: InterfaceGeometry.h:76
@ SELECTION_ONLY
the selected Components are in default mode, the non-selected are hidden
Definition: InteractiveViewer.h:169
QAction * highlightSelectionOnlyAction
Definition: InteractiveViewer.h:466
vtkSmartPointer< vtkImageData > get3DImageActor
Definition: sdk/libraries/core/component/Component.h:681
void toggleInterpolation()
for InterfaceBitMap, toggle the interpolation mode (intern method, not a property because it can only...
Definition: InteractiveViewer.cpp:1674
void resetCamera()
reset the camera to the default position, default FOV.
Property * backgroundColorProperty
The property that stands for the background color of the viewer.
Definition: InteractiveViewer.h:577
controlMode
current control mode
Definition: RendererWidget.cpp:522
~InteractiveViewer() override
Destructor.
Definition: InteractiveViewer.cpp:262
QToolBar * viewerToolBar
the QToolBar for the InteractiveViewer
Definition: InteractiveViewer.h:439
Action class is an abstract class that enables you to build a action (generally on a component)....
Definition: Action.h:230
void toggleAxes(bool)
display the axes
@ CELLS
data are attached to cells
Definition: MeshComponent.h:68
QAction * backgroundColorAction
background color
Definition: InteractiveViewer.h:479
bool isChangingSlice
Indicates that this viewer is changing the slice by the slice slider.
Definition: InteractiveViewer.h:526
virtual void setGradientBackground(bool)
set gradient background on/off
Definition: InteractiveViewer.cpp:1608
void startWhatsThisSection(const QString &title="")
start a table (section) in the what's this message
Definition: InteractiveViewer.cpp:1037
static void showStatusBarMessage(QString msg, int timeout=0)
Set a message to the status bar.
Definition: Application.cpp:322
void setAttribute(const QString &attribute, const QVariant &value)
Set a given property for this attribute.
Definition: Property.cpp:184
virtual bool getVisibility(Viewer *) const
get the visibility of a viewer
Definition: sdk/libraries/core/component/Component.cpp:288
const std::string getName() const
get the name of the component
Definition: modeling/libraries/pml/Component.h:147
static QString defaultNames[5]
the QString array containing all InteractiveViewer instance default names
Definition: InteractiveViewer.h:368
@ POINTS
data are attached to point
Definition: MeshComponent.h:67
virtual void pixelPicked(double, double, double)=0
Return 2D Axes at the proper slice origin.
void refresh(Viewer *whoIsAsking=nullptr) override
Refresh the display.
Definition: InteractiveViewer.cpp:527
QAction * controlModeTrackballAction
to change the camera control mode
Definition: InteractiveViewer.h:470
InteractiveViewerFrame * frame
the InteractiveViewer frame
Definition: InteractiveViewer.h:424
void refreshRenderer()
just refresh the renderer
Definition: InteractiveViewer.cpp:690
@ LEFT_UP
World axes are seen so that x points to the left, y points upward.
Definition: RendererWidget.h:166
@ RIGHT_DOWN
World axes are seen so that x points to the right, y points downward.
Definition: RendererWidget.h:165
MeshDataFilterModel * scalarDataModel
Definition: InteractiveViewer.h:444
const char * description
Definition: applications/cepgenerator/main.cpp:37
@ NO_PICKING
no picking possible
Definition: InteractiveViewer.h:159
void initWhatsThis()
initialize the what's this html string
Definition: InteractiveViewer.cpp:1032
QFrame * sideFrame
the right side frame (this is where the slider and screenshot buttons are shown)
Definition: InteractiveViewer.h:427
void resetCamera()
Reset scene camera.
Definition: InteractiveViewer.cpp:1480
void initPicking(PickingMode)
Init the picker with a given picking mode.
Definition: InteractiveViewer.cpp:1722
QString getName() const override
get the name to be displayed
Definition: sdk/libraries/core/component/Component.h:849
@ RIGHT_UP
World axes are seen so that x points to the right, y points upward.
Definition: RendererWidget.h:167
static QMap< QString, InteractiveViewer * > viewers
the map containing all the InteractiveViewer instances
Definition: InteractiveViewer.h:365
QAction * toggleAxesAction
button allows one to display the Axes in the InteractiveViewer
Definition: InteractiveViewer.h:482
virtual bool getFrameVisibility(Viewer *viewer) const =0
Get the Component Frame visibility for a given viewer.
QMenu * getMenu() override
get the explorer menu
Definition: InteractiveViewer.cpp:713
void setActiveCamera(QString cameraName)
Set the active virtual camera.
Definition: InteractiveViewer.cpp:1527
void picked()
get the picker and populate the picked component with the picked stuff
Definition: InteractiveViewer.cpp:2125
std::vector< Component * > pickedComponent
list of Component that are currently picked, correctly displayed in the InteractiveViewer,...
Definition: InteractiveViewer.h:517
HighlightMode
Definition: InteractiveViewer.h:166
QAction * cameraOrientationRightUpAction
Definition: InteractiveViewer.h:476
PropertyObject * propertyObject
The property object that holds the properties of this viewer.
Definition: InteractiveViewer.h:567
@ OFF
both selected and non-selected Components are in default mode
Definition: InteractiveViewer.h:167
@ TRACKBALL
the mouse is used as a trackball (default)
Definition: RendererWidget.h:176
@ POINT_PICKING
pick a point in the VTK representation of an Geometry
Definition: InteractiveViewer.h:155
setBackgroundColor(0.0, 0.0, 0.0)
QAction * pickPointAction
action of the picking menu
Definition: InteractiveViewer.h:503
QString whatsThis
Definition: InteractiveViewer.h:542
SliderSpinBoxWidget * sliceSlider
Slider used to control the slice index in a InteractiveViewer.
Definition: InteractiveViewer.h:421
bool getColorScale() const
get the color display state
QAction * wireframeAction
Definition: InteractiveViewer.h:458
cameraOrientation
state of the initial camera orientation
Definition: RendererWidget.cpp:523
QList< Component * > ComponentList
A list of Component.
Definition: CamiTKAPI.h:89
static InteractiveViewer * getSagittalViewer()
get the sagittal default InteractiveViewer (provided for convenience, equivalent to getViewer("sagitt...
Definition: InteractiveViewer.cpp:194
void keyPressEvent(QKeyEvent *e) override
key events (do nothing but pass on e to the parent widget), please do not add any shortcut management...
void getBoundsOfSelected(double *bound)
Compute the bounding box of the selected elements [xmin,xmax, ymin,ymax, zmin,zmax].
Definition: InteractiveViewer.cpp:1623
@ SELECTION
the selected Components are in default mode, the non-selected Components are shaded
Definition: InteractiveViewer.h:168
void selectionChanged()
this signal is emitted when the current selection was changed by the viewer
QAction * pickCellRegionAction
Definition: InteractiveViewer.h:505
@ Points
the points are visible
Definition: InterfaceGeometry.h:69
bool eventFilter(QObject *object, QEvent *event) override
Event filter of this class instance to watch its properties instances.
Definition: InteractiveViewer.cpp:2341
Q_ENUMS(ControlMode CameraOrientation)
RendererWidget implements all support methods to use camiTK with Qt interface.
void setColorScale(bool)
Definition: InteractiveViewer.cpp:1808
QAction * controlModeJoystickAction
Definition: InteractiveViewer.h:471
void getBounds(double *bounds) override
compute the object's bounding box [xmin,xmax, ymin,ymax, zmin,zmax], see Component....
Definition: sdk/libraries/core/component/Component.cpp:462
void cellPicked(vtkIdType, bool)
an inherited class can redefine this method something specific.
Definition: sdk/libraries/core/component/Component.h:618
@ NOT_SUPPORTED
Definition: RendererWidget.h:202
void pickingModeChanged(QAction *)
Definition: InteractiveViewer.cpp:2109
void createProperties()
Create and handle the CamiTK properties of this viewer.
Definition: InteractiveViewer.cpp:2296
static bool isAlive(Component *)
does this Component still exists?
Definition: Application.cpp:828
void setColorScaleMinMax(double m, double M)
set the min and max values.
static Action * getAction(QString)
get a registered action given its name
Definition: Application.cpp:762
void addActor(Component *, vtkSmartPointer< vtkProp >)
add the given actor of the given Component to the renderer and insert it in the map
Definition: InteractiveViewer.cpp:705
static QString getName()
get the application name
Definition: Application.cpp:201
vtkSmartPointer< vtkCamera > vtkSmartPointerCamera
Definition: InteractiveViewer.h:66
void setColorScaleTitle(QString t)
set the color scale title.
Property * backfaceCullingProperty
Property that tells whether the viewer uses the backface culling option or not.
Definition: InteractiveViewer.h:592
CamiTK intern class to help automatically sort or show specific data.
Definition: MeshDataModel.h:131
void initActions()
init all the actions (called only once in the getWidget() method)
Definition: InteractiveViewer.cpp:824
A component is something that composed something and could also be a part of something.
Definition: modeling/libraries/pml/Component.h:48
QString getName() const
get the scene name
Definition: InteractiveViewer.cpp:517
Viewer is an abstract viewer.
Definition: Viewer.h:55
Property * pointSizeProperty
Property which defines the point size of each point in the 3D viewer.
Definition: InteractiveViewer.h:602
QMap< QString, vtkSmartPointerCamera > cameraMap
all the available camera
Definition: InteractiveViewer.h:410
@ GEOMETRY
this Component can be displayed as a GEOMETRY
Definition: sdk/libraries/core/component/Component.h:308
unsigned int getNumberOfProp() const
return the number of additional prop
Definition: sdk/libraries/core/component/Component.h:567
void pointPicked(vtkIdType, bool)
an inherited class can redefine this method something specific.
Definition: sdk/libraries/core/component/Component.h:613
virtual void setLinesAsTubes(bool)=0
set the lines as tubes (works only for vtkDataSet representation that contains lines)
void updateActions()
update the viewer menu depending on the selection,...
Definition: InteractiveViewer.cpp:1824
QComboBox * scalarDataComboBox
the ComboBox for mesh scalar data
Definition: InteractiveViewer.h:442
RendererWidget * rendererWidget
Definition: InteractiveViewer.h:417
QAction * toggleBackfaceCullingAction
back face culling
Definition: InteractiveViewer.h:497
PickingMode
Definition: InteractiveViewer.h:153
bool pickingEffectIsSelecting
picking effect while mouse button is kept pressed is selecting (depends on the selection state of the...
Definition: InteractiveViewer.h:529
void endWhatsThisSection()
end a table (section) in the what's this message
Definition: InteractiveViewer.cpp:1044
QAction * cameraOrientationLeftUpAction
Definition: InteractiveViewer.h:475
InteractiveViewer(QString &name, ViewerType type)
Construtor.
Definition: InteractiveViewer.cpp:203
void xAngleChanged(double angle)
Slot called when the InteractiveViewer x angle update has been changed.
Definition: InteractiveViewer.cpp:1569
void setLabel(bool)
if true currently selected Components label will have their label on (shown)
Definition: InteractiveViewer.cpp:2067
@ Wireframe
the wireframe is visible
Definition: InterfaceGeometry.h:68
QToolBar * screenshotActionMenu
the screenshot action is inside this menu (in the slice viewer side bar)
Definition: InteractiveViewer.h:430
QAction * pointsAction
Definition: InteractiveViewer.h:459
QAction * pickPointRegionAction
Definition: InteractiveViewer.h:506
CameraOrientation
Definition: RendererWidget.h:164
@ None
no rendering mode, the InterfaceGeometry is not visible
Definition: InterfaceGeometry.h:66
void highlightModeChanged(QAction *selectedAction)
Definition: InteractiveViewer.cpp:1978
Property * backgroundGradientColorProperty
Property that tells whether the viewer use a gradient background color or not.
Definition: InteractiveViewer.h:582
static const ComponentList & getTopLevelComponents()
get the current application wide list of instantiated top-level Components.
Definition: Application.cpp:884
static InteractiveViewer * getCoronalViewer()
get the coronal default InteractiveViewer (provided for convenience, equivalent to getViewer("coronal...
Definition: InteractiveViewer.cpp:190
@ SLICE
this Component can be displayed as a SLICE
Definition: sdk/libraries/core/component/Component.h:309
void clearSelection()
clear the selection
Definition: Viewer.cpp:75
void setGlyph(bool)
Definition: InteractiveViewer.cpp:2079
Basic component to manage any kind of mesh.
Definition: MeshComponent.h:53
static InteractiveViewer * getViewer(QString)
get a viewer by its name (return NULL if no instance has the given name, use getNewViewer to create o...
Definition: InteractiveViewer.cpp:119
QAction * toggleOrientationDecorationsAction
button allows one to display orientation decoration in SLICE_VIEWER mode
Definition: InteractiveViewer.h:485
void refresh()
refresh the display
QAction * toggleLabelAction
button allows one to display the labels of the object3D
Definition: InteractiveViewer.h:491
void toggleCopyright(bool)
show/hide the copyright in 3D
Definition: InteractiveViewer.cpp:2061
@ AREA_CELL_PICKING
pick cells that are inside a rectangular area in the VTK representation of an Geometry
Definition: InteractiveViewer.h:157
void getBounds(double *bound)
Compute the bounding box of all displayed Component.
Definition: InteractiveViewer.cpp:1618
virtual bool addProperty(Property *)
Tag a new CamiTK property to this object.
Definition: PropertyObject.cpp:76
void renderingActorsChanged()
Definition: InteractiveViewer.cpp:1939
Property * screenshotActionProperty
Property that tells whether the screenshot action is visible or not.
Definition: InteractiveViewer.h:597
vtkSmartPointer< vtkEventQtSlotConnect > connector
Definition: InteractiveViewer.h:534
QWidgetAction * scalarDataColorAction
Definition: InteractiveViewer.h:462
void rightClick()
Definition: InteractiveViewer.cpp:2284
QAction * toggleScreenshotAction
visibility of the screenshot action in the side toolbar of slice viewer
Definition: InteractiveViewer.h:500
@ AREA_POINT_PICKING
pick points that are inside a rectangular area in the VTK representation of an Geometry
Definition: InteractiveViewer.h:158
vtkSmartPointer< vtkCamera > getCamera(QString cameraName="default")
get a camera by its name, creates one if it does not exist already.
Definition: InteractiveViewer.cpp:1534
void toggleAxes(bool)
Definition: InteractiveViewer.cpp:2046
This class describes a property object.
Definition: PropertyObject.h:94
void setBackfaceCulling(bool)
set the backface culling mode (default is true).
Definition: InteractiveViewer.cpp:2096
Property * linesAsTubesProperty
Property that tells whether the viewer uses lines as tubes or not.
Definition: InteractiveViewer.h:587
QAction * highlightOffAction
Definition: InteractiveViewer.h:467
QAction * surfaceAction
Definition: InteractiveViewer.h:457
unsigned int numberOfViewedComponent() override
Definition: InteractiveViewer.cpp:522
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:298
#define CAMITK_API
Definition: CamiTKAPI.h:49
void initSettings()
initialize the property object and state using the user settings (user preferences system files ....
Definition: InteractiveViewer.cpp:276
Definition: Action.cpp:36
ViewerType myType
type of InteractiveViewer (display slice or geometry)
Definition: InteractiveViewer.h:389
QObject * getPropertyObject() override
get the InteractiveViewer propertyObject (only non-null for GEOMETRY_VIEWER)
Definition: InteractiveViewer.cpp:507
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:532