VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkXMLWriterC.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 #ifndef __vtkXMLWriterC_h 00016 #define __vtkXMLWriterC_h 00017 00018 #include "vtkType.h" /* For scalar and vtkDataObject type enumerations. */ 00019 00020 /* Define the export macro. */ 00021 #if defined(_WIN32) && defined(VTK_BUILD_SHARED_LIBS) 00022 # if defined(vtkIO_EXPORTS) 00023 # define VTK_XML_EXPORT __declspec(dllexport) 00024 # else 00025 # define VTK_XML_EXPORT __declspec(dllimport) 00026 # endif 00027 #else 00028 # define VTK_XML_EXPORT 00029 #endif 00030 00031 #ifdef __cplusplus 00032 extern "C" 00033 { 00034 #endif /*cplusplus*/ 00035 00040 typedef struct vtkXMLWriterC_s vtkXMLWriterC; 00041 00046 VTK_XML_EXPORT 00047 vtkXMLWriterC* vtkXMLWriterC_New(); 00048 00054 VTK_XML_EXPORT 00055 void vtkXMLWriterC_Delete(vtkXMLWriterC* self); 00056 00064 VTK_XML_EXPORT 00065 void vtkXMLWriterC_SetDataObjectType(vtkXMLWriterC* self, int objType); 00066 00075 VTK_XML_EXPORT 00076 void vtkXMLWriterC_SetDataModeType(vtkXMLWriterC* self, int datamodetype); 00077 00084 VTK_XML_EXPORT 00085 void vtkXMLWriterC_SetExtent(vtkXMLWriterC* self, int extent[6]); 00086 00099 VTK_XML_EXPORT 00100 void vtkXMLWriterC_SetPoints(vtkXMLWriterC* self, int dataType, 00101 void* data, vtkIdType numPoints); 00102 00109 VTK_XML_EXPORT 00110 void vtkXMLWriterC_SetOrigin(vtkXMLWriterC* self, double origin[3]); 00111 00118 VTK_XML_EXPORT 00119 void vtkXMLWriterC_SetSpacing(vtkXMLWriterC* self, double spacing[3]); 00120 00133 VTK_XML_EXPORT 00134 void vtkXMLWriterC_SetCoordinates(vtkXMLWriterC* self, int axis, 00135 int dataType, void* data, 00136 vtkIdType numCoordinates); 00137 00157 VTK_XML_EXPORT 00158 void vtkXMLWriterC_SetCellsWithType(vtkXMLWriterC* self, 00159 int cellType, vtkIdType ncells, 00160 vtkIdType* cells, vtkIdType cellsSize); 00161 00176 VTK_XML_EXPORT 00177 void vtkXMLWriterC_SetCellsWithTypes(vtkXMLWriterC* self, 00178 int* cellTypes, vtkIdType ncells, 00179 vtkIdType* cells, vtkIdType cellsSize); 00180 00204 VTK_XML_EXPORT 00205 void vtkXMLWriterC_SetPointData(vtkXMLWriterC* self, const char* name, 00206 int dataType, void* data, 00207 vtkIdType numTuples, int numComponents, 00208 const char* role); 00209 VTK_XML_EXPORT 00210 void vtkXMLWriterC_SetCellData(vtkXMLWriterC* self, const char* name, 00211 int dataType, void* data, 00212 vtkIdType numTuples, int numComponents, 00213 const char* role); 00214 00221 VTK_XML_EXPORT 00222 void vtkXMLWriterC_SetFileName(vtkXMLWriterC* self, const char* fileName); 00223 00230 VTK_XML_EXPORT 00231 int vtkXMLWriterC_Write(vtkXMLWriterC* self); 00232 00240 VTK_XML_EXPORT 00241 void vtkXMLWriterC_SetNumberOfTimeSteps(vtkXMLWriterC* self, int numTimeSteps); 00242 00250 VTK_XML_EXPORT 00251 void vtkXMLWriterC_Start(vtkXMLWriterC* self); 00252 00263 VTK_XML_EXPORT 00264 void vtkXMLWriterC_WriteNextTimeStep(vtkXMLWriterC* self, double timeValue); 00265 00272 VTK_XML_EXPORT 00273 void vtkXMLWriterC_Stop(vtkXMLWriterC* self); 00274 00275 #ifdef __cplusplus 00276 } /* extern "C" */ 00277 #endif /*cplusplus*/ 00278 00279 /* Done with export macro. */ 00280 #undef VTK_XML_EXPORT 00281 00282 #endif