VTK
9.0.20210121
IO
Export
vtkRIBExporter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkRIBExporter.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
=========================================================================*/
42
#ifndef vtkRIBExporter_h
43
#define vtkRIBExporter_h
44
45
#include "
vtkExporter.h
"
46
#include "vtkIOExportModule.h"
// For export macro
47
48
class
vtkActor
;
49
class
vtkCamera
;
50
class
vtkLight
;
51
class
vtkPolyData
;
52
class
vtkProperty
;
53
class
vtkRenderer
;
54
class
vtkTexture
;
55
class
vtkUnsignedCharArray
;
56
57
class
VTKIOEXPORT_EXPORT
vtkRIBExporter
:
public
vtkExporter
58
{
59
public
:
60
static
vtkRIBExporter
*
New
();
61
vtkTypeMacro(
vtkRIBExporter
,
vtkExporter
);
62
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
63
65
69
vtkSetVector2Macro(Size,
int
);
70
vtkGetVectorMacro(Size,
int
, 2);
72
74
77
vtkSetVector2Macro(PixelSamples,
int
);
78
vtkGetVectorMacro(PixelSamples,
int
, 2);
80
82
86
vtkSetStringMacro(FilePrefix);
87
vtkGetStringMacro(FilePrefix);
89
91
94
vtkSetStringMacro(TexturePrefix);
95
vtkGetStringMacro(TexturePrefix);
97
99
116
vtkSetMacro(
Background
,
vtkTypeBool
);
117
vtkGetMacro(
Background
,
vtkTypeBool
);
118
vtkBooleanMacro(
Background
,
vtkTypeBool
);
120
122
127
vtkSetClampMacro(ExportArrays,
vtkTypeBool
, 0, 1);
128
vtkBooleanMacro(ExportArrays,
vtkTypeBool
);
129
vtkGetMacro(ExportArrays,
vtkTypeBool
);
131
132
protected
:
133
vtkRIBExporter
();
134
~
vtkRIBExporter
()
override
;
135
136
vtkTypeBool
Background
;
137
int
Size[2];
138
int
PixelSamples[2];
139
143
vtkTypeBool
ExportArrays
;
144
146
149
void
WriteHeader(
vtkRenderer
* aRen);
150
void
WriteTrailer();
151
void
WriteTexture(
vtkTexture
* aTexture);
152
void
WriteViewport(
vtkRenderer
* aRenderer,
int
size
[2]);
153
void
WriteCamera(
vtkCamera
* aCamera);
154
void
WriteLight(
vtkLight
* aLight,
int
count);
155
void
WriteAmbientLight(
int
count);
156
void
WriteProperty(
vtkProperty
* aProperty,
vtkTexture
* aTexture);
157
void
WritePolygons(
vtkPolyData
* pd,
vtkUnsignedCharArray
* colors,
vtkProperty
* aProperty);
158
void
WriteStrips(
vtkPolyData
* pd,
vtkUnsignedCharArray
* colors,
vtkProperty
* aProperty);
160
161
void
WriteData
()
override
;
162
void
WriteActor(
vtkActor
* anActor);
163
170
void
ModifyArrayName(
char
* newname,
const
char
*
name
);
171
172
char
* GetTextureName(
vtkTexture
* aTexture);
173
char
* GetTIFFName(
vtkTexture
* aTexture);
174
char
*
FilePrefix
;
175
FILE*
FilePtr
;
176
char
*
TexturePrefix
;
177
178
private
:
179
vtkRIBExporter
(
const
vtkRIBExporter
&) =
delete
;
180
void
operator=(
const
vtkRIBExporter
&) =
delete
;
181
};
182
183
#endif
vtkRIBExporter::ExportArrays
vtkTypeBool ExportArrays
This variable defines whether the arrays are exported or not.
Definition:
vtkRIBExporter.h:143
vtkLight
a virtual light for 3D rendering
Definition:
vtkLight.h:56
vtkRIBExporter::FilePrefix
char * FilePrefix
Definition:
vtkRIBExporter.h:174
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition:
vtkUnsignedCharArray.h:35
vtkExporter::WriteData
virtual void WriteData()=0
vtkRIBExporter
export a scene into RenderMan RIB format.
Definition:
vtkRIBExporter.h:57
vtkTexture
handles properties associated with a texture map
Definition:
vtkTexture.h:65
vtkX3D::Background
Definition:
vtkX3D.h:77
vtkRIBExporter::TexturePrefix
char * TexturePrefix
Definition:
vtkRIBExporter.h:176
vtkRIBExporter::Background
vtkTypeBool Background
Definition:
vtkRIBExporter.h:136
vtkRIBExporter::FilePtr
FILE * FilePtr
Definition:
vtkRIBExporter.h:175
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition:
vtkActor.h:45
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkCamera
a virtual camera for 3D rendering
Definition:
vtkCamera.h:45
vtkX3D::size
Definition:
vtkX3D.h:259
vtkExporter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkX3D::name
Definition:
vtkX3D.h:225
vtkExporter
abstract class to write a scene to a file
Definition:
vtkExporter.h:47
vtkRenderer
abstract specification for renderers
Definition:
vtkRenderer.h:67
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition:
vtkPolyData.h:85
vtkExporter.h
vtkProperty
represent surface properties of a geometric object
Definition:
vtkProperty.h:61
vtkTypeBool
int vtkTypeBool
Definition:
vtkABI.h:69
Generated on Thu Jan 21 2021 21:30:44 for VTK by
1.8.16