NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkSingleUltrasoundWidget.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef niftkSingleUltrasoundWidget_h
16 #define niftkSingleUltrasoundWidget_h
17 
18 #include "niftkIGIOverlayEditorExports.h"
20 
21 namespace niftk
22 {
33 class NIFTKIGIOVERLAYEDITOR_EXPORT SingleUltrasoundWidget : public Single3DViewWidget
34 {
35  Q_OBJECT
36 
37 public:
38 
39  SingleUltrasoundWidget(QWidget* parent = 0,
40  Qt::WindowFlags f = 0,
41  mitk::RenderingManager* renderingManager = 0);
42 
43  virtual ~SingleUltrasoundWidget();
44 
48  virtual void Update();
49 
54  virtual void SetImageNode(mitk::DataNode* node);
55 
60  void SetClipToImagePlane(const bool& clipToImagePlane);
61 
62 private:
63 
70  void UpdateCameraToTrackImage();
71 
75  void RemoveTextureMapper();
76 
77  // Turn on/off clipping. When off, clipping range is defined by
78  // member variables in base class. When on, the camera is at a fixed
79  // distance (1000mm) from the image plane, so we simply set +/- 1mm.
80  bool m_ClipToImagePlane;
81 };
82 
83 } // end namespace
84 
85 #endif
Derived from niftk::Single3DViewWidget to provide a widget that given an image, will always position ...
Definition: niftkSingleUltrasoundWidget.h:33
Base class widget containing a single 3D render window whose purpose is to render a 3D VTK scene...
Definition: niftkSingle3DViewWidget.h:43
Definition: niftkExceptionObject.h:21
GLclampf f
Definition: glew.h:3136