VTK
dox
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
=========================================================================*/
45
#ifndef vtkRIBExporter_h
46
#define vtkRIBExporter_h
47
48
#include "vtkIOExportModule.h"
// For export macro
49
#include "
vtkExporter.h
"
50
51
class
vtkActor
;
52
class
vtkCamera
;
53
class
vtkLight
;
54
class
vtkPolyData
;
55
class
vtkProperty
;
56
class
vtkRenderer
;
57
class
vtkTexture
;
58
class
vtkUnsignedCharArray
;
59
60
class
VTKIOEXPORT_EXPORT
vtkRIBExporter
:
public
vtkExporter
61
{
62
public
:
63
static
vtkRIBExporter
*
New
();
64
vtkTypeMacro(
vtkRIBExporter
,
vtkExporter
);
65
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
66
68
72
vtkSetVector2Macro(Size,
int
);
73
vtkGetVectorMacro(Size,
int
,2);
75
77
80
vtkSetVector2Macro(PixelSamples,
int
);
81
vtkGetVectorMacro(PixelSamples,
int
,2);
83
85
89
vtkSetStringMacro(FilePrefix);
90
vtkGetStringMacro(FilePrefix);
92
94
97
vtkSetStringMacro(TexturePrefix);
98
vtkGetStringMacro(TexturePrefix);
100
102
119
vtkSetMacro(
Background
,
vtkTypeBool
);
120
vtkGetMacro(
Background
,
vtkTypeBool
);
121
vtkBooleanMacro(
Background
,
vtkTypeBool
);
123
125
130
vtkSetClampMacro(ExportArrays,
vtkTypeBool
, 0, 1);
131
vtkBooleanMacro(ExportArrays,
vtkTypeBool
);
132
vtkGetMacro(ExportArrays,
vtkTypeBool
);
134
135
protected
:
136
vtkRIBExporter
();
137
~
vtkRIBExporter
()
override
;
138
139
vtkTypeBool
Background
;
140
int
Size[2];
141
int
PixelSamples[2];
142
146
vtkTypeBool
ExportArrays
;
147
149
152
void
WriteHeader (
vtkRenderer
*aRen);
153
void
WriteTrailer ();
154
void
WriteTexture (
vtkTexture
*aTexture);
155
void
WriteViewport (
vtkRenderer
*aRenderer,
int
size
[2]);
156
void
WriteCamera (
vtkCamera
*aCamera);
157
void
WriteLight (
vtkLight
*aLight,
int
count);
158
void
WriteAmbientLight (
int
count);
159
void
WriteProperty (
vtkProperty
*aProperty,
vtkTexture
*aTexture);
160
void
WritePolygons (
vtkPolyData
*pd,
vtkUnsignedCharArray
*colors,
161
vtkProperty
*aProperty);
162
void
WriteStrips (
vtkPolyData
*pd,
vtkUnsignedCharArray
*colors,
163
vtkProperty
*aProperty);
165
166
void
WriteData
()
override
;
167
void
WriteActor(
vtkActor
*anActor);
168
175
void
ModifyArrayName(
char
*newname,
const
char
*
name
);
176
177
char
*GetTextureName (
vtkTexture
*aTexture);
178
char
*GetTIFFName (
vtkTexture
*aTexture);
179
char
*
FilePrefix
;
180
FILE *
FilePtr
;
181
char
*
TexturePrefix
;
182
private
:
183
vtkRIBExporter
(
const
vtkRIBExporter
&) =
delete
;
184
void
operator=(
const
vtkRIBExporter
&) =
delete
;
185
};
186
187
#endif
188
vtkRIBExporter::ExportArrays
vtkTypeBool ExportArrays
This variable defines whether the arrays are exported or not.
Definition:
vtkRIBExporter.h:146
vtkLight
a virtual light for 3D rendering
Definition:
vtkLight.h:62
vtkRIBExporter::FilePrefix
char * FilePrefix
Definition:
vtkRIBExporter.h:179
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:41
vtkExporter::WriteData
virtual void WriteData()=0
vtkRIBExporter
export a scene into RenderMan RIB format.
Definition:
vtkRIBExporter.h:60
vtkTexture
handles properties associated with a texture map
Definition:
vtkTexture.h:71
vtkX3D::Background
Definition:
vtkX3D.h:71
vtkRIBExporter::TexturePrefix
char * TexturePrefix
Definition:
vtkRIBExporter.h:181
vtkRIBExporter::Background
vtkTypeBool Background
Definition:
vtkRIBExporter.h:139
vtkRIBExporter::FilePtr
FILE * FilePtr
Definition:
vtkRIBExporter.h:180
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition:
vtkActor.h:51
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkCamera
a virtual camera for 3D rendering
Definition:
vtkCamera.h:50
vtkX3D::size
Definition:
vtkX3D.h:253
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:219
vtkExporter
abstract class to write a scene to a file
Definition:
vtkExporter.h:47
vtkRenderer
abstract specification for renderers
Definition:
vtkRenderer.h:63
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:66
vtkTypeBool
int vtkTypeBool
Definition:
vtkABI.h:69
Generated by
1.8.16