![]() |
Computer Assited Medical Intervention Tool Kit
version 4.1
|
#include "CamiTKAPI.h"#include <vtkVersion.h>#include <vtkSmartPointer.h>#include <vtkInteractorStyle.h>#include <vtkRenderWindowInteractor.h>#include <QVTKInteractor.h>#include <utility>Go to the source code of this file.
Classes | |
| class | camitk::ScreenshotFormatInfo |
| sub-class containing all information concerning exporting images (screenshot) More... | |
| class | camitk::vtkInteractorStylePick |
| Interactor used when we are in picking mode. More... | |
Namespaces | |
| camitk | |
Functions | |
| void | camitk::mouseMoveEvent (QMouseEvent *event) override |
| overloaded mouse move handler because a potentialbug in vtk 5.2.1 More... | |
| void | camitk::mousePressEvent (QMouseEvent *event) override |
| void | camitk::mouseReleaseEvent (QMouseEvent *event) override |
| overloaded mouse release handler because a potentialbug in vtk 5.2.1 More... | |
| camitk::Q_ENUMS (ControlMode CameraOrientation) | |
| RendererWidget implements all support methods to use camiTK with Qt interface. More... | |
| camitk::RendererWidget (QWidget *parent=nullptr, ControlMode mode=RendererWidget::TRACKBALL) | |
| constructors. More... | |
| void | camitk::resetClippingPlanes (double *bounds=nullptr) |
| reset the camera clipping plane to a given bounding box If no bounds are given, reset to show all visible actors More... | |
| camitk::~RendererWidget () override | |
| destructor More... | |
picking and interaction | |
to manage interactions | |
| void | camitk::actorPicked (vtkSmartPointer< vtkPicker >) |
| void | camitk::endPicking () |
| end picking More... | |
| ControlMode | camitk::getControlMode () const |
| get the current control mode More... | |
| static const ScreenshotFormatInfo * | camitk::getScreenshotFormatInfo (ScreenshotFormat) |
| retun the information concerning the supporting format using an index corresponding to the enum (check index validity) More... | |
| static const ScreenshotFormatInfo * | camitk::getScreenshotFormatInfo (unsigned int) |
| return the information concerning the supporting format using an index corresponding to the enum (check index validity) More... | |
| void | camitk::keyPressEvent (QKeyEvent *e) override |
| key events (do nothing but pass on e to the parent widget), please do not add any shortcut management here (see note in implementation)! More... | |
| void | camitk::pick () |
| Perform picking using the current mouse position. More... | |
| void | camitk::pickActor (int x, int y) |
| Perform picking from screen coordinates. More... | |
| void | camitk::refresh () |
| refresh the display More... | |
| void | camitk::rightButtonPressed () |
| send when the mouse right button is clicked More... | |
| void | camitk::screenshot (QString filename) |
| save the screenshot in a file More... | |
| void | camitk::setAreaPicking (bool areaPicking) |
| Set the interaction mode like picking or control. More... | |
| void | camitk::setControlMode (ControlMode mode) |
| Set the interaction like trackball or joystick style. More... | |
| void | camitk::setPicker (vtkSmartPointer< vtkAbstractPropPicker > woodyWood) |
| set the picker to handle the action More... | |
| void | camitk::startPicking () |
| manage left mouse release interactions More... | |
add/manipulate actors | |
| void | camitk::actorTransform (vtkSmartPointer< vtkActor >, double *, int, double **, double *, double *) |
| perform the transformation of the actor More... | |
| void | camitk::addProp (vtkSmartPointer< vtkProp > p, bool refresh=false) |
| add a vtkActor or vtkActor2D, updating the cull face depending on the current state. More... | |
| bool | camitk::containsProp (vtkSmartPointer< vtkProp >) |
| is the given vtkProp (e.g. vtkActor or vtkActor2D) in this renderer More... | |
| void | camitk::removeProp (vtkSmartPointer< vtkProp > p, bool refresh=false) |
| remove the given vtkProp (e.g. More... | |
callback and interaction | |
manage connections between vtk objets events and qt slots | |
| static void | camitk::divertionCallback (vtkObject *caller, unsigned long eid, void *clientdata, void *calldata) |
| a diverter observer callback (to be used to divert undesired events) More... | |
screenshot management | |
build the map | |
| static void | camitk::buildScreenshotMap () |
| static const ScreenshotFormatInfo * | camitk::getScreenshotFormatInfo (QString) |
| get the information from the extension (QString) More... | |
Variables | |
extra actors managements | |
is the gradient background displayed | |
| vtkSmartPointer< vtkScalarBarActor > | camitk::colorScale |
| the color scale displaying the lookup table + values More... | |
| vtkSmartPointer< vtkActor2D > | camitk::orientationDecorationActors [4] |
| vtkSmartPointer< vtkTextMapper > | camitk::orientationDecorationsTextMapper [4] |
view/camera settings | |
| void | camitk::computeVisiblePropBounds (double *bounds) |
| get the bounding box of all visible actors [xmin,xmax, ymin,ymax, zmin,zmax] More... | |
| vtkCamera * | camitk::getActiveCamera () |
| get the active camera More... | |
| bool | camitk::getBackfaceCulling () const |
| Get the current state of backface culling. More... | |
| void | camitk::getBackgroundColor (double &, double &, double &) |
| get the background color (rgb) More... | |
| RendererWidget::CameraOrientation | camitk::getCameraOrientation () const |
| Return the current axes mode. More... | |
| void | camitk::getCameraSettings (double *position, double *focalPoint, double *viewUp) |
| get camera settings information (position, what is looked at and how) in world coordinates More... | |
| bool | camitk::getColorScale () const |
| get the color display state More... | |
| bool | camitk::getGradientBackground () |
| get the current state of the gradient background More... | |
| bool | camitk::getLightFollowCamera () const |
| Get the current state of the property. More... | |
| void | camitk::getMouse3DCoordinates (double &x, double &y, double &z) |
| get the mouse coordinates in 3D More... | |
| double | camitk::getPointSize () const |
| get the current value of point size More... | |
| bool | camitk::lightFollowCamera |
| Is the light following the camera. More... | |
| void | camitk::resetCamera () |
| reset the camera to the default position, default FOV. More... | |
| void | camitk::resetCamera (double *bounds) |
| reset the camera to the default position, default FOV and use the given bounds to focus on More... | |
| void | camitk::resetCameraSettings () |
| void | camitk::rotateCamera (double angle, int axe) |
| Rotate the camera around param "axe" of "angle" degrees. More... | |
| void | camitk::setActiveCamera (vtkCamera *cam) |
| set active camera More... | |
| void | camitk::setBackfaceCulling (bool) |
| void | camitk::setBackgroundColor (double, double, double) |
| set the background color (rgb) More... | |
| void | camitk::setCameraOrientation (RendererWidget::CameraOrientation) |
| Set the current axes mode. More... | |
| void | camitk::setColorScale (bool) |
| display the color scale in the viewport, use setColorScaleMinMax to change the displayed values More... | |
| void | camitk::setColorScaleMinMax (double m, double M) |
| set the min and max values. More... | |
| void | camitk::setColorScaleTitle (QString t) |
| set the color scale title. More... | |
| void | camitk::setGradientBackground (bool) |
| set the gradient background More... | |
| void | camitk::setLightFollowCamera (bool) |
| Set/unset the light to follow the camera. More... | |
| void | camitk::setOrientationDecorationsLetters (QString letters[4]) |
| give the lettres for orientation decoration: Left, Right, Top, Down More... | |
| void | camitk::setPointSize (double size) |
| set the default point size More... | |
| void | camitk::toggleAxes (bool) |
| display the axes More... | |
| void | camitk::toggleCopyright (bool) |
| toggle copyright text More... | |
| void | camitk::toggleOrientationDecorations (bool) |
| display orientation decorations More... | |
| void | camitk::toogle3DRedBlue () |
| toggle stereo 3D red/blue rendering (you will need red/blue glasses) More... | |
| void | camitk::updateAxes () |
| update the axes sizes More... | |
1.8.16