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

Servers/Filters/vtkVRMLSource.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   ParaView
00004   Module:    $RCSfile: vtkVRMLSource.h,v $
00005 
00006   Copyright (c) Kitware, Inc.
00007   All rights reserved.
00008   See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00022 #ifndef __vtkVRMLSource_h
00023 #define __vtkVRMLSource_h
00024 
00025 #include "vtkSource.h"
00026 class vtkVRMLImporter;
00027 class vtkPolyData;
00028 
00029 class VTK_EXPORT vtkVRMLSource : public vtkSource
00030 {
00031 public:
00032   vtkTypeRevisionMacro(vtkVRMLSource,vtkSource);
00033   void PrintSelf(ostream& os, vtkIndent indent);
00034   static vtkVRMLSource *New();
00035 
00037 
00038   vtkSetStringMacro(FileName);
00039   vtkGetStringMacro(FileName);
00041 
00042   int GetNumberOfOutputs();
00043   vtkPolyData* GetOutput(int idx);
00044   vtkPolyData* GetOutput() { return this->GetOutput(0);}
00045 
00047 
00048   vtkSetMacro(Color,int);
00049   vtkGetMacro(Color,int);
00050   vtkBooleanMacro(Color,int);
00052 
00054 
00056   vtkSetMacro(Append,int);
00057   vtkGetMacro(Append,int);
00058   vtkBooleanMacro(Append,int);
00060 
00061 protected:
00062   vtkVRMLSource();
00063   ~vtkVRMLSource();
00064 
00065   void Execute();
00066   void InitializeImporter();
00067   void CopyImporterToOutputs();
00068 
00069   char* FileName;
00070   vtkVRMLImporter *Importer;
00071   int Color;
00072   int Append;
00073 
00074 private:
00075   vtkVRMLSource(const vtkVRMLSource&);  // Not implemented.
00076   void operator=(const vtkVRMLSource&);  // Not implemented.
00077 };
00078 
00079 #endif
00080 

Generated on Tue May 30 12:31:47 2006 for ParaView by doxygen 1.3.5