File tree Expand file tree Collapse file tree 5 files changed +20
-0
lines changed
ServerImplementation/Rendering
ServerManager/SMApplication Expand file tree Collapse file tree 5 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ set (Module_SRCS
40
40
vtkSICompositeOrthographicSliceRepresentationProxy.cxx
41
41
)
42
42
43
+ # OpenGL2 specific definitions
44
+ if ("${VTK_RENDERING_BACKEND} " STREQUAL "OpenGL2" )
45
+ add_definitions (-DVTKGL2)
46
+ endif ()
47
+
43
48
#------------------------------------------------------------------------------
44
49
vtk_module_library(vtkPVServerImplementationRendering
45
50
${Module_SRCS} )
Original file line number Diff line number Diff line change @@ -43,12 +43,14 @@ void vtkSIUnstructuredGridVolumeRepresentationProxy::OnCreateVTKObjects()
43
43
<< " Projected tetra"
44
44
<< this ->GetSubSIProxy (" VolumePTMapper" )->GetVTKObject ()
45
45
<< vtkClientServerStream::End;
46
+ #ifndef VTKGL2
46
47
stream << vtkClientServerStream::Invoke
47
48
<< self
48
49
<< " AddVolumeMapper"
49
50
<< " HAVS"
50
51
<< this ->GetSubSIProxy (" VolumeHAVSMapper" )->GetVTKObject ()
51
52
<< vtkClientServerStream::End;
53
+ #endif
52
54
stream << vtkClientServerStream::Invoke
53
55
<< self
54
56
<< " AddVolumeMapper"
@@ -70,6 +72,7 @@ void vtkSIUnstructuredGridVolumeRepresentationProxy::OnCreateVTKObjects()
70
72
void vtkSIUnstructuredGridVolumeRepresentationProxy::UpdateRenderViewExtensions (
71
73
vtkSIViewProxy* view)
72
74
{
75
+ #ifndef VTKGL2
73
76
vtkSIRenderViewProxy* rvp = vtkSIRenderViewProxy::SafeDownCast (view);
74
77
if (!rvp)
75
78
{
@@ -108,6 +111,7 @@ void vtkSIUnstructuredGridVolumeRepresentationProxy::UpdateRenderViewExtensions(
108
111
this ->SupportsHAVSMapper = 1 ;
109
112
}
110
113
}
114
+ #endif
111
115
this ->RenderViewExtensionsTested = 1 ;
112
116
}
113
117
#endif
Original file line number Diff line number Diff line change @@ -37,6 +37,11 @@ SET_SOURCE_FILES_PROPERTIES(
37
37
ABSTRACT
38
38
)
39
39
40
+ # OpenGL2 specific definitions
41
+ if ("${VTK_RENDERING_BACKEND} " STREQUAL "OpenGL2" )
42
+ add_definitions (-DVTKGL2)
43
+ endif ()
44
+
40
45
vtk_module_library(vtkPVServerManagerApplication ${Module_SRCS} )
41
46
42
47
#------------------------------------------------------------------------------
Original file line number Diff line number Diff line change 134
134
<Proxy class =" vtkProjectedTetrahedraMapper"
135
135
name =" ProjectedTetrahedraMapper"
136
136
processes =" client|renderserver|dataserver" ></Proxy >
137
+ #ifndef VTKGL2
137
138
<Proxy class =" vtkHAVSVolumeMapper"
138
139
name =" HAVSVolumeMapper"
139
140
processes =" client|renderserver|dataserver" ></Proxy >
141
+ #endif
140
142
<Proxy name =" DummyVolumeMapper" >
141
143
<ProxyProperty command =" SetRayCastFunction"
142
144
name =" RayCastFunction" >
Original file line number Diff line number Diff line change 3885
3885
rendering.</Documentation >
3886
3886
<StringListDomain name =" list" >
3887
3887
<String value =" Projected tetra" />
3888
+ #ifndef VTKGL2
3888
3889
<String value =" HAVS" />
3890
+ #endif
3889
3891
<String value =" Z sweep" />
3890
3892
<String value =" Bunyk ray cast" />
3891
3893
</StringListDomain >
3928
3930
proxyname =" ProjectedTetrahedraMapper" ></Proxy >
3929
3931
<ShareProperties subproxy =" VolumeDummyMapper" ></ShareProperties >
3930
3932
</SubProxy >
3933
+ #ifndef VTKGL2
3931
3934
<SubProxy >
3932
3935
<Proxy name =" VolumeHAVSMapper"
3933
3936
proxygroup =" mappers"
3934
3937
proxyname =" HAVSVolumeMapper" ></Proxy >
3935
3938
<ShareProperties subproxy =" VolumeDummyMapper" ></ShareProperties >
3936
3939
</SubProxy >
3940
+ #endif
3937
3941
<!-- end of UnstructuredGridVolumeRepresentation -->
3938
3942
</RepresentationProxy >
3939
3943
You can’t perform that action at this time.
0 commit comments