-
Notifications
You must be signed in to change notification settings - Fork 0
/
vtkOSPRayObjectFactory.cxx
123 lines (106 loc) · 4.51 KB
/
vtkOSPRayObjectFactory.cxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
/* =======================================================================================
Copyright 2014-2015 Texas Advanced Computing Center, The University of Texas at Austin
All rights reserved.
Licensed under the BSD 3-Clause License, (the "License"); you may not use this file
except in compliance with the License.
A copy of the License is included with this software in the file LICENSE.
If your copy does not contain the License, you may obtain a copy of the License at:
http://opensource.org/licenses/BSD-3-Clause
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.
See the License for the specific language governing permissions and limitations under
limitations under the License.
pvOSPRay is derived from VTK/ParaView Los Alamos National Laboratory Modules (PVLANL)
Copyright (c) 2007, Los Alamos National Security, LLC
======================================================================================= */
// .NAME vtkOSPRayObjectFactory -
// .SECTION Description
//
#include "vtkOSPRay.h"
#include "vtkOSPRayRenderer.h"
#include "vtkOSPRayObjectFactory.h"
#include "vtkDebugLeaks.h"
#include "vtkDynamicLoader.h"
#include "vtkOverrideInformation.h"
#include "vtkOverrideInformationCollection.h"
#include "vtkVersion.h"
#include "vtkOSPRayActor.h"
#include "vtkOSPRayCamera.h"
#include "vtkOSPRayLight.h"
#include "vtkOSPRayPolyDataMapper.h"
#include "vtkOSPRayProperty.h"
#include "vtkOSPRayTexture.h"
#ifdef VTKOSPRAY_FOR_PARAVIEW
#include "vtkOSPRayLODActor.h"
#endif
vtkStandardNewMacro(vtkOSPRayObjectFactory);
//----------------------------------------------------------------------------
void vtkOSPRayObjectFactory::PrintSelf(ostream& os, vtkIndent indent)
{
os << indent << "VTK OSPRay object factory" << endl;
}
//----------------------------------------------------------------------------
VTK_CREATE_CREATE_FUNCTION(vtkOSPRayActor);
VTK_CREATE_CREATE_FUNCTION(vtkOSPRayCamera);
VTK_CREATE_CREATE_FUNCTION(vtkOSPRayLight);
VTK_CREATE_CREATE_FUNCTION(vtkOSPRayPolyDataMapper);
VTK_CREATE_CREATE_FUNCTION(vtkOSPRayProperty);
VTK_CREATE_CREATE_FUNCTION(vtkOSPRayRenderer);
VTK_CREATE_CREATE_FUNCTION(vtkOSPRayTexture);
#ifdef VTKOSPRAY_FOR_PARAVIEW
VTK_CREATE_CREATE_FUNCTION(vtkOSPRayLODActor);
#endif
//----------------------------------------------------------------------------
vtkOSPRayObjectFactory::vtkOSPRayObjectFactory()
{
#ifdef VTKOSPRAY_FOR_PARAVIEW
this->RegisterOverride("vtkPVLODActor",
"vtkOSPRayLODActor",
"OSPRay",
1,
vtkObjectFactoryCreatevtkOSPRayLODActor);
#endif
this->RegisterOverride("vtkActor",
"vtkOSPRayActor",
"OSPRay",
1,
vtkObjectFactoryCreatevtkOSPRayActor);
this->RegisterOverride("vtkCamera",
"vtkOSPRayCamera",
"OSPRay",
1,
vtkObjectFactoryCreatevtkOSPRayCamera);
this->RegisterOverride("vtkPolyDataMapper",
"vtkOSPRayPolyDataMapper",
"OSPRay",
1,
vtkObjectFactoryCreatevtkOSPRayPolyDataMapper);
this->RegisterOverride("vtkProperty",
"vtkOSPRayProperty",
"OSPRay",
1,
vtkObjectFactoryCreatevtkOSPRayProperty);
this->RegisterOverride("vtkRenderer",
"vtkOSPRayRenderer",
"OSPRay",
1,
vtkObjectFactoryCreatevtkOSPRayRenderer);
this->RegisterOverride("vtkTexture",
"vtkOSPRayTexture",
"OSPRay",
1,
vtkObjectFactoryCreatevtkOSPRayTexture);
}
//----------------------------------------------------------------------------
VTK_FACTORY_INTERFACE_IMPLEMENT(vtkOSPRayObjectFactory);
//----------------------------------------------------------------------------
const char *vtkOSPRayObjectFactory::GetVTKSourceVersion()
{
return VTK_SOURCE_VERSION;
}
//----------------------------------------------------------------------------
const char *vtkOSPRayObjectFactory::GetDescription()
{
return "VTK OSPRay Object Factory";
}