NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cxUltrasoundSectorSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 
13 
14 /*=========================================================================
15 
16 UltrasoundSectorSource creates a polygon matching the utrasound sector.
17 The geometric parameters for the ultrasound sector are fetched from the
18 class UltrasoundSector. The ultrasound video image will be texture
19 mapped onto this polygon.
20 =========================================================================*/
21 // .NAME UltrasoundSectorSource - creates a polygon matching the utrasound sector.
22 // .SECTION Description
23 // UltrasoundSectorSource creates a polygon matching the utrasound sector.
24 // The geometric parameters for the ultrasound sector are fetched from the
25 // class UltrasoundSector. The ultrasound video image will be texture
26 // mapped onto this polygon.
27 // .SECTION See Also
28 // vtkDiskSource
29 
30 #ifndef __UltrasoundSectorSource_h
31 #define __UltrasoundSectorSource_h
32 
33 #include "cxResourceVisualizationExport.h"
34 
35 #include "vtkPolyDataAlgorithm.h"
36 #include "vtkPolyData.h"
37 #include "vtkSmartPointer.h"
38 typedef vtkSmartPointer<vtkPolyData> vtkPolyDataPtr;
39 
52 class cxResourceVisualization_EXPORT UltrasoundSectorSource : public vtkPolyDataAlgorithm
53 {
54 public:
55  static UltrasoundSectorSource *New();
56  vtkTypeMacro(UltrasoundSectorSource,vtkPolyDataAlgorithm);
57  void PrintSelf(ostream& os, vtkIndent indent);
58 
59  void setProbeSector(vtkPolyDataPtr sector);
60 
61 protected:
64 
65  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
66  int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
67 
68 private:
69  vtkPolyDataPtr mSector;
70 
71  UltrasoundSectorSource(const UltrasoundSectorSource&); // Not implemented.
72  void operator=(const UltrasoundSectorSource&); // Not implemented.
73 };
74 
75 
76 #endif
vtkPolyDataPtr
vtkSmartPointer< vtkPolyData > vtkPolyDataPtr
Definition: cxUltrasoundSectorSource.h:38
vtkPolyDataPtr
vtkSmartPointer< class vtkPolyData > vtkPolyDataPtr
Definition: cxAirwaysFilterService.h:35
UltrasoundSectorSource
Source for an Ultrasound sector. The output vtkPolyData contains a polygon plus texture coordinates....
Definition: cxUltrasoundSectorSource.h:52
UltrasoundSectorSource::~UltrasoundSectorSource
~UltrasoundSectorSource()
Definition: cxUltrasoundSectorSource.h:63