~ubuntu-branches/ubuntu/wily/ginkgocadx/wily-proposed

« back to all changes in this revision

Viewing changes to src/visualizator/visualizator/wxvtk/reconstruction/volumedataset/volumedataset.h

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Tille
  • Date: 2011-05-02 08:09:26 UTC
  • Revision ID: james.westby@ubuntu.com-20110502080926-bql5wep49c7hg91t
Tags: upstream-2.4.1.1
ImportĀ upstreamĀ versionĀ 2.4.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
*  
 
3
*  $Id: volumedataset.h 3558 2011-03-20 20:02:22Z carlos $
 
4
*  Ginkgo CADx Project
 
5
*
 
6
*  Copyright 2008-10 MetaEmotion S.L. All rights reserved.
 
7
*  http://ginkgo-cadx.com
 
8
*
 
9
*  This file is licensed under LGPL v3 license.
 
10
*  See License.txt for details
 
11
*
 
12
*
 
13
*/
 
14
#pragma once
 
15
#include <list>
 
16
#include <yasper/yasper.h>
 
17
#include <api/math/geometria3d.h>
 
18
#include <vtkSmartPointer.h>
 
19
 
 
20
class vtkImageData;
 
21
 
 
22
namespace GNC {
 
23
        namespace GCS {
 
24
                class IContextoEstudioReferido;
 
25
        }
 
26
}
 
27
 
 
28
namespace MedicalViewer {
 
29
        namespace Reconstruction {
 
30
                namespace DataSet {
 
31
 
 
32
                        class Slice {
 
33
                        public:
 
34
                                GNC::GCS::GVector3D<int, int>       dims;
 
35
                                GNC::GCS::GVector3D<double, double> origin;
 
36
                                GNC::GCS::GVector3D<double, double> spacing;
 
37
                                double cosines[9];
 
38
                                int id;
 
39
 
 
40
                                Slice(int id);
 
41
                        };
 
42
 
 
43
                        typedef std::list< GnkPtr<Slice> > SliceList;
 
44
 
 
45
                        class DataSet : public SliceList {
 
46
                        public:
 
47
 
 
48
                                typedef Slice TSlice;
 
49
 
 
50
                                GnkPtr<GNC::GCS::IContextoEstudioReferido> RefStudy;
 
51
                                vtkSmartPointer<vtkImageData> Img;
 
52
 
 
53
                                GNC::GCS::GVector3D<int, int>       dims;
 
54
                                GNC::GCS::GVector3D<double, double> origin;
 
55
                                GNC::GCS::GVector3D<double, double> spacing;
 
56
                                GNC::GCS::GVector3D<double, double> vdir;
 
57
                                double cosines[9];
 
58
 
 
59
                                short MinValue;
 
60
                                short MaxValue;
 
61
 
 
62
                                DataSet(const GnkPtr<GNC::GCS::IContextoEstudioReferido>& ref, const GnkPtr<Slice>& slice);
 
63
 
 
64
                                ~DataSet();
 
65
 
 
66
                                void Compute();
 
67
 
 
68
                                /** Checks if the slice with corresponding cosines can belongs to this dataset **/
 
69
                                bool Add(const GnkPtr<Slice>& slice);
 
70
 
 
71
                        protected:
 
72
                                void DoAdd(const GnkPtr<Slice>& slice);
 
73
                        };
 
74
 
 
75
                        typedef std::list< GnkPtr<DataSet> > DataSetList;
 
76
                }
 
77
        }
 
78
}