FiletoPoly.h

Go to the documentation of this file.
00001 /* $Id: FiletoPoly.h,v 1.8 2005/06/10 07:49:02 pfb Exp $ */
00002 
00003 #ifndef _FiletoPoly_h
00004 #define _FiletoPoly_h
00005 
00010 #include "../../../../Common/Utility/Misc/GoNogo.h"
00011 #include <string>
00012 
00013 class vtkDataSet;
00014 class vtkDecimatePro;
00015 class vtkPolyData;
00016 
00024 class FiletoPoly
00025   {
00026   //****************************************************************************
00027                              public:
00028   
00033   FiletoPoly(const char *pathname);
00034 
00038   virtual ~FiletoPoly();
00039 
00044   bool go() const;
00045 
00050   bool ok() const;
00051 
00056   vtkPolyData *GetOutput() const;
00057 
00062   vtkPolyData *GetDecimatedOutput();
00063 
00070   void decimate(float arg);
00071 
00076   float decimate() const;
00077 
00082   virtual vtkDataSet *GetReaderOutput() const = 0;
00083 
00088   std::string classType() const;
00089 
00093   virtual void ReleaseDataFlagOn();
00094 
00098   virtual void ReleaseDataFlagOff();
00099 
00104   virtual void SetReleaseDataFlag(bool dynamic);
00105 
00110   virtual bool GetReleaseDataFlag() const;
00111     
00115   void DebugOn();
00116 
00120   void DebugOff();
00121 
00126   unsigned int GetDebug() const;
00127 
00128   //****************************************************************************
00129                              protected:
00130   
00134   const char *pathname;
00135 
00139   vtkPolyData *output; 
00140 
00144   GoNogo state; 
00145 
00149   std::string className;
00150 
00154   vtkDecimatePro *decimator;
00155 
00156   //****************************************************************************
00157                              private:
00158 
00159   unsigned int debug;
00160   bool         dynamic;
00161   };
00162 
00163 /*
00164  * $Log: FiletoPoly.h,v $
00165  * Revision 1.8  2005/06/10 07:49:02  pfb
00166  * Changes made as a result of dev. machine update from woody to sarge.
00167  * Most of the changes are because of the upgrade from gcc-2.95 to gcc-3.3.
00168  *
00169  * Revision 1.7  2005/05/26 15:42:02  pfb
00170  * Fixed documentation.
00171  *
00172  * Revision 1.6  2005/05/11 11:40:10  pfb
00173  * Added module info.
00174  *
00175  * Revision 1.5  2003/05/12 07:32:11  pfb
00176  * Cosmetic change.
00177  *
00178  * Revision 1.4  2003/05/12 07:30:37  pfb
00179  * Added ReleaseDataFlagOn(), ReleaseDataFlagOff(), SetReleaseDataFlag()
00180  * and SetReleaseDataFlag().
00181  *
00182  * Revision 1.3  2002/11/15 14:47:00  pfb
00183  * Added the decimate() functions.
00184  *
00185  * Revision 1.2  2002/10/25 13:48:09  pfb
00186  * Added debugging functionality.
00187  *
00188  * Revision 1.1  2002/04/12 04:02:28  pfb
00189  * Initial rev. Compilable state.
00190  *
00191  *
00192  */
00193 
00197 #endif