[vtk6] 02/10: Correct patch
Gert Wollny
gert-guest at moszumanska.debian.org
Tue Feb 2 16:38:00 UTC 2016
This is an automated email from the git hooks/post-receive script.
gert-guest pushed a commit to branch master
in repository vtk6.
commit 654af2b889a0abde2526afe36980e5054cbee144
Author: Gert Wollny <gw.fossdev at gmail.com>
Date: Sun Jan 31 17:44:29 2016 +0100
Correct patch
---
CMake/vtkModuleMacros.cmake | 4 +-
CMake/vtkTestFFMPEG.cmake | 4 +-
Common/Core/Testing/Cxx/CMakeLists.txt | 1 +
Common/Core/vtkLookupTable.cxx | 22 +++-
Common/Core/vtkLookupTable.h | 7 +-
Common/Core/vtkUnicodeString.cxx | 48 +++----
Examples/Infovis/Cxx/CMakeLists.txt | 5 -
Filters/ParallelMPI/vtkDistributedDataFilter.cxx | 48 +++++--
IO/Core/vtkUTF8TextCodec.cxx | 4 +-
IO/FFMPEG/vtkFFMPEGWriter.cxx | 20 +--
IO/GDAL/vtkGDALVectorReader.cxx | 12 ++
IO/SQL/vtkSQLiteDatabase.cxx | 22 ++--
IO/SQL/vtkSQLiteDatabase.h | 4 +-
IO/SQL/vtkSQLiteQuery.cxx | 144 ++++++++++-----------
IO/SQL/vtkSQLiteQuery.h | 4 +-
Parallel/MPI4Py/CMakeLists.txt | 2 +-
Parallel/MPI4Py/module.cmake | 2 -
.../Matplotlib/vtkMatplotlibMathTextUtilities.h | 4 +
Rendering/Tk/CMakeLists.txt | 2 +-
ThirdParty/sqlite/CMakeLists.txt | 3 +-
Utilities/Doxygen/doxyfile.in | 1 +
Wrapping/Tcl/vtkTkAppInit.cxx | 2 +
22 files changed, 209 insertions(+), 156 deletions(-)
diff --git a/CMake/vtkModuleMacros.cmake b/CMake/vtkModuleMacros.cmake
index 14d21da..b6143b8 100644
--- a/CMake/vtkModuleMacros.cmake
+++ b/CMake/vtkModuleMacros.cmake
@@ -401,8 +401,8 @@ endfunction()
function(vtk_target_name _name)
get_property(_type TARGET ${_name} PROPERTY TYPE)
if(NOT "${_type}" STREQUAL EXECUTABLE AND NOT VTK_JAVA_INSTALL)
- set_property(TARGET ${_name} PROPERTY VERSION 1)
- set_property(TARGET ${_name} PROPERTY SOVERSION 1)
+ set_property(TARGET ${_name} PROPERTY VERSION ${VTK_MAJOR_VERSION}.${VTK_MINOR_VERSION}.${VTK_BUILD_VERSION})
+ set_property(TARGET ${_name} PROPERTY SOVERSION ${VTK_MAJOR_VERSION}.${VTK_MINOR_VERSION})
endif()
if("${_name}" MATCHES "^[Vv][Tt][Kk]")
set(_vtk "")
diff --git a/CMake/vtkTestFFMPEG.cmake b/CMake/vtkTestFFMPEG.cmake
index 7cba9f3..a33cce2 100644
--- a/CMake/vtkTestFFMPEG.cmake
+++ b/CMake/vtkTestFFMPEG.cmake
@@ -32,8 +32,8 @@ if(FFMPEG_INCLUDE_DIR)
#include <${FFMEG_CODEC_HEADER_PATH}/avcodec.h>
int main()
{
- img_convert(0, PIX_FMT_RGB24,
- 0, PIX_FMT_RGB24,
+ img_convert(0, AV_PIX_FMT_RGB24,
+ 0, AV_PIX_FMT_RGB24,
0, 0);
return 0;
}\n")
diff --git a/Common/Core/Testing/Cxx/CMakeLists.txt b/Common/Core/Testing/Cxx/CMakeLists.txt
index c43ab1b..5638440 100644
--- a/Common/Core/Testing/Cxx/CMakeLists.txt
+++ b/Common/Core/Testing/Cxx/CMakeLists.txt
@@ -32,6 +32,7 @@ vtk_add_test_cxx(${vtk-module}CxxTests tests
TestGarbageCollector.cxx
# TestInstantiator.cxx # Have not enabled instantiators.
TestLookupTable.cxx
+ TestLookupTableThreaded.cxx
TestMath.cxx
TestMinimalStandardRandomSequence.cxx
TestNew.cxx
diff --git a/Common/Core/vtkLookupTable.cxx b/Common/Core/vtkLookupTable.cxx
index 53d9663..2d90054 100644
--- a/Common/Core/vtkLookupTable.cxx
+++ b/Common/Core/vtkLookupTable.cxx
@@ -18,6 +18,7 @@
#include "vtkBitArray.h"
#include "vtkMath.h"
#include "vtkMathConfigure.h"
+#include "vtkMutexLock.h"
#include "vtkObjectFactory.h"
#include "vtkStringArray.h"
#include "vtkVariantArray.h"
@@ -81,6 +82,8 @@ vtkLookupTable::vtkLookupTable(int sze, int ext)
this->Scale = VTK_SCALE_LINEAR;
this->OpaqueFlag=1;
+
+ this->ResizeMutex = vtkSimpleMutexLock::New();
}
//----------------------------------------------------------------------------
@@ -88,6 +91,7 @@ vtkLookupTable::~vtkLookupTable()
{
this->Table->UnRegister( this );
this->Table = NULL;
+ this->ResizeMutex->Delete();
}
//----------------------------------------------------------------------------
@@ -641,8 +645,8 @@ namespace {
//----------------------------------------------------------------------------
template<class T>
-void vtkLookupTableMapData(vtkLookupTable *self, T *input,
- unsigned char *output, int length,
+void vtkLookupTableMapData(vtkLookupTable *self, vtkSimpleMutexLock *mutex,
+ T *input, unsigned char *output, int length,
int inIncr, int outFormat, TableParameters & p)
{
int i = length;
@@ -654,14 +658,24 @@ void vtkLookupTableMapData(vtkLookupTable *self, T *input,
// end. When this function is called repeatedly with the same size
// lookup table, memory reallocation will be done only one the first
// call if at all.
+
vtkUnsignedCharArray* lookupTable = self->GetTable();
vtkIdType numberOfColors = lookupTable->GetNumberOfTuples();
vtkIdType neededSize = (numberOfColors + vtkLookupTable::NUMBER_OF_SPECIAL_COLORS) *
lookupTable->GetNumberOfComponents();
+
+ // Since this involves a potential array resize and this function
+ // might be accessed concurently from more than one thread, we need a
+ // mutex here. This shouldn't affect performance much if this function
+ // is used to map many input values, but if it is called repeatedly
+ // with short input arrays, performance may be much worse.
+ mutex->Lock();
if (lookupTable->GetSize() < neededSize)
{
lookupTable->Resize(numberOfColors + vtkLookupTable::NUMBER_OF_SPECIAL_COLORS);
}
+ mutex->Unlock();
+
unsigned char* table = lookupTable->GetPointer(0);
// Writing directly to the memory location instead of adding them
@@ -1159,7 +1173,7 @@ void vtkLookupTable::MapScalarsThroughTable2(void *input,
{
newInput->SetValue(i, bitArray->GetValue(id));
}
- vtkLookupTableMapData(this,
+ vtkLookupTableMapData(this, this->ResizeMutex,
static_cast<unsigned char*>(newInput->GetPointer(0)),
output, numberOfValues,
inputIncrement, outputFormat, p);
@@ -1169,7 +1183,7 @@ void vtkLookupTable::MapScalarsThroughTable2(void *input,
break;
vtkTemplateMacro(
- vtkLookupTableMapData(this,static_cast<VTK_TT*>(input),output,
+ vtkLookupTableMapData(this, this->ResizeMutex, static_cast<VTK_TT*>(input),output,
numberOfValues, inputIncrement, outputFormat, p)
);
default:
diff --git a/Common/Core/vtkLookupTable.h b/Common/Core/vtkLookupTable.h
index f233c85..d0401df 100644
--- a/Common/Core/vtkLookupTable.h
+++ b/Common/Core/vtkLookupTable.h
@@ -56,6 +56,8 @@
#include "vtkUnsignedCharArray.h" // Needed for inline method
+class vtkSimpleMutexLock;
+
#define VTK_RAMP_LINEAR 0
#define VTK_RAMP_SCURVE 1
#define VTK_RAMP_SQRT 2
@@ -359,6 +361,8 @@ protected:
int OpaqueFlag;
vtkTimeStamp OpaqueFlagBuildTime;
+ vtkSimpleMutexLock* ResizeMutex;
+
private:
vtkLookupTable(const vtkLookupTable&); // Not implemented.
void operator=(const vtkLookupTable&); // Not implemented.
@@ -373,6 +377,3 @@ inline unsigned char *vtkLookupTable::WritePointer(const vtkIdType id,
}
#endif
-
-
-
diff --git a/Common/Core/vtkUnicodeString.cxx b/Common/Core/vtkUnicodeString.cxx
index cc6d7ff..b537d9b 100644
--- a/Common/Core/vtkUnicodeString.cxx
+++ b/Common/Core/vtkUnicodeString.cxx
@@ -41,7 +41,7 @@ vtkUnicodeString::const_iterator::const_iterator(std::string::const_iterator pos
vtkUnicodeString::value_type vtkUnicodeString::const_iterator::operator*() const
{
- return vtk_utf8::unchecked::peek_next(this->Position);
+ return utf8::unchecked::peek_next(this->Position);
}
bool vtkUnicodeString::const_iterator::operator==(const const_iterator& rhs) const
@@ -56,27 +56,27 @@ bool vtkUnicodeString::const_iterator::operator!=(const const_iterator& rhs) con
vtkUnicodeString::const_iterator& vtkUnicodeString::const_iterator::operator++()
{
- vtk_utf8::unchecked::next(this->Position);
+ utf8::unchecked::next(this->Position);
return *this;
}
vtkUnicodeString::const_iterator vtkUnicodeString::const_iterator::operator++(int)
{
const_iterator result(this->Position);
- vtk_utf8::unchecked::next(this->Position);
+ utf8::unchecked::next(this->Position);
return result;
}
vtkUnicodeString::const_iterator& vtkUnicodeString::const_iterator::operator--()
{
- vtk_utf8::unchecked::prior(this->Position);
+ utf8::unchecked::prior(this->Position);
return *this;
}
vtkUnicodeString::const_iterator vtkUnicodeString::const_iterator::operator--(int)
{
const_iterator result(this->Position);
- vtk_utf8::unchecked::prior(this->Position);
+ utf8::unchecked::prior(this->Position);
return result;
}
@@ -134,7 +134,7 @@ vtkUnicodeString::vtkUnicodeString(const vtkUnicodeString& rhs) :
vtkUnicodeString::vtkUnicodeString(size_type count, value_type character)
{
for(size_type i = 0; i != count; ++i)
- vtk_utf8::append(character, vtkUnicodeString::back_insert_iterator(this->Storage));
+ utf8::append(character, vtkUnicodeString::back_insert_iterator(this->Storage));
}
vtkUnicodeString::vtkUnicodeString(const_iterator first, const_iterator last) :
@@ -149,7 +149,7 @@ bool vtkUnicodeString::is_utf8(const char* value)
bool vtkUnicodeString::is_utf8(const std::string& value)
{
- return vtk_utf8::is_valid(value.begin(), value.end());
+ return utf8::is_valid(value.begin(), value.end());
}
vtkUnicodeString vtkUnicodeString::from_utf8(const char* value)
@@ -160,7 +160,7 @@ vtkUnicodeString vtkUnicodeString::from_utf8(const char* value)
vtkUnicodeString vtkUnicodeString::from_utf8(const char* begin, const char* end)
{
vtkUnicodeString result;
- if(vtk_utf8::is_valid(begin, end))
+ if(utf8::is_valid(begin, end))
{
result.Storage = std::string(begin, end);
}
@@ -174,7 +174,7 @@ vtkUnicodeString vtkUnicodeString::from_utf8(const char* begin, const char* end)
vtkUnicodeString vtkUnicodeString::from_utf8(const std::string& value)
{
vtkUnicodeString result;
- if(vtk_utf8::is_valid(value.begin(), value.end()))
+ if(utf8::is_valid(value.begin(), value.end()))
{
result.Storage = value;
}
@@ -197,9 +197,9 @@ vtkUnicodeString vtkUnicodeString::from_utf16(const vtkTypeUInt16* value)
try
{
- vtk_utf8::utf16to8(value, value + length, vtkUnicodeString::back_insert_iterator(result.Storage));
+ utf8::utf16to8(value, value + length, vtkUnicodeString::back_insert_iterator(result.Storage));
}
- catch(vtk_utf8::invalid_utf16&)
+ catch(utf8::invalid_utf16&)
{
vtkGenericWarningMacro(<< "vtkUnicodeString::from_utf16(): not a valid UTF-16 string.");
}
@@ -233,15 +233,15 @@ vtkUnicodeString::value_type vtkUnicodeString::at(size_type offset) const
throw std::out_of_range("character out-of-range");
std::string::const_iterator iterator = this->Storage.begin();
- vtk_utf8::unchecked::advance(iterator, offset);
- return vtk_utf8::unchecked::peek_next(iterator);
+ utf8::unchecked::advance(iterator, offset);
+ return utf8::unchecked::peek_next(iterator);
}
vtkUnicodeString::value_type vtkUnicodeString::operator[](size_type offset) const
{
std::string::const_iterator iterator = this->Storage.begin();
- vtk_utf8::unchecked::advance(iterator, offset);
- return vtk_utf8::unchecked::peek_next(iterator);
+ utf8::unchecked::advance(iterator, offset);
+ return utf8::unchecked::peek_next(iterator);
}
const char* vtkUnicodeString::utf8_str() const
@@ -257,14 +257,14 @@ void vtkUnicodeString::utf8_str(std::string& result) const
std::vector<vtkTypeUInt16> vtkUnicodeString::utf16_str() const
{
std::vector<vtkTypeUInt16> result;
- vtk_utf8::unchecked::utf8to16(this->Storage.begin(), this->Storage.end(), std::back_inserter(result));
+ utf8::unchecked::utf8to16(this->Storage.begin(), this->Storage.end(), std::back_inserter(result));
return result;
}
void vtkUnicodeString::utf16_str(std::vector<vtkTypeUInt16>& result) const
{
result.clear();
- vtk_utf8::unchecked::utf8to16(this->Storage.begin(), this->Storage.end(), std::back_inserter(result));
+ utf8::unchecked::utf8to16(this->Storage.begin(), this->Storage.end(), std::back_inserter(result));
}
vtkUnicodeString::size_type vtkUnicodeString::byte_count() const
@@ -274,7 +274,7 @@ vtkUnicodeString::size_type vtkUnicodeString::byte_count() const
vtkUnicodeString::size_type vtkUnicodeString::character_count() const
{
- return vtk_utf8::unchecked::distance(this->Storage.begin(), this->Storage.end());
+ return utf8::unchecked::distance(this->Storage.begin(), this->Storage.end());
}
bool vtkUnicodeString::empty() const
@@ -300,9 +300,9 @@ void vtkUnicodeString::push_back(value_type character)
{
try
{
- vtk_utf8::append(character, vtkUnicodeString::back_insert_iterator(this->Storage));
+ utf8::append(character, vtkUnicodeString::back_insert_iterator(this->Storage));
}
- catch(vtk_utf8::invalid_code_point&)
+ catch(utf8::invalid_code_point&)
{
vtkGenericWarningMacro("vtkUnicodeString::push_back(): " << character << "is not a valid Unicode code point");
}
@@ -319,7 +319,7 @@ void vtkUnicodeString::append(size_type count, value_type character)
{
this->Storage.append(vtkUnicodeString(count, character).Storage);
}
- catch(vtk_utf8::invalid_code_point&)
+ catch(utf8::invalid_code_point&)
{
vtkGenericWarningMacro("vtkUnicodeString::append(): " << character << "is not a valid Unicode code point");
}
@@ -345,7 +345,7 @@ void vtkUnicodeString::assign(size_type count, value_type character)
{
this->Storage.assign(vtkUnicodeString(count, character).Storage);
}
- catch(vtk_utf8::invalid_code_point&)
+ catch(utf8::invalid_code_point&)
{
vtkGenericWarningMacro("vtkUnicodeString::assign(): " << character << "is not a valid Unicode code point");
}
@@ -415,11 +415,11 @@ vtkUnicodeString vtkUnicodeString::substr(size_type offset, size_type count) con
std::string::const_iterator last = this->Storage.end();
while(from != last && offset--)
- vtk_utf8::unchecked::advance(from, 1);
+ utf8::unchecked::advance(from, 1);
std::string::const_iterator to = from;
while(to != last && count--)
- vtk_utf8::unchecked::advance(to, 1);
+ utf8::unchecked::advance(to, 1);
return vtkUnicodeString(from, to);
}
diff --git a/Examples/Infovis/Cxx/CMakeLists.txt b/Examples/Infovis/Cxx/CMakeLists.txt
index 9da2599..2dfa0d2 100644
--- a/Examples/Infovis/Cxx/CMakeLists.txt
+++ b/Examples/Infovis/Cxx/CMakeLists.txt
@@ -26,11 +26,6 @@ if(vtkViewsInfovis_LOADED)
endif()
# If Qt is enabled include the QT based examples
-if(vtkGUISupportQt_LOADED)
- add_subdirectory(EasyView)
- add_subdirectory(CustomLinkView)
- add_subdirectory(StatsView)
-endif()
if(vtkInfovisParallel_LOADED)
add_executable(ParallelBFS ParallelBFS.cxx)
diff --git a/Filters/ParallelMPI/vtkDistributedDataFilter.cxx b/Filters/ParallelMPI/vtkDistributedDataFilter.cxx
index 3b76a81..1f76120 100644
--- a/Filters/ParallelMPI/vtkDistributedDataFilter.cxx
+++ b/Filters/ParallelMPI/vtkDistributedDataFilter.cxx
@@ -1079,7 +1079,10 @@ vtkDataSet *vtkDistributedDataFilter::TestFixTooFewInputFiles(vtkDataSet *input)
vtkIdType cellsPerNode = numTotalCells / nprocs;
vtkIdList **sendCells = new vtkIdList * [ nprocs ];
- memset(sendCells, 0, sizeof(vtkIdList *) * nprocs);
+
+ if (sizeof(vtkIdList *) * nprocs > 0) {
+ memset(sendCells, 0, sizeof(vtkIdList *) * nprocs);
+ }
if (numConsumers == nprocs - 1)
{
@@ -1564,7 +1567,9 @@ vtkFloatArray **
// Exchange int arrays
float **recvArrays = new float * [nprocs];
- memset(recvArrays, 0, sizeof(float *) * nprocs);
+ if (sizeof(float *) * nprocs > 0) {
+ memset(recvArrays, 0, sizeof(float *) * nprocs);
+ }
if (sendSize[me] > 0) // sent myself an array
{
@@ -1686,7 +1691,9 @@ vtkIdTypeArray **
// Exchange int arrays
vtkIdType **recvArrays = new vtkIdType * [nprocs];
- memset(recvArrays, 0, sizeof(vtkIdType *) * nprocs);
+ if (sizeof(vtkIdType *) * nprocs > 0) {
+ memset(recvArrays, 0, sizeof(vtkIdType *) * nprocs);
+ }
if (sendSize[me] > 0) // sent myself an array
{
@@ -2789,7 +2796,9 @@ void vtkDistributedDataFilter::AddConstantUnsignedCharPointArray(
unsigned char *vals = new unsigned char [npoints];
- memset(vals, val, npoints);
+ if (npoints > 0) {
+ memset(vals, val, npoints);
+ }
vtkUnsignedCharArray *Array = vtkUnsignedCharArray::New();
Array->SetName(arrayName);
@@ -2809,7 +2818,9 @@ void vtkDistributedDataFilter::AddConstantUnsignedCharCellArray(
unsigned char *vals = new unsigned char [ncells];
- memset(vals, val, ncells);
+ if (ncells > 0) {
+ memset(vals, val, ncells);
+ }
vtkUnsignedCharArray *Array = vtkUnsignedCharArray::New();
Array->SetName(arrayName);
@@ -3008,7 +3019,9 @@ int vtkDistributedDataFilter::AssignGlobalNodeIds(vtkUnstructuredGrid *grid)
vtkIdType nGridPoints = grid->GetNumberOfPoints();
vtkIdType *numPointsOutside = new vtkIdType [nprocs];
- memset(numPointsOutside, 0, sizeof(vtkIdType) * nprocs);
+ if (sizeof(vtkIdType) * nprocs > 0) {
+ memset(numPointsOutside, 0, sizeof(vtkIdType) * nprocs);
+ }
vtkIdTypeArray *globalIds = vtkIdTypeArray::New();
globalIds->SetNumberOfValues(nGridPoints);
@@ -3090,10 +3103,16 @@ int vtkDistributedDataFilter::AssignGlobalNodeIds(vtkUnstructuredGrid *grid)
// global ID back?
vtkFloatArray **ptarrayOut = new vtkFloatArray * [nprocs];
- memset(ptarrayOut, 0, sizeof(vtkFloatArray *) * nprocs);
+
+ if (sizeof(vtkFloatArray *) * nprocs > 0) {
+ memset(ptarrayOut, 0, sizeof(vtkFloatArray *) * nprocs);
+ }
vtkIdTypeArray **localIds = new vtkIdTypeArray * [nprocs];
- memset(localIds, 0, sizeof(vtkIdTypeArray *) * nprocs);
+
+ if (sizeof(vtkIdTypeArray *) * nprocs > 0) {
+ memset(localIds, 0, sizeof(vtkIdTypeArray *) * nprocs);
+ }
vtkIdType *next = new vtkIdType [nprocs];
vtkIdType *next3 = new vtkIdType [nprocs];
@@ -3268,7 +3287,9 @@ vtkIdTypeArray **vtkDistributedDataFilter::FindGlobalPointIds(
{
// There are no cells in my assigned region
- memset(gids, 0, sizeof(vtkIdTypeArray *) * nprocs);
+ if (sizeof(vtkIdTypeArray *) * nprocs > 0) {
+ memset(gids, 0, sizeof(vtkIdTypeArray *) * nprocs);
+ }
return gids;
}
@@ -3473,7 +3494,10 @@ vtkIdTypeArray **vtkDistributedDataFilter::MakeProcessLists(
std::multimap<int, int>::iterator mapIt;
vtkIdTypeArray **processList = new vtkIdTypeArray * [nprocs];
- memset(processList, 0, sizeof (vtkIdTypeArray *) * nprocs);
+
+ if (sizeof (vtkIdTypeArray *) * nprocs > 0) {
+ memset(processList, 0, sizeof (vtkIdTypeArray *) * nprocs);
+ }
for (int i=0; i<nprocs; i++)
{
@@ -3563,7 +3587,9 @@ vtkIdTypeArray **vtkDistributedDataFilter::GetGhostPointIds(
vtkIdType numPoints = grid->GetNumberOfPoints();
vtkIdTypeArray **ghostPtIds = new vtkIdTypeArray * [nprocs];
- memset(ghostPtIds, 0, sizeof(vtkIdTypeArray *) * nprocs);
+ if (sizeof(vtkIdTypeArray *) * nprocs) {
+ memset(ghostPtIds, 0, sizeof(vtkIdTypeArray *) * nprocs);
+ }
if (numPoints < 1)
{
diff --git a/IO/Core/vtkUTF8TextCodec.cxx b/IO/Core/vtkUTF8TextCodec.cxx
index a75a9ea..458fda7 100644
--- a/IO/Core/vtkUTF8TextCodec.cxx
+++ b/IO/Core/vtkUTF8TextCodec.cxx
@@ -124,7 +124,7 @@ vtkUnicodeString::value_type vtkUTF8TextCodec::NextUnicode(istream& InputStream)
throw(std::string("End of Input"));
}
- getSize = vtk_utf8::internal::sequence_length(c);
+ getSize = utf8::internal::sequence_length(c);
if (0 == getSize)
throw(std::string("Not enough space"));
@@ -138,7 +138,7 @@ vtkUnicodeString::value_type vtkUTF8TextCodec::NextUnicode(istream& InputStream)
istream::char_type* c1 = c;
- const vtkTypeUInt32 code_point = vtk_utf8::next(c1, &c[getSize]);
+ const vtkTypeUInt32 code_point = utf8::next(c1, &c[getSize]);
return code_point;
}
diff --git a/IO/FFMPEG/vtkFFMPEGWriter.cxx b/IO/FFMPEG/vtkFFMPEGWriter.cxx
index ed9e5b6..9476dcd 100644
--- a/IO/FFMPEG/vtkFFMPEGWriter.cxx
+++ b/IO/FFMPEG/vtkFFMPEGWriter.cxx
@@ -189,11 +189,11 @@ int vtkFFMPEGWriterInternal::Start()
c->height = this->Dim[1];
if (this->Writer->GetCompression())
{
- c->pix_fmt = PIX_FMT_YUVJ422P;
+ c->pix_fmt = AV_PIX_FMT_YUVJ422P;
}
else
{
- c->pix_fmt = PIX_FMT_BGR24;
+ c->pix_fmt = AV_PIX_FMT_BGR24;
}
//to do playback at actual recorded rate, this will need more work see also below
@@ -272,13 +272,13 @@ int vtkFFMPEGWriterInternal::Start()
#endif
//for the output of the writer's input...
- this->rgbInput = avcodec_alloc_frame();
+ this->rgbInput = av_frame_alloc();
if (!this->rgbInput)
{
vtkGenericWarningMacro (<< "Could not make rgbInput avframe." );
return 0;
}
- int RGBsize = avpicture_get_size(PIX_FMT_RGB24, c->width, c->height);
+ int RGBsize = avpicture_get_size(AV_PIX_FMT_RGB24, c->width, c->height);
unsigned char *rgb = (unsigned char *)av_malloc(sizeof(unsigned char) * RGBsize);
if (!rgb)
{
@@ -286,10 +286,10 @@ int vtkFFMPEGWriterInternal::Start()
return 0;
}
//The rgb buffer should get deleted when this->rgbInput is.
- avpicture_fill((AVPicture *)this->rgbInput, rgb, PIX_FMT_RGB24, c->width, c->height);
+ avpicture_fill((AVPicture *)this->rgbInput, rgb, AV_PIX_FMT_RGB24, c->width, c->height);
//and for the output to the codec's input.
- this->yuvOutput = avcodec_alloc_frame();
+ this->yuvOutput = av_frame_alloc();
if (!this->yuvOutput)
{
vtkGenericWarningMacro (<< "Could not make yuvOutput avframe." );
@@ -347,12 +347,12 @@ int vtkFFMPEGWriterInternal::Write(vtkImageData *id)
//convert that to YUV for input to the codec
#ifdef VTK_FFMPEG_HAS_IMG_CONVERT
img_convert((AVPicture *)this->yuvOutput, cc->pix_fmt,
- (AVPicture *)this->rgbInput, PIX_FMT_RGB24,
+ (AVPicture *)this->rgbInput, AV_PIX_FMT_RGB24,
cc->width, cc->height);
#else
//convert that to YUV for input to the codec
SwsContext* convert_ctx = sws_getContext(
- cc->width, cc->height, PIX_FMT_RGB24,
+ cc->width, cc->height, AV_PIX_FMT_RGB24,
cc->width, cc->height, cc->pix_fmt,
SWS_BICUBIC, NULL, NULL, NULL);
@@ -445,14 +445,14 @@ void vtkFFMPEGWriterInternal::End()
if (this->yuvOutput)
{
av_free(this->yuvOutput->data[0]);
- av_free(this->yuvOutput);
+ av_frame_free(&this->yuvOutput);
this->yuvOutput = NULL;
}
if (this->rgbInput)
{
av_free(this->rgbInput->data[0]);
- av_free(this->rgbInput);
+ av_frame_free(&this->rgbInput);
this->rgbInput = NULL;
}
diff --git a/IO/GDAL/vtkGDALVectorReader.cxx b/IO/GDAL/vtkGDALVectorReader.cxx
index e0b8976..1c559c0 100644
--- a/IO/GDAL/vtkGDALVectorReader.cxx
+++ b/IO/GDAL/vtkGDALVectorReader.cxx
@@ -44,7 +44,11 @@ class vtkGDALVectorReader::Internal
public:
Internal( const char* srcName, int srcMode, int appendFeatures, int addFeatIds )
{
+#if GDAL_VERSION_MAJOR < 2
this->Source = OGRSFDriverRegistrar::Open( srcName, srcMode, &this->Driver );
+#else
+ this->Source = (GDALDataset*) OGROpen( srcName, srcMode, NULL );
+#endif
if ( ! this->Source )
{
this->LastError = CPLGetLastErrorMsg();
@@ -61,7 +65,11 @@ public:
{
if ( this->Source )
{
+#if GDAL_VERSION_MAJOR < 2
OGRDataSource::DestroyDataSource( this->Source );
+#else
+ GDALClose( (GDALDatasetH) this->Source );
+#endif
}
}
@@ -307,7 +315,11 @@ public:
return nCells;
}
+#if GDAL_VERSION_MAJOR < 2
OGRDataSource* Source;
+#else
+ GDALDataset* Source;
+#endif
OGRSFDriver* Driver;
const char* LastError;
int LayerIdx;
diff --git a/IO/SQL/vtkSQLiteDatabase.cxx b/IO/SQL/vtkSQLiteDatabase.cxx
index 473c6e7..403c82d 100644
--- a/IO/SQL/vtkSQLiteDatabase.cxx
+++ b/IO/SQL/vtkSQLiteDatabase.cxx
@@ -29,7 +29,7 @@
#include <vtksys/ios/fstream>
#include <vtksys/ios/sstream>
-#include <vtksqlite/vtk_sqlite3.h>
+#include <sqlite3.h>
vtkStandardNewMacro(vtkSQLiteDatabase);
@@ -307,15 +307,15 @@ bool vtkSQLiteDatabase::Open(const char* password, int mode)
}
}
- int result = vtk_sqlite3_open(this->DatabaseFileName, & (this->SQLiteInstance));
+ int result = sqlite3_open(this->DatabaseFileName, & (this->SQLiteInstance));
- if (result != VTK_SQLITE_OK)
+ if (result != SQLITE_OK)
{
vtkDebugMacro(<<"SQLite open() failed. Error code is "
<< result << " and message is "
- << vtk_sqlite3_errmsg(this->SQLiteInstance) );
+ << sqlite3_errmsg(this->SQLiteInstance) );
- vtk_sqlite3_close(this->SQLiteInstance);
+ sqlite3_close(this->SQLiteInstance);
return false;
}
else
@@ -334,8 +334,8 @@ void vtkSQLiteDatabase::Close()
}
else
{
- int result = vtk_sqlite3_close(this->SQLiteInstance);
- if (result != VTK_SQLITE_OK)
+ int result = sqlite3_close(this->SQLiteInstance);
+ if (result != SQLITE_OK)
{
vtkWarningMacro(<< "Close(): SQLite returned result code " << result);
}
@@ -374,7 +374,7 @@ vtkStringArray * vtkSQLiteDatabase::GetTables()
if (!status)
{
vtkErrorMacro(<< "GetTables(): Database returned error: "
- << vtk_sqlite3_errmsg(this->SQLiteInstance) );
+ << sqlite3_errmsg(this->SQLiteInstance) );
query->Delete();
return this->Tables;
}
@@ -403,7 +403,7 @@ vtkStringArray * vtkSQLiteDatabase::GetRecord(const char *table)
if (!status)
{
vtkErrorMacro(<< "GetRecord(" << table << "): Database returned error: "
- << vtk_sqlite3_errmsg(this->SQLiteInstance) );
+ << sqlite3_errmsg(this->SQLiteInstance) );
query->Delete();
return NULL;
}
@@ -467,10 +467,10 @@ bool vtkSQLiteDatabase::ParseURL(const char* URL)
// ----------------------------------------------------------------------
bool vtkSQLiteDatabase::HasError()
{
- return (vtk_sqlite3_errcode(this->SQLiteInstance)!=VTK_SQLITE_OK);
+ return (sqlite3_errcode(this->SQLiteInstance)!=SQLITE_OK);
}
const char* vtkSQLiteDatabase::GetLastErrorText()
{
- return vtk_sqlite3_errmsg(this->SQLiteInstance);
+ return sqlite3_errmsg(this->SQLiteInstance);
}
diff --git a/IO/SQL/vtkSQLiteDatabase.h b/IO/SQL/vtkSQLiteDatabase.h
index 640355a..3e8cd57 100644
--- a/IO/SQL/vtkSQLiteDatabase.h
+++ b/IO/SQL/vtkSQLiteDatabase.h
@@ -49,7 +49,7 @@
class vtkSQLQuery;
class vtkSQLiteQuery;
class vtkStringArray;
-struct vtk_sqlite3;
+struct sqlite3;
class VTKIOSQL_EXPORT vtkSQLiteDatabase : public vtkSQLDatabase
{
@@ -147,7 +147,7 @@ protected:
virtual bool ParseURL(const char* url);
private:
- vtk_sqlite3 *SQLiteInstance;
+ sqlite3 *SQLiteInstance;
// We want this to be private, a user of this class
// should not be setting this for any reason
diff --git a/IO/SQL/vtkSQLiteQuery.cxx b/IO/SQL/vtkSQLiteQuery.cxx
index 614f47b..57654a3 100644
--- a/IO/SQL/vtkSQLiteQuery.cxx
+++ b/IO/SQL/vtkSQLiteQuery.cxx
@@ -25,7 +25,7 @@
#include "vtkVariant.h"
#include "vtkVariantArray.h"
-#include <vtksqlite/vtk_sqlite3.h>
+#include <sqlite3.h>
#include <cassert>
@@ -43,7 +43,7 @@ vtkSQLiteQuery::vtkSQLiteQuery()
{
this->Statement = NULL;
this->InitialFetch = true;
- this->InitialFetchResult=VTK_SQLITE_DONE;
+ this->InitialFetchResult=SQLITE_DONE;
this->LastErrorText = NULL;
this->TransactionInProgress = false;
}
@@ -61,7 +61,7 @@ vtkSQLiteQuery::~vtkSQLiteQuery()
{
if (this->Database != NULL)
{
- vtk_sqlite3_finalize(this->Statement);
+ sqlite3_finalize(this->Statement);
this->Statement = NULL;
}
}
@@ -131,8 +131,8 @@ bool vtkSQLiteQuery::SetQuery(const char *newQuery)
if (this->Statement)
{
vtkDebugMacro(<<"Finalizing old statement");
- int finalizeStatus = vtk_sqlite3_finalize(this->Statement);
- if (finalizeStatus != VTK_SQLITE_OK)
+ int finalizeStatus = sqlite3_finalize(this->Statement);
+ if (finalizeStatus != SQLITE_OK)
{
vtkWarningMacro(<<"SetQuery(): Finalize returned unexpected code "
<< finalizeStatus);
@@ -151,19 +151,19 @@ bool vtkSQLiteQuery::SetQuery(const char *newQuery)
return false;
}
- vtk_sqlite3 *db = dbContainer->SQLiteInstance;
+ sqlite3 *db = dbContainer->SQLiteInstance;
const char *unused_statement;
- int prepareStatus = vtk_sqlite3_prepare_v2(db,
+ int prepareStatus = sqlite3_prepare_v2(db,
this->Query,
static_cast<int>(strlen(this->Query)),
&this->Statement,
&unused_statement);
- if (prepareStatus != VTK_SQLITE_OK)
+ if (prepareStatus != SQLITE_OK)
{
- this->SetLastErrorText(vtk_sqlite3_errmsg(db));
- vtkWarningMacro(<<"SetQuery(): vtk_sqlite3_prepare_v2() failed with error message "
+ this->SetLastErrorText(sqlite3_errmsg(db));
+ vtkWarningMacro(<<"SetQuery(): sqlite3_prepare_v2() failed with error message "
<< this->GetLastErrorText()
<< " on statement: '"
<< this->Query << "'");
@@ -194,31 +194,31 @@ bool vtkSQLiteQuery::Execute()
}
else
{
- vtk_sqlite3_reset(this->Statement);
+ sqlite3_reset(this->Statement);
}
vtkDebugMacro(<<"Execute(): Query ready to execute.");
this->InitialFetch = true;
- int result = vtk_sqlite3_step(this->Statement);
+ int result = sqlite3_step(this->Statement);
this->InitialFetchResult = result;
- if (result == VTK_SQLITE_DONE)
+ if (result == SQLITE_DONE)
{
this->SetLastErrorText(NULL);
this->Active = true;
return true;
}
- else if (result != VTK_SQLITE_ROW)
+ else if (result != SQLITE_ROW)
{
vtkSQLiteDatabase *dbContainer =
vtkSQLiteDatabase::SafeDownCast(this->Database);
assert(dbContainer != NULL);
- vtk_sqlite3 *db = dbContainer->SQLiteInstance;
+ sqlite3 *db = dbContainer->SQLiteInstance;
- this->SetLastErrorText(vtk_sqlite3_errmsg(db));
- vtkDebugMacro(<< "Execute(): vtk_sqlite3_step() returned error message "
+ this->SetLastErrorText(sqlite3_errmsg(db));
+ vtkDebugMacro(<< "Execute(): sqlite3_step() returned error message "
<< this->GetLastErrorText());
this->Active = false;
return false;
@@ -239,7 +239,7 @@ int vtkSQLiteQuery::GetNumberOfFields()
}
else
{
- return vtk_sqlite3_column_count(this->Statement);
+ return sqlite3_column_count(this->Statement);
}
}
@@ -259,7 +259,7 @@ const char * vtkSQLiteQuery::GetFieldName(int column)
}
else
{
- return vtk_sqlite3_column_name(this->Statement, column);
+ return sqlite3_column_name(this->Statement, column);
}
}
@@ -279,22 +279,22 @@ int vtkSQLiteQuery::GetFieldType(int column)
}
else
{
- switch (vtk_sqlite3_column_type(this->Statement, column))
+ switch (sqlite3_column_type(this->Statement, column))
{
- case VTK_SQLITE_INTEGER:
+ case SQLITE_INTEGER:
return VTK_INT;
- case VTK_SQLITE_FLOAT:
+ case SQLITE_FLOAT:
return VTK_FLOAT;
- case VTK_SQLITE_TEXT:
+ case SQLITE_TEXT:
return VTK_STRING;
- case VTK_SQLITE_BLOB:
+ case SQLITE_BLOB:
return VTK_STRING; // until we have a BLOB type of our own
- case VTK_SQLITE_NULL:
+ case SQLITE_NULL:
return VTK_VOID; // ??? what makes sense here?
default:
{
vtkErrorMacro(<<"GetFieldType(): Unknown data type "
- << vtk_sqlite3_column_type(this->Statement, column)
+ << sqlite3_column_type(this->Statement, column)
<<" from SQLite.");
return VTK_VOID;
}
@@ -315,7 +315,7 @@ bool vtkSQLiteQuery::NextRow()
{
vtkDebugMacro(<<"NextRow(): Initial fetch being handled.");
this->InitialFetch = false;
- if (this->InitialFetchResult == VTK_SQLITE_DONE)
+ if (this->InitialFetchResult == SQLITE_DONE)
{
return false;
}
@@ -326,12 +326,12 @@ bool vtkSQLiteQuery::NextRow()
}
else
{
- int result = vtk_sqlite3_step(this->Statement);
- if (result == VTK_SQLITE_DONE)
+ int result = sqlite3_step(this->Statement);
+ if (result == SQLITE_DONE)
{
return false;
}
- else if (result == VTK_SQLITE_ROW)
+ else if (result == SQLITE_ROW)
{
return true;
}
@@ -339,8 +339,8 @@ bool vtkSQLiteQuery::NextRow()
{
vtkSQLiteDatabase *dbContainer = vtkSQLiteDatabase::SafeDownCast( this->Database );
assert(dbContainer != NULL);
- vtk_sqlite3 *db = dbContainer->SQLiteInstance;
- this->SetLastErrorText(vtk_sqlite3_errmsg(db));
+ sqlite3 *db = dbContainer->SQLiteInstance;
+ this->SetLastErrorText(sqlite3_errmsg(db));
vtkErrorMacro(<<"NextRow(): Database returned error code "
<< result << " with the following message: "
<< this->GetLastErrorText());
@@ -366,33 +366,33 @@ vtkVariant vtkSQLiteQuery::DataValue(vtkIdType column)
}
else
{
- switch (vtk_sqlite3_column_type(this->Statement, column))
+ switch (sqlite3_column_type(this->Statement, column))
{
- case VTK_SQLITE_INTEGER:
- return vtkVariant(vtk_sqlite3_column_int(this->Statement, column));
+ case SQLITE_INTEGER:
+ return vtkVariant(sqlite3_column_int(this->Statement, column));
- case VTK_SQLITE_FLOAT:
- return vtkVariant(vtk_sqlite3_column_double(this->Statement, column));
+ case SQLITE_FLOAT:
+ return vtkVariant(sqlite3_column_double(this->Statement, column));
- case VTK_SQLITE_TEXT:
+ case SQLITE_TEXT:
{
vtksys_ios::ostringstream str;
- str << vtk_sqlite3_column_text(this->Statement, column);
+ str << sqlite3_column_text(this->Statement, column);
return vtkVariant(vtkStdString(str.str()));
}
- case VTK_SQLITE_BLOB:
+ case SQLITE_BLOB:
{
// This is a hack ... by passing the BLOB to vtkStdString with an explicit
// byte count, we ensure that the string will store all of the BLOB's bytes,
// even if there are NULL values.
return vtkVariant(vtkStdString(
- static_cast<const char*>(vtk_sqlite3_column_blob(this->Statement, column)),
- vtk_sqlite3_column_bytes(this->Statement, column)));
+ static_cast<const char*>(sqlite3_column_blob(this->Statement, column)),
+ sqlite3_column_bytes(this->Statement, column)));
}
- case VTK_SQLITE_NULL:
+ case SQLITE_NULL:
default:
return vtkVariant();
}
@@ -423,11 +423,11 @@ bool vtkSQLiteQuery::BeginTransaction()
vtkSQLiteDatabase *dbContainer = vtkSQLiteDatabase::SafeDownCast( this->Database );
assert(dbContainer != NULL);
- vtk_sqlite3 *db = dbContainer->SQLiteInstance;
+ sqlite3 *db = dbContainer->SQLiteInstance;
char *errorMessage = NULL;
- int result = vtk_sqlite3_exec(db, BEGIN_TRANSACTION, NULL, NULL, &errorMessage);
+ int result = sqlite3_exec(db, BEGIN_TRANSACTION, NULL, NULL, &errorMessage);
- if (result == VTK_SQLITE_OK)
+ if (result == SQLITE_OK)
{
this->TransactionInProgress = true;
this->SetLastErrorText(NULL);
@@ -451,7 +451,7 @@ bool vtkSQLiteQuery::CommitTransaction()
{
if (this->Statement)
{
- vtk_sqlite3_finalize(this->Statement);
+ sqlite3_finalize(this->Statement);
this->Statement = NULL;
}
@@ -463,11 +463,11 @@ bool vtkSQLiteQuery::CommitTransaction()
vtkSQLiteDatabase *dbContainer = vtkSQLiteDatabase::SafeDownCast( this->Database );
assert(dbContainer != NULL);
- vtk_sqlite3 *db = dbContainer->SQLiteInstance;
+ sqlite3 *db = dbContainer->SQLiteInstance;
char *errorMessage = NULL;
- int result = vtk_sqlite3_exec(db, COMMIT_TRANSACTION, NULL, NULL, &errorMessage);
+ int result = sqlite3_exec(db, COMMIT_TRANSACTION, NULL, NULL, &errorMessage);
- if (result == VTK_SQLITE_OK)
+ if (result == SQLITE_OK)
{
this->TransactionInProgress = false;
this->SetLastErrorText(NULL);
@@ -499,11 +499,11 @@ bool vtkSQLiteQuery::RollbackTransaction()
vtkSQLiteDatabase *dbContainer = vtkSQLiteDatabase::SafeDownCast( this->Database );
assert(dbContainer != NULL);
- vtk_sqlite3 *db = dbContainer->SQLiteInstance;
+ sqlite3 *db = dbContainer->SQLiteInstance;
char *errorMessage = NULL;
- int result = vtk_sqlite3_exec(db, ROLLBACK_TRANSACTION, NULL, NULL, &errorMessage);
+ int result = sqlite3_exec(db, ROLLBACK_TRANSACTION, NULL, NULL, &errorMessage);
- if (result == VTK_SQLITE_OK)
+ if (result == SQLITE_OK)
{
this->TransactionInProgress = false;
this->SetLastErrorText(NULL);
@@ -647,11 +647,11 @@ bool vtkSQLiteQuery::BindIntegerParameter(int index, int value)
if (this->Active)
{
this->Active = false;
- vtk_sqlite3_reset(this->Statement);
+ sqlite3_reset(this->Statement);
}
- int status = vtk_sqlite3_bind_int(this->Statement, index+1, value);
+ int status = sqlite3_bind_int(this->Statement, index+1, value);
- if (status != VTK_SQLITE_OK)
+ if (status != SQLITE_OK)
{
vtksys_ios::ostringstream errormessage;
errormessage << "sqlite_bind_int returned error: " << status;
@@ -676,11 +676,11 @@ bool vtkSQLiteQuery::BindInt64Parameter(int index, vtkTypeInt64 value)
if (this->Active)
{
this->Active = false;
- vtk_sqlite3_reset(this->Statement);
+ sqlite3_reset(this->Statement);
}
- int status = vtk_sqlite3_bind_int(this->Statement, index+1, static_cast<vtk_sqlite_int64>(value));
+ int status = sqlite3_bind_int(this->Statement, index+1, static_cast<sqlite_int64>(value));
- if (status != VTK_SQLITE_OK)
+ if (status != SQLITE_OK)
{
vtksys_ios::ostringstream errormessage;
errormessage << "sqlite_bind_int64 returned error: " << status;
@@ -705,12 +705,12 @@ bool vtkSQLiteQuery::BindDoubleParameter(int index, double value)
if (this->Active)
{
this->Active = false;
- vtk_sqlite3_reset(this->Statement);
+ sqlite3_reset(this->Statement);
}
- int status = vtk_sqlite3_bind_double(this->Statement, index+1, value);
+ int status = sqlite3_bind_double(this->Statement, index+1, value);
- if (status != VTK_SQLITE_OK)
+ if (status != SQLITE_OK)
{
vtksys_ios::ostringstream errormessage;
errormessage << "sqlite_bind_double returned error: " << status;
@@ -734,12 +734,12 @@ bool vtkSQLiteQuery::BindStringParameter(int index, const char *value, int lengt
if (this->Active)
{
this->Active = false;
- vtk_sqlite3_reset(this->Statement);
+ sqlite3_reset(this->Statement);
}
- int status = vtk_sqlite3_bind_text(this->Statement, index+1, value, length, VTK_SQLITE_TRANSIENT);
+ int status = sqlite3_bind_text(this->Statement, index+1, value, length, SQLITE_TRANSIENT);
- if (status != VTK_SQLITE_OK)
+ if (status != SQLITE_OK)
{
vtksys_ios::ostringstream errormessage;
errormessage << "sqlite_bind_text returned error: " << status;
@@ -763,17 +763,17 @@ bool vtkSQLiteQuery::BindBlobParameter(int index, const void *data, int length)
if (this->Active)
{
this->Active = false;
- vtk_sqlite3_reset(this->Statement);
+ sqlite3_reset(this->Statement);
}
int status =
- vtk_sqlite3_bind_blob(this->Statement,
+ sqlite3_bind_blob(this->Statement,
index+1,
data,
length,
- VTK_SQLITE_TRANSIENT);
+ SQLITE_TRANSIENT);
- if (status != VTK_SQLITE_OK)
+ if (status != SQLITE_OK)
{
vtksys_ios::ostringstream errormessage;
errormessage << "sqlite_bind_blob returned error: " << status;
@@ -797,12 +797,12 @@ bool vtkSQLiteQuery::ClearParameterBindings()
if (this->Active)
{
this->Active = false;
- vtk_sqlite3_reset(this->Statement);
+ sqlite3_reset(this->Statement);
}
- int status = vtk_sqlite3_clear_bindings(this->Statement);
+ int status = sqlite3_clear_bindings(this->Statement);
- if (status != VTK_SQLITE_OK)
+ if (status != SQLITE_OK)
{
vtksys_ios::ostringstream errormessage;
errormessage << "sqlite_clear_bindings returned error: " << status;
diff --git a/IO/SQL/vtkSQLiteQuery.h b/IO/SQL/vtkSQLiteQuery.h
index bfab39a..db4deb4 100644
--- a/IO/SQL/vtkSQLiteQuery.h
+++ b/IO/SQL/vtkSQLiteQuery.h
@@ -47,7 +47,7 @@
class vtkSQLiteDatabase;
class vtkVariant;
class vtkVariantArray;
-struct vtk_sqlite3_stmt;
+struct sqlite3_stmt;
class VTKIOSQL_EXPORT vtkSQLiteQuery : public vtkSQLQuery
{
@@ -155,7 +155,7 @@ private:
vtkSQLiteQuery(const vtkSQLiteQuery &); // Not implemented.
void operator=(const vtkSQLiteQuery &); // Not implemented.
- vtk_sqlite3_stmt *Statement;
+ sqlite3_stmt *Statement;
bool InitialFetch;
int InitialFetchResult;
char *LastErrorText;
diff --git a/Parallel/MPI4Py/CMakeLists.txt b/Parallel/MPI4Py/CMakeLists.txt
index dde5b31..f7d620d 100644
--- a/Parallel/MPI4Py/CMakeLists.txt
+++ b/Parallel/MPI4Py/CMakeLists.txt
@@ -17,7 +17,7 @@ if(VTK_USE_SYSTEM_MPI4PY)
mark_as_advanced(MPI4PY_INCLUDE_DIR)
endif()
else()
- set(MPI4PY_INCLUDE_DIR "${vtkmpi4py_SOURCE_DIR}/vtkmpi4py/src/include")
+ set(MPI4PY_INCLUDE_DIR "/usr/include")
endif()
include_directories("${MPI4PY_INCLUDE_DIR}")
diff --git a/Parallel/MPI4Py/module.cmake b/Parallel/MPI4Py/module.cmake
index b90fd30..27e3d49 100644
--- a/Parallel/MPI4Py/module.cmake
+++ b/Parallel/MPI4Py/module.cmake
@@ -5,8 +5,6 @@ if (VTK_WRAP_PYTHON)
DEPENDS
vtkParallelMPI
vtkPython
- COMPILE_DEPENDS
- vtkmpi4py
EXCLUDE_FROM_TCL_WRAPPING
EXCLUDE_FROM_JAVA_WRAPPING
KIT
diff --git a/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.h b/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.h
index c133e27..c4cacc7 100644
--- a/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.h
+++ b/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.h
@@ -132,6 +132,10 @@ protected:
// Function used to check MPL availability and update MPLMathTextAvailable.
// This will do tests only the first time this method is called.
static void CheckMPLAvailability();
+ static void DisableMPL()
+ {
+ MPLMathTextAvailable = UNAVAILABLE;
+ };
private:
vtkMatplotlibMathTextUtilities(const vtkMatplotlibMathTextUtilities&); // Not implemented.
diff --git a/Rendering/Tk/CMakeLists.txt b/Rendering/Tk/CMakeLists.txt
index 0b94cd3..7bf1194 100644
--- a/Rendering/Tk/CMakeLists.txt
+++ b/Rendering/Tk/CMakeLists.txt
@@ -122,7 +122,7 @@ if(TK_FOUND AND VTK_USE_TK)
vtk_target_install(vtkRenderingPythonTkWidgets)
set_property(TARGET vtkRenderingPythonTkWidgets PROPERTY OUTPUT_NAME
- vtkRenderingPythonTkWidgets-${VTK_MAJOR_VERSION}.${VTK_MINOR_VERSION})
+ vtkRenderingPythonTkWidgets)
set(Module_PYTHON_LIBS ${VTK_TK_LIBRARIES})
if(VTK_USE_X)
diff --git a/ThirdParty/sqlite/CMakeLists.txt b/ThirdParty/sqlite/CMakeLists.txt
index 9e1c067..a09c7c5 100644
--- a/ThirdParty/sqlite/CMakeLists.txt
+++ b/ThirdParty/sqlite/CMakeLists.txt
@@ -1,4 +1,3 @@
set(vtksqlite_THIRD_PARTY 1)
-set(vtksqlite_LIBRARIES vtksqlite)
+set(vtksqlite_LIBRARIES sqlite3)
vtk_module_export_info()
-add_subdirectory(vtksqlite)
diff --git a/Utilities/Doxygen/doxyfile.in b/Utilities/Doxygen/doxyfile.in
index ad5e41c..ecde8bd 100644
--- a/Utilities/Doxygen/doxyfile.in
+++ b/Utilities/Doxygen/doxyfile.in
@@ -22,6 +22,7 @@ PDF_HYPERLINKS = YES
HAVE_DOT = @HAVE_DOT_YESNO@
DOT_PATH = "@DOT_PATH@"
+DOT_IMAGE_FORMAT = svg
CLASS_GRAPH = YES
COLLABORATION_GRAPH = YES
TEMPLATE_RELATIONS = YES
diff --git a/Wrapping/Tcl/vtkTkAppInit.cxx b/Wrapping/Tcl/vtkTkAppInit.cxx
index f2b96f0..c1ea1a1 100644
--- a/Wrapping/Tcl/vtkTkAppInit.cxx
+++ b/Wrapping/Tcl/vtkTkAppInit.cxx
@@ -165,6 +165,8 @@ int Tcl_AppInit(Tcl_Interp *interp)
// Help Tcl find the Tcl/Tk helper files.
const char* relative_dirs[] =
{
+ "../share/tcltk",
+ "../../share/tcltk",
"TclTk/lib",
".." VTK_INSTALL_TCL_DIR,
0
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/vtk6.git
More information about the debian-science-commits
mailing list