/usr/include/vtk-5.8/vtkX3DExporter.h is in libvtk5-dev 5.8.0-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkX3DExporter.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.
=========================================================================*/
// .NAME vtkX3DExporter - create an x3d file
// .SECTION Description
// vtkX3DExporter is a render window exporter which writes out the renderered
// scene into an X3D file. X3D is an XML-based format for representation
// 3D scenes (similar to VRML). Check out http://www.web3d.org/x3d/ for more
// details.
// .SECTION Thanks
// X3DExporter is contributed by Christophe Mouton at EDF.
#ifndef __vtkX3DExporter_h
#define __vtkX3DExporter_h
#include "vtkExporter.h"
class vtkLight;
class vtkActor;
class vtkActor2D;
class vtkPoints;
class vtkDataArray;
class vtkUnsignedCharArray;
class vtkX3DExporterWriter;
class vtkRenderer;
class VTK_HYBRID_EXPORT vtkX3DExporter : public vtkExporter
{
public:
static vtkX3DExporter *New();
vtkTypeMacro(vtkX3DExporter,vtkExporter);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Set/Get the output file name.
vtkSetStringMacro(FileName);
vtkGetStringMacro(FileName);
// Description:
// Specify the Speed of navigation. Default is 4.
vtkSetMacro(Speed,double);
vtkGetMacro(Speed,double);
// Description:
// Turn on binary mode
vtkSetClampMacro(Binary, int, 0, 1);
vtkBooleanMacro(Binary, int);
vtkGetMacro(Binary, int);
// Description:
// In binary mode use fastest instead of best compression
vtkSetClampMacro(Fastest, int, 0, 1);
vtkBooleanMacro(Fastest, int);
vtkGetMacro(Fastest, int);
protected:
vtkX3DExporter();
~vtkX3DExporter();
// Description:
// Write data to output.
void WriteData();
void WriteALight(vtkLight *aLight, vtkX3DExporterWriter* writer);
void WriteAnActor(vtkActor *anActor, vtkX3DExporterWriter* writer,
int index);
void WritePointData(vtkPoints *points, vtkDataArray *normals,
vtkDataArray *tcoords, vtkUnsignedCharArray *colors,
vtkX3DExporterWriter* writer, int index);
void WriteATextActor2D(vtkActor2D *anTextActor2D,
vtkX3DExporterWriter* writer);
void WriteATexture(vtkActor *anActor, vtkX3DExporterWriter* writer);
void WriteAnAppearance(vtkActor *anActor, bool writeEmissiveColor, vtkX3DExporterWriter* writer);
int HasHeadLight(vtkRenderer* ren);
char *FileName;
double Speed;
int Binary;
int Fastest;
private:
vtkX3DExporter(const vtkX3DExporter&); // Not implemented.
void operator=(const vtkX3DExporter&); // Not implemented.
};
#endif
|