Rendering/vtkVRMLExporter.h Source File

Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages

# Rendering/vtkVRMLExporter.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkVRMLExporter.h,v $
    00005   Language:  C++
    00006
    00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
    00008   All rights reserved.
    00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
    00010
    00011      This software is distributed WITHOUT ANY WARRANTY; without even
    00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    00013      PURPOSE.  See the above copyright notice for more information.
    00014
    00015 =========================================================================*/
    00047 #ifndef __vtkVRMLExporter_h
    00048 #define __vtkVRMLExporter_h
    00049
    00050 #include "vtkExporter.h"
    00051
    00052 class vtkLight;
    00053 class vtkActor;
    00054 class vtkPoints;
    00055 class vtkDataArray;
    00056 class vtkUnsignedCharArray;
    00057
    00058 class VTK_RENDERING_EXPORT vtkVRMLExporter : public vtkExporter
    00059 {
    00060 public:
    00061   static vtkVRMLExporter *New();
    00062   vtkTypeRevisionMacro(vtkVRMLExporter,vtkExporter);
    00063   void PrintSelf(ostream& os, vtkIndent indent);
    00064
    00066
    00067   vtkSetStringMacro(FileName);
    00068   vtkGetStringMacro(FileName);
    00070
    00072
    00073   vtkSetMacro(Speed,float);
    00074   vtkGetMacro(Speed,float);
    00076
    00079   void SetFilePointer(FILE *);
    00080
    00081 protected:
    00082   vtkVRMLExporter();
    00083   ~vtkVRMLExporter();
    00084
    00085   void WriteData();
    00086   void WriteALight(vtkLight *aLight, FILE *fp);
    00087   void WriteAnActor(vtkActor *anActor, FILE *fp);
    00088   void WritePointData(vtkPoints *points, vtkDataArray *normals,
    00089                       vtkDataArray *tcoords, vtkUnsignedCharArray *colors,
    00090                       FILE *fp);
    00091   char *FileName;
    00092   FILE *FilePointer;
    00093   float Speed;
    00094 private:
    00095   vtkVRMLExporter(const vtkVRMLExporter&);  // Not implemented.
    00096   void operator=(const vtkVRMLExporter&);  // Not implemented.
    00097 };
    00098
    00099 #endif
    00100