1 /*=========================================================================
4 Module: $RCSfile: marContourVO.cpp,v $
6 Date: $Date: 2009/05/14 13:55:07 $
7 Version: $Revision: 1.1 $
9 Copyright: (c) 2002, 2003
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notice for more information.
16 =========================================================================*/
18 #include "marContourVO.h"
20 // ----------------------------------------------------------------------------
21 marContour* marContourVO::getContour( ) {
25 // ----------------------------------------------------------------------------
26 void marContourVO::setContour(marContour* cont) {
30 // ----------------------------------------------------------------------------
31 vtkPoints* marContourVO::get3DContour( ) {
35 // ----------------------------------------------------------------------------
36 void marContourVO::set3DContour(vtkPoints* cont) {
40 // ----------------------------------------------------------------------------
41 vtkPolyData* marContourVO::get2DContour( ) {
45 // ----------------------------------------------------------------------------
46 void marContourVO::set2DContour(vtkPolyData* cont) {
50 // ----------------------------------------------------------------------------
51 vtkPoints* marContourVO::get2DDiameterMin( ) {
52 return _2DDiameterMin;
55 // ----------------------------------------------------------------------------
56 void marContourVO::set2DDiameterMin(vtkPoints* diam) {
57 _2DDiameterMin = diam;
60 // ----------------------------------------------------------------------------
61 vtkPoints* marContourVO::get2DDiameterMax( ) {
62 return _2DDiameterMax;
65 // ----------------------------------------------------------------------------
66 void marContourVO::set2DDiameterMax(vtkPoints* diam) {
67 _2DDiameterMax = diam;
70 // ----------------------------------------------------------------------------
71 double marContourVO::getSignal( ) {
75 // ----------------------------------------------------------------------------
76 void marContourVO::setSignal(double signal) {
81 // ----------------------------------------------------------------------------
82 int marContourVO::getType( ) {
86 // ----------------------------------------------------------------------------
87 void marContourVO::setType(int cont) {
91 // ----------------------------------------------------------------------------
92 vtkContourFilter* marContourVO::getIsocontour()
97 // ----------------------------------------------------------------------------
98 void marContourVO::setIsocontour(vtkContourFilter* iso)
103 // ----------------------------------------------------------------------------
104 vtkCleanPolyData* marContourVO::getIsocontourCpd()
106 return _isocontour_cpd;
109 // ----------------------------------------------------------------------------
110 void marContourVO::setIsocontourCpd(vtkCleanPolyData* isocpd)
112 _isocontour_cpd = isocpd;
115 // ----------------------------------------------------------------------------
116 vtkCleanPolyData* marContourVO::getIsocontourCpd2()
118 return _isocontour_cpd2;
122 // ----------------------------------------------------------------------------
123 void marContourVO::setIsocontourCpd2(vtkCleanPolyData* isocpd)
125 _isocontour_cpd2 = isocpd;
128 // ----------------------------------------------------------------------------
129 vtkPolyDataConnectivityFilter* marContourVO::getIsocontourDcf()
131 return _isocontour_dcf;
134 // ----------------------------------------------------------------------------
135 void marContourVO::setIsocontourDcf(vtkPolyDataConnectivityFilter* isodcf)
137 _isocontour_dcf = isodcf;
140 // ----------------------------------------------------------------------------
141 vtkStripper* marContourVO::getIsocontourStripped()
143 return _isocontour_stripped;
146 // ----------------------------------------------------------------------------
147 void marContourVO::setIsocontourStripped(vtkStripper* isoStripped)
149 _isocontour_stripped = isoStripped;
152 // ----------------------------------------------------------------------------
153 marContourVO::~marContourVO()
155 if (_contours != NULL) { delete _contours; }
156 if (_3Dcontour != NULL) { _3Dcontour->Delete(); }
157 if (_2Dcontours != NULL) { _2Dcontours->Delete(); }
158 if (_2DDiameterMin != NULL) { _2DDiameterMin->Delete(); }
159 if (_2DDiameterMax != NULL) { _2DDiameterMax->Delete(); }
162 if (_isocontour != NULL) { _isocontour->Delete(); }
163 if (_isocontour_cpd != NULL) { _isocontour_cpd->Delete(); }
164 if (_isocontour_dcf != NULL) { _isocontour_dcf->Delete(); }
165 if (_isocontour_cpd2 != NULL) { _isocontour_cpd2->Delete(); }
168 // ----------------------------------------------------------------------------
169 bool marContourVO::isReplaced()
174 // ----------------------------------------------------------------------------
175 void marContourVO::setReplaced(bool rep)
180 marContourVO::marContourVO()