UsTK : Ultrasound ToolKit
version 2.0.1 under development (2024-11-21)
|
#include <visp3/ustk_gui/usVTKConverter.h>
Static Public Member Functions | |
static void | convert (const usImagePostScan3D< unsigned char > &postScanImage, vtkSmartPointer< vtkImageData > &vtkPostScanImage, vtkSmartPointer< vtkImageImport > importer=NULL) |
static void | convert (const usImagePreScan3D< unsigned char > &preScanImage, vtkSmartPointer< vtkImageData > &vtkPreScanImage, vtkSmartPointer< vtkImageImport > importer=NULL) |
static void | convert (vtkSmartPointer< vtkImageData > &vtkPostScanImage, usImagePostScan2D< unsigned char > &postScanImage) |
static void | convert (const vpHomogeneousMatrix &, vtkMatrix4x4 *) |
static void | convert (vtkMatrix4x4 *, vpHomogeneousMatrix &) |
Class to convert ustk image types to vtkImageData.
Definition at line 65 of file usVTKConverter.h.
|
static |
Converts a usImagePostScan3D to a vtkImageData.
Definition at line 49 of file usVTKConverter.cpp.
References usImage3D< Type >::getConstData(), usImagePostScan3D< Type >::getElementSpacingX(), usImagePostScan3D< Type >::getElementSpacingY(), usImagePostScan3D< Type >::getElementSpacingZ(), usImage3D< Type >::getHeight(), usImage3D< Type >::getNumberOfFrames(), and usImage3D< Type >::getWidth().
Referenced by us2DSceneWidget::changeMatrix(), us2DSceneWidget::drawLine(), us2DSceneWidget::getCurrentSlice(), us2DSceneWidget::mouseMoveEvent(), us2DSceneWidget::mousePressEvent(), usResliceMatrixViewer::openPostScan3D(), usResliceMatrixViewer::ResetViews(), us2DSceneWidget::setPolyDataMeshContour(), us2DSceneWidget::setPolyDataPlaneContour(), us3DSceneWidget::updateMatrix1(), us3DSceneWidget::updateMatrix2(), us3DSceneWidget::updateMatrix3(), usMeshDeformation::updateMeshPosition(), usVirtualNeedle::updateNeedlePosition(), us3DSceneSlicing::us3DSceneSlicing(), usMedicalImageViewer::usMedicalImageViewer(), usResliceMatrixViewer::usResliceMatrixViewer(), and us2DSceneWidget::wheelEvent().
|
static |
Converts a usImagePreScan3D to a vtkImageData.
Definition at line 73 of file usVTKConverter.cpp.
References usImage3D< Type >::getConstData(), usImage3D< Type >::getHeight(), usImage3D< Type >::getNumberOfFrames(), and usImage3D< Type >::getWidth().
|
static |
Converts a vpHomogeneousMatrix to a vtkMatrix4x4.
Definition at line 120 of file usVTKConverter.cpp.
|
static |
Converts a vtkMatrix4x4 to a vpHomogeneousMatrix.
Definition at line 130 of file usVTKConverter.cpp.
|
static |
Converts a vtkImageData to a usImagePostScan2D. Usefull to extract a slice from a volume. Performs a deep copy.
Definition at line 95 of file usVTKConverter.cpp.
References usImagePostScan2D< Type >::setHeightResolution(), and usImagePostScan2D< Type >::setWidthResolution().