marContourVO.cpp

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003  Program:   wxMaracas
00004  Module:    $RCSfile: marContourVO.cpp,v $
00005  Language:  C++
00006  Date:      $Date: 2009/05/14 13:55:07 $
00007  Version:   $Revision: 1.1 $
00008  
00009   Copyright: (c) 2002, 2003
00010   License:
00011   
00012    This software is distributed WITHOUT ANY WARRANTY; without even 
00013    the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014    PURPOSE.  See the above copyright notice for more information.
00015    
00016 =========================================================================*/
00017 
00018 #include "marContourVO.h"
00019 
00020 // ----------------------------------------------------------------------------
00021 marContour* marContourVO::getContour( ) {
00022         return _contours;
00023 }
00024 
00025 // ----------------------------------------------------------------------------
00026 void marContourVO::setContour(marContour* cont) {
00027         _contours = cont;
00028 }
00029 
00030 // ----------------------------------------------------------------------------
00031 vtkPoints* marContourVO::get3DContour( ) {
00032         return _3Dcontour;
00033 }
00034 
00035 // ----------------------------------------------------------------------------
00036 void marContourVO::set3DContour(vtkPoints* cont) {
00037         _3Dcontour = cont;
00038 }
00039 
00040 // ----------------------------------------------------------------------------
00041 vtkPolyData* marContourVO::get2DContour( ) {
00042         return _2Dcontours;
00043 }
00044 
00045 // ----------------------------------------------------------------------------
00046 void marContourVO::set2DContour(vtkPolyData* cont) {
00047         _2Dcontours = cont;
00048 }
00049 
00050 // ----------------------------------------------------------------------------
00051 vtkPoints* marContourVO::get2DDiameterMin( ) {
00052         return _2DDiameterMin;
00053 }
00054 
00055 // ----------------------------------------------------------------------------
00056 void marContourVO::set2DDiameterMin(vtkPoints* diam) {
00057         _2DDiameterMin = diam;
00058 }
00059 
00060 // ----------------------------------------------------------------------------
00061 vtkPoints* marContourVO::get2DDiameterMax( ) {
00062         return _2DDiameterMax;
00063 }
00064 
00065 // ----------------------------------------------------------------------------
00066 void marContourVO::set2DDiameterMax(vtkPoints* diam) {
00067         _2DDiameterMax = diam;
00068 }
00069 
00070 // ----------------------------------------------------------------------------
00071 double marContourVO::getSignal( ) {
00072         return _signal;
00073 }
00074 
00075 // ----------------------------------------------------------------------------
00076 void marContourVO::setSignal(double signal) {
00077         _signal = signal;
00078 
00079 }                               
00080 
00081 // ----------------------------------------------------------------------------
00082 int marContourVO::getType( ) {
00083         return _contType;
00084 }
00085 
00086 // ----------------------------------------------------------------------------
00087 void marContourVO::setType(int cont) {
00088         _contType = cont;
00089 }
00090 
00091 // ----------------------------------------------------------------------------
00092 vtkContourFilter* marContourVO::getIsocontour()
00093 {
00094         return _isocontour;
00095 }
00096 
00097 // ----------------------------------------------------------------------------
00098 void marContourVO::setIsocontour(vtkContourFilter* iso)
00099 {
00100         _isocontour = iso;
00101 }
00102 
00103 // ----------------------------------------------------------------------------
00104 vtkCleanPolyData* marContourVO::getIsocontourCpd()
00105 {
00106         return _isocontour_cpd;
00107 }
00108 
00109 // ----------------------------------------------------------------------------
00110 void marContourVO::setIsocontourCpd(vtkCleanPolyData* isocpd)
00111 {
00112         _isocontour_cpd = isocpd;
00113 }
00114 
00115 // ----------------------------------------------------------------------------
00116 vtkCleanPolyData* marContourVO::getIsocontourCpd2()
00117 {
00118         return _isocontour_cpd2;
00119 }
00120 
00121 
00122 // ----------------------------------------------------------------------------
00123 void marContourVO::setIsocontourCpd2(vtkCleanPolyData* isocpd)
00124 {
00125         _isocontour_cpd2 = isocpd;
00126 }
00127 
00128 // ----------------------------------------------------------------------------
00129 vtkPolyDataConnectivityFilter* marContourVO::getIsocontourDcf()
00130 {
00131         return _isocontour_dcf;
00132 }
00133 
00134 // ----------------------------------------------------------------------------
00135 void marContourVO::setIsocontourDcf(vtkPolyDataConnectivityFilter*      isodcf)
00136 {
00137         _isocontour_dcf = isodcf;
00138 }
00139 
00140 // ----------------------------------------------------------------------------
00141 vtkStripper* marContourVO::getIsocontourStripped()
00142 {
00143         return _isocontour_stripped;
00144 }
00145 
00146 // ----------------------------------------------------------------------------
00147 void marContourVO::setIsocontourStripped(vtkStripper* isoStripped)
00148 {
00149         _isocontour_stripped = isoStripped;
00150 }
00151 
00152 // ----------------------------------------------------------------------------
00153 marContourVO::~marContourVO()
00154 {
00155         if (_contours != NULL) { delete _contours; }
00156         if (_3Dcontour != NULL) { _3Dcontour->Delete(); }
00157         if (_2Dcontours != NULL) { _2Dcontours->Delete(); }
00158         if (_2DDiameterMin != NULL) { _2DDiameterMin->Delete(); }
00159         if (_2DDiameterMax != NULL) { _2DDiameterMax->Delete(); }
00160         _signal = 0.0;
00161         _contType = -1;
00162         if (_isocontour != NULL) { _isocontour->Delete(); }
00163         if (_isocontour_cpd != NULL) { _isocontour_cpd->Delete(); }
00164         if (_isocontour_dcf != NULL) { _isocontour_dcf->Delete(); }
00165         if (_isocontour_cpd2 != NULL) { _isocontour_cpd2->Delete(); }
00166 }
00167 
00168 // ----------------------------------------------------------------------------
00169 bool marContourVO::isReplaced()
00170 {
00171         return _replaced;
00172 }
00173 
00174 // ----------------------------------------------------------------------------
00175 void marContourVO::setReplaced(bool rep)
00176 {
00177         _replaced = rep;
00178 }
00179 
00180 marContourVO::marContourVO()
00181 {
00182         _replaced = false;
00183 }

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1