VTK
vtkIVExporter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkIVExporter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
28 #ifndef vtkIVExporter_h
29 #define vtkIVExporter_h
30 
31 #include "vtkIOExportModule.h" // For export macro
32 #include "vtkExporter.h"
33 
34 class vtkLight;
35 class vtkActor;
36 class vtkPoints;
37 class vtkDataArray;
39 
41 {
42 public:
43  static vtkIVExporter *New();
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
49  vtkSetStringMacro(FileName);
50  vtkGetStringMacro(FileName);
52 
53 protected:
56 
57  void WriteData();
58  void WriteALight(vtkLight *aLight, FILE *fp);
59  void WriteAnActor(vtkActor *anActor, FILE *fp);
61  vtkDataArray *tcoords, vtkUnsignedCharArray *colors,
62  FILE *fp);
63  char *FileName;
64 private:
65  vtkIVExporter(const vtkIVExporter&); // Not implemented.
66  void operator=(const vtkIVExporter&); // Not implemented.
67 };
68 
69 #endif
70 
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkLight
a virtual light for 3D rendering
Definition: vtkLight.h:61
vtkIOExportModule.h
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition: vtkUnsignedCharArray.h:49
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkIVExporter::WriteALight
void WriteALight(vtkLight *aLight, FILE *fp)
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkIVExporter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkIVExporter::vtkIVExporter
vtkIVExporter()
vtkgl::points
GLsizei const GLfloat * points
Definition: vtkgl.h:14786
vtkIVExporter::WriteAnActor
void WriteAnActor(vtkActor *anActor, FILE *fp)
vtkIVExporter::~vtkIVExporter
~vtkIVExporter()
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkIVExporter::New
static vtkIVExporter * New()
vtkIVExporter::WritePointData
void WritePointData(vtkPoints *points, vtkDataArray *normals, vtkDataArray *tcoords, vtkUnsignedCharArray *colors, FILE *fp)
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
vtkExporter
abstract class to write a scene to a file
Definition: vtkExporter.h:46
vtkExporter.h
vtkIVExporter
export a scene into OpenInventor 2.0 format.
Definition: vtkIVExporter.h:41
vtkIVExporter::WriteData
void WriteData()
vtkIVExporter::FileName
char * FileName
Definition: vtkIVExporter.h:63
VTKIOEXPORT_EXPORT
#define VTKIOEXPORT_EXPORT
Definition: vtkIOExportModule.h:15