You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nmWTAI-Platform/3rd/VTK7.1/include/vtkIVWriter.h

82 lines
1.8 KiB
C++

/*=========================================================================
Program: Visualization Toolkit
Module: vtkIVWriter.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/**
* @class vtkIVWriter
* @brief export polydata into OpenInventor 2.0 format.
*
* vtkIVWriter is a concrete subclass of vtkWriter that writes OpenInventor 2.0
* files.
*
* @sa
* vtkPolyDataWriter
*/
#ifndef vtkIVWriter_h
#define vtkIVWriter_h
#include "vtkIOGeometryModule.h" // For export macro
#include "vtkWriter.h"
class vtkPolyData;
class VTKIOGEOMETRY_EXPORT vtkIVWriter : public vtkWriter
{
public:
static vtkIVWriter *New();
vtkTypeMacro(vtkIVWriter,vtkWriter);
void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
//@{
/**
* Get the input to this writer.
*/
vtkPolyData* GetInput();
vtkPolyData* GetInput(int port);
//@}
//@{
/**
* Specify file name of vtk polygon data file to write.
*/
vtkSetStringMacro(FileName);
vtkGetStringMacro(FileName);
//@}
protected:
vtkIVWriter()
{
this->FileName = NULL;
}
~vtkIVWriter()
{
delete[] this->FileName;
}
void WriteData();
void WritePolyData(vtkPolyData *polyData, FILE *fp);
char *FileName;
virtual int FillInputPortInformation(int port, vtkInformation *info);
private:
vtkIVWriter(const vtkIVWriter&) VTK_DELETE_FUNCTION;
void operator=(const vtkIVWriter&) VTK_DELETE_FUNCTION;
};
#endif