vtkVRMLSource.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
11 #ifndef vtkVRMLSource_h
12 #define vtkVRMLSource_h
13 
15 #include "vtkPVVTKExtensionsIOGeneralModule.h" //needed for exports
16 
18 class vtkVRMLImporter;
19 
21 {
22 public:
24  void PrintSelf(ostream& os, vtkIndent indent) override;
25  static vtkVRMLSource* New();
26 
28 
31  vtkSetStringMacro(FileName);
32  vtkGetStringMacro(FileName);
34 
36 
39  vtkSetMacro(Color, int);
40  vtkGetMacro(Color, int);
41  vtkBooleanMacro(Color, int);
43 
45 
49  vtkSetMacro(Append, int);
50  vtkGetMacro(Append, int);
51  vtkBooleanMacro(Append, int);
53 
54  static int CanReadFile(const char* filename);
55 
56 protected:
57  vtkVRMLSource();
58  ~vtkVRMLSource() override;
59 
61 
62  void InitializeImporter();
63  void CopyImporterToOutputs(vtkMultiBlockDataSet*);
64 
65  char* FileName;
67  int Color;
68  int Append;
69 
70 private:
71  vtkVRMLSource(const vtkVRMLSource&) = delete;
72  void operator=(const vtkVRMLSource&) = delete;
73 };
74 
75 #endif
vtkVRMLImporter * Importer
Definition: vtkVRMLSource.h:66
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkMultiBlockDataSetAlgorithm * New()
#define VTKPVVTKEXTENSIONSIOGENERAL_EXPORT
Converts importer to a source.
Definition: vtkVRMLSource.h:20
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
void operator=(const vtkObjectBase &)