Commit bb6c6cde authored by Ben Boeckel's avatar Ben Boeckel

vtkPVServerManagerCore: update to the new module system

parent 5a773cef
......@@ -28,113 +28,115 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
#==========================================================================
set (Module_SRCS
vtkLiveInsituLink.cxx
vtkSMAMRLevelsDomain.cxx
vtkSMArrayListDomain.cxx
vtkSMArrayRangeDomain.cxx
vtkSMArraySelectionDomain.cxx
vtkSMBooleanDomain.cxx
vtkSMBoundsDomain.cxx
vtkSMCollaborationManager.cxx
vtkSMCompositeTreeDomain.cxx
vtkSMCompoundProxyDefinitionLoader.cxx
vtkSMCompoundSourceProxy.cxx
vtkSMCompoundSourceProxyDefinitionBuilder.cxx
vtkSMCoreUtilities.cxx
vtkSMDataSourceProxy.cxx
vtkSMDataTypeDomain.cxx
vtkSMDeserializer.cxx
vtkSMDeserializerProtobuf.cxx
vtkSMDeserializerXMLCache.cxx
vtkSMDeserializerXML.cxx
vtkSMDimensionsDomain.cxx
vtkSMDiscreteDoubleDomain.cxx
vtkSMDocumentation.cxx
vtkSMDomain.cxx
vtkSMDomainIterator.cxx
vtkSMDoubleMapProperty.cxx
vtkSMDoubleMapPropertyIterator.cxx
vtkSMDoubleRangeDomain.cxx
vtkSMDoubleVectorProperty.cxx
vtkSMEnumerationDomain.cxx
vtkSMExtentDomain.cxx
vtkSMExportProxyDepot.cxx
vtkSMFieldDataDomain.cxx
vtkSMFileListDomain.cxx
vtkSMInputFileNameDomain.cxx
vtkSMFixedTypeDomain.cxx
vtkSMGlobalPropertiesLinkUndoElement.cxx
vtkSMGlobalPropertiesProxy.cxx
vtkSMIdTypeVectorProperty.cxx
vtkSMIndexSelectionDomain.cxx
vtkSMInputArrayDomain.cxx
vtkSMInputProperty.cxx
vtkSMInsituStateLoader.cxx
vtkSMIntRangeDomain.cxx
vtkSMIntVectorProperty.cxx
vtkSMLink.cxx
vtkSMLiveInsituLinkProxy.cxx
vtkSMMapProperty.cxx
vtkSMNamedPropertyIterator.cxx
vtkSMNumberOfComponentsDomain.cxx
vtkSMObject.cxx
vtkSMOrderedPropertyIterator.cxx
vtkSMOutputPort.cxx
vtkSMParaViewPipelineController.cxx
vtkSMPWriterProxy.cxx
vtkSMPipelineState.cxx
vtkSMPluginLoaderProxy.cxx
vtkSMPluginManager.cxx
vtkSMProperty.cxx
vtkSMPropertyGroup.cxx
vtkSMPropertyHelper.cxx
vtkSMPropertyIterator.cxx
vtkSMNullProxy.cxx
vtkSMPropertyLink.cxx
vtkSMProxy.cxx
vtkSMProxyDefinitionManager.cxx
vtkSMProxyGroupDomain.cxx
vtkSMProxyInitializationHelper.cxx
vtkSMProxyIterator.cxx
vtkSMProxyLink.cxx
vtkSMProxyListDomain.cxx
vtkSMProxyLocator.cxx
vtkSMProxyManager.cxx
vtkSMProxyProperty.cxx
vtkSMProxySelectionModel.cxx
vtkSMRangeDomainTemplate.txx
vtkSMReaderFactory.cxx
vtkSMRemoteObject.cxx
vtkSMRemoteObjectUpdateUndoElement.cxx
vtkSMSILDomain.cxx
vtkSMSILModel.cxx
vtkSMSelfGeneratingSourceProxy.cxx
vtkSMServerStateLocator.cxx
vtkSMSession.cxx
vtkSMSessionClient.cxx
vtkSMSessionObject.cxx
vtkSMSessionProxyManager.cxx
vtkSMSettings.cxx
vtkSMSettingsProxy.cxx
vtkSMSourceProxy.cxx
vtkSMStateLoader.cxx
vtkSMStateLocator.cxx
vtkSMStateVersionController.cxx
vtkSMStringListDomain.cxx
vtkSMStringVectorProperty.cxx
vtkSMSubsetInclusionLatticeDomain.cxx
vtkSMTimeKeeper.cxx
vtkSMTimeKeeperProxy.cxx
vtkSMTimeStepIndexDomain.cxx
vtkSMTrace.cxx
vtkSMUncheckedPropertyHelper.cxx
vtkSMUndoElement.cxx
vtkSMUndoStack.cxx
vtkSMUndoStackBuilder.cxx
vtkSMVectorProperty.cxx
vtkSMWriterFactory.cxx
vtkSMWriterProxy.cxx
)
set(classes
vtkLiveInsituLink
vtkSMAMRLevelsDomain
vtkSMArrayListDomain
vtkSMArrayRangeDomain
vtkSMArraySelectionDomain
vtkSMBooleanDomain
vtkSMBoundsDomain
vtkSMCollaborationManager
vtkSMCompositeTreeDomain
vtkSMCompoundProxyDefinitionLoader
vtkSMCompoundSourceProxy
vtkSMCompoundSourceProxyDefinitionBuilder
vtkSMCoreUtilities
vtkSMDataSourceProxy
vtkSMDataTypeDomain
vtkSMDeserializer
vtkSMDeserializerProtobuf
vtkSMDeserializerXML
vtkSMDeserializerXMLCache
vtkSMDimensionsDomain
vtkSMDiscreteDoubleDomain
vtkSMDocumentation
vtkSMDomain
vtkSMDomainIterator
vtkSMDoubleMapProperty
vtkSMDoubleMapPropertyIterator
vtkSMDoubleRangeDomain
vtkSMDoubleVectorProperty
vtkSMEnumerationDomain
vtkSMExtentDomain
vtkSMExportProxyDepot
vtkSMFieldDataDomain
vtkSMFileListDomain
vtkSMFixedTypeDomain
vtkSMGlobalPropertiesLinkUndoElement
vtkSMGlobalPropertiesProxy
vtkSMIdTypeVectorProperty
vtkSMIndexSelectionDomain
vtkSMInputArrayDomain
vtkSMInputFileNameDomain
vtkSMInputProperty
vtkSMInsituStateLoader
vtkSMIntRangeDomain
vtkSMIntVectorProperty
vtkSMLink
vtkSMLiveInsituLinkProxy
vtkSMMapProperty
vtkSMNamedPropertyIterator
vtkSMNullProxy
vtkSMNumberOfComponentsDomain
vtkSMObject
vtkSMOrderedPropertyIterator
vtkSMOutputPort
vtkSMPWriterProxy
vtkSMParaViewPipelineController
vtkSMPipelineState
vtkSMPluginLoaderProxy
vtkSMPluginManager
vtkSMProperty
vtkSMPropertyGroup
vtkSMPropertyHelper
vtkSMPropertyIterator
vtkSMPropertyLink
vtkSMProxy
vtkSMProxyDefinitionManager
vtkSMProxyGroupDomain
vtkSMProxyInitializationHelper
vtkSMProxyIterator
vtkSMProxyLink
vtkSMProxyListDomain
vtkSMProxyLocator
vtkSMProxyManager
vtkSMProxyProperty
vtkSMProxySelectionModel
vtkSMReaderFactory
vtkSMRemoteObject
vtkSMRemoteObjectUpdateUndoElement
vtkSMSILDomain
vtkSMSILModel
vtkSMSelfGeneratingSourceProxy
vtkSMServerStateLocator
vtkSMSession
vtkSMSessionClient
vtkSMSessionObject
vtkSMSessionProxyManager
vtkSMSettings
vtkSMSettingsProxy
vtkSMSourceProxy
vtkSMStateLoader
vtkSMStateLocator
vtkSMStateVersionController
vtkSMStringListDomain
vtkSMStringVectorProperty
vtkSMSubsetInclusionLatticeDomain
vtkSMTimeKeeper
vtkSMTimeKeeperProxy
vtkSMTimeStepIndexDomain
vtkSMTrace
vtkSMUncheckedPropertyHelper
vtkSMUndoElement
vtkSMUndoStack
vtkSMUndoStackBuilder
vtkSMVectorProperty
vtkSMWriterFactory
vtkSMWriterProxy)
set(template_classes
vtkSMRangeDomainTemplate)
vtk_module_library(vtkPVServerManagerCore ${Module_SRCS})
vtk_module_add_module(ParaView::ServerManagerCore
CLASSES ${classes}
TEMPLATE_CLASSES ${template_classes})
add_subdirectory(Cxx)
if (PARAVIEW_ENABLE_PYTHON)
add_subdirectory(Python)
endif ()
paraview_add_test_cxx(${vtk-module}CxxTests tests
vtk_add_test_cxx(vtkPVServerManagerCoreCxxTests tests
NO_DATA NO_VALID
TestAdjustRange.cxx
TestSelfGeneratingSourceProxy.cxx
......@@ -10,11 +10,11 @@ paraview_add_test_cxx(${vtk-module}CxxTests tests
if(NOT PARAVIEW_BUILD_QT_GUI)
paraview_test_load_data("" can.ex2)
endif()
paraview_add_test_cxx(${vtk-module}CxxTests tmp_tests
vtk_add_test_cxx(vtkPVServerManagerCoreCxxTests tmp_tests
NO_VALID
TestParaViewPipelineController.cxx
)
list(APPEND tests
${tmp_tests})
vtk_test_cxx_executable(${vtk-module}CxxTests tests)
vtk_test_cxx_executable(vtkPVServerManagerCoreCxxTests tests)
......@@ -68,7 +68,7 @@ int TestParaViewPipelineController(int argc, char* argv[])
controller->PreInitializeProxy(exodusReader);
char* fname = vtkTestUtilities::ExpandDataFileName(argc, argv, "can.ex2");
char* fname = vtkTestUtilities::ExpandDataFileName(argc, argv, "Testing/Data/can.ex2");
vtkSMPropertyHelper(exodusReader, "FileName").Set(fname);
delete[] fname;
......
set (__dependencies)
if (PARAVIEW_ENABLE_PYTHON)
list (APPEND __dependencies vtkPythonInterpreter)
endif ()
vtk_module(vtkPVServerManagerCore
GROUPS
ParaViewCore
DEPENDS
# Explicitly list (rather than transiently through
# vtkPVServerImplementationCore) because it allows us to turn wrapping
# of vtkPVServerImplementationCore off but still satisfy API dependency.
vtkCommonCore
vtkPVServerImplementationCore
vtkjsoncpp
PRIVATE_DEPENDS
vtksys
vtkpugixml
${__dependencies}
TEST_LABELS
PARAVIEW
TEST_DEPENDS
vtkPVServerManagerApplication
KIT
vtkPVServerManager
)
unset (__dependencies)
NAME
ParaView::ServerManager
LIBRARY_NAME
vtkPVServerManager
NAME
ParaView::ServerManagerCore
LIBRARY_NAME
vtkPVServerManagerCore
GROUPS
ParaViewCore
KIT
ParaView::ServerManager
IMPLEMENTABLE
DEPENDS
ParaView::ServerImplementationCore
VTK::jsoncpp
PRIVATE_DEPENDS
VTK::IOMovie
VTK::pugixml
VTK::vtksys
OPTIONAL_DEPENDS
VTK::Python
VTK::PythonInterpreter
VTK::RenderingOSPRay
VTK::WrappingPythonCore
TEST_DEPENDS
ParaView::ServerManagerApplication
ParaView::ServerManagerRendering
VTK::TestingCore
TEST_LABELS
ParaView
......@@ -401,8 +401,7 @@ bool vtkSMParaViewPipelineController::InitializeSession(vtkSMSession* session)
vtkSmartPointer<vtkSMProxy> materialLib = this->FindMaterialLibrary(session);
if (!materialLib)
{
#ifdef PARAVIEW_USE_OSPRAY
#if VTK_MODULE_ENABLE_VTK_RenderingOSPRay
materialLib.TakeReference(vtkSafeNewProxy(pxm, "materials", "MaterialLibrary"));
if (materialLib)
{
......
......@@ -12,8 +12,8 @@
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#include "vtkPVConfig.h" // needed for PARAVIEW_ENABLE_PYTHON
#ifdef PARAVIEW_ENABLE_PYTHON
#if VTK_MODULE_ENABLE_VTK_PythonInterpreter && VTK_MODULE_ENABLE_VTK_Python && \
VTK_MODULE_ENABLE_VTK_WrappingPythonCore
#include "vtkPython.h"
#include "vtkPythonInterpreter.h"
#include "vtkPythonUtil.h"
......@@ -38,7 +38,8 @@
#include <map>
#include <sstream>
#ifndef PARAVIEW_ENABLE_PYTHON
#if !(VTK_MODULE_ENABLE_VTK_PythonInterpreter && VTK_MODULE_ENABLE_VTK_Python && \
VTK_MODULE_ENABLE_VTK_WrappingPythonCore)
class vtkSmartPyObject
{
public:
......@@ -64,7 +65,8 @@ vtkSMTrace::vtkSMTrace()
, FullyTraceSupplementalProxies(false)
, Internals(new vtkSMTrace::vtkInternals())
{
#ifdef PARAVIEW_ENABLE_PYTHON
#if VTK_MODULE_ENABLE_VTK_PythonInterpreter && VTK_MODULE_ENABLE_VTK_Python && \
VTK_MODULE_ENABLE_VTK_WrappingPythonCore
// ensure Python interpreter is initialized.
vtkPythonInterpreter::Initialize();
vtkPythonScopeGilEnsurer gilEnsurer;
......@@ -111,7 +113,8 @@ vtkStdString vtkSMTrace::GetState(int propertiesToTraceOnCreate, bool skipHidden
return vtkStdString();
}
#ifdef PARAVIEW_ENABLE_PYTHON
#if VTK_MODULE_ENABLE_VTK_PythonInterpreter && VTK_MODULE_ENABLE_VTK_Python && \
VTK_MODULE_ENABLE_VTK_WrappingPythonCore
vtkPythonInterpreter::Initialize();
vtkPythonScopeGilEnsurer gilEnsurer;
try
......@@ -152,7 +155,8 @@ vtkSMTrace* vtkSMTrace::StartTrace(const char* preamble)
if (vtkSMTrace::ActiveTracer.GetPointer() == NULL)
{
vtkSMTrace::ActiveTracer = vtkSmartPointer<vtkSMTrace>::New();
#ifdef PARAVIEW_ENABLE_PYTHON
#if VTK_MODULE_ENABLE_VTK_PythonInterpreter && VTK_MODULE_ENABLE_VTK_Python && \
VTK_MODULE_ENABLE_VTK_WrappingPythonCore
if (!vtkSMTrace::ActiveTracer->Internals->TraceModule)
{
vtkGenericWarningMacro("Trace not started since required Python modules are missing.");
......@@ -196,7 +200,8 @@ vtkStdString vtkSMTrace::StopTrace()
vtkSmartPointer<vtkSMTrace> active = vtkSMTrace::ActiveTracer;
vtkSMTrace::ActiveTracer = NULL;
#ifdef PARAVIEW_ENABLE_PYTHON
#if VTK_MODULE_ENABLE_VTK_PythonInterpreter && VTK_MODULE_ENABLE_VTK_Python && \
VTK_MODULE_ENABLE_VTK_WrappingPythonCore
vtkPythonScopeGilEnsurer gilEnsurer;
vtkSmartPyObject _stop_trace_internal(
PyObject_CallMethod(active->GetTraceModule(), const_cast<char*>("_stop_trace_internal"), NULL));
......@@ -227,7 +232,8 @@ vtkStdString vtkSMTrace::GetCurrentTrace()
return vtkStdString();
}
#ifdef PARAVIEW_ENABLE_PYTHON
#if VTK_MODULE_ENABLE_VTK_PythonInterpreter && VTK_MODULE_ENABLE_VTK_Python && \
VTK_MODULE_ENABLE_VTK_WrappingPythonCore
vtkSMTrace* active = vtkSMTrace::ActiveTracer;
vtkPythonScopeGilEnsurer gilEnsurer;
vtkSmartPyObject get_current_trace_output(PyObject_CallMethod(
......@@ -262,7 +268,8 @@ const vtkSmartPyObject& vtkSMTrace::GetCreateItemFunction() const
//----------------------------------------------------------------------------
bool vtkSMTrace::CheckForError()
{
#ifdef PARAVIEW_ENABLE_PYTHON
#if VTK_MODULE_ENABLE_VTK_PythonInterpreter && VTK_MODULE_ENABLE_VTK_Python && \
VTK_MODULE_ENABLE_VTK_WrappingPythonCore
vtkPythonScopeGilEnsurer gilEnsurer;
PyObject* exception = PyErr_Occurred();
if (exception)
......@@ -290,7 +297,8 @@ bool vtkSMTrace::CheckForError()
class vtkSMTrace::TraceItemArgs::vtkInternals
{
public:
#ifdef PARAVIEW_ENABLE_PYTHON
#if VTK_MODULE_ENABLE_VTK_PythonInterpreter && VTK_MODULE_ENABLE_VTK_Python && \
VTK_MODULE_ENABLE_VTK_WrappingPythonCore
vtkSmartPyObject KWArgs;
vtkSmartPyObject PositionalArgs;
vtkInternals() {}
......@@ -338,7 +346,8 @@ vtkSMTrace::TraceItemArgs& vtkSMTrace::TraceItemArgs::arg(const char* key, vtkOb
assert(key);
if (vtkSMTrace::GetActiveTracer())
{
#ifdef PARAVIEW_ENABLE_PYTHON
#if VTK_MODULE_ENABLE_VTK_PythonInterpreter && VTK_MODULE_ENABLE_VTK_Python && \
VTK_MODULE_ENABLE_VTK_WrappingPythonCore
vtkPythonScopeGilEnsurer gilEnsurer;
vtkSmartPyObject keyObj(PyString_FromString(key));
vtkSmartPyObject valObj(vtkPythonUtil::GetObjectFromPointer(val));
......@@ -360,7 +369,8 @@ vtkSMTrace::TraceItemArgs& vtkSMTrace::TraceItemArgs::arg(const char* key, const
assert(key);
if (vtkSMTrace::GetActiveTracer())
{
#ifdef PARAVIEW_ENABLE_PYTHON
#if VTK_MODULE_ENABLE_VTK_PythonInterpreter && VTK_MODULE_ENABLE_VTK_Python && \
VTK_MODULE_ENABLE_VTK_WrappingPythonCore
vtkPythonScopeGilEnsurer gilEnsurer;
vtkSmartPyObject keyObj(PyString_FromString(key));
vtkSmartPyObject valObj;
......@@ -391,7 +401,8 @@ vtkSMTrace::TraceItemArgs& vtkSMTrace::TraceItemArgs::arg(const char* key, int v
assert(key);
if (vtkSMTrace::GetActiveTracer())
{
#ifdef PARAVIEW_ENABLE_PYTHON
#if VTK_MODULE_ENABLE_VTK_PythonInterpreter && VTK_MODULE_ENABLE_VTK_Python && \
VTK_MODULE_ENABLE_VTK_WrappingPythonCore
vtkPythonScopeGilEnsurer gilEnsurer;
vtkSmartPyObject keyObj(PyString_FromString(key));
vtkSmartPyObject valObj(PyInt_FromLong(val));
......@@ -413,7 +424,8 @@ vtkSMTrace::TraceItemArgs& vtkSMTrace::TraceItemArgs::arg(const char* key, doubl
assert(key);
if (vtkSMTrace::GetActiveTracer())
{
#ifdef PARAVIEW_ENABLE_PYTHON
#if VTK_MODULE_ENABLE_VTK_PythonInterpreter && VTK_MODULE_ENABLE_VTK_Python && \
VTK_MODULE_ENABLE_VTK_WrappingPythonCore
vtkPythonScopeGilEnsurer gilEnsurer;
vtkSmartPyObject keyObj(PyString_FromString(key));
vtkSmartPyObject valObj(PyFloat_FromDouble(val));
......@@ -434,7 +446,8 @@ vtkSMTrace::TraceItemArgs& vtkSMTrace::TraceItemArgs::arg(const char* key, bool
assert(key);
if (vtkSMTrace::GetActiveTracer())
{
#ifdef PARAVIEW_ENABLE_PYTHON
#if VTK_MODULE_ENABLE_VTK_PythonInterpreter && VTK_MODULE_ENABLE_VTK_Python && \
VTK_MODULE_ENABLE_VTK_WrappingPythonCore
vtkPythonScopeGilEnsurer gilEnsurer;
vtkSmartPyObject keyObj(PyString_FromString(key));
vtkSmartPyObject valObj(PyBool_FromLong(val ? 1 : 0));
......@@ -455,7 +468,8 @@ vtkSMTrace::TraceItemArgs& vtkSMTrace::TraceItemArgs::arg(vtkObject* val)
{
if (vtkSMTrace::GetActiveTracer())
{
#ifdef PARAVIEW_ENABLE_PYTHON
#if VTK_MODULE_ENABLE_VTK_PythonInterpreter && VTK_MODULE_ENABLE_VTK_Python && \
VTK_MODULE_ENABLE_VTK_WrappingPythonCore
vtkPythonScopeGilEnsurer gilEnsurer;
vtkSmartPyObject valObj(vtkPythonUtil::GetObjectFromPointer(val));
assert(valObj);
......@@ -474,7 +488,8 @@ vtkSMTrace::TraceItemArgs& vtkSMTrace::TraceItemArgs::arg(const char* val)
assert(val);
if (vtkSMTrace::GetActiveTracer())
{
#ifdef PARAVIEW_ENABLE_PYTHON
#if VTK_MODULE_ENABLE_VTK_PythonInterpreter && VTK_MODULE_ENABLE_VTK_Python && \
VTK_MODULE_ENABLE_VTK_WrappingPythonCore
vtkPythonScopeGilEnsurer gilEnsurer;
vtkSmartPyObject valObj(PyString_FromString(val));
assert(valObj);
......@@ -492,7 +507,8 @@ vtkSMTrace::TraceItemArgs& vtkSMTrace::TraceItemArgs::arg(int val)
{
if (vtkSMTrace::GetActiveTracer())
{
#ifdef PARAVIEW_ENABLE_PYTHON
#if VTK_MODULE_ENABLE_VTK_PythonInterpreter && VTK_MODULE_ENABLE_VTK_Python && \
VTK_MODULE_ENABLE_VTK_WrappingPythonCore
vtkPythonScopeGilEnsurer gilEnsurer;
vtkSmartPyObject valObj(PyInt_FromLong(val));
assert(valObj);
......@@ -510,7 +526,8 @@ vtkSMTrace::TraceItemArgs& vtkSMTrace::TraceItemArgs::arg(double val)
{
if (vtkSMTrace::GetActiveTracer())
{
#ifdef PARAVIEW_ENABLE_PYTHON
#if VTK_MODULE_ENABLE_VTK_PythonInterpreter && VTK_MODULE_ENABLE_VTK_Python && \
VTK_MODULE_ENABLE_VTK_WrappingPythonCore
vtkPythonScopeGilEnsurer gilEnsurer;
vtkSmartPyObject valObj(PyFloat_FromDouble(val));
assert(valObj);
......@@ -528,7 +545,8 @@ vtkSMTrace::TraceItemArgs& vtkSMTrace::TraceItemArgs::arg(bool val)
{
if (vtkSMTrace::GetActiveTracer())
{
#ifdef PARAVIEW_ENABLE_PYTHON
#if VTK_MODULE_ENABLE_VTK_PythonInterpreter && VTK_MODULE_ENABLE_VTK_Python && \
VTK_MODULE_ENABLE_VTK_WrappingPythonCore
vtkPythonScopeGilEnsurer gilEnsurer;
vtkSmartPyObject valObj(PyBool_FromLong(val ? 1 : 0));
assert(valObj);
......@@ -561,7 +579,8 @@ vtkSMTrace::TraceItem::TraceItem(const char* type)
vtkSMTrace::TraceItem::~TraceItem()
{
// if activated, delete the item
#ifdef PARAVIEW_ENABLE_PYTHON
#if VTK_MODULE_ENABLE_VTK_PythonInterpreter && VTK_MODULE_ENABLE_VTK_Python && \
VTK_MODULE_ENABLE_VTK_WrappingPythonCore
vtkSMTrace* tracer = vtkSMTrace::GetActiveTracer();
if (tracer && this->Internals->PyItem)
{
......@@ -576,7 +595,8 @@ vtkSMTrace::TraceItem::~TraceItem()
delete this->Internals;
this->Internals = NULL;
#ifdef PARAVIEW_ENABLE_PYTHON
#if VTK_MODULE_ENABLE_VTK_PythonInterpreter && VTK_MODULE_ENABLE_VTK_Python && \
VTK_MODULE_ENABLE_VTK_WrappingPythonCore
if (tracer)
{
tracer->CheckForError();
......@@ -588,7 +608,8 @@ vtkSMTrace::TraceItem::~TraceItem()
void vtkSMTrace::TraceItem::operator=(const TraceItemArgs& arguments)
{
// Create the python object and pass the arguments to it.
#ifdef PARAVIEW_ENABLE_PYTHON
#if VTK_MODULE_ENABLE_VTK_PythonInterpreter && VTK_MODULE_ENABLE_VTK_Python && \
VTK_MODULE_ENABLE_VTK_WrappingPythonCore
if (vtkSMTrace* tracer = vtkSMTrace::GetActiveTracer())
{
vtkPythonScopeGilEnsurer gilEnsurer;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment