1 /*=========================================================================
3 Program: Visualization Toolkit
4 Module: $RCSfile: vtkMCubesWriter.h,v $
6 Date: $Date: 2002/05/31 23:12:41 $
7 Version: $Revision: 1.32 $
9 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
11 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notice for more information.
17 =========================================================================*/
18 // .NAME vtkMCubesWriter - write binary marching cubes file
19 // .SECTION Description
20 // vtkMCubesWriter is a polydata writer that writes binary marching cubes
21 // files. (Marching cubes is an isosurfacing technique that generates many
22 // triangles.) The binary format is supported by W. Lorensen's marching cubes
23 // program (and the vtkSliceCubes object). Each triangle is represented by
24 // three records, with each record consisting of six single precision
25 // floating point numbers representing the a triangle vertex coordinate and
29 // Binary files are written in sun/hp/sgi (i.e., Big Endian) form.
32 // vtkMarchingCubes vtkSliceCubes vtkMCubesReader
34 #ifndef __vtkMCubesWriter_h
35 #define __vtkMCubesWriter_h
37 #include "vtkPolyDataWriter.h"
39 class VTK_IO_EXPORT vtkMCubesWriter : public vtkPolyDataWriter
42 static vtkMCubesWriter *New();
43 vtkTypeRevisionMacro(vtkMCubesWriter,vtkPolyDataWriter);
44 void PrintSelf(ostream& os, vtkIndent indent);
47 // Set/get file name of marching cubes limits file.
48 vtkSetStringMacro(LimitsFileName);
49 vtkGetStringMacro(LimitsFileName);
58 vtkMCubesWriter(const vtkMCubesWriter&); // Not implemented.
59 void operator=(const vtkMCubesWriter&); // Not implemented.