00001 /* $Id */ 00002 00003 #ifndef _ssPolyDataInstrumentSocketInput_h 00004 #define _ssPolyDataInstrumentSocketInput_h 00005 00009 #include <vtkPolyDataSource.h> 00010 00011 class ssPolyDataInstrumentSocketInput : public vtkPolyDataSource 00012 { 00013 //**************************************************************************** 00014 public: 00015 00020 static ssPolyDataInstrumentSocketInput *New(); 00021 00022 vtkTypeMacro(ssPolyDataInstrumentSocketInput, vtkSource); 00023 00029 void PrintSelf(ostream& os, vtkIndent indent); 00030 00031 //**************************************************************************** 00032 protected: 00033 00037 ssPolyDataInstrumentSocketInput(); 00038 00042 ~ssPolyDataInstrumentSocketInput(); 00043 00047 void Execute(); 00048 00049 //**************************************************************************** 00050 private: 00051 00055 ssPolyDataInstrumentSocketInput(const ssPolyDataInstrumentSocketInput& ); 00056 ssPolyDataInstrumentSocketInput& operator=(const ssPolyDataInstrumentSocketInput& ); 00057 00062 bool Connect(); 00063 00067 void Disconnect(); 00068 00073 bool ReceiveRecord(); 00074 00081 bool Receive(void *buffer, int length); 00082 00086 int sock; 00087 }; 00088 00089 /* 00090 * $Log: ssPolyDataInstrumentSocketInput.h,v $ 00091 * Revision 1.2 2005/09/06 11:27:18 pfb 00092 * Fixed decl. 00093 * 00094 * Revision 1.1 2005/09/06 10:51:15 pfb 00095 * Initial rev. 00096 * 00097 * 00098 */ 00102 #endif