ParaView
vtkVRMLSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkVRMLSource.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
23 #ifndef vtkVRMLSource_h
24 #define vtkVRMLSource_h
25 
26 #include "vtkMultiBlockDataSetAlgorithm.h"
27 #include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
28 
29 class vtkMultiBlockDataSet;
30 class vtkVRMLImporter;
31 
32 class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkVRMLSource : public vtkMultiBlockDataSetAlgorithm
33 {
34 public:
35  vtkTypeMacro(vtkVRMLSource, vtkMultiBlockDataSetAlgorithm);
36  void PrintSelf(ostream& os, vtkIndent indent);
37  static vtkVRMLSource* New();
38 
40 
43  vtkSetStringMacro(FileName);
44  vtkGetStringMacro(FileName);
46 
48 
51  vtkSetMacro(Color, int);
52  vtkGetMacro(Color, int);
53  vtkBooleanMacro(Color, int);
55 
57 
61  vtkSetMacro(Append, int);
62  vtkGetMacro(Append, int);
63  vtkBooleanMacro(Append, int);
65 
66  static int CanReadFile(const char* filename);
67 
68 protected:
69  vtkVRMLSource();
70  ~vtkVRMLSource();
71 
72  int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
73 
74  void InitializeImporter();
75  void CopyImporterToOutputs(vtkMultiBlockDataSet*);
76 
77  char* FileName;
78  vtkVRMLImporter* Importer;
79  int Color;
80  int Append;
81 
82 private:
83  vtkVRMLSource(const vtkVRMLSource&) VTK_DELETE_FUNCTION;
84  void operator=(const vtkVRMLSource&) VTK_DELETE_FUNCTION;
85 };
86 
87 #endif
vtkVRMLImporter * Importer
Definition: vtkVRMLSource.h:78
Converts importer to a source.
Definition: vtkVRMLSource.h:32