00001 //============================================================================= 00002 // This file is part of VTKEdge. See vtkedge.org for more information. 00003 // 00004 // Copyright (c) 2010 Kitware, Inc. 00005 // 00006 // VTKEdge may be used under the terms of the BSD License 00007 // Please see the file Copyright.txt in the root directory of 00008 // VTKEdge for further information. 00009 // 00010 // Alternatively, you may see: 00011 // 00012 // http://www.vtkedge.org/vtkedge/project/license.html 00013 // 00014 // 00015 // For custom extensions, consulting services, or training for 00016 // this or any other Kitware supported open source project, please 00017 // contact Kitware at sales@kitware.com. 00018 // 00019 // 00020 //============================================================================= 00033 #ifndef __vtkKWECommonSerializationHelper_h 00034 #define __vtkKWECommonSerializationHelper_h 00035 00036 #include "vtkKWESerializationHelper.h" 00037 #include "VTKEdgeConfigure.h" // include configuration header 00038 00039 class vtkDataArray; 00040 class vtkKWESerializer; 00041 class vtkTransform; 00042 00043 class VTKEdge_IO_EXPORT vtkKWECommonSerializationHelper : public vtkKWESerializationHelper 00044 { 00045 public: 00046 static vtkKWECommonSerializationHelper *New(); 00047 vtkTypeRevisionMacro(vtkKWECommonSerializationHelper, vtkKWESerializationHelper); 00048 void PrintSelf(ostream& os, vtkIndent indent); 00049 00055 virtual void RegisterWithHelperMap(); 00056 00059 virtual void UnRegisterWithHelperMap(); 00060 00062 virtual const char *GetSerializationType(vtkObject *object); 00063 00065 virtual int Serialize(vtkObject *object, vtkKWESerializer *serializer); 00066 00067 //BTX 00068 protected: 00069 vtkKWECommonSerializationHelper(); 00070 ~vtkKWECommonSerializationHelper() {} 00071 00073 void SerializeTransform(vtkTransform *transform, vtkKWESerializer *serializer); 00074 00076 void SerializeDataArray(vtkDataArray *dataArray, vtkKWESerializer *serializer); 00077 00078 private: 00079 vtkKWECommonSerializationHelper(const vtkKWECommonSerializationHelper&); // Not implemented. 00080 void operator=(const vtkKWECommonSerializationHelper&); // Not implemented. 00081 //ETX 00082 }; 00083 00084 #endif
1.7.1