Cloned library of VTK-5.0.0 with extra build files for internal package management.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

59 lines
1.8 KiB

/*=========================================================================
Program: Visualization Toolkit
Module: $RCSfile: vtkOBJExporter.h,v $
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.
=========================================================================*/
// .NAME vtkOBJExporter - export a scene into Wavefront format.
// .SECTION Description
// vtkOBJExporter is a concrete subclass of vtkExporter that writes wavefront
// .OBJ files in ASCII form. It also writes out a mtl file that contains the
// material properties. The filenames are derived by appending the .obj and
// .mtl suffix onto the user specified FilePrefix.
//
// .SECTION See Also
// vtkExporter
#ifndef __vtkOBJExporter_h
#define __vtkOBJExporter_h
#include "vtkExporter.h"
class vtkActor;
class VTK_RENDERING_EXPORT vtkOBJExporter : public vtkExporter
{
public:
static vtkOBJExporter *New();
vtkTypeRevisionMacro(vtkOBJExporter,vtkExporter);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Specify the prefix of the files to write out. The resulting filenames
// will have .obj and .mtl appended to them.
vtkSetStringMacro(FilePrefix);
vtkGetStringMacro(FilePrefix);
protected:
vtkOBJExporter();
~vtkOBJExporter();
void WriteData();
void WriteAnActor(vtkActor *anActor, FILE *fpObj, FILE *fpMat, int &id);
char *FilePrefix;
private:
vtkOBJExporter(const vtkOBJExporter&); // Not implemented.
void operator=(const vtkOBJExporter&); // Not implemented.
};
#endif