mirror of
https://github.com/OpenFOAM/ThirdParty-6.git
synced 2025-12-08 06:57:43 +00:00
ParaView-5.0.1: Added the source-tree to ThirdParty-dev and patched as described in the README file
Resolves bug-report http://bugs.openfoam.org/view.php?id=2098
This commit is contained in:
@ -0,0 +1,71 @@
|
||||
/*=========================================================================
|
||||
|
||||
Program: ParaView
|
||||
Module: vtkSMDeserializer.cxx
|
||||
|
||||
Copyright (c) Kitware, Inc.
|
||||
All rights reserved.
|
||||
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
|
||||
|
||||
This software is distributed WITHOUT ANY WARRANTY; without even
|
||||
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
PURPOSE. See the above copyright notice for more information.
|
||||
|
||||
=========================================================================*/
|
||||
#include "vtkSMDeserializer.h"
|
||||
|
||||
#include "vtkSMSession.h"
|
||||
#include "vtkSMSessionProxyManager.h"
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
vtkSMDeserializer::vtkSMDeserializer()
|
||||
{
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
vtkSMDeserializer::~vtkSMDeserializer()
|
||||
{
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
vtkSMProxy* vtkSMDeserializer::CreateProxy(const char* xmlgroup,
|
||||
const char* xmlname,
|
||||
const char* subname)
|
||||
{
|
||||
vtkSMSessionProxyManager* pxm = this->SessionProxyManager;
|
||||
return pxm? pxm->NewProxy(xmlgroup, xmlname, subname) : NULL;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
void vtkSMDeserializer::SetSession(vtkSMSession* session)
|
||||
{
|
||||
this->SetSessionProxyManager(
|
||||
session? session->GetSessionProxyManager() : NULL);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
void vtkSMDeserializer::SetSessionProxyManager(vtkSMSessionProxyManager* pxm)
|
||||
{
|
||||
this->SessionProxyManager = pxm;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
vtkSMSessionProxyManager* vtkSMDeserializer::GetSessionProxyManager()
|
||||
{
|
||||
return this->SessionProxyManager;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
vtkSMSession* vtkSMDeserializer::GetSession()
|
||||
{
|
||||
return this->SessionProxyManager?
|
||||
this->SessionProxyManager->GetSession() : NULL;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
void vtkSMDeserializer::PrintSelf(ostream& os, vtkIndent indent)
|
||||
{
|
||||
this->Superclass::PrintSelf(os, indent);
|
||||
os << indent << "SessionProxyManager: " <<
|
||||
this->SessionProxyManager.GetPointer() << endl;
|
||||
}
|
||||
Reference in New Issue
Block a user