VTK  9.1.0
vtkOpenVDBWriter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkOpenVDBWriter.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=========================================================================*/
21#ifndef vtkOpenVDBWriter_h
22#define vtkOpenVDBWriter_h
23
24#include "vtkIOOpenVDBModule.h" //needed for exports
25#include "vtkSmartPointer.h" // For protected ivars
26#include "vtkWriter.h"
27
29class vtkImageData;
31class vtkOpenVDBWriterInternals;
32class vtkPointSet;
35
36class VTKIOOPENVDB_EXPORT vtkOpenVDBWriter : public vtkWriter
37{
38public:
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
44
50
52
57 vtkSetMacro(WriteAllTimeSteps, bool);
58 vtkGetMacro(WriteAllTimeSteps, bool);
60
62
67 vtkGetObjectMacro(LookupTable, vtkScalarsToColors);
69
71
75 vtkSetMacro(EnableColoring, bool);
76 vtkGetMacro(EnableColoring, bool);
78
80
84 vtkSetMacro(EnableAlpha, bool);
85 vtkGetMacro(EnableAlpha, bool);
87
89
94 vtkGetObjectMacro(Controller, vtkMultiProcessController);
96
97protected:
100
101 void WriteData() override;
102
103 void WriteImageData(vtkImageData* imageData);
104 void WritePointSet(vtkPointSet* pointSet);
105
106 // see algorithm for more info.
107 // This writer takes in vtkTable, vtkDataSet or vtkCompositeDataSet.
109
110 // see algorithm for more info. needed here so we can request pieces.
112 vtkInformationVector* outputVector) override;
113
115
116 char* FileName;
117
119
125
127
135
136private:
137 vtkOpenVDBWriter(const vtkOpenVDBWriter&) = delete;
138 void operator=(const vtkOpenVDBWriter&) = delete;
139
141
144 vtkMultiProcessController* Controller;
146
147 vtkOpenVDBWriterInternals* Internals;
148 friend class vtkOpenVDBWriterInternals;
149};
150
151#endif
represent and manipulate attribute data in a dataset
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Multiprocessing communication superclass.
OpenVDB writer for vtkImageData or vtkPointSet Writes a vtkImageData or vtkPointSet as a VDB file.
void WriteData() override
~vtkOpenVDBWriter() override
int ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
vtkSetFilePathMacro(FileName)
Get/Set the filename for the file.
void WritePointSet(vtkPointSet *pointSet)
vtkGetFilePathMacro(FileName)
void SetRGBA(vtkIdType num, vtkUnsignedCharArray *rgba, vtkDataSetAttributes *attributes)
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void WriteImageData(vtkImageData *imageData)
void SetController(vtkMultiProcessController *)
Get/Set the controller to use.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetLookupTable(vtkScalarsToColors *)
A lookup table can be specified in order to convert data arrays to RGBA colors.
bool WriteAllTimeSteps
Whether or not to write out all time steps.
vtkScalarsToColors * LookupTable
For outputting the Lookup Table in the VDB file.
static vtkOpenVDBWriter * New()
concrete class for storing a set of points
Definition: vtkPointSet.h:106
Superclass for mapping scalar values to colors.
dynamic, self-adjusting array of unsigned char
abstract class to write data to file(s)
Definition: vtkWriter.h:43
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
int vtkIdType
Definition: vtkType.h:332