Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxVolumeProperty.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 #ifndef CXVOLUMEPROPERTY_H
12 #define CXVOLUMEPROPERTY_H
13 
14 #include "cxResourceVisualizationExport.h"
15 
16 #include <QObject>
17 #include "vtkForwardDeclarations.h"
18 #include "cxForwardDeclarations.h"
19 
20 namespace cx
21 {
22 
23 typedef boost::shared_ptr<class VolumeProperty> VolumePropertyPtr;
24 
34 class cxResourceVisualization_EXPORT VolumeProperty : public QObject
35 {
36  Q_OBJECT
37 public:
38  static VolumePropertyPtr create() { return VolumePropertyPtr(new VolumeProperty()); }
39  void setImage(ImagePtr image);
40 // ImagePtr getImage();
41  vtkVolumePropertyPtr getVolumeProperty();
42 
43 private slots:
44  void transferFunctionsChangedSlot();
45 
46 private:
48 
49  ImagePtr mImage;
50  vtkVolumePropertyPtr mVolumeProperty;
51  vtkPiecewiseFunctionPtr mOpacityTransferFunction;
52  vtkColorTransferFunctionPtr mColorTransferFunction;
53 };
54 
55 
56 } // namespace cx
57 
58 
59 #endif // CXVOLUMEPROPERTY_H
vtkSmartPointer< class vtkVolumeProperty > vtkVolumePropertyPtr
boost::shared_ptr< class Image > ImagePtr
Definition: cxDicomWidget.h:27
vtkSmartPointer< class vtkPiecewiseFunction > vtkPiecewiseFunctionPtr
vtkSmartPointer< class vtkColorTransferFunction > vtkColorTransferFunctionPtr
static VolumePropertyPtr create()
boost::shared_ptr< class VolumeProperty > VolumePropertyPtr
Namespace for all CustusX production code.