VTK
dox/IO/XML/vtkXMLWriterC.h
Go to the documentation of this file.
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 "vtkIOXMLModule.h" // For export macro
00019 #include "vtkType.h" /* For scalar and vtkDataObject type enumerations.  */
00020 
00021 #ifdef __cplusplus
00022 extern "C"
00023 {
00024 #endif /*cplusplus*/
00025 
00030 typedef struct vtkXMLWriterC_s vtkXMLWriterC;
00031 
00036 VTKIOXML_EXPORT
00037 vtkXMLWriterC* vtkXMLWriterC_New();
00038 
00044 VTKIOXML_EXPORT
00045 void vtkXMLWriterC_Delete(vtkXMLWriterC* self);
00046 
00054 VTKIOXML_EXPORT
00055 void vtkXMLWriterC_SetDataObjectType(vtkXMLWriterC* self, int objType);
00056 
00065 VTKIOXML_EXPORT
00066 void vtkXMLWriterC_SetDataModeType(vtkXMLWriterC* self, int datamodetype);
00067 
00074 VTKIOXML_EXPORT
00075 void vtkXMLWriterC_SetExtent(vtkXMLWriterC* self, int extent[6]);
00076 
00089 VTKIOXML_EXPORT
00090 void vtkXMLWriterC_SetPoints(vtkXMLWriterC* self, int dataType,
00091                              void* data, vtkIdType numPoints);
00092 
00099 VTKIOXML_EXPORT
00100 void vtkXMLWriterC_SetOrigin(vtkXMLWriterC* self, double origin[3]);
00101 
00108 VTKIOXML_EXPORT
00109 void vtkXMLWriterC_SetSpacing(vtkXMLWriterC* self, double spacing[3]);
00110 
00123 VTKIOXML_EXPORT
00124 void vtkXMLWriterC_SetCoordinates(vtkXMLWriterC* self, int axis,
00125                                   int dataType, void* data,
00126                                   vtkIdType numCoordinates);
00127 
00147 VTKIOXML_EXPORT
00148 void vtkXMLWriterC_SetCellsWithType(vtkXMLWriterC* self,
00149                                     int cellType, vtkIdType ncells,
00150                                     vtkIdType* cells, vtkIdType cellsSize);
00151 
00166 VTKIOXML_EXPORT
00167 void vtkXMLWriterC_SetCellsWithTypes(vtkXMLWriterC* self,
00168                                      int* cellTypes, vtkIdType ncells,
00169                                      vtkIdType* cells, vtkIdType cellsSize);
00170 
00194 VTKIOXML_EXPORT
00195 void vtkXMLWriterC_SetPointData(vtkXMLWriterC* self, const char* name,
00196                                 int dataType, void* data,
00197                                 vtkIdType numTuples, int numComponents,
00198                                 const char* role);
00199 VTKIOXML_EXPORT
00200 void vtkXMLWriterC_SetCellData(vtkXMLWriterC* self, const char* name,
00201                                int dataType, void* data,
00202                                vtkIdType numTuples, int numComponents,
00203                                const char* role);
00204 
00211 VTKIOXML_EXPORT
00212 void vtkXMLWriterC_SetFileName(vtkXMLWriterC* self, const char* fileName);
00213 
00220 VTKIOXML_EXPORT
00221 int vtkXMLWriterC_Write(vtkXMLWriterC* self);
00222 
00230 VTKIOXML_EXPORT
00231 void vtkXMLWriterC_SetNumberOfTimeSteps(vtkXMLWriterC* self, int numTimeSteps);
00232 
00240 VTKIOXML_EXPORT
00241 void vtkXMLWriterC_Start(vtkXMLWriterC* self);
00242 
00253 VTKIOXML_EXPORT
00254 void vtkXMLWriterC_WriteNextTimeStep(vtkXMLWriterC* self, double timeValue);
00255 
00262 VTKIOXML_EXPORT
00263 void vtkXMLWriterC_Stop(vtkXMLWriterC* self);
00264 
00265 #ifdef __cplusplus
00266 } /* extern "C" */
00267 #endif /*cplusplus*/
00268 
00269 #endif
00270 // VTK-HeaderTest-Exclude: vtkXMLWriterC.h