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:
Henry Weller
2016-05-30 21:20:56 +01:00
parent 1cce60aa78
commit eba760a6d6
24640 changed files with 6366069 additions and 0 deletions

View File

@ -0,0 +1,77 @@
/*=========================================================================
Program: ParaView
Module: vtkSMDocumentation.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 "vtkSMDocumentation.h"
#include "vtkObjectFactory.h"
#include "vtkPVXMLElement.h"
vtkStandardNewMacro(vtkSMDocumentation);
vtkCxxSetObjectMacro(vtkSMDocumentation, DocumentationElement,
vtkPVXMLElement);
//-----------------------------------------------------------------------------
vtkSMDocumentation::vtkSMDocumentation()
{
this->DocumentationElement = 0;
}
//-----------------------------------------------------------------------------
vtkSMDocumentation::~vtkSMDocumentation()
{
this->SetDocumentationElement(0);
}
//-----------------------------------------------------------------------------
const char* vtkSMDocumentation::GetLongHelp()
{
if (!this->DocumentationElement)
{
return 0;
}
return this->DocumentationElement->GetAttribute("long_help");
}
//-----------------------------------------------------------------------------
const char* vtkSMDocumentation::GetShortHelp()
{
if (!this->DocumentationElement)
{
return 0;
}
return this->DocumentationElement->GetAttribute("short_help");
}
//-----------------------------------------------------------------------------
const char* vtkSMDocumentation::GetDescription()
{
if (!this->DocumentationElement)
{
return 0;
}
return this->DocumentationElement->GetCharacterData();
}
//-----------------------------------------------------------------------------
void vtkSMDocumentation::PrintSelf(ostream& os, vtkIndent indent)
{
this->Superclass::PrintSelf(os, indent);
os << indent << "DocumentationElement: " << this->DocumentationElement
<< endl;
const char* long_help = this->GetLongHelp();
const char* short_help = this->GetShortHelp();
const char* text = this->GetDescription();
os << indent << "Long Help: " << (long_help? long_help : "(none)") << endl;
os << indent << "Short Help: " << (short_help? short_help: "(none)") << endl;
os << indent << "Description: " << (text? text: "(none)") << endl;
}