Skip to content

Commit da53064

Browse files
committed
Another pass on disabling HAVS mapper
Change-Id: Ibf1c3dc775df548f31c84afe378000541f7bdd80
1 parent dd24a4f commit da53064

File tree

5 files changed

+21
-8
lines changed

5 files changed

+21
-8
lines changed

ParaViewCore/ServerImplementation/Rendering/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ set (Module_SRCS
4040
vtkSICompositeOrthographicSliceRepresentationProxy.cxx
4141
)
4242

43+
# OpenGL2 specific definitions
44+
if("${VTK_RENDERING_BACKEND}" STREQUAL "OpenGL2")
45+
add_definitions(-DVTKGL2)
46+
endif()
47+
4348
#------------------------------------------------------------------------------
4449
vtk_module_library(vtkPVServerImplementationRendering
4550
${Module_SRCS})

ParaViewCore/ServerImplementation/Rendering/vtkSIUnstructuredGridVolumeRepresentationProxy.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@ void vtkSIUnstructuredGridVolumeRepresentationProxy::OnCreateVTKObjects()
4343
<< "Projected tetra"
4444
<< this->GetSubSIProxy("VolumePTMapper")->GetVTKObject()
4545
<< vtkClientServerStream::End;
46+
#ifndef VTKGL2
4647
stream << vtkClientServerStream::Invoke
4748
<< self
4849
<< "AddVolumeMapper"
4950
<< "HAVS"
5051
<< this->GetSubSIProxy("VolumeHAVSMapper")->GetVTKObject()
5152
<< vtkClientServerStream::End;
53+
#endif
5254
stream << vtkClientServerStream::Invoke
5355
<< self
5456
<< "AddVolumeMapper"
@@ -70,6 +72,7 @@ void vtkSIUnstructuredGridVolumeRepresentationProxy::OnCreateVTKObjects()
7072
void vtkSIUnstructuredGridVolumeRepresentationProxy::UpdateRenderViewExtensions(
7173
vtkSIViewProxy* view)
7274
{
75+
#ifndef VTKGL2
7376
vtkSIRenderViewProxy* rvp = vtkSIRenderViewProxy::SafeDownCast(view);
7477
if (!rvp)
7578
{
@@ -108,6 +111,7 @@ void vtkSIUnstructuredGridVolumeRepresentationProxy::UpdateRenderViewExtensions(
108111
this->SupportsHAVSMapper = 1;
109112
}
110113
}
114+
#endif
111115
this->RenderViewExtensionsTested = 1;
112116
}
113117
#endif

ParaViewCore/ServerManager/SMApplication/CMakeLists.txt

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ SET_SOURCE_FILES_PROPERTIES(
3737
ABSTRACT
3838
)
3939

40+
# OpenGL2 specific definitions
41+
if("${VTK_RENDERING_BACKEND}" STREQUAL "OpenGL2")
42+
add_definitions(-DVTKGL2)
43+
endif()
44+
4045
vtk_module_library(vtkPVServerManagerApplication ${Module_SRCS})
4146

4247
#------------------------------------------------------------------------------
@@ -103,21 +108,14 @@ SET(requestedResourceFiles
103108
${CMAKE_CURRENT_SOURCE_DIR}/Resources/filters.xml
104109
${CMAKE_CURRENT_SOURCE_DIR}/Resources/internal_writers.xml
105110
${CMAKE_CURRENT_SOURCE_DIR}/Resources/readers.xml
111+
${CMAKE_CURRENT_SOURCE_DIR}/Resources/rendering.xml
106112
${CMAKE_CURRENT_SOURCE_DIR}/Resources/sources.xml
107113
${CMAKE_CURRENT_SOURCE_DIR}/Resources/utilities.xml
108114
${CMAKE_CURRENT_SOURCE_DIR}/Resources/views_and_representations.xml
109115
${CMAKE_CURRENT_SOURCE_DIR}/Resources/writers.xml
110116
${module_sm_xmls}
111117
)
112118

113-
if("${VTK_RENDERING_BACKEND}" STREQUAL "OpenGL2")
114-
list(APPEND requestedResourceFiles
115-
${CMAKE_CURRENT_SOURCE_DIR}/Resources/rendering_opengl2.xml)
116-
else()
117-
list(APPEND requestedResourceFiles
118-
${CMAKE_CURRENT_SOURCE_DIR}/Resources/rendering.xml)
119-
endif()
120-
121119
if (PARAVIEW_ENABLE_PYTHON)
122120
list(APPEND requestedResourceFiles
123121
${CMAKE_CURRENT_SOURCE_DIR}/Resources/pythonfilter.xml

ParaViewCore/ServerManager/SMApplication/Resources/rendering.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,11 @@
134134
<Proxy class="vtkProjectedTetrahedraMapper"
135135
name="ProjectedTetrahedraMapper"
136136
processes="client|renderserver|dataserver"></Proxy>
137+
#ifndef VTKGL2
137138
<Proxy class="vtkHAVSVolumeMapper"
138139
name="HAVSVolumeMapper"
139140
processes="client|renderserver|dataserver"></Proxy>
141+
#endif
140142
<Proxy name="DummyVolumeMapper">
141143
<ProxyProperty command="SetRayCastFunction"
142144
name="RayCastFunction">

ParaViewCore/ServerManager/SMApplication/Resources/views_and_representations.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3832,7 +3832,9 @@
38323832
rendering.</Documentation>
38333833
<StringListDomain name="list">
38343834
<String value="Projected tetra" />
3835+
#ifndef VTKGL2
38353836
<String value="HAVS" />
3837+
#endif
38363838
<String value="Z sweep" />
38373839
<String value="Bunyk ray cast" />
38383840
</StringListDomain>
@@ -3875,12 +3877,14 @@
38753877
proxyname="ProjectedTetrahedraMapper"></Proxy>
38763878
<ShareProperties subproxy="VolumeDummyMapper"></ShareProperties>
38773879
</SubProxy>
3880+
#ifndef VTKGL2
38783881
<SubProxy>
38793882
<Proxy name="VolumeHAVSMapper"
38803883
proxygroup="mappers"
38813884
proxyname="HAVSVolumeMapper"></Proxy>
38823885
<ShareProperties subproxy="VolumeDummyMapper"></ShareProperties>
38833886
</SubProxy>
3887+
#endif
38843888
<!-- end of UnstructuredGridVolumeRepresentation -->
38853889
</RepresentationProxy>
38863890

0 commit comments

Comments
 (0)