open_iA  2020.04
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Classes | Functions
iASlicer.cpp File Reference
#include "iASlicer.h"
#include "defines.h"
#include "dlg_commoninput.h"
#include "dlg_slicer.h"
#include "iAArbitraryProfileOnSlicer.h"
#include "iAChannelData.h"
#include "iAChannelSlicerData.h"
#include "iAConnector.h"
#include "iAConsole.h"
#include "iAMagicLens.h"
#include "iAMathUtility.h"
#include "iAModality.h"
#include "iAModalityList.h"
#include "iAMovieHelper.h"
#include "iARulerWidget.h"
#include "iARulerRepresentation.h"
#include "iASlicerProfile.h"
#include "iASlicerSettings.h"
#include "iASnakeSpline.h"
#include "iAStringHelper.h"
#include "iAToolsITK.h"
#include "iAToolsVTK.h"
#include "iAWrapperText.h"
#include "io/iAIOProvider.h"
#include "mainwindow.h"
#include "mdichild.h"
#include <vtkActor.h>
#include <vtkAxisActor2D.h>
#include <vtkCamera.h>
#include <vtkCommand.h>
#include <vtkCubeSource.h>
#include <vtkDataSetMapper.h>
#include <vtkDiskSource.h>
#include <vtkGenericMovieWriter.h>
#include <vtkGenericOpenGLRenderWindow.h>
#include <vtkImageActor.h>
#include <vtkImageBlend.h>
#include <vtkImageCast.h>
#include <vtkImageChangeInformation.h>
#include <vtkImageData.h>
#include <vtkImageMapper3D.h>
#include <vtkImageResample.h>
#include <vtkImageReslice.h>
#include <vtkInteractorStyleImage.h>
#include <vtkLineSource.h>
#include <vtkLogoRepresentation.h>
#include <vtkLogoWidget.h>
#include <vtkLookupTable.h>
#include <vtkMarchingContourFilter.h>
#include <vtkMath.h>
#include <vtkMatrix4x4.h>
#include <vtkPoints.h>
#include <vtkPolyDataMapper.h>
#include <vtkProperty.h>
#include <vtkQImageToImageSource.h>
#include <vtkRegularPolygonSource.h>
#include <vtkRenderWindowInteractor.h>
#include <vtkRenderer.h>
#include <vtkRendererCollection.h>
#include <vtkScalarBarActor.h>
#include <vtkScalarBarRepresentation.h>
#include <vtkScalarBarWidget.h>
#include <vtkTextActor3D.h>
#include <vtkTextMapper.h>
#include <vtkTextProperty.h>
#include <vtkThinPlateSplineTransform.h>
#include <vtkTransform.h>
#include <vtkVersion.h>
#include <vtkWindowToImageFilter.h>
#include <vtkWorldPointPicker.h>
#include <QBitmap>
#include <QFileDialog>
#include <QIcon>
#include <QKeyEvent>
#include <QtMath>
#include <QMenu>
#include <QMessageBox>
#include <QMouseEvent>
#include <QPainter>
#include <QString>
#include <QtGlobal>
#include <cassert>
Include dependency graph for iASlicer.cpp:

Classes

class  iAInteractorStyleImage
 Custom interactor style for slicers, for disabling certain vtk interactions we do differently. More...
 
class  iAObserverRedirect
 observer needs to be a separate class; otherwise there is an error when destructing, as vtk deletes all its observers... More...
 

Functions

QString axisName (int axis)
 Get the name of the given axis. More...
 
int mapSliceToGlobalAxis (int mode, int index)
 Map the index of an axis of the slicer to the index of the corresponding global axis. More...
 
QString slicerModeString (int mode)
 Get the "name" of the given slicer mode (i.e. the slicer plane, "XY" for iASlicerMode XY). More...
 
 vtkStandardNewMacro (iAInteractorStyleImage)
 

Function Documentation

◆ axisName()

QString axisName ( int  axis)

Get the name of the given axis.

Parameters
axisthe index of the axis (see iAAxisIndex)

◆ mapSliceToGlobalAxis()

int mapSliceToGlobalAxis ( int  mode,
int  index 
)

Map the index of an axis of the slicer to the index of the corresponding global axis.

Parameters
modethe slicer mode,
See also
iASlicerMode
Parameters
indexthe slicer axis index (x=0, y=1, z=2),
See also
iAAxisIndex
Returns
the global axis index; for values of index = 0,1,2 it returns:
  • 1, 2, 0 for mode=YZ
  • 0, 2, 1 for mode=XZ
  • 0, 1, 2 for mode=XY

◆ slicerModeString()

QString slicerModeString ( int  mode)

Get the "name" of the given slicer mode (i.e. the slicer plane, "XY" for iASlicerMode XY).

◆ vtkStandardNewMacro()

vtkStandardNewMacro ( iAInteractorStyleImage  )