]> Creatis software - cpPlugins.git/commitdiff
Project cleanup towards version 0.1.0
authorLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Tue, 8 Mar 2016 22:39:58 +0000 (17:39 -0500)
committerLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Tue, 8 Mar 2016 22:39:58 +0000 (17:39 -0500)
284 files changed:
appli/CMakeLists.txt [deleted file]
appli/ImageMPR/CMakeLists.txt [deleted file]
appli/ImageMPR/ImageMPR.cxx [deleted file]
appli/ImageMPR/ImageMPR.h [deleted file]
appli/ImageMPR/ImageMPR.ui [deleted file]
appli/ImageMPR/Plugins.cfg.in [deleted file]
appli/ImageMPR/main.cxx [deleted file]
appli/bash/CMakeLists.txt [deleted file]
appli/bash/cpPlugins_createHost.cxx [deleted file]
appli/cpPipelineEditor/App_cpPipelineEditor.cxx [deleted file]
appli/cpPipelineEditor/App_cpPipelineEditor.h [deleted file]
appli/cpPipelineEditor/App_cpPipelineEditor.ui [deleted file]
appli/cpPipelineEditor/CMakeLists.txt [deleted file]
appli/cpPipelineEditor/main.cxx [deleted file]
appli/examples/CMakeLists.txt [deleted file]
appli/examples/example_1DImageGradient.cxx [deleted file]
appli/examples/example_2DGulsunTekMedialness.cxx [deleted file]
appli/examples/example_2DImageGradient.cxx [deleted file]
appli/examples/example_3DGulsunTekMedialness.cxx [deleted file]
appli/examples/example_3DImageGradient.cxx [deleted file]
appli/examples/example_BaseInteractorStyle.cxx [deleted file]
appli/examples/example_ContourWidget.cxx [deleted file]
appli/examples/example_ExtractDICOMSeries.cxx [deleted file]
appli/examples/example_HandleWidget.cxx [deleted file]
appli/examples/example_ImageGaussianModelEstimator.cxx [deleted file]
appli/examples/example_LightCompensation.cxx [deleted file]
appli/examples/example_LoadPlugins.cxx [deleted file]
appli/examples/example_LoadPluginsFromPath.cxx [deleted file]
appli/examples/example_MPR.cxx [deleted file]
appli/examples/example_MacheteFilter.cxx [deleted file]
appli/examples/example_MarchingCubes.cxx [deleted file]
appli/examples/example_OtsuFilter.cxx [deleted file]
appli/examples/example_ParallelImageMean.cxx [deleted file]
appli/examples/example_RGBImageToHSVChannels.cxx [deleted file]
appli/examples/example_RGBImageToYPbPrChannels.cxx [deleted file]
appli/examples/example_ReadImageSeriesWriteImage.cxx [deleted file]
appli/examples/example_ReadQuadEdgeMesh.cxx [deleted file]
appli/examples/example_ReadQuadEdgeMeshWithoutPlugins.cxx [deleted file]
appli/examples/example_ReadWriteImage.cxx [deleted file]
appli/examples/example_RenderQuadEdgeMesh.cxx [deleted file]
appli/examples/example_RenderQuadEdgeMeshWithoutPlugins.cxx [deleted file]
appli/examples/example_SeedWidget.cxx [deleted file]
appli/examples/example_SphereSource.cxx [deleted file]
appli/examples/example_SphereWidget.cxx [deleted file]
appli/examples/example_TestParameters.cxx [deleted file]
appli/examples/example_Test_DoubleClick.cxx [deleted file]
appli/examples/example_Test_Memento.cxx [deleted file]
appli/examples/example_Test_async.cxx [deleted file]
appli/examples/example_View2DImage.cxx [deleted file]
appli/examples/example_ViewImageThreshold.cxx [deleted file]
appli/examples/example_WorkspaceSandBox.cxx [deleted file]
cmake/CMakeLists.txt [deleted file]
cmake/cpPluginsConfig.cmake.in [deleted file]
lib/CMakeLists.txt [deleted file]
lib/cpExtensions/Algorithms/BezierCurveFunction.h [deleted file]
lib/cpExtensions/Algorithms/BezierCurveFunction.hxx [deleted file]
lib/cpExtensions/Algorithms/GradientFunctionBase.h [deleted file]
lib/cpExtensions/Algorithms/GradientFunctionBase.hxx [deleted file]
lib/cpExtensions/Algorithms/GulsunTekMedialness.h [deleted file]
lib/cpExtensions/Algorithms/GulsunTekMedialness.hxx [deleted file]
lib/cpExtensions/Algorithms/ImageFunctionFilter.h [deleted file]
lib/cpExtensions/Algorithms/ImageFunctorFilter.h [deleted file]
lib/cpExtensions/Algorithms/InertiaMedialness.h [deleted file]
lib/cpExtensions/Algorithms/InertiaTensorFunction.h [deleted file]
lib/cpExtensions/Algorithms/IsoImageSlicer.h [deleted file]
lib/cpExtensions/Algorithms/IsoImageSlicer.hxx [deleted file]
lib/cpExtensions/Algorithms/IterativeGaussianModelEstimator.h [deleted file]
lib/cpExtensions/Algorithms/IterativeGaussianModelEstimator.hxx [deleted file]
lib/cpExtensions/Algorithms/KalmanConstantFilter.cxx [deleted file]
lib/cpExtensions/Algorithms/KalmanConstantFilter.h [deleted file]
lib/cpExtensions/Algorithms/KalmanFilter.cxx [deleted file]
lib/cpExtensions/Algorithms/KalmanFilter.h [deleted file]
lib/cpExtensions/Algorithms/KalmanFilter.hxx [deleted file]
lib/cpExtensions/Algorithms/KalmanVelocityFilter.cxx [deleted file]
lib/cpExtensions/Algorithms/KalmanVelocityFilter.h [deleted file]
lib/cpExtensions/Algorithms/LightCompensationFilter.h [deleted file]
lib/cpExtensions/Algorithms/LightCompensationFilter.hxx [deleted file]
lib/cpExtensions/Algorithms/MacheteImageFilter.h [deleted file]
lib/cpExtensions/Algorithms/MacheteImageFilter.hxx [deleted file]
lib/cpExtensions/Algorithms/MultiScaleGaussianImageFilter.h [deleted file]
lib/cpExtensions/Algorithms/MultiScaleGaussianImageFilter.hxx [deleted file]
lib/cpExtensions/Algorithms/ParallelImageMean.h [deleted file]
lib/cpExtensions/Algorithms/ParallelImageMean.hxx [deleted file]
lib/cpExtensions/Algorithms/RGBExtractFunction.h [deleted file]
lib/cpExtensions/Algorithms/RGBImageToOtherChannelsFilter.h [deleted file]
lib/cpExtensions/Algorithms/RGBImageToOtherChannelsFilter.hxx [deleted file]
lib/cpExtensions/Algorithms/RGBToHSVFunction.h [deleted file]
lib/cpExtensions/Algorithms/RGBToYPbPrFunction.h [deleted file]
lib/cpExtensions/Algorithms/SpatialObjectMaskImageFilter.h [deleted file]
lib/cpExtensions/Algorithms/SpatialObjectMaskImageFilter.hxx [deleted file]
lib/cpExtensions/CMakeLists.txt [deleted file]
lib/cpExtensions/Config.h.in [deleted file]
lib/cpExtensions/DataStructures/Graph.h [deleted file]
lib/cpExtensions/DataStructures/Graph.hxx [deleted file]
lib/cpExtensions/DataStructures/ITKAndVTKImage.h [deleted file]
lib/cpExtensions/DataStructures/InfinitePlaneSpatialObject.h [deleted file]
lib/cpExtensions/DataStructures/InfinitePlaneSpatialObject.hxx [deleted file]
lib/cpExtensions/DataStructures/QuadEdge.h [deleted file]
lib/cpExtensions/DataStructures/QuadEdge.hxx [deleted file]
lib/cpExtensions/DataStructures/QuadEdgeCell.h [deleted file]
lib/cpExtensions/DataStructures/QuadEdgeCell.hxx [deleted file]
lib/cpExtensions/DataStructures/QuadEdgeIterators.h [deleted file]
lib/cpExtensions/DataStructures/QuadEdgeIterators.hxx [deleted file]
lib/cpExtensions/DataStructures/QuadEdgeMesh.h [deleted file]
lib/cpExtensions/DataStructures/QuadEdgeMesh.hxx [deleted file]
lib/cpExtensions/DataStructures/VectorValuesContainer.h [deleted file]
lib/cpExtensions/IO/MementoState.cxx [deleted file]
lib/cpExtensions/IO/MementoState.h [deleted file]
lib/cpExtensions/IO/MeshReader.h [deleted file]
lib/cpExtensions/IO/MeshReader.hxx [deleted file]
lib/cpExtensions/IO/WaveFrontOBJReader.h [deleted file]
lib/cpExtensions/IO/WaveFrontOBJReader.hxx [deleted file]
lib/cpExtensions/Interaction/BaseInteractorStyle.cxx [deleted file]
lib/cpExtensions/Interaction/BaseInteractorStyle.h [deleted file]
lib/cpExtensions/Interaction/ImageInteractorStyle.cxx [deleted file]
lib/cpExtensions/Interaction/ImageInteractorStyle.h [deleted file]
lib/cpExtensions/Interaction/SeedWidget.cxx [deleted file]
lib/cpExtensions/Interaction/SeedWidget.h [deleted file]
lib/cpExtensions/Interaction/SphereWidget.cxx [deleted file]
lib/cpExtensions/Interaction/SphereWidget.h [deleted file]
lib/cpExtensions/Visualization/Image3DMPR.cxx [deleted file]
lib/cpExtensions/Visualization/Image3DMPR.h [deleted file]
lib/cpExtensions/Visualization/ImageBlender.cxx [deleted file]
lib/cpExtensions/Visualization/ImageBlender.h [deleted file]
lib/cpExtensions/Visualization/ImageSliceActors.cxx [deleted file]
lib/cpExtensions/Visualization/ImageSliceActors.h [deleted file]
lib/cpExtensions/Visualization/MPRActors.cxx [deleted file]
lib/cpExtensions/Visualization/MPRActors.h [deleted file]
lib/cpExtensions/Visualization/MPRObjects.cxx [deleted file]
lib/cpExtensions/Visualization/MPRObjects.h [deleted file]
lib/cpExtensions/Visualization/MeshMapper.h [deleted file]
lib/cpExtensions/Visualization/MeshMapper.hxx [deleted file]
lib/cpExtensions/Visualization/OpenGLMeshMapper.h [deleted file]
lib/cpExtensions/Visualization/OpenGLMeshMapper.hxx [deleted file]
lib/cpExtensions/Visualization/SeedWidgetCorrector.cxx [deleted file]
lib/cpExtensions/Visualization/SeedWidgetCorrector.h [deleted file]
lib/cpPipelineEditor/Block.cxx [deleted file]
lib/cpPipelineEditor/Block.h [deleted file]
lib/cpPipelineEditor/CMakeLists.txt [deleted file]
lib/cpPipelineEditor/Canvas.cxx [deleted file]
lib/cpPipelineEditor/Canvas.h [deleted file]
lib/cpPipelineEditor/Connection.cxx [deleted file]
lib/cpPipelineEditor/Connection.h [deleted file]
lib/cpPipelineEditor/Editor.cxx [deleted file]
lib/cpPipelineEditor/Editor.h [deleted file]
lib/cpPipelineEditor/Port.cxx [deleted file]
lib/cpPipelineEditor/Port.h [deleted file]
lib/cpPlugins/CMakeLists.txt [deleted file]
lib/cpPlugins/Interface/BaseProcessObjects.cxx [deleted file]
lib/cpPlugins/Interface/BaseProcessObjects.h [deleted file]
lib/cpPlugins/Interface/CMakeLists.txt [deleted file]
lib/cpPlugins/Interface/Config.h.in [deleted file]
lib/cpPlugins/Interface/DataObject.cxx [deleted file]
lib/cpPlugins/Interface/DataObject.h [deleted file]
lib/cpPlugins/Interface/Image.cxx [deleted file]
lib/cpPlugins/Interface/Image.h [deleted file]
lib/cpPlugins/Interface/Image.hxx [deleted file]
lib/cpPlugins/Interface/ImplicitFunction.cxx [deleted file]
lib/cpPlugins/Interface/ImplicitFunction.h [deleted file]
lib/cpPlugins/Interface/Instances_itkImage.cxx [deleted file]
lib/cpPlugins/Interface/Instances_itkMesh.cxx [deleted file]
lib/cpPlugins/Interface/Instances_itkPolyLineParametricPath.cxx [deleted file]
lib/cpPlugins/Interface/Instances_itkVectorImage.cxx [deleted file]
lib/cpPlugins/Interface/Interface.cxx [deleted file]
lib/cpPlugins/Interface/Interface.h [deleted file]
lib/cpPlugins/Interface/Macros.h [deleted file]
lib/cpPlugins/Interface/Mesh.cxx [deleted file]
lib/cpPlugins/Interface/Mesh.h [deleted file]
lib/cpPlugins/Interface/Mesh.hxx [deleted file]
lib/cpPlugins/Interface/Object.cxx [deleted file]
lib/cpPlugins/Interface/Object.h [deleted file]
lib/cpPlugins/Interface/Object.hxx [deleted file]
lib/cpPlugins/Interface/Parameters.cxx [deleted file]
lib/cpPlugins/Interface/Parameters.h [deleted file]
lib/cpPlugins/Interface/ParametersListWidget.cxx [deleted file]
lib/cpPlugins/Interface/ParametersListWidget.h [deleted file]
lib/cpPlugins/Interface/ParametersListWidget.ui [deleted file]
lib/cpPlugins/Interface/ParametersQtDialog.cxx [deleted file]
lib/cpPlugins/Interface/ParametersQtDialog.h [deleted file]
lib/cpPlugins/Interface/PointList.cxx [deleted file]
lib/cpPlugins/Interface/PointList.h [deleted file]
lib/cpPlugins/Interface/PointList.hxx [deleted file]
lib/cpPlugins/Interface/PolyLineParametricPath.cxx [deleted file]
lib/cpPlugins/Interface/PolyLineParametricPath.h [deleted file]
lib/cpPlugins/Interface/PolyLineParametricPath.hxx [deleted file]
lib/cpPlugins/Interface/ProcessObject.cxx [deleted file]
lib/cpPlugins/Interface/ProcessObject.h [deleted file]
lib/cpPlugins/Interface/ProcessObject.hxx [deleted file]
lib/cpPlugins/Interface/ProcessObjectPort.cxx [deleted file]
lib/cpPlugins/Interface/ProcessObjectPort.h [deleted file]
lib/cpPlugins/Interface/ProcessObjectProvider.cxx [deleted file]
lib/cpPlugins/Interface/ProcessObjectProvider.h [deleted file]
lib/cpPlugins/Interface/SimpleMPRWidget.cxx [deleted file]
lib/cpPlugins/Interface/SimpleMPRWidget.h [deleted file]
lib/cpPlugins/Interface/SimpleMPRWidget.ui [deleted file]
lib/cpPlugins/Interface/Workspace.cxx [deleted file]
lib/cpPlugins/Interface/Workspace.h [deleted file]
lib/cpPlugins/Interface/WorkspaceIO.cxx [deleted file]
lib/cpPlugins/Plugins/BasicFilters/AppendMeshesFilter.cxx [deleted file]
lib/cpPlugins/Plugins/BasicFilters/AppendMeshesFilter.h [deleted file]
lib/cpPlugins/Plugins/BasicFilters/BinaryErodeImageFilter.cxx [deleted file]
lib/cpPlugins/Plugins/BasicFilters/BinaryErodeImageFilter.h [deleted file]
lib/cpPlugins/Plugins/BasicFilters/BinaryThresholdImageFilter.cxx [deleted file]
lib/cpPlugins/Plugins/BasicFilters/BinaryThresholdImageFilter.h [deleted file]
lib/cpPlugins/Plugins/BasicFilters/CMakeLists.txt [deleted file]
lib/cpPlugins/Plugins/BasicFilters/Cutter.cxx [deleted file]
lib/cpPlugins/Plugins/BasicFilters/Cutter.h [deleted file]
lib/cpPlugins/Plugins/BasicFilters/DoubleFloodImageFilter.cxx [deleted file]
lib/cpPlugins/Plugins/BasicFilters/DoubleFloodImageFilter.h [deleted file]
lib/cpPlugins/Plugins/BasicFilters/ExtractSliceImageFilter.cxx [deleted file]
lib/cpPlugins/Plugins/BasicFilters/ExtractSliceImageFilter.h [deleted file]
lib/cpPlugins/Plugins/BasicFilters/FloodFillImageFilter.cxx [deleted file]
lib/cpPlugins/Plugins/BasicFilters/FloodFillImageFilter.h [deleted file]
lib/cpPlugins/Plugins/BasicFilters/ImageInterpolatorSource.cxx [deleted file]
lib/cpPlugins/Plugins/BasicFilters/ImageInterpolatorSource.h [deleted file]
lib/cpPlugins/Plugins/BasicFilters/InputDataReproducer.cxx [deleted file]
lib/cpPlugins/Plugins/BasicFilters/InputDataReproducer.h [deleted file]
lib/cpPlugins/Plugins/BasicFilters/MacheteFilter.cxx [deleted file]
lib/cpPlugins/Plugins/BasicFilters/MacheteFilter.h [deleted file]
lib/cpPlugins/Plugins/BasicFilters/MacheteImageFilter.cxx [deleted file]
lib/cpPlugins/Plugins/BasicFilters/MacheteImageFilter.h [deleted file]
lib/cpPlugins/Plugins/BasicFilters/MarchingCubes.cxx [deleted file]
lib/cpPlugins/Plugins/BasicFilters/MarchingCubes.h [deleted file]
lib/cpPlugins/Plugins/BasicFilters/MedianImageFilter.cxx [deleted file]
lib/cpPlugins/Plugins/BasicFilters/MedianImageFilter.h [deleted file]
lib/cpPlugins/Plugins/BasicFilters/MultiplyImageFilter.cxx [deleted file]
lib/cpPlugins/Plugins/BasicFilters/MultiplyImageFilter.h [deleted file]
lib/cpPlugins/Plugins/BasicFilters/OtsuThresholdImageFilter.cxx [deleted file]
lib/cpPlugins/Plugins/BasicFilters/OtsuThresholdImageFilter.h [deleted file]
lib/cpPlugins/Plugins/BasicFilters/RGBImageToOtherChannelsFilter.cxx [deleted file]
lib/cpPlugins/Plugins/BasicFilters/RGBImageToOtherChannelsFilter.h [deleted file]
lib/cpPlugins/Plugins/BasicFilters/SignedMaurerDistanceMapImageFilter.cxx [deleted file]
lib/cpPlugins/Plugins/BasicFilters/SignedMaurerDistanceMapImageFilter.h [deleted file]
lib/cpPlugins/Plugins/BasicFilters/SphereMeshSource.cxx [deleted file]
lib/cpPlugins/Plugins/BasicFilters/SphereMeshSource.h [deleted file]
lib/cpPlugins/Plugins/BasicFilters/TriangleMeshToBinaryImageFilter.cxx [deleted file]
lib/cpPlugins/Plugins/BasicFilters/TriangleMeshToBinaryImageFilter.h [deleted file]
lib/cpPlugins/Plugins/CMakeLists.txt [deleted file]
lib/cpPlugins/Plugins/IO/CMakeLists.txt [deleted file]
lib/cpPlugins/Plugins/IO/DicomSeriesReader.cxx [deleted file]
lib/cpPlugins/Plugins/IO/DicomSeriesReader.h [deleted file]
lib/cpPlugins/Plugins/IO/ImageReader.cxx [deleted file]
lib/cpPlugins/Plugins/IO/ImageReader.h [deleted file]
lib/cpPlugins/Plugins/IO/ImageWriter.cxx [deleted file]
lib/cpPlugins/Plugins/IO/ImageWriter.h [deleted file]
lib/cpPlugins/Plugins/IO/MeshReader.cxx [deleted file]
lib/cpPlugins/Plugins/IO/MeshReader.h [deleted file]
lib/cpPlugins/Plugins/IO/MeshWriter.cxx [deleted file]
lib/cpPlugins/Plugins/IO/MeshWriter.h [deleted file]
lib/cpPlugins/Plugins/Widgets/CMakeLists.txt [deleted file]
lib/cpPlugins/Plugins/Widgets/SeedWidget.cxx [deleted file]
lib/cpPlugins/Plugins/Widgets/SeedWidget.h [deleted file]
lib/third_party/CMakeLists.txt [deleted file]
lib/third_party/ItkVtkGlue/itkImageToVTKImageFilter.h [deleted file]
lib/third_party/ItkVtkGlue/itkImageToVTKImageFilter.hxx [deleted file]
lib/third_party/ItkVtkGlue/itkVTKImageToImageFilter.h [deleted file]
lib/third_party/ItkVtkGlue/itkVTKImageToImageFilter.hxx [deleted file]
lib/third_party/Pluma/CMakeLists.txt [deleted file]
lib/third_party/Pluma/Config.hpp [deleted file]
lib/third_party/Pluma/Connector.hpp [deleted file]
lib/third_party/Pluma/DLibrary.cpp [deleted file]
lib/third_party/Pluma/DLibrary.hpp [deleted file]
lib/third_party/Pluma/Dir.cpp [deleted file]
lib/third_party/Pluma/Dir.hpp [deleted file]
lib/third_party/Pluma/Host.cpp [deleted file]
lib/third_party/Pluma/Host.hpp [deleted file]
lib/third_party/Pluma/PluginManager.cpp [deleted file]
lib/third_party/Pluma/PluginManager.hpp [deleted file]
lib/third_party/Pluma/Pluma.hpp [deleted file]
lib/third_party/Pluma/Pluma.inl [deleted file]
lib/third_party/Pluma/Provider.cpp [deleted file]
lib/third_party/Pluma/Provider.hpp [deleted file]
lib/third_party/Pluma/readme [deleted file]
lib/third_party/Pluma/uce-dirent.h [deleted file]
lib/third_party/glext/GL/glext.h [deleted file]
lib/third_party/tinyxml/CMakeLists.txt [deleted file]
lib/third_party/tinyxml/changes.txt [deleted file]
lib/third_party/tinyxml/readme.txt [deleted file]
lib/third_party/tinyxml/tinystr.cpp [deleted file]
lib/third_party/tinyxml/tinystr.h [deleted file]
lib/third_party/tinyxml/tinyxml.cpp [deleted file]
lib/third_party/tinyxml/tinyxml.h [deleted file]
lib/third_party/tinyxml/tinyxmlerror.cpp [deleted file]
lib/third_party/tinyxml/tinyxmlparser.cpp [deleted file]

diff --git a/appli/CMakeLists.txt b/appli/CMakeLists.txt
deleted file mode 100644 (file)
index 785c97e..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-SUBDIRS(
-  bash
-  )
-
-IF(BUILD_EXAMPLES)
-  SUBDIRS(
-    examples
-    #ImageMPR
-    )
-  IF(USE_QT4)
-    SUBDIRS(
-      cpPipelineEditor
-      )
-  ENDIF(USE_QT4)
-ENDIF(BUILD_EXAMPLES)
-
-## eof - $RCSfile$
diff --git a/appli/ImageMPR/CMakeLists.txt b/appli/ImageMPR/CMakeLists.txt
deleted file mode 100644 (file)
index 3a9ab89..0000000
+++ /dev/null
@@ -1,297 +0,0 @@
-IF(USE_QT4)
-   SET(App_NAME       "ImageMPR")
-
- IF(WIN32) 
-  CONFIGURE_FILE(
-    Plugins.cfg.in
-    ${PROJECT_BINARY_DIR}/appli/${App_NAME}/Plugins.cfg
-    @ONLY
-    )
- ELSE(WIN32)
- CONFIGURE_FILE(
-    Plugins.cfg.in
-    ${PROJECT_BINARY_DIR}/Plugins.cfg
-    @ONLY
-    )
- ENDIF(WIN32)
-       
-
-  ## ====================================================
-  ## = Source code, user interafaces and resources here =
-  ## ====================================================
-
-  SET(App_SOURCE_DIR "${PROJECT_SOURCE_DIR}/appli/${App_NAME}")
-  SET(App_BINARY_DIR "${PROJECT_BINARY_DIR}/appli/${App_NAME}")
-
-  SET(
-    App_QT_SOURCES
-    ImageMPR.cxx
-    )
-  SET(
-    App_SOURCES
-    #MementoState.cxx
-    main.cxx
-    )
-  SET(
-    App_QT_HEADERS
-    ImageMPR.h
-    )
-  SET(
-    App_HEADERS
-    MementoState.h
-    )
-  FILE(GLOB App_QT_UI  "${App_SOURCE_DIR}/*.ui")
-  FILE(GLOB App_QT_RES "${App_SOURCE_DIR}/*.qrc")
-
-  ## =====================
-  ## = Compilation rules =
-  ## =====================
-
-  INCLUDE_DIRECTORIES(
-    ${App_BINARY_DIR}
-    )
-
-  QT4_WRAP_UI(App_QT_UI_Headers ${App_QT_UI})
-  QT4_WRAP_CPP(App_QT_HEADERS_MOC_SOURCES ${App_QT_HEADERS})
-  QT4_ADD_RESOURCES(App_QT_RES_SOURCES ${App_QT_RES})
-
-  SET(GUI_TYPE "")
-  IF(WIN32)
-    SET(GUI_TYPE WIN32)
-  ENDIF(WIN32)
-  IF(APPLE)
-    SET(GUI_TYPE MACOSX_BUNDLE)
-  ENDIF(APPLE)
-
-  ADD_EXECUTABLE(
-    ${App_NAME}
-    ${GUI_TYPE}
-    ${App_QT_UI_Headers}
-    ${App_SOURCES}
-    ${App_QT_SOURCES}
-    ${App_QT_HEADERS_MOC_SOURCES}
-    ${App_QT_RES_SOURCES}
-    )
-  TARGET_LINK_LIBRARIES(
-    ${App_NAME}
-    ${QT_LIBRARIES}
-    cpExtensions
-    cpPlugins_Interface
-       )
-ENDIF(USE_QT4)
-
-## eof - $RCSfile$
-
-##===================================================
-## cpPack
-##===================================================
-## It´s configured for windows
-## TODO: check rpm and deb configuration for linux
-##
-
-set(CONFIG_FILE
-  ${PROJECT_BINARY_DIR}/appli/ImageMPR/Plugins.cfg     
-)
-
-set(QT_PACKAGE_LIBRARIES 
-   C:/src/qt/qt4.8.6/bin/QtCore4.dll
-   C:/src/qt/qt4.8.6/bin/QtCored4.dll
-   C:/src/qt/qt4.8.6/bin/QtDeclarative4.dll
-   C:/src/qt/qt4.8.6/bin/QtDeclaratived4.dll
-   C:/src/qt/qt4.8.6/bin/QtDesigner4.dll
-   C:/src/qt/qt4.8.6/bin/QtDesignerComponents4.dll
-   C:/src/qt/qt4.8.6/bin/QtDesignerComponentsd4.dll
-   C:/src/qt/qt4.8.6/bin/QtDesignerd4.dll
-   C:/src/qt/qt4.8.6/bin/QtGui4.dll
-   C:/src/qt/qt4.8.6/bin/QtGuid4.dll
-   C:/src/qt/qt4.8.6/bin/QtHelp4.dll
-   C:/src/qt/qt4.8.6/bin/QtHelpd4.dll
-   C:/src/qt/qt4.8.6/bin/QtMultimedia4.dll
-   C:/src/qt/qt4.8.6/bin/QtMultimediad4.dll
-   C:/src/qt/qt4.8.6/bin/QtNetwork4.dll
-   C:/src/qt/qt4.8.6/bin/QtNetworkd4.dll
-   C:/src/qt/qt4.8.6/bin/QtOpenGL4.dll
-   C:/src/qt/qt4.8.6/bin/QtOpenGLd4.dll
-   C:/src/qt/qt4.8.6/bin/QtScript4.dll
-   C:/src/qt/qt4.8.6/bin/QtScriptd4.dll
-   C:/src/qt/qt4.8.6/bin/QtScriptTools4.dll
-   C:/src/qt/qt4.8.6/bin/QtScriptToolsd4.dll
-   C:/src/qt/qt4.8.6/bin/QtSql4.dll
-   C:/src/qt/qt4.8.6/bin/QtSqld4.dll
-   C:/src/qt/qt4.8.6/bin/QtSvg4.dll
-   C:/src/qt/qt4.8.6/bin/QtSvgd4.dll
-   C:/src/qt/qt4.8.6/bin/QtTest4.dll
-   C:/src/qt/qt4.8.6/bin/QtTestd4.dll
-   C:/src/qt/qt4.8.6/bin/QtXml4.dll
-   C:/src/qt/qt4.8.6/bin/QtXmld4.dll
-   C:/src/qt/qt4.8.6/bin/QtXmlPatterns4.dll
-   C:/src/qt/qt4.8.6/bin/QtXmlPatternsd4.dll
-)
-
-set(ITK_PACKAGE_LIBRARIES 
-  C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKCommon-4.8.dll
-  C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOBioRad-4.8.dll
-  C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOBMP-4.8.dll
-  C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOGE-4.8.dll
-  C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOGIPL-4.8.dll
-  C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOHDF5-4.8.dll
-  C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOImageBase-4.8.dll
-  C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOIPL-4.8.dll
-  C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOJPEG-4.8.dll
-  C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOLSM-4.8.dll
-  C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOMesh-4.8.dll
-  C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOMeta-4.8.dll
-  C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIONIFTI-4.8.dll
-  C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIONRRD-4.8.dll
-  C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOPNG-4.8.dll
-  C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOSiemens-4.8.dll
-  C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOStimulate-4.8.dll
-  C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOTIFF-4.8.dll
-  C:/src/itk/4.8.0/build/bin/MinSizeRel/ITKIOVTK-4.8.dll
-)
-
-set(VTK_PACKAGE_LIBRARIES 
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkalglib-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkChartsCore-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkCommonColor-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkCommonComputationalGeometry-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkCommonCore-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkCommonDataModel-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkCommonExecutionModel-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkCommonMath-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkCommonMisc-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkCommonSystem-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkCommonTransforms-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkDICOMParser-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkDomainsChemistry-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkexoIIc-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkexpat-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersAMR-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersCore-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersExtraction-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersFlowPaths-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersGeneral-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersGeneric-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersGeometry-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersHybrid-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersHyperTree-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersImaging-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersModeling-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersParallel-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersParallelImaging-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersProgrammable-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersSelection-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersSMP-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersSources-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersStatistics-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersTexture-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkFiltersVerdict-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkfreetype-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkftgl-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkGeovisCore-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkgl2ps-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkGUISupportQt-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkGUISupportQtOpenGL-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkhdf5-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkhdf5_hl-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkImagingColor-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkImagingCore-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkImagingFourier-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkImagingGeneral-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkImagingHybrid-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkImagingMath-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkImagingMorphological-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkImagingSources-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkImagingStatistics-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkImagingStencil-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkInfovisCore-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkInfovisLayout-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkInteractionImage-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkInteractionStyle-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkInteractionWidgets-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOAMR-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOCore-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOEnSight-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOExodus-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOExport-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOGeometry-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOImage-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOImport-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOInfovis-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOLegacy-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOLSDyna-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOMINC-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOMovie-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIONetCDF-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOParallel-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOParallelXML-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOPLY-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOSQL-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOVideo-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOXML-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkIOXMLParser-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkjpeg-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkjsoncpp-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtklibxml2-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkmetaio-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkNetCDF-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkNetCDF_cxx-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkoggtheora-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkParallelCore-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkpng-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkproj4-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingAnnotation-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingContext2D-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingContextOpenGL-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingCore-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingFreeType-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingGL2PS-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingImage-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingLabel-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingLIC-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingLOD-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingOpenGL-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingVolume-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkRenderingVolumeOpenGL-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtksys-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtktiff-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkverdict-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkViewsContext2D-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkViewsCore-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkViewsInfovis-6.3.dll
-  C:/src/vtk/6.3.0/build/bin/MinSizeRel/vtkzlib-6.3.dll
-)
-
-set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS 
-  ${QT_PACKAGE_LIBRARIES}  
-  ${ITK_PACKAGE_LIBRARIES}
-  ${VTK_PACKAGE_LIBRARIES}
-  ${CONFIG_FILE}
-)
-
-# Tell CMake to copy CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS content into the package
-include(InstallRequiredSystemLibraries)
-    
-
-set(CPACK_PACKAGE_NAME "cpPluginsMprViewer")
-set(CPACK_PACKAGE_VENDOR "Creatis & Pontificia Universidad Javeriana")
-set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "cpPlugins - MPR-Viewer")
-set(CPACK_PACKAGE_VERSION "0.0.3")
-set(CPACK_PACKAGE_VERSION_MAJOR "0")
-set(CPACK_PACKAGE_VERSION_MINOR "0")
-set(CPACK_PACKAGE_VERSION_PATCH "3")
-set(CPACK_PACKAGE_INSTALL_DIRECTORY "MPR-Viewer")
-
-install(TARGETS ImageMPR
-   RUNTIME
-   DESTINATION bin
-   COMPONENT applications)
-
-#set(CPACK_COMPONENT_APPLICATIONS_DISPLAY_NAME "Standard MPR viewer application")
-
-#set (CPACK_NSIS_MODIFY_PATH "ON")
-#SET( CPACK_PACKAGE_EXECUTABLES ImageMPR ImageMPR ) 
-SET( CPACK_CREATE_DESKTOP_LINKS ImageMPR ) 
-
-INCLUDE(CPack)
\ No newline at end of file
diff --git a/appli/ImageMPR/ImageMPR.cxx b/appli/ImageMPR/ImageMPR.cxx
deleted file mode 100644 (file)
index c7921b1..0000000
+++ /dev/null
@@ -1,258 +0,0 @@
-#include "ImageMPR.h"
-#include "ui_ImageMPR.h"
-
-#include <QFileInfo>
-#include <QMessageBox>
-
-// -------------------------------------------------------------------------
-#define ImageMPR_ConnectAction( ACTION )                \
-  QObject::connect(                                     \
-    this->m_UI->a##ACTION, SIGNAL( triggered( ) ),      \
-    this, SLOT( _a##ACTION( ) )                         \
-    )
-
-// -------------------------------------------------------------------------
-ImageMPR::
-ImageMPR( QWidget* parent )
-  : QMainWindow( parent ),
-    m_UI( new Ui::ImageMPR )
-{
-  this->m_UI->setupUi( this );
-  this->m_Plugins.SetWidget( this );
-  this->m_Plugins.SetApplication( this );
-
-  // Connect actions
-  ImageMPR_ConnectAction( OpenImage );
-  ImageMPR_ConnectAction( OpenDICOMSeries );
-  ImageMPR_ConnectAction( OpenSegmentation );
-  ImageMPR_ConnectAction( OpenPolyData );
-  ImageMPR_ConnectAction( SaveImage );
-  ImageMPR_ConnectAction( SavePolyData );
-  ImageMPR_ConnectAction( Undo );
-  ImageMPR_ConnectAction( Redo );
-  ImageMPR_ConnectAction( LoadPlugins );
-  ImageMPR_ConnectAction( ShowPlugins );
-
-  // Associate model with view
-  for( unsigned int i = 0; i < 4; ++i )
-    this->m_Plugins.AddInteractor( this->m_UI->MPR->GetInteractor( i ) );
-
-  // Try to load default plugins
-  QStringList args = QApplication::arguments( );
-  QFileInfo info( args.at( 0 ) );
-  this->m_Plugins.LoadPluginsPath(
-    info.absolutePath( ).toStdString( ), true
-    );
-
-  // Put loaded plugins into menu
-  this->_AssociatePluginsToMenu( );
-}
-
-// -------------------------------------------------------------------------
-ImageMPR::
-~ImageMPR( )
-{
-  delete this->m_UI;
-}
-
-// -------------------------------------------------------------------------
-void ImageMPR::
-UpdateActualFilter( )
-{
-  if( !( this->m_Plugins.HasActiveFilter( ) ) )
-    return;
-
-  // Update filter
-  TPlugins::TStringContainer outputs;
-  if(
-    !(
-      this->m_Plugins.UpdateActiveFilter(
-        outputs, this->m_ActiveFilterMainInput
-        )
-      )
-    )
-    return;
-
-  // Show outputs
-  for( auto oIt = outputs.begin( ); oIt != outputs.end( ); ++oIt )
-  {
-    std::string parent = this->m_Plugins.GetParent( *oIt );
-    TDataObject* dobj = this->m_Plugins.GetData< TDataObject >( *oIt );
-    if( this->m_UI->MPR->AddData( dobj, *oIt, parent ) )
-      this->m_UI->MPR->ShowData( *oIt );
-
-  } // rof
-}
-
-// -------------------------------------------------------------------------
-void ImageMPR::
-_AssociatePluginsToMenu( )
-{
-  this->m_UI->MenuFilters->clear( );
-
-  TPlugins::TStringContainer categories;
-  this->m_Plugins.GetLoadedCategories( categories );
-  for( auto cIt = categories.begin( ); cIt != categories.end( ); ++cIt )
-  {
-    QMenu* category = this->m_UI->MenuFilters->addMenu( cIt->c_str( ) );
-    const TPlugins::TStringContainer& filters =
-      this->m_Plugins.GetLoadedFilters( *cIt );
-    for( auto fIt = filters.begin( ); fIt != filters.end( ); ++fIt )
-    {
-      QAction* filter = category->addAction( fIt->c_str( ) );
-      this->connect(
-        filter, SIGNAL( triggered( ) ),
-        this, SLOT( _execPlugin( ) )
-        );
-
-    } // rof
-
-  } // rof
-}
-
-// -------------------------------------------------------------------------
-#define ImageMPR_ReadImage( F )                                         \
-  this->m_UI->MPR->DeleteAllData( );                                    \
-  this->m_Plugins.ClearDataObjects( );                                  \
-  try                                                                   \
-  {                                                                     \
-    std::string name = this->m_Plugins.Read##F( "" );                   \
-    if( name == "" )                                                    \
-      return;                                                           \
-    TImage* image = this->m_Plugins.GetData< TImage >( name );          \
-    this->m_UI->MPR->AddData( image, name, "" );                        \
-    this->m_UI->MPR->SetMainImage( name );                              \
-    this->m_UI->MPR->ShowData( name );                                  \
-  }                                                                     \
-  catch( std::exception& err )                                          \
-  {                                                                     \
-    QMessageBox::critical(                                              \
-      this,                                                             \
-      QMessageBox::tr( "Error reading image." ),                        \
-      QMessageBox::tr( err.what( ) )                                    \
-      );                                                                \
-  }
-
-void ImageMPR::_aOpenImage( )       { ImageMPR_ReadImage( Image ) }
-void ImageMPR::_aOpenDICOMSeries( ) { ImageMPR_ReadImage( DicomSeries ) }
-
-// -------------------------------------------------------------------------
-void ImageMPR::
-_aOpenSegmentation( )
-{
-  try
-  {
-    std::string parent = this->m_UI->MPR->GetMainImage( );
-    std::string name = this->m_Plugins.ReadImage( parent );
-    if( name == "" )
-      return;
-    TImage* image = this->m_Plugins.GetData< TImage >( name );
-    this->m_UI->MPR->AddData( image, name, parent );
-    this->m_UI->MPR->ShowData( name );
-  }
-  catch( std::exception& err )
-  {
-    QMessageBox::critical(
-      this,
-      QMessageBox::tr( "Error reading image." ),
-      QMessageBox::tr( err.what( ) )
-      );
-
-  } // yrt
-}
-
-// -------------------------------------------------------------------------
-void ImageMPR::
-_aOpenPolyData( )
-{
-}
-
-// -------------------------------------------------------------------------
-void ImageMPR::
-_aSaveImage( )
-{
-  this->m_Plugins.WriteDataObject( this->m_UI->MPR->GetSelectedData( ) );
-}
-
-// -------------------------------------------------------------------------
-void ImageMPR::
-_aSavePolyData( )
-{
-}
-
-// -------------------------------------------------------------------------
-void ImageMPR::
-_aUndo( )
-{
-}
-
-// -------------------------------------------------------------------------
-void ImageMPR::
-_aRedo( )
-{
-}
-
-// -------------------------------------------------------------------------
-void ImageMPR::
-_aLoadPlugins( )
-{
-  this->m_Plugins.DialogLoadPlugins( );
-  this->_AssociatePluginsToMenu( );
-}
-
-// -------------------------------------------------------------------------
-void ImageMPR::
-_aShowPlugins( )
-{
-}
-
-// -------------------------------------------------------------------------
-void ImageMPR::
-_execPlugin( )
-{
-  // Get filter's name
-  QAction* action = dynamic_cast< QAction* >( this->sender( ) );
-  if( action == NULL )
-    return;
-  std::string filter_name = action->text( ).toStdString( );
-
-  // Activate filter
-  if( !( this->m_Plugins.ActivateFilter( filter_name ) ) )
-    return;
-
-  // Get IO names
-  TPlugins::TStringContainer inputs;
-  this->m_Plugins.GetActiveFilterInputsNames( inputs );
-
-  // Configure inputs
-  if( inputs.size( ) > 1 )
-  {
-    // TODO
-  }
-  else if( inputs.size( ) == 1 )
-  {
-    this->m_ActiveFilterMainInput = this->m_UI->MPR->GetSelectedData( );
-    this->m_Plugins.ConnectInputInActiveFilter(
-      this->m_ActiveFilterMainInput, *( inputs.begin( ) )
-      );
-
-  } // fi
-
-  // Configure paramereters
-  auto dlg_res = this->m_Plugins.ConfigureActiveFilter( );
-  if( !dlg_res )
-  {
-    // Just deactivate filter, since it was canceled
-    this->m_Plugins.DeactivateFilter( );
-    return;
-  }
-  else
-  {
-    // Execute automatic filter and associate outputs
-    this->UpdateActualFilter( );
-    this->m_Plugins.DeactivateFilter( );
-
-  } // fi
-}
-
-// eof - $RCSfile$
diff --git a/appli/ImageMPR/ImageMPR.h b/appli/ImageMPR/ImageMPR.h
deleted file mode 100644 (file)
index 5d2ac72..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-#ifndef __IMAGEMPR__H__
-#define __IMAGEMPR__H__
-
-#include <map>
-#include <vector>
-
-// Qt stuff
-#include <QApplication>
-#include <QMainWindow>
-
-// vtk stuff
-#include <vtkSmartPointer.h>
-#include <cpExtensions/Visualization/MPRObjects.h>
-
-// Plugins interface
-#include <cpPlugins/Interface/BaseApplication.h>
-#include <cpPlugins/Interface/Plugins.h>
-#include <cpPlugins/Interface/Image.h>
-#include <cpPlugins/Interface/Mesh.h>
-
-// -------------------------------------------------------------------------
-namespace Ui
-{
-  class ImageMPR;
-}
-
-/**
- */
-class ImageMPR
-  : public QMainWindow,
-    public cpPlugins::Interface::BaseApplication
-{
-  Q_OBJECT;
-
-public:
-  typedef ImageMPR    Self;
-  typedef QMainWindow Superclass;
-
-  typedef cpExtensions::Visualization::MPRObjects TMPRObjects;
-  typedef cpPlugins::Interface::Plugins           TPlugins;
-  typedef cpPlugins::Interface::DataObject        TDataObject;
-  typedef cpPlugins::Interface::Image             TImage;
-  typedef cpPlugins::Interface::Mesh              TMesh;
-
-public:
-  explicit ImageMPR( QWidget* parent = 0 );
-  virtual ~ImageMPR( );
-
-  virtual void UpdateActualFilter( );
-
-protected:
-  void _AssociatePluginsToMenu( );
-
-private slots:
-  void _aOpenImage( );
-  void _aOpenDICOMSeries( );
-  void _aOpenSegmentation( );
-  void _aOpenPolyData( );
-  void _aSaveImage( );
-  void _aSavePolyData( );
-  void _aUndo( );
-  void _aRedo( );
-  void _aLoadPlugins( );
-  void _aShowPlugins( );
-
-  void _execPlugin( );
-
-private:
-  Ui::ImageMPR* m_UI;
-  TPlugins      m_Plugins;
-  std::string   m_ActiveFilterMainInput;
-
-  /* TODO
-     vtkSmartPointer< vtkOrientationMarkerWidget > m_3DOrientationWidget;
-  */
-};
-
-#endif // __IMAGEMPR__H__
-
-// eof - $RCSfile$
diff --git a/appli/ImageMPR/ImageMPR.ui b/appli/ImageMPR/ImageMPR.ui
deleted file mode 100644 (file)
index 8a6c81c..0000000
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>ImageMPR</class>
- <widget class="QMainWindow" name="ImageMPR">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>1024</width>
-    <height>768</height>
-   </rect>
-  </property>
-  <property name="minimumSize">
-   <size>
-    <width>1024</width>
-    <height>768</height>
-   </size>
-  </property>
-  <property name="windowTitle">
-   <string>ImageMPR (v0.1)</string>
-  </property>
-  <widget class="QWidget" name="CentralWidget">
-   <layout class="QGridLayout" name="gridLayout">
-    <item row="0" column="0">
-     <widget class="cpPlugins::Interface::BaseMPRWidget" name="MPR" native="true">
-      <property name="minimumSize">
-       <size>
-        <width>562</width>
-        <height>406</height>
-       </size>
-      </property>
-     </widget>
-    </item>
-   </layout>
-  </widget>
-  <widget class="QMenuBar" name="MenuBar">
-   <property name="geometry">
-    <rect>
-     <x>0</x>
-     <y>0</y>
-     <width>1024</width>
-     <height>25</height>
-    </rect>
-   </property>
-   <widget class="QMenu" name="MenuOptionFile">
-    <property name="title">
-     <string>&amp;File</string>
-    </property>
-    <addaction name="aOpenImage"/>
-    <addaction name="aOpenDICOMSeries"/>
-    <addaction name="aOpenSegmentation"/>
-    <addaction name="aOpenPolyData"/>
-    <addaction name="separator"/>
-    <addaction name="aSaveImage"/>
-    <addaction name="aSavePolyData"/>
-    <addaction name="separator"/>
-    <addaction name="aExit"/>
-   </widget>
-   <widget class="QMenu" name="MenuOptionEdit">
-    <property name="title">
-     <string>&amp;Edit</string>
-    </property>
-    <widget class="QMenu" name="MenuOptionPlugins">
-     <property name="title">
-      <string>&amp;Plugins</string>
-     </property>
-     <addaction name="aLoadPlugins"/>
-     <addaction name="aShowPlugins"/>
-    </widget>
-    <addaction name="aUndo"/>
-    <addaction name="aRedo"/>
-    <addaction name="separator"/>
-    <addaction name="MenuOptionPlugins"/>
-   </widget>
-   <widget class="QMenu" name="MenuOptionHelp">
-    <property name="title">
-     <string>&amp;Help</string>
-    </property>
-   </widget>
-   <widget class="QMenu" name="MenuFilters">
-    <property name="title">
-     <string>&amp;Filters</string>
-    </property>
-   </widget>
-   <addaction name="MenuOptionFile"/>
-   <addaction name="MenuOptionEdit"/>
-   <addaction name="MenuFilters"/>
-   <addaction name="MenuOptionHelp"/>
-  </widget>
-  <widget class="QStatusBar" name="StatusBar"/>
-  <action name="aOpenImage">
-   <property name="enabled">
-    <bool>true</bool>
-   </property>
-   <property name="text">
-    <string>Open image</string>
-   </property>
-   <property name="shortcut">
-    <string>Ctrl+O</string>
-   </property>
-  </action>
-  <action name="aExit">
-   <property name="text">
-    <string>Exit</string>
-   </property>
-  </action>
-  <action name="aOpenPolyData">
-   <property name="text">
-    <string>Open polydata</string>
-   </property>
-   <property name="shortcut">
-    <string>Ctrl+M</string>
-   </property>
-  </action>
-  <action name="aOpenSegmentation">
-   <property name="text">
-    <string>Open segmentation</string>
-   </property>
-   <property name="shortcut">
-    <string>Ctrl+S</string>
-   </property>
-  </action>
-  <action name="aUndo">
-   <property name="text">
-    <string>&amp;Undo</string>
-   </property>
-   <property name="shortcut">
-    <string>Ctrl+Z</string>
-   </property>
-  </action>
-  <action name="aRedo">
-   <property name="text">
-    <string>&amp;Redo</string>
-   </property>
-   <property name="shortcut">
-    <string>Ctrl+Y</string>
-   </property>
-  </action>
-  <action name="aLoadPlugins">
-   <property name="text">
-    <string>Load plugins</string>
-   </property>
-   <property name="shortcut">
-    <string>Ctrl+P</string>
-   </property>
-  </action>
-  <action name="aShowPlugins">
-   <property name="text">
-    <string>Show plugins</string>
-   </property>
-   <property name="shortcut">
-    <string>Ctrl+H</string>
-   </property>
-  </action>
-  <action name="aSaveImage">
-   <property name="text">
-    <string>Save image</string>
-   </property>
-   <property name="shortcut">
-    <string>Ctrl+Shift+I</string>
-   </property>
-  </action>
-  <action name="aSavePolyData">
-   <property name="text">
-    <string>Save polydata</string>
-   </property>
-   <property name="shortcut">
-    <string>Ctrl+Shift+M</string>
-   </property>
-  </action>
-  <action name="aOpenDICOMSeries">
-   <property name="text">
-    <string>Open DICOM series</string>
-   </property>
-   <property name="shortcut">
-    <string>Ctrl+D</string>
-   </property>
-  </action>
- </widget>
- <layoutdefault spacing="6" margin="11"/>
- <customwidgets>
-  <customwidget>
-   <class>cpPlugins::Interface::BaseMPRWidget</class>
-   <extends>QWidget</extends>
-   <header location="global">cpPlugins/Interface/BaseMPRWidget.h</header>
-   <container>1</container>
-  </customwidget>
- </customwidgets>
- <resources/>
- <connections>
-  <connection>
-   <sender>aExit</sender>
-   <signal>triggered()</signal>
-   <receiver>ImageMPR</receiver>
-   <slot>close()</slot>
-   <hints>
-    <hint type="sourcelabel">
-     <x>-1</x>
-     <y>-1</y>
-    </hint>
-    <hint type="destinationlabel">
-     <x>378</x>
-     <y>235</y>
-    </hint>
-   </hints>
-  </connection>
- </connections>
-</ui>
diff --git a/appli/ImageMPR/Plugins.cfg.in b/appli/ImageMPR/Plugins.cfg.in
deleted file mode 100644 (file)
index 09b8bed..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-@CMAKE_SHARED_LIBRARY_PREFIX@cpPluginsIO@CMAKE_SHARED_LIBRARY_SUFFIX@
-@CMAKE_SHARED_LIBRARY_PREFIX@cpPluginsBasicFilters@CMAKE_SHARED_LIBRARY_SUFFIX@
diff --git a/appli/ImageMPR/main.cxx b/appli/ImageMPR/main.cxx
deleted file mode 100644 (file)
index 5ec79cf..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-#include "ImageMPR.h"
-#include <cstdlib>
-#include <QApplication>
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-// TODO  ::setenv( "LC_NUMERIC", "POSIX", 1 );
-  QApplication a( argc, argv );
-  ImageMPR w;
-  w.show( );
-
-  return( a.exec( ) );
-}
-
-// -------------------------------------------------------------------------
-#ifdef _WIN32
-
-#include <memory>
-#include <vector>
-#include <windows.h>
-#include <shellapi.h>
-
-/**
- */
-class Win32CommandLineConverter
-{
-private:
-  std::unique_ptr< char*[ ] > argv_;
-  std::vector< std::unique_ptr< char[ ] > > storage_;
-
-public:
-  Win32CommandLineConverter( )
-    {
-      LPWSTR cmd_line = GetCommandLineW( );
-      int argc;
-      LPWSTR* w_argv = CommandLineToArgvW( cmd_line, &argc );
-      argv_ = std::unique_ptr< char*[ ] >( new char*[ argc ] );
-      storage_.reserve( argc );
-      for( int i = 0; i < argc; ++i )
-      {
-        storage_.push_back( ConvertWArg( w_argv[ i ] ) );
-        argv_[ i ] = storage_.back( ).get( );
-
-      } // rof
-      LocalFree( w_argv );
-    }
-  int argc( ) const
-    {
-      return( static_cast< int >(storage_.size( ) ) );
-    }
-  char** argv( ) const
-    {
-      return( argv_.get( ) );
-    }
-  static std::unique_ptr< char[ ] > ConvertWArg( LPWSTR w_arg )
-    {
-      int size = WideCharToMultiByte(
-        CP_UTF8, 0, w_arg, -1, nullptr, 0, nullptr, nullptr
-        );
-      std::unique_ptr< char[ ] > ret( new char[ size ] );
-      WideCharToMultiByte(
-        CP_UTF8, 0, w_arg, -1, ret.get( ), size, nullptr, nullptr
-        );
-      return( ret );
-    }
-};
-
-int CALLBACK WinMain(
-  HINSTANCE hInstance,
-  HINSTANCE hPrevInstance,
-  LPSTR lpCmdLine,
-  int nCmdShow
-  )
-{
-  Win32CommandLineConverter cmd_line;
-  return( main( cmd_line.argc( ), cmd_line.argv( ) ) );
-}
-
-#endif
-
-// eof - $RCSfile$
diff --git a/appli/bash/CMakeLists.txt b/appli/bash/CMakeLists.txt
deleted file mode 100644 (file)
index 116999c..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-## =========================
-## = Command line programs =
-## =========================
-
-SET(
-  BASH_PROGRAMS
-  cpPlugins_createHost
-  )
-
-FOREACH(prog ${BASH_PROGRAMS}) 
-  ADD_EXECUTABLE(${prog} ${prog}.cxx)
-  INSTALL(
-    TARGETS ${prog}
-    RUNTIME DESTINATION bin
-    LIBRARY DESTINATION lib
-    ARCHIVE DESTINATION lib/static
-    )
-ENDFOREACH(prog)
-
-## eof - $RCSfile$
diff --git a/appli/bash/cpPlugins_createHost.cxx b/appli/bash/cpPlugins_createHost.cxx
deleted file mode 100644 (file)
index d752927..0000000
+++ /dev/null
@@ -1,112 +0,0 @@
-#include <cstring>
-#include <fstream>
-#include <iostream>
-#include <sstream>
-#include <string>
-
-// -------------------------------------------------------------------------
-std::string GetFileName( const std::string& path )
-{
-  // Extract filename
-  char* buffer = new char[ path.size( ) + 1 ];
-  std::memcpy( buffer, path.c_str( ), path.size( ) );
-  buffer[ path.size( ) ] = '\0';
-  char* tok = std::strtok( buffer, "/\\" );
-  char* ptr_fname = tok;
-  while( tok != NULL )
-  {
-    ptr_fname = tok;
-    tok = std::strtok( NULL, "/\\" );
-
-  } // elihw
-  std::string fname( ptr_fname );
-  delete [] buffer;
-
-  // Delete extension
-  std::size_t pos = fname.find_last_of( "." );
-  if( pos != std::string::npos )
-    fname = fname.substr( 0, pos );
-
-  return( fname );
-}
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  // Open file
-  if( argc < 4 )
-  {
-    std::cerr
-      << "Usage: " << argv[ 0 ]
-      << " output_code namespace filter1 filter2 ..."
-      << std::endl;
-    return( 1 );
-
-  } // fi
-  std::ofstream output_code( argv[ 1 ] );
-  if( !output_code )
-  {
-    std::cerr
-      << "Could not open file \"" << argv[ 1 ] << "\" for writing"
-      << std::endl;
-    return( 1 );
-
-  } // fi
-
-  output_code << "#include <Pluma/Connector.hpp>" << std::endl;
-  output_code
-    << "#include <cpPlugins/Interface/ProcessObjectProvider.h>"
-    << std::endl;
-  for( int i = 3; i < argc; ++i )
-    output_code << "#include \"" << argv[ i ] << "\"" << std::endl;
-  output_code << std::endl;
-
-  std::istringstream nspaces( argv[ 2 ] );
-  std::string nspace;
-  unsigned int number_of_nspaces = 0;
-  while( std::getline( nspaces, nspace, ':' ) )
-  {
-    if( nspace != "" )
-    {
-      output_code << "namespace " << nspace << std::endl << "{" << std::endl;
-      number_of_nspaces++;
-
-    } // fi
-
-  } // elihw
-
-  for( int i = 3; i < argc; ++i )
-    output_code
-      << "CPPLUGINS_INHERIT_PROVIDER( "
-      << GetFileName( argv[ i ] ) << " );" << std::endl;
-
-  for( unsigned int i = 0; i < number_of_nspaces; ++i )
-    output_code << "}" << std::endl;
-  output_code << std::endl;
-
-
-  output_code
-    << "PLUMA_CONNECTOR" << std::endl
-    << "bool connect( pluma::Host& host )" << std::endl
-    << "{" << std::endl;
-
-  for( int i = 3; i < argc; ++i )
-    output_code
-      << "  host.add( new "
-      << argv[ 2 ] << "::"
-      << GetFileName( argv[ i ] )
-      << "Provider( ) );"
-      << std::endl;
-
-  output_code
-    << "  return( true );" << std::endl
-    << "}" << std::endl;
-
-  output_code << std::endl << "// eof - $RCSfile$" << std::endl << std::endl;
-
-  // Finish
-  output_code.close( );
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/cpPipelineEditor/App_cpPipelineEditor.cxx b/appli/cpPipelineEditor/App_cpPipelineEditor.cxx
deleted file mode 100644 (file)
index af73df5..0000000
+++ /dev/null
@@ -1,336 +0,0 @@
-#include "App_cpPipelineEditor.h"
-#include "ui_App_cpPipelineEditor.h"
-
-#include <cpPipelineEditor/Editor.h>
-
-#include <QFileDialog>
-#include <QMessageBox>
-
-#include <vtkImageData.h>
-#include <vtkPolyData.h>
-
-#include <cpPlugins/Interface/Workspace.h>
-#include <cpPlugins/Interface/DataObject.h>
-
-// -------------------------------------------------------------------------
-#define App_cpPipelineEditor_ConnectAction( ACTION )    \
-  this->connect(                                        \
-    this->m_UI->Action##ACTION, SIGNAL( triggered( ) ), \
-    this, SLOT( _Action##ACTION( ) )                    \
-    )
-
-// -------------------------------------------------------------------------
-#define App_cpPipelineEditor_ConnectButton( BUTTON )    \
-  this->connect(                                        \
-    this->m_UI->Button##BUTTON, SIGNAL( clicked( ) ),   \
-    this, SLOT( _Button##BUTTON( ) )                    \
-    )
-
-// -------------------------------------------------------------------------
-App_cpPipelineEditor::
-App_cpPipelineEditor( int argc, char* argv[], QWidget* parent )
-  : QMainWindow( parent ),
-    m_UI( new Ui::App_cpPipelineEditor ),
-    m_Workspace( NULL ),
-    m_PluginsPath( "." )
-{
-  this->m_UI->setupUi( this );
-
-  // Prepare plugins interface
-  this->m_Plugins = new cpPlugins::Interface::Interface( );
-  QFileInfo info( argv[ 0 ] );
-  if( info.exists( ) )
-  {
-    this->m_PluginsPath = info.canonicalPath( ).toStdString( );
-    if( !( this->m_Plugins->LoadDefaultConfiguration( this->m_PluginsPath ) ) )
-      if( this->m_Plugins->LoadFromFolder( this->m_PluginsPath, false ) )
-        if( !( this->m_Plugins->SaveDefaultConfiguration( this->m_PluginsPath ) ) )
-          QMessageBox::critical(
-            this,
-            "Error creating default plugins configuration",
-            "Could not save default plugins configuration"
-            );
-    this->_UpdateLoadedPlugins( );
-
-  } // fi
-
-  // Create an empty workspace
-  this->m_Workspace = new cpPlugins::Interface::Workspace( );
-  this->m_Workspace->SetPlugins( this->m_Plugins );
-  this->m_UI->Canvas->editor( )->setWorkspace( this->m_Workspace );
-  this->m_Workspace->SetMPRViewer( this->m_UI->Viewer );
-
-  // Connect actions to slots
-  App_cpPipelineEditor_ConnectButton( LoadPluginsFile );
-  App_cpPipelineEditor_ConnectButton( LoadPluginsPath );
-  App_cpPipelineEditor_ConnectAction( OpenWorkspace );
-  App_cpPipelineEditor_ConnectAction( SaveWorkspace );
-  this->connect(
-    this->m_UI->Canvas->editor( ),
-    SIGNAL( execFilter( const std::string& ) ),
-    this,
-    SLOT( _ExecFilter( const std::string& ) )
-    );
-  this->connect(
-    this->m_UI->Canvas->editor( ),
-    SIGNAL( showFilterOutput( const std::string&, const std::string& ) ),
-    this,
-    SLOT( _ShowFilterOutput( const std::string&, const std::string& ) )
-    );
-}
-
-// -------------------------------------------------------------------------
-App_cpPipelineEditor::
-~App_cpPipelineEditor( )
-{
-  delete this->m_UI;
-  if( this->m_Workspace != NULL )
-    delete this->m_Workspace;
-  delete this->m_Plugins;
-}
-
-// -------------------------------------------------------------------------
-void App_cpPipelineEditor::
-_UpdateLoadedPlugins( )
-{
-  auto& classes = this->m_Plugins->GetClasses( );
-
-  if( classes.size( ) == 0 )
-  {
-    QMessageBox::critical(
-      this,
-      "Error loading default plugins",
-      "No plugins loaded: remember to load some!!!"
-      );
-    return;
-
-  } // fi
-
-  auto catIt = classes.begin( );
-  for( ; catIt != classes.end( ); ++catIt )
-  {
-    // Create or get category
-    QList< QTreeWidgetItem* > cat_items =
-      this->m_UI->LoadedPlugins->findItems(
-        catIt->first.c_str( ), Qt::MatchExactly | Qt::MatchRecursive
-        );
-    QTreeWidgetItem* cat = NULL;
-    if( cat_items.size( ) == 0 )
-    {
-      cat = new QTreeWidgetItem(
-        ( QTreeWidgetItem* )( NULL ), QStringList( catIt->first.c_str( ) )
-        );
-      this->m_UI->LoadedPlugins->addTopLevelItem( cat );
-    }
-    else
-      cat = cat_items[ 0 ];
-
-    // Create filters
-    auto fIt = catIt->second.begin( );
-    for( ; fIt != catIt->second.end( ); ++fIt )
-    {
-      QList< QTreeWidgetItem* > filter_items =
-        this->m_UI->LoadedPlugins->findItems(
-          fIt->first.c_str( ), Qt::MatchExactly | Qt::MatchRecursive
-          );
-      auto fiIt = filter_items.begin( );
-      auto found_fiIt = filter_items.end( );
-      for( ; fiIt != filter_items.end( ); ++fiIt )
-        if( ( *fiIt )->parent( ) == cat )
-          found_fiIt = fiIt;
-
-      // Add filter
-      if( found_fiIt == filter_items.end( ) )
-        QTreeWidgetItem* filter = new QTreeWidgetItem(
-          cat, QStringList( fIt->first.c_str( ) )
-          );
-    } // rof
-
-  } // rof
-}
-
-// -------------------------------------------------------------------------
-void App_cpPipelineEditor::
-_ButtonLoadPluginsFile( )
-{
-  QFileDialog dlg( this );
-  dlg.setFileMode( QFileDialog::ExistingFiles );
-  dlg.setDirectory( "." );
-
-  std::stringstream name_filter;
-  std::string suffix = std::string( PLUGIN_EXT ).substr( 1 );
-
-  name_filter << "Plugins file (*" << PLUGIN_EXT << ");;All files (*)";
-  dlg.setNameFilter( name_filter.str( ).c_str( ) );
-  dlg.setDefaultSuffix( suffix.c_str( ) );
-
-  if( !( dlg.exec( ) ) )
-    return;
-
-  // Read
-  QStringList names = dlg.selectedFiles( );
-  std::stringstream err_str;
-  for( auto qIt = names.begin( ); qIt != names.end( ); ++qIt )
-    if( !( this->m_Plugins->Load( qIt->toStdString( ) ) ) )
-      err_str << qIt->toStdString( ) << std::endl;
-
-  // Show an error message
-  std::string err = err_str.str( );
-  if( err.size( ) > 0 )
-    QMessageBox::critical(
-      this,
-      "Error loading plugins",
-      err.c_str( )
-      );
-
-  // Update view
-  this->m_Plugins->SaveDefaultConfiguration( this->m_PluginsPath );
-  this->_UpdateLoadedPlugins( );
-}
-
-// -------------------------------------------------------------------------
-void App_cpPipelineEditor::
-_ButtonLoadPluginsPath( )
-{
-  QFileDialog dlg( this );
-  dlg.setFileMode( QFileDialog::DirectoryOnly );
-  dlg.setDirectory( "." );
-  if( !( dlg.exec( ) ) )
-    return;
-
-  // Read
-  std::string dir = dlg.selectedFiles( ).begin( )->toStdString( );
-  if( !( this->m_Plugins->LoadFromFolder( dir, false ) ) )
-    QMessageBox::critical(
-      this,
-      "Error loading plugins directory",
-      dir.c_str( )
-      );
-
-  // Update view
-  this->m_Plugins->SaveDefaultConfiguration( this->m_PluginsPath );
-  this->_UpdateLoadedPlugins( );
-}
-
-// -------------------------------------------------------------------------
-void App_cpPipelineEditor::
-_ActionOpenWorkspace( )
-{
-  QFileDialog dlg( this );
-  dlg.setFileMode( QFileDialog::ExistingFile );
-  dlg.setDirectory( "." );
-  dlg.setNameFilter(
-    QFileDialog::tr( "Workspace file (*.xml);;All files (*)" )
-    );
-  dlg.setDefaultSuffix( QFileDialog::tr( "xml" ) );
-  if( !( dlg.exec( ) ) )
-    return;
-  std::string fname = dlg.selectedFiles( ).at( 0 ).toStdString( );
-
-  if( this->m_Workspace != NULL )
-    delete this->m_Workspace;
-  this->m_Workspace = new cpPlugins::Interface::Workspace( );
-  this->m_Workspace->SetPlugins( this->m_Plugins );
-  this->m_Workspace->SetMPRViewer( this->m_UI->Viewer );
-  std::string err = this->m_Workspace->LoadWorkspace( fname );
-  if( err != "" )
-  {
-    delete this->m_Workspace;
-    this->m_Workspace = NULL;
-    QMessageBox::critical(
-      this,
-      QMessageBox::tr( "Error loading workspace" ),
-      QMessageBox::tr( err.c_str( ) )
-      );
-  }
-  else
-    this->m_UI->Canvas->editor( )->setWorkspace( this->m_Workspace );
-}
-
-// -------------------------------------------------------------------------
-void App_cpPipelineEditor::
-_ActionSaveWorkspace( )
-{
-  if( this->m_Workspace == NULL )
-    return;
-
-  QFileDialog dlg( this );
-  dlg.setFileMode( QFileDialog::AnyFile );
-  dlg.setDirectory( "." );
-  dlg.setAcceptMode( QFileDialog::AcceptSave );
-  dlg.setNameFilter(
-    QFileDialog::tr( "Workspace file (*.xml);;All files (*)" )
-    );
-  dlg.setDefaultSuffix( QFileDialog::tr( "xml" ) );
-  if( !( dlg.exec( ) ) )
-    return;
-  std::string fname = dlg.selectedFiles( ).at( 0 ).toStdString( );
-
-  std::string err = this->m_Workspace->SaveWorkspace( fname );
-  if( err != "" )
-    QMessageBox::critical(
-      this,
-      QMessageBox::tr( "Error saving workspace" ),
-      QMessageBox::tr( err.c_str( ) )
-      );
-}
-
-
-// -------------------------------------------------------------------------
-void App_cpPipelineEditor::
-_ExecFilter( const std::string& filter_name )
-{
-  if( this->m_Workspace != NULL )
-  {
-    // Update filter, if needed
-    std::string err = this->m_Workspace->Execute( filter_name );
-    if( err != "" )
-      QMessageBox::critical(
-        this,
-        QMessageBox::tr( "Error executing filter" ),
-        QMessageBox::tr( err.c_str( ) )
-        );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void App_cpPipelineEditor::
-_ShowFilterOutput(
-  const std::string& filter_name, const std::string& output_name
-  )
-{
-  typedef cpPlugins::Interface::DataObject _TDataObject;
-
-  // Update filter, if needed
-  this->_ExecFilter( filter_name );
-
-  // Get output
-  auto filter = this->m_Workspace->GetFilter( filter_name );
-  if( filter != NULL )
-  {
-    auto output = filter->GetOutputData( output_name );
-    if( output != NULL )
-    {
-      std::string data_name = output_name + "@" + filter_name;
-      if( this->m_UI->Viewer->AddData( output, data_name, "" ) )
-      {
-        if( this->m_UI->Viewer->GetNumberOfData( ) > 1 )
-          this->m_UI->Viewer->SetDataColor( data_name, 1, 0, 0 );
-        else
-          this->m_UI->Viewer->SetMainImage( data_name );
-        this->m_UI->Viewer->ShowData( data_name );
-      }
-      else
-        QMessageBox::critical(
-          this,
-          QMessageBox::tr( "Error showing data" ),
-          QMessageBox::tr( "No known VTK conversion!" )
-          );
-
-    } // fi
-
-  } // fi
-}
-
-// eof - $RCSfile$
diff --git a/appli/cpPipelineEditor/App_cpPipelineEditor.h b/appli/cpPipelineEditor/App_cpPipelineEditor.h
deleted file mode 100644 (file)
index 41b31b0..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-#ifndef __APP_CPPIPELINEEDITOR__H__
-#define __APP_CPPIPELINEEDITOR__H__
-
-// Qt stuff
-#include <QMainWindow>
-
-// -------------------------------------------------------------------------
-namespace Ui
-{
-  class App_cpPipelineEditor;
-}
-
-namespace cpPlugins
-{
-  namespace Interface
-  {
-    class Workspace;
-    class Interface;
-  }
-}
-
-/**
- */
-class App_cpPipelineEditor
-  : public QMainWindow
-{
-  Q_OBJECT;
-
-public:
-  typedef App_cpPipelineEditor Self;
-  typedef QMainWindow      Superclass;
-
-public:
-  explicit App_cpPipelineEditor(
-    int argc, char* argv[],
-    QWidget* parent = 0
-    );
-  virtual ~App_cpPipelineEditor( );
-
-protected:
-  void _UpdateLoadedPlugins( );
-
-protected slots:
-  void _ButtonLoadPluginsFile( );
-  void _ButtonLoadPluginsPath( );
-  void _ActionOpenWorkspace( );
-  void _ActionSaveWorkspace( );
-  void _ExecFilter( const std::string& filter_name );
-  void _ShowFilterOutput(
-    const std::string& filter_name, const std::string& output_name
-    );
-
-private:
-  Ui::App_cpPipelineEditor* m_UI;
-  cpPlugins::Interface::Workspace* m_Workspace;
-  cpPlugins::Interface::Interface* m_Plugins;
-  std::string m_PluginsPath;
-};
-
-#endif // __CPPIPELINEEDITOR__H__
-
-// eof - $RCSfile$
diff --git a/appli/cpPipelineEditor/App_cpPipelineEditor.ui b/appli/cpPipelineEditor/App_cpPipelineEditor.ui
deleted file mode 100644 (file)
index f54b6fd..0000000
+++ /dev/null
@@ -1,229 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>App_cpPipelineEditor</class>
- <widget class="QMainWindow" name="App_cpPipelineEditor">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>800</width>
-    <height>600</height>
-   </rect>
-  </property>
-  <property name="minimumSize">
-   <size>
-    <width>800</width>
-    <height>600</height>
-   </size>
-  </property>
-  <property name="windowTitle">
-   <string>MainWindow</string>
-  </property>
-  <widget class="QWidget" name="MainWidget">
-   <layout class="QGridLayout" name="gridLayout">
-    <item row="0" column="0">
-     <widget class="QSplitter" name="splitter_2">
-      <property name="orientation">
-       <enum>Qt::Vertical</enum>
-      </property>
-      <widget class="cpPlugins::Interface::SimpleMPRWidget" name="Viewer" native="true">
-       <property name="minimumSize">
-        <size>
-         <width>0</width>
-         <height>200</height>
-        </size>
-       </property>
-      </widget>
-      <widget class="QSplitter" name="splitter">
-       <property name="orientation">
-        <enum>Qt::Horizontal</enum>
-       </property>
-       <widget class="QFrame" name="frame">
-        <property name="minimumSize">
-         <size>
-          <width>251</width>
-          <height>331</height>
-         </size>
-        </property>
-        <property name="frameShape">
-         <enum>QFrame::StyledPanel</enum>
-        </property>
-        <property name="frameShadow">
-         <enum>QFrame::Raised</enum>
-        </property>
-        <layout class="QVBoxLayout" name="verticalLayout">
-         <item>
-          <widget class="QGroupBox" name="groupBox">
-           <property name="minimumSize">
-            <size>
-             <width>202</width>
-             <height>67</height>
-            </size>
-           </property>
-           <property name="maximumSize">
-            <size>
-             <width>202</width>
-             <height>67</height>
-            </size>
-           </property>
-           <property name="title">
-            <string>Plugins</string>
-           </property>
-           <layout class="QHBoxLayout" name="horizontalLayout">
-            <item>
-             <widget class="QPushButton" name="ButtonLoadPluginsFile">
-              <property name="minimumSize">
-               <size>
-                <width>85</width>
-                <height>31</height>
-               </size>
-              </property>
-              <property name="maximumSize">
-               <size>
-                <width>85</width>
-                <height>31</height>
-               </size>
-              </property>
-              <property name="text">
-               <string>File</string>
-              </property>
-             </widget>
-            </item>
-            <item>
-             <widget class="QPushButton" name="ButtonLoadPluginsPath">
-              <property name="minimumSize">
-               <size>
-                <width>85</width>
-                <height>31</height>
-               </size>
-              </property>
-              <property name="maximumSize">
-               <size>
-                <width>85</width>
-                <height>31</height>
-               </size>
-              </property>
-              <property name="text">
-               <string>Path</string>
-              </property>
-             </widget>
-            </item>
-           </layout>
-          </widget>
-         </item>
-         <item>
-          <widget class="QTreeWidget" name="LoadedPlugins">
-           <property name="minimumSize">
-            <size>
-             <width>229</width>
-             <height>0</height>
-            </size>
-           </property>
-           <property name="dragEnabled">
-            <bool>true</bool>
-           </property>
-           <property name="dragDropMode">
-            <enum>QAbstractItemView::DragOnly</enum>
-           </property>
-           <column>
-            <property name="text">
-             <string>Loaded plugins</string>
-            </property>
-           </column>
-          </widget>
-         </item>
-        </layout>
-       </widget>
-       <widget class="cpPipelineEditor::Canvas" name="Canvas" native="true">
-        <property name="minimumSize">
-         <size>
-          <width>500</width>
-          <height>0</height>
-         </size>
-        </property>
-        <property name="acceptDrops">
-         <bool>true</bool>
-        </property>
-       </widget>
-      </widget>
-     </widget>
-    </item>
-   </layout>
-  </widget>
-  <widget class="QMenuBar" name="Menubar">
-   <property name="geometry">
-    <rect>
-     <x>0</x>
-     <y>0</y>
-     <width>800</width>
-     <height>27</height>
-    </rect>
-   </property>
-   <widget class="QMenu" name="MenuFile">
-    <property name="title">
-     <string>&amp;File</string>
-    </property>
-    <widget class="QMenu" name="MenuWorkspace">
-     <property name="title">
-      <string>Workspace</string>
-     </property>
-     <addaction name="ActionOpenWorkspace"/>
-     <addaction name="ActionSaveWorkspace"/>
-    </widget>
-    <addaction name="MenuWorkspace"/>
-    <addaction name="separator"/>
-    <addaction name="ActionExit"/>
-   </widget>
-   <addaction name="MenuFile"/>
-  </widget>
-  <widget class="QStatusBar" name="statusbar"/>
-  <action name="ActionOpenWorkspace">
-   <property name="text">
-    <string>Open</string>
-   </property>
-  </action>
-  <action name="ActionSaveWorkspace">
-   <property name="text">
-    <string>Save</string>
-   </property>
-  </action>
-  <action name="ActionExit">
-   <property name="text">
-    <string>E&amp;xit</string>
-   </property>
-  </action>
- </widget>
- <customwidgets>
-  <customwidget>
-   <class>cpPipelineEditor::Canvas</class>
-   <extends>QWidget</extends>
-   <header>cpPipelineEditor/Canvas.h</header>
-   <container>1</container>
-  </customwidget>
-  <customwidget>
-   <class>cpPlugins::Interface::SimpleMPRWidget</class>
-   <extends>QWidget</extends>
-   <header location="global">cpPlugins/Interface/SimpleMPRWidget.h</header>
-   <container>1</container>
-  </customwidget>
- </customwidgets>
- <resources/>
- <connections>
-  <connection>
-   <sender>ActionExit</sender>
-   <signal>triggered()</signal>
-   <receiver>App_cpPipelineEditor</receiver>
-   <slot>close()</slot>
-   <hints>
-    <hint type="sourcelabel">
-     <x>-1</x>
-     <y>-1</y>
-    </hint>
-    <hint type="destinationlabel">
-     <x>399</x>
-     <y>299</y>
-    </hint>
-   </hints>
-  </connection>
- </connections>
-</ui>
diff --git a/appli/cpPipelineEditor/CMakeLists.txt b/appli/cpPipelineEditor/CMakeLists.txt
deleted file mode 100644 (file)
index 8201381..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-SET(App_NAME "App_cpPipelineEditor")
-SET(Dir_NAME "cpPipelineEditor")
-
-## ====================================================
-## = Source code, user interafaces and resources here =
-## ====================================================
-
-SET(App_SOURCE_DIR "${PROJECT_SOURCE_DIR}/appli/${Dir_NAME}")
-SET(App_BINARY_DIR "${PROJECT_BINARY_DIR}/appli/${Dir_NAME}")
-SET(App_QT_SOURCES App_cpPipelineEditor.cxx)
-SET(App_SOURCES    main.cxx)
-SET(App_QT_HEADERS App_cpPipelineEditor.h)
-FILE(GLOB App_QT_UI  "${App_SOURCE_DIR}/*.ui")
-FILE(GLOB App_QT_RES "${App_SOURCE_DIR}/*.qrc")
-
-## =====================
-## = Compilation rules =
-## =====================
-INCLUDE_DIRECTORIES(
-  ${App_SOURCE_DIR}
-  ${App_BINARY_DIR}
-  )
-
-QT4_WRAP_UI(App_QT_UI_Headers ${App_QT_UI})
-QT4_WRAP_CPP(App_QT_HEADERS_MOC_SOURCES ${App_QT_HEADERS})
-QT4_ADD_RESOURCES(App_QT_RES_SOURCES ${App_QT_RES})
-
-SET(GUI_TYPE "")
-IF(WIN32)
-  SET(GUI_TYPE WIN32)
-ENDIF(WIN32)
-IF(APPLE)
-  SET(GUI_TYPE MACOSX_BUNDLE)
-ENDIF(APPLE)
-
-ADD_EXECUTABLE(
-  ${App_NAME}
-  ${GUI_TYPE}
-  ${App_QT_UI_Headers}
-  ${App_SOURCES}
-  ${App_QT_SOURCES}
-  ${App_QT_HEADERS_MOC_SOURCES}
-  ${App_QT_RES_SOURCES}
-  )
-TARGET_LINK_LIBRARIES(
-  ${App_NAME}
-  cpPipelineEditor
-  )
-
-# ## eof - $RCSfile$
diff --git a/appli/cpPipelineEditor/main.cxx b/appli/cpPipelineEditor/main.cxx
deleted file mode 100644 (file)
index 52d821e..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-#include "App_cpPipelineEditor.h"
-#include <cstdlib>
-#include <QApplication>
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  QApplication a( argc, argv );
-  App_cpPipelineEditor w( argc, argv, NULL );
-  w.show( );
-
-  return( a.exec( ) );
-}
-
-// -------------------------------------------------------------------------
-#ifdef _WIN32
-
-#include <memory>
-#include <vector>
-#include <windows.h>
-#include <shellapi.h>
-
-/**
- */
-class Win32CommandLineConverter
-{
-private:
-  std::unique_ptr< char*[ ] > argv_;
-  std::vector< std::unique_ptr< char[ ] > > storage_;
-
-public:
-  Win32CommandLineConverter( )
-    {
-      LPWSTR cmd_line = GetCommandLineW( );
-      int argc;
-      LPWSTR* w_argv = CommandLineToArgvW( cmd_line, &argc );
-      argv_ = std::unique_ptr< char*[ ] >( new char*[ argc ] );
-      storage_.reserve( argc );
-      for( int i = 0; i < argc; ++i )
-      {
-        storage_.push_back( ConvertWArg( w_argv[ i ] ) );
-        argv_[ i ] = storage_.back( ).get( );
-
-      } // rof
-      LocalFree( w_argv );
-    }
-  int argc( ) const
-    {
-      return( static_cast< int >(storage_.size( ) ) );
-    }
-  char** argv( ) const
-    {
-      return( argv_.get( ) );
-    }
-  static std::unique_ptr< char[ ] > ConvertWArg( LPWSTR w_arg )
-    {
-      int size = WideCharToMultiByte(
-        CP_UTF8, 0, w_arg, -1, nullptr, 0, nullptr, nullptr
-        );
-      std::unique_ptr< char[ ] > ret( new char[ size ] );
-      WideCharToMultiByte(
-        CP_UTF8, 0, w_arg, -1, ret.get( ), size, nullptr, nullptr
-        );
-      return( ret );
-    }
-};
-
-int CALLBACK WinMain(
-  HINSTANCE hInstance,
-  HINSTANCE hPrevInstance,
-  LPSTR lpCmdLine,
-  int nCmdShow
-  )
-{
-  Win32CommandLineConverter cmd_line;
-  return( main( cmd_line.argc( ), cmd_line.argv( ) ) );
-}
-
-#endif
-
-// eof - $RCSfile$
diff --git a/appli/examples/CMakeLists.txt b/appli/examples/CMakeLists.txt
deleted file mode 100644 (file)
index ad1e23c..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-
-## =========================
-## = Command line programs =
-## =========================
-
-SET(
-  EXAMPLES_PROGRAMS_ONLY_EXTENSIONS
-  )
-
-FOREACH(prog ${EXAMPLES_PROGRAMS_ONLY_EXTENSIONS})
-  ADD_EXECUTABLE(${prog} ${prog}.cxx)
-  TARGET_LINK_LIBRARIES(${prog} cpExtensions)
-ENDFOREACH(prog)
-
-SET(
-  EXAMPLES_PROGRAMS_ONLY_INTERFACE
-  example_TestParameters
-  example_LoadPlugins
-  example_LoadPluginsFromPath
-  #example_WorkspaceSandBox
-  )
-
-FOREACH(prog ${EXAMPLES_PROGRAMS_ONLY_INTERFACE}) 
-  ADD_EXECUTABLE(${prog} ${prog}.cxx)
-  TARGET_LINK_LIBRARIES(${prog} cpPlugins_Interface)
-ENDFOREACH(prog)
-
-SET(
-  EXAMPLES_PROGRAMS_WITH_PLUGINS
-  example_SphereSource
-  #example_ReadWriteImage
-  #example_MarchingCubes
-  #example_MPR
-  #example_View2DImage
-  #example_ViewImageThreshold
-  #example_HandleWidget
-  #example_SeedWidget
-  #example_SphereWidget
-  #example_Test_Memento
-  ##example_OtsuFilter
-  ##example_RGBImageToHSVChannels
-  ##example_RGBImageToYPbPrChannels
-  ## example_ReadImageSeriesWriteImage
-  ## example_ReadQuadEdgeMesh
-  ## example_RenderQuadEdgeMesh
-  ##example_MPR
-  )
-
-FOREACH(prog ${EXAMPLES_PROGRAMS_WITH_PLUGINS}) 
-  ADD_EXECUTABLE(
-    ${prog}
-    ${prog}.cxx
-    )
-  TARGET_LINK_LIBRARIES(
-    ${prog}
-    cpExtensions
-    cpPlugins_Interface
-    )
-ENDFOREACH(prog)
-
-SET(
-  NOPLUGINS_EXAMPLES_PROGRAMS
-  #example_BaseInteractorStyle
-  
-  #example_ContourWidget
-  ##example_Test_async
-  ## example_MacheteFilter
-  ## example_Test_DoubleClick
-  ## example_ExtractDICOMSeries
-  ## example_ImageGaussianModelEstimator
-  ## example_ReadQuadEdgeMeshWithoutPlugins
-  ## example_RenderQuadEdgeMeshWithoutPlugins
-  ## example_ParallelImageMean
-  ## example_LightCompensation
-  ## example_1DImageGradient
-  ## example_2DImageGradient
-  ## example_3DImageGradient
-  ## example_2DGulsunTekMedialness
-  ## example_3DGulsunTekMedialness
-  ## example_KalmanVelocity
-  )
-FOREACH(prog ${NOPLUGINS_EXAMPLES_PROGRAMS}) 
-  ADD_EXECUTABLE(
-    ${prog}
-    ${prog}.cxx
-    )
-  TARGET_LINK_LIBRARIES(
-    ${prog}
-    ${ITK_LIBRARIES}
-    cpExtensions
-    )
-ENDFOREACH(prog)
-
-## eof - $RCSfile$
diff --git a/appli/examples/example_1DImageGradient.cxx b/appli/examples/example_1DImageGradient.cxx
deleted file mode 100644 (file)
index 29a19b4..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <string>
-
-#include <itkImage.h>
-#include <itkImageFileReader.h>
-#include <itkImageFileWriter.h>
-#include <itkSimpleFilterWatcher.h>
-
-#include <cpPlugins/Extensions/Algorithms/MultiScaleGaussianImageFilter.h>
-
-// -------------------------------------------------------------------------
-typedef short        TPixel;
-typedef float        TScalar;
-const   unsigned int Dimension = 2;
-
-typedef itk::CovariantVector< TScalar, Dimension  > TVector;
-typedef itk::Image< TPixel,  Dimension >            TImage;
-typedef itk::Image< TVector, Dimension >            TGradient;
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  if( argc < 4 )
-  {
-    std::cout
-      << "Usage: " << argv[ 0 ]
-      << " input_image output_gradient s0 s1 ..."
-      << std::endl;
-    return( 1 );
-
-  } // fi
-  std::string image_fn = argv[ 1 ];
-  std::string gradient_fn = argv[ 2 ];
-
-  // Read image
-  itk::ImageFileReader< TImage >::Pointer image_reader =
-    itk::ImageFileReader< TImage >::New( );
-  image_reader->SetFileName( image_fn );
-  try
-  {
-    image_reader->Update( );
-  }
-  catch( itk::ExceptionObject& err )
-  {
-    std::cerr << err << std::endl;
-    return( 1 );
-
-  } // yrt
-
-  // Prepare filter
-  typedef cpPlugins::Extensions::Algorithms::
-    MultiScaleGaussianImageFilter< TImage, TGradient > TFilter;
-
-  TFilter::Pointer filter = TFilter::New( );
-  filter->SetFilterToGradient( );
-  filter->SetInput( image_reader->GetOutput( ) );
-  for( int i = 3; i < argc; ++i )
-    filter->AddScale( std::atof( argv[ i ] ) );
-
-  // Execute filter
-  itk::SimpleFilterWatcher filter_watcher( filter, "Gradient" );
-  filter->Update( );
-
-  // Read image
-  itk::ImageFileWriter< TGradient >::Pointer gradient_writer =
-    itk::ImageFileWriter< TGradient >::New( );
-  gradient_writer->SetInput( filter->GetOutput( ) );
-  gradient_writer->SetFileName( gradient_fn );
-  try
-  {
-    gradient_writer->Update( );
-  }
-  catch( itk::ExceptionObject& err )
-  {
-    std::cerr << err << std::endl;
-    return( 1 );
-
-  } // yrt
-
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_2DGulsunTekMedialness.cxx b/appli/examples/example_2DGulsunTekMedialness.cxx
deleted file mode 100644 (file)
index d7aa0d0..0000000
+++ /dev/null
@@ -1,220 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <string>
-
-#include <itkImage.h>
-#include <itkImageFileReader.h>
-#include <itkImageFileWriter.h>
-#include <itkSimpleFilterWatcher.h>
-#include <itkVector.h>
-
-#include <cpPlugins/Extensions/Algorithms/MultiScaleGaussianImageFilter.h>
-#include <cpPlugins/Extensions/Algorithms/GulsunTekMedialness.h>
-#include <cpPlugins/Extensions/Algorithms/ImageFunctionFilter.h>
-
-#include <cpPlugins/Extensions/Algorithms/InertiaTensorFunction.h>
-
-#include <itkImageToVTKImageFilter.h>
-
-#include <vtkAxesActor.h>
-#include <vtkMatrix4x4.h>
-#include <vtkRenderWindow.h>
-#include <vtkRenderWindowInteractor.h>
-#include <vtkSmartPointer.h>
-#include <cpPlugins/Extensions/Visualization/MPRWithDifferentWindows.h>
-
-#include <cpPlugins/Extensions/Algorithms/InertiaMedialness.h>
-
-
-// -------------------------------------------------------------------------
-typedef short        TPixel;
-typedef float        TScalar;
-const   unsigned int Dimension = 2;
-
-typedef itk::Vector< TScalar, Dimension  > TVector;
-typedef itk::Image< TPixel,  Dimension >   TImage;
-typedef itk::Image< TVector, Dimension >   TGradient;
-typedef itk::Image< TScalar,  Dimension >  TScalarImage;
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  if( argc < 8 )
-  {
-    std::cout
-      << "Usage: " << argv[ 0 ]
-      << " input_image output_medialness"
-      << " min_radius max_radius profile_sampling radial_sampling"
-      << " s0 s1 ..."
-      << std::endl;
-    return( 1 );
-
-  } // fi
-  std::string image_fn = argv[ 1 ];
-  std::string medialness_fn = argv[ 2 ];
-  double min_radius = std::atof( argv[ 3 ] );
-  double max_radius = std::atof( argv[ 4 ] );
-  unsigned int profile_sampling = std::atoi( argv[ 5 ] );
-  unsigned int radial_sampling = std::atoi( argv[ 6 ] );
-
-  // Read image
-  itk::ImageFileReader< TImage >::Pointer image_reader =
-    itk::ImageFileReader< TImage >::New( );
-  image_reader->SetFileName( image_fn );
-  try
-  {
-    image_reader->Update( );
-  }
-  catch( itk::ExceptionObject& err )
-  {
-    std::cerr << err << std::endl;
-    return( 1 );
-
-  } // yrt
-
-  // Inertia tensor
-  /* TODO
-  typedef cpPlugins::Extensions::Algorithms::
-    InertiaTensorFunction< TScalar, Dimension >
-    TInertiaFunction;
-  TInertiaFunction::Pointer inertia = TInertiaFunction::New( );
-
-  itk::ImageRegionConstIteratorWithIndex< TImage > it(
-    image_reader->GetOutput( ),
-    image_reader->GetOutput( )->GetRequestedRegion( )
-    );
-  for( it.GoToBegin( ); !it.IsAtEnd( ); ++it )
-  {
-    TInertiaFunction::TPoint pnt;
-    image_reader->GetOutput( )->
-      TransformIndexToPhysicalPoint( it.GetIndex( ), pnt );
-    inertia->AddMass( pnt, TScalar( it.Get( ) ) );
-
-  } // rof
-
-  TInertiaFunction::TMatrix I = inertia->GetInertia( );
-  TInertiaFunction::TVector m = inertia->GetCenterOfGravity( );
-
-  TInertiaFunction::TVector pv;
-  TInertiaFunction::TVector r;
-  TInertiaFunction::TMatrix pm;
-  inertia->GetEigenAnalysis( pm, pv, r );
-
-  vtkSmartPointer< vtkMatrix4x4 > matrix =
-    vtkSmartPointer< vtkMatrix4x4 >::New( );
-  matrix->Identity( );
-  matrix->SetElement( 0, 0, pm[ 0 ][ 0 ] * r[ 0 ] );
-  matrix->SetElement( 0, 1, pm[ 0 ][ 1 ] * r[ 1 ] );
-  matrix->SetElement( 1, 0, pm[ 1 ][ 0 ] * r[ 0 ] );
-  matrix->SetElement( 1, 1, pm[ 1 ][ 1 ] * r[ 1 ] );
-  matrix->SetElement( 0, 3, m[ 0 ] );
-  matrix->SetElement( 1, 3, m[ 1 ] );
-
-  vtkSmartPointer< vtkAxesActor > axes =
-    vtkSmartPointer< vtkAxesActor >::New( );
-  axes->SetUserMatrix( matrix );
-
-  std::cout << "---------------------------------" << std::endl;
-  std::cout << I << std::endl;
-  std::cout << m << std::endl;
-  std::cout << "---------------------------------" << std::endl;
-  std::cout << pm << std::endl;
-  std::cout << pv << std::endl;
-  std::cout << "---------------------------------" << std::endl;
-
-  typedef itk::ImageToVTKImageFilter< TImage > TVTKImage;
-  TVTKImage::Pointer vtk_input_image = TVTKImage::New( );
-  vtk_input_image->SetInput( image_reader->GetOutput( ) );
-  vtk_input_image->Update( );
-
-  // Visualization window and interactor
-  vtkSmartPointer< vtkRenderWindowInteractor > interactor =
-    vtkSmartPointer< vtkRenderWindowInteractor >::New( );
-  vtkSmartPointer< vtkRenderWindow > window =
-    vtkSmartPointer< vtkRenderWindow >::New( );
-  window->SetSize( 500, 500 );
-  window->SetInteractor( interactor );
-
-  // Viewer
-  cpPlugins::Extensions::Visualization::MPRWithDifferentWindows
-    view( NULL, NULL, window, NULL );
-  view.SetImage( vtk_input_image->GetOutput( ) );
-  view.GetRenderer( 2 )->AddActor( axes );
-  view.ResetCamera( 2 );
-  view.Render( 2 );
-
-  // Start
-  interactor->Initialize( );
-  interactor->Start( );
-
-  */
-
-  /*
-  // Prepare filter
-  typedef cpPlugins::Extensions::Algorithms::
-    MultiScaleGaussianImageFilter< TImage, TGradient > TGradientFilter;
-
-  TGradientFilter::Pointer gradientFilter = TGradientFilter::New( );
-  gradientFilter->SetFilterToGradient( );
-  gradientFilter->SetInput( image_reader->GetOutput( ) );
-  for( int i = 7; i < argc; ++i )
-    gradientFilter->AddScale( std::atof( argv[ i ] ) );
-
-  // Execute filter
-  itk::SimpleFilterWatcher gradientFilter_watcher( gradientFilter, "Gradient" );
-  gradientFilter->Update( );
-  */
-
-  // Prepare medialness function
-  typedef cpPlugins::Extensions::Algorithms::
-    InertiaMedialness< TImage, TScalar > TMedialness;
-  TMedialness::Pointer medialness = TMedialness::New( );
-  medialness->SetInputImage( image_reader->GetOutput( ) );
-  medialness->SetMaxRadius( max_radius );
-  /*
-    medialness->SetMinRadius( min_radius );
-    medialness->SetProfileSampling( profile_sampling );
-    medialness->SetRadialSampling( radial_sampling );
-
-    TGradient::IndexType idx;
-    idx[ 0 ] = 288;
-    idx[ 1 ] = 690;
-
-    std::cout << "Medialness = " << medialness->EvaluateAtIndex( idx ) << std::endl;
-    // return( 0 );
-    */
-
-  // Prepare output filter
-  typedef cpPlugins::Extensions::Algorithms::
-    ImageFunctionFilter< TImage, TScalarImage, TMedialness >
-    TFunctionApplier;
-  TFunctionApplier::Pointer medialnessFilter = TFunctionApplier::New( );
-  medialnessFilter->SetInput( image_reader->GetOutput( ) );
-  medialnessFilter->SetFunction( medialness );
-
-  // Execute filter
-  itk::SimpleFilterWatcher medialnessFilter_watcher(
-    medialnessFilter, "Medialness"
-    );
-  medialnessFilter->Update( );
-
-  // Write image
-  itk::ImageFileWriter< TScalarImage >::Pointer medialness_writer =
-    itk::ImageFileWriter< TScalarImage >::New( );
-  medialness_writer->SetInput( medialnessFilter->GetOutput( ) );
-  medialness_writer->SetFileName( medialness_fn );
-  try
-  {
-    medialness_writer->Update( );
-  }
-  catch( itk::ExceptionObject& err )
-  {
-    std::cerr << err << std::endl;
-    return( 1 );
-
-  } // yrt
-
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_2DImageGradient.cxx b/appli/examples/example_2DImageGradient.cxx
deleted file mode 100644 (file)
index c0ef19f..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <string>
-
-#include <itkImage.h>
-#include <itkImageFileReader.h>
-#include <itkImageFileWriter.h>
-#include <itkSimpleFilterWatcher.h>
-
-#include <cpPlugins/Extensions/Algorithms/MultiScaleGaussianImageFilter.h>
-
-// -------------------------------------------------------------------------
-typedef short        TPixel;
-typedef float        TScalar;
-const   unsigned int Dimension = 2;
-
-typedef itk::CovariantVector< TScalar, Dimension  > TVector;
-typedef itk::Image< TPixel,  Dimension >            TImage;
-typedef itk::Image< TVector, Dimension >            TGradient;
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  if( argc < 4 )
-  {
-    std::cout
-      << "Usage: " << argv[ 0 ]
-      << " input_image output_gradient s0 s1 ..."
-      << std::endl;
-    return( 1 );
-
-  } // fi
-  std::string image_fn = argv[ 1 ];
-  std::string gradient_fn = argv[ 2 ];
-
-  // Read image
-  itk::ImageFileReader< TImage >::Pointer image_reader =
-    itk::ImageFileReader< TImage >::New( );
-  image_reader->SetFileName( image_fn );
-  try
-  {
-    image_reader->Update( );
-  }
-  catch( itk::ExceptionObject& err )
-  {
-    std::cerr << err << std::endl;
-    return( 1 );
-
-  } // yrt
-
-  // Prepare filter
-  typedef cpPlugins::Extensions::Algorithms::
-    MultiScaleGaussianImageFilter< TImage, TGradient > TFilter;
-
-  TFilter::Pointer filter = TFilter::New( );
-  filter->SetFilterToGradient( );
-  filter->SetInput( image_reader->GetOutput( ) );
-  for( int i = 3; i < argc; ++i )
-    filter->AddScale( std::atof( argv[ i ] ) );
-
-  // Execute filter
-  itk::SimpleFilterWatcher filter_watcher( filter, "Gradient" );
-  filter->Update( );
-
-  // Write image
-  itk::ImageFileWriter< TGradient >::Pointer gradient_writer =
-    itk::ImageFileWriter< TGradient >::New( );
-  gradient_writer->SetInput( filter->GetOutput( ) );
-  gradient_writer->SetFileName( gradient_fn );
-  try
-  {
-    gradient_writer->Update( );
-  }
-  catch( itk::ExceptionObject& err )
-  {
-    std::cerr << err << std::endl;
-    return( 1 );
-
-  } // yrt
-
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_3DGulsunTekMedialness.cxx b/appli/examples/example_3DGulsunTekMedialness.cxx
deleted file mode 100644 (file)
index 796cf05..0000000
+++ /dev/null
@@ -1,118 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <string>
-
-#include <itkImage.h>
-#include <itkImageFileReader.h>
-#include <itkImageFileWriter.h>
-#include <itkSimpleFilterWatcher.h>
-#include <itkVector.h>
-
-#include <cpPlugins/Extensions/Algorithms/MultiScaleGaussianImageFilter.h>
-#include <cpPlugins/Extensions/Algorithms/GulsunTekMedialness.h>
-#include <cpPlugins/Extensions/Algorithms/ImageFunctionFilter.h>
-
-// -------------------------------------------------------------------------
-typedef short        TPixel;
-typedef float        TScalar;
-const   unsigned int Dimension = 3;
-
-typedef itk::Vector< TScalar, Dimension  > TVector;
-typedef itk::Image< TPixel,  Dimension >   TImage;
-typedef itk::Image< TVector, Dimension >   TGradient;
-typedef itk::Image< TScalar,  Dimension >  TScalarImage;
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  if( argc < 8 )
-  {
-    std::cout
-      << "Usage: " << argv[ 0 ]
-      << " input_image output_medialness"
-      << " min_radius max_radius profile_sampling radial_sampling"
-      << " s0 s1 ..."
-      << std::endl;
-    return( 1 );
-
-  } // fi
-  std::string image_fn = argv[ 1 ];
-  std::string medialness_fn = argv[ 2 ];
-  double min_radius = std::atof( argv[ 3 ] );
-  double max_radius = std::atof( argv[ 4 ] );
-  unsigned int profile_sampling = std::atoi( argv[ 5 ] );
-  unsigned int radial_sampling = std::atoi( argv[ 6 ] );
-
-  // Read image
-  itk::ImageFileReader< TImage >::Pointer image_reader =
-    itk::ImageFileReader< TImage >::New( );
-  image_reader->SetFileName( image_fn );
-  try
-  {
-    image_reader->Update( );
-  }
-  catch( itk::ExceptionObject& err )
-  {
-    std::cerr << err << std::endl;
-    return( 1 );
-
-  } // yrt
-
-  // Prepare filter
-  typedef cpPlugins::Extensions::Algorithms::
-    MultiScaleGaussianImageFilter< TImage, TGradient > TGradientFilter;
-
-  TGradientFilter::Pointer gradientFilter = TGradientFilter::New( );
-  gradientFilter->SetFilterToGradient( );
-  gradientFilter->SetInput( image_reader->GetOutput( ) );
-  for( int i = 7; i < argc; ++i )
-    gradientFilter->AddScale( std::atof( argv[ i ] ) );
-
-  // Execute filter
-  itk::SimpleFilterWatcher gradientFilter_watcher( gradientFilter, "Gradient" );
-  gradientFilter->Update( );
-
-  // Prepare medialness function
-  typedef cpPlugins::Extensions::Algorithms::
-    GulsunTekMedialness< TGradient > TMedialness;
-  TMedialness::Pointer medialness = TMedialness::New( );
-  medialness->SetInputImage( gradientFilter->GetOutput( ) );
-  medialness->SetMinRadius( min_radius );
-  medialness->SetMaxRadius( max_radius );
-  medialness->SetProfileSampling( profile_sampling );
-  medialness->SetRadialSampling( radial_sampling );
-
-  // Prepare output filter
-  typedef cpPlugins::Extensions::Algorithms::
-    ImageFunctionFilter< TGradient, TScalarImage, TMedialness >
-    TFunctionApplier;
-  TFunctionApplier::Pointer medialnessFilter = TFunctionApplier::New( );
-  medialnessFilter->SetInput( gradientFilter->GetOutput( ) );
-  medialnessFilter->SetFunction( medialness );
-
-  // Execute filter
-  itk::SimpleFilterWatcher medialnessFilter_watcher(
-    medialnessFilter, "Medialness"
-    );
-  medialnessFilter->Update( );
-
-  // Write image
-  itk::ImageFileWriter< TScalarImage >::Pointer medialness_writer =
-    itk::ImageFileWriter< TScalarImage >::New( );
-  medialness_writer->SetInput( medialnessFilter->GetOutput( ) );
-  medialness_writer->SetFileName( medialness_fn );
-  try
-  {
-    medialness_writer->Update( );
-  }
-  catch( itk::ExceptionObject& err )
-  {
-    std::cerr << err << std::endl;
-    return( 1 );
-
-  } // yrt
-
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_3DImageGradient.cxx b/appli/examples/example_3DImageGradient.cxx
deleted file mode 100644 (file)
index c35a085..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <string>
-
-#include <itkImage.h>
-#include <itkImageFileReader.h>
-#include <itkImageFileWriter.h>
-#include <itkSimpleFilterWatcher.h>
-
-#include <cpPlugins/Extensions/Algorithms/MultiScaleGaussianImageFilter.h>
-
-// -------------------------------------------------------------------------
-typedef short        TPixel;
-typedef float        TScalar;
-const   unsigned int Dimension = 3;
-
-typedef itk::CovariantVector< TScalar, Dimension  > TVector;
-typedef itk::Image< TPixel,  Dimension >            TImage;
-typedef itk::Image< TVector, Dimension >            TGradient;
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  if( argc < 4 )
-  {
-    std::cout
-      << "Usage: " << argv[ 0 ]
-      << " input_image output_gradient s0 s1 ..."
-      << std::endl;
-    return( 1 );
-
-  } // fi
-  std::string image_fn = argv[ 1 ];
-  std::string gradient_fn = argv[ 2 ];
-
-  // Read image
-  itk::ImageFileReader< TImage >::Pointer image_reader =
-    itk::ImageFileReader< TImage >::New( );
-  image_reader->SetFileName( image_fn );
-  try
-  {
-    image_reader->Update( );
-  }
-  catch( itk::ExceptionObject& err )
-  {
-    std::cerr << err << std::endl;
-    return( 1 );
-
-  } // yrt
-
-  // Prepare filter
-  typedef cpPlugins::Extensions::Algorithms::
-    MultiScaleGaussianImageFilter< TImage, TGradient > TFilter;
-
-  TFilter::Pointer filter = TFilter::New( );
-  filter->SetFilterToGradient( );
-  filter->SetInput( image_reader->GetOutput( ) );
-  for( int i = 3; i < argc; ++i )
-    filter->AddScale( std::atof( argv[ i ] ) );
-
-  // Execute filter
-  itk::SimpleFilterWatcher filter_watcher( filter, "Gradient" );
-  filter->Update( );
-
-  // Write image
-  itk::ImageFileWriter< TGradient >::Pointer gradient_writer =
-    itk::ImageFileWriter< TGradient >::New( );
-  gradient_writer->SetInput( filter->GetOutput( ) );
-  gradient_writer->SetFileName( gradient_fn );
-  try
-  {
-    gradient_writer->Update( );
-  }
-  catch( itk::ExceptionObject& err )
-  {
-    std::cerr << err << std::endl;
-    return( 1 );
-
-  } // yrt
-
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_BaseInteractorStyle.cxx b/appli/examples/example_BaseInteractorStyle.cxx
deleted file mode 100644 (file)
index 75366b7..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-
-#include <vtkSmartPointer.h>
-
-#include <vtkRenderer.h>
-#include <vtkRenderWindow.h>
-#include <vtkRenderWindowInteractor.h>
-#include <cpExtensions/Interaction/BaseInteractorStyle.h>
-
-// -------------------------------------------------------------------------
-#define example_BaseInteractorStyle_Macro( x )  \
-  virtual void On##x( )                                 \
-  { std::cout << "On" << #x << "( )" << std::endl; }
-
-// -------------------------------------------------------------------------
-class example_BaseInteractorStyle
-  : public cpExtensions::Interaction::BaseInteractorStyle
-{
-public:
-  typedef example_BaseInteractorStyle Self;
-  vtkTypeMacro(
-    example_BaseInteractorStyle,
-    cpExtensions::Interaction::BaseInteractorStyle
-    );
-
-public:
-  static Self* New( )
-    { return( new Self ); }
-
-  // Possible events
-  example_BaseInteractorStyle_Macro( MouseMove );
-  example_BaseInteractorStyle_Macro( MouseWheelForward );
-  example_BaseInteractorStyle_Macro( MouseWheelBackward );
-  example_BaseInteractorStyle_Macro( LeftButtonDown );
-  example_BaseInteractorStyle_Macro( LeftButtonUp );
-  example_BaseInteractorStyle_Macro( LeftClick );
-  example_BaseInteractorStyle_Macro( LeftDoubleClick );
-  example_BaseInteractorStyle_Macro( MiddleButtonDown );
-  example_BaseInteractorStyle_Macro( MiddleButtonUp );
-  example_BaseInteractorStyle_Macro( MiddleClick );
-  example_BaseInteractorStyle_Macro( MiddleDoubleClick );
-  example_BaseInteractorStyle_Macro( RightButtonDown );
-  example_BaseInteractorStyle_Macro( RightButtonUp );
-  example_BaseInteractorStyle_Macro( RightClick );
-  example_BaseInteractorStyle_Macro( RightDoubleClick );
-  example_BaseInteractorStyle_Macro( Char );
-  example_BaseInteractorStyle_Macro( KeyDown );
-  example_BaseInteractorStyle_Macro( KeyUp );
-  example_BaseInteractorStyle_Macro( KeyPress );
-  example_BaseInteractorStyle_Macro( KeyRelease );
-  example_BaseInteractorStyle_Macro( Expose );
-  example_BaseInteractorStyle_Macro( Configure );
-  example_BaseInteractorStyle_Macro( Enter );
-  example_BaseInteractorStyle_Macro( Leave );
-
-protected:
-  example_BaseInteractorStyle( )
-    : Superclass( )
-    { }
-  virtual ~example_BaseInteractorStyle( )
-    { }
-
-  virtual bool _PickPosition( int idx[ 2 ], double pos[ 3 ] )
-    {
-      return( true ); // Just testing...
-    }
-
-private:
-  // Purposely not implemented
-  example_BaseInteractorStyle( const Self& );
-  Self& operator=( const Self& );
-};
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  // Configure visualization objects
-  vtkSmartPointer< vtkRenderer > renderer =
-    vtkSmartPointer< vtkRenderer >::New( );
-  renderer->SetBackground( 0.1, 0.3, 0.5 );
-
-  vtkSmartPointer< vtkRenderWindow > window =
-    vtkSmartPointer< vtkRenderWindow >::New( );
-  window->AddRenderer( renderer );
-  window->SetSize( 600, 600 );
-
-  // Set up interaction style
-  vtkSmartPointer< example_BaseInteractorStyle > style =
-    vtkSmartPointer< example_BaseInteractorStyle >::New( );
-
-  // Set up the interaction
-  vtkSmartPointer< vtkRenderWindowInteractor > interactor =
-    vtkSmartPointer< vtkRenderWindowInteractor >::New( );
-  interactor->SetInteractorStyle( style );
-  window->SetInteractor( interactor );
-
-  // Begin interaction
-  window->Render( );
-  interactor->Start( );
-
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_ContourWidget.cxx b/appli/examples/example_ContourWidget.cxx
deleted file mode 100644 (file)
index c3b405c..0000000
+++ /dev/null
@@ -1,279 +0,0 @@
-#include <vtkSmartPointer.h>
-#include <vtkProperty.h>
-#include <vtkContourWidget.h>
-#include <vtkOrientedGlyphContourRepresentation.h>
-#include <vtkRenderer.h>
-#include <vtkRenderWindow.h>
-#include <vtkRenderWindowInteractor.h>
-#include <vtkCommand.h>
-#include <vtkDebugLeaks.h>
-#include <vtkCamera.h>
-#include <vtkPlane.h>
-#include <vtkPolyData.h>
-#include <vtkCellArray.h>
-#include <vtkPoints.h>
-#include <vtkMath.h>
-#include <vtkWidgetEvent.h>
-#include <vtkWidgetEventTranslator.h>
-#include <vtkInteractorStyleTrackballCamera.h>
-#include <vtkInteractorStyleImage.h>
-
-#include <vtkPNGReader.h>
-#include <vtkImageViewer2.h> 
-#include <vtkObjectFactory.h>
-#include <vtkPolyDataMapper.h>
-#include <vtkPolyData.h>
-#include <vtkActor.h>
-#include <vtkPlaneSource.h>
-#include <vtkInteractorObserver.h>
-#include <cmath>
-
-vtkSmartPointer<vtkContourWidget> contourWidget;
-vtkSmartPointer<vtkPolyData> pd;
-vtkSmartPointer<vtkRenderWindowInteractor> interactor;
-vtkSmartPointer<vtkOrientedGlyphContourRepresentation> contourRep;
-
-// class for handling interaction on/off
-class KeyPressInteractorStyle : public vtkInteractorStyleImage//vtkInteractorStyleTrackballCamera
-{
-public:
-       static KeyPressInteractorStyle* New();
-       vtkTypeMacro(KeyPressInteractorStyle, vtkInteractorStyleTrackballCamera);
-
-       
-
-       virtual void OnKeyPress()
-       {
-               // Get the keypress
-               vtkRenderWindowInteractor *rwi = this->Interactor;
-               std::string key = rwi->GetKeySym();
-
-               int ctrlKeyInd = rwi->GetControlKey();
-
-               int altKeyInd = rwi->GetAltKey();
-
-               int shiftKeyInd = rwi->GetShiftKey();
-
-               // Output the key that was pressed
-               std::cout << "Pressed " << key << std::endl;
-
-               // Handle an arrow key
-               if (key == "Up")
-               {       
-
-                       std::cout << "UP" << std::endl;
-                       
-               }
-
-               // Handle a "normal" key
-               if (key == "Down")
-               {
-                       std::cout << "DOWN" << std::endl;               
-                       
-               }
-
-               if (ctrlKeyInd != 0)
-               {
-                       if (key == "z" || key == "Z")
-                       {
-                               std::cout << "undo" << std::endl;
-
-                       }
-
-                       if (key == "y" || key == "Y")
-                       {
-                               std::cout << "redo" << std::endl;
-
-                       }
-               }
-
-               // Forward events
-               vtkInteractorStyleTrackballCamera::OnKeyPress();
-       }
-
-};
-vtkStandardNewMacro(KeyPressInteractorStyle);
-
-double* GetClosesstPointToPlane(double * n, double * p)
-{
-       double* closest = new double[2]();
-               
-       double c = -(n[0]*p[0] + n[1]*p[1] + n[2]*p[2]) / (n[0]*n[0] + n[1]*n[1] + n[2]*n[2]);
-       closest[0] = p[0] + c*n[0];
-       closest[1] = p[1] + c*n[1];
-       closest[2] = p[2] + c*n[2];
-
-       return closest;
-}
-
-double* normal;
-double* center;
-
-// class for handling click over the contour
-class ContourCallBack : public vtkCommand
-{
-public:
-       static ContourCallBack *New()
-       {
-               return new ContourCallBack;
-       }
-       ContourCallBack(){}
-
-       virtual void Execute(vtkObject *caller, unsigned long eid, void* clientData)
-       {
-               
-
-               vtkContourWidget *contourWidget =
-                       reinterpret_cast<vtkContourWidget*>(caller);
-
-               // Retrieve the windows event x, y, z
-               std::cout << "window click " << contourWidget->GetInteractor()->GetEventPosition()[0] << " "
-                       << contourWidget->GetInteractor()->GetEventPosition()[1] << " "
-                       << contourWidget->GetInteractor()->GetEventPosition()[2] 
-                       << std::endl;
-
-               // get the node postiion (the world position)
-               vtkContourRepresentation * rep=contourWidget->GetContourRepresentation();
-               double* worldclick = new double[2]();
-               rep->GetActiveNodeWorldPosition(worldclick);
-               
-               std::cout << "worldclick click " << worldclick[0] << " " << worldclick[1] << " " << worldclick[2] << std::endl;
-
-               // change position
-               double* projection = new double[2]();
-               //restringedPosition[0] = nodepos[0];
-               //restringedPosition[1] = nodepos[1];
-               //restringedPosition[2] = 0; // ToDo: change is hard coded but must work for every plane/image
-
-               projection = GetClosesstPointToPlane(normal, worldclick);
-
-               std::cout << "projection click " << projection[0] << " " << projection[1] << " " << projection[2] << std::endl;
-
-               rep->SetActiveNodeToWorldPosition(projection);
-               //delete(nodepos);
-       }
-
-};
-
-int main(int argc, char *argv[])
-{
-       normal = new double[2]();
-       normal[0] = 1;
-       normal[1] = 1;
-       normal[2] = 1;
-       center = new double[2]();
-
-       // Create the RenderWindow, Renderer and both Actors
-       //
-       vtkSmartPointer<vtkRenderer> renderer = vtkSmartPointer<vtkRenderer>::New();
-       vtkSmartPointer<vtkRenderWindow> renderWindow = vtkSmartPointer<vtkRenderWindow>::New();
-       renderWindow->AddRenderer(renderer);
-
-       vtkSmartPointer<vtkRenderWindowInteractor> interactor =
-               vtkSmartPointer<vtkRenderWindowInteractor>::New();
-       interactor->SetRenderWindow(renderWindow);
-
-       renderer->SetBackground(0.1, 0.2, 0.4);
-       renderWindow->SetSize(600, 600);
-
-       // visual reference
-       // Create a plane
-       vtkSmartPointer<vtkPlaneSource> planeSource =
-               vtkSmartPointer<vtkPlaneSource>::New();
-       planeSource->SetCenter(center); // 0.0, 0.0, 0.0);
-       planeSource->SetNormal(normal); //1.0, 0.0, 1.0);
-       planeSource->Update();
-
-       vtkPolyData* plane = planeSource->GetOutput();
-
-       // Create a mapper and actor
-       vtkSmartPointer<vtkPolyDataMapper> mapper =
-               vtkSmartPointer<vtkPolyDataMapper>::New();
-       mapper->SetInputData(plane);
-
-       vtkSmartPointer<vtkActor> planeActor =
-               vtkSmartPointer<vtkActor>::New();
-       planeActor->SetMapper(mapper);
-
-       vtkSmartPointer<KeyPressInteractorStyle> style =
-               vtkSmartPointer<KeyPressInteractorStyle>::New();
-       interactor->SetInteractorStyle(style);
-
-       // create the contour stuff
-       vtkSmartPointer<vtkOrientedGlyphContourRepresentation> contourRep =
-               vtkSmartPointer<vtkOrientedGlyphContourRepresentation>::New();
-       contourRep->GetLinesProperty()->SetColor(0, 0, 1); //set color to red
-
-       vtkSmartPointer<vtkContourWidget> contourWidget =
-               vtkSmartPointer<vtkContourWidget>::New();
-       contourWidget->SetInteractor(interactor);
-       contourWidget->SetRepresentation(contourRep);
-       
-       contourWidget->On();
-
-       for (int i = 0; i < argc; i++)
-       {
-               if (strcmp("-Shift", argv[i]) == 0)
-               {
-                       contourWidget->GetEventTranslator()->RemoveTranslation(
-                               vtkCommand::LeftButtonPressEvent);
-                       contourWidget->GetEventTranslator()->SetTranslation(
-                               vtkCommand::LeftButtonPressEvent,
-                               vtkWidgetEvent::Translate);
-               }
-               else if (strcmp("-Scale", argv[i]) == 0)
-               {
-                       contourWidget->GetEventTranslator()->RemoveTranslation(
-                               vtkCommand::LeftButtonPressEvent);
-                       contourWidget->GetEventTranslator()->SetTranslation(
-                               vtkCommand::LeftButtonPressEvent,
-                               vtkWidgetEvent::Scale);
-               }
-       }
-
-       //Add an observer to contour widget
-       vtkSmartPointer<ContourCallBack> contourCallBack =
-               vtkSmartPointer<ContourCallBack>::New();
-       contourWidget->AddObserver(vtkCommand::InteractionEvent, contourCallBack);
-
-       // quick points for representation
-       vtkSmartPointer<vtkPolyData> pd = vtkSmartPointer<vtkPolyData>::New();
-
-       vtkSmartPointer<vtkPoints> points = vtkSmartPointer<vtkPoints>::New();
-       vtkSmartPointer<vtkCellArray> lines = vtkSmartPointer<vtkCellArray>::New();
-       vtkIdType* lineIndices = new vtkIdType[21];
-       for (int i = 0; i< 20; i++)
-       {
-               const double angle = 2.0*vtkMath::Pi()*i / 20.0;
-               double* closest = new double[2]();
-               double* p = new double[2]();
-
-               p[0] = 0.2*cos(angle);
-               p[1] = 0.2*sin(angle);
-               p[2] = 0.0;
-
-               closest = GetClosesstPointToPlane(normal, p);
-               points->InsertPoint(static_cast<vtkIdType>(i), closest);
-               lineIndices[i] = static_cast<vtkIdType>(i);
-       }
-
-       lineIndices[20] = 0;
-       lines->InsertNextCell(21, lineIndices);
-       delete[] lineIndices;
-       pd->SetPoints(points);
-       pd->SetLines(lines);
-
-       contourWidget->Initialize(pd);  
-       
-       contourWidget->Render();
-       renderer->GetActiveCamera()->SetPosition(0, 0, 2.1);
-       renderer->AddActor(planeActor);
-       renderWindow->Render();
-
-       interactor->Initialize();
-       interactor->Start();
-
-       contourWidget->Off();
-
-       return EXIT_SUCCESS;
-}
diff --git a/appli/examples/example_ExtractDICOMSeries.cxx b/appli/examples/example_ExtractDICOMSeries.cxx
deleted file mode 100644 (file)
index a885c9b..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <string>
-#include <vector>
-
-#include <itkImage.h>
-#include <itkGDCMImageIO.h>
-#include <itkGDCMSeriesFileNames.h>
-#include <itkImageSeriesReader.h>
-#include <itkImageFileWriter.h>
-
-// -------------------------------------------------------------------------
-typedef short      TPixel;
-const unsigned int Dim = 3;
-typedef itk::Image< TPixel, Dim > TImage;
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  if( argc < 3 )
-  {
-    std::cerr
-      << "Usage: " << std::endl
-      << argv[ 0 ] << " dicom_dir output_extension"
-      << std::endl;
-    return( 1 );
-
-  } // fi
-  std::string dicom_dir = argv[ 1 ];
-  std::string output_extension = argv[ 2 ];
-
-  typedef itk::GDCMSeriesFileNames TNameGenerator;
-  TNameGenerator::Pointer name_gen = TNameGenerator::New( );
-  name_gen->SetUseSeriesDetails( true );
-  name_gen->AddSeriesRestriction( "0008|0021" );
-  name_gen->SetDirectory( dicom_dir );
-  try
-  {
-    typedef std::vector< std::string > TSeriesIdContainer;
-    const TSeriesIdContainer& seriesUID = name_gen->GetSeriesUIDs( );
-
-    TSeriesIdContainer::const_iterator serieIt = seriesUID.begin( );
-    for( ; serieIt != seriesUID.end( ); ++serieIt )
-    {
-      // Get series identifier
-      std::string serieId = serieIt->c_str( );
-      std::cout
-        << "\nReading: "
-        << serieId << std::endl;
-
-      // Get filenames for actual serie
-      typedef std::vector< std::string > TFileNamesContainer;
-      TFileNamesContainer filenames;
-      filenames = name_gen->GetFileNames( serieId );
-
-      // Read image
-      itk::ImageSeriesReader< TImage >::Pointer reader =
-        itk::ImageSeriesReader< TImage >::New( );
-      itk::GDCMImageIO::Pointer dicomIO = itk::GDCMImageIO::New( );
-      reader->SetImageIO( dicomIO );
-      reader->SetFileNames( filenames );
-
-      // Write image
-      std::string serie_filename;
-      serie_filename = dicom_dir + "/" + serieId + "." + output_extension;
-
-      itk::ImageFileWriter< TImage >::Pointer writer =
-        itk::ImageFileWriter< TImage >::New( );
-      writer->SetFileName( serie_filename );
-      writer->UseCompressionOff( );
-      writer->SetInput( reader->GetOutput( ) );
-      std::cout << "Writing: " << serie_filename << std::endl;
-      try
-      {
-        writer->Update( );
-      }
-      catch( itk::ExceptionObject& err )
-      {
-        std::cerr << " Error caught: " << err << std::endl;
-
-      } // yrt
-
-    } // rof
-  }
-  catch( itk::ExceptionObject& err )
-  {
-    std::cerr << "Error caught: " << std::endl << err << std::endl;
-    return( 1 );
-
-  } // yrt
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_HandleWidget.cxx b/appli/examples/example_HandleWidget.cxx
deleted file mode 100644 (file)
index e2dee09..0000000
+++ /dev/null
@@ -1,131 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <string>
-
-#include <vtkHandleWidget.h>
-#include <vtkImageActorPointPlacer.h>
-#include <vtkPointHandleRepresentation3D.h>
-#include <vtkProperty.h>
-#include <vtkRenderer.h>
-#include <vtkRenderWindow.h>
-#include <vtkRenderWindowInteractor.h>
-
-#include <cpPlugins/Interface/Interface.h>
-#include <cpPlugins/Interface/ProcessObject.h>
-#include <cpPlugins/Interface/Image.h>
-
-#include <cpExtensions/Visualization/ImageSliceActors.h>
-
-// -------------------------------------------------------------------------
-typedef cpPlugins::Interface::Interface     TInterface;
-typedef cpPlugins::Interface::ProcessObject TProcessObject;
-typedef cpPlugins::Interface::DataObject    TDataObject;
-typedef cpPlugins::Interface::Image         TImage;
-typedef cpPlugins::Interface::Parameters    TParameters;
-typedef TInterface::TClasses                TClasses;
-
-typedef cpExtensions::Visualization::ImageSliceActors TSliceActors;
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  if( argc < 3 )
-  {
-    std::cerr
-      << "Usage: " << argv[ 0 ]
-      << " plugins_file input_image"
-      << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Create interface
-  TInterface plugins;
-  if( !plugins.Load( argv[ 1 ] ) )
-  {
-    std::cerr << "Failed to load plugins." << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Create objects
-  TProcessObject::Pointer reader =
-    plugins.CreateObject( "cpPlugins::IO::ImageReader" );
-  if( reader.IsNull( ) )
-  {
-    std::cerr
-      << "No suitable reader found in plugins." << std::endl
-      << "Reader: " << reader.GetPointer( ) << std::endl
-      << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Configure reader
-  TParameters* reader_params = reader->GetParameters( );
-  for( int i = 2; i < argc; ++i )
-    reader_params->AddToStringList( "FileNames", argv[ i ] );
-
-  // Execute pipeline
-  std::string err = reader->Update( );
-  if( err != "" )
-  {
-    std::cerr << "ERROR: " << err << std::endl;
-    return( 1 );
-
-  } // fi
-  TImage* image = reader->GetOutput< TImage >( "Output" );
-
-  // Configure visualization objects
-  vtkSmartPointer< vtkRenderer > renderer =
-    vtkSmartPointer< vtkRenderer >::New( );
-  renderer->SetBackground( 0.1, 0.3, 0.5 );
-
-  vtkSmartPointer< vtkRenderWindow > window =
-    vtkSmartPointer< vtkRenderWindow >::New( );
-  window->AddRenderer( renderer );
-  window->SetSize( 600, 600 );
-
-  // Set up the interaction
-  vtkSmartPointer< vtkRenderWindowInteractor > interactor =
-    vtkSmartPointer< vtkRenderWindowInteractor >::New( );
-  window->SetInteractor( interactor );
-
-  // Create slice actors
-  vtkSmartPointer< TSliceActors > image_actors =
-    vtkSmartPointer< TSliceActors >::New( );
-  image_actors->SetInputImage( image->GetVTK< vtkImageData >( ) );
-  image_actors->SetAxis( 2 );
-  image_actors->PushActorsInto( window );
-
-  vtkSmartPointer< vtkImageActorPointPlacer > placer =
-    vtkSmartPointer< vtkImageActorPointPlacer >::New( );
-  placer->SetImageActor( image_actors->GetImageActor( ) );
-
-  double bnds[ 6 ];
-  image_actors->GetImageActor( )->GetDisplayBounds( bnds );
-  double pos[] = { bnds[ 0 ], bnds[ 2 ], bnds[ 4 ] };
-
-  vtkSmartPointer< vtkPointHandleRepresentation3D > rep =
-    vtkSmartPointer< vtkPointHandleRepresentation3D >::New( );
-  rep->SetWorldPosition( pos );
-  rep->GetProperty( )->SetColor( 1, 0, 0 );
-  rep->ActiveRepresentationOff( );
-  rep->SetPointPlacer( placer );
-
-  vtkSmartPointer< vtkHandleWidget > handleWidget =
-    vtkSmartPointer< vtkHandleWidget >::New( );
-  handleWidget->SetInteractor( interactor );
-  handleWidget->SetRepresentation( rep );
-
-  // Begin interaction
-  interactor->Initialize( );
-  renderer->ResetCamera( );
-  window->Render( );
-  handleWidget->On( );
-  interactor->Start( );
-
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_ImageGaussianModelEstimator.cxx b/appli/examples/example_ImageGaussianModelEstimator.cxx
deleted file mode 100644 (file)
index 0187f2a..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <string>
-
-#include <itkImage.h>
-#include <itkImageFileReader.h>
-#include <itkImageRegionConstIterator.h>
-#include <itkMatrix.h>
-#include <itkRGBPixel.h>
-#include <itkVector.h>
-
-#include <cpPlugins/Extensions/Algorithms/IterativeGaussianModelEstimator.h>
-
-// -------------------------------------------------------------------------
-const unsigned int Dim = 2;
-typedef double                    TScalar;
-typedef unsigned char             TChannel;
-typedef itk::RGBPixel< TChannel > TPixel;
-typedef itk::Image< TPixel, Dim > TImage;
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  if( argc < 2 )
-  {
-    std::cerr
-      << "Usage: " << argv[ 0 ]
-      << " input_image" << std::endl;
-    return( 1 );
-
-  } // fi
-  std::string input_image_file = argv[ 1 ];
-
-  // Read image
-  itk::ImageFileReader< TImage >::Pointer reader =
-    itk::ImageFileReader< TImage >::New( );
-  reader->SetFileName( input_image_file );
-  try
-  {
-    reader->Update( );
-  }
-  catch( itk::ExceptionObject& err )
-  {
-    std::cerr << "Error caught: " << err << std::endl;
-    return( 1 );
-
-  } // yrt
-  TImage::ConstPointer input_image = reader->GetOutput( );
-
-  // Compute gaussian model
-  typedef cpPlugins::Extensions::Algorithms::IterativeGaussianModelEstimator< TScalar, 3 > TEstimator;
-
-  TEstimator::Pointer estimator = TEstimator::New( );
-  estimator->Clear( );
-
-  itk::ImageRegionConstIterator< TImage > it(
-    input_image,
-    input_image->GetRequestedRegion( )
-    );
-  for( it.GoToBegin( ); !it.IsAtEnd( ); ++it )
-  {
-    estimator->AddSample(
-      TScalar( it.Get( ).GetRed( ) ),
-      TScalar( it.Get( ).GetGreen( ) ),
-      TScalar( it.Get( ).GetBlue( ) )
-      );
-
-  } // rof
-
-  itk::Vector< TScalar, 3 > mean;
-  itk::Matrix< TScalar, 3, 3 > cova;
-
-  estimator->GetModel( mean, cova );
-  std::cout
-    << "Covariance = " << std::endl << cova << std::endl;
-  std::cout
-    << "Inverse covariance = "
-    << std::endl << cova.GetInverse( ) << std::endl;
-  std::cout
-    << "Mean = " << std::endl << mean << std::endl;
-
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_LightCompensation.cxx b/appli/examples/example_LightCompensation.cxx
deleted file mode 100644 (file)
index cb1a1d2..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <string>
-
-#include <itkImage.h>
-#include <itkImageFileReader.h>
-#include <itkImageFileWriter.h>
-#include <itkRGBPixel.h>
-
-#include <cpPlugins/Extensions/Algorithms/LightCompensationFilter.h>
-
-// -------------------------------------------------------------------------
-const unsigned int Dim = 2;
-typedef itk::RGBPixel< unsigned char > TPixel;
-typedef itk::Image< TPixel, Dim >      TImage;
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  if( argc < 3 )
-  {
-    std::cerr
-      << "Usage: " << argv[ 0 ]
-      << " input_image output_image"
-      << std::endl;
-    return( 1 );
-
-  } // fi
-  std::string input_image_fn = argv[ 1 ];
-  std::string output_image_fn = argv[ 2 ];
-
-  // Read image
-  itk::ImageFileReader< TImage >::Pointer input_image_reader =
-    itk::ImageFileReader< TImage >::New( );
-  input_image_reader->SetFileName( input_image_fn );
-  try
-  {
-    input_image_reader->Update( );
-  }
-  catch( itk::ExceptionObject& err )
-  {
-    std::cerr << "Error caught: " << err << std::endl;
-    return( 1 );
-
-  } // yrt
-  TImage::Pointer input_image = input_image_reader->GetOutput( );
-
-  cpPlugins::Extensions::Algorithms::
-    LightCompensationFilter< TImage >::Pointer filter =
-    cpPlugins::Extensions::Algorithms::
-    LightCompensationFilter< TImage >::New( );
-  filter->SetInput( input_image );
-  filter->Update( );
-
-  // Write image
-  itk::ImageFileWriter< TImage >::Pointer output_image_writer =
-    itk::ImageFileWriter< TImage >::New( );
-  output_image_writer->SetInput( filter->GetOutput( ) );
-  output_image_writer->SetFileName( output_image_fn );
-  try
-  {
-    output_image_writer->Update( );
-  }
-  catch( itk::ExceptionObject& err )
-  {
-    std::cerr << "Error caught: " << err << std::endl;
-    return( 1 );
-
-  } // yrt
-
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_LoadPlugins.cxx b/appli/examples/example_LoadPlugins.cxx
deleted file mode 100644 (file)
index 9b40183..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-#include <iostream>
-#include <string>
-
-#include <cpPlugins/Interface/Interface.h>
-
-// -------------------------------------------------------------------------
-typedef cpPlugins::Interface::Interface TInterface;
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  if( argc < 2 )
-  {
-    std::cerr << "Usage: " << argv[ 0 ] << " plugins_file(s)" << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Create interface and load plugins
-  TInterface interface;
-
-  for( int i = 1; i < argc; ++i )
-    if( !interface.Load( argv[ i ] ) )
-      std::cerr
-        << "Error loading plugins file \""
-        << argv[ i ] << "\""
-        << std::endl;
-
-  // Show info
-  auto i = interface.GetLoadedPlugins( ).begin( );
-  for( ; i != interface.GetLoadedPlugins( ).end( ); ++i )
-  {
-    std::cout << "Folder: " << i->first << std::endl;
-    auto j = i->second.begin( );
-    for( ; j != i->second.end( ); ++j )
-      std::cout << "\tPlugin: " << *j << std::endl;
-
-  } // rof
-
-  // Show loaded classes
-  auto cat = interface.GetClasses( ).begin( );
-  for( ; cat != interface.GetClasses( ).end( ); ++cat )
-  {
-    std::cout << "Catergory -> " << cat->first << std::endl;
-    auto cla = cat->second.begin( );
-    for( ; cla != cat->second.end( ); ++cla )
-      std::cout << "\tClass -> " << cla->first << std::endl;
-
-  } // rof
-
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_LoadPluginsFromPath.cxx b/appli/examples/example_LoadPluginsFromPath.cxx
deleted file mode 100644 (file)
index 451d333..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-#include <iostream>
-#include <string>
-
-#include <cpPlugins/Interface/Interface.h>
-
-// -------------------------------------------------------------------------
-typedef cpPlugins::Interface::Interface TInterface;
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  if( argc < 2 )
-  {
-    std::cerr << "Usage: " << argv[ 0 ] << " plugins_file(s)" << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Create interface and load plugins
-  TInterface interface;
-  interface.LoadFromFolder( argv[ 1 ], true );
-
-  // Show info
-  auto i = interface.GetLoadedPlugins( ).begin( );
-  for( ; i != interface.GetLoadedPlugins( ).end( ); ++i )
-  {
-    std::cout << "Folder: " << i->first << std::endl;
-    auto j = i->second.begin( );
-    for( ; j != i->second.end( ); ++j )
-      std::cout << "\tPlugin: " << *j << std::endl;
-
-  } // rof
-
-  // Show loaded classes
-  auto cat = interface.GetClasses( ).begin( );
-  for( ; cat != interface.GetClasses( ).end( ); ++cat )
-  {
-    std::cout << "Catergory -> " << cat->first << std::endl;
-    auto cla = cat->second.begin( );
-    for( ; cla != cat->second.end( ); ++cla )
-      std::cout << "\tClass -> " << cla->first << std::endl;
-    
-  } // rof
-
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_MPR.cxx b/appli/examples/example_MPR.cxx
deleted file mode 100644 (file)
index dca9084..0000000
+++ /dev/null
@@ -1,240 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <string>
-
-#include <cpPlugins/Interface/Interface.h>
-#include <cpPlugins/Interface/ProcessObject.h>
-#include <cpPlugins/Interface/Image.h>
-
-#include <vtkSmartPointer.h>
-#include <vtkCommand.h>
-#include <vtkRenderer.h>
-#include <vtkRenderWindow.h>
-#include <vtkRenderWindowInteractor.h>
-#include <vtkSliderRepresentation2D.h>
-#include <vtkSliderWidget.h>
-
-#include <cpExtensions/Visualization/MPRActors.h>
-
-// -------------------------------------------------------------------------
-typedef cpPlugins::Interface::Interface     TInterface;
-typedef cpPlugins::Interface::ProcessObject TFilter;
-typedef cpPlugins::Interface::Parameters    TParameters;
-typedef cpPlugins::Interface::Image         TImage;
-
-typedef cpExtensions::Visualization::MPRActors TMPRActors;
-
-// -------------------------------------------------------------------------
-class SliderCallback
-  : public vtkCommand
-{
-public:
-  static SliderCallback* New( )
-    {
-      return new SliderCallback;
-    }
-  virtual void Execute( vtkObject* caller, unsigned long eId , void* data )
-    {
-      /*
-      vtkSliderWidget* wdg =
-        reinterpret_cast< vtkSliderWidget* >( caller );
-      if( wdg == NULL )
-        return;
-      vtkSliderRepresentation* rep =
-        static_cast< vtkSliderRepresentation* >(
-          wdg->GetRepresentation( )
-          );
-      if( rep == NULL )
-        return;
-      std::string title = rep->GetTitleText( );
-      if( title == "X" )
-        this->Actors->SetSlice( 0, int( rep->GetValue( ) ) );
-      else if( title == "Y" )
-        this->Actors->SetSlice( 1, int( rep->GetValue( ) ) );
-      else if( title == "Z" )
-        this->Actors->SetSlice( 2, int( rep->GetValue( ) ) );
-      else if( title == "Window" )
-        this->Actors->SetWindow( 0, rep->GetValue( ) );
-      else if( title == "Level" )
-        this->Actors->SetLevel( 0, rep->GetValue( ) );
-      */
-    }
-  SliderCallback( )
-    : vtkCommand( )
-    {
-    }
-
-public:
-  TMPRActors* Actors;
-};
-
-// -------------------------------------------------------------------------
-struct Slider
-{
-  vtkSmartPointer< vtkSliderRepresentation2D > Representation;
-  vtkSmartPointer< vtkSliderWidget >           Widget;
-
-  Slider(
-    double min_value,
-    double max_value,
-    double value,
-    const std::string& title,
-    vtkRenderWindowInteractor* iren,
-    double p1x, double p1y, double p2x, double p2y,
-    SliderCallback* callback = NULL
-    )
-    {
-      this->Representation =
-        vtkSmartPointer< vtkSliderRepresentation2D >::New( );
-      this->Representation->SetMinimumValue( min_value );
-      this->Representation->SetMaximumValue( max_value );
-      this->Representation->SetValue( value );
-      this->Representation->SetTitleText( title.c_str( ) );
-      this->Representation->GetPoint1Coordinate( )->
-        SetCoordinateSystemToNormalizedDisplay();
-      this->Representation->GetPoint1Coordinate( )->
-        SetValue( p1x, p1y );
-      this->Representation->GetPoint2Coordinate( )->
-        SetCoordinateSystemToNormalizedDisplay();
-      this->Representation->GetPoint2Coordinate( )->SetValue( p2x, p2y );
-
-      this->Widget = vtkSmartPointer< vtkSliderWidget >::New( );
-      this->Widget->SetInteractor( iren );
-      this->Widget->SetRepresentation( this->Representation );
-      this->Widget->SetAnimationModeToAnimate( );
-      this->Widget->EnabledOn( );
-      if( callback != NULL )
-        this->Widget->AddObserver( vtkCommand::InteractionEvent, callback );
-    }
-};
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  if( argc < 3 )
-  {
-    std::cerr
-      << "Usage: " << argv[ 0 ]
-      << " plugins_file input_image(s)"
-      << std::endl;
-    return( 1 );
-
-  } // fi
-  std::string plugins_file = argv[ 1 ];
-
-  // Create interface
-  TInterface plugins;
-  plugins.Load( plugins_file );
-
-  // Create reader
-  TFilter::Pointer reader =
-    plugins.CreateProcessObject( "cpPlugins::IO::ImageReader" );
-  if( reader.IsNull( ) )
-  {
-    std::cerr
-      << "ERROR: No suitable image reader found in plugins."
-      << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Configure reader
-  TParameters* reader_params = reader->GetParameters( );
-  for( int i = 2; i < argc; ++i )
-    reader_params->AddToStringList( "FileNames", argv[ i ] );
-
-  // Execute reader
-  std::string msg = reader->Update( );
-  if( msg != "" )
-  {
-    std::cerr << "ERROR: " << msg << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Get input image's vtk representation
-  vtkImageData* image =
-    reader->GetOutput< TImage >( "Output" )->GetVTK< vtkImageData >( );
-  if( image == NULL )
-  {
-    std::cerr
-      << "ERROR: read image does not have a valid VTK conversion."
-      << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Visualization stuff
-  vtkSmartPointer< vtkRenderWindow > window =
-    vtkSmartPointer< vtkRenderWindow >::New( );
-  window->SetSize( 700, 700 );
-
-  // Renderers
-  vtkSmartPointer< vtkRenderer > renderer =
-    vtkSmartPointer< vtkRenderer >::New( );
-  renderer->SetBackground( 0, 0, 1 );
-  window->AddRenderer( renderer );
-
-  // Interactor
-  vtkSmartPointer< vtkRenderWindowInteractor > interactor =
-    vtkSmartPointer< vtkRenderWindowInteractor >::New( );
-  interactor->SetRenderWindow( window );
-
-  // Actors
-  vtkSmartPointer< TMPRActors > mpr_actors =
-    vtkSmartPointer< TMPRActors >::New( );
-  mpr_actors->AddInputData( image );
-  mpr_actors->PushActorsInto( NULL, NULL, NULL, window );
-
-  // Callbacks
-  vtkSmartPointer< SliderCallback > cb =
-    vtkSmartPointer< SliderCallback >::New( );
-  cb->Actors = mpr_actors;
-
-  /*
-  Slider x_slider(
-    mpr_actors->GetSliceNumberMinValue( 0 ),
-    mpr_actors->GetSliceNumberMaxValue( 0 ),
-    mpr_actors->GetSliceNumberMinValue( 0 ),
-    "X", interactor,
-    0.100, 0.15, 0.290, 0.15, cb
-    );
-  Slider y_slider(
-    mpr_actors->GetSliceNumberMinValue( 1 ),
-    mpr_actors->GetSliceNumberMaxValue( 1 ),
-    mpr_actors->GetSliceNumberMinValue( 1 ),
-    "Y", interactor,
-    0.300, 0.15, 0.490, 0.15, cb
-    );
-  Slider z_slider(
-    mpr_actors->GetSliceNumberMinValue( 2 ),
-    mpr_actors->GetSliceNumberMaxValue( 2 ),
-    mpr_actors->GetSliceNumberMinValue( 2 ),
-    "Z", interactor,
-    0.500, 0.15, 0.690, 0.15, cb
-    );
-  Slider w_slider(
-    mpr_actors->GetMinWindow( 0 ),
-    mpr_actors->GetMaxWindow( 0 ),
-    mpr_actors->GetWindow( 0 ),
-    "Window", interactor,
-    0.100, 0.05, 0.290, 0.05, cb
-    );
-  Slider l_slider(
-    mpr_actors->GetMinWindow( 0 ),
-    mpr_actors->GetMaxWindow( 0 ),
-    mpr_actors->GetWindow( 0 ),
-    "Level", interactor,
-    0.300, 0.05, 0.490, 0.05, cb
-    );
-    */
-
-  // Begin interaction
-  renderer->ResetCamera( );
-  window->Render( );
-  interactor->Start( );
-
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_MacheteFilter.cxx b/appli/examples/example_MacheteFilter.cxx
deleted file mode 100644 (file)
index 983c0f8..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-#include <itkImage.h>
-#include <itkImageFileReader.h>
-#include "itkImageFileWriter.h"
-#include <itkRescaleIntensityImageFilter.h>
-
-#include <iostream>
-
-//#include "MacheteImageFilter.h"
-#include "itkObjectFactory.h"
-#include "itkImageRegionIterator.h"
-#include "itkImageRegionConstIterator.h"
-
-#include <cpExtensions/Algorithms/MacheteImageFilter.h>
-
-
-int main(int, char*[])
-{
-  std::cout << "Machete image filter";
-  
-  // 1. work with the filter
-  typedef itk::Image<unsigned char, 2>  ImageType;
-  ImageType::Pointer image;
-
-  typedef itk::ImageFileReader<ImageType> ReaderType;
-  ReaderType::Pointer reader = ReaderType::New();
-  reader->SetFileName("c://img//lung.jpg");
-  image = reader->GetOutput();
-
-  typedef cpExtensions::Algorithms::MacheteImageFilter<ImageType, ImageType>  FilterType;
-
-  FilterType::Pointer filter = FilterType::New();
-  filter->SetInput(image);
-  filter->SetRadius(151);
-
-  itk::Point<double, 3> p0;
-  p0[0] = 250.0;
-  p0[1] = 250.0;
-  p0[2] = 0.0;
-
-  filter->SetPoint(p0);
-  filter->Update();
-
-  // 2. write result
-
-  typedef  itk::ImageFileWriter< ImageType  > WriterType;
-  WriterType::Pointer writer = WriterType::New();
-  writer->SetFileName("c://img//out.jpg");
-  writer->SetInput(filter->GetOutput());
-  writer->Update();
-
-  // 3.display result visualization
-
- /* vtkSmartPointer<vtkImageActor> actor =
-    vtkSmartPointer<vtkImageActor>::New();
-#if VTK_MAJOR_VERSION <= 5
-  actor->SetInput(connector->GetOutput());
-#else
-  connector->Update();
-  actor->GetMapper()->SetInputData(connector->GetOutput());
-#endif
-  vtkSmartPointer<vtkRenderer> renderer =
-    vtkSmartPointer<vtkRenderer>::New();
-  renderer->AddActor(actor);
-  renderer->ResetCamera();
-
-  vtkSmartPointer<vtkRenderWindow> renderWindow =
-    vtkSmartPointer<vtkRenderWindow>::New();
-  renderWindow->AddRenderer(renderer);
-
-  vtkSmartPointer<vtkRenderWindowInteractor> renderWindowInteractor =
-    vtkSmartPointer<vtkRenderWindowInteractor>::New();
-  vtkSmartPointer<vtkInteractorStyleImage> style =
-    vtkSmartPointer<vtkInteractorStyleImage>::New();
-
-  renderWindowInteractor->SetInteractorStyle(style);
-
-  renderWindowInteractor->SetRenderWindow(renderWindow);
-  renderWindowInteractor->Initialize();
-
-  renderWindowInteractor->Start();*/
-
-  return 0;
-}
\ No newline at end of file
diff --git a/appli/examples/example_MarchingCubes.cxx b/appli/examples/example_MarchingCubes.cxx
deleted file mode 100644 (file)
index a61a278..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <string>
-
-#include <cpPlugins/Interface/Plugins.h>
-
-// -------------------------------------------------------------------------
-typedef cpPlugins::Interface::Plugins TPlugins;
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  if( argc < 4 )
-  {
-    std::cerr
-      << "Usage: " << argv[ 0 ]
-      << " plugins_file"
-      << " input_image threshold output_image" << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Load plugins
-  cpPlugins::Interface::Plugins plugins;
-  if( !plugins.LoadPluginsPath( argv[ 1 ] ) )
-  {
-    std::cerr << "Failed to load plugins." << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Associate filenames
-  std::vector< std::string > fnames;
-  for( int i = 2; i < argc - 2; ++i )
-    fnames.push_back( argv[ i ] );
-  
-  // Read image
-  std::string filter = "cpPlugins::BasicFilters::MarchingCubes";
-  try
-  {
-    std::string name = plugins.ReadImage( fnames, "" );
-
-    if( !( plugins.ActivateFilter( filter ) ) )
-    {
-      std::cerr << "Filter \"" << filter << "\" not found." << std::endl;
-      return( 1 );
-
-    } // fi
-
-    // Connect IO objects
-    TPlugins::TStringContainer inputs, outputs;
-    plugins.GetActiveFilterInputsNames( inputs );
-    plugins.GetActiveFilterOutputsNames( outputs );
-
-    plugins.ConnectInputInActiveFilter( name, *( inputs.begin( ) ) );
-    //plugins.SetOutputNameInActiveFilter( "output_mesh", *( outputs.begin( ) ) );
-
-    // Configure filter
-    TPlugins::TParameters* params = plugins.GetActiveFilterParameters( );
-    params->AddToRealList( "Thresholds", std::atof( argv[ argc - 2 ] ) );
-
-    // Execute filter
-    TPlugins::TStringContainer generated_outputs;
-    if( !( plugins.UpdateActiveFilter( generated_outputs, name ) ) )
-    {
-      std::cerr << "Error using filter \"" << filter << "\"." << std::endl;
-      return( 1 );
-
-    } // fi
-
-    // Save mesh
-    std::string outmesh_name = *( generated_outputs.begin( ) );
-    if( !( plugins.WriteDataObject( argv[ argc - 1 ], outmesh_name ) ) )
-    {
-      std::cerr
-        << "Error writing result into \"" << argv[ argc - 1 ]
-        << "\"" << std::endl;
-      return( 1 );
-
-    } // fi
-  }
-  catch( std::exception& err )
-  {
-    std::cerr << err.what( ) << std::endl;
-    return( 1 );
-
-  } // yrt
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_OtsuFilter.cxx b/appli/examples/example_OtsuFilter.cxx
deleted file mode 100644 (file)
index 21c7a7e..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <string>
-
-#include <cpPlugins/Interface/Interface.h>
-#include <cpPlugins/Interface/ProcessObject.h>
-
-int main( int argc, char* argv[] )
-{
-  if( argc < 4 )
-  {
-    std::cerr
-      << "Usage: " << argv[ 0 ]
-      << " plugins_file"
-      << " input_image output_image" << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Create interface
-  typedef cpPlugins::Interface::Interface TInterface;
-  typedef TInterface::TClasses            TClasses;
-  TInterface plugins;
-  if( !plugins.Load( argv[ 1 ] ) )
-  {
-    std::cerr << "Failed to load plugins." << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Create objects
-  typedef cpPlugins::Interface::ProcessObject TProcessObject;
-  typedef cpPlugins::Interface::DataObject    TDataObject;
-  typedef cpPlugins::Interface::Parameters    TParameters;
-  cpPlugins::Interface::ProcessObject::Pointer reader, writer, otsu;
-  reader = plugins.CreateProcessObject( "cpPlugins::ImageReader" );
-  writer = plugins.CreateProcessObject( "cpPlugins::ImageWriter" );
-  otsu = plugins.CreateProcessObject( "cpPlugins::OtsuThresholdImageFilter" );
-  if( reader.IsNull( ) || writer.IsNull( ) || otsu.IsNull( ) )
-  {
-    std::cerr << "No suitable objects found in plugins." << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Configure reader
-  TParameters reader_params = reader->GetDefaultParameters( );
-  for( int i = 2; i < argc - 1; ++i )
-    reader_params.AddValueToStringList( "FileNames", argv[ i ] );
-  reader->SetParameters( reader_params );
-
-  // Configure otsu
-  TParameters otsu_params = otsu->GetDefaultParameters( );
-  otsu_params.SetValueAsUint( "NumberOfHistogramBins", 100 );
-  otsu_params.SetValueAsReal( "InsideValue", 255 );
-  otsu_params.SetValueAsReal( "OutsideValue", 0 );
-  otsu->SetParameters( otsu_params );
-
-  // Configure writer
-  TParameters writer_params = writer->GetDefaultParameters( );
-  writer_params.SetValueAsString( "FileName", argv[ argc - 1 ] );
-  writer->SetParameters( writer_params );
-
-  // Connect pipeline
-  otsu->SetInput( 0, reader->GetOutput< TDataObject >( 0 ) );
-  writer->SetInput( 0, otsu->GetOutput< TDataObject >( 0 ) );
-
-  // Execute pipeline
-  std::string err = writer->Update( );
-  if( err != "" )
-  {
-    std::cerr << "ERROR: " << err << std::endl;
-    return( 1 );
-
-  } // fi
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_ParallelImageMean.cxx b/appli/examples/example_ParallelImageMean.cxx
deleted file mode 100644 (file)
index a01c163..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <string>
-
-#include <itkImage.h>
-#include <itkImageFileReader.h>
-#include <itkRGBPixel.h>
-
-#include <cpPlugins/Extensions/Algorithms/ParallelImageMean.h>
-
-// -------------------------------------------------------------------------
-const unsigned int Dim = 2;
-typedef itk::RGBPixel< unsigned char > TPixel;
-typedef itk::Image< TPixel, Dim >      TImage;
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  if( argc < 2 )
-  {
-    std::cerr << "Usage: " << argv[ 0 ] << " image" << std::endl;
-    return( 1 );
-
-  } // fi
-  std::string image_fn = argv[ 1 ];
-
-  // Read image
-  itk::ImageFileReader< TImage >::Pointer image_reader =
-    itk::ImageFileReader< TImage >::New( );
-  image_reader->SetFileName( image_fn );
-  try
-  {
-    image_reader->Update( );
-  }
-  catch( itk::ExceptionObject& err )
-  {
-    std::cerr << "Error caught: " << err << std::endl;
-    return( 1 );
-
-  } // yrt
-  TImage::Pointer image = image_reader->GetOutput( );
-
-  // Compute mean
-  cpPlugins::Extensions::Algorithms::ParallelImageMean< TImage >::Pointer mean =
-    cpPlugins::Extensions::Algorithms::ParallelImageMean< TImage >::New( );
-  mean->Execute( image, image->GetRequestedRegion( ) );
-  std::cout << "Mean: " << mean->GetMean( ) << std::endl;
-
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_RGBImageToHSVChannels.cxx b/appli/examples/example_RGBImageToHSVChannels.cxx
deleted file mode 100644 (file)
index 57d0581..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <string>
-
-#include <cpPlugins/Interface/Interface.h>
-#include <cpPlugins/Interface/ProcessObject.h>
-
-int main( int argc, char* argv[] )
-{
-  if( argc < 4 )
-  {
-    std::cerr
-      << "Usage: " << argv[ 0 ]
-      << " plugins_file"
-      << " input_image output_image" << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Create interface
-  typedef cpPlugins::Interface::Interface TInterface;
-  typedef TInterface::TClasses            TClasses;
-  TInterface plugins;
-  if( !plugins.Load( argv[ 1 ] ) )
-  {
-    std::cerr << "Failed to load plugins." << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Create objects
-  typedef cpPlugins::Interface::ProcessObject TProcessObject;
-  typedef cpPlugins::Interface::DataObject    TDataObject;
-  typedef cpPlugins::Interface::Parameters    TParameters;
-  cpPlugins::Interface::ProcessObject::Pointer reader, writer, filter;
-  reader = plugins.CreateProcessObject( "cpPlugins::ImageReader" );
-  writer = plugins.CreateProcessObject( "cpPlugins::ImageWriter" );
-  filter = plugins.CreateProcessObject( "cpPlugins::RGBImageToOtherChannelsFilter");
-  if( reader.IsNull( ) || writer.IsNull( ) || filter.IsNull( ) )
-  {
-    std::cerr << "No suitable objects found in plugins." << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Configure reader
-  TParameters reader_params = reader->GetDefaultParameters( );
-  for( int i = 2; i < argc - 1; ++i )
-    reader_params.AddValueToStringList( "FileNames", argv[ i ] );
-  reader->SetParameters( reader_params );
-
-  // Configure filter
-  TParameters filter_params = filter->GetDefaultParameters( );
-  filter_params.SetValueAsString( "OutChannel", "HSV" );
-  filter->SetParameters( filter_params );
-
-  // Configure writer
-  TParameters writer_params = writer->GetDefaultParameters( );
-  writer_params.SetValueAsString( "FileName", argv[ argc - 1 ] );
-  writer->SetParameters( writer_params );
-
-  // Connect pipeline
-  filter->SetInput( 0, reader->GetOutput< TDataObject >( 0 ) );
-  writer->SetInput( 0, filter->GetOutput< TDataObject >( 0 ) );
-
-  // Execute pipeline
-  std::string err = writer->Update( );
-  if( err != "" )
-  {
-    std::cerr << "ERROR: " << err << std::endl;
-    return( 1 );
-
-  } // fi
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_RGBImageToYPbPrChannels.cxx b/appli/examples/example_RGBImageToYPbPrChannels.cxx
deleted file mode 100644 (file)
index d589db9..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <string>
-
-#include <cpPlugins/Interface/Interface.h>
-#include <cpPlugins/Interface/ProcessObject.h>
-
-int main( int argc, char* argv[] )
-{
-  if( argc < 4 )
-  {
-    std::cerr
-      << "Usage: " << argv[ 0 ]
-      << " plugins_file"
-      << " input_image output_image" << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Create interface
-  typedef cpPlugins::Interface::Interface TInterface;
-  typedef TInterface::TClasses            TClasses;
-  TInterface plugins;
-  if( !plugins.Load( argv[ 1 ] ) )
-  {
-    std::cerr << "Failed to load plugins." << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Create objects
-  typedef cpPlugins::Interface::ProcessObject TProcessObject;
-  typedef cpPlugins::Interface::DataObject    TDataObject;
-  typedef cpPlugins::Interface::Parameters    TParameters;
-  cpPlugins::Interface::ProcessObject::Pointer reader, writer, filter;
-  reader = plugins.CreateProcessObject( "cpPlugins::ImageReader" );
-  writer = plugins.CreateProcessObject( "cpPlugins::ImageWriter" );
-  filter = plugins.CreateProcessObject( "cpPlugins::RGBImageToOtherChannelsFilter");
-  if( reader.IsNull( ) || writer.IsNull( ) || filter.IsNull( ) )
-  {
-    std::cerr << "No suitable objects found in plugins." << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Configure reader
-  TParameters reader_params = reader->GetDefaultParameters( );
-  for( int i = 2; i < argc - 1; ++i )
-    reader_params.AddValueToStringList( "FileNames", argv[ i ] );
-  reader->SetParameters( reader_params );
-
-  // Configure filter
-  TParameters filter_params = filter->GetDefaultParameters( );
-  filter_params.SetValueAsString( "OutChannel", "YPbPr" );
-  filter->SetParameters( filter_params );
-
-  // Configure writer
-  TParameters writer_params = writer->GetDefaultParameters( );
-  writer_params.SetValueAsString( "FileName", argv[ argc - 1 ] );
-  writer->SetParameters( writer_params );
-
-  // Connect pipeline
-  filter->SetInput( 0, reader->GetOutput< TDataObject >( 0 ) );
-  writer->SetInput( 0, filter->GetOutput< TDataObject >( 0 ) );
-
-  // Execute pipeline
-  std::string err = writer->Update( );
-  if( err != "" )
-  {
-    std::cerr << "ERROR: " << err << std::endl;
-    return( 1 );
-
-  } // fi
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_ReadImageSeriesWriteImage.cxx b/appli/examples/example_ReadImageSeriesWriteImage.cxx
deleted file mode 100644 (file)
index 6446d78..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <string>
-
-#include <cpPlugins/Interface/Interface.h>
-#include <cpPlugins/Interface/ProcessObject.h>
-
-int main( int argc, char* argv[] )
-{
-  if( argc < 7 )
-  {
-    std::cerr
-      << "Usage: " << argv[ 0 ]
-      << " plugins_file"
-      << " output_image"
-      << " dimensions pixel_type is_color input_image_files" << std::endl;
-    return( 1 );
-
-  } // fi
-  std::string plugins_file = argv[ 1 ];
-  std::string output_image_file = argv[ 2 ];
-  unsigned int dimensions = std::atoi( argv[ 3 ] );
-  std::string pixel_type = argv[ 4 ];
-  bool is_color = ( std::atoi( argv[ 5 ] ) == 1 );
-
-  // Create interface
-  typedef cpPlugins::Interface::Interface TInterface;
-  typedef TInterface::TClasses            TClasses;
-
-  TInterface plugins;
-  plugins.Load( plugins_file );
-
-  // Create objects
-  typedef cpPlugins::Interface::ProcessObject TProcessObject;
-  typedef cpPlugins::Interface::Parameters    TParameters;
-  cpPlugins::Interface::ProcessObject::Pointer reader;
-  cpPlugins::Interface::ProcessObject::Pointer writer;
-
-  reader =
-    plugins.CreateProcessObject( "cpPlugins::Plugins::ImageReader" );
-  if( reader.IsNull( ) )
-  {
-    std::cerr << "No suitable reader found in plugins." << std::endl;
-    return( 1 );
-
-  } // fi
-  writer = plugins.CreateProcessObject( "cpPlugins::Plugins::ImageWriter" );
-  if( writer.IsNull( ) )
-  {
-    std::cerr << "No suitable writer found in plugins." << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Configure reader
-  TParameters reader_params = reader->GetDefaultParameters( );
-  for( int i = 6; i < argc; ++i )
-    reader_params.AddValueToStringList( "FileNames", argv[ i ] );
-  reader_params.SetValueAsString( "PixelType", pixel_type );
-  reader_params.SetValueAsUint( "ImageDimension", dimensions );
-  reader_params.SetValueAsUint( "IsColorImage", ( is_color? 1: 0 ) );
-  reader->SetParameters( reader_params );
-
-  // Configure reader
-  TParameters writer_params = writer->GetDefaultParameters( );
-  writer_params.SetValueAsString( "FileName", output_image_file );
-  writer->SetParameters( writer_params );
-
-  // Connect pipeline
-  writer->SetInput( 0, reader->GetOutput( 0 ) );
-
-  std::string msg = writer->Update( );
-
-  if( msg != "" )
-    std::cerr << "ERROR: " << msg << std::endl;
-
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_ReadQuadEdgeMesh.cxx b/appli/examples/example_ReadQuadEdgeMesh.cxx
deleted file mode 100644 (file)
index 49f7d6a..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <string>
-
-#include <cpPlugins/Interface/Interface.h>
-#include <cpPlugins/Interface/ProcessObject.h>
-
-int main( int argc, char* argv[] )
-{
-  if( argc < 5 )
-  {
-    std::cerr
-      << "Usage: " << argv[ 0 ]
-      << " plugins_file"
-      << " input_mesh"
-      << " dimensions pixel_type" << std::endl;
-    return( 1 );
-
-  } // fi
-  std::string plugins_file = argv[ 1 ];
-  std::string input_mesh_file = argv[ 2 ];
-  unsigned int dimensions = std::atoi( argv[ 3 ] );
-  std::string pixel_type = argv[ 4 ];
-
-  // Create interface
-  typedef cpPlugins::Interface::Interface TInterface;
-  typedef TInterface::TClasses            TClasses;
-
-  TInterface plugins;
-  plugins.Load( plugins_file );
-
-  // Create objects
-  typedef cpPlugins::Interface::ProcessObject TProcessObject;
-  typedef cpPlugins::Interface::Parameters    TParameters;
-  cpPlugins::Interface::ProcessObject::Pointer reader;
-
-  reader = plugins.CreateProcessObject( "cpPlugins::Plugins::MeshReader" );
-  if( reader.IsNull( ) )
-  {
-    std::cerr << "No suitable reader found in plugins." << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Configure reader
-  TParameters reader_params = reader->GetDefaultParameters( );
-  reader_params.SetValueAsString( "FileName", input_mesh_file );
-  reader_params.SetValueAsString( "PixelType", pixel_type );
-  reader_params.SetValueAsUint( "MeshDimension", dimensions );
-  reader->SetParameters( reader_params );
-
-  // Execute reader
-  std::string msg = reader->Update( );
-
-  if( msg != "" )
-    std::cerr << "ERROR: " << msg << std::endl;
-
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_ReadQuadEdgeMeshWithoutPlugins.cxx b/appli/examples/example_ReadQuadEdgeMeshWithoutPlugins.cxx
deleted file mode 100644 (file)
index 2379fe4..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <string>
-
-#include <cpPlugins/Extensions/DataStructures/QuadEdgeMesh.h>
-#include <cpPlugins/Extensions/IO/MeshReader.h>
-
-// -------------------------------------------------------------------------
-const unsigned int Dimension = 3;
-typedef float TScalar;
-typedef cpPlugins::Extensions::
-DataStructures::QuadEdgeMesh< TScalar, Dimension >
-TMesh;
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  if( argc < 2 )
-  {
-    std::cerr
-      << "Usage: " << argv[ 0 ]
-      << " input_mesh"
-      << std::endl;
-    return( 1 );
-
-  } // fi
-
-  typedef cpPlugins::Extensions::IO::MeshReader< TMesh > TReader;
-  TReader::Pointer reader = TReader::New( );
-  reader->SetFileName( argv[ 1 ] );
-  reader->Update( );
-
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_ReadWriteImage.cxx b/appli/examples/example_ReadWriteImage.cxx
deleted file mode 100644 (file)
index 07591b2..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <string>
-
-#include <cpPlugins/Interface/Plugins.h>
-
-// -------------------------------------------------------------------------
-typedef cpPlugins::Interface::Plugins TPlugins;
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  if( argc < 4 )
-  {
-    std::cerr
-      << "Usage: " << argv[ 0 ]
-      << " plugins_file"
-      << " input_image output_image" << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Load plugins
-  cpPlugins::Interface::Plugins plugins;
-  if( !plugins.LoadPlugins( argv[ 1 ] ) )
-  {
-    std::cerr << "Failed to load plugins." << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Associate filenames
-  std::vector< std::string > fnames;
-  for( int i = 2; i < argc - 1; ++i )
-    fnames.push_back( argv[ i ] );
-  
-  // Read image
-  try
-  {
-    std::string name = plugins.ReadImage( fnames, "" );
-    plugins.WriteDataObject( argv[ argc - 1 ], name );
-  }
-  catch( std::exception& err )
-  {
-    std::cerr << err.what( ) << std::endl;
-    return( 1 );
-
-  } // yrt
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_RenderQuadEdgeMesh.cxx b/appli/examples/example_RenderQuadEdgeMesh.cxx
deleted file mode 100644 (file)
index 6380660..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <string>
-
-#include <cpPlugins/Interface/Interface.h>
-#include <cpPlugins/Interface/ProcessObject.h>
-#include <cpPlugins/Interface/Mesh.h>
-
-#include <vtkActor.h>
-#include <vtkCallbackCommand.h>
-#include <vtkProperty.h>
-#include <vtkRenderer.h>
-#include <vtkRenderWindow.h>
-#include <vtkRenderWindowInteractor.h>
-#include <vtkSmartPointer.h>
-
-int main( int argc, char* argv[] )
-{
-  if( argc < 5 )
-  {
-    std::cerr
-      << "Usage: " << argv[ 0 ]
-      << " plugins_file"
-      << " input_mesh"
-      << " dimensions pixel_type" << std::endl;
-    return( 1 );
-
-  } // fi
-  std::string plugins_file = argv[ 1 ];
-  std::string input_mesh_file = argv[ 2 ];
-  unsigned int dimensions = std::atoi( argv[ 3 ] );
-  std::string pixel_type = argv[ 4 ];
-
-  // Create interface
-  typedef cpPlugins::Interface::Interface TInterface;
-  typedef TInterface::TClasses            TClasses;
-
-  TInterface plugins;
-  plugins.Load( plugins_file );
-
-  // Create objects
-  typedef cpPlugins::Interface::ProcessObject TProcessObject;
-  typedef cpPlugins::Interface::Parameters    TParameters;
-  cpPlugins::Interface::ProcessObject::Pointer reader;
-
-  reader = plugins.CreateProcessObject( "cpPlugins::Plugins::MeshReader" );
-  if( reader.IsNull( ) )
-  {
-    std::cerr << "No suitable reader found in plugins." << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Configure reader
-  TParameters reader_params = reader->GetDefaultParameters( );
-  reader_params.SetValueAsString( "FileName", input_mesh_file );
-  reader_params.SetValueAsString( "PixelType", pixel_type );
-  reader_params.SetValueAsUint( "MeshDimension", dimensions );
-  reader->SetParameters( reader_params );
-
-  // Execute reader
-  std::string msg = reader->Update( );
-
-  if( msg != "" )
-    std::cerr << "ERROR: " << msg << std::endl;
-
-  // Create actor
-  vtkSmartPointer< vtkActor > actor =
-    vtkSmartPointer< vtkActor >::New( );
-  actor->SetMapper(
-    dynamic_cast< cpPlugins::Interface::Mesh* >( reader->GetOutput( 0 ) )->
-    GetVTKMapper( )
-    );
-  actor->GetProperty( )->SetColor( 1, 1, 0 );
-  actor->GetProperty( )->SetOpacity( 0.5 );
-
-  // Configure visualization objects
-  vtkSmartPointer< vtkRenderer > renderer =
-    vtkSmartPointer< vtkRenderer >::New( );
-  renderer->SetBackground( 0.1, 0.3, 0.5 );
-
-  vtkSmartPointer< vtkRenderWindow > window =
-    vtkSmartPointer< vtkRenderWindow >::New( );
-  window->AddRenderer( renderer );
-  window->SetSize( 800, 800 );
-
-  // Set up the interaction
-  vtkSmartPointer< vtkRenderWindowInteractor > interactor =
-    vtkSmartPointer< vtkRenderWindowInteractor >::New( );
-  window->SetInteractor( interactor );
-
-  // Associate actors
-  renderer->AddActor( actor );
-
-  // Begin interaction
-  window->Render( );
-  interactor->Start( );
-
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_RenderQuadEdgeMeshWithoutPlugins.cxx b/appli/examples/example_RenderQuadEdgeMeshWithoutPlugins.cxx
deleted file mode 100644 (file)
index 8f01af9..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <string>
-
-#include <cpPlugins/Extensions/DataStructures/QuadEdgeMesh.h>
-#include <cpPlugins/Extensions/IO/MeshReader.h>
-#include <cpPlugins/Extensions/Visualization/OpenGLMeshMapper.h>
-
-#include <vtkActor.h>
-#include <vtkCallbackCommand.h>
-#include <vtkProperty.h>
-#include <vtkRenderer.h>
-#include <vtkRenderWindow.h>
-#include <vtkRenderWindowInteractor.h>
-#include <vtkSmartPointer.h>
-
-// -------------------------------------------------------------------------
-const unsigned int Dimension = 3;
-typedef float TScalar;
-using namespace cpPlugins::Extensions;
-typedef DataStructures::QuadEdgeMesh< TScalar, Dimension > TMesh;
-typedef Visualization::OpenGLMeshMapper< TMesh > TMeshMapper;
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  if( argc < 2 )
-  {
-    std::cerr
-      << "Usage: " << argv[ 0 ]
-      << " input_mesh"
-      << std::endl;
-    return( 1 );
-
-  } // fi
-
-  typedef IO::MeshReader< TMesh > TReader;
-  TReader::Pointer reader = TReader::New( );
-  reader->SetFileName( argv[ 1 ] );
-  reader->Update( );
-
-  // Map mesh
-  vtkSmartPointer< TMeshMapper > mapper =
-    vtkSmartPointer< TMeshMapper >::New( );
-  mapper->SetInputData( reader->GetOutput( ) );
-
-  // Create actor
-  vtkSmartPointer< vtkActor > actor =
-    vtkSmartPointer< vtkActor >::New( );
-  actor->SetMapper( mapper );
-  actor->GetProperty( )->SetColor( 1, 1, 0 );
-  actor->GetProperty( )->SetOpacity( 0.5 );
-
-  // Configure visualization objects
-  vtkSmartPointer< vtkRenderer > renderer =
-    vtkSmartPointer< vtkRenderer >::New( );
-  renderer->SetBackground( 0.1, 0.3, 0.5 );
-
-  vtkSmartPointer< vtkRenderWindow > window =
-    vtkSmartPointer< vtkRenderWindow >::New( );
-  window->AddRenderer( renderer );
-  window->SetSize( 800, 800 );
-
-  // Set up the interaction
-  vtkSmartPointer< vtkRenderWindowInteractor > interactor =
-    vtkSmartPointer< vtkRenderWindowInteractor >::New( );
-  window->SetInteractor( interactor );
-
-  // Associate actors
-  renderer->AddActor( actor );
-
-  // Begin interaction
-  window->Render( );
-  interactor->Start( );
-
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_SeedWidget.cxx b/appli/examples/example_SeedWidget.cxx
deleted file mode 100644 (file)
index cb3c7e6..0000000
+++ /dev/null
@@ -1,130 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <string>
-
-#include <vtkImageActorPointPlacer.h>
-#include <vtkPointHandleRepresentation3D.h>
-#include <vtkProperty.h>
-#include <vtkRenderer.h>
-#include <vtkRenderWindow.h>
-#include <vtkRenderWindowInteractor.h>
-#include <vtkSeedRepresentation.h>
-
-#include <cpPlugins/Interface/Interface.h>
-#include <cpPlugins/Interface/ProcessObject.h>
-#include <cpPlugins/Interface/Image.h>
-
-#include <cpExtensions/Visualization/ImageSliceActors.h>
-#include <cpExtensions/Interaction/SeedWidget.h>
-
-// -------------------------------------------------------------------------
-typedef cpPlugins::Interface::Interface     TInterface;
-typedef cpPlugins::Interface::ProcessObject TProcessObject;
-typedef cpPlugins::Interface::DataObject    TDataObject;
-typedef cpPlugins::Interface::Image         TImage;
-typedef cpPlugins::Interface::Parameters    TParameters;
-typedef TInterface::TClasses                TClasses;
-
-typedef cpExtensions::Visualization::ImageSliceActors TSliceActors;
-typedef cpExtensions::Interaction::SeedWidget         TSeedWidget;
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  if( argc < 3 )
-  {
-    std::cerr
-      << "Usage: " << argv[ 0 ]
-      << " plugins_file input_image"
-      << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Create interface
-  TInterface plugins;
-  if( !plugins.Load( argv[ 1 ] ) )
-  {
-    std::cerr << "Failed to load plugins." << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Create objects
-  TProcessObject::Pointer reader;
-  reader = plugins.CreateObject( "cpPlugins::IO::ImageReader" );
-  if( reader.IsNull( ) )
-  {
-    std::cerr
-      << "No suitable reader found in plugins." << std::endl
-      << "Reader: " << reader.GetPointer( ) << std::endl
-      << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Configure reader
-  TParameters* reader_params = reader->GetParameters( );
-  for( int i = 2; i < argc; ++i )
-    reader_params->AddToStringList( "FileNames", argv[ i ] );
-
-  // Execute pipeline
-  std::string err = reader->Update( );
-  if( err != "" )
-  {
-    std::cerr << "ERROR: " << err << std::endl;
-    return( 1 );
-
-  } // fi
-  TImage* image = reader->GetOutput< TImage >( "Output" );
-
-  // Configure visualization objects
-  vtkSmartPointer< vtkRenderer > renderer =
-    vtkSmartPointer< vtkRenderer >::New( );
-  renderer->SetBackground( 0.1, 0.3, 0.5 );
-
-  vtkSmartPointer< vtkRenderWindow > window =
-    vtkSmartPointer< vtkRenderWindow >::New( );
-  window->AddRenderer( renderer );
-  window->SetSize( 600, 600 );
-
-  // Set up the interaction
-  vtkSmartPointer< vtkRenderWindowInteractor > interactor =
-    vtkSmartPointer< vtkRenderWindowInteractor >::New( );
-  window->SetInteractor( interactor );
-
-  // Create slice actors
-  vtkSmartPointer< TSliceActors > image_actors =
-    vtkSmartPointer< TSliceActors >::New( );
-  image_actors->SetInputImage( image->GetVTK< vtkImageData >( ) );
-  image_actors->SetAxis( 2 );
-  image_actors->PushActorsInto( window );
-
-  vtkSmartPointer< vtkImageActorPointPlacer > placer =
-    vtkSmartPointer< vtkImageActorPointPlacer >::New( );
-  placer->SetImageActor( image_actors->GetImageActor( ) );
-
-  // Create the widget and its representation
-  vtkSmartPointer< vtkPointHandleRepresentation3D > handle =
-    vtkSmartPointer< vtkPointHandleRepresentation3D >::New( );
-  handle->GetProperty( )->SetColor( 1, 0, 0 );
-  handle->SetPointPlacer( placer );
-  vtkSmartPointer< vtkSeedRepresentation > rep =
-    vtkSmartPointer< vtkSeedRepresentation >::New( );
-  rep->SetHandleRepresentation( handle );
-
-  vtkSmartPointer< TSeedWidget > widget =
-    vtkSmartPointer< TSeedWidget >::New( );
-  widget->SetInteractor( interactor );
-  widget->SetRepresentation( rep );
-
-  // Begin interaction
-  renderer->ResetCamera( );
-  window->Render( );
-  widget->On( );
-  interactor->Start( );
-
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_SphereSource.cxx b/appli/examples/example_SphereSource.cxx
deleted file mode 100644 (file)
index 75e99a3..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <string>
-
-#include <cpPlugins/Interface/Interface.h>
-#include <cpPlugins/Interface/ProcessObject.h>
-
-// -------------------------------------------------------------------------
-typedef cpPlugins::Interface::Interface     TInterface;
-typedef cpPlugins::Interface::ProcessObject TFilter;
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  if( argc < 6 )
-  {
-    std::cerr
-      << "Usage: " << argv[ 0 ]
-      << " plugins_dir"
-      << " radius phi_res theta_res output_mesh" << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Create interface and load plugins
-  TInterface interface;
-  if( interface.LoadFromFolder( argv[ 1 ], true ) )
-  {
-    TFilter::Pointer source =
-      interface.CreateObject( "cpPlugins::BasicFilters::SphereMeshSource" );
-    TFilter::Pointer writer =
-      interface.CreateObject( "cpPlugins::IO::MeshWriter" );
-
-    // Configure source
-    source->GetParameters( )->SetString( "Radius", argv[ 2 ], true );
-    source->GetParameters( )->SetString( "PhiResolution", argv[ 3 ], true );
-    source->GetParameters( )->SetString( "ThetaResolution", argv[ 4 ], true );
-
-    // Configure writer
-    writer->GetParameters( )->SetString( "FileName", argv[ 5 ], true );
-
-    // Connect filters
-    writer->SetInput( "Input", source->GetOutput( "Output" ) );
-
-    // Execute pipeline
-    std::cout << "Error: \"" << writer->Update( ) << "\"" << std::endl;
-  }
-  else
-    std::cerr << "No plugins found." << std::endl;
-
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_SphereWidget.cxx b/appli/examples/example_SphereWidget.cxx
deleted file mode 100644 (file)
index cd6d635..0000000
+++ /dev/null
@@ -1,172 +0,0 @@
-#include <cpPlugins/Interface/Interface.h>
-#include <cpPlugins/Interface/ProcessObject.h>
-#include <cpPlugins/Interface/Image.h>
-
-#include <cpExtensions/Visualization/ImageSliceActors.h>
-#include <cpExtensions/Interaction/SphereWidget.h>
-
-#include <vtkImageActorPointPlacer.h>
-#include <vtkPointHandleRepresentation3D.h>
-#include <vtkProperty.h>
-#include <vtkRenderer.h>
-#include <vtkRenderWindow.h>
-#include <vtkRenderWindowInteractor.h>
-#include <vtkMapper.h>
-#include <vtkSphereRepresentation.h>
-#include <vtkImageSliceMapper.h>
-#include <vtkCommand.h>
-#include <vtkCallbackCommand.h>
-
-// -------------------------------------------------------------------------
-// type definiftions
-
-typedef cpPlugins::Interface::Interface     TInterface;
-typedef cpPlugins::Interface::ProcessObject TProcessObject;
-typedef cpPlugins::Interface::DataObject    TDataObject;
-typedef cpPlugins::Interface::Image         TImage;
-typedef cpPlugins::Interface::Parameters    TParameters;
-typedef TInterface::TClasses                TClasses;
-
-typedef cpExtensions::Visualization::ImageSliceActors TSliceActors;
-typedef cpExtensions::Interaction::SphereWidget       TSphereWidget;
-
-// -------------------------------------------------------------------------
-
-std::string _pathIOplugin = "C://dev//creatis//cpPlugins//build//Debug//cpPluginsIO.dll";
-std::string _img = "C://img//SphereVolume.mhd";
-
-vtkSmartPointer<cpExtensions::Visualization::ImageSliceActors> image_actors;
-vtkSmartPointer<cpExtensions::Interaction::SphereWidget> sphereWidget;
-
-
-void WheelCallbackFunction(vtkObject* caller, long unsigned int eventId, void* vtkNotUsed(clientData), void* vtkNotUsed(callData))
-{
-  std::cout << "WheelCallbackFunction callback" << std::endl;
-
-  int axis = image_actors->GetAxis();
-  vtkImageMapper3D * mapper = image_actors->GetImageActor()->GetMapper();
-  vtkAbstractMapper3D* abs = dynamic_cast<vtkAbstractMapper3D*>(mapper);
-  auto imgSliceMap = vtkImageSliceMapper::SafeDownCast(abs);
- // auto centerImg = imgSliceMap->GetCenter();  
-  
-  auto center = image_actors->GetPlaneActor()->GetCenter();
-
-  std::cout << "plane: {" << center[0] << " , " << center[1] << " , " << center[2] << "} " << std::endl;
-  //std::cout << "slice: {" << centerImg[0] << " , " << centerImg[1] << " , " << centerImg[2] << "} " << std::endl;
-
-  switch (axis)
-  {
-  case 0: // X
-    center[1] = sphereWidget->GetPosition()[1];
-    center[2] = sphereWidget->GetPosition()[2];
-    break;                    
-  case 1: // Y                
-    center[0] = sphereWidget->GetPosition()[0];
-    center[2] = sphereWidget->GetPosition()[2];
-    break;                    
-  case 2: // Z                
-    center[1] = sphereWidget->GetPosition()[1];
-    center[0] = sphereWidget->GetPosition()[0];
-    break;
-  default: 
-    break;
-  }
-
-  sphereWidget->SetCenter(center);
-}
-
-
-
-
-int main(int argc, char* argv[])
-{
-  if (argc >= 3)
-  {
-    _pathIOplugin = argv[1];
-    _img = argv[2];
-  }
-
-  // Create interface
-  TInterface plugins;
-  if (!plugins.Load(_pathIOplugin))
-  {
-    std::cerr << "Failed to load plugins." << std::endl;
-    return(1);
-  }
-
-  // Create reader
-  TProcessObject::Pointer reader;
-  reader = plugins.CreateObject("cpPlugins::IO::ImageReader");
-  if (reader.IsNull())
-  {
-    std::cerr
-      << "No suitable reader found in plugins." << std::endl
-      << "Reader: " << reader.GetPointer() << std::endl
-      << std::endl;
-    return(1);
-  } 
-
-  // Configure reader
-  TParameters* reader_params = reader->GetParameters();
-  reader_params->AddToStringList("FileNames", _img);
-
-  // Execute pipeline
-  std::string err = reader->Update();
-  if (err != "")
-  {
-    std::cerr << "ERROR: " << err << std::endl;
-    return(1);
-
-  } 
-
-  TImage* image = reader->GetOutput< TImage >("Output");
-
-  // Configure visualization objects
-  vtkSmartPointer< vtkRenderer > renderer =
-    vtkSmartPointer< vtkRenderer >::New();
-  renderer->SetBackground(0.1, 0.1, 0.1);
-
-  vtkSmartPointer< vtkRenderWindow > window =
-    vtkSmartPointer< vtkRenderWindow >::New();
-  window->AddRenderer(renderer);
-  window->SetSize(600, 600);
-
-  // Set up the interaction
-  vtkSmartPointer< vtkRenderWindowInteractor > interactor =
-    vtkSmartPointer< vtkRenderWindowInteractor >::New();
-  window->SetInteractor(interactor);
-
-  // Create slice actors
-  image_actors = vtkSmartPointer< TSliceActors >::New();
-  image_actors->SetInputImage(image->GetVTK< vtkImageData >());
-  image_actors->SetAxis(0);
-  image_actors->PushActorsInto(window);
-
-  vtkSmartPointer< vtkImageActorPointPlacer > placer =
-    vtkSmartPointer< vtkImageActorPointPlacer >::New();
-  placer->SetImageActor(image_actors->GetImageActor());
-  // Create a sphere widget
-  sphereWidget =
-    vtkSmartPointer<TSphereWidget>::New();
-  sphereWidget->SetInteractor(interactor);
-  sphereWidget->SetAxis(image_actors->GetAxis()); //sinchronize image pane with sphere plane
-
-  vtkSmartPointer<vtkCallbackCommand> myCallBack =
-    vtkSmartPointer<vtkCallbackCommand>::New();
-  myCallBack->SetCallback(WheelCallbackFunction);
-  myCallBack->SetClientData(sphereWidget);
-  
-  interactor->AddObserver(vtkCommand::MouseWheelForwardEvent, myCallBack);
-  interactor->AddObserver(vtkCommand::MouseWheelBackwardEvent, myCallBack);
-
-  // Begin interaction
-  renderer->ResetCamera(); 
-  window->Render();
-  sphereWidget->On();
-  interactor->Start();
-
-  return(0);
-}
diff --git a/appli/examples/example_TestParameters.cxx b/appli/examples/example_TestParameters.cxx
deleted file mode 100644 (file)
index 2e6e9e0..0000000
+++ /dev/null
@@ -1,129 +0,0 @@
-#include <iostream>
-#include <vector>
-
-#include <cpPlugins/Interface/Parameters.h>
-
-// -------------------------------------------------------------------------
-template< class L >
-void PrintList( const L& lst, const std::string& desc )
-{
-  std::cout << "\t " << desc << ": ";
-  typename L::const_iterator lIt = lst.begin( );
-  for( ; lIt != lst.end( ); ++lIt )
-    std::cout << *lIt << " ## ";
-  std::cout << std::endl;
-}
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  typedef cpPlugins::Interface::Parameters TParameters;
-
-  TParameters::Pointer parameters = TParameters::New( );
-
-  parameters->ConfigureAsString( "StringParam" );
-  parameters->ConfigureAsBool( "BoolParam" );
-  parameters->ConfigureAsInt( "IntParam" );
-  parameters->ConfigureAsUint( "UintParam" );
-  parameters->ConfigureAsReal( "RealParam" );
-  parameters->ConfigureAsStringList( "StringListParam" );
-  parameters->ConfigureAsBoolList( "BoolListParam" );
-  parameters->ConfigureAsIntList( "IntListParam" );
-  parameters->ConfigureAsUintList( "UintListParam" );
-  parameters->ConfigureAsRealList( "RealListParam" );
-
-  std::vector< std::string > choices;
-  choices.push_back( "bat" );
-  choices.push_back( "deux" );
-  choices.push_back( "drei" );
-  choices.push_back( "cuatro" );
-  choices.push_back( "cinque" );
-  parameters->ConfigureAsChoices( "ChoicesParam", choices );
-
-  std::cout << "---------------------------------------------" << std::endl;
-  parameters->Print( std::cout );
-  std::cout << "---------------------------------------------" << std::endl;
-
-  parameters->SetString( "StringParam", "test_value" );
-  parameters->SetBool( "BoolParam", true );
-  parameters->SetInt( "IntParam", -1234567 );
-  parameters->SetUint( "UintParam", 1234567 );
-  parameters->SetReal( "RealParam", 3.14159244444 );
-
-  std::cout << "---------------------------------------------" << std::endl;
-  parameters->Print( std::cout );
-  std::cout << "---------------------------------------------" << std::endl;
-
-  parameters->ClearStringList( "StringListParam" );
-  parameters->ClearBoolList( "BoolListParam" );
-  parameters->ClearIntList( "IntListParam" );
-  parameters->ClearUintList( "UintListParam" );
-  parameters->ClearRealList( "RealListParam" );
-
-  parameters->AddToStringList( "StringListParam", "one" );
-  parameters->AddToStringList( "StringListParam", "two" );
-  parameters->AddToStringList( "StringListParam", "three" );
-  parameters->AddToStringList( "StringListParam", "four" );
-
-  parameters->AddToBoolList( "BoolListParam", 1 );
-  parameters->AddToBoolList( "BoolListParam", 0 );
-  parameters->AddToBoolList( "BoolListParam", 0 );
-  parameters->AddToBoolList( "BoolListParam", 1 );
-  parameters->AddToBoolList( "BoolListParam", 1 );
-
-  parameters->AddToIntList( "IntListParam", 1 );
-  parameters->AddToIntList( "IntListParam", -2 );
-  parameters->AddToIntList( "IntListParam", 3 );
-  parameters->AddToIntList( "IntListParam", -4 );
-  parameters->AddToIntList( "IntListParam", 5 );
-  parameters->AddToIntList( "IntListParam", -6 );
-  parameters->AddToIntList( "IntListParam", 7 );
-  parameters->AddToIntList( "IntListParam", -8 );
-  parameters->AddToIntList( "IntListParam", 9 );
-  parameters->AddToIntList( "IntListParam", -10 );
-  parameters->AddToIntList( "IntListParam", 11 );
-
-  parameters->AddToUintList( "UintListParam", 1 );
-  parameters->AddToUintList( "UintListParam", 2 );
-  parameters->AddToUintList( "UintListParam", 3 );
-  parameters->AddToUintList( "UintListParam", 4 );
-  parameters->AddToUintList( "UintListParam", 5 );
-  parameters->AddToUintList( "UintListParam", 6 );
-  parameters->AddToUintList( "UintListParam", 7 );
-  parameters->AddToUintList( "UintListParam", 8 );
-  parameters->AddToUintList( "UintListParam", 9 );
-  parameters->AddToUintList( "UintListParam", 10 );
-  parameters->AddToUintList( "UintListParam", 11 );
-
-  parameters->AddToRealList( "RealListParam", 1.9 );
-  parameters->AddToRealList( "RealListParam", 2.8 );
-  parameters->AddToRealList( "RealListParam", 3.7 );
-  parameters->AddToRealList( "RealListParam", 4.6 );
-  parameters->AddToRealList( "RealListParam", 5.5 );
-  parameters->AddToRealList( "RealListParam", 6.4 );
-  parameters->AddToRealList( "RealListParam", 7.3 );
-  parameters->AddToRealList( "RealListParam", 8.2 );
-  parameters->AddToRealList( "RealListParam", 9.1 );
-  parameters->AddToRealList( "RealListParam", 1.0012 );
-  parameters->AddToRealList( "RealListParam", 1.131245 );
-
-  std::cout << "---------------------------------------------" << std::endl;
-  parameters->Print( std::cout );
-  std::cout << "---------------------------------------------" << std::endl;
-
-  parameters->SetSelectedChoice( "ChoicesParam", "drei" );
-
-  std::cout << "---------------------------------------------" << std::endl;
-  parameters->Print( std::cout );
-  std::cout << "---------------------------------------------" << std::endl;
-
-  parameters->SetSelectedChoice( "ChoicesParam", "zeven" );
-
-  std::cout << "---------------------------------------------" << std::endl;
-  parameters->Print( std::cout );
-  std::cout << "---------------------------------------------" << std::endl;
-
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_Test_DoubleClick.cxx b/appli/examples/example_Test_DoubleClick.cxx
deleted file mode 100644 (file)
index db795e5..0000000
+++ /dev/null
@@ -1,169 +0,0 @@
-#include <vtkRenderWindow.h>
-#include <vtkRenderWindowInteractor.h>
-#include <vtkRenderer.h>
-#include <vtkSphereSource.h>
-#include <vtkPolyDataMapper.h>
-#include <vtkActor.h>
-#include <vtkSmartPointer.h>
-#include <vtkPointPicker.h>
-#include <vtkCamera.h>
-#include <vtkInteractorStyleTrackballCamera.h>
-#include <vtkObjectFactory.h>
-
-#ifdef WIN32
-#include <windows.h>
-#else
-#endif
-
-#if __cplusplus > 199711L
-#include <chrono>
-#endif
-
-// Define interaction style
-class MouseInteractorStyleDoubleClick : public vtkInteractorStyleTrackballCamera
-{
-public:
-
-       static MouseInteractorStyleDoubleClick* New();
-       vtkTypeMacro(MouseInteractorStyleDoubleClick, vtkInteractorStyleTrackballCamera);
-
-       MouseInteractorStyleDoubleClick() : NumberOfClicks(0), ResetPixelDistance(5), DoubleClickTolerance(1000)
-       {
-               this->PreviousPosition[0] = 0;
-               this->PreviousPosition[1] = 0;
-#ifdef WIN32
-               this->DoubleClickTolerance = GetDoubleClickTime();
-#else
-               // I dont have any idea if this has an equivalent for linux
-               //this->DoubleClickTolerance = GetDoubleClickTime();
-#endif
-       }
-
-       virtual void OnLeftButtonDown()
-       {
-               //std::cout << "Pressed left mouse button." << std::endl;
-               this->NumberOfClicks++;
-
-               if (this->NumberOfClicks > 1)
-               {
-                       this->LastClickTime = this->CurrentClickTime;
-#if __cplusplus <= 199711L
-                       this->CurrentClickTime = time(0) * 1000;
-#else
-                       this->CurrentClickTime = std::chrono::duration_cast<std::chrono::milliseconds>(
-                               std::chrono::system_clock::now().time_since_epoch()
-                               );
-#endif
-
-               }
-               else
-               {
-#if __cplusplus <= 199711L
-                       this->CurrentClickTime = time(0) * 1000;
-#else
-                       this->CurrentClickTime = std::chrono::duration_cast<std::chrono::milliseconds>(
-                               std::chrono::system_clock::now().time_since_epoch()
-                               );
-
-#endif
-               }
-
-               //std::cout << "NumberOfClicks = " << this->NumberOfClicks << std::endl;
-               int pickPosition[2];
-               this->GetInteractor()->GetEventPosition(pickPosition);
-
-               int xdist = pickPosition[0] - this->PreviousPosition[0];
-               int ydist = pickPosition[1] - this->PreviousPosition[1];
-
-               this->PreviousPosition[0] = pickPosition[0];
-               this->PreviousPosition[1] = pickPosition[1];
-
-               int moveDistance = (int)sqrt((double)(xdist*xdist + ydist*ydist));
-
-               // Reset numClicks - If mouse moved further than resetPixelDistance
-               if (moveDistance > this->ResetPixelDistance)
-               {
-                       this->NumberOfClicks = 1;
-               }
-
-
-               if (this->NumberOfClicks == 2)
-               {
-                       double  seconds;
-#if __cplusplus <= 199711L
-                       seconds = difftime(this->CurrentClickTime, this->LastClickTime);
-#else
-                       seconds = this->CurrentClickTime - this->LastClickTime;
-#endif
-                       
-                       if (seconds <= this->DoubleClickTolerance)
-                       {
-                               std::cout << "Double clicked. with " << seconds << " of diference" << std::endl;
-                               this->NumberOfClicks = 0;
-                       }
-                       else
-                       {
-                               std::cout << "Too slow to be considered as a double click" << std::endl;
-                               this->NumberOfClicks = 1;
-                       }
-               }
-               // forward events
-               vtkInteractorStyleTrackballCamera::OnLeftButtonDown();
-       }
-
-
-
-private:
-       unsigned int NumberOfClicks;
-       int PreviousPosition[2];
-       int ResetPixelDistance;
-       double DoubleClickTolerance; // time in miliseconds
-
-#if __cplusplus <= 199711L     
-       time_t LastClickTime;
-       time_t CurrentClickTime;
-#else
-       std::chrono::milliseconds LastClickTime;
-       std::chrono::milliseconds CurrentClickTime;
-#endif
-};
-vtkStandardNewMacro(MouseInteractorStyleDoubleClick);
-
-int main(int, char *[])
-{
-       vtkSmartPointer<vtkSphereSource> sphereSource =
-               vtkSmartPointer<vtkSphereSource>::New();
-       sphereSource->SetCenter(0.0, 0.0, 0.0);
-       sphereSource->SetRadius(5.0);
-       sphereSource->Update();
-
-       vtkSmartPointer<vtkPolyDataMapper> mapper =
-               vtkSmartPointer<vtkPolyDataMapper>::New();
-       mapper->SetInputConnection(sphereSource->GetOutputPort());
-
-       vtkSmartPointer<vtkActor> actor =
-               vtkSmartPointer<vtkActor>::New();
-       actor->SetMapper(mapper);
-
-       vtkSmartPointer<vtkRenderer> renderer =
-               vtkSmartPointer<vtkRenderer>::New();
-       renderer->SetBackground(1, 1, 1); // Background color white
-       renderer->AddActor(actor);
-
-       vtkSmartPointer<vtkRenderWindow> renderWindow =
-               vtkSmartPointer<vtkRenderWindow>::New();
-       renderWindow->AddRenderer(renderer);
-
-       vtkSmartPointer<vtkRenderWindowInteractor> renderWindowInteractor =
-               vtkSmartPointer<vtkRenderWindowInteractor>::New();
-       renderWindowInteractor->SetRenderWindow(renderWindow);
-
-       vtkSmartPointer<MouseInteractorStyleDoubleClick> style =
-               vtkSmartPointer<MouseInteractorStyleDoubleClick>::New();
-       renderWindowInteractor->SetInteractorStyle(style);
-
-       renderWindowInteractor->Initialize();
-       renderWindowInteractor->Start();
-
-       return EXIT_SUCCESS;
-}
\ No newline at end of file
diff --git a/appli/examples/example_Test_Memento.cxx b/appli/examples/example_Test_Memento.cxx
deleted file mode 100644 (file)
index f5deefd..0000000
+++ /dev/null
@@ -1,154 +0,0 @@
-#include <future>
-#include <iostream>
-#include <cpExtensions/IO/MementoState.h>
-#include <cpPlugins/Plugins/BasicFilters/BinaryErodeImageFilter.h>
-
-#include <vtkRenderWindow.h>
-#include <vtkRenderWindowInteractor.h>
-#include <vtkRenderer.h>
-
-#include <itkImageToVTKImageFilter.h>
-
-#ifdef WIN32
-#define myWait Sleep(10000);
-#else
-#define myWait usleep(10000);
-#endif
-
-
-// -------------------------------------------------------------------------
-// type definiftions
-
-typedef cpPlugins::Interface::Interface     TInterface;
-typedef cpPlugins::Interface::ProcessObject TProcessObject;
-typedef cpPlugins::Interface::DataObject    TDataObject;
-typedef cpPlugins::Interface::Image         TImage;
-typedef cpPlugins::Interface::Parameters    TParameters;
-typedef TInterface::TClasses                TClasses;
-
-typedef cpExtensions::Visualization::ImageSliceActors TSliceActors;
-
-typedef cpExtensions::IO::MementoState TMemento;
-typedef cpPlugins::BasicFilters::BinaryErodeImageFilter TBinaryErodeFilter;
-// -------------------------------------------------------------------------
-
-std::string _pathIOplugin = "C://dev//creatis//cpPlugins//build//Debug//cpPluginsIO.dll";
-std::string _pathBasicFiltersPlugin= "C://dev//creatis//cpPlugins//build//Debug//cpPluginsBasicFilters.dll";
-std::string _img = "C://img//SphereVolume.mhd";
-
-int main(int argc, char* argv[])
-{
-  if (argc >= 3)
-  {   
-    _img = argv[1];
-    _pathIOplugin = argv[2];
-    _pathBasicFiltersPlugin = argv[3];
-  }
-
-  // Create interface
-   TInterface plugins;
-  if (!plugins.Load(_pathIOplugin) ||
-      !plugins.Load(_pathBasicFiltersPlugin))
-  {
-    std::cerr << "Failed to load plugins." << std::endl;
-    return(1);
-  }
-
-  // Create reader
-  TProcessObject::Pointer reader;
-  reader = plugins.CreateObject("cpPlugins::IO::ImageReader");
-  if (reader.IsNull())
-  {
-    std::cerr
-      << "No suitable reader found in plugins." << std::endl
-      << "Reader: " << reader.GetPointer() << std::endl
-      << std::endl;
-    return(1);
-  }
-
-  // Configure reader
-  TParameters* reader_params = reader->GetParameters();
-  reader_params->AddToStringList("FileNames", _img);
-
-  // Execute pipeline
-  std::string err = reader->Update();
-  if (err != "")
-  {
-    std::cerr << "ERROR: " << err << std::endl;
-    return(1);
-
-  }
-
-  TImage* image = reader->GetOutput< TImage >("Output");
-
-  //first memento
-  TMemento* _memento = new TMemento();
-  _memento->SetToMemento(image);
-  
- /* auto retrievedImage = _memento->GetFromMemento(1);
-  image->SetVTK(retrievedImage);
-*/
-  // filter 1 (state 2) ---------------------------------------------------------------
-
-  TProcessObject::Pointer binaryFilter;
-  binaryFilter = plugins.CreateObject("cpPlugins::BasicFilters::BinaryErodeImageFilter");
-  if (binaryFilter.IsNull())
-  {
-    std::cerr
-      << "No suitable reader found in plugins." << std::endl
-      << "Reader: " << binaryFilter.GetPointer() << std::endl
-      << std::endl;
-    return(1);
-  }
-
-  // filter 1
-  TDataObject * readerOut = reader->GetOutput< TDataObject >("Output");
-  binaryFilter->SetInput("Input", readerOut);
-  binaryFilter->Update();
-  _memento->SetToMemento(binaryFilter->GetOutput< TImage >("Output"));
-
-  myWait;
-
-  vtkSmartPointer<vtkImageData> retrievedImage = _memento->MementoUndo();
-  
-  // the retrieved image could not be ready if this happens the function returns null
-  // for the test we made the example wait before try to read but this is the way 
-  // to handle this
-  if (retrievedImage == nullptr)
-  {
-    return (1);
-  }
-  
-  //image->SetVTK(retrievedImage.Get()); // this metohd is not implemented yet
-
-  // Configure visualization objects
-  vtkSmartPointer< vtkRenderer > renderer =
-    vtkSmartPointer< vtkRenderer >::New();
-  renderer->SetBackground(0.1, 0.1, 0.1);
-
-  vtkSmartPointer< vtkRenderWindow > window =
-    vtkSmartPointer< vtkRenderWindow >::New();
-  window->AddRenderer(renderer);
-  window->SetSize(600, 600);
-
-  // Set up the interaction
-  vtkSmartPointer< vtkRenderWindowInteractor > interactor =
-    vtkSmartPointer< vtkRenderWindowInteractor >::New();
-  window->SetInteractor(interactor);
-
-  // Create slice actors
-  vtkSmartPointer< TSliceActors > image_actors =
-    vtkSmartPointer< TSliceActors >::New();
-  //image_actors->SetInputImage(image->GetVTK< vtkImageData >(), 2);
-  image_actors->SetInputImage(retrievedImage);
-  image_actors->SetAxis(2);
-  image_actors->PushActorsInto(window);
-
-  // Begin interaction
-  renderer->ResetCamera();
-  window->Render();
-  interactor->Start();
-
-  return 0;
-
-}
diff --git a/appli/examples/example_Test_async.cxx b/appli/examples/example_Test_async.cxx
deleted file mode 100644 (file)
index fcd54cf..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-#include <future>
-#include <iostream>
-#include <vector>
-#ifdef WIN32
-#include <windows.h>
-#else
-#include <unistd.h>
-#endif
-
-#ifdef WIN32
-#define mysleep Sleep(2000);
-#else
-#define mysleep usleep(2000);
-#endif
-
-class Test
-{
-private:
-  std::vector<int> state;
-  std::vector<int>::iterator it;
-  std::vector<bool> isAvailable;
-public:
-  Test()
-  {
-    this->it = this->state.begin();
-  }
-
-  void called_from_async()
-  {
-
-    std::cout << "called from async" << std::endl;
-    this->state.insert(this->it ,10);
-  }
-
-  std::string returned_from_async() {
-    mysleep;
-    return "Async call";
-  }
-
-  template<class ASYNC>
-  void print_results(ASYNC &f)
-  {
-    std::string result = f.get();
-    std::cout << result.c_str() << std::endl;
-  }
-
-  int getState(int pos)
-  {
-    return this->state.at(pos);
-  }
-
-  int getStateSize()
-  {
-    return this->state.size();
-  }
-};
-
-int main() {
-  Test test;
-  std::future<void> result(std::async(&Test::called_from_async, &test));
-
-  auto f1 = std::async(std::launch::async, &Test::returned_from_async, &test);
-  std::cout << "Message from main." << std::endl;
-  do
-  {
-    std::cout << test.getStateSize();
-  } while (test.getStateSize()<1);
-
-#ifdef _DEBUG
-  auto i = 0;
-  std::cout << "wait for close";
-  std::cin >> i;
-#endif
-
-  return 0;
-
-}
diff --git a/appli/examples/example_View2DImage.cxx b/appli/examples/example_View2DImage.cxx
deleted file mode 100644 (file)
index be654b2..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <string>
-#include <vector>
-
-#include <vtkRenderer.h>
-#include <vtkRenderWindow.h>
-#include <vtkRenderWindowInteractor.h>
-
-#include <cpPlugins/Interface/Plugins.h>
-#include <cpPlugins/Interface/Image.h>
-
-#include <cpExtensions/Visualization/ImageSliceActors.h>
-
-// -------------------------------------------------------------------------
-typedef cpPlugins::Interface::Plugins                 TPlugins;
-typedef cpPlugins::Interface::Image                   TImage;
-typedef cpExtensions::Visualization::ImageSliceActors TSliceActors;
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  if( argc < 3 )
-  {
-    std::cerr
-      << "Usage: " << argv[ 0 ]
-      << " plugins_file input_image"
-      << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Load plugins
-  cpPlugins::Interface::Plugins plugins;
-  if( !plugins.LoadPluginsPath( argv[ 1 ] ) )
-  {
-    std::cerr << "Failed to load plugins." << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Associate filenames
-  std::vector< std::string > fnames;
-  for( int i = 2; i < argc; ++i )
-    fnames.push_back( argv[ i ] );
-  
-  // Read image
-  std::string name = "";
-  try
-  {
-    name = plugins.ReadImage( fnames, "" );
-  }
-  catch( std::exception& err )
-  {
-    std::cerr << err.what( ) << std::endl;
-    return( 1 );
-
-  } // yrt
-  TImage* image = plugins.GetData< TImage >( name );
-
-  // Configure visualization objects
-  vtkSmartPointer< vtkRenderer > renderer =
-    vtkSmartPointer< vtkRenderer >::New( );
-  renderer->SetBackground( 0.1, 0.3, 0.5 );
-
-  vtkSmartPointer< vtkRenderWindow > window =
-    vtkSmartPointer< vtkRenderWindow >::New( );
-  window->AddRenderer( renderer );
-  window->SetSize( 600, 600 );
-
-  // Set up the interaction
-  vtkSmartPointer< vtkRenderWindowInteractor > interactor =
-    vtkSmartPointer< vtkRenderWindowInteractor >::New( );
-  window->SetInteractor( interactor );
-
-  // Create slice actors
-  vtkSmartPointer< TSliceActors > image_actors =
-    vtkSmartPointer< TSliceActors >::New( );
-  image_actors->SetInputImage( image->GetVTK< vtkImageData >( ) );
-  image_actors->SetAxis( 2 );
-  image_actors->PushActorsInto( window );
-
-  // Activate seed widget
-  if( argc == 4 )
-  {
-    TSliceActors::TStyle* style =
-      dynamic_cast< TSliceActors::TStyle* >( image_actors->GetStyle( ) );
-    if( style != NULL )
-    {
-      if( std::string( argv[ 3 ] ) == std::string( "seed" ) )
-        style->SeedWidgetOn( );
-
-    } // fi
-
-  } // fi
-
-  // Begin interaction
-  renderer->ResetCamera( );
-  window->Render( );
-  interactor->Start( );
-
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_ViewImageThreshold.cxx b/appli/examples/example_ViewImageThreshold.cxx
deleted file mode 100644 (file)
index 85796af..0000000
+++ /dev/null
@@ -1,165 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <sstream>
-#include <string>
-#include <vector>
-
-#include <vtkRenderer.h>
-#include <vtkRenderWindow.h>
-#include <vtkRenderWindowInteractor.h>
-
-#include <cpPlugins/Interface/Plugins.h>
-#include <cpPlugins/Interface/Image.h>
-
-#include <cpExtensions/Visualization/ImageSliceActors.h>
-
-// -------------------------------------------------------------------------
-typedef cpPlugins::Interface::Plugins                 TPlugins;
-typedef cpPlugins::Interface::Image                   TImage;
-typedef cpExtensions::Visualization::ImageSliceActors TSliceActors;
-
-// -------------------------------------------------------------------------
-int main( int argc, char* argv[] )
-{
-  if( argc < 9 )
-  {
-    std::cerr
-      << "Usage: " << argv[ 0 ]
-      << " plugins_file input_image"
-      << " lower1 upper1 lower2 upper2 lower3 upper3"
-      << std::endl;
-    return( 1 );
-
-  } // fi
-  std::string plugins_file = argv[ 1 ];
-  std::string input_image_file = argv[ 2 ];
-  double lower[ 3 ], upper[ 3 ];
-  lower[ 0 ] = std::atof( argv[ 3 ] );
-  upper[ 0 ] = std::atof( argv[ 4 ] );
-  lower[ 1 ] = std::atof( argv[ 5 ] );
-  upper[ 1 ] = std::atof( argv[ 6 ] );
-  lower[ 2 ] = std::atof( argv[ 7 ] );
-  upper[ 2 ] = std::atof( argv[ 8 ] );
-
-  // Load plugins
-  cpPlugins::Interface::Plugins plugins;
-  if( !plugins.LoadPluginsPath( plugins_file ) )
-  {
-    std::cerr << "Failed to load plugins." << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Read image
-  std::string image_name = "";
-  try
-  {
-    image_name = plugins.ReadImage( input_image_file, "" );
-  }
-  catch( std::exception& err )
-  {
-    std::cerr << err.what( ) << std::endl;
-    return( 1 );
-
-  } // yrt
-
-  // Apply three a two-level threshold
-  std::vector< std::string > thresholds_names;
-  std::string filter_name =
-    "cpPlugins::BasicFilters::BinaryThresholdImageFilter";
-  for( int i = 0; i < 3; ++i )
-  {
-    if( !( plugins.ActivateFilter( filter_name ) ) )
-    {
-      std::cerr << "No filter found" << std::endl;
-      return( 1 );
-
-    } // fi
-
-    // Connect inputs
-    TPlugins::TStringContainer input_names;
-    plugins.GetActiveFilterInputsNames( input_names );
-    for( auto iIt = input_names.begin( ); iIt != input_names.end( ); ++iIt )
-      plugins.ConnectInputInActiveFilter( image_name, *iIt );
-
-    // Configure
-    TPlugins::TParameters* filter_params = plugins.GetActiveFilterParameters( );
-    filter_params->SetReal( "LowerThresholdValue", lower[ i ] );
-    filter_params->SetReal( "UpperThresholdValue", upper[ i ] );
-    filter_params->SetUint( "InsideValue", i + 10 );
-    filter_params->SetUint( "OutsideValue", 0 );
-
-    // Configure outputs
-    TPlugins::TStringContainer output_names;
-    plugins.GetActiveFilterOutputsNames( output_names );
-
-    std::stringstream obj_name_str;
-    obj_name_str << "output_" << i;
-    plugins.SetOutputNameInActiveFilter(
-      obj_name_str.str( ),
-      *( output_names.begin( ) )
-      );
-
-    // Execute
-    output_names.clear( );
-    try
-    {
-      if( !( plugins.UpdateActiveFilter( output_names, image_name ) ) )
-      {
-        std::cerr << "Error executing filter." << std::endl;
-        return( 1 );
-
-      } // fi
-    }
-    catch( std::exception& err )
-    {
-      std::cerr << err.what( ) << std::endl;
-      return( 1 );
-
-    } // yrt
-    thresholds_names.push_back( *( output_names.begin( ) ) );
-
-    plugins.DeactivateFilter( );
-
-  } // rof
-  
-  // Get both images
-  TImage* image = plugins.GetData< TImage >( image_name );
-  TImage* thr0 = plugins.GetData< TImage >( thresholds_names[ 0 ] );
-  TImage* thr1 = plugins.GetData< TImage >( thresholds_names[ 1 ] );
-  TImage* thr2 = plugins.GetData< TImage >( thresholds_names[ 2 ] );
-
-  // Configure visualization objects
-  vtkSmartPointer< vtkRenderer > renderer =
-    vtkSmartPointer< vtkRenderer >::New( );
-  renderer->SetBackground( 0.3, 0.3, 0.3 );
-
-  vtkSmartPointer< vtkRenderWindow > window =
-    vtkSmartPointer< vtkRenderWindow >::New( );
-  window->AddRenderer( renderer );
-  window->SetSize( 600, 600 );
-
-  // Set up the interaction
-  vtkSmartPointer< vtkRenderWindowInteractor > interactor =
-    vtkSmartPointer< vtkRenderWindowInteractor >::New( );
-  window->SetInteractor( interactor );
-
-  // Create slice actors
-  vtkSmartPointer< TSliceActors > image_actors =
-    vtkSmartPointer< TSliceActors >::New( );
-  image_actors->SetInputImage( image->GetVTK< vtkImageData >( ) );
-  image_actors->AddBinaryImage( thr0->GetVTK< vtkImageData >( ), 1, 0, 0 );
-  image_actors->AddBinaryImage( thr1->GetVTK< vtkImageData >( ), 0, 1, 0 );
-  image_actors->AddBinaryImage( thr2->GetVTK< vtkImageData >( ), 0, 0, 1 );
-  image_actors->SetAxis( 2 );
-  image_actors->PushActorsInto( window );
-
-  // Begin interaction
-  renderer->ResetCamera( );
-  window->Render( );
-  interactor->Start( );
-
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/appli/examples/example_WorkspaceSandBox.cxx b/appli/examples/example_WorkspaceSandBox.cxx
deleted file mode 100644 (file)
index 3cff6eb..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-#include <cstdlib>
-#include <iostream>
-#include <cpPlugins/Interface/Workspace.h>
-
-#include <tinyxml/tinyxml.h>
-
-int main( int argc, char* argv[] )
-{
-  if( argc < 2 )
-  {
-    std::cerr
-      << "Usage: " << argv[ 0 ] << " filename" << std::endl;
-    return( 1 );
-  }
-  std::string filename = argv[ 1 ];
-
-  // Load workspace
-  cpPlugins::Interface::Workspace ws;
-  std::string err = ws.LoadWorkspace( filename );
-  if( err != "" )
-    std::cout
-      << "Errors caught while loading workspace: "
-      << std::endl << err << std::endl;
-
-  err = ws.Execute( );
-  if( err != "" )
-  {
-    std::cerr << "Error caught: " << std::endl << err << std::endl;
-    return( 1 );
-
-  } // fi
-  return( 0 );
-}
-
-// eof - $RCSfile$
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
deleted file mode 100644 (file)
index 7db97e9..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-CONFIGURE_FILE(
-  cpPluginsConfig.cmake.in
-  ${PROJECT_BINARY_DIR}/cpPluginsConfig.cmake
-  @ONLY
-  )
-
-## ========================
-## -- Installation rules --
-## ========================
-
-INSTALL(
-  FILES
-  ${PROJECT_BINARY_DIR}/cpPluginsConfig.cmake
-  DESTINATION share/cmake
-  )
-
-## eof - $RCSfile$
diff --git a/cmake/cpPluginsConfig.cmake.in b/cmake/cpPluginsConfig.cmake.in
deleted file mode 100644 (file)
index 340489d..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-# ===================================
-# -- Some configurations variables --
-# ===================================
-
-SET(USE_QT4 "@QT4_FOUND@")
-
-# =======================
-# -- Find dependencies --
-# =======================
-
-# Find ITK and VTK
-SET(ITK_DIR @ITK_DIR@)
-FIND_PACKAGE(ITK REQUIRED)
-INCLUDE(${ITK_USE_FILE})
-
-SET(VTK_DIR @VTK_DIR@)
-FIND_PACKAGE(VTK REQUIRED)
-INCLUDE(${VTK_USE_FILE})
-
-# Do not use itk-vtk glue --> problems ahead!!!
-IF(ITKVtkGlue_LOADED)
-  MESSAGE(FATAL_ERROR "ITKVtkGlue module is available. Please re-compile your ITK without it. It could lead to nasty compilation problems... Just waiting for Kitware to solve it.")
-ENDIF(ITKVtkGlue_LOADED)
-
-IF(USE_QT4 EQUAL "1")
-  SET(QT_QMAKE_EXECUTABLE @QT_QMAKE_EXECUTABLE@)
-  FIND_PACKAGE(Qt4 REQUIRED)
-  INCLUDE(${QT_USE_FILE})
-
-  ## Check for required vtk-qt4 modules
-  SET(
-    vtk_required_modules
-    vtkGUISupportQt
-    vtkGUISupportQtOpenGL
-    )
-  FOREACH(vtk_module ${vtk_required_modules})
-    IF(NOT ${vtk_module}_LOADED)
-      MESSAGE(
-        FATAL_ERROR
-        "${vtk_module} module is required but not available."
-        )
-    ENDIF(NOT ${vtk_module}_LOADED)
-  ENDFOREACH(vtk_module)
-ENDIF(USE_QT4 EQUAL "1")
-
-
-# =========================
-# -- Include directories --
-# =========================
-
-INCLUDE_DIRECTORIES(
-  @PROJECT_SOURCE_DIR@/lib
-  @PROJECT_SOURCE_DIR@/lib/third_party
-  @PROJECT_SOURCE_DIR@/lib/third_party/ItkVtkGlue
-  @PROJECT_BINARY_DIR@/lib
-  @PROJECT_BINARY_DIR@/lib/third_party
-  @PROJECT_BINARY_DIR@/lib/third_party/ItkVtkGlue
-  @CMAKE_INSTALL_PREFIX@/include
-  @CMAKE_INSTALL_PREFIX@/include/third_party
-  @CMAKE_INSTALL_PREFIX@/include/third_party/ItkVtkGlue
-  )
-
-# =========================
-# -- Library directories --
-# =========================
-
-IF(MSVC)
-  LINK_DIRECTORIES(
-    @PROJECT_BINARY_DIR@/$(ConfigurationName)
-    @CMAKE_INSTALL_PREFIX@/bin
-    @CMAKE_INSTALL_PREFIX@/lib
-    )
-ELSE(MSVC)
-  LINK_DIRECTORIES(
-    @PROJECT_BINARY_DIR@
-    @CMAKE_INSTALL_PREFIX@/bin
-    @CMAKE_INSTALL_PREFIX@/lib
-    )
-ENDIF(MSVC)
-
-# ===================
-# -- Library names --
-# ===================
-
-SET(cpExtensions_LIBRARY cpExtensions)
-SET(cpPlugins_Interface_LIBRARY cpPlugins_Interface)
-SET(cpPlugins_Pluma_LIBRARY cpPlugins_Pluma)
-SET(cpPlugins_LIBRARY cpPlugins)
-
-# ======================
-# -- Executable names --
-# ======================
-
-IF(MSVC)
-  FIND_PROGRAM(
-    cpPlugins_createHost_APP
-    NAMES cpPlugins_createHost
-    HINTS /usr /usr/local
-    PATHS @CMAKE_INSTALL_PREFIX@/bin @PROJECT_BINARY_DIR@/Debug @PROJECT_BINARY_DIR@/Release @PROJECT_BINARY_DIR@/MinSizeRel @PROJECT_BINARY_DIR@/RelWithDebInfo
-    PATH_SUFFIXES bin sbin
-    DOC "Where is cpPlugins_createHost?"
-    )
-ELSE(MSVC)
-  FIND_PROGRAM(
-    cpPlugins_createHost_APP
-    NAMES cpPlugins_createHost
-    HINTS /usr /usr/local
-    PATHS @CMAKE_INSTALL_PREFIX@/bin @PROJECT_BINARY_DIR@
-    PATH_SUFFIXES bin sbin
-    DOC "Where is cpPlugins_createHost?"
-    )
-ENDIF(MSVC)
-
-## eof - $RCSfile$
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
deleted file mode 100644 (file)
index bc9f3fa..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-SUBDIRS(
-  cpExtensions
-  cpPlugins
-  third_party
-  )
-IF(USE_QT4)
-  SUBDIRS(
-    cpPipelineEditor
-    )
-ENDIF(USE_QT4)
-
-
-## eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/BezierCurveFunction.h b/lib/cpExtensions/Algorithms/BezierCurveFunction.h
deleted file mode 100644 (file)
index 2deba45..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__BEZIERCURVEFUNCTION__H__
-#define __CPEXTENSIONS__ALGORITHMS__BEZIERCURVEFUNCTION__H__
-
-#include <vector>
-#include <itkFunctionBase.h>
-#include <itkMatrix.h>
-
-namespace cpExtensions
-{
-  namespace Algorithms
-  {
-    /**
-     * Uses the De Casteljau's algorithm.
-     */
-    template< class V >
-    class BezierCurveFunction
-      : public itk::FunctionBase< typename V::ValueType, V >
-    {
-    public:
-      typedef BezierCurveFunction                           Self;
-      typedef itk::FunctionBase< typename V::ValueType, V > Superclass;
-      typedef itk::SmartPointer< Self >                     Pointer;
-      typedef itk::SmartPointer< const Self >               ConstPointer;
-
-      typedef V                     TVector;
-      typedef typename V::ValueType TScalar;
-
-      typedef
-      itk::Matrix< TScalar, TVector::Dimension, TVector::Dimension >
-      TFrame;
-      typedef std::vector< TVector > TVectorsContainer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( BezierCurveFunction, itkFunctionBase );
-
-    public:
-      virtual void AddPoint( const TVector& v );
-      virtual unsigned int GetNumberOfPoints( ) const;
-
-      virtual TVector Evaluate( const TScalar& u ) const;
-      virtual TFrame EvaluateFrenetFrame( const TScalar& u ) const;
-      virtual TScalar EvaluateLength( ) const;
-
-    protected:
-      BezierCurveFunction( );
-      virtual ~BezierCurveFunction( ) { }
-
-      void _UpdateDerivative( ) const;
-
-    private:
-      // Purposely not implemented
-      BezierCurveFunction( const Self& other );
-      Self& operator=( const Self& other );
-
-    protected:
-      TVectorsContainer m_Vectors;
-      mutable Pointer   m_Derivative;
-      mutable bool      m_DerivativeUpdated;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-#include <cpExtensions/Algorithms/BezierCurveFunction.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __CPEXTENSIONS__ALGORITHMS__BEZIERCURVEFUNCTION__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/BezierCurveFunction.hxx b/lib/cpExtensions/Algorithms/BezierCurveFunction.hxx
deleted file mode 100644 (file)
index 684360f..0000000
+++ /dev/null
@@ -1,155 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__BEZIERCURVEFUNCTION__HXX__
-#define __CPEXTENSIONS__ALGORITHMS__BEZIERCURVEFUNCTION__HXX__
-
-// -------------------------------------------------------------------------
-template< class V >
-void cpExtensions::Algorithms::BezierCurveFunction< V >::
-AddPoint( const TVector& v )
-{
-  this->m_Vectors.push_back( v );
-  this->m_DerivativeUpdated = false;
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-template< class V >
-unsigned int cpExtensions::Algorithms::BezierCurveFunction< V >::
-GetNumberOfPoints( ) const
-{
-  return( this->m_Vectors.size( ) );
-}
-
-// -------------------------------------------------------------------------
-template< class V >
-typename cpExtensions::Algorithms::BezierCurveFunction< V >::
-TVector cpExtensions::Algorithms::BezierCurveFunction< V >::
-Evaluate( const TScalar& u ) const
-{
-  TVectorsContainer Q = this->m_Vectors;
-  unsigned int n = Q.size( );
-  TScalar _1u = TScalar( 1 ) - u;
-
-  for( unsigned int k = 1; k < n; k++ )
-  {
-    // CM Fixed a bug appearing under Windows : changed the stopping
-    // condition from <= to <. Otherwise, on the last step, an element out
-    // of the range of vector Q is accessed (Q[ i + 1 ])...
-    for( unsigned int i = 0; i < n - k; i++ )
-      Q[ i ] = ( Q[ i ] * _1u ) + ( Q[ i + 1 ] * u );
-
-  } // rof
-  return( Q[ 0 ] );
-}
-
-// -------------------------------------------------------------------------
-template< class V >
-typename cpExtensions::Algorithms::BezierCurveFunction< V >::
-TFrame cpExtensions::Algorithms::BezierCurveFunction< V >::
-EvaluateFrenetFrame( const TScalar& u ) const
-{
-  TFrame fr;
-  fr.Fill( TScalar( 0 ) );
-  if( TVector::Dimension == 2 )
-  {
-    this->_UpdateDerivative( );
-    this->m_Derivative->_UpdateDerivative( );
-
-    TVector vT = this->m_Derivative->Evaluate( u );
-    TScalar nvT = vT.GetNorm( );
-    if( TScalar( 0 ) < nvT )
-      vT /= nvT;
-
-    fr[ 0 ][ 0 ] = vT[ 0 ];
-    fr[ 1 ][ 0 ] = vT[ 1 ];
-
-    fr[ 0 ][ 1 ] = -vT[ 1 ];
-    fr[ 1 ][ 1 ] =  vT[ 0 ];
-  }
-  else if( TVector::Dimension == 3 )
-  {
-    this->_UpdateDerivative( );
-    this->m_Derivative->_UpdateDerivative( );
-    TVector vT = this->m_Derivative->Evaluate( u );
-    TScalar nvT = vT.GetNorm( );
-    if( nvT > TScalar( 0 ) )
-    {
-      vT /= nvT;
-      TVector vN = this->m_Derivative->m_Derivative->Evaluate( u );
-      TScalar nvN = vN.GetNorm( );
-      if( nvT > TScalar( 0 ) )
-      {
-        vN /= nvN;
-        TVector vB;
-        vB[ 0 ] = ( vT[ 1 ] * vN[ 2 ] ) - ( vT[ 2 ] * vN[ 1 ] );
-        vB[ 1 ] = ( vT[ 2 ] * vN[ 0 ] ) - ( vT[ 0 ] * vN[ 2 ] );
-        vB[ 2 ] = ( vT[ 0 ] * vN[ 1 ] ) - ( vT[ 1 ] * vN[ 0 ] );
-
-        for( unsigned int d = 0; d < 3; d++ )
-        {
-          fr[ d ][ 0 ] = vT[ d ];
-          fr[ d ][ 1 ] = vN[ d ];
-          fr[ d ][ 2 ] = vB[ d ];
-
-        } // rof
-      }
-      else
-        std::cerr << "ERROR normal" << std::endl;
-    }
-    else
-      std::cerr << "ERROR tangent" << std::endl;
-
-  } // fi
-  return( fr );
-}
-
-// -------------------------------------------------------------------------
-template< class V >
-typename cpExtensions::Algorithms::BezierCurveFunction< V >::
-TScalar cpExtensions::Algorithms::BezierCurveFunction< V >::
-EvaluateLength( ) const
-{
-  unsigned int n = this->GetNumberOfPoints( ) << 1;
-  TScalar d = TScalar( 0 );
-  TVector v0 = this->Evaluate( 0 );
-  for( unsigned int i = 1; i < n; i++ )
-  {
-    TVector v1 = this->Evaluate( TScalar( i ) / TScalar( n - 1 ) );
-    d += ( v1 - v0 ).GetNorm( );
-    v0 = v1;
-
-  } // rof
-  return( d );
-}
-
-// -------------------------------------------------------------------------
-template< class V >
-cpExtensions::Algorithms::BezierCurveFunction< V >::
-BezierCurveFunction( )
-  : Superclass( ),
-    m_DerivativeUpdated( false )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class V >
-void cpExtensions::Algorithms::BezierCurveFunction< V >::
-_UpdateDerivative( ) const
-{
-  if( this->m_DerivativeUpdated )
-    return;
-
-  this->m_Derivative = Self::New( );
-  unsigned int n = this->m_Vectors.size( ) - 1;
-  for( unsigned int i = 0; i < n; i++ )
-    this->m_Derivative->AddPoint(
-      TScalar( n ) * ( this->m_Vectors[ i + 1 ] - this->m_Vectors[ i ] )
-      );
-}
-
-#endif // __CPEXTENSIONS__ALGORITHMS__BEZIERCURVEFUNCTION__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/GradientFunctionBase.h b/lib/cpExtensions/Algorithms/GradientFunctionBase.h
deleted file mode 100644 (file)
index 0472cc4..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__GRADIENTFUNCTIONBASE__H__
-#define __CPEXTENSIONS__ALGORITHMS__GRADIENTFUNCTIONBASE__H__
-
-#include <map>
-#include <itkImageFunction.h>
-
-namespace cpExtensions
-{
-  namespace Algorithms
-  {
-    /**
-     */
-    template< class G >
-    class GradientFunctionBase
-      : public itk::ImageFunction< G, typename G::PixelType::ValueType, typename G::PixelType::ValueType >
-    {
-    public:
-      // Types from input arguments
-      typedef G                           TGradient;
-      typedef typename G::PixelType       TVector;
-      typedef typename TVector::ValueType TScalar;
-      itkStaticConstMacro( Dimension, unsigned int, G::ImageDimension );
-
-      // Standard itk types
-      typedef GradientFunctionBase                      Self;
-      typedef itk::ImageFunction< G, TScalar, TScalar > Superclass;
-      typedef itk::SmartPointer< Self >                 Pointer;
-      typedef itk::SmartPointer< const Self >           ConstPointer;
-
-      // Types from base itk::ImageFunction
-      typedef typename Superclass::InputType           TInput;
-      typedef typename Superclass::OutputType          TOutput;
-      typedef typename Superclass::PointType           TPoint;
-      typedef typename Superclass::ContinuousIndexType TContIndex;
-      typedef typename Superclass::IndexType           TIndex;
-
-      // Sparse buffer
-      typedef std::map< TIndex, TOutput, typename TIndex::LexicographicCompare > TBuffer;
-
-    public:
-      itkTypeMacro( GradientFunctionBase, itkImageFunction );
-
-      itkBooleanMacro( BufferResults );
-      itkGetConstMacro( BufferResults, bool );
-      itkSetMacro( BufferResults, bool );
-
-    public:
-      virtual void ResetBuffer( );
-
-      virtual TOutput Evaluate( const TPoint& p ) const;
-      virtual TOutput EvaluateAtIndex( const TIndex& i ) const;
-      virtual TOutput EvaluateAtContinuousIndex( const TContIndex& i ) const;
-
-    protected:
-      GradientFunctionBase( );
-      virtual ~GradientFunctionBase( );
-
-      virtual TOutput _Evaluate( const TIndex& i ) const = 0;
-
-    private:
-      // Purposely not implemented.
-      GradientFunctionBase( const Self& );
-      void operator=( const Self& );
-
-    protected:
-      mutable TBuffer m_Buffer;
-      bool m_BufferResults;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-#include <cpExtensions/Algorithms/GradientFunctionBase.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __CPEXTENSIONS__ALGORITHMS__GRADIENTFUNCTIONBASE__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/GradientFunctionBase.hxx b/lib/cpExtensions/Algorithms/GradientFunctionBase.hxx
deleted file mode 100644 (file)
index cc0bac3..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__GRADIENTFUNCTIONBASE__HXX__
-#define __CPEXTENSIONS__ALGORITHMS__GRADIENTFUNCTIONBASE__HXX__
-
-// -------------------------------------------------------------------------
-template< class G >
-void cpExtensions::Algorithms::GradientFunctionBase< G >::
-ResetBuffer( )
-{
-  this->m_Buffer.clear( );
-}
-
-// -------------------------------------------------------------------------
-template< class G >
-typename cpExtensions::Algorithms::GradientFunctionBase< G >::
-TOutput cpExtensions::Algorithms::GradientFunctionBase< G >::
-Evaluate( const TPoint& p ) const
-{
-  TIndex i;
-  this->GetInputImage( )->TransformPhysicalPointToIndex( p, i );
-  return( this->EvaluateAtIndex( i ) );
-}
-
-// -------------------------------------------------------------------------
-template< class G >
-typename cpExtensions::Algorithms::GradientFunctionBase< G >::
-TOutput cpExtensions::Algorithms::GradientFunctionBase< G >::
-EvaluateAtIndex( const TIndex& i ) const
-{
-  TOutput res = TOutput( 0 );
-  bool computed = false;
-  if( this->m_BufferResults )
-  {
-    typename TBuffer::const_iterator bIt = this->m_Buffer.find( i );
-    computed = ( bIt != this->m_Buffer.end( ) );
-    res = ( computed )? bIt->second: res;
-
-  } // fi
-
-  if( !computed )
-    res = this->_Evaluate( i );
-
-  if( this->m_BufferResults )
-    this->m_Buffer[ i ] = res;
-  return( res );
-}
-
-// -------------------------------------------------------------------------
-template< class G >
-typename cpExtensions::Algorithms::GradientFunctionBase< G >::
-TOutput cpExtensions::Algorithms::GradientFunctionBase< G >::
-EvaluateAtContinuousIndex( const TContIndex& i ) const
-{
-  TPoint p;
-  this->GetInputImage( )->TransformContinuousIndexToPhysicalPoint( i, p );
-  return( this->Evaluate( p ) );
-}
-
-// -------------------------------------------------------------------------
-template< class G >
-cpExtensions::Algorithms::GradientFunctionBase< G >::
-GradientFunctionBase( )
-  : Superclass( ),
-    m_BufferResults( false )
-{
-  this->m_Buffer.clear( );
-}
-
-// -------------------------------------------------------------------------
-template< class G >
-cpExtensions::Algorithms::GradientFunctionBase< G >::
-~GradientFunctionBase( )
-{
-  this->m_Buffer.clear( );
-}
-
-#endif // __CPEXTENSIONS__ALGORITHMS__GRADIENTFUNCTIONBASE__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/GulsunTekMedialness.h b/lib/cpExtensions/Algorithms/GulsunTekMedialness.h
deleted file mode 100644 (file)
index 2fdf61c..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__GULSUNTEKMEDIALNESS__H__
-#define __CPEXTENSIONS__ALGORITHMS__GULSUNTEKMEDIALNESS__H__
-
-#include <vector>
-#include <cpExtensions/Algorithms/GradientFunctionBase.h>
-
-namespace cpExtensions
-{
-  namespace Algorithms
-  {
-    /**
-     */
-    template< class G >
-    class GulsunTekMedialness
-      : public GradientFunctionBase< G >
-    {
-    public:
-      // Standard itk types
-      typedef GulsunTekMedialness             Self;
-      typedef GradientFunctionBase< G >       Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-      // Types from superclass
-      typedef typename Superclass::TGradient  TGradient;
-      typedef typename Superclass::TVector    TVector;
-      typedef typename Superclass::TScalar    TScalar;
-      typedef typename Superclass::TInput     TInput;
-      typedef typename Superclass::TOutput    TOutput;
-      typedef typename Superclass::TPoint     TPoint;
-      typedef typename Superclass::TContIndex TContIndex;
-      typedef typename Superclass::TIndex     TIndex;
-      typedef typename Superclass::TBuffer    TBuffer;
-
-      typedef typename TIndex::OffsetType TOffset;
-      typedef std::vector< double >       TProfile;
-      typedef std::vector< TOffset >      TOffsets;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( GulsunTekMedialness, GradientFunctionBase );
-
-      itkGetConstMacro( MinRadius, double );
-      itkGetConstMacro( MaxRadius, double );
-      itkGetConstMacro( ProfileSampling, unsigned int );
-      itkGetConstMacro( RadialSampling, unsigned int );
-
-      itkSetMacro( MinRadius, double );
-      itkSetMacro( MaxRadius, double );
-      itkSetMacro( ProfileSampling, unsigned int );
-      itkSetMacro( RadialSampling, unsigned int );
-
-    protected:
-      GulsunTekMedialness( );
-      virtual ~GulsunTekMedialness( );
-
-      virtual TOutput _Evaluate( const TIndex& i ) const;
-
-    private:
-      // Purposely not implemented.
-      GulsunTekMedialness( const Self& );
-      void operator=( const Self& );
-
-    protected:
-      double       m_MinRadius;
-      double       m_MaxRadius;
-      unsigned int m_ProfileSampling;
-      unsigned int m_RadialSampling;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-#include <cpExtensions/Algorithms/GulsunTekMedialness.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __CPEXTENSIONS__ALGORITHMS__GULSUNTEKMEDIALNESS__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/GulsunTekMedialness.hxx b/lib/cpExtensions/Algorithms/GulsunTekMedialness.hxx
deleted file mode 100644 (file)
index 01a278b..0000000
+++ /dev/null
@@ -1,197 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__GULSUNTEKMEDIALNESS__HXX__
-#define __CPEXTENSIONS__ALGORITHMS__GULSUNTEKMEDIALNESS__HXX__
-
-#include <cmath>
-#include <vnl/vnl_math.h>
-
-
-#include <queue>
-#include <map>
-#include <set>
-
-
-
-
-// -------------------------------------------------------------------------
-template< class G >
-cpExtensions::Algorithms::GulsunTekMedialness< G >::
-GulsunTekMedialness( )
-  : Superclass( ),
-    m_MinRadius( double( 0 ) ),
-    m_MaxRadius( double( 1 ) ),
-    m_ProfileSampling( 4 ),
-    m_RadialSampling( 10 )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class G >
-cpExtensions::Algorithms::GulsunTekMedialness< G >::
-~GulsunTekMedialness( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class G >
-typename cpExtensions::Algorithms::GulsunTekMedialness< G >::
-TOutput cpExtensions::Algorithms::GulsunTekMedialness< G >::
-_Evaluate( const TIndex& i ) const
-{
-  const G* gradient = this->GetInputImage( );
-  typename G::RegionType region = gradient->GetRequestedRegion( );
-  typename G::PointType i_P;
-  gradient->TransformIndexToPhysicalPoint( i, i_P );
-
-  std::queue< TIndex > q;
-  std::set< TIndex, typename TIndex::LexicographicCompare > m;
-  std::map< TOffset, std::vector< TIndex >, typename TOffset::LexicographicCompare > profiles;
-  q.push( i );
-
-  while( !q.empty( ) )
-  {
-    // Get next node
-    TIndex node = q.front( );
-    q.pop( );
-    if( m.find( node ) != m.end( ) )
-      continue;
-    m.insert( node );
-
-    // Get neighborhood
-    for( unsigned int d = 0; d < Self::Dimension; d++ )
-    {
-      for( int off = -1; off <= 1; off += 2 )
-      {
-        TIndex neighbor = node;
-        neighbor[ d ] += off;
-        if( region.IsInside( neighbor ) )
-        {
-          typename G::PointType neighbor_P;
-          gradient->TransformIndexToPhysicalPoint( neighbor, neighbor_P );
-          if( double( i_P.EuclideanDistanceTo( neighbor_P ) ) > this->m_MaxRadius )
-            continue;
-
-          // Normalize offset in terms of a l1 (manhattan) distance
-          TOffset offset = neighbor - i;
-          // std::cout << "Offset: " << offset << std::endl;
-
-          /*
-            int max_off = 0;
-            for( unsigned int o = 0; o < Self::Dimension; ++o )
-            max_off += std::abs( offset[ o ] );
-            if( max_off == 0 )
-            continue;
-            bool normalized = true;
-            TOffset normalized_offset;
-            for( unsigned int o = 0; o < Self::Dimension && normalized; ++o )
-            {
-            if( offset[ o ] % max_off == 0 )
-            normalized_offset[ o ] = offset[ o ] / max_off;
-            else
-            normalized = false;
-
-            } // rof
-            if( !normalized )
-            normalized_offset = offset;
-            std::cout << "offset: " << normalized_offset << std::endl;
-
-            // Update profiles
-            profiles[ normalized_offset ].push_back( neighbor );
-          */
-
-          // Update queue
-          q.push( neighbor );
-
-        } // fi
-
-      } // rof
-
-    } // rof
-
-  } // elihw
-  // std::cout << "HOLA: " << profiles.size( ) << std::endl;
-
-
-  return( TOutput( 0 ) );
-  /* TODO
-     const G* in = this->GetInputImage( );
-     double pi2n =
-     double( 2 ) * double( vnl_math::pi ) /
-     double( this->m_ProfileSampling );
-     double rOff = this->m_MaxRadius / double( this->m_RadialSampling - 1 );
-     double optR = double( 0 );
-     TPoint pnt;
-     in->TransformIndexToPhysicalPoint( i, pnt );
-
-     // Main loop
-     for( unsigned int cx = 0; cx < Self::Dimension - 1; cx++ )
-     {
-     for( unsigned int cy = cx + 1; cy < Self::Dimension; cy++ )
-     {
-     TProfile maxProfile( this->m_RadialSampling, double( 0 ) );
-     for( unsigned int p = 0; p < this->m_ProfileSampling; p++ )
-     {
-     double a = pi2n * double( p );
-
-     // Direction of this profile
-     TVector dir;
-     dir.Fill( TScalar( 0 ) );
-     dir[ cx ] = TScalar( std::cos( a ) );
-     dir[ cy ] = TScalar( std::sin( a ) );
-
-     double maxrise = double( 0 );
-     double maxfall = double( -1 );
-     TProfile profile;
-     for( unsigned int r = 0; r < this->m_RadialSampling; r++ )
-     {
-     double radius = double( r ) * rOff;
-     TIndex idx;
-     if(
-     in->TransformPhysicalPointToIndex( pnt + ( dir * radius ), idx )
-     )
-     {
-     TVector g = in->GetPixel( idx );
-     double b = double( g.GetNorm( ) );
-     if( double( g * dir ) < double( 0 ) )
-     b *= double( -1 );
-     maxrise = ( b > maxrise )? b: maxrise;
-     if( radius >= this->m_MinRadius )
-     maxfall = ( b < maxfall )? b: maxfall;
-     profile.push_back( -b - maxrise );
-     }
-     else
-     profile.push_back( double( 0 ) );
-
-     } // rof
-
-     for( unsigned int r = 0; r < this->m_RadialSampling; r++ )
-     {
-     double E = profile[ r ] / -maxfall;
-     E = ( E < double( 0 ) )? double( 0 ): E;
-     E = ( E > double( 1 ) )? double( 1 ): E;
-     maxProfile[ r ] += E;
-
-     } // rof
-
-     } // rof
-
-     for( unsigned int r = 0; r < this->m_RadialSampling; r++ )
-     {
-     double E = maxProfile[ r ] / double( this->m_RadialSampling );
-     optR = ( E > optR )? E: optR;
-
-     } // rof
-
-     } // rof
-
-     } // rof
-     return( TScalar( optR ) );
-  */
-}
-
-#endif // __CPEXTENSIONS__ALGORITHMS__GULSUNTEKMEDIALNESS__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/ImageFunctionFilter.h b/lib/cpExtensions/Algorithms/ImageFunctionFilter.h
deleted file mode 100644 (file)
index 39007a5..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__IMAGEFUNCTIONFILTER__H__
-#define __CPEXTENSIONS__ALGORITHMS__IMAGEFUNCTIONFILTER__H__
-
-#include <itkImageToImageFilter.h>
-#include <itkImageScanlineConstIterator.h>
-#include <itkImageScanlineIterator.h>
-#include <itkProgressReporter.h>
-
-namespace cpExtensions
-{
-  namespace Algorithms
-  {
-    /**
-     */
-    template< class I, class O, class F >
-    class ImageFunctionFilter
-      : public itk::ImageToImageFilter< I, O >
-    {
-    public:
-      typedef ImageFunctionFilter             Self;
-      typedef itk::ImageToImageFilter< I, O > Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-      typedef I TInputImage;
-      typedef O TOutputImage;
-      typedef F TFunction;
-
-      typedef typename O::RegionType TRegion;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( ImageFunctionFilter, itkImageToImageFilter );
-
-      itkGetObjectMacro( Function, F );
-      itkSetObjectMacro( Function, F );
-
-    protected:
-      ImageFunctionFilter( )
-        : Superclass( )
-        {
-        }
-      virtual ~ImageFunctionFilter( )
-        {
-        }
-
-      virtual void ThreadedGenerateData(
-        const TRegion& region,
-        itk::ThreadIdType threadId
-        )
-        {
-          const typename TRegion::SizeType& regionSize = region.GetSize( );
-          if( regionSize[ 0 ] == 0 )
-            return;
-          const I* in = this->GetInput( );
-          O* out = this->GetOutput( 0 );
-
-          const size_t nLines = region.GetNumberOfPixels( ) / regionSize[ 0 ];
-          itk::ProgressReporter progress( this, threadId, nLines );
-
-          // Define the iterators
-          itk::ImageScanlineConstIterator< I > inIt( in, region );
-          itk::ImageScanlineIterator< O > outIt( out, region );
-
-          inIt.GoToBegin( );
-          outIt.GoToBegin( );
-          while( !inIt.IsAtEnd( ) )
-          {
-            while( !inIt.IsAtEndOfLine( ) )
-            {
-              outIt.Set( this->m_Function->EvaluateAtIndex( inIt.GetIndex( ) ) );
-              ++inIt;
-              ++outIt;
-
-            } // elihw
-            inIt.NextLine( );
-            outIt.NextLine( );
-            progress.CompletedPixel( );
-
-          } // elihw
-        }
-
-    private:
-      // Purposely not implemented.
-      ImageFunctionFilter( const Self& );
-      void operator=( const Self& );
-
-    protected:
-      typename F::Pointer m_Function;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-// TODO: #include <cpExtensions/Algorithms/ImageFunctionFilter.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __CPEXTENSIONS__ALGORITHMS__IMAGEFUNCTIONFILTER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/ImageFunctorFilter.h b/lib/cpExtensions/Algorithms/ImageFunctorFilter.h
deleted file mode 100644 (file)
index d8a7eca..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__IMAGEFUNCTORFILTER__H__
-#define __CPEXTENSIONS__ALGORITHMS__IMAGEFUNCTORFILTER__H__
-
-#include <itkImageToImageFilter.h>
-#include <itkImageScanlineConstIterator.h>
-#include <itkImageScanlineIterator.h>
-#include <itkProgressReporter.h>
-
-namespace cpExtensions
-{
-  namespace Algorithms
-  {
-    /**
-     */
-    template< class I, class O, class F >
-    class ImageFunctorFilter
-      : public itk::ImageToImageFilter< I, O >
-    {
-    public:
-      typedef ImageFunctorFilter             Self;
-      typedef itk::ImageToImageFilter< I, O > Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-      typedef I TInputImage;
-      typedef O TOutputImage;
-      typedef F TFunctor;
-
-      typedef typename O::RegionType TRegion;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( ImageFunctorFilter, itkImageToImageFilter );
-
-      itkGetMacro( Functor, F );
-      itkGetConstMacro( Functor, F );
-
-    protected:
-      ImageFunctorFilter( )
-        : Superclass( )
-        {
-        }
-      virtual ~ImageFunctorFilter( )
-        {
-        }
-
-      virtual void ThreadedGenerateData(
-        const TRegion& region,
-        itk::ThreadIdType threadId
-        )
-        {
-          const typename TRegion::SizeType& regionSize = region.GetSize( );
-          if( regionSize[ 0 ] == 0 )
-            return;
-          const I* in = this->GetInput( );
-          O* out = this->GetOutput( 0 );
-
-          const size_t nLines = region.GetNumberOfPixels( ) / regionSize[ 0 ];
-          itk::ProgressReporter progress( this, threadId, nLines );
-
-          // Define the iterators
-          itk::ImageScanlineConstIterator< I > inIt( in, region );
-          itk::ImageScanlineIterator< O > outIt( out, region );
-
-          inIt.GoToBegin( );
-          outIt.GoToBegin( );
-          while( !inIt.IsAtEnd( ) )
-          {
-            while( !inIt.IsAtEndOfLine( ) )
-            {
-              outIt.Set( this->m_Functor( inIt.Get( ) ) );
-              ++inIt;
-              ++outIt;
-
-            } // elihw
-            inIt.NextLine( );
-            outIt.NextLine( );
-            progress.CompletedPixel( );
-
-          } // elihw
-        }
-
-    private:
-      // Purposely not implemented.
-      ImageFunctorFilter( const Self& );
-      void operator=( const Self& );
-
-    protected:
-      F m_Functor;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPEXTENSIONS__ALGORITHMS__IMAGEFUNCTORFILTER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/InertiaMedialness.h b/lib/cpExtensions/Algorithms/InertiaMedialness.h
deleted file mode 100644 (file)
index e385513..0000000
+++ /dev/null
@@ -1,215 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__INERTIAMEDIALNESS__H__
-#define __CPEXTENSIONS__ALGORITHMS__INERTIAMEDIALNESS__H__
-
-#include <map>
-#include <itkImageFunction.h>
-
-#include <cpExtensions/Algorithms/InertiaTensorFunction.h>
-#include <itkImageRegionConstIteratorWithIndex.h>
-
-namespace cpExtensions
-{
-  namespace Algorithms
-  {
-    /**
-     */
-    template< class I, class S = float >
-    class InertiaMedialness
-      : public itk::ImageFunction< I, S, S >
-    {
-    public:
-      // Standard itk types
-      typedef InertiaMedialness               Self;
-      typedef itk::ImageFunction< I, S, S >   Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-      // Types from base itk::ImageFunction
-      typedef typename Superclass::InputType           TInput;
-      typedef typename Superclass::OutputType          TOutput;
-      typedef typename Superclass::PointType           TPoint;
-      typedef typename Superclass::ContinuousIndexType TContIndex;
-      typedef typename Superclass::IndexType           TIndex;
-      typedef typename TIndex::OffsetType              TOffset;
-
-      // Sparse buffer
-      typedef std::map< TIndex, TOutput, typename TIndex::LexicographicCompare > TBuffer;
-
-      typedef InertiaTensorFunction< S, I::ImageDimension > TInertia;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( InertiaMedialness, itkImageFunction );
-
-      itkBooleanMacro( BufferResults );
-      itkGetConstMacro( BufferResults, bool );
-      itkGetConstMacro( MaxRadius, double );
-
-      itkSetMacro( BufferResults, bool );
-      itkSetMacro( MaxRadius, double );
-
-    public:
-      virtual void ResetBuffer( )
-        {
-          this->m_Buffer.clear( );
-        }
-
-      virtual TOutput Evaluate( const TPoint& p ) const
-        {
-          TIndex i;
-          this->GetInputImage( )->TransformPhysicalPointToIndex( p, i );
-          return( this->EvaluateAtIndex( i ) );
-        }
-
-      virtual TOutput EvaluateAtIndex( const TIndex& i ) const
-        {
-          TOutput res = TOutput( 0 );
-          bool computed = false;
-          if( this->m_BufferResults )
-          {
-            typename TBuffer::const_iterator bIt = this->m_Buffer.find( i );
-            computed = ( bIt != this->m_Buffer.end( ) );
-            res = ( computed )? bIt->second: res;
-
-          } // fi
-
-          if( !computed )
-            res = this->_Evaluate( i );
-
-          if( this->m_BufferResults )
-            this->m_Buffer[ i ] = res;
-          return( res );
-        }
-
-      virtual TOutput EvaluateAtContinuousIndex( const TContIndex& i ) const
-        {
-          TPoint p;
-          this->GetInputImage( )->TransformContinuousIndexToPhysicalPoint( i, p );
-          return( this->Evaluate( p ) );
-        }
-
-    protected:
-      InertiaMedialness( )
-        : Superclass( ),
-          m_BufferResults( false ),
-          m_MaxRadius( double( 1 ) )
-        {
-          this->m_Buffer.clear( );
-        }
-
-      virtual ~InertiaMedialness( )
-        {
-          this->m_Buffer.clear( );
-        }
-
-      virtual TOutput _Evaluate( const TIndex& idx ) const
-        {
-          const I* image = this->GetInputImage( );
-
-          typename I::PointType p_i;
-          image->TransformIndexToPhysicalPoint( idx, p_i );
-
-          typename I::PointType max_p, min_p;
-          for( unsigned int d = 0; d < I::ImageDimension; ++d )
-          {
-            max_p[ d ] = p_i[ d ] + this->m_MaxRadius;
-            min_p[ d ] = p_i[ d ] - this->m_MaxRadius;
-
-          } // rof
-          TIndex max_i, min_i;
-          image->TransformPhysicalPointToIndex( max_p, max_i );
-          image->TransformPhysicalPointToIndex( min_p, min_i );
-
-          typename I::RegionType in_region = image->GetRequestedRegion( );
-          TIndex in_index = in_region.GetIndex( );
-          TIndex in_last = in_index + in_region.GetSize( );
-          typename I::SizeType size;
-          for( unsigned int d = 0; d < I::ImageDimension; ++d )
-          {
-            if( min_i[ d ] < in_index[ d ] ) min_i[ d ] = in_index[ d ];
-            if( max_i[ d ] < in_index[ d ] ) max_i[ d ] = in_index[ d ];
-            if( min_i[ d ] >= in_last[ d ] ) min_i[ d ] = in_last[ d ];
-            if( max_i[ d ] >= in_last[ d ] ) max_i[ d ] = in_last[ d ];
-
-            size[ d ] = max_i[ d ] - min_i[ d ];
-
-          } // rof
-
-          typename I::RegionType region;
-          region.SetIndex( min_i );
-          region.SetSize( size );
-
-          std::vector< typename TInertia::Pointer > inertias;
-          itk::ImageRegionConstIteratorWithIndex< I > it( image, region );
-          for( it.GoToBegin( ); !it.IsAtEnd( ); ++it )
-          {
-            TOffset off = it.GetIndex( ) - idx;
-            unsigned long l1dist = std::abs( off[ 0 ] );
-            for( unsigned int d = 1; d < I::ImageDimension; ++d )
-              l1dist = ( std::abs( off[ d ] ) > l1dist )? std::abs( off[ d ] ): l1dist;
-
-            typename TInertia::TPoint i_pnt;
-            image->TransformIndexToPhysicalPoint( it.GetIndex( ), i_pnt );
-
-            for( unsigned long l = 0; l < l1dist; ++l )
-            {
-              if( inertias.size( ) <= l )
-                inertias.push_back( TInertia::New( ) );
-              inertias[ l ]->AddMass( i_pnt.GetVectorFromOrigin( ), S( it.Get( ) ) );
-
-              /* TODO
-                 typename TInertias::iterator inIt = inertias.find( l );
-                 if( inIt == inertias.end( ) )
-                 inIt = inertias.insert( std::pair< unsigned long, typename TInertia::Pointer >( l, TInertia::New( ) ) ).first;
-              */
-
-            } // rof
-
-          } // rof
-
-          if( inertias.size( ) > 0 )
-          {
-            S res = S( 0 );
-            for( unsigned int l = 0; l < inertias.size( ); ++l )
-            {
-              typename TInertia::TVector pv, r;
-              typename TInertia::TMatrix pm;
-              inertias[ l ]->GetEigenAnalysis( pm, pv, r );
-              S v = pv.GetNorm( );
-              if( l == 0 || v > res )
-                res = v;
-
-            } // rof
-            return( res );
-          }
-          else
-            return( TOutput( 0 ) );
-        }
-
-    private:
-      // Purposely not implemented.
-      InertiaMedialness( const Self& );
-      void operator=( const Self& );
-
-    protected:
-      mutable TBuffer m_Buffer;
-      bool m_BufferResults;
-
-      double m_MaxRadius;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-// TODO: #include <cpExtensions/Algorithms/InertiaMedialness.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __CPEXTENSIONS__ALGORITHMS__INERTIAMEDIALNESS__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/InertiaTensorFunction.h b/lib/cpExtensions/Algorithms/InertiaTensorFunction.h
deleted file mode 100644 (file)
index ecb341d..0000000
+++ /dev/null
@@ -1,180 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__INERTIATENSORFUNCTION__H__
-#define __CPEXTENSIONS__ALGORITHMS__INERTIATENSORFUNCTION__H__
-
-#include <itkObject.h>
-
-#include <itkObject.h>
-#include <itkObjectFactory.h>
-#include <itkMatrix.h>
-#include <itkPoint.h>
-
-
-#include <cmath>
-#include <itkSymmetricEigenAnalysis.h>
-
-
-namespace cpExtensions
-{
-  namespace Algorithms
-  {
-    /**
-     */
-    template< class S, unsigned int D >
-    class InertiaTensorFunction
-      : public itk::Object
-    {
-    public:
-      // Standard itk types
-      typedef InertiaTensorFunction           Self;
-      typedef itk::Object                     Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-      typedef S                           TScalar;
-      typedef itk::Matrix< S, D, D >      TMatrix;
-      typedef itk::Point< S, D >          TPoint;
-      typedef typename TPoint::VectorType TVector;
-
-    protected:
-      typedef TMatrix _TInternalMatrix;
-      typedef itk::Matrix< S, D, 1 > _TInternalVector;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( InertiaTensorFunction, itkObject );
-
-    public:
-      inline void Reset( )
-        {
-          this->m_M = S( 0 );
-          this->m_MPP = S( 0 );
-          this->m_MP.Fill( S( 0 ) );
-          this->m_MPPT.Fill( S( 0 ) );
-          this->Modified( );
-        }
-      inline void AddMass( const TPoint& pnt, const S& mass = S( 1 ) )
-        {
-          this->AddMass( pnt.GetVectorFromOrigin( ), mass );
-        }
-      inline void AddMass( const S* data, const S& mass = S( 1 ) )
-        {
-          this->AddMass( TVector( data ), mass );
-        }
-      inline void AddMass( const TVector& vec, const S& mass = S( 1 ) )
-        {
-          this->m_M += mass;
-          this->m_MPP += mass * ( vec * vec );
-
-          _TInternalVector mp;
-          for( unsigned int d = 0; d < D; ++d )
-          {
-            this->m_MP[ d ][ 0 ] += mass * vec[ d ];
-            mp[ d ][ 0 ] = vec[ d ];
-
-          } // rof
-          this->m_MPPT +=
-            _TInternalMatrix( mp.GetVnlMatrix( ) * mp.GetTranspose( ) ) *
-            mass;
-        }
-
-      inline S GetMass( ) const
-        {
-          return( this->m_M );
-        }
-
-      inline TMatrix GetInertia( ) const
-        {
-          TMatrix I;
-          if( S( 0 ) < this->m_M )
-          {
-            I.SetIdentity( );
-            I *= this->m_MPP - ( ( this->m_MP.GetTranspose( ) * this->m_MP.GetVnlMatrix( ) )[ 0 ][ 0 ] / this->m_M );
-            I -= this->m_MPPT;
-            I += TMatrix( this->m_MP.GetVnlMatrix( ) * this->m_MP.GetTranspose( ) ) / this->m_M;
-          }
-          else
-            I.Fill( S( 0 ) );
-          return( I );
-        }
-
-      inline TVector GetCenterOfGravity( ) const
-        {
-          TVector cog;
-          if( S( 0 ) < this->m_M )
-          {
-            for( unsigned int d = 0; d < D; ++d )
-              cog[ d ] = this->m_MP[ d ][ 0 ] / this->m_M;
-          }
-          else
-            cog.Fill( S( 0 ) );
-          return( cog );
-        }
-
-      inline void GetEigenAnalysis( TMatrix& pm, TVector& pv, TVector& r ) const
-        {
-          TMatrix I = this->GetInertia( );
-
-          itk::SymmetricEigenAnalysis< TMatrix, TVector, TMatrix > eigen;
-          eigen.SetDimension( D );
-          eigen.SetOrderEigenMagnitudes( true );
-          eigen.SetOrderEigenValues( 1 );
-          eigen.ComputeEigenValuesAndVectors( I, pv, pm );
-          pm = TMatrix( pm.GetTranspose( ) );
-          S det = vnl_determinant( pm.GetVnlMatrix( ) );
-          for( unsigned int d = 0; d < D; ++d )
-            pm[ d ][ D - 1 ] *= det;
-
-          if( D == 2 )
-          {
-            S coeff = S( 4 ) / this->m_M;
-            r[ 0 ] = std::sqrt( std::fabs( coeff * pv[ 1 ] ) );
-            r[ 1 ] = std::sqrt( std::fabs( coeff * pv[ 0 ] ) );
-          }
-          else if( D == 3 )
-          {
-            S coeff = S( 2.5 ) / this->m_M;
-            r[ 0 ] = std::sqrt( std::fabs( coeff * ( pv[ 1 ] + pv[ 2 ] - pv[ 0 ] ) ) );
-            r[ 1 ] = std::sqrt( std::fabs( coeff * ( pv[ 0 ] + pv[ 2 ] - pv[ 1 ] ) ) );
-            r[ 2 ] = std::sqrt( std::fabs( coeff * ( pv[ 0 ] + pv[ 1 ] - pv[ 2 ] ) ) );
-          }
-          else
-            r.Fill( S( 0 ) );
-        }
-
-    protected:
-      InertiaTensorFunction( )
-        : Superclass( )
-        {
-          this->Reset( );
-        }
-      virtual ~InertiaTensorFunction( )
-        {
-        }
-
-    private:
-      // Purposely not implemented.
-      InertiaTensorFunction( const Self& );
-      void operator=( const Self& );
-
-    protected:
-      S m_M;
-      S m_MPP;
-      _TInternalVector m_MP;
-      _TInternalMatrix m_MPPT;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-// #include <cpExtensions/Algorithms/InertiaTensorFunction.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __CPEXTENSIONS__ALGORITHMS__INERTIATENSORFUNCTION__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/IsoImageSlicer.h b/lib/cpExtensions/Algorithms/IsoImageSlicer.h
deleted file mode 100644 (file)
index 19410c3..0000000
+++ /dev/null
@@ -1,184 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__ISOIMAGESLICER__H__
-#define __CPEXTENSIONS__ALGORITHMS__ISOIMAGESLICER__H__
-
-#include <itkAffineTransform.h>
-#include <itkExtractImageFilter.h>
-#include <itkImage.h>
-#include <itkImageToImageFilter.h>
-#include <itkInterpolateImageFunction.h>
-#include <itkResampleImageFilter.h>
-#include <itkVectorResampleImageFilter.h>
-#include <itkVectorInterpolateImageFunction.h>
-
-namespace cpExtensions
-{
-  namespace Algorithms
-  {
-    /**
-     */
-    template< class R, class I >
-    class BaseImageSlicer
-      : public itk::ImageToImageFilter< typename R::InputImageType, itk::Image< typename R::InputImageType::PixelType, R::ImageDimension - 1 > >
-    {
-    public:
-      // Basic types
-      typedef BaseImageSlicer            Self;
-      typedef R                          TSlicer;
-      typedef I                          TInterpolateFunction;
-      typedef typename R::InputImageType TImage;
-      typedef typename I::CoordRepType   TScalar;
-      typedef typename TImage::PixelType TPixel;
-      enum
-      {
-        Dim      = TImage::ImageDimension,
-        SliceDim = TImage::ImageDimension - 1
-      };
-      typedef itk::Image< TPixel, Self::SliceDim > TSliceImage;
-
-      // itk types
-      typedef itk::ImageToImageFilter< TImage, TSliceImage > Superclass;
-      typedef itk::SmartPointer< Self >                      Pointer;
-      typedef itk::SmartPointer< const Self >                ConstPointer;
-
-      // Internal filters
-      typedef itk::ExtractImageFilter< TImage, TSliceImage > TCollapsor;
-
-      // Various types
-      typedef typename TImage::IndexType   TIndex;
-      typedef typename TImage::RegionType  TRegion;
-      typedef typename TImage::SizeType    TSize;
-      typedef typename TImage::SpacingType TSpacing;
-      typedef typename TSpacing::ValueType TSpacingValue;
-
-      typedef itk::AffineTransform< TScalar, Self::Dim > TTransform;
-      typedef typename TTransform::MatrixType            TMatrix;
-      typedef typename TTransform::OffsetType            TVector;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( BaseImageSlicer, itkImageToImageFilter );
-
-      itkBooleanMacro( SizeFromMaximum );
-      itkBooleanMacro( SizeFromMinimum );
-      itkBooleanMacro( SpacingFromMaximum );
-      itkBooleanMacro( SpacingFromMinimum );
-
-      itkGetConstObjectMacro( Transform, TTransform );
-      itkGetConstMacro( DefaultValue, TPixel );
-      itkGetConstMacro( Size, TVector );
-      itkGetConstMacro( SizeFromMaximum, bool );
-      itkGetConstMacro( SizeFromMinimum, bool );
-      itkGetConstMacro( Spacing, TSpacingValue );
-      itkGetConstMacro( SpacingFromMaximum, bool );
-      itkGetConstMacro( SpacingFromMinimum, bool );
-
-      itkSetObjectMacro( Transform, TTransform );
-      itkSetMacro( Size, TVector );
-      itkSetMacro( DefaultValue, TPixel );
-      itkSetMacro( SizeFromMaximum, bool );
-      itkSetMacro( SizeFromMinimum, bool );
-      itkSetMacro( Spacing, TSpacingValue );
-      itkSetMacro( SpacingFromMaximum, bool );
-      itkSetMacro( SpacingFromMinimum, bool );
-
-    public:
-      virtual unsigned long GetMTime( ) const;
-
-      const TInterpolateFunction* GetInterpolator( ) const;
-      const TMatrix& GetRotation( ) const;
-      const TVector& GetTranslation( ) const;
-
-      void SetInterpolator( TInterpolateFunction* f );
-
-      template< class M >
-        void SetRotation( const M& r );
-
-      template< class V >
-        void SetTranslation( const V& t );
-      void SetSize( TScalar s );
-
-    protected:
-      BaseImageSlicer( );
-      virtual ~BaseImageSlicer( );
-
-      virtual void GenerateOutputInformation( ); // TODO { }
-      virtual void GenerateInputRequestedRegion( );
-      virtual void GenerateData( );
-
-    private:
-      // Purposely not implemented
-      BaseImageSlicer( const Self& );
-      void operator=( const Self& );
-
-    protected:
-      typename TSlicer::Pointer    m_Slicer;
-      typename TCollapsor::Pointer m_Collapsor;
-      typename TTransform::Pointer m_Transform;
-
-      TPixel m_DefaultValue;
-
-      TVector m_Size;
-      bool    m_SizeFromMaximum;
-      bool    m_SizeFromMinimum;
-
-      TSpacingValue m_Spacing;
-      bool          m_SpacingFromMaximum;
-      bool          m_SpacingFromMinimum;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-// -------------------------------------------------------------------------
-#define CPPLUGINS_DEFINE_ISOIMAGESLICER( name, R, F )                   \
-  template< class I, class S = double >                                 \
-  class name                                                            \
-    : public BaseImageSlicer< R< I, I, S >, F< I, S > >                 \
-  {                                                                     \
-  public:                                                               \
-    typedef BaseImageSlicer< R< I, I, S >, F< I, S > > Superclass;      \
-    typedef name                                       Self;            \
-    typedef itk::SmartPointer< Self >                  Pointer;         \
-    typedef itk::SmartPointer< const Self >            ConstPointer;    \
-  public:                                                               \
-    itkNewMacro( Self );                                                \
-    itkTypeMacro( name, BaseSlicer );                                   \
-  protected:                                                            \
-    name( ) : Superclass( ) { }                                         \
-    virtual ~name( ) { }                                                \
-  private:                                                              \
-    name( const Self& );                                                \
-    void operator=( const Self& );                                      \
-  };
-
-namespace cpExtensions
-{
-  namespace Algorithms
-  {
-    CPPLUGINS_DEFINE_ISOIMAGESLICER(
-      IsoImageSlicer,
-      itk::ResampleImageFilter,
-      itk::InterpolateImageFunction
-      );
-    CPPLUGINS_DEFINE_ISOIMAGESLICER(
-      VectorIsoImageSlicer,
-      itk::VectorResampleImageFilter,
-      itk::VectorInterpolateImageFunction
-      );
-
-  } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-#include <cpExtensions/Algorithms/IsoImageSlicer.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __CPEXTENSIONS__ALGORITHMS__ISOIMAGESLICER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/IsoImageSlicer.hxx b/lib/cpExtensions/Algorithms/IsoImageSlicer.hxx
deleted file mode 100644 (file)
index 041d874..0000000
+++ /dev/null
@@ -1,234 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__ISOIMAGESLICER__HXX__
-#define __CPEXTENSIONS__ALGORITHMS__ISOIMAGESLICER__HXX__
-
-// -------------------------------------------------------------------------
-template< class R, class I >
-unsigned long cpExtensions::Algorithms::BaseImageSlicer< R, I >::
-GetMTime( ) const
-{
-  unsigned long t = this->Superclass::GetMTime( );
-  unsigned long sT = this->m_Slicer->GetMTime( );
-  unsigned long cT = this->m_Collapsor->GetMTime( );
-  unsigned long tT = this->m_Transform->GetMTime( );
-  t = ( sT > t )? sT: t;
-  t = ( cT > t )? cT: t;
-  t = ( tT > t )? tT: t;
-  return( t );
-}
-
-// -------------------------------------------------------------------------
-template< class R, class I >
-const typename cpExtensions::Algorithms::BaseImageSlicer< R, I >::
-TInterpolateFunction*
-cpExtensions::Algorithms::BaseImageSlicer< R, I >::
-GetInterpolator( ) const
-{
-  return( this->m_Slicer->GetInterpolator( ) );
-}
-
-// -------------------------------------------------------------------------
-template< class R, class I >
-const typename cpExtensions::Algorithms::BaseImageSlicer< R, I >::
-TMatrix& cpExtensions::Algorithms::BaseImageSlicer< R, I >::
-GetRotation( ) const
-{
-  return( this->m_Transform->GetMatrix( ) );
-}
-
-// -------------------------------------------------------------------------
-template< class R, class I >
-const typename cpExtensions::Algorithms::BaseImageSlicer< R, I >::
-TVector& cpExtensions::Algorithms::BaseImageSlicer< R, I >::
-GetTranslation( ) const
-{
-  return( this->m_Transform->GetOffset( ) );
-}
-
-// -------------------------------------------------------------------------
-template< class R, class I >
-void cpExtensions::Algorithms::BaseImageSlicer< R, I >::
-SetInterpolator( TInterpolateFunction* f )
-{
-  this->m_Slicer->SetInterpolator( f );
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-template< class R, class I >
-template< class M >
-void cpExtensions::Algorithms::BaseImageSlicer< R, I >::
-SetRotation( const M& r )
-{
-  TMatrix rotation;
-  for( unsigned int i = 0; i < Self::Dim; ++i )
-    for( unsigned int j = 0; j < Self::Dim; ++j )
-      rotation[ i ][ j ] = r[ i ][ j ];
-  this->m_Transform->SetMatrix( rotation );
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-template< class R, class I >
-template< class V >
-void cpExtensions::Algorithms::BaseImageSlicer< R, I >::
-SetTranslation( const V& t )
-{
-  TVector off;
-  for( unsigned int i = 0; i < Self::Dim; ++i )
-    off[ i ] = t[ i ];
-  this->m_Transform->SetOffset( off );
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-template< class R, class I >
-void cpExtensions::Algorithms::BaseImageSlicer< R, I >::
-SetSize( TScalar s )
-{
-  this->m_Size.Fill( s );
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-template< class R, class I >
-cpExtensions::Algorithms::BaseImageSlicer< R, I >::
-BaseImageSlicer( )
-  : Superclass( ),
-    m_SizeFromMaximum( false ),
-    m_SizeFromMinimum( false ),
-    m_Spacing( TSpacingValue( 1 ) ),
-    m_SpacingFromMaximum( false ),
-    m_SpacingFromMinimum( false )
-{
-  this->m_Size.Fill( TScalar( 1 ) );
-
-  // Slicer
-  this->m_Slicer = TSlicer::New( );
-
-  TIndex idx;
-  idx.Fill( 0 );
-  this->m_Slicer->SetOutputStartIndex( idx );
-
-  // Dimension collapsor
-  this->m_Collapsor = TCollapsor::New( );
-  this->m_Collapsor->SetInput( this->m_Slicer->GetOutput( ) );
-  this->m_Collapsor->SetDirectionCollapseToIdentity( );
-
-  this->m_Transform = TTransform::New( );
-  this->m_Transform->SetIdentity( );
-}
-
-// -------------------------------------------------------------------------
-template< class R, class I >
-cpExtensions::Algorithms::BaseImageSlicer< R, I >::
-~BaseImageSlicer( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class R, class I >
-void cpExtensions::Algorithms::BaseImageSlicer< R, I >::
-GenerateOutputInformation( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class R, class I >
-void cpExtensions::Algorithms::BaseImageSlicer< R, I >::
-GenerateInputRequestedRegion( )
-{
-  TImage* input = const_cast< TImage* >( this->GetInput( ) );
-  if( input != NULL )
-    input->SetRequestedRegionToLargestPossibleRegion( );
-}
-
-// -------------------------------------------------------------------------
-template< class R, class I >
-void cpExtensions::Algorithms::BaseImageSlicer< R, I >::
-GenerateData( )
-{
-  const TImage* input = this->GetInput( );
-
-  // Spacing
-  TSpacing spac;
-  if( this->m_SpacingFromMaximum || this->m_SpacingFromMinimum )
-  {
-    spac = input->GetSpacing( );
-    TSpacingValue minIso = spac[ 0 ];
-    TSpacingValue maxIso = spac[ 0 ];
-    for( unsigned int i = 1; i < Self::Dim; i++ )
-    {
-      minIso = ( spac[ i ] < minIso )? spac[ i ]: minIso;
-      maxIso = ( spac[ i ] > maxIso )? spac[ i ]: maxIso;
-
-    } // rof
-    this->m_Spacing = ( this->m_SpacingFromMinimum )? minIso: maxIso;
-
-  } // fi
-  spac.Fill( this->m_Spacing );
-
-  // Size and origin
-  if( this->m_SizeFromMaximum || this->m_SizeFromMinimum )
-  {
-    TSize iSize = input->GetRequestedRegion( ).GetSize( );
-    TSpacing iSpac = input->GetSpacing( );
-    TScalar minSize = TScalar( iSize[ 0 ] ) * TScalar( iSpac[ 0 ] );
-    TScalar maxSize = minSize;
-    for( unsigned int i = 1; i < Self::Dim; i++ )
-    {
-      TScalar v = TScalar( iSize[ i ] ) * TScalar( iSpac[ i ] );
-      minSize = ( v < minSize )? v: minSize;
-      maxSize = ( v > maxSize )? v: maxSize;
-
-    } // rof
-    if( this->m_SizeFromMaximum )
-      this->m_Size.Fill( maxSize );
-    else
-      this->m_Size.Fill( minSize );
-
-  } // fi
-
-  TSize size;
-  typename TSlicer::OriginPointType origin;
-  size[ 0 ] = 1;
-  origin[ 0 ] = 0;
-  for( unsigned int i = 1; i < Self::Dim; i++ )
-  {
-    double s = double( this->m_Size[ i ] ) / double( spac[ i ] );
-    size[ i ] = ( unsigned int )( s );
-    origin[ i ] = -( 0.5 * this->m_Size[ i ] );
-
-  } // rof
-
-  // Prepare slicer
-  this->m_Slicer->SetInput( input );
-  this->m_Slicer->SetTransform( this->m_Transform );
-  this->m_Slicer->SetOutputSpacing( spac );
-  this->m_Slicer->SetOutputOrigin( origin );
-  this->m_Slicer->SetSize( size );
-  this->m_Slicer->SetDefaultPixelValue( this->m_DefaultValue );
-
-  // Slice!
-  // Note: UpdateLargestPossibleRegion( ) is used since we need the
-  // output regions to be updated at each filter call.
-  this->m_Slicer->UpdateLargestPossibleRegion( );
-
-  // Collapse result
-  TRegion region = this->m_Slicer->GetOutput( )->GetRequestedRegion( );
-  TSize regionSize = region.GetSize( );
-  regionSize[ 0 ] = 0;
-  region.SetSize( regionSize );
-  this->m_Collapsor->SetExtractionRegion( region );
-
-  this->m_Collapsor->GraftOutput( this->GetOutput( ) );
-  this->m_Collapsor->UpdateLargestPossibleRegion( );
-  this->GraftOutput( this->m_Collapsor->GetOutput( ) );
-}
-
-#endif // __CPEXTENSIONS__ALGORITHMS__ISOIMAGESLICER__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/IterativeGaussianModelEstimator.h b/lib/cpExtensions/Algorithms/IterativeGaussianModelEstimator.h
deleted file mode 100644 (file)
index 5cf7332..0000000
+++ /dev/null
@@ -1,111 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__ITERATIVEGAUSSIANMODELESTIMATOR__H__
-#define __CPEXTENSIONS__ALGORITHMS__ITERATIVEGAUSSIANMODELESTIMATOR__H__
-
-#include <vector>
-#include <itkConceptChecking.h>
-#include <itkObject.h>
-#include <vnl/vnl_matrix.h>
-
-namespace cpExtensions
-{
-  namespace Algorithms
-  {
-    /**
-     */
-    template< class S, unsigned int D >
-    class IterativeGaussianModelEstimator
-      : public itk::Object
-    {
-    public:
-      typedef IterativeGaussianModelEstimator Self;
-      typedef itk::Object                     Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-      typedef S TScalar;
-      itkStaticConstMacro( Dimension, unsigned int, D );
-
-      // Begin concept checking
-#ifdef ITK_USE_CONCEPT_CHECKING
-      itkConceptMacro(
-        ScalarTypeHasFloatResolution,
-        ( itk::Concept::IsFloatingPoint< S > )
-        );
-#endif
-      // End concept checking
-
-      typedef vnl_matrix< S >        TMatrix;
-      typedef std::vector< TMatrix > TMatrices;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( IterativeGaussianModelEstimator, itkObject );
-
-    public:
-      unsigned long GetNumberOfSamples( ) const
-        { return( ( unsigned long )( this->m_N ) ); }
-      const TMatrix& GetMu( ) const
-        { return( this->m_M ); }
-      const TMatrix& GetOmega( ) const
-        { return( this->m_O ); }
-
-      void SetNumberOfSamples( unsigned long n );
-      void SetMu( const TMatrix& m );
-      void SetOmega( const TMatrix& O );
-
-      bool SaveModelToFile( const std::string& filename ) const;
-      bool LoadModelFromFile( const std::string& filename );
-
-      template< class V >
-      S Probability( const V& sample ) const;
-
-      S Probability( const S& s_x, const S& s_y, ... ) const;
-
-      template< class V, class M >
-      void GetModel( V& m, M& E ) const;
-
-      void Clear( );
-
-      template< class V >
-      void AddSample( const V& sample );
-
-      void AddSample( const S& s_x, const S& s_y, ... );
-
-    protected:
-      IterativeGaussianModelEstimator( );
-      virtual ~IterativeGaussianModelEstimator( );
-
-    protected:
-      void _UpdateModel( ) const;
-
-    private:
-      // Purposely not implemented
-      IterativeGaussianModelEstimator( const Self& other );
-      void operator=( const Self& other );
-
-    protected:
-      S m_N;
-      TMatrix m_M;
-      TMatrix m_O;
-
-      mutable bool m_Updated;
-      mutable TMatrix m_Cov;
-      mutable TMatrix m_Inv;
-      mutable S m_Norm;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-#include <cpExtensions/Algorithms/IterativeGaussianModelEstimator.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __CPEXTENSIONS__ALGORITHMS__ITERATIVEGAUSSIANMODELESTIMATOR__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/IterativeGaussianModelEstimator.hxx b/lib/cpExtensions/Algorithms/IterativeGaussianModelEstimator.hxx
deleted file mode 100644 (file)
index c6e3cb8..0000000
+++ /dev/null
@@ -1,291 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__ITERATIVEGAUSSIANMODELESTIMATOR__HXX__
-#define __CPEXTENSIONS__ALGORITHMS__ITERATIVEGAUSSIANMODELESTIMATOR__HXX__
-
-#include <cmath>
-#include <cstdarg>
-#include <fstream>
-#include <vnl/vnl_math.h>
-#include <vnl/vnl_inverse.h>
-
-// -------------------------------------------------------------------------
-template< class S, unsigned int D >
-void cpExtensions::Algorithms::IterativeGaussianModelEstimator< S, D >::
-SetNumberOfSamples( unsigned long n )
-{
-  this->m_N = S( n );
-  this->m_Updated = false;
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-template< class S, unsigned int D >
-void cpExtensions::Algorithms::IterativeGaussianModelEstimator< S, D >::
-SetMu( const TMatrix& m )
-{
-  if( m.rows( ) == D && m.columns( ) == 1 )
-  {
-    this->m_M = m;
-    this->m_Updated = false;
-    this->Modified( );
-  }
-  else
-  {
-    itkExceptionMacro(
-      << "Input Mu matrix is not a " << D << "x1 matrix"
-      );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-template< class S, unsigned int D >
-void cpExtensions::Algorithms::IterativeGaussianModelEstimator< S, D >::
-SetOmega( const TMatrix& O )
-{
-  if( O.rows( ) == D && O.columns( ) == D )
-  {
-    this->m_O = O;
-    this->m_Updated = false;
-    this->Modified( );
-  }
-  else
-  {
-    itkExceptionMacro(
-      << "Input Omega matrix is not a " << D << "x" << D << " matrix"
-      );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-template< class S, unsigned int D >
-bool cpExtensions::Algorithms::IterativeGaussianModelEstimator< S, D >::
-SaveModelToFile( const std::string& filename ) const
-{
-  std::ofstream out( filename.c_str( ) );
-  if( out )
-  {
-    out << this->m_N << std::endl;
-    out << this->m_M << std::endl;
-    out << this->m_O << std::endl;
-    out.close( );
-    return( true );
-  }
-  else
-    return( false );
-}
-
-// -------------------------------------------------------------------------
-template< class S, unsigned int D >
-bool cpExtensions::Algorithms::IterativeGaussianModelEstimator< S, D >::
-LoadModelFromFile( const std::string& filename )
-{
-  std::ifstream in( filename.c_str( ) );
-  if( in )
-  {
-    this->Clear( );
-    in >> this->m_N;
-    for( unsigned int i = 0; i < D; ++i )
-      in >> this->m_M[ i ][ 0 ];
-    for( unsigned int j = 0; j < D; ++j )
-      for( unsigned int i = 0; i < D; ++i )
-        in >> this->m_O[ i ][ j ];
-    in.close( );
-    return( true );
-  }
-  else
-    return( false );
-}
-
-// -------------------------------------------------------------------------
-template< class S, unsigned int D >
-template< class V >
-S cpExtensions::Algorithms::IterativeGaussianModelEstimator< S, D >::
-Probability( const V& sample ) const
-{
-  if( !this->m_Updated )
-    this->_UpdateModel( );
-
-  TMatrix c( D, 1 );
-  for( unsigned int d = 0; d < D; ++d )
-    c[ d ][ 0 ] = S( sample[ d ] ) - this->m_M[ d ][ 0 ];
-  if( S( 0 ) < this->m_Norm )
-  {
-    // Covariance is NOT null
-    double v = double( ( c.transpose( ) * ( this->m_Inv * c ) )[ 0 ][ 0 ] );
-    v /= double( 2 );
-
-    return( S( std::exp( -v ) ) );
-  }
-  else
-  {
-    // Covariance is null
-    S n = S( 0 );
-    for( unsigned int d = 0; d < D; ++d )
-      n += c[ d ][ 0 ] * c[ d ][ 0 ];
-    bool equal = ( double( n ) < double( 1e-10 ) );
-    return( ( equal )? S( 1 ): S( 0 ) );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-template< class S, unsigned int D >
-S cpExtensions::Algorithms::IterativeGaussianModelEstimator< S, D >::
-Probability( const S& s_x, const S& s_y, ... ) const
-{
-  static S sample[ D ];
-
-  std::va_list args_lst;
-  va_start( args_lst, s_y );
-  sample[ 0 ] = s_x;
-  sample[ 1 ] = s_y;
-  for( unsigned int d = 2; d < D; ++d )
-    sample[ d ] = S( va_arg( args_lst, double ) );
-  va_end( args_lst );
-  return( this->Probability( sample ) );
-}
-
-// -------------------------------------------------------------------------
-template< class S, unsigned int D >
-template< class V, class M >
-void cpExtensions::Algorithms::IterativeGaussianModelEstimator< S, D >::
-GetModel( V& m, M& E ) const
-{
-  if( !this->m_Updated )
-    this->_UpdateModel( );
-  for( unsigned int i = 0; i < D; ++i )
-  {
-    m[ i ] = double( this->m_M[ i ][ 0 ] );
-    for( unsigned int j = 0; j < D; ++j )
-      E[ i ][ j ] = double( this->m_Cov[ i ][ j ] );
-
-  } // rof
-}
-
-// -------------------------------------------------------------------------
-template< class S, unsigned int D >
-void cpExtensions::Algorithms::IterativeGaussianModelEstimator< S, D >::
-Clear( )
-{
-  this->m_N = S( 0 );
-  this->m_M.set_size( D, 1 );
-  this->m_O.set_size( D, D );
-  this->m_M.fill( S( 0 ) );
-  this->m_O.fill( S( 0 ) );
-  this->m_Updated = false;
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-template< class S, unsigned int D >
-template< class V >
-void cpExtensions::Algorithms::IterativeGaussianModelEstimator< S, D >::
-AddSample( const V& sample )
-{
-  TMatrix s( D, 1 );
-  for( unsigned int d = 0; d < D; ++d )
-    s[ d ][ 0 ] = S( sample[ d ] );
-
-  // Update mean
-  S coeff = this->m_N;
-  this->m_N += S( 1 );
-  coeff /= this->m_N;
-  this->m_M = ( this->m_M * coeff ) + ( s / this->m_N );
-
-  // Update omega operand
-  if( this->m_N == 1 )
-    this->m_O  = s * s.transpose( );
-  else if( this->m_N == 2 )
-    this->m_O += s * s.transpose( );
-  else
-  {
-    S inv = S( 1 ) / ( this->m_N - S( 1 ) );
-    this->m_O  = this->m_O * ( this->m_N - S( 2 ) ) * inv;
-    this->m_O += ( s * s.transpose( ) ) * inv;
-
-  } // fi
-
-  this->m_Updated = false;
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-template< class S, unsigned int D >
-void cpExtensions::Algorithms::IterativeGaussianModelEstimator< S, D >::
-AddSample( const S& s_x, const S& s_y, ... )
-{
-  static S sample[ D ];
-
-  std::va_list args_lst;
-  va_start( args_lst, s_y );
-  sample[ 0 ] = s_x;
-  if( D > 1 )
-  {
-    sample[ 1 ] = s_y;
-    for( unsigned int d = 2; d < D; ++d )
-      sample[ d ] = S( va_arg( args_lst, double ) );
-    va_end( args_lst );
-
-  } // fi
-  this->AddSample( sample );
-}
-
-// -------------------------------------------------------------------------
-template< class S, unsigned int D >
-cpExtensions::Algorithms::IterativeGaussianModelEstimator< S, D >::
-IterativeGaussianModelEstimator( )
-  : Superclass( )
-{
-  this->Clear( );
-}
-
-// -------------------------------------------------------------------------
-template< class S, unsigned int D >
-cpExtensions::Algorithms::IterativeGaussianModelEstimator< S, D >::
-~IterativeGaussianModelEstimator( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class S, unsigned int D >
-void cpExtensions::Algorithms::IterativeGaussianModelEstimator< S, D >::
-_UpdateModel( ) const
-{
-  static const double _2piD =
-    std::pow( double( 2 ) * double( vnl_math::pi ), D );
-
-  // Update covariance
-  this->m_Cov =
-    this->m_O -
-    (
-      ( this->m_M * this->m_M.transpose( ) ) *
-      ( this->m_N / ( this->m_N - S( 1 ) ) )
-      );
-
-  // Compute inverse and determinant
-  S det = vnl_determinant( this->m_Cov );
-  if( !( det > S( 0 ) ) )
-  {
-    this->m_Inv.set_size( D, D );
-    this->m_Inv.fill( S( 0 ) );
-    this->m_Norm = S( 0 );
-  }
-  else
-  {
-    this->m_Inv = vnl_inverse( this->m_Cov );
-    this->m_Norm = S( 1 ) / S( std::sqrt( _2piD * double( det ) ) );
-
-  } // fi
-
-  // Object now is updated
-  this->m_Updated = true;
-}
-
-#endif // __CPEXTENSIONS__ALGORITHMS__ITERATIVEGAUSSIANMODELESTIMATOR__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/KalmanConstantFilter.cxx b/lib/cpExtensions/Algorithms/KalmanConstantFilter.cxx
deleted file mode 100644 (file)
index 0fd5d6c..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#include <cpExtensions/Algorithms/KalmanConstantFilter.h>
-
-// -------------------------------------------------------------------------
-template< typename T >
-void cpExtensions::Algorithms::KalmanConstantFilter< T >::
-Configure( unsigned int m )
-{
-  this->Superclass::Configure( m, 1, m );
-}
-
-// -------------------------------------------------------------------------
-template< typename T >
-void cpExtensions::Algorithms::KalmanConstantFilter< T >::
-Initialize( )
-{
-  this->Superclass::Initialize( );
-
-  this->m_A.set_identity( );
-  this->m_B.fill( TScalar( 0 ) );
-  this->m_H.set_identity( );
-}
-
-// -------------------------------------------------------------------------
-template< typename T >
-cpExtensions::Algorithms::KalmanConstantFilter< T >::
-KalmanConstantFilter( )
-  : Superclass( )
-{
-  this->Configure( 1 );
-}
-
-// -------------------------------------------------------------------------
-template< typename T >
-cpExtensions::Algorithms::KalmanConstantFilter< T >::
-~KalmanConstantFilter( )
-{
-}
-
-// -------------------------------------------------------------------------
-// Explicit instantiations
-
-template class cpExtensions::Algorithms::KalmanConstantFilter< float >;
-template class cpExtensions::Algorithms::KalmanConstantFilter< double >;
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/KalmanConstantFilter.h b/lib/cpExtensions/Algorithms/KalmanConstantFilter.h
deleted file mode 100644 (file)
index 860a8f3..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__KALMANCONSTANTFILTER__H__
-#define __CPEXTENSIONS__ALGORITHMS__KALMANCONSTANTFILTER__H__
-
-#include <cpExtensions/Algorithms/KalmanFilter.h>
-
-namespace cpExtensions
-{
-  namespace Algorithms
-  {
-    /**
-     */
-    template< typename T >
-    class cpExtensions_EXPORT KalmanConstantFilter
-      : public KalmanFilter< T >
-    {
-    public:
-      typedef KalmanConstantFilter            Self;
-      typedef KalmanFilter< T >               Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-      typedef typename Superclass::TScalar TScalar;
-      typedef typename Superclass::TMatrix TMatrix;
-      typedef typename Superclass::TVector TVector;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( KalmanConstantFilter, KalmanFilter );
-
-    public:
-      void Configure( unsigned int m );
-
-      // Iteration methods
-      virtual void Initialize( );
-
-    protected:
-      KalmanConstantFilter( );
-      virtual ~KalmanConstantFilter( );
-
-    private:
-      // Purposely not implemented.
-      KalmanConstantFilter( const Self& );
-      void operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPEXTENSIONS__ALGORITHMS__KALMANCONSTANTFILTER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/KalmanFilter.cxx b/lib/cpExtensions/Algorithms/KalmanFilter.cxx
deleted file mode 100644 (file)
index add2041..0000000
+++ /dev/null
@@ -1,137 +0,0 @@
-#include <cpExtensions/Algorithms/KalmanFilter.h>
-
-#include <cstdlib>
-#include <vnl/algo/vnl_matrix_inverse.h>
-
-// -------------------------------------------------------------------------
-template< typename T >
-void cpExtensions::Algorithms::KalmanFilter< T >::
-Configure( unsigned int s, unsigned int i, unsigned int m )
-{
-  this->m_StateSize   = s;
-  this->m_InputSize   = i;
-  this->m_MeasureSize = m;
-
-  // Matrices
-  this->m_A.set_size( s, s );
-  this->m_B.set_size( s, i );
-  this->m_H.set_size( m, s );
-  this->m_Id.set_size( s, s );
-  this->m_Q.set_size( s, s );
-  this->m_R.set_size( m, m );
-  this->m_P0.set_size( s, s );
-  this->m_K.set_size( s, m );
-  this->m_Pm.set_size( s, s );
-  this->m_Pp.set_size( s, s );
-
-  // Vectors
-  this->m_x0.set_size( s );
-  this->m_u.set_size( i );
-  this->m_m.set_size( m );
-  this->m_xm.set_size( s );
-  this->m_xp.set_size( s );
-
-  // Static values
-  this->m_Id.set_identity( );
-}
-
-// -------------------------------------------------------------------------
-template< typename T >
-void cpExtensions::Algorithms::KalmanFilter< T >::
-Initialize( )
-{
-  // Set all to the first iteration
-  this->m_I = 0;
-  this->m_Step = Self::StFilt;
-}
-
-// -------------------------------------------------------------------------
-template< typename T >
-void cpExtensions::Algorithms::KalmanFilter< T >::
-Predict( )
-{
-  if( this->m_Step == Self::StFilt )
-  {
-    if( this->m_I == 0 )
-    {
-      this->m_xp = this->m_x0;
-      this->m_Pp = this->m_P0;
-
-    } // fi
-
-    // Project the state
-    this->m_xm = ( this->m_A * this->m_xp ) + ( this->m_B * this->m_u );
-
-    // Project the error
-    this->m_Pm  = this->m_A * this->m_Pp * this->m_A.transpose( );
-    this->m_Pm += this->m_Q;
-
-    this->m_Step = Self::StPred;
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-template< typename T >
-void cpExtensions::Algorithms::KalmanFilter< T >::
-Innovate( )
-{
-  typedef vnl_matrix_inverse< T > _TInv;
-
-  if( this->m_Step == Self::StPred )
-  {
-    // Kalman gain
-    this->m_K  = this->m_Pm * this->m_H.transpose( );
-    this->m_K *=
-      _TInv(
-        ( this->m_H * this->m_Pm * this->m_H.transpose( ) ) + this->m_R
-        );
-
-    this->m_Step = Self::StInno;
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-template< typename T >
-void cpExtensions::Algorithms::KalmanFilter< T >::
-Filtrate( )
-{
-  if( this->m_Step == Self::StInno )
-  {
-    // A posteriori state
-    this->m_xp  = this->m_xm;
-    this->m_xp += this->m_K * ( this->m_m - ( this->m_H * this->m_xm ) );
-
-    // A posteriori error
-    this->m_Pp = ( this->m_Id - ( this->m_K * this->m_H ) ) * this->m_Pm;
-
-    this->m_Step = Self::StFilt;
-    this->m_I++;
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-template< typename T >
-cpExtensions::Algorithms::KalmanFilter< T >::
-KalmanFilter( )
-  : Superclass( )
-{
-  this->Configure( 1, 1, 1 );
-}
-
-// -------------------------------------------------------------------------
-template< typename T >
-cpExtensions::Algorithms::KalmanFilter< T >::
-~KalmanFilter( )
-{
-}
-
-// -------------------------------------------------------------------------
-// Explicit instantiations
-
-template class cpExtensions::Algorithms::KalmanFilter< float >;
-template class cpExtensions::Algorithms::KalmanFilter< double >;
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/KalmanFilter.h b/lib/cpExtensions/Algorithms/KalmanFilter.h
deleted file mode 100644 (file)
index bd0c17a..0000000
+++ /dev/null
@@ -1,215 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__KALMANFILTER__H__
-#define __CPEXTENSIONS__ALGORITHMS__KALMANFILTER__H__
-
-#include <cpExtensions/cpExtensions_Export.h>
-
-#include <itkObject.h>
-#include <itkObjectFactory.h>
-#include <vnl/vnl_matrix.h>
-#include <vnl/vnl_vector.h>
-
-// -------------------------------------------------------------------------
-#define kalmanGetSetMacro( type, name )         \
-  itkGetConstMacro( name, type );               \
-  itkSetMacro( name, type );
-
-// -------------------------------------------------------------------------
-#define kalmanGetMatrixMacro( var, name )       \
-  virtual const TMatrix& Get##name( ) const     \
-  { return( this->m_##var ); }
-
-// -------------------------------------------------------------------------
-#define kalmanSetMatrixMacro( var, name )       \
-  virtual void Set##name( const TMatrix& m )    \
-  { this->Set##var( m ); }
-
-// -------------------------------------------------------------------------
-#define kalmanGetSetMatrixMacro( var, name )    \
-  kalmanGetMatrixMacro( var, name );            \
-  kalmanSetMatrixMacro( var, name );
-
-// -------------------------------------------------------------------------
-#define kalmanGetVectorMacro( var, name )       \
-  virtual const TVector& Get##name( ) const     \
-  { return( this->m_##var ); }
-
-// -------------------------------------------------------------------------
-#define kalmanSetVectorMacro( var, name )       \
-  virtual void Set##name( const TVector& v )    \
-  { this->Set##var( v ); }
-
-// -------------------------------------------------------------------------
-#define kalmanGetSetVectorMacro( var, name )    \
-  kalmanGetVectorMacro( var, name );            \
-  kalmanSetVectorMacro( var, name );
-
-namespace cpExtensions
-{
-  namespace Algorithms
-  {
-    /**
-     * Abstract class implementing the classical kalman filter. See
-     * http://www.cs.unc.edu/~welch/media/pdf/kalman_intro.pdf
-     * for a description of this algorithm.
-     */
-    template< typename T >
-    class cpExtensions_EXPORT KalmanFilter
-      : public itk::Object
-    {
-    public:
-      typedef KalmanFilter                    Self;
-      typedef itk::Object                     Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-      // Template parameters types
-      typedef T TScalar;
-
-      // VNL types
-      typedef vnl_matrix< TScalar > TMatrix;
-      typedef vnl_vector< TScalar > TVector;
-
-      //  stage identificators
-      enum
-      {
-        StPred,
-        StInno,
-        StFilt
-      };
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( KalmanFilter, itkObject );
-
-      // Values
-      itkGetConstMacro( StateSize, unsigned int );
-      itkGetConstMacro( InputSize, unsigned int );
-      itkGetConstMacro( MeasureSize, unsigned int );
-
-      // Matrices
-      kalmanGetSetMacro( TMatrix, A );
-      kalmanGetSetMacro( TMatrix, B );
-      kalmanGetSetMacro( TMatrix, H );
-      kalmanGetSetMacro( TMatrix, Q );
-      kalmanGetSetMacro( TMatrix, R );
-      kalmanGetSetMacro( TMatrix, P0 );
-      kalmanGetSetMacro( TMatrix, K );
-      kalmanGetSetMacro( TMatrix, Pm );
-      kalmanGetSetMacro( TMatrix, Pp );
-
-      // Vectors
-      kalmanGetSetMacro( TVector, x0 );
-      kalmanGetSetMacro( TVector, u );
-      kalmanGetSetMacro( TVector, m );
-      kalmanGetSetMacro( TVector, xm );
-      kalmanGetSetMacro( TVector, xp );
-
-      // Human-readable matrices
-      kalmanGetSetMatrixMacro( A, TransitionMatrix );
-      kalmanGetSetMatrixMacro( B, InputControlMatrix );
-      kalmanGetSetMatrixMacro( H, MeasureMatrix );
-      kalmanGetSetMatrixMacro( Q, ProcessNoise );
-      kalmanGetSetMatrixMacro( R, MeasureNoise );
-      kalmanGetSetMatrixMacro( P0, InitialNoise );
-      kalmanGetSetMatrixMacro( K, Gain );
-      kalmanGetSetMatrixMacro( Pm, APrioriNoise );
-      kalmanGetSetMatrixMacro( Pp, APosterioriNoise );
-
-      // Human-readable vectors
-      kalmanGetSetVectorMacro( x0, InitialState );
-      kalmanGetSetVectorMacro( u, Input );
-      kalmanGetSetVectorMacro( m, Measure );
-      kalmanGetSetVectorMacro( xm, APrioriState );
-      kalmanGetSetVectorMacro( xp, APosterioriState );
-
-    public:
-
-      void Configure( unsigned int s, unsigned int i, unsigned int m );
-
-      // Iteration methods
-      virtual void Initialize( );
-      virtual void Predict( );
-      virtual void Innovate( );
-      virtual void Filtrate( );
-      virtual void OneStep( )
-        {
-          this->Predict( );
-          this->Innovate( );
-          this->Filtrate( );
-        }
-      virtual void NSteps( unsigned int n )
-        {
-          for( unsigned int i = 0; i < n; i++ )
-            this->OneStep( );
-        }
-      unsigned int CurrentIteration( ) const
-        { return( this->m_I ); }
-      unsigned char CurrentStep( ) const
-        { return( this->m_Step ); }
-
-    protected:
-      KalmanFilter( );
-      virtual ~KalmanFilter( );
-
-    private:
-      // Purposely not implemented
-      KalmanFilter( const Self& );
-      void operator=( const Self& );
-
-    protected:
-      // Filter dimensions
-      unsigned int m_StateSize;
-      unsigned int m_InputSize;
-      unsigned int m_MeasureSize;
-
-      // Transition matrices
-      TMatrix m_A;  // Transition
-      TMatrix m_B;  // Input control
-      TMatrix m_H;  // Measure
-      TMatrix m_Id; // Identity matrix
-
-      // Noise matrices
-      TMatrix m_Q; // Process noise covariance
-      TMatrix m_R; // Measure noise covariance
-
-      // Initial values
-      TVector m_x0; // Initial state
-      TMatrix m_P0; // Initial error covariance
-
-      // Loop vectors
-      TVector m_u;  // Last real input
-      TVector m_m;  // Last real measure
-      TVector m_xm; // A priori state
-      TVector m_xp; // A posteriori state
-
-      // Loop matrices
-      TMatrix m_K; // kalman gain
-      TMatrix m_Pm; // A priori error
-      TMatrix m_Pp; // A posteriori error
-
-      // Loop values
-      unsigned int  m_I;    // Current iteration
-      unsigned char m_Step; // Current step within current iteration
-
-      // -------------------------------------------------------------------
-      // Classic kronecker product operator
-      // -------------------------------------------------------------------
-      template< class M >
-      static void Kronecker( M& AkB, const M& A, const M& B );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-#include <cpExtensions/Algorithms/KalmanFilter.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __CPEXTENSIONS__ALGORITHMS__KALMANFILTER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/KalmanFilter.hxx b/lib/cpExtensions/Algorithms/KalmanFilter.hxx
deleted file mode 100644 (file)
index e81cae2..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-#ifndef __CPEXTENSIONS__ALGORITHMS__KALMANFILTER__HXX__
-#define __CPEXTENSIONS__ALGORITHMS__KALMANFILTER__HXX__
-
-// -------------------------------------------------------------------------
-template< typename T >
-template< class M >
-void cpExtensions::Algorithms::KalmanFilter< T >::
-Kronecker( M& AkB, const M& A, const M& B )
-{
-  unsigned int m = A.rows( ); unsigned int n = A.cols( );
-  unsigned int p = B.rows( ); unsigned int q = B.cols( );
-  AkB.set_size( m * p, n * q );
-
-  for( unsigned int i = 1; i <= m; ++i )
-  {
-    for( unsigned int j = 1; j <= n; ++j )
-    {
-      for( unsigned int k = 1; k <= p; ++k )
-      {
-        for( unsigned int l = 1; l <= q; ++l )
-        {
-          unsigned int al = ( ( p * ( i - 1 ) ) + k ) - 1;
-          unsigned int be = ( ( q * ( j - 1 ) ) + l ) - 1;
-          AkB[ al ][ be ] = A[ i - 1 ][ j - 1 ] * B[ k - 1 ][ l - 1 ];
-
-        } // rof
-
-      } // rof
-
-    } // rof
-
-  } // rof
-}
-
-#endif // __CPEXTENSIONS__ALGORITHMS__KALMANFILTER__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/KalmanVelocityFilter.cxx b/lib/cpExtensions/Algorithms/KalmanVelocityFilter.cxx
deleted file mode 100644 (file)
index a725e16..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#include <cpExtensions/Algorithms/KalmanVelocityFilter.h>
-#include <cmath>
-
-// -------------------------------------------------------------------------
-template< typename T >
-void cpExtensions::Algorithms::KalmanVelocityFilter< T >::
-Configure( unsigned int m )
-{
-  this->Superclass::Configure( m << 1, 1, m );
-
-  this->m_TimeOffset.set_size( 2, 2 );
-  this->SetTimeOffset( TScalar( 1 ) );
-
-  this->m_Sigma.set_size( this->m_MeasureSize, this->m_MeasureSize );
-  this->m_Sigma.set_identity( );
-}
-
-// -------------------------------------------------------------------------
-template< typename T >
-typename cpExtensions::Algorithms::KalmanVelocityFilter< T >::
-TScalar cpExtensions::Algorithms::KalmanVelocityFilter< T >::
-GetTimeOffset( ) const
-{
-  return( TScalar( std::sqrt( double( this->m_TimeOffset[ 1 ][ 1 ] ) ) ) );
-}
-
-// -------------------------------------------------------------------------
-template< typename T >
-void cpExtensions::Algorithms::KalmanVelocityFilter< T >::
-SetTimeOffset( TScalar t )
-{
-  TScalar t2 = t * t;
-  TScalar t3 = t2 * t;
-  TScalar t4 = t3 * t;
-  this->m_TimeOffset[ 0 ][ 0 ] = t4 / TScalar( 4 );
-  this->m_TimeOffset[ 1 ][ 1 ] = t2;
-
-  this->m_TimeOffset[ 0 ][ 1 ] = t3 / TScalar( 2 );
-  this->m_TimeOffset[ 1 ][ 0 ] = this->m_TimeOffset[ 0 ][ 1 ];
-}
-
-// -------------------------------------------------------------------------
-template< typename T >
-void cpExtensions::Algorithms::KalmanVelocityFilter< T >::
-Initialize( )
-{
-  this->Superclass::Initialize( );
-
-  Self::Kronecker( this->m_Q, this->m_Sigma, this->m_TimeOffset );
-
-  this->m_A.set_identity( );
-  this->m_B.fill( TScalar( 0 ) );
-  this->m_H.fill( TScalar( 0 ) );
-
-  TScalar tOff = this->GetTimeOffset( );
-  for( unsigned int i = 0; i < this->m_MeasureSize; i++ )
-  {
-    this->m_A[ i ][ this->m_MeasureSize + i ] = tOff;
-    this->m_H[ i ][ i ] = TScalar( 1 );
-
-  } // rof
-}
-
-// -------------------------------------------------------------------------
-template< typename T >
-cpExtensions::Algorithms::KalmanVelocityFilter< T >::
-KalmanVelocityFilter( )
-  : Superclass( )
-{
-  this->Configure( 1 );
-}
-
-// -------------------------------------------------------------------------
-template< typename T >
-cpExtensions::Algorithms::KalmanVelocityFilter< T >::
-~KalmanVelocityFilter( )
-{
-}
-
-// -------------------------------------------------------------------------
-// Explicit instantiations
-
-template class cpExtensions::Algorithms::KalmanVelocityFilter< float >;
-template class cpExtensions::Algorithms::KalmanVelocityFilter< double >;
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/KalmanVelocityFilter.h b/lib/cpExtensions/Algorithms/KalmanVelocityFilter.h
deleted file mode 100644 (file)
index 2055420..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__KALMANVELOCITYFILTER__H__
-#define __CPEXTENSIONS__ALGORITHMS__KALMANVELOCITYFILTER__H__
-
-#include <cpExtensions/Algorithms/KalmanFilter.h>
-
-namespace cpExtensions
-{
-  namespace Algorithms
-  {
-    /**
-     */
-    template< typename T >
-    class cpExtensions_EXPORT KalmanVelocityFilter
-      : public KalmanFilter< T >
-    {
-    public:
-      typedef KalmanVelocityFilter            Self;
-      typedef KalmanFilter< T >               Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-      typedef typename Superclass::TScalar TScalar;
-      typedef typename Superclass::TMatrix TMatrix;
-      typedef typename Superclass::TVector TVector;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( KalmanVelocityFilter, KalmanFilter );
-
-      kalmanGetSetMacro( TMatrix, Sigma );
-      kalmanGetSetMatrixMacro( Sigma, AccelerationNoise );
-
-    public:
-      void Configure( unsigned int m );
-
-      TScalar GetTimeOffset( ) const;
-      void SetTimeOffset( TScalar t );
-
-      /// Iteration methods
-        virtual void Initialize( );
-
-    protected:
-        KalmanVelocityFilter( );
-        virtual ~KalmanVelocityFilter( );
-
-    private:
-        // Purposely not implemented.
-        KalmanVelocityFilter( const Self& );
-        void operator=( const Self& );
-
-    protected:
-        TMatrix m_TimeOffset;
-        TMatrix m_Sigma;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPEXTENSIONS__ALGORITHMS__KALMANVELOCITYFILTER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/LightCompensationFilter.h b/lib/cpExtensions/Algorithms/LightCompensationFilter.h
deleted file mode 100644 (file)
index a3c28ff..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__LIGHTCOMPENSATIONFILTER__H__
-#define __CPEXTENSIONS__ALGORITHMS__LIGHTCOMPENSATIONFILTER__H__
-
-#include <itkInPlaceImageFilter.h>
-#include <cpExtensions/Algorithms/ParallelImageMean.h>
-
-namespace cpExtensions
-{
-  namespace Algorithms
-  {
-    /**
-     */
-    template< class I >
-    class LightCompensationFilter
-      : public itk::InPlaceImageFilter< I, I >
-    {
-    public:
-      typedef LightCompensationFilter         Self;
-      typedef itk::InPlaceImageFilter< I, I > Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-      typedef I TImage;
-      typedef typename I::RegionType TRegion;
-
-      typedef cpExtensions::Algorithms::ParallelImageMean< I > TMeanCalculator;
-      typedef typename TMeanCalculator::TMean TMean;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( LightCompensationFilter, itkInPlaceImageFilter );
-
-      itkGetConstMacro( Mean, TMean );
-
-    protected:
-      LightCompensationFilter( );
-      virtual ~LightCompensationFilter( );
-
-    private:
-      virtual void BeforeThreadedGenerateData( );
-      virtual void ThreadedGenerateData(
-        const TRegion& region, itk::ThreadIdType id
-        );
-      virtual void AfterThreadedGenerateData( );
-
-    protected:
-      TMean m_Mean;
-      TMean m_Coefficient;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-#include <cpExtensions/Algorithms/LightCompensationFilter.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __CPEXTENSIONS__ALGORITHMS__LIGHTCOMPENSATIONFILTER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/LightCompensationFilter.hxx b/lib/cpExtensions/Algorithms/LightCompensationFilter.hxx
deleted file mode 100644 (file)
index f75ffcd..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__LIGHTCOMPENSATIONFILTER__HXX__
-#define __CPEXTENSIONS__ALGORITHMS__LIGHTCOMPENSATIONFILTER__HXX__
-
-#include <itkImageRegionIterator.h>
-#include <itkImageRegionConstIterator.h>
-#include <itkNumericTraits.h>
-
-// -------------------------------------------------------------------------
-template< class I >
-cpExtensions::Algorithms::LightCompensationFilter< I >::
-LightCompensationFilter( )
-  : Superclass( )
-{
-  this->SetNumberOfRequiredInputs( 1 );
-  this->InPlaceOff( );
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-cpExtensions::Algorithms::LightCompensationFilter< I >::
-~LightCompensationFilter( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-void cpExtensions::Algorithms::LightCompensationFilter< I >::
-BeforeThreadedGenerateData( )
-{
-  this->Superclass::BeforeThreadedGenerateData( );
-
-  I* input = const_cast< I* >( this->GetInput( ) );
-
-  typename TMeanCalculator::Pointer mc = TMeanCalculator::New( );
-  mc->Execute( input, input->GetRequestedRegion( ) );
-  this->m_Mean = mc->GetMean( );
-
-  double gm = this->m_Mean[ 0 ] + this->m_Mean[ 1 ] + this->m_Mean[ 2 ];
-  gm /= double( 3 );
-  this->m_Coefficient = this->m_Mean;
-  this->m_Coefficient.Fill( gm );
-  this->m_Coefficient[ 0 ] /= this->m_Mean[ 0 ];
-  this->m_Coefficient[ 1 ] /= this->m_Mean[ 1 ];
-  this->m_Coefficient[ 2 ] /= this->m_Mean[ 2 ];
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-void cpExtensions::Algorithms::LightCompensationFilter< I >::
-ThreadedGenerateData( const TRegion& region, itk::ThreadIdType id )
-{
-  typedef itk::NumericTraits< typename I::PixelType > _TPixelTraits;
-  typedef typename _TPixelTraits::ValueType           _TPixelChannel;
-  typedef itk::NumericTraits< _TPixelChannel >        _TChannelTraits;
-  static const double max_value = double( _TChannelTraits::max( ) );
-
-  itk::ImageRegionConstIterator< I > iIt( this->GetInput( ), region );
-  itk::ImageRegionIterator< I > oIt( this->GetOutput( ), region );
-
-  iIt.GoToBegin( );
-  oIt.GoToBegin( );
-  for( ; !iIt.IsAtEnd( ); ++iIt, ++oIt )
-  {
-    double r = double( iIt.Get( )[ 0 ] ) * this->m_Coefficient[ 0 ];
-    double g = double( iIt.Get( )[ 1 ] ) * this->m_Coefficient[ 1 ];
-    double b = double( iIt.Get( )[ 2 ] ) * this->m_Coefficient[ 2 ];
-
-    if( r > max_value ) r = max_value;
-    if( g > max_value ) g = max_value;
-    if( b > max_value ) b = max_value;
-
-    typename I::PixelType pix;
-    pix.SetRed( _TPixelChannel( r ) );
-    pix.SetGreen( _TPixelChannel( g ) );
-    pix.SetBlue( _TPixelChannel( b ) );
-
-    oIt.Set( pix );
-
-  } // rof
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-void cpExtensions::Algorithms::LightCompensationFilter< I >::
-AfterThreadedGenerateData( )
-{
-  this->Superclass::AfterThreadedGenerateData( );
-}
-
-#endif // __CPEXTENSIONS__ALGORITHMS__LIGHTCOMPENSATIONFILTER__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/MacheteImageFilter.h b/lib/cpExtensions/Algorithms/MacheteImageFilter.h
deleted file mode 100644 (file)
index d9d3c32..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Jose Luis Guzman (cycopepe@gmail.com)
-// -------------------------------------------------------------------------
-
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__MACHETEIMAGEFILTER__H__
-#define __CPEXTENSIONS__ALGORITHMS__MACHETEIMAGEFILTER__H__
-
-#include <cpExtensions/cpExtensions_Export.h>
-
-#include <itkImageToImageFilter.h>
-
-namespace cpExtensions
-{
-  namespace Algorithms
-  {
-    template< class I, class O>
-    class MacheteImageFilter :public itk::ImageToImageFilter < I, O >
-    {
-    public:
-      /** Standard class typedefs. */
-      typedef MacheteImageFilter             Self;
-
-      typedef itk::ImageToImageFilter< I, O > Superclass;
-      typedef itk::SmartPointer< Self >        Pointer;
-
-      /** Method for creation through the object factory. */
-      itkNewMacro(Self);
-
-      /** Run-time type information (and related methods). */
-      itkTypeMacro(MacheteImageFilter, ImageToImageFilter);
-      
-      typedef typename I::PixelType           RadiusType;
-      //typedef typename I::SizeValueType      RadiusValueType;
-      
-      itkGetConstReferenceMacro(Radius, RadiusType);
-
-      
-      void SetRadius(const RadiusType & rad);
-      //void SetRadius(const RadiusValueType & rad);
-
-      void SetPoint(itk::Point<double, 3> & point);
-      void SetPoint(const double & x, const double & y, const double & z);
-
-    protected:
-      MacheteImageFilter(){}
-      ~MacheteImageFilter(){}
-
-      /** Does the real work. */
-      virtual void GenerateData();
-
-      RadiusType m_Radius;
-      itk::Point<double, 3> point;
-
-    private:
-      MacheteImageFilter(const Self &); //purposely not implemented
-      void operator=(const Self &);  //purposely not implemented
-
-     
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-
-#ifndef ITK_MANUAL_INSTANTIATION
-#include <cpExtensions/Algorithms/MacheteImageFilter.hxx>
-#endif
-
-
-#endif // __CPEXTENSIONS__ALGORITHMS__MACHETEIMAGEFILTER__H__
\ No newline at end of file
diff --git a/lib/cpExtensions/Algorithms/MacheteImageFilter.hxx b/lib/cpExtensions/Algorithms/MacheteImageFilter.hxx
deleted file mode 100644 (file)
index a984df1..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-#ifndef __CPEXTENSIONS__ALGORITHMS__MACHETEIMAGEFILTER__HXX__
-#define __CPEXTENSIONS__ALGORITHMS__MACHETEIMAGEFILTER__HXX__
-
-#include <cpExtensions/Algorithms/MacheteImageFilter.h>
-
-//filter stuff
-#include "itkObjectFactory.h"
-#include "itkImageRegionIterator.h"
-#include "itkImageRegionConstIterator.h"
-
-//typedef itk::Image<unsigned char, 2>  ImageType;
-
-template< class I, class O>
-void cpExtensions::Algorithms::MacheteImageFilter<  I, O>
-::GenerateData()
-{
-  //const typename Superclass::OutputImageRegionType& region;
-
-  typename I::ConstPointer input = this->GetInput();
-
-  typename O::Pointer output = this->GetOutput();
-  output->SetRegions(input->GetLargestPossibleRegion());
-  output->Allocate();
-
-  itk::ImageRegionIterator<O> outputIterator(output, output->GetLargestPossibleRegion());
-  itk::ImageRegionConstIterator<I> inputIterator(input, input->GetLargestPossibleRegion());
-
-  while (!outputIterator.IsAtEnd())
-  {
-    auto p0 = inputIterator.GetIndex();
-    itk::Point<double, 3> otherPoint;
-    otherPoint[0] = p0[0];
-    otherPoint[1] = p0[1];
-    otherPoint[2] = p0[2];
-    //otherPoint[2] = this->point[2]; // TODO : Solve this hammer
-
-    double dist = this->point.EuclideanDistanceTo(otherPoint);
-    if (dist <= this->m_Radius)
-    {
-      outputIterator.Set(0);
-    }
-    else
-    {
-      outputIterator.Set(inputIterator.Get());
-    }
-
-    ++inputIterator;
-    ++outputIterator;
-  }
-
-  
-}
-
-template< class I, class O>
-void cpExtensions::Algorithms::MacheteImageFilter< I, O>::SetRadius(const RadiusType & rad)
-{
-  if (this->m_Radius != rad)
-  {
-    this->m_Radius = rad;
-    this->Modified();
-  }
-}
-
-//template< class I, class O>
-//void cpExtensions::Algorithms::MacheteImageFilter< I, O>::SetRadius(const RadiusValueType & rad)
-//{
-//  RadiusType r;
-//  r.Fill(rad);
-//  this->SetRadius(r);
-//}
-
-template< class I, class O>
-void cpExtensions::Algorithms::MacheteImageFilter< I, O>::SetPoint(itk::Point<double, 3> & p){
-  if (point != p)
-  {
-    this->point = p;
-    this->Modified();
-  }
-}
-
-template< class I, class O>
-void cpExtensions::Algorithms::MacheteImageFilter< I, O>::SetPoint(const double & x, const double & y, const double & z)
-{
-  this->point[0] = x;
-  this->point[1] = y;
-  this->point[2] = z;
-  this->Modified();
-}
-
-
-
-#endif
\ No newline at end of file
diff --git a/lib/cpExtensions/Algorithms/MultiScaleGaussianImageFilter.h b/lib/cpExtensions/Algorithms/MultiScaleGaussianImageFilter.h
deleted file mode 100644 (file)
index 5dba45b..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__MULTISCALEGAUSSIANIMAGEFILTER__H__
-#define __CPEXTENSIONS__ALGORITHMS__MULTISCALEGAUSSIANIMAGEFILTER__H__
-
-#include <set>
-#include <itkImageToImageFilter.h>
-
-namespace cpExtensions
-{
-  namespace Algorithms
-  {
-    /**
-     */
-    template< class I, class O >
-    class MultiScaleGaussianImageFilter
-      : public itk::ImageToImageFilter< I, O >
-    {
-    public:
-      typedef MultiScaleGaussianImageFilter   Self;
-      typedef itk::ImageToImageFilter< I, O > Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-      typedef I TInputImage;
-      typedef O TOutputImage;
-
-      typedef std::set< double > TScalesContainer;
-
-      enum FilterId
-      {
-        Gradient = 0,
-        GradientMagnitude,
-        Hessian,
-        None
-      };
-
-    protected:
-      /**
-       */
-      class _Greater
-      {
-      public:
-        typedef typename O::PixelType _T;
-
-      public:
-        _Greater( );
-        virtual ~_Greater( );
-        bool operator!=( const _Greater& b ) const;
-        bool operator==( const _Greater& b ) const;
-        inline _T operator()( const _T& a ) const;
-        inline _T operator()( const _T& a, const _T& b ) const;
-      };
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( MultiScaleGaussianImageFilter, itkImageToImageFilter );
-
-    public:
-      void SetFilterToGradient( );
-      void SetFilterToGradientMagnitude( );
-      void SetFilterToHessian( );
-
-      bool IsGradientFilter( ) const;
-      bool IsGradientMagnitudeFilter( ) const;
-      bool IsHessianFilter( ) const;
-
-      void AddScale( const double& s );
-      unsigned long GetNumberOfScales( ) const;
-
-    protected:
-      MultiScaleGaussianImageFilter( );
-      virtual ~MultiScaleGaussianImageFilter( );
-
-      virtual void GenerateData( );
-
-      template< class F >
-      void _GenerateData( );
-
-    private:
-      // Purposely not implemented.
-      MultiScaleGaussianImageFilter( const Self& );
-      void operator=( const Self& );
-
-    protected:
-      TScalesContainer m_Scales;
-      FilterId m_FilterId;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-#include <cpExtensions/Algorithms/MultiScaleGaussianImageFilter.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __CPEXTENSIONS__ALGORITHMS__MULTISCALEGAUSSIANIMAGEFILTER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/MultiScaleGaussianImageFilter.hxx b/lib/cpExtensions/Algorithms/MultiScaleGaussianImageFilter.hxx
deleted file mode 100644 (file)
index c2e7cff..0000000
+++ /dev/null
@@ -1,315 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__MULTISCALEGAUSSIANIMAGEFILTER__HXX__
-#define __CPEXTENSIONS__ALGORITHMS__MULTISCALEGAUSSIANIMAGEFILTER__HXX__
-
-#include <vnl/vnl_vector.h>
-
-#include <itkImageRegionIterator.h>
-#include <itkImageRegionConstIterator.h>
-#include <itkNumericTraits.h>
-#include <itkProgressAccumulator.h>
-
-#include <itkBinaryFunctorImageFilter.h>
-#include <itkUnaryFunctorImageFilter.h>
-#include <itkGradientMagnitudeRecursiveGaussianImageFilter.h>
-#include <itkGradientRecursiveGaussianImageFilter.h>
-#include <itkHessianRecursiveGaussianImageFilter.h>
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-cpExtensions::Algorithms::
-MultiScaleGaussianImageFilter< I, O >::_Greater::
-_Greater( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-cpExtensions::Algorithms::
-MultiScaleGaussianImageFilter< I, O >::_Greater::
-~_Greater( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-bool cpExtensions::Algorithms::
-MultiScaleGaussianImageFilter< I, O >::_Greater::
-operator!=( const _Greater& b ) const
-{
-  return( false );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-bool cpExtensions::Algorithms::
-MultiScaleGaussianImageFilter< I, O >::_Greater::
-operator==( const _Greater& b ) const
-{
-  return !( *this != b );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-typename cpExtensions::Algorithms::
-MultiScaleGaussianImageFilter< I, O >::_Greater::
-_T cpExtensions::Algorithms::
-MultiScaleGaussianImageFilter< I, O >::_Greater::
-operator()( const _T& a ) const
-{
-  return( a );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-typename cpExtensions::Algorithms::
-MultiScaleGaussianImageFilter< I, O >::_Greater::
-_T cpExtensions::Algorithms::
-MultiScaleGaussianImageFilter< I, O >::_Greater::
-operator()( const _T& a, const _T& b ) const
-{
-  typedef itk::NumericTraits< _T >     _TTraits;
-  typedef typename _TTraits::ValueType _TValue;
-  typedef vnl_vector< _TValue >        _TVector;
-
-  _TVector va( _TTraits::GetLength( ) );
-  _TVector vb( _TTraits::GetLength( ) );
-
-  _TTraits::AssignToArray( a, va );
-  _TTraits::AssignToArray( b, vb );
-  return( ( vb.magnitude( ) < va.magnitude( ) )? a: b );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-void
-cpExtensions::Algorithms::
-MultiScaleGaussianImageFilter< I, O >::
-SetFilterToGradient( )
-{
-  if(
-    itk::NumericTraits< typename O::PixelType >::GetLength( ) ==
-    I::ImageDimension
-    )
-    this->m_FilterId = Self::Gradient;
-  else
-    this->m_FilterId = Self::None;
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-void
-cpExtensions::Algorithms::
-MultiScaleGaussianImageFilter< I, O >::
-SetFilterToGradientMagnitude( )
-{
-  if( itk::NumericTraits< typename O::PixelType >::GetLength( ) == 1 )
-    this->m_FilterId = Self::GradientMagnitude;
-  else
-    this->m_FilterId = Self::None;
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-void
-cpExtensions::Algorithms::
-MultiScaleGaussianImageFilter< I, O >::
-SetFilterToHessian( )
-{
-  itkExceptionMacro( << "Check for hessian definition." );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-bool
-cpExtensions::Algorithms::
-MultiScaleGaussianImageFilter< I, O >::
-IsGradientFilter( ) const
-{
-  return( this->m_FilterId == Self::Gradient );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-bool
-cpExtensions::Algorithms::
-MultiScaleGaussianImageFilter< I, O >::
-IsGradientMagnitudeFilter( ) const
-{
-  return( this->m_FilterId == Self::GradientMagnitude );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-bool
-cpExtensions::Algorithms::
-MultiScaleGaussianImageFilter< I, O >::
-IsHessianFilter( ) const
-{
-  return( this->m_FilterId == Self::Hessian );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-void
-cpExtensions::Algorithms::
-MultiScaleGaussianImageFilter< I, O >::
-AddScale( const double& s )
-{
-  if( this->m_Scales.insert( s ).second )
-    this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-unsigned long
-cpExtensions::Algorithms::
-MultiScaleGaussianImageFilter< I, O >::
-GetNumberOfScales( ) const
-{
-  return( this->m_Scales.size( ) );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-cpExtensions::Algorithms::
-MultiScaleGaussianImageFilter< I, O >::
-MultiScaleGaussianImageFilter( )
-  : Superclass( )
-{
-  this->SetFilterToGradientMagnitude( );
-  if( !this->IsGradientMagnitudeFilter( ) )
-  {
-    this->SetFilterToGradient( );
-    if( !this->IsGradientFilter( ) )
-      this->SetFilterToHessian( );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-cpExtensions::Algorithms::
-MultiScaleGaussianImageFilter< I, O >::
-~MultiScaleGaussianImageFilter( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-void
-cpExtensions::Algorithms::
-MultiScaleGaussianImageFilter< I, O >::
-GenerateData( )
-{
-  typedef itk::GradientRecursiveGaussianImageFilter< I, O >          _TGF;
-  typedef itk::GradientMagnitudeRecursiveGaussianImageFilter< I, O > _TGMF;
-  typedef itk::HessianRecursiveGaussianImageFilter< I, O >           _THF;
-
-  if( this->IsGradientFilter( ) )
-    this->_GenerateData< _TGF >( );
-  else if( this->IsGradientMagnitudeFilter( ) )
-    this->_GenerateData< _TGMF >( );
-  else if( this->IsHessianFilter( ) )
-    this->_GenerateData< _THF >( );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-template< class F >
-void
-cpExtensions::Algorithms::
-MultiScaleGaussianImageFilter< I, O >::
-_GenerateData( )
-{
-  // Some types
-  typedef itk::BinaryFunctorImageFilter< O, O, O, _Greater > _TMaxFilter;
-  typedef itk::UnaryFunctorImageFilter< O, O, _Greater >     _TCopyFilter;
-  typedef itk::ImageRegionConstIterator< O >                 _TConstIt;
-  typedef itk::ImageRegionIterator< O >                      _TIt;
-  typedef itk::ProgressAccumulator                           _TProgress;
-
-  // Some values
-  typename I::ConstPointer input = this->GetInput( );
-  typename O::Pointer output = this->GetOutput( );
-  unsigned int nThreads = this->GetNumberOfThreads( );
-  float fw = float( 1 ) / float( this->m_Scales.size( ) << 1 );
-
-  // Progress accumulator
-  _TProgress::Pointer pg = _TProgress::New( );
-  pg->SetMiniPipelineFilter( this );
-
-  // Copy image information
-  output->SetLargestPossibleRegion( input->GetLargestPossibleRegion( ) );
-  output->SetRequestedRegion( input->GetRequestedRegion( ) );
-  output->SetBufferedRegion( input->GetBufferedRegion( ) );
-  output->SetSpacing( input->GetSpacing( ) );
-  output->SetOrigin( input->GetOrigin( ) );
-  output->SetDirection( input->GetDirection( ) );
-  output->Allocate( );
-
-  // Intermediary buffer
-  typename O::Pointer buffer = O::New( );
-  buffer->SetLargestPossibleRegion( input->GetLargestPossibleRegion( ) );
-  buffer->SetRequestedRegion( input->GetRequestedRegion( ) );
-  buffer->SetBufferedRegion( input->GetBufferedRegion( ) );
-  buffer->SetSpacing( input->GetSpacing( ) );
-  buffer->SetOrigin( input->GetOrigin( ) );
-  buffer->SetDirection( input->GetDirection( ) );
-  buffer->Allocate( );
-
-  // Perform all scales
-  _TIt gIt( output, output->GetRequestedRegion( ) );
-  TScalesContainer::const_iterator sIt = this->m_Scales.begin( );
-  for( ; sIt != this->m_Scales.end( ); sIt++ )
-  {
-    // Single scale filter
-    typename F::Pointer filter = F::New( );
-    filter->SetInput( input );
-    filter->SetNormalizeAcrossScale( true );
-    filter->SetNumberOfThreads( nThreads );
-    filter->SetSigma( *sIt );
-    pg->RegisterInternalFilter( filter, fw );
-    filter->GraftOutput( buffer );
-    filter->Update( );
-    buffer->Graft( filter->GetOutput( ) );
-
-    // Get maximum response
-    if( sIt == this->m_Scales.begin( ) )
-    {
-      // Copy first result
-      typename _TCopyFilter::Pointer copy = _TCopyFilter::New( );
-      copy->SetInput( buffer );
-      copy->InPlaceOff( );
-      copy->SetNumberOfThreads( nThreads );
-      pg->RegisterInternalFilter( copy, fw );
-      copy->GraftOutput( output );
-      copy->Update( );
-      output->Graft( copy->GetOutput( ) );
-    }
-    else
-    {
-      // Maximize results
-      typename _TMaxFilter::Pointer max = _TMaxFilter::New( );
-      max->SetInput1( output );
-      max->SetInput2( buffer );
-      max->InPlaceOn( );
-      max->SetNumberOfThreads( nThreads );
-      pg->RegisterInternalFilter( max, fw );
-      max->GraftOutput( output );
-      max->Update( );
-      output->Graft( max->GetOutput( ) );
-
-    } // fi
-
-  } // rof
-}
-
-#endif // __CPEXTENSIONS__ALGORITHMS__MULTISCALEGAUSSIANIMAGEFILTER__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/ParallelImageMean.h b/lib/cpExtensions/Algorithms/ParallelImageMean.h
deleted file mode 100644 (file)
index 6122ce3..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__PARALLELIMAGEMEAN__H__
-#define __CPEXTENSIONS__ALGORITHMS__PARALLELIMAGEMEAN__H__
-
-#include <itkDomainThreader.h>
-#include <itkThreadedImageRegionPartitioner.h>
-#include <itkArray.h>
-#include <itkNumericTraits.h>
-
-namespace cpExtensions
-{
-  namespace Algorithms
-  {
-    /**
-     */
-    template< class I >
-    class ParallelImageMean
-      : public itk::DomainThreader< itk::ThreadedImageRegionPartitioner< I::ImageDimension >, I >
-    {
-    public:
-      // Standard ITK typedefs.
-      typedef itk::DomainThreader< itk::ThreadedImageRegionPartitioner< I::ImageDimension >, I > Superclass;
-      typedef ParallelImageMean               Self;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-      typedef typename Superclass::DomainType DomainType;
-
-      typedef itk::Array< double > TMean;
-
-    protected:
-      typedef itk::NumericTraits< typename I::PixelType > _TPixelTraits;
-
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( ParallelImageMean, itkDomainThreader );
-
-      itkGetConstMacro( Mean, TMean );
-
-    protected:
-      ParallelImageMean( );
-      virtual ~ParallelImageMean( );
-
-    private:
-      virtual void BeforeThreadedExecution( );
-      virtual void ThreadedExecution(
-        const DomainType& region, const itk::ThreadIdType id
-        );
-      virtual void AfterThreadedExecution( );
-
-    protected:
-      itk::Array< double > m_Mean;
-      unsigned long m_N;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-#include <cpExtensions/Algorithms/ParallelImageMean.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __CPEXTENSIONS__ALGORITHMS__PARALLELIMAGEMEAN__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/ParallelImageMean.hxx b/lib/cpExtensions/Algorithms/ParallelImageMean.hxx
deleted file mode 100644 (file)
index b3e4716..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__PARALLELIMAGEMEAN__HXX__
-#define __CPEXTENSIONS__ALGORITHMS__PARALLELIMAGEMEAN__HXX__
-
-#include <itkImageRegionConstIterator.h>
-
-// -------------------------------------------------------------------------
-template< class I >
-cpExtensions::Algorithms::ParallelImageMean< I >::
-ParallelImageMean( )
-  : Superclass( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-cpExtensions::Algorithms::ParallelImageMean< I >::
-~ParallelImageMean( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-void cpExtensions::Algorithms::ParallelImageMean< I >::
-BeforeThreadedExecution( )
-{
-  this->m_Mean.SetSize( _TPixelTraits::GetLength( ) );
-  this->m_Mean.Fill( double( 0 ) );
-  this->m_N = 0;
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-void cpExtensions::Algorithms::ParallelImageMean< I >::
-ThreadedExecution( const DomainType& region, const itk::ThreadIdType id )
-{
-  itk::ImageRegionConstIterator< I > i( this->m_Associate, region );
-  for( i.GoToBegin( ); !i.IsAtEnd( ); ++i )
-  {
-    for( unsigned int d = 0; d < _TPixelTraits::GetLength( ); ++d )
-    {
-      this->m_Mean.SetElement(
-        d, this->m_Mean.GetElement( d ) + double( i.Get( )[ d ] )
-        );
-      this->m_N++;
-
-    } // rof
-
-  } // rof
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-void cpExtensions::Algorithms::ParallelImageMean< I >::
-AfterThreadedExecution( )
-{
-  this->m_Mean /= double( this->m_N );
-}
-
-#endif // __CPEXTENSIONS__ALGORITHMS__PARALLELIMAGEMEAN__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/RGBExtractFunction.h b/lib/cpExtensions/Algorithms/RGBExtractFunction.h
deleted file mode 100644 (file)
index ec7126b..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__RGBEXTRACTFUNCTION__H__
-#define __CPEXTENSIONS__ALGORITHMS__RGBEXTRACTFUNCTION__H__
-
-#include <cmath>
-#include <limits>
-#include <vnl/vnl_math.h>
-
-#include <itkRGBPixel.h>
-
-namespace cpExtensions
-{
-  namespace Algorithms
-  {
-    /**
-     */
-    template< class P >
-    struct RGBExtractFunction
-    {
-      typedef RGBExtractFunction    Self;
-      typedef P                     TOutPixel;
-      typedef typename P::ValueType TValue;
-
-      template< class Tr, class Tg, class Tb >
-      P operator()( const Tr& r, const Tg& g, const Tb& b ) const
-        {
-          P out;
-          out[ 0 ] = TValue( r );
-          out[ 1 ] = TValue( g );
-          out[ 2 ] = TValue( b );
-          return( out );
-        }
-
-      template< class C >
-      TOutPixel operator()( const itk::RGBPixel< C >& rgb ) const
-        {
-          return(
-            this->operator()(
-              rgb.GetRed( ), rgb.GetGreen( ), rgb.GetBlue( )
-              )
-            );
-        }
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPEXTENSIONS__ALGORITHMS__RGBEXTRACTFUNCTION__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/RGBImageToOtherChannelsFilter.h b/lib/cpExtensions/Algorithms/RGBImageToOtherChannelsFilter.h
deleted file mode 100644 (file)
index 4ce6754..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__RGBIMAGETOOTHERCHANNELSFILTER__H__
-#define __CPEXTENSIONS__ALGORITHMS__RGBIMAGETOOTHERCHANNELSFILTER__H__
-
-#include <itkImageToImageFilter.h>
-
-namespace cpExtensions
-{
-  namespace Algorithms
-  {
-    /**
-     */
-    template< class I, class O, class C >
-    class RGBImageToOtherChannelsFilter
-      : public itk::ImageToImageFilter< I, O >
-    {
-    public:
-      typedef RGBImageToOtherChannelsFilter     Self;
-      typedef itk::ImageToImageFilter< I, O > Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-      typedef I TInputImage;
-      typedef O TOutputImage;
-      typedef C TConverter;
-      typedef typename I::PixelType TInputPixel;
-      typedef typename O::PixelType TOutputPixel;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( RGBImageToOtherChannelsFilter, itkImageToImageFilter );
-
-    protected:
-      RGBImageToOtherChannelsFilter( );
-      virtual ~RGBImageToOtherChannelsFilter( );
-
-      virtual void BeforeThreadedGenerateData( );
-      virtual void AfterThreadedGenerateData( );
-
-      virtual void ThreadedGenerateData(
-        const typename Superclass::OutputImageRegionType& region,
-        itk::ThreadIdType threadId
-        );
-
-    private:
-      // Purposely not implemented
-      RGBImageToOtherChannelsFilter( const Self& other );
-      void operator=( const Self& other );
-
-    private:
-      TConverter Converter;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-#include <cpExtensions/Algorithms/RGBImageToOtherChannelsFilter.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __CPEXTENSIONS__ALGORITHMS__RGBIMAGETOOTHERCHANNELSFILTER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/RGBImageToOtherChannelsFilter.hxx b/lib/cpExtensions/Algorithms/RGBImageToOtherChannelsFilter.hxx
deleted file mode 100644 (file)
index 74578d4..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__RGBIMAGETOOTHERCHANNELSFILTER__HXX__
-#define __CPEXTENSIONS__ALGORITHMS__RGBIMAGETOOTHERCHANNELSFILTER__HXX__
-
-#include <cmath>
-#include <limits>
-#include <vnl/vnl_math.h>
-
-#include <itkImageRegionIterator.h>
-#include <itkImageRegionConstIterator.h>
-
-// -------------------------------------------------------------------------
-template< class I, class O, class C >
-cpExtensions::Algorithms::RGBImageToOtherChannelsFilter< I, O, C >::
-RGBImageToOtherChannelsFilter( )
-  : Superclass( )
-{
-  this->SetNumberOfRequiredInputs( 1 );
-  this->SetNumberOfRequiredOutputs( 1 );
-
-  typename O::Pointer o = O::New( );
-  this->SetNthOutput( 0, o );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O, class C >
-cpExtensions::Algorithms::RGBImageToOtherChannelsFilter< I, O, C >::
-~RGBImageToOtherChannelsFilter( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O, class C >
-void cpExtensions::Algorithms::RGBImageToOtherChannelsFilter< I, O, C >::
-BeforeThreadedGenerateData( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O, class C >
-void cpExtensions::Algorithms::RGBImageToOtherChannelsFilter< I, O, C >::
-AfterThreadedGenerateData( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O, class C >
-void cpExtensions::Algorithms::RGBImageToOtherChannelsFilter< I, O, C >::
-ThreadedGenerateData(
-  const typename Superclass::OutputImageRegionType& region,
-  itk::ThreadIdType threadId
-  )
-{
-  // typedef typename TInputPixel::ComponentType _TComponent;
-  typedef itk::ImageRegionConstIterator< I > _TInIt;
-  typedef itk::ImageRegionIterator< O >      _TOutIt;
-
-  _TInIt inIt( this->GetInput( ), region );
-  _TOutIt outIt( this->GetOutput( ), region );
-  inIt.GoToBegin( );
-  outIt.GoToBegin( );
-  for( ; !inIt.IsAtEnd( ); ++inIt, ++outIt )
-    outIt.Set( this->Converter( inIt.Get( ) ) );
-}
-
-#endif // __CPEXTENSIONS__ALGORITHMS__RGBIMAGETOOTHERCHANNELSFILTER__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/RGBToHSVFunction.h b/lib/cpExtensions/Algorithms/RGBToHSVFunction.h
deleted file mode 100644 (file)
index b10f295..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__RGBTOHSVFUNCTION__H__
-#define __CPEXTENSIONS__ALGORITHMS__RGBTOHSVFUNCTION__H__
-
-#include <cmath>
-#include <limits>
-#include <vnl/vnl_math.h>
-
-#include <itkRGBPixel.h>
-
-namespace cpExtensions
-{
-  namespace Algorithms
-  {
-    /**
-     */
-    template< class P >
-    struct RGBToHSVFunction
-    {
-      typedef RGBToHSVFunction      Self;
-      typedef P                     TOutPixel;
-      typedef typename P::ValueType TValue;
-
-      template< class Tr, class Tg, class Tb >
-      P operator()( const Tr& r, const Tg& g, const Tb& b ) const
-        {
-          static const double mVal =
-            double( std::numeric_limits< TValue >::max( ) );
-          static const double _0 = double( 0 );
-          static const double _1 = double( 1 );
-          static const double _2 = double( 2 );
-          static const double _3 = double( 3 );
-          static const double _2pi = _2 * double( vnl_math::pi );
-
-          P hsv;
-
-          double R = double( r );
-          double G = double( g );
-          double B = double( b );
-          double sRGB = R + G + B;
-          double RG = R - G;
-          double RB = R - B;
-          double GB = G - B;
-
-          // Hue
-          double A = std::sqrt( ( RG * RG ) + ( RB * GB ) );
-          if( A != _0 )
-            A = std::acos( ( RG + RB ) / ( _2 * A ) );
-          A /= _2pi;
-          hsv[ 0 ] = TValue( mVal * ( ( G >= B )? A: _1 - A ) );
-
-          // Saturation
-          if( sRGB != _0 )
-          {
-            double C = ( G < R )? G: R;
-            C        = ( B < C )? B: C;
-            hsv[ 1 ] = TValue( mVal * ( _1 - ( ( _3 * C ) / sRGB ) ) );
-          }
-          else
-            hsv[ 1 ] = TValue( 0 );
-
-          // Value
-          hsv[ 2 ] = TValue( sRGB / _3 );
-          return( hsv );
-        }
-
-      template< class C >
-      TOutPixel operator()( const itk::RGBPixel< C >& rgb ) const
-        {
-          return(
-            this->operator()(
-              rgb.GetRed( ), rgb.GetGreen( ), rgb.GetBlue( )
-              )
-            );
-        }
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPEXTENSIONS__ALGORITHMS__RGBTOHSVFUNCTION__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/RGBToYPbPrFunction.h b/lib/cpExtensions/Algorithms/RGBToYPbPrFunction.h
deleted file mode 100644 (file)
index 83085fe..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-// -------------------------------------------------------------------------
-// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
-// -------------------------------------------------------------------------
-
-#ifndef __CPEXTENSIONS__ALGORITHMS__RGBTOYPBPRFUNCTION__H__
-#define __CPEXTENSIONS__ALGORITHMS__RGBTOYPBPRFUNCTION__H__
-
-#include <cmath>
-#include <limits>
-#include <vnl/vnl_math.h>
-#include <vnl/vnl_matrix.h>
-
-#include <itkRGBPixel.h>
-#include <itkMatrix.h>
-#include <itkVector.h>
-
-namespace cpExtensions
-{
-  namespace Algorithms
-  {
-    /**
-     */
-    template< class P >
-    struct RGBToYPbPrFunction
-    {
-      typedef RGBToYPbPrFunction    Self;
-      typedef P                     TOutPixel;
-      typedef typename P::ValueType TValue;
-
-      template< class Tr, class Tg, class Tb >
-      P operator()( const Tr& r, const Tg& g, const Tb& b ) const
-        {
-          static const double M[] =
-            {
-              double(  0.2990 ), double(  0.5870 ), double(  0.1140 ),
-              double( -0.1687 ), double( -0.3313 ), double(  0.5000 ),
-              double(  0.5000 ), double( -0.4187 ), double( -0.0813 )
-            };
-          static const vnl_matrix< double > vM( M, 3, 3 );
-          static const itk::Matrix< double, 3, 3 > iM( vM );
-
-          itk::Vector< double, 3 > rgb;
-          rgb[ 0 ] = double( r );
-          rgb[ 1 ] = double( b );
-          rgb[ 2 ] = double( g );
-          rgb = iM * rgb;
-
-          P out;
-          out[ 0 ] = TValue( rgb[ 0 ] );
-          out[ 1 ] = TValue( rgb[ 1 ] );
-          out[ 2 ] = TValue( rgb[ 2 ] );
-          return( out );
-        }
-
-      template< class C >
-      TOutPixel operator()( const itk::RGBPixel< C >& rgb ) const
-        {
-          return(
-            this->operator()(
-              rgb.GetRed( ), rgb.GetGreen( ), rgb.GetBlue( )
-              )
-            );
-        }
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPEXTENSIONS__ALGORITHMS__RGBTOYPBPRFUNCTION__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/SpatialObjectMaskImageFilter.h b/lib/cpExtensions/Algorithms/SpatialObjectMaskImageFilter.h
deleted file mode 100644 (file)
index 2b81fb7..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-#ifndef __CPEXTENSIONS__ALGORITHMS__SPATIALOBJECTMASKIMAGEFILTER__H__
-#define __CPEXTENSIONS__ALGORITHMS__SPATIALOBJECTMASKIMAGEFILTER__H__
-
-#include <itkConceptChecking.h>
-#include <itkImageToImageFilter.h>
-#include <itkSpatialObject.h>
-
-namespace cpExtensions
-{
-  namespace Algorithms
-  {
-    /**
-     */
-    template< class I, class O = I >
-    class SpatialObjectMaskImageFilter
-      : public itk::ImageToImageFilter< I, O >
-    {
-    public:
-      typedef SpatialObjectMaskImageFilter    Self;
-      typedef itk::ImageToImageFilter< I, O > Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-      typedef I TInputImage;
-      typedef O TOutputImage;
-
-      itkStaticConstMacro( InputDimension, unsigned int, I::ImageDimension );
-      itkStaticConstMacro( OutputDimension, unsigned int, O::ImageDimension );
-
-#ifdef ITK_USE_CONCEPT_CHECKING
-      itkConceptMacro(
-        SameDimensionCheck1,
-        ( itk::Concept::SameDimension< InputDimension, OutputDimension > )
-        );
-#endif
-
-      typedef typename I::RegionType TRegion;
-      typedef typename O::PixelType  TOutPixel;
-      typedef itk::SpatialObject< InputDimension > TSpatialObject;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( SpatialObjectMaskImageFilter, itk::ImageToImageFilter );
-
-      itkGetObjectMacro( SpatialObject, TSpatialObject );
-      itkGetConstObjectMacro( SpatialObject, TSpatialObject );
-      itkGetConstMacro( OutsideValue, TOutPixel );
-
-      itkSetObjectMacro( SpatialObject, TSpatialObject );
-      itkSetMacro( OutsideValue, TOutPixel );
-
-    public:
-      O* GetPositiveOutput( );
-      const O* GetPositiveOutput( ) const;
-      O* GetNegativeOutput( );
-      const O* GetNegativeOutput( ) const;
-
-    protected:
-      SpatialObjectMaskImageFilter( );
-      virtual ~SpatialObjectMaskImageFilter( );
-
-      virtual void GenerateOutputInformation( );
-      virtual void ThreadedGenerateData(
-        const TRegion& region, itk::ThreadIdType threadId
-        );
-
-    private:
-      // Purposely not implemented.
-      SpatialObjectMaskImageFilter( const Self& other );
-      Self& operator=( const Self& other );
-
-    protected:
-      typename TSpatialObject::Pointer m_SpatialObject;
-      TOutPixel m_OutsideValue;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-#include <cpExtensions/Algorithms/SpatialObjectMaskImageFilter.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __CPEXTENSIONS__ALGORITHMS__SPATIALOBJECTMASKIMAGEFILTER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Algorithms/SpatialObjectMaskImageFilter.hxx b/lib/cpExtensions/Algorithms/SpatialObjectMaskImageFilter.hxx
deleted file mode 100644 (file)
index 2c3cac7..0000000
+++ /dev/null
@@ -1,136 +0,0 @@
-#ifndef __CPEXTENSIONS__ALGORITHMS__SPATIALOBJECTMASKIMAGEFILTER__HXX__
-#define __CPEXTENSIONS__ALGORITHMS__SPATIALOBJECTMASKIMAGEFILTER__HXX__
-
-#include <itkImageScanlineIterator.h>
-#include <itkProgressReporter.h>
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-O* cpExtensions::Algorithms::SpatialObjectMaskImageFilter< I, O >::
-GetPositiveOutput( )
-{
-  return( this->GetOutput( 0 ) );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-const O* cpExtensions::Algorithms::SpatialObjectMaskImageFilter< I, O >::
-GetPositiveOutput( ) const
-{
-  return( this->GetOutput( 0 ) );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-O* cpExtensions::Algorithms::SpatialObjectMaskImageFilter< I, O >::
-GetNegativeOutput( )
-{
-  return( this->GetOutput( 1 ) );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-const O* cpExtensions::Algorithms::SpatialObjectMaskImageFilter< I, O >::
-GetNegativeOutput( ) const
-{
-  return( this->GetOutput( 1 ) );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-cpExtensions::Algorithms::SpatialObjectMaskImageFilter< I, O >::
-SpatialObjectMaskImageFilter( )
-  : Superclass( )
-{
-  this->SetNumberOfRequiredInputs( 1 );
-  this->SetNumberOfRequiredOutputs( 2 );
-  this->SetNthOutput( 0, O::New( ) );
-  this->SetNthOutput( 1, O::New( ) );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-cpExtensions::Algorithms::SpatialObjectMaskImageFilter< I, O >::
-~SpatialObjectMaskImageFilter( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-void cpExtensions::Algorithms::SpatialObjectMaskImageFilter< I, O >::
-GenerateOutputInformation( )
-{
-  const I* in =
-    dynamic_cast< const I* >( this->itk::ProcessObject::GetInput( 0 ) );
-  for( unsigned int idx = 0; idx < this->GetNumberOfOutputs( ); ++idx )
-  {
-    itk::DataObject* out = this->GetOutput( idx );
-    if( out )
-      out->CopyInformation( in );
-
-  } // rof
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-void cpExtensions::Algorithms::SpatialObjectMaskImageFilter< I, O >::
-ThreadedGenerateData( const TRegion& region, itk::ThreadIdType threadId )
-{
-  if( this->m_SpatialObject.IsNull( ) )
-  {
-    itkGenericExceptionMacro( << "No itk::SpatialObject given." );
-    return;
-
-  } // fi
-
-  // Get inputs
-  const I* in =
-    dynamic_cast< const I* >( this->itk::ProcessObject::GetInput( 0 ) );
-  O* pos_out = this->GetPositiveOutput( );
-  O* neg_out = this->GetNegativeOutput( );
-  const auto size0 = region.GetSize( 0 );
-  if( size0 == 0 )
-    return;
-  const auto nLines = region.GetNumberOfPixels( ) / size0;
-
-  // Create iterators
-  itk::ImageScanlineConstIterator< I > iIt( in, region );
-  itk::ImageScanlineIterator< O > pos_oIt( pos_out, region );
-  itk::ImageScanlineIterator< O > neg_oIt( neg_out, region );
-  itk::ProgressReporter progress( this, threadId, nLines );
-
-  // Main loop
-  typename TSpatialObject::PointType pnt;
-  while( !iIt.IsAtEnd( ) )
-  {
-    while( !iIt.IsAtEndOfLine( ) )
-    {
-      auto idx = iIt.GetIndex( );
-      in->TransformIndexToPhysicalPoint( idx, pnt );
-      if( this->m_SpatialObject->IsInside( pnt ) )
-      {
-        pos_oIt.Set( TOutPixel( iIt.Get( ) ) );
-        neg_oIt.Set( this->m_OutsideValue );
-      }
-      else
-      {
-        neg_oIt.Set( TOutPixel( iIt.Get( ) ) );
-        pos_oIt.Set( this->m_OutsideValue );
-
-      } // fi
-      ++iIt;
-      ++pos_oIt;
-      ++neg_oIt;
-
-    } // elihw
-    iIt.NextLine( );
-    pos_oIt.NextLine( );
-    neg_oIt.NextLine( );
-    progress.CompletedPixel( );
-
-  } // elihw
-}
-
-#endif // __CPEXTENSIONS__ALGORITHMS__SPATIALOBJECTMASKIMAGEFILTER__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/CMakeLists.txt b/lib/cpExtensions/CMakeLists.txt
deleted file mode 100644 (file)
index fd4cab7..0000000
+++ /dev/null
@@ -1,128 +0,0 @@
-SET(LIBRARY_NAME cpExtensions)
-
-CONFIGURE_FILE(
-  Config.h.in
-  ${PROJECT_BINARY_DIR}/lib/cpExtensions/Config.h
-  @ONLY
-  )
-
-## ===============
-## = Source code =
-## ===============
-
-SET(LIB_HEADERS_H   "")
-SET(LIB_HEADERS_HPP "")
-SET(LIB_HEADERS_HXX "")
-SET(LIB_SOURCES_C   "")
-SET(LIB_SOURCES_CPP "")
-SET(LIB_SOURCES_CXX "")
-
-SET(
-  lib_DIRECTORIES
-  .
-  DataStructures
-  Algorithms
-  IO
-  Interaction
-  Visualization
-  )
-FOREACH(dir ${lib_DIRECTORIES})
-  FILE(GLOB dir_LIB_HEADERS_H   "${dir}/*.h")
-  FILE(GLOB dir_LIB_HEADERS_HPP "${dir}/*.hpp")
-  FILE(GLOB dir_LIB_HEADERS_HXX "${dir}/*.hxx")
-  FILE(GLOB dir_LIB_SOURCES_C   "${dir}/*.c")
-  FILE(GLOB dir_LIB_SOURCES_CPP "${dir}/*.cpp")
-  FILE(GLOB dir_LIB_SOURCES_CXX "${dir}/*.cxx")
-
-  SET(LIB_HEADERS_H   "${LIB_HEADERS_H};${dir_LIB_HEADERS_H}")
-  SET(LIB_HEADERS_HPP "${LIB_HEADERS_HPP};${dir_LIB_HEADERS_HPP}")
-  SET(LIB_HEADERS_HXX "${LIB_HEADERS_HXX};${dir_LIB_HEADERS_HXX}")
-  SET(LIB_SOURCES_C   "${LIB_SOURCES_C};${dir_LIB_SOURCES_C}")
-  SET(LIB_SOURCES_CPP "${LIB_SOURCES_CPP};${dir_LIB_SOURCES_CPP}")
-  SET(LIB_SOURCES_CXX "${LIB_SOURCES_CXX};${dir_LIB_SOURCES_CXX}")
-
-  INSTALL(
-    DIRECTORY ${dir}
-    DESTINATION include/cpExtensions
-    FILES_MATCHING PATTERN "*.h"
-    )
-  INSTALL(
-    DIRECTORY ${dir}
-    DESTINATION include/cpExtensions
-    FILES_MATCHING PATTERN "*.hpp"
-    )
-  INSTALL(
-    DIRECTORY ${dir}
-    DESTINATION include/cpExtensions
-    FILES_MATCHING PATTERN "*.hxx"
-    )
-ENDFOREACH(dir)
-
-IF(USE_QT4)
-  FILE(GLOB LIB_QT_UI "QT/*.ui")
-  FILE(GLOB LIB_QT_Headers "QT/*.h")
-  FILE(GLOB LIB_QT_Sources "QT/*.cxx")
-  FILE(GLOB LIB_QT_Resources "QT/*.rc")
-
-  QT4_WRAP_UI(LIB_QT_Wrapped_Headers ${LIB_QT_UI})
-  QT4_WRAP_CPP(LIB_QT_Wrapped_MOC_Sources ${LIB_QT_Headers})
-  QT4_ADD_RESOURCES(LIB_QT_Wrapped_Resources_Sources ${LIB_QT_Resources})
-
-  SET(
-    LIB_HEADERS_H
-    ${LIB_HEADERS_H}
-    ${LIB_QT_Wrapped_Headers}
-    )
-  SET(
-    LIB_SOURCES_CXX
-    ${LIB_SOURCES_CXX}
-    ${LIB_QT_Sources}
-    ${LIB_QT_Wrapped_Headers}
-    ${LIB_QT_Wrapped_MOC_Sources}
-    ${LIB_QT_Wrapped_Resources_Sources}
-    )
-ENDIF(USE_QT4)
-
-
-## =====================
-## = Compilation rules =
-## =====================
-
-ADD_LIBRARY(
-  ${LIBRARY_NAME}
-  ${LIBRARY_TYPE}
-  ${LIB_SOURCES_C}
-  ${LIB_SOURCES_CPP}
-  ${LIB_SOURCES_CXX}
-  )
-GENERATE_EXPORT_HEADER(
-  ${LIBRARY_NAME}
-  BASE_NAME ${LIBRARY_NAME}
-  EXPORT_MACRO_NAME ${LIBRARY_NAME}_EXPORT
-  EXPORT_FILE_NAME ${PROJECT_BINARY_DIR}/lib/cpExtensions/${LIBRARY_NAME}_Export.h
-  STATIC_DEFINE ${LIBRARY_NAME}_BUILT_AS_STATIC
-  )
-TARGET_LINK_LIBRARIES(
-  ${LIBRARY_NAME}
-  ${QT_LIBRARIES}
-  ${ITK_LIBRARIES}
-  ${VTK_LIBRARIES}
-  )
-
-## ========================
-## -- Installation rules --
-## ========================
-
-INSTALL(
-  TARGETS ${LIBRARY_NAME}
-  RUNTIME DESTINATION bin
-  LIBRARY DESTINATION lib
-  ARCHIVE DESTINATION lib/static
-  )
-INSTALL(
-  FILES
-  ${PROJECT_BINARY_DIR}/lib/cpExtensions/${LIBRARY_NAME}_Export.h
-  DESTINATION include/cpExtensions
-  )
-
-## eof - $RCSfile$
diff --git a/lib/cpExtensions/Config.h.in b/lib/cpExtensions/Config.h.in
deleted file mode 100644 (file)
index 4468c5b..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#ifndef __CPEXTENSIONS__CONFIG__H__
-#define __CPEXTENSIONS__CONFIG__H__
-
-#define cpExtensions_MAJOR_VERSION   @prj_MAJOR_VERSION@
-#define cpExtensions_MINOR_VERSION   @prj_MINOR_VERSION@
-#define cpExtensions_RELEASE_VERSION @prj_RELEASE_VERSION@
-#define cpExtensions_VERSION         "@prj_VERSION@"
-
-#define cpExtensions_Interface_QT4_USED @QT4_FOUND@
-#if cpExtensions_Interface_QT4_USED == 1
-#  define cpExtensions_Interface_QT4
-#else // cpExtensions_Interface_QT4_USED == 1
-#  undef cpExtensions_Interface_QT4
-#endif // cpExtensions_Interface_QT4_USED == 1
-
-#endif // __CPEXTENSIONS__CONFIG__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/DataStructures/Graph.h b/lib/cpExtensions/DataStructures/Graph.h
deleted file mode 100644 (file)
index 75bdd68..0000000
+++ /dev/null
@@ -1,166 +0,0 @@
-#ifndef __CPEXTENSIONS__DATASTRUCTURES__GRAPH__H__
-#define __CPEXTENSIONS__DATASTRUCTURES__GRAPH__H__
-
-#include <map>
-#include <set>
-#include <vector>
-#include <itkLightObject.h>
-#include <itkObjectFactory.h>
-
-namespace cpExtensions
-{
-  namespace DataStructures
-  {
-    /** \brief A generic graph with templated index types.
-     *
-     *  @param V Vertex type.
-     *  @param C Cost type.
-     *  @param I Index type (it should be a strict weak ordering type).
-     */
-    template< class V, class C, class I = unsigned long >
-    class Graph
-      : public itk::LightObject
-    {
-    public:
-      typedef Graph                           Self;
-      typedef itk::LightObject                Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-      typedef V TVertex;
-      typedef C TCost;
-      typedef I TIndex;
-
-      // Base types
-      typedef std::map< TIndex, TVertex >    TVertices;
-      typedef std::vector< TCost >           TEdges;
-      typedef std::map< TIndex, TEdges >     TMatrixRow;
-      typedef std::map< TIndex, TMatrixRow > TMatrix;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( Graph, itk::LightObject );
-
-    public:
-      /*! \brief Iterators over vertices.
-       *         These allow you to iterate over all of graph's vertices.
-       *
-       * Typical iteration should be done as:
-       *
-       *  TGraph g;
-       *  ...
-       *  TGraph::TVertices::[const_]iterator vIt = g.BeginVertices( );
-       *  for( ; vIt != g.EndVertices( ); ++vIt )
-       *  {
-       *    vIt->first;  --> this is the vertex's index <--
-       *    vIt->second; --> this is the vertex's value <--
-       *  }
-       */
-      inline typename TVertices::iterator BeginVertices( )
-        { return( this->m_Vertices.begin( ) ); }
-      inline typename TVertices::iterator EndVertices( )
-        { return( this->m_Vertices.end( ) ); }
-      inline typename TVertices::const_iterator BeginVertices( ) const
-        { return( this->m_Vertices.begin( ) ); }
-      inline typename TVertices::const_iterator EndVertices( ) const
-        { return( this->m_Vertices.end( ) ); }
-
-      /*! \brief Iterators over edges.
-       *         These allow you to iterate over all of graph's edges.
-       *
-       * Typical iteration should be done as:
-       *
-       *  TGraph g;
-       *  ...
-       *  TGraph::TMatrix::[const_]iterator mIt = g.BeginEdgesRows( );
-       *  for( ; mIt != g.EndEdgesRows( ); ++mIt )
-       *  {
-       *    mIt->first; --> this is the row index. <--
-       *    TGraph::TMatrixRow::[const_]iterator rIt = mIt->second.begin( );
-       *    for( ; rIt != mIt->second.end( ); ++rIt )
-       *    {
-       *      rIt->first;  --> this is the column index.
-       *      TGraph::TEdges::[const_]iterator eIt = rIt->second.begin( );
-       *      for( ; eIt != rIt->second.end( ); ++eIt )
-       *        *eIt; --> this is the cost between mIt->first and rIt->first
-       *    }
-       *  }
-       */
-      inline typename TMatrix::iterator BeginEdgesRows( )
-        { return( this->m_Matrix.begin( ) ); }
-      inline typename TMatrix::iterator EndEdgetsRows( )
-        { return( this->m_Matrix.end( ) ); }
-      inline typename TMatrix::const_iterator BeginEdgesRows( ) const
-        { return( this->m_Matrix.begin( ) ); }
-      inline typename TMatrix::const_iterator EndEdgesRows( ) const
-        { return( this->m_Matrix.end( ) ); }
-
-      /*! \brief Clear all vertices and edges.
-       */
-      void Clear( );
-
-      /*! \brief Clear all edges.
-       */
-      inline void ClearEdges( )
-        { this->m_Matrix.clear( ); }
-
-      /*! \brief Vertex manipulation methods.
-       *         Names are self-explanatory.
-       */
-      inline bool HasVertexIndex( const I& i ) const
-        { return( this->m_Vertices.find( i ) != this->m_Vertices.end( ) ); }
-      inline void SetVertex( const I& index, V& vertex )
-        { this->m_Vertices[ index ] = vertex; }
-      inline V& GetVertex( const I& index )
-        { return( this->m_Vertices[ index ] ); }
-      inline const V& GetVertex( const I& index ) const
-        { return( this->m_Vertices[ index ] ); }
-      bool RenameVertex( const I& old_index, const I& new_index );
-      void RemoveVertex( const I& index );
-
-      /*! \brief Edge manipulation methods.
-       *         Names are self-explanatory.
-       */
-      inline void AddEdge( const I& orig, const I& dest, const C& cost )
-        { this->m_Matrix[ orig ][ dest ].push_back( cost ); }
-      inline TEdges& GetEdges( const I& orig, const I& dest )
-        { return( this->m_Matrix[ orig ][ dest ] ); }
-      inline const TEdges& GetEdges( const I& orig, const I& dest ) const
-        { return( this->m_Matrix[ orig ][ dest ] ); }
-      bool HasEdge( const I& orig, const I& dest ) const;
-      void RemoveEdge( const I& orig, const I& dest, const C& cost );
-      void RemoveEdges( const I& orig, const I& dest );
-
-      /*! \brief Returns graph's sinks.
-       *
-       *  A sink is a special vertex which does not have any "exiting" edges.
-       *
-       *  @return Sinks ordered by their index.
-       */
-      std::set< I > GetSinks( ) const;
-
-    protected:
-      Graph( );
-      virtual ~Graph( );
-
-    private:
-      // Purposely not implemented
-      Graph( const Self& other );
-      Self& operator=( const Self& other );
-
-    protected:
-      TVertices m_Vertices;
-      TMatrix   m_Matrix;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-#include <cpExtensions/DataStructures/Graph.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __CPEXTENSIONS__DATASTRUCTURES__GRAPH__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/DataStructures/Graph.hxx b/lib/cpExtensions/DataStructures/Graph.hxx
deleted file mode 100644 (file)
index d2d2d23..0000000
+++ /dev/null
@@ -1,208 +0,0 @@
-#ifndef __CPEXTENSIONS__DATASTRUCTURES__GRAPH__HXX__
-#define __CPEXTENSIONS__DATASTRUCTURES__GRAPH__HXX__
-
-// -------------------------------------------------------------------------
-template< class V, class C, class I >
-void cpExtensions::DataStructures::Graph< V, C, I >::
-Clear( )
-{
-  this->m_Vertices.clear( );
-  this->m_Matrix.clear( );
-}
-
-// -------------------------------------------------------------------------
-template< class V, class C, class I >
-bool cpExtensions::DataStructures::Graph< V, C, I >::
-RenameVertex( const I& old_index, const I& new_index )
-{
-  auto old_v = this->m_Vertices.find( old_index );
-  auto new_v = this->m_Vertices.find( new_index );
-  if( old_v != this->m_Vertices.end( ) && new_v == this->m_Vertices.end( ) )
-  {
-    // Replace vertex
-    this->m_Vertices[ new_index ] = old_v->second;
-    this->m_Vertices.erase( old_index );
-
-    // Duplicate edges
-    auto mIt = this->m_Matrix.begin( );
-    auto found_row = this->m_Matrix.end( );
-    for( ; mIt != this->m_Matrix.end( ); ++mIt )
-    {
-      if( mIt->first == old_index )
-        found_row = mIt;
-
-      auto rIt = mIt->second.begin( );
-      for( ; rIt != mIt->second.end( ); ++rIt )
-      {
-        if( mIt->first == old_index )
-          this->m_Matrix[ new_index ][ rIt->first ] = rIt->second;
-        else if( rIt->first == old_index )
-          this->m_Matrix[ mIt->first ][ new_index ] = rIt->second;
-
-      } // rof
-
-    } // rof
-
-    // Delete old edges
-    if( found_row != this->m_Matrix.end( ) )
-      this->m_Matrix.erase( found_row );
-
-    mIt = this->m_Matrix.begin( );
-    for( ; mIt != this->m_Matrix.end( ); ++mIt )
-    {
-      auto rIt = mIt->second.begin( );
-      while( rIt != mIt->second.end( ) )
-      {
-        if( rIt->first == old_index )
-        {
-          mIt->second.erase( rIt );
-          rIt = mIt->second.begin( );
-        }
-        else
-          ++rIt;
-
-      } // elihw
-
-    } // rof
-    return( true );
-  }
-  else
-    return( false );
-}
-
-// -------------------------------------------------------------------------
-template< class V, class C, class I >
-void cpExtensions::DataStructures::Graph< V, C, I >::
-RemoveVertex( const I& index )
-{
-  auto i = this->m_Vertices.find( index );
-  if( i != this->m_Vertices.end( ) )
-  {
-    // Delete vertex
-    this->m_Vertices.erase( i );
-
-    // Delete edges starting from given vertex
-    auto mIt = this->m_Matrix.find( index );
-    if( mIt != this->m_Matrix.end( ) )
-      this->m_Matrix.erase( mIt );
-
-    // Delete edges arriving to given vertex
-    mIt = this->m_Matrix.begin( );
-    for( ; mIt != this->m_Matrix.end( ); ++mIt )
-    {
-      auto rIt = mIt->second.begin( );
-      while( rIt != mIt->second.end( ) )
-      {
-        if( rIt->first == index )
-        {
-          mIt->second.erase( rIt );
-          rIt = mIt->second.begin( );
-        }
-        else
-          ++rIt;
-
-      } // elihw
-
-    } // rof
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-template< class V, class C, class I >
-bool cpExtensions::DataStructures::Graph< V, C, I >::
-HasEdge( const I& orig, const I& dest ) const
-{
-  auto mIt = this->m_Matrix.find( orig );
-  if( mIt != this->m_Matrix.end( ) )
-    return( mIt->second.find( dest ) != mIt->second.end( ) );
-  else
-    return( false );
-}
-
-// -------------------------------------------------------------------------
-template< class V, class C, class I >
-void cpExtensions::DataStructures::Graph< V, C, I >::
-RemoveEdge( const I& orig, const I& dest, const C& cost )
-{
-  auto m = this->m_Matrix.find( orig );
-  if( m != this->m_Matrix.end( ) )
-  {
-    auto r = m->second.find( dest );
-    if( r != m->second.end( ) )
-    {
-      auto e = std::find( r->second.begin( ), r->second.end( ), cost );
-      if( e != r->second.end( ) )
-      {
-        r->second.erase( e );
-        if( r->second.size( ) == 0 )
-        {
-          m->second.erase( r );
-          if( m->second.size( ) == 0 )
-            this->m_Matrix.erase( m );
-
-        } // fi
-
-      } // fi
-
-    } // fi
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-template< class V, class C, class I >
-void cpExtensions::DataStructures::Graph< V, C, I >::
-RemoveEdges( const I& orig, const I& dest )
-{
-  auto m = this->m_Matrix.find( orig );
-  if( m != this->m_Matrix.end( ) )
-  {
-    auto r = m->second.find( dest );
-    if( r != m->second.end( ) )
-    {
-      m->second.erase( r );
-      if( m->second.size( ) == 0 )
-        this->m_Matrix.erase( m );
-
-    } // fi
-
-  } // fi
-
-}
-
-// -------------------------------------------------------------------------
-template< class V, class C, class I >
-std::set< I > cpExtensions::DataStructures::Graph< V, C, I >::
-GetSinks( ) const
-{
-  std::set< I > sinks;
-
-  auto vIt = this->m_Vertices.begin( );
-  for( ; vIt != this->m_Vertices.end( ); ++vIt )
-    sinks.insert( vIt->first );
-  auto mIt = this->m_Matrix.begin( );
-  for( ; mIt != this->m_Matrix.end( ); ++mIt )
-    sinks.erase( mIt->first );
-
-  return( sinks );
-}
-
-// -------------------------------------------------------------------------
-template< class V, class C, class I >
-cpExtensions::DataStructures::Graph< V, C, I >::
-Graph( )
-  : Superclass( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class V, class C, class I >
-cpExtensions::DataStructures::Graph< V, C, I >::
-~Graph( )
-{
-}
-
-#endif // __CPEXTENSIONS__DATASTRUCTURES__GRAPH__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/DataStructures/ITKAndVTKImage.h b/lib/cpExtensions/DataStructures/ITKAndVTKImage.h
deleted file mode 100644 (file)
index dfcad3f..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-#ifndef __CPEXTENSIONS__DATASTRUCTURES__ITKANDVTKIMAGE__H__
-#define __CPEXTENSIONS__DATASTRUCTURES__ITKANDVTKIMAGE__H__
-
-#include <itkImage.h>
-#include <itkImageFileReader.h>
-#include <itkImageFileWriter.h>
-#include <itkImageToVTKImageFilter.h>
-
-namespace cpExtensions
-{
-  namespace DataStructures
-  {
-    /**
-     */
-    template< typename P, unsigned int D >
-    struct ITKAndVTKImage
-    {
-      typedef itk::Image< P, D >                   TImage;
-      typedef itk::ImageToVTKImageFilter< TImage > TItk2Vtk;
-
-      typename TImage::Pointer   ITK;
-      typename TItk2Vtk::Pointer VTK;
-
-      void CopyInformation( const itk::ImageBase< D >* i )
-        {
-          this->ITK = TImage::New( );
-          this->ITK->SetLargestPossibleRegion( i->GetLargestPossibleRegion( ) );
-          this->ITK->SetRequestedRegion( i->GetRequestedRegion( ) );
-          this->ITK->SetBufferedRegion( i->GetBufferedRegion( ) );
-          this->ITK->SetSpacing( i->GetSpacing( ) );
-          this->ITK->SetOrigin( i->GetOrigin( ) );
-          this->ITK->SetDirection( i->GetDirection( ) );
-          this->ITK->Allocate( );
-        }
-
-      void SetItkImage( TImage* image )
-        {
-          this->ITK = image;
-          this->_Synch( );
-        }
-
-      std::string ReadFromFile( const std::string& filename )
-        {
-          typename itk::ImageFileReader< TImage >::Pointer r =
-            itk::ImageFileReader< TImage >::New( );
-          r->SetFileName( filename );
-          try
-          {
-            r->Update( );
-          }
-          catch( itk::ExceptionObject& err )
-          {
-            this->ITK = NULL;
-            return( err.GetDescription( ) );
-
-          } // fi
-          this->ITK = r->GetOutput( );
-          this->ITK->DisconnectPipeline( );
-          this->_Synch( );
-          return( "" );
-        }
-
-      std::string WriteToFile( const std::string& filename ) const
-        {
-          typename itk::ImageFileWriter< TImage >::Pointer w =
-            itk::ImageFileWriter< TImage >::New( );
-          w->SetFileName( filename );
-          w->SetInput( this->ITK );
-          try
-          {
-            w->Update( );
-          }
-          catch( itk::ExceptionObject& err )
-          {
-            return( err.GetDescription( ) );
-
-          } // fi
-          return( "" );
-        }
-
-      TImage* GetItkImage( )
-        { return( this->ITK ); }
-      vtkImageData* GetVtkImage( )
-        { return( this->VTK->GetOutput( ) ); }
-      const TImage* GetItkImage( ) const
-        { return( this->ITK ); }
-      const vtkImageData* GetVtkImage( ) const
-        { return( this->VTK->GetOutput( ) ); }
-      void DisconnectPipeline( )
-        { this->ITK->DisconnectPipeline( ); }
-
-      void _Synch( )
-        {
-          this->VTK = TItk2Vtk::New( );
-          this->VTK->SetInput( this->ITK );
-          this->VTK->Update( );
-        }
-
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPEXTENSIONS__DATASTRUCTURES__ITKANDVTKIMAGE__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/DataStructures/InfinitePlaneSpatialObject.h b/lib/cpExtensions/DataStructures/InfinitePlaneSpatialObject.h
deleted file mode 100644 (file)
index 2f61766..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-#ifndef __CPEXTENSIONS__DATASTRUCTURES__INFINITEPLANESPATIALOBJECT__H__
-#define __CPEXTENSIONS__DATASTRUCTURES__INFINITEPLANESPATIALOBJECT__H__
-
-#include <itkSpatialObject.h>
-
-namespace cpExtensions
-{
-  namespace DataStructures
-  {
-    /**
-     */
-    template< unsigned int D >
-    class InfinitePlaneSpatialObject
-      : public itk::SpatialObject< D >
-    {
-    public:
-      typedef InfinitePlaneSpatialObject      Self;
-      typedef itk::SpatialObject< D >         Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-      typedef double                               ScalarType;
-      typedef typename Superclass::PointType       PointType;
-      typedef typename Superclass::TransformType   TransformType;
-      typedef typename Superclass::BoundingBoxType BoundingBoxType;
-      typedef typename PointType::VectorType       VectorType;
-
-      itkStaticConstMacro( NumberOfDimension, unsigned int, D );
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( InfinitePlaneSpatialObject, itk::SpatialObject );
-
-      itkGetConstMacro( Center, PointType );
-      itkGetConstMacro( Normal, VectorType );
-
-    public:
-      template< class P >
-      void SetCenter( const P& p );
-
-      template< class N >
-      void SetNormal( const N& n );
-
-      virtual bool ValueAt(
-        const PointType& point, double& value,
-        unsigned int depth = 0, char* name = NULL
-        ) const;
-
-      virtual bool IsEvaluableAt(
-        const PointType& point,
-        unsigned int depth = 0, char* name = NULL
-        ) const;
-
-      virtual bool IsInside(
-        const PointType& point,
-        unsigned int depth, char* name
-        ) const;
-
-      virtual bool IsInside( const PointType& point ) const;
-
-      virtual bool ComputeLocalBoundingBox( ) const;
-
-    protected:
-      InfinitePlaneSpatialObject( );
-      virtual ~InfinitePlaneSpatialObject( );
-      virtual void PrintSelf( std::ostream& os, itk::Indent indent ) const;
-
-    private:
-      // Purposely not implemented.
-      InfinitePlaneSpatialObject( const Self& other );
-      Self& operator=( const Self& other );
-
-    protected:
-      PointType  m_Center;
-      VectorType m_Normal;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-#include <cpExtensions/DataStructures/InfinitePlaneSpatialObject.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __CPEXTENSIONS__DATASTRUCTURES__INFINITEPLANESPATIALOBJECT__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/DataStructures/InfinitePlaneSpatialObject.hxx b/lib/cpExtensions/DataStructures/InfinitePlaneSpatialObject.hxx
deleted file mode 100644 (file)
index fd68815..0000000
+++ /dev/null
@@ -1,109 +0,0 @@
-#ifndef __CPEXTENSIONS__DATASTRUCTURES__INFINITEPLANESPATIALOBJECT__HXX__
-#define __CPEXTENSIONS__DATASTRUCTURES__INFINITEPLANESPATIALOBJECT__HXX__
-
-// -------------------------------------------------------------------------
-template< unsigned int D >
-template< class P >
-void cpExtensions::DataStructures::InfinitePlaneSpatialObject< D >::
-SetCenter( const P& p )
-{
-  for( unsigned int d = 0; d < D; ++d )
-    this->m_Center[ d ] = ScalarType( p[ d ] );
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-template< unsigned int D >
-template< class N >
-void cpExtensions::DataStructures::InfinitePlaneSpatialObject< D >::
-SetNormal( const N& n )
-{
-  for( unsigned int d = 0; d < D; ++d )
-    this->m_Normal[ d ] = ScalarType( n[ d ] );
-  ScalarType nn = this->m_Normal.GetNorm( );
-  if( nn > ScalarType( 0 ) )
-    this->m_Normal /= nn;
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-template< unsigned int D >
-bool cpExtensions::DataStructures::InfinitePlaneSpatialObject< D >::
-ValueAt(
-  const PointType& point, double& value, unsigned int depth, char* name
-  ) const
-{
-  value = this->m_Normal * ( point - this->m_Center );
-  return( value >= double( 0 ) );
-}
-
-// -------------------------------------------------------------------------
-template< unsigned int D >
-bool cpExtensions::DataStructures::InfinitePlaneSpatialObject< D >::
-IsEvaluableAt(
-  const PointType& point, unsigned int depth, char* name
-  ) const
-{
-  double value;
-  return( this->ValueAt( point, value, depth, name ) );
-}
-
-// -------------------------------------------------------------------------
-template< unsigned int D >
-bool cpExtensions::DataStructures::InfinitePlaneSpatialObject< D >::
-IsInside(
-  const PointType& point, unsigned int depth, char* name
-  ) const
-{
-  double value;
-  return( this->ValueAt( point, value, depth, name ) );
-}
-
-// -------------------------------------------------------------------------
-template< unsigned int D >
-bool cpExtensions::DataStructures::InfinitePlaneSpatialObject< D >::
-IsInside( const PointType& point ) const
-{
-  double value;
-  return( this->ValueAt( point, value, 0, NULL ) );
-}
-
-// -------------------------------------------------------------------------
-template< unsigned int D >
-bool cpExtensions::DataStructures::InfinitePlaneSpatialObject< D >::
-ComputeLocalBoundingBox( ) const
-{
-  return( false );
-}
-
-// -------------------------------------------------------------------------
-template< unsigned int D >
-cpExtensions::DataStructures::InfinitePlaneSpatialObject< D >::
-InfinitePlaneSpatialObject( )
-  : Superclass( )
-{
-  this->m_Center.Fill( ScalarType( 0 ) );
-  this->m_Normal.Fill( ScalarType( 0 ) );
-  this->m_Normal[ 0 ] = ScalarType( 1 );
-}
-
-// -------------------------------------------------------------------------
-template< unsigned int D >
-cpExtensions::DataStructures::InfinitePlaneSpatialObject< D >::
-~InfinitePlaneSpatialObject( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< unsigned int D >
-void cpExtensions::DataStructures::InfinitePlaneSpatialObject< D >::
-PrintSelf( std::ostream& os, itk::Indent indent ) const
-{
-  this->Superclass::PrintSelf( os, indent );
-  os << indent << "Center: " << this->m_Center << std::endl;
-  os << indent << "Normal: " << this->m_Normal << std::endl;
-}
-
-#endif // __CPEXTENSIONS__DATASTRUCTURES__INFINITEPLANESPATIALOBJECT__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/DataStructures/QuadEdge.h b/lib/cpExtensions/DataStructures/QuadEdge.h
deleted file mode 100644 (file)
index bcb1f88..0000000
+++ /dev/null
@@ -1,471 +0,0 @@
-#ifndef __CPEXTENSIONS__DATASTRUCTURES__QUADEDGE__H__
-#define __CPEXTENSIONS__DATASTRUCTURES__QUADEDGE__H__
-
-#include <itkLightObject.h>
-#include <cpExtensions/DataStructures/QuadEdgeIterators.h>
-
-namespace cpExtensions
-{
-  namespace DataStructures
-  {
-    /**
-     */
-    template< typename P, typename D, bool IsPrimal = true >
-    class QuadEdge
-      : public itk::LightObject
-    {
-    public:
-      typedef QuadEdge                        Self;
-      typedef itk::LightObject                Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-      /// Vertices and faces types
-      typedef P TPrimalGeometry;
-      typedef D TDualGeometry;
-
-      /**
-       * Dual type, basically the same type with swapped template
-       * parameters.
-       */
-      typedef QuadEdge< D, P, !IsPrimal > TDual;
-      typedef Self                        TPrimal;
-      typedef typename TDual::Pointer     PtrDual;
-      friend TDual;
-
-      /// Iterators
-      typedef QuadEdgeIterator< TPrimal >           Iterator;
-      typedef QuadEdgeConstIterator< TPrimal >      ConstIterator;
-      typedef QuadEdgePointIterator< TPrimal >      PointIterator;
-      typedef QuadEdgePointConstIterator< TPrimal > PointConstIterator;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( QuadEdge, itkLightObject );
-
-      cpPluginsExtensionsQEAllIteratorsMacro( Onext );
-      cpPluginsExtensionsQEAllIteratorsMacro( Lnext );
-      cpPluginsExtensionsQEAllIteratorsMacro( Rnext );
-      cpPluginsExtensionsQEAllIteratorsMacro( Dnext );
-      cpPluginsExtensionsQEAllIteratorsMacro( Oprev );
-      cpPluginsExtensionsQEAllIteratorsMacro( Lprev );
-      cpPluginsExtensionsQEAllIteratorsMacro( Rprev );
-      cpPluginsExtensionsQEAllIteratorsMacro( Dprev );
-
-    public:
-      void CreateRings( );
-
-      /// First order access methods
-      inline TPrimal* GetOnext( )
-        { return( this->m_Onext ); }
-      inline TDual* GetRot( )
-        { return( this->m_Rot ); }
-      inline const TPrimal* GetOnext( ) const
-        { return( this->m_Onext ); }
-      inline const TDual* GetRot( ) const
-        { return( this->m_Rot ); }
-
-      /// First order configuration methods
-      inline void SetOnext( TPrimal* e )
-        { this->m_Onext = e; }
-      inline void SetRot( TDual* e )
-        { this->m_Rot = e; }
-
-      /// Second order accessors: around base rings
-      inline TPrimal* GetSym( )
-        { return( this->m_Rot->m_Rot ); }
-      inline TDual* GetInvRot( )
-        { return( this->m_Rot->m_Rot->m_Rot ); }
-
-      /// Second order accessors: neighboring topology
-      inline TPrimal* GetLnext( )
-        { return( this->m_Rot->m_Rot->m_Rot->m_Onext->m_Rot ); }
-      inline TPrimal* GetRnext( )
-        { return( this->m_Rot->m_Onext->m_Rot->m_Rot->m_Rot ); }
-      inline TPrimal* GetDnext( )
-        { return( this->m_Rot->m_Rot->m_Onext->m_Rot->m_Rot ); }
-      inline TPrimal* GetOprev( )
-        { return( this->m_Rot->m_Onext->m_Rot ); }
-      inline TPrimal* GetLprev( )
-        { return( this->m_Onext->m_Rot->m_Rot ); }
-      inline TPrimal* GetRprev( )
-        { return( this->m_Rot->m_Rot->m_Onext ); }
-      inline TPrimal* GetDprev( )
-        {
-          return( this->m_Rot->m_Rot->m_Rot->m_Onext->m_Rot->m_Rot->m_Rot );
-        }
-
-      /// Second order accessors: around base rings (const versions)
-      inline const TPrimal* GetSym( ) const
-        { return( this->m_Rot->m_Rot ); }
-      inline const TDual* GetInvRot( ) const
-        { return( this->m_Rot->m_Rot->m_Rot ); }
-
-      /// Second order accessors: neighboring topology (const versions)
-      inline const TPrimal* GetLnext( ) const
-        { return( this->m_Rot->m_Rot->m_Rot->m_Onext->m_Rot ); }
-      inline const TPrimal* GetRnext( ) const
-        { return( this->m_Rot->m_Onext->m_Rot->m_Rot->m_Rot ); }
-      inline const TPrimal* GetDnext( ) const
-        { return( this->m_Rot->m_Rot->m_Onext->m_Rot->m_Rot ); }
-      inline const TPrimal* GetOprev( ) const
-        { return( this->m_Rot->m_Onext->m_Rot ); }
-      inline const TPrimal* GetLprev( ) const
-        { return( this->m_Onext->m_Rot->m_Rot ); }
-      inline const TPrimal* GetRprev( ) const
-        { return( this->m_Rot->m_Rot->m_Onext ); }
-      inline const TPrimal* GetDprev( ) const
-        {
-          return( this->m_Rot->m_Rot->m_Rot->m_Onext->m_Rot->m_Rot->m_Rot );
-        }
-
-      /// Get geometry methods
-      inline P& GetOrigin( )
-        { return ( this->m_Origin ); }
-      inline P& GetDestination( )
-        { return ( this->m_Rot->m_Rot->m_Origin ); }
-      inline D& GetRight( )
-        { return ( this->m_Rot->m_Origin ); }
-      inline D& GetLeft( )
-        { return ( this->m_Rot->m_Rot->m_Rot->m_Origin ); }
-
-      /// Get geometry methods (const versions)
-      inline const P& GetOrigin( ) const
-        { return ( this->m_Origin ); }
-      inline const P& GetDestination( ) const
-        { return ( this->m_Rot->m_Rot->m_Origin ); }
-      inline const D& GetRight( ) const
-        { return ( this->m_Rot->m_Origin ); }
-      inline const D& GetLeft( ) const
-        { return ( this->m_Rot->m_Rot->m_Rot->m_Origin ); }
-
-      /// Set geometry methods
-      inline void SetOrigin( const P& v )
-        { this->m_Origin = v; }
-      inline void SetDestination( const P& v )
-        { this->m_Rot->m_Rot->m_Origin = v; }
-      inline void SetRight( const D& v )
-        { this->m_Rot->m_Origin = v; }
-      inline void SetLeft( const D& v )
-        { this->m_Rot->m_Rot->m_Rot->m_Origin = v; }
-      inline void UnsetOrigin( )
-        { this->m_Origin = TPrimal::NoGeometry; }
-      inline void UnsetDestination( )
-        { this->m_Rot->m_Rot->m_Origin = TPrimal::NoGeometry; }
-      inline void UnsetRight( )
-        { this->m_Rot->m_Origin = TDual::NoGeometry; }
-      inline void UnsetLeft( )
-        { this->m_Rot->m_Rot->m_Rot->m_Origin = TDual::NoGeometry; }
-
-      /**
-       * Set the Left( ) of all the edges in the Lnext( ) ring of "this"
-       * with the same given geometrical information.
-       * @param  faceGeom Looks at most maxSize edges in the Lnext( ) ring.
-       * @return Returns true on success. False otherwise.
-       */
-      void SetLnextRingGeometry( const D& v );
-      void UnsetLnextRingGeometry( );
-
-      /// Topological queries
-      inline bool IsIsolated( ) const
-        { return( this == this->m_Onext ); }
-      bool IsEdgeInOnextRing( const TPrimal* e ) const;
-      bool IsEdgeInLnextRing( const TPrimal* e ) const;
-      unsigned int GetOnextRingSize( ) const;
-      unsigned int GetLnextRingSize( ) const;
-
-      /**
-       * @return Returns true when "this" has no faces set on both sides.
-       *         Return false otherwise.
-       */
-      inline bool IsWire( )
-        { return( !( this->IsLeftSet( ) ) && !( this->IsRightSet( ) ) ); }
-
-      /**
-       * @return Returns true when "this" is on the boundary i.e.
-       *         one and only one of the faces is set. Return false
-       *         otherwise.
-       */
-      inline bool IsAtBorder( ) const;
-
-      /**
-       * @return Returns true when "this" has faces set on both sides.
-       *         Return false otherwise.
-       */
-      inline bool IsInternal( ) const
-        { return ( this->IsLeftSet( ) && this->IsRightSet( ) ); }
-
-      /// Geometrical queries
-      inline bool IsOriginSet( ) const
-        { return ( this->m_Origin != Self::NoGeometry ); }
-      inline bool IsDestinationSet( ) const
-        { return ( this->m_Rot->m_Rot->IsOriginSet( ) ); }
-      inline bool IsRightSet( ) const
-        { return ( this->m_Rot->IsOriginSet( ) ); }
-      inline bool IsLeftSet( ) const
-        { return ( this->m_Rot->m_Rot->m_Rot->IsOriginSet( ) ); }
-
-      /**
-       * \brief Check wether edge's Origin is internal to the mesh (as
-       * opposed to being on the boundary) by looking if all the edges
-       * in the Onext() ring have a face set on both their Left() and
-       * Right() side.
-       */
-      bool IsOriginInternal( ) const;
-
-      /**
-       * Definition: an edge is said to be a boundary edge when it is
-       * adjacent to i.e. when at least one of the faces edge->GetLeft() or
-       * edge->GetRight() is unset.  Definition: an point is said to be a
-       * boundary point when at least one of the edges of it's Onext() ring
-       * is a boundary edge.
-       *
-       * Assume "this" edge belongs to a triangulation (i.e. it belongs to a
-       * QEMesh which represents a 2-manifold) which possesses a boundary.
-       * Assume "this" edge instance is a boundary edge. Let us denote by P
-       * the point which is the origin of "this" edge i.e. P is
-       * this->Origin().  By definition P is a boundary point.  Then AT
-       * LEAST two [see the note below] edges of the Onext() ring of P
-       * [which all have the point P as Origin()] are themselves boundary
-       * edges. And among those boundary edges AT LEAST one has it's Left()
-       * face unset.  By iterating over the Onext() ring (which defines a
-       * local ordering on edges) this method searches for the first edge
-       * whose Left() face is unset AND which is encountered AFTER edgeTest.
-       *
-       * @param edgeTest When present, this edge will be considered as
-       *        the entry edge in the Onext() ring. When absent it shall
-       *        be defaulted to "this" edge. (see the warning below).
-       * @return When "this" edge is a boundary edge, return the first
-       *         edge in "this" Onext() ring whose Left() face is unset
-       *         AND located after edgeTest.
-       *         When "this" edge is NOT a boundary edge the 0 is
-       *         returned.
-       * @warning When the Mesh possessing "this" edge is a 2-manifold
-       *          then result of this method is unique in the sense that
-       *          it is independent from the edgeTest parameter.
-       *          But when the Mesh is not 2-manifold (this state can
-       *          happen at intermediary stages of the building process,
-       *          or during "surgical" operations on the Mesh, and
-       *          even though the Mesh represents a triangulation)
-       *          the result of this method is not unique in the sense
-       *          that the result depends on the edgeTest parameter.
-       *          Let us illusatre this dependence by considering a
-       *          Mesh (which is a triangulation) which is not a 2-manifold.
-       *          Assume the point P (the origin of "this" edge i.e.
-       *          P = this->Originv()) is TWICE on the border i.e. it
-       *          is adjacent twice to noface. We can consider the situation
-       *          of the following diagram, which depicts some Onext()
-       *          ring around point P:
-       *
-       *                       \         /                               //
-       *                        \   *   /                                //
-       *                        i3     b2              counter-clockwise //
-       *                  *       \   /   NO FACE      Onext() order.    //
-       *                           \ /                                   //
-       *                 ----b4-----P----b1------                        //
-       *                           /|\                                   //
-       *               NO FACE    / | \                                  //
-       *                         /  |  \    *  <------ a * indicates the //
-       *                        /   |   \         the presence of a face //
-       *                       /    |    \                               //
-       *                     b5    i6     i7                             //
-       *                     /   *  |  *   \                             //
-       *                    /       |       \                            //
-       *
-       *          On this example, and if we assume the Onext() oder is
-       *          represented counter-clockwise, the edges are ordered as
-       *          follows:
-       *             b1, b2, i3, b4, b5, i6, i7
-       *          (when arbitrarily starting at edge b1).
-       *          We have four Boundary edges labeled b1, b2, b4, b5 and
-       *          we have three internal edges (i.e. non boundary edges)
-       *          labeled i3, i6 and i7.
-       *          Depending on edgeTest, the result of this method
-       *          will NOT return the same edge:
-       *            - when edgeTest == b5 (or i6 or i7 or b1) then the edge
-       *              b1 will be returned,
-       *            - when edgeTest == b2 (or i3 or b4) then the edge
-       *              b4 will be returned,
-       *          Eventually, when edgeTest is absent, the result shall
-       *          depend on the position of "this" in the Onext() ring().
-       *
-       */
-      TPrimal* GetNextBorderEdgeWithUnsetLeft( TPrimal* edge = NULL ) const;
-
-      /**
-       * Assume "this->Originv()" is a boundary point P that is thrice
-       * adjacent to noface and consider the given situation is the one
-       * depicted by the following diagram where:
-       *   - P is "this->Originv()" instance,
-       *   - the * (star) indicates the presence of a face,
-       *   - b1, b2, b3, b4, b5, b6 denote boundary edges,
-       *   - p denotes some generic point,
-       *   - A and B denote some specific points we want to discuss,
-       *   - the Onext() ring order is represented counter-clockwise
-       *     [which is coherent with the definition of edge->GetRigth()]
-       *     i.e. the ordering of the edges is:
-       *          b1, b2, b3, b4, b5, b6, b1...
-       *
-       *                    p       N       p
-       *                   / \      O      / \                            //
-       *                  /   \           /   \                           //
-       *                 /     \    F    /     \       counter-clockwise  //
-       *                /      b3   A   b2      \      Onext() ring order //
-       *               /         \  C  /         \                        //
-       *              /     *     \ E /     *     \                       //
-       *             /             \ /             \                      //
-       *             A------b4------P------b1-------B                     //
-       *                           / \                                    //
-       *                          /   \                                   //
-       *             NO FACE     /     \      NO FACE                     //
-       *                        /       \                                 //
-       *                      b5         b6                               //
-       *                      /     *     \                               //
-       *                     /             \                              //
-       *                    p---------------p                             //
-       *
-       * At P this Mesh doesn't represent a 2-manifold (since we are thrice
-       * on the boundary). Nevertheless such a situation could arise in
-       * intermediary stages (e.g. when building the Mesh, or during
-       * surgical changes on the Mesh).
-       *    Now, assume we are asked to build the triangle [P, A, B]. Note
-       * that this request is not absurd since the current situation at
-       * P isn't the one of a 2-manifold: hence when building the current
-       * Onext() ring of P, we had not enough information to decide
-       * wheter b4.Onext() should be b5 or b1. It is ONLY when we are
-       * required to build the triangle [P, A, B] that we have the
-       * additional information that b4.Onext() is indeed b1.
-       *    When we are required to build triangle [P, A, B], we hence
-       * need to change the Onext() ring order at P, i.e. we need to deal
-       * with the triangle [P, b5, b6] which currently prevents
-       * b4.Onext() to be b1. In other terms, when considering the
-       * additional information that b4.Onext() is b1, and before
-       * building the triangle [P, A, B], we need to reorder
-       * the Onext() ring of P from it's current state
-       *    b1, b2, b3, b4, b5, b6, b1...
-       * to an order coherent with the [P, A, B] request, i.e.
-       *     b1, b2, b5, b6, b3, b4, b1...
-       *
-       * In order to establish the "proper" Onext() ring at P we use
-       * two Splice operations. The algorithm goes:
-       *   - first disconnect the piece of the surface containing the edge
-       *     [PB] (it would be the same process if we chose [PA]) from
-       *     the Onext() ring at P.
-       *   - second, re-integrate the disconnected piece at the desired
-       *     location i.e. side by side with [PA] (respectively [PB] if
-       *     we chose [PA] at first stage).
-       * By "piece of surface containing the edge [PB]" we mean [all]
-       * the triangle[s] starting at [PB] in the Onext() order and
-       * having a left face set.
-       *
-       * We can illustrate this process on bit more general diagram than
-       * the last case (where the "piece of surface containing the edge
-       * [PB]" is constituted by two triangles) and when using
-       * the arguments of this method (i.e. [PA] = this and [PB] = second).
-       * The initial stage is the following (we note first=this=[PA] and
-       * second=[PB]) where the Onext() ring order is:
-       *     first, b2, b3, second, b5, bsplice, b7, first...
-       *
-       *                    p       N       A                            //
-       *                   / \      O      / \                           //
-       *                  /   \           /   \                          //
-       *                 /     \    F    /     \     counter-clockwise   //
-       *                /      b2   A  first    \    Onext() ring order  //
-       *               /         \  C  /         \                       //
-       *              /     *     \ E /     *     \                      //
-       *             /             \ /             \                     //
-       *            p-------b3------P------b7-------p                    //
-       *                           /|\                                   //
-       *                          / | \                                  //
-       *          NO FACE        /  |  \      NO FACE                    //
-       *                        /   |   \                                //
-       *                  second   b5   bsplice                          //
-       *                      /  *  |  *  \                              //
-       *                     /      |      \                             //
-       *                    B-------p-------p                            //
-       *
-       * The first stage, implemented as
-       *     second->Oprev()->Splice( bsplice ),
-       * yields the following diagram:
-       *
-       *                    p       N       A                            //
-       *                   / \      O      / \                           //
-       *                  /   \     F     /   \                          //
-       *                 /     \    A    /     \      counter-clockwise  //
-       *                /      b2   C  first    \     Onext() ring order //
-       *               /         \  E  /         \                       //
-       *              /     *     \   /     *     \                      //
-       *             /             \ /             \                     //
-       *            p-------b3------P------b7-------p                    //
-       *                                                                 //
-       *                         NO FACE                                 //
-       *                                                                 //
-       *                           /|\                                   //
-       *                          / | \                                  //
-       *                         /  |  \                                 //
-       *                        /   |   \                                //
-       *                  second   b5   bsplice                          //
-       *                      /  *  |  *  \                              //
-       *                     /      |      \                             //
-       *                    B-------p-------p                            //
-       *
-       * and the second stage, implemented as
-       *      first->Splice( bsplice ),
-       * yields the following diagram:
-       *
-       *                                    A                            //
-       *         B__        NO FACE        / \                           //
-       *         |  \__                   /   \                          //
-       *         |     \__               /     \       counter-          //
-       *         |      second         first    \      clockwise for all //
-       *         |           \__       /         \                       //
-       *         |     *        \__   /     *     \                      //
-       *         |                 \ /             \                     //
-       *         p-------b5---------P------b7-------p                    //
-       *         |               __/|\                                   //
-       *         |     *      __/   | \                                  //
-       *         |           /      |  \      NO FACE                    //
-       *         |     bsplice      |   \                                //
-       *         |   __/           b2    b3                              //
-       *         p__/               |  *  \                              //
-       *                NO FACE     |      \                             //
-       *                            p-------p                            //
-       *
-       */
-      inline static bool ReorderOnextRing( TPrimal* first, TPrimal* second );
-
-      /**
-       * \brief Basic quad-edge topological method.
-       *
-       * This method describes all possible topological operations on an
-       * edge since it is its own inverse. It works in two ways:
-       *
-       *   1. If this->m_Org != b->m_Org, it slice a face in two.
-       *   2. If this->m_Org == b->m_Org, it unifies two faces.
-       */
-      inline static void Splice( TPrimal* a, TPrimal* b );
-
-    protected:
-      QuadEdge( );
-      virtual ~QuadEdge( );
-
-    public:
-      static const TPrimalGeometry NoGeometry;
-
-    protected:
-      Pointer         m_Onext;  /**< Onext ring */
-      PtrDual         m_Rot;    /**< Rot ring */
-      TPrimalGeometry m_Origin; /**< Geometry attached to edge's origin */
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-#include <cpExtensions/DataStructures/QuadEdge.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __CPEXTENSIONS__DATASTRUCTURES__QUADEDGE__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/DataStructures/QuadEdge.hxx b/lib/cpExtensions/DataStructures/QuadEdge.hxx
deleted file mode 100644 (file)
index a0e0e25..0000000
+++ /dev/null
@@ -1,241 +0,0 @@
-#ifndef __CPEXTENSIONS__DATASTRUCTURES__QUADEDGE__HXX__
-#define __CPEXTENSIONS__DATASTRUCTURES__QUADEDGE__HXX__
-
-#include <limits>
-
-// -------------------------------------------------------------------------
-template< typename P, typename D, bool IsPrimal >
-const typename cpExtensions::DataStructures::
-QuadEdge< P, D, IsPrimal >::TPrimalGeometry
-cpExtensions::DataStructures::QuadEdge< P, D, IsPrimal >::
-NoGeometry = std::numeric_limits< P >::max( );
-
-// -------------------------------------------------------------------------
-template< typename P, typename D, bool IsPrimal >
-void cpExtensions::DataStructures::QuadEdge< P, D, IsPrimal >::
-CreateRings( )
-{
-  TPrimal* e = this;
-  PtrDual r = TDual::New( );
-  Pointer s = Self::New( );
-  PtrDual i = TDual::New( );
-
-  // Create Rot ring
-  e->m_Rot = r;
-  r->m_Rot = s;
-  s->m_Rot = i;
-  i->m_Rot = e;
-
-  // Update Onext rings
-  r->m_Onext = i;
-  i->m_Onext = r;
-}
-
-// -------------------------------------------------------------------------
-template< typename P, typename D, bool IsPrimal >
-void cpExtensions::DataStructures::QuadEdge< P, D, IsPrimal >::
-SetLnextRingGeometry( const D& v )
-{
-  for( Iterator i = this->BeginLnext( ); i != this->EndLnext( ); ++i )
-    ( *i )->SetLeft( v );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, typename D, bool IsPrimal >
-void cpExtensions::DataStructures::QuadEdge< P, D, IsPrimal >::
-UnsetLnextRingGeometry( )
-{
-  this->SetLnextRingGeometry( TDual::NoGeometry );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, typename D, bool IsPrimal >
-bool cpExtensions::DataStructures::QuadEdge< P, D, IsPrimal >::
-IsEdgeInOnextRing( const TPrimal* e ) const
-{
-  bool found = false;
-  for(
-    ConstIterator i = this->BeginOnext( );
-    i != this->EndOnext( ) && !found;
-    ++i
-    )
-    found |= ( *i == e );
-  return( found );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, typename D, bool IsPrimal >
-bool cpExtensions::DataStructures::QuadEdge< P, D, IsPrimal >::
-IsEdgeInLnextRing( const TPrimal* e ) const
-{
-  bool found = false;
-  for(
-    ConstIterator i = this->BeginLnext( );
-    i != this->EndLnext( ) && !found;
-    ++i
-    )
-    found |= ( *i == e );
-  return( found );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, typename D, bool IsPrimal >
-unsigned int
-cpExtensions::DataStructures::QuadEdge< P, D, IsPrimal >::
-GetOnextRingSize( ) const
-{
-  unsigned int count = 0;
-  for(
-    ConstIterator i = this->BeginOnext( );
-    i != this->EndOnext( );
-    ++i
-    )
-    count++;
-  return( count );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, typename D, bool IsPrimal >
-unsigned int
-cpExtensions::DataStructures::QuadEdge< P, D, IsPrimal >::
-GetLnextRingSize( ) const
-{
-  unsigned int count = 0;
-  for(
-    ConstIterator i = this->BeginLnext( );
-    i != this->EndLnext( );
-    ++i
-    )
-    count++;
-  return( count );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, typename D, bool IsPrimal >
-bool cpExtensions::DataStructures::QuadEdge< P, D, IsPrimal >::
-IsAtBorder( ) const
-{
-  return(
-    (    this->IsLeftSet( )   && !( this->IsRightSet( ) ) ) ||
-    ( !( this->IsLeftSet( ) ) &&    this->IsRightSet( )   )
-    );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, typename D, bool IsPrimal >
-bool cpExtensions::DataStructures::QuadEdge< P, D, IsPrimal >::
-IsOriginInternal( ) const
-{
-  bool internal = true;
-  for(
-    ConstIterator i = this->BeginOnext( );
-    i != this->EndOnext( ) && internal;
-    ++i
-    )
-    internal &= ( *i )->IsInternal( );
-  return( internal );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, typename D, bool IsPrimal >
-typename cpExtensions::DataStructures::QuadEdge< P, D, IsPrimal >::
-TPrimal* cpExtensions::DataStructures::QuadEdge< P, D, IsPrimal >::
-GetNextBorderEdgeWithUnsetLeft( TPrimal* edge ) const
-{
-  // Be sure the Onext ring isn't already full
-  if( this->IsOriginInternal( ) )
-    return( NULL );
-
-  // Update reference
-  edge = ( edge == NULL )? const_cast< TPrimal* >( this ): edge;
-
-  // On efficiency purposes
-  if( edge->IsIsolated( ) )
-    return( edge );
-
-  // Ok, no more special cases
-  const TPrimal* cedge = const_cast< const TPrimal* >( edge );
-  ConstIterator it = cedge->BeginOnext( );
-  TPrimal* found = NULL;
-  for( ; it != cedge->EndOnext( ) && found == NULL; ++it )
-    if( !( ( *it )->IsLeftSet( ) ) )
-      found = const_cast< TPrimal* >( *it );
-  return( found );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, typename D, bool IsPrimal >
-bool cpExtensions::DataStructures::QuadEdge< P, D, IsPrimal >::
-ReorderOnextRing( TPrimal* first, TPrimal* second )
-{
-  // Making sure point adjacency is correct:
-  if( first->GetOrigin( ) != second->GetOrigin( ) )
-    return( false );
-
-  if( first->GetOnext( ) == second )
-    return( true );
-
-  if( first->IsLeftSet( ) )
-    return( false );
-
-  // Second is an internal edge.
-  if( second->IsInternal( ) )
-    return( false );
-
-  // Disconnect the triangles containing second:
-  TPrimal* bsplice;
-  if( second->IsLeftSet( ) )
-    bsplice = second->GetNextBorderEdgeWithUnsetLeft( );
-  else
-    bsplice = second;
-  TPrimal::Splice( second->GetOprev( ), bsplice );
-
-  // Reconnect second after first:
-  TPrimal::Splice( first, bsplice );
-  return( true );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, typename D, bool IsPrimal >
-void cpExtensions::DataStructures::QuadEdge< P, D, IsPrimal >::
-Splice( TPrimal* a, TPrimal* b )
-{
-  // Don't waste time splicing the same edge (or non-existent)
-  // remember: it is its own inverse!
-  if( a != b || a == NULL || b == NULL )
-  {
-    TPrimal* aNext = a->m_Onext;
-    TPrimal* bNext = b->m_Onext;
-    TDual* al      = aNext->m_Rot;
-    TDual* be      = bNext->m_Rot;
-    TDual* alNext  = al->m_Onext;
-    TDual* beNext  = be->m_Onext;
-
-    a->SetOnext( bNext );
-    b->SetOnext( aNext );
-    al->SetOnext( beNext );
-    be->SetOnext( alNext );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-template< typename P, typename D, bool IsPrimal >
-cpExtensions::DataStructures::QuadEdge< P, D, IsPrimal >::
-QuadEdge( )
-  : m_Origin( Self::NoGeometry )
-{
-  this->m_Onext = this;
-  this->m_Rot = NULL;
-}
-
-// -------------------------------------------------------------------------
-template< typename P, typename D, bool IsPrimal >
-cpExtensions::DataStructures::QuadEdge< P, D, IsPrimal >::
-~QuadEdge( )
-{
-}
-
-#endif // __CPEXTENSIONS__DATASTRUCTURES__QUADEDGE__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/DataStructures/QuadEdgeCell.h b/lib/cpExtensions/DataStructures/QuadEdgeCell.h
deleted file mode 100644 (file)
index 84ae92f..0000000
+++ /dev/null
@@ -1,126 +0,0 @@
-#ifndef __CPEXTENSIONS__DATASTRUCTURES__QUADEDGECELL__H__
-#define __CPEXTENSIONS__DATASTRUCTURES__QUADEDGECELL__H__
-
-#include <vector>
-
-namespace cpExtensions
-{
-  namespace DataStructures
-  {
-    /**
-     */
-    template< class I, class E >
-    class QuadEdgeCell
-      : public I
-    {
-    public:
-      // Base types
-      typedef QuadEdgeCell                   Self;
-      typedef I                              Superclass;
-      typedef itk::AutoPointer< Self >       SelfAutoPointer;
-      typedef itk::AutoPointer< const Self > ConstSelfAutoPointer;
-      typedef Self*                          RawPointer;
-      typedef const Self*                    ConstRawPointer;
-
-      // QuadEdge objects
-      typedef E                 TPrimalEdge;
-      typedef typename E::TDual TDualEdge;
-
-      // Inherited types
-      typedef typename I::PixelType                PixelType;
-      typedef typename I::CellType                 CellType;
-      typedef typename I::CellAutoPointer          CellAutoPointer;
-      typedef typename I::CellConstAutoPointer     CellConstAutoPointer;
-      typedef typename I::CellRawPointer           CellRawPointer;
-      typedef typename I::CellConstRawPointer      CellConstRawPointer;
-      typedef typename I::CellTraits               CellTraits;
-      typedef typename I::CoordRepType             CoordRepType;
-      typedef typename I::InterpolationWeightType  InterpolationWeightType;
-      typedef typename I::PointIdentifier          PointIdentifier;
-      typedef typename I::PointIdIterator          PointIdIterator;
-      typedef typename I::PointIdConstIterator     PointIdConstIterator;
-      typedef typename I::CellIdentifier           CellIdentifier;
-      typedef typename I::CellFeatureIdentifier    CellFeatureIdentifier;
-      typedef typename I::CellFeatureIdentifier    CellFeatureCount;
-      typedef typename I::PointType                PointType;
-      typedef typename I::VectorType               VectorType;
-      typedef typename I::PointsContainer          PointsContainer;
-      typedef typename I::UsingCellsContainer      UsingCellsContainer;
-      typedef typename I::CellGeometry             CellGeometry;
-      typedef typename I::ParametricCoordArrayType ParametricCoordArrayType;
-      typedef typename I::ShapeFunctionsArrayType  ShapeFunctionsArrayType;
-
-      itkStaticConstMacro( PointDimension, unsigned int, I::PointDimension );
-      itkStaticConstMacro( CellDimension, unsigned int, 2 );
-
-    public:
-      itkTypeMacro( QuadEdgeCell, I );
-
-    public:
-      QuadEdgeCell( );
-      QuadEdgeCell( E* entry );
-      virtual ~QuadEdgeCell( );
-
-      /// Implement the standard CellInterface.
-      virtual CellGeometry GetType( ) const;
-      virtual void MakeCopy( CellAutoPointer& other ) const;
-      virtual unsigned int GetDimension( ) const;
-      virtual unsigned int GetNumberOfPoints( ) const;
-      virtual CellFeatureCount GetNumberOfBoundaryFeatures(
-        int dimension
-        ) const;
-      virtual bool GetBoundaryFeature(
-        int dimension, CellFeatureIdentifier fId, CellAutoPointer& ptr
-        );
-      virtual void SetPointIds( PointIdConstIterator first );
-      virtual void SetPointIds(
-        PointIdConstIterator first, PointIdConstIterator last
-        );
-      virtual void AddPointId( PointIdentifier pId );
-      virtual void RemovePointId( PointIdentifier pId );
-      virtual void SetPointIds(
-        int dummy, int num, PointIdConstIterator first
-        );
-      virtual void BuildEdges( );
-      virtual void ClearPoints( );
-      virtual void SetPointId( int localId, PointIdentifier pId );
-
-      // Visitor methods
-      static int GetTopologyId( );
-      virtual void Accept(
-        CellIdentifier cellid,
-        typename itk::CellInterface< PixelType, CellTraits >::
-        MultiVisitor* mv
-        );
-
-      // Iterators
-      virtual PointIdIterator      PointIdsBegin( );
-      virtual PointIdConstIterator PointIdsBegin( ) const;
-      virtual PointIdIterator      PointIdsEnd( );
-      virtual PointIdConstIterator PointIdsEnd( ) const;
-
-      /// QuadEdgeCell-specific interface.
-      virtual E* GetEntryPrimalEdge( );
-      virtual const E* GetEntryPrimalEdge( ) const;
-      virtual void SetEntryPrimalEdge( E* entry );
-
-    private:
-      /// Purposely not implemented.
-    QuadEdgeCell( const Self& );
-      Self& operator=( const Self& );
-
-    protected:
-      E* m_EntryEdge;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-#include <cpExtensions/DataStructures/QuadEdgeCell.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __CPEXTENSIONS__DATASTRUCTURES__QUADEDGECELL__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/DataStructures/QuadEdgeCell.hxx b/lib/cpExtensions/DataStructures/QuadEdgeCell.hxx
deleted file mode 100644 (file)
index 7713b3e..0000000
+++ /dev/null
@@ -1,258 +0,0 @@
-#ifndef __CPEXTENSIONS__DATASTRUCTURES__QUADEDGECELL__HXX__
-#define __CPEXTENSIONS__DATASTRUCTURES__QUADEDGECELL__HXX__
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-QuadEdgeCell( )
-  : Superclass( ),
-    m_EntryEdge( NULL )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-QuadEdgeCell( E* entry )
-  : Superclass( ),
-    m_EntryEdge( entry )
-{
-  this->SetEntryPrimalEdge( entry );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-~QuadEdgeCell( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-typename cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-CellGeometry cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-GetType( ) const
-{
-  std::cout << "QuadEdgeCell GetType" << std::endl;
-  std::exit( 1 );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-void cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-MakeCopy( CellAutoPointer& other ) const
-{
-  std::cout << "QuadEdgeCell MakeCopy" << std::endl;
-  std::exit( 1 );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-unsigned int cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-GetDimension( ) const
-{
-  std::cout << "QuadEdgeCell GetDimension" << std::endl;
-  std::exit( 1 );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-unsigned int cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-GetNumberOfPoints( ) const
-{
-  return( this->m_EntryEdge->GetLnextRingSize( ) );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-typename cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-CellFeatureCount cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-GetNumberOfBoundaryFeatures( int dimension ) const
-{
-  std::cout << "QuadEdgeCell GetNumberOfBoundaryFeatures" << std::endl;
-  std::exit( 1 );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-bool cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-GetBoundaryFeature(
-  int dimension,
-  CellFeatureIdentifier fId,
-  CellAutoPointer& ptr
-  )
-{
-  std::cout << "QuadEdgeCell GetBoundaryFeature" << std::endl;
-  std::exit( 1 );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-void cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-SetPointIds( PointIdConstIterator first )
-{
-  std::cout << "QuadEdgeCell SetPointIds" << std::endl;
-  std::exit( 1 );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-void cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-SetPointIds(
-  PointIdConstIterator first,
-  PointIdConstIterator last
-  )
-{
-  std::cout << "QuadEdgeCell SetPointIds(first,last)" << std::endl;
-  std::exit( 1 );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-void cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-AddPointId( PointIdentifier pId )
-{
-  std::cout << "QuadEdgeCell AddPointId" << std::endl;
-  std::exit( 1 );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-void cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-RemovePointId( PointIdentifier pId )
-{
-  std::cout << "QuadEdgeCell RemovePointId" << std::endl;
-  std::exit( 1 );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-void cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-SetPointIds(
-  int dummy,
-  int num,
-  PointIdConstIterator first
-  )
-{
-  std::cout << "QuadEdgeCell SetPointIds(dummy,num,first)" << std::endl;
-  std::exit( 1 );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-void cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-BuildEdges( )
-{
-  std::cout << "QuadEdgeCell BuildEdges" << std::endl;
-  std::exit( 1 );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-void cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-ClearPoints( )
-{
-  std::cout << "QuadEdgeCell ClearPoints" << std::endl;
-  std::exit( 1 );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-void cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-SetPointId( int localId, PointIdentifier pId )
-{
-  std::cout << "QuadEdgeCell SetPointId(localId,pId)" << std::endl;
-  std::exit( 1 );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-int cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-GetTopologyId( )
-{
-  // TODO: return( Superclass::POLYGON_CELL );
-  std::cout << "QuadEdgeCell GetTopologyId" << std::endl;
-  std::exit( 1 );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-void cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-Accept(
-  CellIdentifier cellid,
-  typename itk::CellInterface< PixelType, CellTraits >::MultiVisitor* mv
-  )
-{
-  std::cout << "QuadEdgeCell Accept" << std::endl;
-  std::exit( 1 );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-typename cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-PointIdIterator cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-PointIdsBegin( )
-{
-  std::cout << "QuadEdgeCell PointIdsBegin" << std::endl;
-  std::exit( 1 );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-typename cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-PointIdConstIterator
-cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-PointIdsBegin( ) const
-{
-  std::cout << "QuadEdgeCell PointIdsBegin (const)" << std::endl;
-  std::exit( 1 );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-typename cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-PointIdIterator cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-PointIdsEnd( )
-{
-  std::cout << "QuadEdgeCell PointIdsEnd" << std::endl;
-  std::exit( 1 );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-typename cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-PointIdConstIterator
-cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-PointIdsEnd( ) const
-{
-  std::cout << "QuadEdgeCell PointIdsEnd (const)" << std::endl;
-  std::exit( 1 );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-E* cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-GetEntryPrimalEdge( )
-{
-  return( this->m_EntryEdge );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-const E* cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-GetEntryPrimalEdge( ) const
-{
-  return( this->m_EntryEdge );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class E >
-void cpExtensions::DataStructures::QuadEdgeCell< I, E >::
-SetEntryPrimalEdge( E* entry )
-{
-  this->m_EntryEdge = entry;
-}
-
-#endif // __CPEXTENSIONS__DATASTRUCTURES__QUADEDGECELL__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/DataStructures/QuadEdgeIterators.h b/lib/cpExtensions/DataStructures/QuadEdgeIterators.h
deleted file mode 100644 (file)
index c82ac34..0000000
+++ /dev/null
@@ -1,173 +0,0 @@
-#ifndef __CPEXTENSIONS__DATASTRUCTURES__QUADEDGEITERATORS__H__
-#define __CPEXTENSIONS__DATASTRUCTURES__QUADEDGEITERATORS__H__
-
-#include <cstdlib>
-
-// -------------------------------------------------------------------------
-#define cpPluginsQEIteratorsMacro( op, it, cit )        \
-  inline it Begin##op( )                                \
-  { return( it( this, it::Op##op, true ) ); }           \
-  inline it End##op( )                                  \
-  { return( it( this, it::Op##op, false ) ); }          \
-  inline cit Begin##op( ) const                         \
-  { return( cit( this, cit::Op##op, true ) ); }         \
-  inline cit End##op( ) const                           \
-  { return( cit( this, cit::Op##op, false ) ); }
-
-// -------------------------------------------------------------------------
-#define cpPluginsExtensionsQEPointIteratorsMacro( op, it, cit ) \
-  inline Point##it BeginPoint##op( )                            \
-  { return( Point##it( this, it::Op##op, true ) ); }            \
-  inline Point##it EndPoint##op( )                              \
-  { return( Point##it( this, it::Op##op, false ) ); }           \
-  inline Point##cit BeginPoint##op( ) const                     \
-  { return( Point##cit( this, cit::Op##op, true ) ); }          \
-  inline Point##cit EndPoint  ##op( ) const                     \
-  { return( Point##cit( this, cit::Op##op, false ) ); }
-
-// -------------------------------------------------------------------------
-#define cpPluginsExtensionsQEAllIteratorsMacro( op )                    \
-  cpPluginsQEIteratorsMacro( op, Iterator, ConstIterator );             \
-  cpPluginsExtensionsQEPointIteratorsMacro( op, Iterator, ConstIterator );
-
-namespace cpExtensions
-{
-  namespace DataStructures
-  {
-    /**
-     */
-    template< class E >
-    class QuadEdgeBaseIterator
-    {
-    public:
-      typedef QuadEdgeBaseIterator Self;
-      typedef E                    TQuadEdge;
-
-      // Different types of logical iterators
-      enum
-      {
-        OpOnext = 0,
-        OpLnext = 1,
-        OpRnext = 2,
-        OpDnext = 3,
-        OpOprev = 4,
-        OpLprev = 5,
-        OpRprev = 6,
-        OpDprev = 7
-      };
-
-    public:
-      QuadEdgeBaseIterator( E* e, int op = OpOnext, bool start = true );
-      virtual ~QuadEdgeBaseIterator( );
-      Self& operator=( const Self& r );
-
-      E*   GetStartEdge( ) const;
-      E*   GetIterator( ) const;
-      int  GetOpType( ) const;
-      bool GetStart( ) const;
-
-      bool  operator==( Self& r );
-      bool  operator==( const Self& r ) const;
-      bool  operator!=( Self& r );
-      bool  operator!=( const Self& r ) const;
-      Self& operator++( );
-      Self& operator++( int );
-
-    protected:
-      /// Method that should do all the iteration work
-    virtual void _GoToNext( );
-
-    protected:
-      E*   m_StartEdge; /**< Start edge */
-      E*   m_Iterator;  /**< Current iteration position */
-      int  m_OpType;    /**< Operation type */
-      bool m_Start;     /**< Indicates iteration has just started */
-    };
-
-    /**
-     */
-    template< class E >
-    class QuadEdgeIterator
-      : public QuadEdgeBaseIterator< E >
-    {
-    public:
-      typedef QuadEdgeIterator          Self;
-      typedef QuadEdgeBaseIterator< E > Superclass;
-      typedef E                         TQuadEdge;
-
-    public:
-      QuadEdgeIterator(
-        E* e = NULL, int op = Superclass::OpOnext, bool start = true
-        );
-      virtual ~QuadEdgeIterator( );
-      E* operator*( );
-    };
-
-    /**
-     */
-    template< class E >
-    class QuadEdgeConstIterator
-      : public QuadEdgeBaseIterator< const E >
-    {
-    public:
-      typedef QuadEdgeConstIterator           Self;
-      typedef QuadEdgeBaseIterator< const E > Superclass;
-      typedef E                               TQuadEdge;
-
-    public:
-      QuadEdgeConstIterator(
-        const E* e = NULL, int op = Superclass::OpOnext, bool start = true
-        );
-      virtual ~QuadEdgeConstIterator( );
-      const E* operator*( ) const;
-    };
-
-    /**
-     */
-    template< class E >
-    class QuadEdgePointIterator
-      : public QuadEdgeBaseIterator< const E >
-    {
-    public:
-      typedef QuadEdgePointIterator           Self;
-      typedef QuadEdgeBaseIterator< const E > Superclass;
-      typedef E                               TQuadEdge;
-
-    public:
-      QuadEdgePointIterator(
-        const E* e = NULL, int op = Superclass::OpOnext, bool start = true
-        );
-      virtual ~QuadEdgePointIterator( );
-      typename E::TPrimalGeometry& operator*( );
-    };
-
-    /**
-     */
-    template< class E >
-    class QuadEdgePointConstIterator
-      : public QuadEdgeBaseIterator< const E >
-    {
-    public:
-      typedef QuadEdgePointConstIterator      Self;
-      typedef QuadEdgeBaseIterator< const E > Superclass;
-      typedef E                               TQuadEdge;
-
-    public:
-      QuadEdgePointConstIterator(
-        const E* e = NULL, int op = Superclass::OpOnext, bool start = true
-        );
-      virtual ~QuadEdgePointConstIterator( );
-      const typename E::TPrimalGeometry& operator*( ) const;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-#include <cpExtensions/DataStructures/QuadEdgeIterators.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __CPEXTENSIONS__DATASTRUCTURES__QUADEDGEITERATORS__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/DataStructures/QuadEdgeIterators.hxx b/lib/cpExtensions/DataStructures/QuadEdgeIterators.hxx
deleted file mode 100644 (file)
index 3255e0d..0000000
+++ /dev/null
@@ -1,275 +0,0 @@
-#ifndef __CPEXTENSIONS__DATASTRUCTURES__QUADEDGEITERATORS__HXX__
-#define __CPEXTENSIONS__DATASTRUCTURES__QUADEDGEITERATORS__HXX__
-
-// -------------------------------------------------------------------------
-template< class E >
-cpExtensions::DataStructures::QuadEdgeBaseIterator< E >::
-QuadEdgeBaseIterator( E* e, int op, bool start )
-  : m_StartEdge( e ),
-    m_Iterator( e ),
-    m_OpType( op ),
-    m_Start( start )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-cpExtensions::DataStructures::QuadEdgeBaseIterator< E >::
-~QuadEdgeBaseIterator( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-typename cpExtensions::DataStructures::QuadEdgeBaseIterator< E >::
-Self& cpExtensions::DataStructures::QuadEdgeBaseIterator< E >::
-operator=( const Self& r )
-{
-  if( this != &r )
-  {
-    this->m_StartEdge = r.m_StartEdge;
-    this->m_Iterator = r.m_Iterator;
-    this->m_OpType = r.m_OpType;
-    this->m_Start = r.m_Start;
-
-  } // fi
-  return( *this );
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-E* cpExtensions::DataStructures::QuadEdgeBaseIterator< E >::
-GetStartEdge( ) const
-{
-  return( this->m_StartEdge );
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-E* cpExtensions::DataStructures::QuadEdgeBaseIterator< E >::
-GetIterator( ) const
-{
-  return( this->m_Iterator );
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-int cpExtensions::DataStructures::QuadEdgeBaseIterator< E >::
-GetOpType( ) const
-{
-  return( this->m_OpType );
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-bool cpExtensions::DataStructures::QuadEdgeBaseIterator< E >::
-GetStart( ) const
-{
-  return( this->m_Start );
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-bool cpExtensions::DataStructures::QuadEdgeBaseIterator< E >::
-operator==( Self& r )
-{
-  return(
-    ( this->m_StartEdge == r.m_StartEdge ) &&
-    ( this->m_Iterator  == r.m_Iterator ) &&
-    ( this->m_OpType    == r.m_OpType ) &&
-    ( this->m_Start     == r.m_Start )
-    );
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-bool cpExtensions::DataStructures::QuadEdgeBaseIterator< E >::
-operator==( const Self& r ) const
-{
-  return(
-    ( this->m_StartEdge == r.m_StartEdge ) &&
-    ( this->m_Iterator  == r.m_Iterator ) &&
-    ( this->m_OpType    == r.m_OpType ) &&
-    ( this->m_Start     == r.m_Start )
-    );
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-bool cpExtensions::DataStructures::QuadEdgeBaseIterator< E >::
-operator!=( Self& r )
-{
-  return( !( this->operator==( r ) ) );
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-bool cpExtensions::DataStructures::QuadEdgeBaseIterator< E >::
-operator!=( const Self& r ) const
-{
-  return( !( this->operator==( r ) ) );
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-typename cpExtensions::DataStructures::QuadEdgeBaseIterator< E >::
-Self& cpExtensions::DataStructures::QuadEdgeBaseIterator< E >::
-operator++( )
-{
-  if( this->m_Start )
-  {
-    this->_GoToNext( );
-    this->m_Start = !( this->m_Iterator == this->m_StartEdge );
-
-  } // fi
-  return( *this );
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-typename cpExtensions::DataStructures::QuadEdgeBaseIterator< E >::
-Self& cpExtensions::DataStructures::QuadEdgeBaseIterator< E >::
-operator++( int )
-{
-  if( this->m_Start )
-  {
-    this->_GoToNext( );
-    this->m_Start = !( this->m_Iterator == this->m_StartEdge );
-
-  } // fi
-  return( *this );
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-void cpExtensions::DataStructures::QuadEdgeBaseIterator< E >::
-_GoToNext( )
-{
-  switch( this->m_OpType )
-  {
-  case Self::OpOnext:
-    this->m_Iterator = this->m_Iterator->GetOnext( );
-    break;
-  case Self::OpLnext:
-    this->m_Iterator = this->m_Iterator->GetLnext( );
-    break;
-  case Self::OpRnext:
-    this->m_Iterator = this->m_Iterator->GetRnext( );
-    break;
-  case Self::OpDnext:
-    this->m_Iterator = this->m_Iterator->GetDnext( );
-    break;
-  case Self::OpOprev:
-    this->m_Iterator = this->m_Iterator->GetOprev( );
-    break;
-  case Self::OpLprev:
-    this->m_Iterator = this->m_Iterator->GetLprev( );
-    break;
-  case Self::OpRprev:
-    this->m_Iterator = this->m_Iterator->GetRprev( );
-    break;
-  case Self::OpDprev:
-    this->m_Iterator = this->m_Iterator->GetDprev( );
-    break;
-  default:
-    break;
-  } // hctiws
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-cpExtensions::DataStructures::QuadEdgeIterator< E >::
-QuadEdgeIterator( E* e, int op, bool start )
-  : Superclass( e, op, start )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-cpExtensions::DataStructures::QuadEdgeIterator< E >::
-~QuadEdgeIterator( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-E* cpExtensions::DataStructures::QuadEdgeIterator< E >::
-operator*( )
-{
-  return( this->m_Iterator );
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-cpExtensions::DataStructures::QuadEdgeConstIterator< E >::
-QuadEdgeConstIterator( const E* e, int op, bool start )
-  : Superclass( e, op, start )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-cpExtensions::DataStructures::QuadEdgeConstIterator< E >::
-~QuadEdgeConstIterator( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-const E* cpExtensions::DataStructures::QuadEdgeConstIterator< E >::
-operator*( ) const
-{
-  return( this->m_Iterator );
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-cpExtensions::DataStructures::QuadEdgePointIterator< E >::
-QuadEdgePointIterator( const E* e, int op, bool start )
-  : Superclass( e, op, start )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-cpExtensions::DataStructures::QuadEdgePointIterator< E >::
-~QuadEdgePointIterator( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-typename E::TPrimalGeometry&
-cpExtensions::DataStructures::QuadEdgePointIterator< E >::
-operator*( )
-{
-  return( this->m_Iterator->GetOrigin( ) );
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-cpExtensions::DataStructures::QuadEdgePointConstIterator< E >::
-QuadEdgePointConstIterator( const E* e, int op, bool start )
-  : Superclass( e, op, start )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-cpExtensions::DataStructures::QuadEdgePointConstIterator< E >::
-~QuadEdgePointConstIterator( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class E >
-const typename E::TPrimalGeometry&
-cpExtensions::DataStructures::QuadEdgePointConstIterator< E >::
-operator*( ) const
-{
-  return( this->m_Iterator->GetOrigin( ) );
-}
-
-#endif // __CPEXTENSIONS__DATASTRUCTURES__QUADEDGEITERATORS__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/DataStructures/QuadEdgeMesh.h b/lib/cpExtensions/DataStructures/QuadEdgeMesh.h
deleted file mode 100644 (file)
index 40cdf1f..0000000
+++ /dev/null
@@ -1,285 +0,0 @@
-#ifndef __CPEXTENSIONS__DATASTRUCTURES__QUADEDGEMESH__H__
-#define __CPEXTENSIONS__DATASTRUCTURES__QUADEDGEMESH__H__
-
-#include <set>
-#include <vector>
-
-#include <itkMesh.h>
-#include <cpExtensions/DataStructures/QuadEdgeCell.h>
-#include <cpExtensions/DataStructures/QuadEdge.h>
-
-namespace cpExtensions
-{
-  namespace DataStructures
-  {
-    /**
-     */
-    template< typename P, unsigned int D = 3, typename T = itk::DefaultStaticMeshTraits< P, D, D > >
-    class QuadEdgeMesh
-      : public itk::Mesh< P, D, T >
-    {
-    public:
-      typedef QuadEdgeMesh                    Self;
-      typedef itk::Mesh< P, D, T >            Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-      /// Types from superclass
-      typedef typename
-      Superclass::BoundaryAssignmentsContainer
-      BoundaryAssignmentsContainer;
-
-      typedef typename
-      Superclass::BoundaryAssignmentsContainerPointer
-      BoundaryAssignmentsContainerPointer;
-
-      typedef typename Superclass::BoundingBoxType       BoundingBoxType;
-      typedef typename Superclass::CellAutoPointer       CellAutoPointer;
-      typedef typename Superclass::CellsContainer        CellsContainer;
-      typedef typename Superclass::CellDataContainer     CellDataContainer;
-      typedef typename Superclass::CellFeatureCount      CellFeatureCount;
-      typedef typename Superclass::CellFeatureIdentifier CellFeatureIdentifier;
-      typedef typename Superclass::CellIdentifier        CellIdentifier;
-      typedef typename Superclass::CellLinksContainer    CellLinksContainer;
-      typedef typename Superclass::CellMultiVisitorType  CellMultiVisitorType;
-      typedef typename Superclass::CellPixelType         CellPixelType;
-      typedef typename Superclass::CellType              CellType;
-      typedef typename Superclass::PointIdentifier       PointIdentifier;
-      typedef typename Superclass::PointsContainer       PointsContainer;
-      typedef typename Superclass::PointType             PointType;
-
-      /// QuadEdge types (primal and dual)
-      typedef QuadEdge< PointIdentifier, CellIdentifier > TPrimalEdge;
-      typedef typename TPrimalEdge::TDual                 TDualEdge;
-      typedef QuadEdgeCell< CellType, TPrimalEdge >       TQuadEdgeCell;
-
-      /// Memory management objects
-      typedef std::set< typename TPrimalEdge::Pointer > CntPrimalEdges;
-      typedef std::set< typename TDualEdge::Pointer >   CntDualEdges;
-      typedef std::vector< TPrimalEdge* > CntOnextRings;
-
-      /// More geometry types
-      typedef typename PointType::VectorType      VectorType;
-      typedef typename VectorType::ValueType      TScalar;
-      typedef std::vector< VectorType >           CntNormals;
-      typedef typename CntNormals::const_iterator NormalsIterator;
-
-    protected:
-      typedef std::vector< TPrimalEdge* > _TEdges;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( QuadEdgeMesh, itkMesh );
-
-    public:
-      // Edge related methods
-      TPrimalEdge* FindEdge( const PointIdentifier& a ) const;
-      TPrimalEdge* FindEdge(
-        const PointIdentifier& a, const PointIdentifier& b
-        ) const;
-      TPrimalEdge* FindEntryEdge( const CellIdentifier& i ) const;
-
-      /// New geometric methods
-      const CntNormals& GetPointNormalsContainer( ) const;
-      NormalsIterator BeginPointNormals( ) const;
-      NormalsIterator EndPointNormals( ) const;
-      const VectorType& GetPointNormal( const PointIdentifier& id ) const;
-
-      /// itk::DataObject methods overloading
-      virtual bool RequestedRegionIsOutsideOfTheBufferedRegion( );
-
-      /// itk::PointSet methods overloading
-      virtual void SetPoints( PointsContainer* points );
-      virtual void SetPoint( PointIdentifier id , PointType point );
-
-      /// itk::Mesh methods overloading
-      virtual void PassStructure( Self* inputMesh )
-        {
-          std::cout << "PassStructure" << std::endl;
-          std::exit( 1 );
-        }
-
-      virtual void Initialize( );
-      virtual void Graft( const itk::DataObject* data );
-
-      void SetCellLinks( CellLinksContainer* cellLinks )
-        {
-          std::cout << "SetCellLinks" << std::endl;
-          std::exit( 1 );
-        }
-      virtual CellLinksContainer* GetCellLinks( )
-        {
-          std::cout << "GetCellLinks" << std::endl;
-          std::exit( 1 );
-        }
-      virtual const CellLinksContainer* GetCellLinks( ) const
-        {
-          std::cout << "GetCellLinks (const)" << std::endl;
-          std::exit( 1 );
-        }
-      virtual void SetCells( CellsContainer* cells );
-      virtual void SetCellData( CellDataContainer* data );
-      virtual CellDataContainer* GetCellData( )
-        {
-          std::cout << "GetCellData" << std::endl;
-          std::exit( 1 );
-        }
-      virtual const CellDataContainer* GetCellData( ) const
-        {
-          std::cout << "GetCellData (const)" << std::endl;
-          std::exit( 1 );
-        }
-
-#if !defined( CABLE_CONFIGURATION )
-      virtual void SetBoundaryAssignments(
-        int dimension, BoundaryAssignmentsContainer* container
-        )
-        {
-          std::cout << "SetBoundaryAssignments" << std::endl;
-          std::exit( 1 );
-        }
-      virtual BoundaryAssignmentsContainerPointer
-      GetBoundaryAssignments( int dimension )
-        {
-          std::cout << "GetBoundaryAssignments" << std::endl;
-          std::exit( 1 );
-        }
-      virtual const BoundaryAssignmentsContainerPointer
-      GetBoundaryAssignments( int dimension ) const
-        {
-          std::cout << "GetBoundaryAssignments (const)" << std::endl;
-          std::exit( 1 );
-        }
-#endif
-
-      virtual void SetCell( CellIdentifier id, CellAutoPointer& ptr );
-      virtual void SetCellData( CellIdentifier id, CellPixelType data );
-      virtual bool GetCellData( CellIdentifier id, CellPixelType* data ) const
-        {
-          std::cout << "GetCellData" << std::endl;
-          std::exit( 1 );
-        }
-      virtual void SetBoundaryAssignment(
-        int dimension, CellIdentifier cellId,
-        CellFeatureIdentifier featureId,
-        CellIdentifier boundaryId
-        )
-        {
-          std::cout << "SetBoundaryAssignment" << std::endl;
-          std::exit( 1 );
-        }
-      virtual bool GetBoundaryAssignment(
-        int dimension, CellIdentifier cellId,
-        CellFeatureIdentifier featureId,
-        CellIdentifier* boundaryId
-        ) const
-        {
-          std::cout << "GetBoundaryAssignment" << std::endl;
-          std::exit( 1 );
-        }
-      virtual bool RemoveBoundaryAssignment(
-        int dimension, CellIdentifier cellId,
-        CellFeatureIdentifier featureId
-        )
-        {
-          std::cout << "RemoveBoundaryAssignment" << std::endl;
-          std::exit( 1 );
-        }
-      virtual CellFeatureCount GetNumberOfCellBoundaryFeatures(
-        int dimension,
-        CellIdentifier id
-        ) const
-        {
-          std::cout << "GetNumberOfCellBoundaryFeatures" << std::endl;
-          std::exit( 1 );
-        }
-      virtual bool GetCellBoundaryFeature(
-        int dimension, CellIdentifier id,
-        CellFeatureIdentifier fid,
-        CellAutoPointer& ptr
-        ) const
-        {
-          std::cout << "GetCellBoundaryFeature" << std::endl;
-          std::exit( 1 );
-        }
-      virtual CellIdentifier GetCellBoundaryFeatureNeighbors(
-        int dimension,
-        CellIdentifier id,
-        CellFeatureIdentifier fid,
-        std::set< CellIdentifier >* cellSet )
-        {
-          std::cout << "GetCellBoundaryFeatureNeighbors" << std::endl;
-          std::exit( 1 );
-        }
-      virtual CellIdentifier GetCellNeighbors(
-        CellIdentifier cellId,
-        std::set< CellIdentifier >* cellSet
-        )
-        {
-          std::cout << "GetCellNeighbors" << std::endl;
-          std::exit( 1 );
-        }
-      virtual bool GetAssignedCellBoundaryIfOneExists(
-        int dimension, CellIdentifier id,
-        CellFeatureIdentifier fid,
-        CellAutoPointer& ptr
-        ) const
-        {
-          std::cout << "GetAssignedCellBoundaryIfOneExists" << std::endl;
-          std::exit( 1 );
-        }
-      virtual void BuildCellLinks( ) const;
-
-      virtual void Accept( CellMultiVisitorType* mv ) const
-        {
-          std::cout << "Accept" << std::endl;
-          std::exit( 1 );
-        }
-
-    protected:
-      QuadEdgeMesh( );
-      virtual ~QuadEdgeMesh( );
-
-      virtual void ReleaseCellsMemory( )
-        {
-          std::cout << "ReleaseCellsMemory" << std::endl;
-          std::exit( 1 );
-        }
-
-      inline bool _CheckPoints( const CellAutoPointer& ptr ) const;
-      inline void _DeletePoint( const PointIdentifier& pId );
-      inline TPrimalEdge* _CreateQuadEdge(
-        const PointIdentifier& a, const PointIdentifier& b
-        );
-      inline void _DeleteEdge( TPrimalEdge* edge );
-      inline void _DeleteFace( const CellIdentifier& f );
-      inline void _ConstructEdges(
-        _TEdges& edges, const CellAutoPointer& ptr
-        );
-      virtual VectorType _ComputePointNormal( const TPrimalEdge* e ) const;
-      inline void _ReleaseQuadEdgeObjects( );
-
-    private:
-      QuadEdgeMesh( const Self& );   // Not implemented
-      void operator=( const Self& ); // Not implemented
-
-    protected:
-      CntPrimalEdges m_PrimalEdges;
-      CntDualEdges   m_DualEdges;
-
-      CntOnextRings m_OnextRings;
-
-      CntNormals m_PointNormals;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-#include <cpExtensions/DataStructures/QuadEdgeMesh.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __CPEXTENSIONS__DATASTRUCTURES__QUADEDGEMESH__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/DataStructures/QuadEdgeMesh.hxx b/lib/cpExtensions/DataStructures/QuadEdgeMesh.hxx
deleted file mode 100644 (file)
index e4c5eff..0000000
+++ /dev/null
@@ -1,527 +0,0 @@
-#ifndef __CPEXTENSIONS__DATASTRUCTURES__QUADEDGEMESH__HXX__
-#define __CPEXTENSIONS__DATASTRUCTURES__QUADEDGEMESH__HXX__
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-typename cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-TPrimalEdge* cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-FindEdge( const PointIdentifier& a ) const
-{
-  if( a < this->m_OnextRings.size( ) )
-    return( this->m_OnextRings[ a ] );
-  else
-    return( NULL );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-typename cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-TPrimalEdge* cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-FindEdge( const PointIdentifier& a, const PointIdentifier& b ) const
-{
-  TPrimalEdge* found = NULL;
-  TPrimalEdge* e = this->FindEdge( a );
-  if( e != NULL )
-  {
-    typename TPrimalEdge::Iterator eIt = e->BeginOnext( );
-    for( ; eIt != e->EndOnext( ) && found == NULL; eIt++ )
-      if( ( *eIt )->GetDestination( ) == b )
-        found = *eIt;
-
-  } // fi
-  return( found );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-typename cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-TPrimalEdge* cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-FindEntryEdge( const CellIdentifier& i ) const
-{
-  if( i < this->GetNumberOfCells( ) )
-  {
-    CellAutoPointer c;
-    this->GetCell( i, c );
-
-    TQuadEdgeCell* ec = dynamic_cast< TQuadEdgeCell* >( c.GetPointer( ) );
-    if( ec != NULL )
-      return( ec->GetEntryPrimalEdge( ) );
-    else
-      return( NULL );
-  }
-  else
-    return( NULL );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-const typename cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-CntNormals& cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-GetPointNormalsContainer( ) const
-{
-  return( this->m_PointNormals );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-typename cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-NormalsIterator cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-BeginPointNormals( ) const
-{
-  return( this->m_PointNormals.begin( ) );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-typename cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-NormalsIterator cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-EndPointNormals( ) const
-{
-  return( this->m_PointNormals.end( ) );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-const typename cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-VectorType& cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-GetPointNormal( const PointIdentifier& id ) const
-{
-  static const VectorType zero( TScalar( 0 ) );
-  if( id < this->m_PointNormals.size( ) )
-    return( this->m_PointNormals[ id ] );
-  else
-    return( zero );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-bool cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-RequestedRegionIsOutsideOfTheBufferedRegion( )
-{
-  // Mesh regions don't have meaning with QuadEdges, this is important
-  // in order to guarantee correct pipeline execution
-  return( false );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-void cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-SetPoints( PointsContainer* points )
-{
-  this->_ReleaseQuadEdgeObjects( );
-  this->m_OnextRings.resize( points->Size( ), NULL );
-  this->m_PointNormals.resize(
-    points->Size( ), VectorType( TScalar( 0 ) )
-    );
-  this->Superclass::SetPoints( points );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-void cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-SetPoint( PointIdentifier id , PointType point )
-{
-  // If the point is brand new, add some non-existent edges and normals
-  unsigned long N = this->GetNumberOfPoints( );
-  N = ( N < id + 1 )? id + 1: N;
-  if( this->m_OnextRings.size( ) < N )
-  {
-    this->m_OnextRings.resize( N, NULL );
-    this->m_PointNormals.resize( N, VectorType( TScalar( 0 ) ) );
-
-  } // fi
-
-  // Ok pass it to itk
-  this->Superclass::SetPoint( id, point );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-void cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-Initialize( )
-{
-  this->Superclass::Initialize( );
-  this->_ReleaseQuadEdgeObjects( );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-void cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-Graft( const itk::DataObject* data )
-{
-  this->Superclass::Graft( data );
-  const Self* mesh = dynamic_cast< const Self* >( data );
-  if( mesh != NULL )
-  {
-    this->_ReleaseQuadEdgeObjects( );
-    this->m_PrimalEdges    = mesh->m_PrimalEdges;
-    this->m_DualEdges      = mesh->m_DualEdges;
-    this->m_OnextRings     = mesh->m_OnextRings;
-    this->m_PointNormals   = mesh->m_PointNormals;
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-void cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-SetCells( CellsContainer* cells )
-{
-  // Clear cells
-  if( this->GetCells( ) != NULL )
-    this->SetCells( CellsContainer::New( ) );
-  this->_ReleaseQuadEdgeObjects( );
-  this->m_OnextRings.resize( this->GetNumberOfPoints( ), NULL );
-
-  // Copy cells
-  if( cells != NULL )
-  {
-    for( unsigned long cId = 0; cId < cells->Size( ); ++cId )
-    {
-      CellAutoPointer cell( cells->GetElement( cId ), false );
-      this->SetCell( cId, cell );
-
-    } // rof
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-void cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-SetCellData( CellDataContainer* data )
-{
-  /* TODO
-     No need for CellData in initial application:
-     how should this be overridden?
-  */
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-void cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-SetCell( CellIdentifier id, CellAutoPointer& ptr )
-{
-  // Overwrite an existing cell?
-  if( id < this->GetNumberOfCells( ) )
-  {
-    itkExceptionMacro(
-      << "TODO: What do I do here? Trying to overwrite a cell!"
-      );
-
-  } // fi
-
-  // Do not allow to add vertices or edges as cells for the sake of
-  // correct mesh construction
-  if( ptr->GetNumberOfPoints( ) < 3 )
-  {
-    itkExceptionMacro(
-      << "Face have less than 3 points ("
-      << ptr->GetNumberOfPoints( )
-      << ")"
-      );
-
-  } // fi
-
-  // Fill up geometrical prerrequisites
-  if( !( this->_CheckPoints( ptr ) ) )
-  {
-    itkExceptionMacro( << "Points missing in the mesh" );
-
-  } // fi
-
-  // Get (or create) individual edges
-  _TEdges edges;
-  this->_ConstructEdges( edges, ptr );
-
-  // Configure new face's geometry
-  edges[ 0 ]->SetLnextRingGeometry( id );
-
-  // Update normals
-  typename _TEdges::const_iterator eIt = edges.begin( );
-  for( ; eIt != edges.end( ); ++eIt )
-    this->m_PointNormals[ ( *eIt )->GetOrigin( ) ] =
-      this->_ComputePointNormal( *eIt );
-
-  // Save cell
-  TQuadEdgeCell* qcell = new TQuadEdgeCell( edges[ 0 ] );
-  CellAutoPointer cell;
-  cell.TakeOwnership( qcell );
-  this->Superclass::SetCell( id, cell );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-void cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-SetCellData( CellIdentifier id, CellPixelType data )
-{
-  /* TODO
-     No need for CellData in initial application:
-     how should this be overridden?
-  */
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-void cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-BuildCellLinks( ) const
-{
-  // This is no longer required when using QuadEdges
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-QuadEdgeMesh( )
-  : Superclass( )
-{
-  this->_ReleaseQuadEdgeObjects( );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-~QuadEdgeMesh( )
-{
-  this->_ReleaseQuadEdgeObjects( );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-bool cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-_CheckPoints( const CellAutoPointer& ptr ) const
-{
-  const typename Superclass::PointsContainer* pnts = this->GetPoints( );
-
-  bool all_exist = true;
-  typename CellType::PointIdConstIterator pIt = ptr->PointIdsBegin( );
-  for( ; pIt != ptr->PointIdsEnd( ) && all_exist; ++pIt )
-    all_exist &= pnts->IndexExists( *pIt );
-  return( all_exist );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-void cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-_DeletePoint( const PointIdentifier& pId )
-{
-  PointIdentifier lastId = this->GetNumberOfPoints( ) - 1;
-  if( lastId < pId )
-    return;
-
-  // Modify point container
-  PointType to_delete = this->GetPoint( pId );
-  PointType last = this->GetPoint( lastId );
-  this->Superclass::SetPoint( pId, last );
-
-  // Modify Onext ring and normals containers
-  this->m_OnextRings[ pId ] = this->m_OnextRings[ lastId ];
-  this->m_PointNormals[ pId ] = this->m_PointNormals[ lastId ];
-  this->m_OnextRings.pop_back( );
-  this->m_PointNormals.pop_back( );
-
-  // Update origins
-  typename TPrimalEdge::Iterator oIt =
-    this->m_OnextRings[ pId ]->BeginOnext( );
-  for( ; oIt != this->m_OnextRings[ pId ]->EndOnext( ); ++oIt )
-    ( *oIt )->SetOrigin( pId );
-
-  // Erase the point
-  this->GetPoints( )->CastToSTLContainer( ).pop_back( );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-typename cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-TPrimalEdge* cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-_CreateQuadEdge( const PointIdentifier& a, const PointIdentifier& b )
-{
-  // Create brand new object
-  typename TPrimalEdge::Pointer edge = TPrimalEdge::New( );
-  edge->CreateRings( );
-
-  // Configure geometry
-  edge->SetOrigin( a );
-  edge->SetDestination( b );
-
-  // Keep trace of all reserved memory
-  this->m_PrimalEdges.insert( edge );
-  this->m_PrimalEdges.insert( edge->GetSym( ) );
-  this->m_DualEdges.insert( edge->GetRot( ) );
-  this->m_DualEdges.insert( edge->GetInvRot( ) );
-
-  return( edge );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-void cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-_DeleteEdge( TPrimalEdge* edge )
-{
-  this->m_DualEdges.erase( edge->GetInvRot( ) );
-  this->m_PrimalEdges.erase( edge->GetSym( ) );
-  this->m_DualEdges.erase( edge->GetRot( ) );
-  this->m_PrimalEdges.erase( edge );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-void cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-_DeleteFace( const CellIdentifier& f )
-{
-  unsigned long cellId = this->GetNumberOfCells( ) - 1;
-  if( cellId < f )
-    return;
-
-  // Exchange desired face with last one
-  CellAutoPointer to_delete, last;
-  this->GetCell( f, to_delete );
-  this->GetCell( cellId, last );
-  this->Superclass::SetCell( f, last );
-  this->Superclass::SetCell( cellId, to_delete );
-
-  // This will delete cell's memory when to_delete is no longer used
-  to_delete.TakeOwnership( );
-
-  // Squeeze container
-  this->GetCells( )->CastToSTLContainer( ).pop_back( );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-void cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-_ConstructEdges( _TEdges& edges, const CellAutoPointer& ptr )
-{
-  edges.clear( );
-  typename CellType::PointIdConstIterator pIt = ptr->PointIdsBegin( );
-  for( pIt = ptr->PointIdsBegin( ); pIt != ptr->PointIdsEnd( ); ++pIt )
-  {
-    typename CellType::PointIdConstIterator nIt = pIt;
-    ++nIt;
-    if( nIt == ptr->PointIdsEnd( ) )
-      nIt = ptr->PointIdsBegin( );
-
-    TPrimalEdge* edge = this->FindEdge( *pIt, *nIt );
-    if( edge == NULL )
-    {
-      edge = this->_CreateQuadEdge( *pIt, *nIt );
-      if( this->m_OnextRings[ *pIt ] != NULL )
-      {
-        if( this->m_OnextRings[ *pIt ]->IsOriginInternal( ) )
-        {
-          itkExceptionMacro(
-            << "Edge ["
-            << *pIt << ", " << *nIt << "] is already internal."
-            );
-
-        } // fi
-
-        // Put edge in Onext ring
-        typename TPrimalEdge::Iterator eIt =
-          this->m_OnextRings[ *pIt ]->BeginOnext( );
-        while( eIt != this->m_OnextRings[ *pIt ]->EndOnext( ) )
-        {
-          if( !( ( *eIt )->IsLeftSet( ) ) )
-          {
-            TPrimalEdge::Splice( *eIt, edge );
-            eIt = this->m_OnextRings[ *pIt ]->EndOnext( );
-          }
-          else
-            ++eIt;
-
-        } // elihw
-      }
-      else
-        this->m_OnextRings[ *pIt ] = edge;
-    }
-    else
-    {
-      if( edge->IsLeftSet( ) )
-      {
-        itkExceptionMacro(
-          << "Edge ["
-          << edge->GetOrigin( ) << ", "
-          << edge->GetDestination( ) << "] already have a left face ("
-          << edge->GetLeft( )
-          << "). Face already exits (at least in part)."
-          );
-
-      } // fi
-
-    } // fi
-    edges.push_back( edge );
-
-  } // rof
-
-  // Reorder Onext rings
-  typename _TEdges::iterator ecIt;
-  for( ecIt = edges.begin( ); ecIt != edges.end( ); ++ecIt )
-  {
-    TPrimalEdge* e = *ecIt;
-    TPrimalEdge* eOprev;
-    if( ecIt != edges.begin( ) )
-    {
-      typename _TEdges::iterator eOprevIt = ecIt;
-      --eOprevIt;
-      eOprev = ( *eOprevIt )->GetSym( );
-    }
-    else
-      eOprev = edges.back( )->GetSym( );
-    TPrimalEdge::ReorderOnextRing( e, eOprev );
-
-  } // rof
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-typename cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-VectorType cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-_ComputePointNormal( const TPrimalEdge* e ) const
-{
-  VectorType n( TScalar( 0 ) );
-  if( Superclass::PointDimension == 3 )
-  {
-    PointType p0 = this->GetPoint( e->GetOrigin( ) );
-    typename TPrimalEdge::ConstIterator eIt = e->BeginOnext( );
-    unsigned int count = 0;
-    for( ; eIt != e->EndOnext( ); eIt++ )
-    {
-      if( ( *eIt )->IsLeftSet( ) )
-      {
-        typename TPrimalEdge::ConstIterator nIt = eIt;
-        nIt++;
-        if( nIt == e->EndOnext( ) )
-          nIt = e->BeginOnext( );
-
-        VectorType pe = this->GetPoint( ( *eIt )->GetDestination( ) ) - p0;
-        VectorType pn = this->GetPoint( ( *nIt )->GetDestination( ) ) - p0;
-        n[ 0 ] += ( pe[ 1 ] * pn[ 2 ] ) - ( pe[ 2 ] * pn[ 1 ] );
-        n[ 1 ] += ( pe[ 2 ] * pn[ 0 ] ) - ( pe[ 0 ] * pn[ 2 ] );
-        n[ 2 ] += ( pe[ 0 ] * pn[ 1 ] ) - ( pe[ 1 ] * pn[ 0 ] );
-        count++;
-
-      } // fi
-
-    } // rof
-    TScalar nn = n.GetNorm( );
-    if( nn > TScalar( 0 ) && count > 0 )
-      n /= nn * TScalar( count );
-
-  } // fi
-  return( n );
-}
-
-// -------------------------------------------------------------------------
-template< typename P, unsigned int D, typename T >
-void cpExtensions::DataStructures::QuadEdgeMesh< P, D, T >::
-_ReleaseQuadEdgeObjects( )
-{
-  this->m_PrimalEdges.clear( );
-  this->m_OnextRings.clear( );
-  this->m_DualEdges.clear( );
-  this->m_PointNormals.clear( );
-}
-
-#endif // __CPEXTENSIONS__DATASTRUCTURES__QUADEDGEMESH__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/DataStructures/VectorValuesContainer.h b/lib/cpExtensions/DataStructures/VectorValuesContainer.h
deleted file mode 100644 (file)
index eea4e40..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-#ifndef __CPEXTENSIONS__DATASTRUCTURES__VECTORVALUESCONTAINER__H__
-#define __CPEXTENSIONS__DATASTRUCTURES__VECTORVALUESCONTAINER__H__
-
-#include <vector>
-#include <itkSimpleDataObjectDecorator.h>
-#include <itkSmartPointer.h>
-
-namespace cpExtensions
-{
-  namespace DataStructures
-  {
-    /**
-     */
-    template< class T >
-    class VectorValuesContainer
-      : public itk::SimpleDataObjectDecorator< std::vector< T > >
-    {
-    public:
-      typedef std::vector< T >                             TDecorated;
-      typedef VectorValuesContainer                        Self;
-      typedef itk::SimpleDataObjectDecorator< TDecorated > Superclass;
-      typedef itk::SmartPointer< Self >                    Pointer;
-      typedef itk::SmartPointer< const Self >              ConstPointer;
-
-      typedef T TValue;
-      typedef typename TDecorated::iterator          Iterator;
-      typedef typename TDecorated::const_iterator    ConstIterator;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( VectorValuesContainer, itkSimpleDataObjectDecorator );
-
-    public:
-      void PushBack( const T& v )
-        { this->Get( ).push_back( v ); this->Modified( ); }
-      void PopBack( const T& v )
-        { this->Get( ).pop_back( ); this->Modified( ); }
-      Iterator Begin( )
-        { return( this->Get( ).begin( ) ); }
-      Iterator End( )
-        { return( this->Get( ).end( ) ); }
-      ConstIterator Begin( ) const
-        { return( this->Get( ).begin( ) ); }
-      ConstIterator End( ) const
-        { return( this->Get( ).end( ) ); }
-
-    protected:
-      VectorValuesContainer( )
-        : Superclass( )
-        { }
-      virtual ~VectorValuesContainer( )
-        { }
-
-    private:
-      // Purposely not implemented
-      VectorValuesContainer( const Self& other );
-      Self& operator=( const Self& other );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPEXTENSIONS__DATASTRUCTURES__VECTORVALUESCONTAINER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/IO/MementoState.cxx b/lib/cpExtensions/IO/MementoState.cxx
deleted file mode 100644 (file)
index e0dd049..0000000
+++ /dev/null
@@ -1,146 +0,0 @@
-#include <cpExtensions/IO/MementoState.h>
-
-
-#include <vtkMetaImageReader.h>
-#include <vtkMetaImageWriter.h>
-#include <future>
-
-
-
-
-
-// -------------------------------------------------------------------------
-cpExtensions::IO::MementoState::MementoState()
-{
-  m_maxId = m_Id = 0;
-  m_stateIt = m_stateReady.begin();
-};
-
-// -------------------------------------------------------------------------
-bool
-cpExtensions::IO::MementoState::SetToMemento(cpPlugins::Interface::Image* _img)
-{
-  char base[] = "state";
-  std::ostringstream oss;
-  this->m_Id;
-  oss << this->m_Id;
-  std::string str = oss.str();
-  auto complement = str.c_str();
-
-  std::string fileName(base);
-  fileName.append(complement);
-  fileName.append(".mhd");
-
-  std::string fileNameRaw(base);
-  fileNameRaw.append(complement);
-  fileNameRaw.append(".raw");
-  //save(fileName, fileNameRaw, _img);
-  m_stateReady.insert(m_stateReady.begin() + m_Id, false);
-  std::async(std::launch::async, &MementoState::Save, this, fileName, fileNameRaw, _img);
-
-  m_stateReady[m_Id] = true;
-  m_Id++;
-
-  if (m_Id > m_maxId)
-  {
-    m_maxId = m_Id;
-  }
-
-  return true;
-}
-
-
-// -------------------------------------------------------------------------
-vtkSmartPointer<vtkImageData>
-cpExtensions::IO::MementoState::GetFromMemento(long id)
-{
-  if (id > m_maxId)
-  {
-    return nullptr;
-  }
-
-  char base[] = "state";
-  std::ostringstream oss;
-  oss << id;
-  std::string str = oss.str();
-  auto complement = str.c_str();
-
-  std::string fileName(base);
-  fileName.append(complement);
-  fileName.append(".mhd");
-  return Load(fileName);
-  /*std::future<vtkSmartPointer<vtkImageData>> result(std::async(std::launch::async, &MementoState::Load, this, fileName));
-  return result.get();*/
-}
-
-// -------------------------------------------------------------------------
-vtkSmartPointer<vtkImageData>
-cpExtensions::IO::MementoState::MementoUndo()
-{
-  char base[] = "state";
-  std::ostringstream oss;
-  oss << --this->m_Id;
-  std::string str = oss.str();
-  auto complement = str.c_str();
-
-  std::string fileName(base);
-  fileName.append(complement);
-  fileName.append(".mhd");
-
-  if (m_stateReady.at(this->m_Id))
-  {
-    return Load(fileName);
-  }
-
-  return nullptr;
-}
-
-
-vtkSmartPointer<vtkImageData>
-cpExtensions::IO::MementoState::MementoRedo()
-{
-  char base[] = "state";
-  std::ostringstream oss;
-  oss << ++this->m_Id;
-  std::string str = oss.str();
-  auto complement = str.c_str();
-
-  std::string fileName(base);
-  fileName.append(complement);
-  fileName.append(".mhd");
-
-  if (m_stateReady.at(this->m_Id) &&
-    this->m_Id <= this->m_maxId)
-  {
-    return Load(fileName);
-  }
-  return nullptr;
-}
-
-// -------------------------------------------------------------------------
-void
-cpExtensions::IO::MementoState::
-Save(const std::string& filename, const std::string& filenameRaw, cpPlugins::Interface::Image* img) {
-
-  vtkSmartPointer<vtkMetaImageWriter> writer =
-    vtkSmartPointer<vtkMetaImageWriter>::New();
-  writer->SetInputData(img->GetVTK< vtkImageData >());
-  writer->SetFileName(filename.c_str());
-  writer->SetRAWFileName(filenameRaw.c_str());
-  writer->Write();
-}
-
-// -------------------------------------------------------------------------
-vtkSmartPointer<vtkImageData>
-cpExtensions::IO::MementoState::Load(const std::string& filename) {
-
-  vtkSmartPointer<vtkMetaImageReader> reader =
-    vtkSmartPointer<vtkMetaImageReader>::New();
-  reader->SetFileName(filename.c_str());
-
-  reader->Update();
-  return reader->GetOutput();
-
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/IO/MementoState.h b/lib/cpExtensions/IO/MementoState.h
deleted file mode 100644 (file)
index 2116f36..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-#ifndef __CPEXTENSIONS__IO__MEMENTOSTATE__H__
-#define __CPEXTENSIONS__IO__MEMENTOSTATE__H__
-
-#include <cpExtensions/cpExtensions_Export.h>
-
-
-#include <vector>
-
-
-// vtk stuff
-#include <vtkSmartPointer.h>
-#include <cpExtensions/Visualization/MPRObjects.h>
-
-// Plugins interface
-#include <cpPlugins/Interface/Interface.h>
-#include <cpPlugins/Interface/ProcessObject.h>
-#include <cpPlugins/Interface/Image.h>
-#include <cpPlugins/Interface/ImplicitFunction.h>
-#include <cpPlugins/Interface/Mesh.h>
-
-#include <vtkMetaImageReader.h>
-#include <vtkCommand.h>
-
-namespace cpExtensions
-{
-  namespace IO
-  {
-    class cpExtensions_EXPORT MementoState
-    {
-    private:
-      long m_Id;
-      long m_maxId;
-      std::vector<bool> m_stateReady;
-      std::vector<bool>::iterator m_stateIt;
-    public:
-
-      MementoState();
-      bool SetToMemento(cpPlugins::Interface::Image* _img);
-      vtkSmartPointer<vtkImageData> MementoUndo();
-      vtkSmartPointer<vtkImageData> MementoRedo();
-      vtkSmartPointer<vtkImageData> GetFromMemento(long id);
-    private:
-      void Save(const std::string& filename, const std::string& filenameRaw, cpPlugins::Interface::Image* img);
-      vtkSmartPointer<vtkImageData> Load(const std::string& filename);
-
-    };
-  }
-}
-//==========================================================================
-
-// -------------------------------------------------------------------------
-/**
- */
-
-
-
-
-
-#endif // __CPEXTENSIONS__IO__MEMENTOSTATE__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/IO/MeshReader.h b/lib/cpExtensions/IO/MeshReader.h
deleted file mode 100644 (file)
index af16293..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-#ifndef __CPEXTENSIONS__IO__MESHREADER__H__
-#define __CPEXTENSIONS__IO__MESHREADER__H__
-
-#include <string>
-#include <itkMeshSource.h>
-
-namespace cpExtensions
-{
-  namespace IO
-  {
-    /**
-     */
-    template< typename M >
-    class MeshReader
-      : public itk::MeshSource< M >
-    {
-    public:
-      typedef MeshReader                      Self;
-      typedef itk::MeshSource< M >            Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-      typedef M MeshType;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( MeshReader, itkMeshSource );
-
-      itkSetStringMacro( FileName );
-      itkGetStringMacro( FileName );
-
-    public:
-      virtual itk::ModifiedTimeType GetMTime( ) const;
-
-    protected:
-      MeshReader( );
-      virtual ~MeshReader( );
-
-      virtual void GenerateData( );
-
-      template< class R >
-      void _Read( );
-
-    private:
-      // Purposely not implemented
-      MeshReader( const Self& );
-      Self& operator=( const Self & );
-
-    protected:
-      typename Superclass::Pointer m_Reader;
-      std::string m_FileName;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-#include <cpExtensions/IO/MeshReader.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __CPEXTENSIONS__IO__MESHREADER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/IO/MeshReader.hxx b/lib/cpExtensions/IO/MeshReader.hxx
deleted file mode 100644 (file)
index 8146e6e..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-#ifndef __CPEXTENSIONS__IO__MESHREADER__HXX__
-#define __CPEXTENSIONS__IO__MESHREADER__HXX__
-
-#include <algorithm>
-#include <cpExtensions/IO/WaveFrontOBJReader.h>
-#include <itkVTKPolyDataReader.h>
-
-// -------------------------------------------------------------------------
-template< typename M >
-itk::ModifiedTimeType cpExtensions::IO::MeshReader< M >::
-GetMTime( ) const
-{
-  itk::ModifiedTimeType mtime = this->Superclass::GetMTime( );
-  if( this->m_Reader.IsNotNull( ) )
-  {
-    itk::ModifiedTimeType rtime = this->m_Reader->GetMTime( );
-    mtime = ( rtime < mtime )? rtime: mtime;
-
-  } // fi
-  return( mtime );
-}
-
-// -------------------------------------------------------------------------
-template< typename M >
-cpExtensions::IO::MeshReader< M >::
-MeshReader( )
-  : Superclass( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< typename M >
-cpExtensions::IO::MeshReader< M >::
-~MeshReader( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< typename M >
-void cpExtensions::IO::MeshReader< M >::
-GenerateData( )
-{
-  std::string fn = this->m_FileName;
-  std::transform( fn.begin( ), fn.end( ), fn.begin( ), ::tolower );
-  if( fn.rfind( ".vtk" ) != std::string::npos )
-    this->_Read< itk::VTKPolyDataReader< M > >( );
-  else if( fn.rfind( ".obj" ) != std::string::npos )
-    this->_Read< cpExtensions::IO::WaveFrontOBJReader< M > >( );
-}
-
-// -------------------------------------------------------------------------
-template< typename M >
-template< class R >
-void cpExtensions::IO::MeshReader< M >::
-_Read( )
-{
-  typename R::Pointer reader = NULL;
-  if( this->m_Reader.IsNotNull( ) )
-  {
-    reader = dynamic_cast< R* >( this->m_Reader.GetPointer( ) );
-    if( reader.IsNotNull( ) )
-    {
-      if( reader->GetFileName( ) == this->m_FileName )
-        reader = NULL;
-    }
-    else
-    {
-      reader = R::New( );
-      this->m_Reader = reader;
-
-    } // fi
-  }
-  else
-  {
-    reader = R::New( );
-    this->m_Reader = reader;
-
-  } // fi
-
-  if( reader.IsNotNull( ) )
-  {
-    reader->SetFileName( this->m_FileName );
-    reader->GraftOutput( this->GetOutput( ) );
-    reader->Update( );
-    this->GraftOutput( reader->GetOutput( ) );
-
-  } // fi
-}
-
-#endif // __CPEXTENSIONS__IO__MESHREADER__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/IO/WaveFrontOBJReader.h b/lib/cpExtensions/IO/WaveFrontOBJReader.h
deleted file mode 100644 (file)
index 4cd7446..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-#ifndef __CPEXTENSIONS__IO__WAVEFRONTOBJREADER__H__
-#define __CPEXTENSIONS__IO__WAVEFRONTOBJREADER__H__
-
-#include <string>
-#include <itkIntTypes.h>
-#include <itkMesh.h>
-#include <itkMeshSource.h>
-#include <itkPolygonCell.h>
-
-namespace cpExtensions
-{
-  namespace IO
-  {
-    /**
-     * \class WaveFrontOBJReader
-     * \brief
-     * Reads a wavefront OBJ file and create an itkMesh.
-     *
-     * Caveat1: itkWaveFrontOBJReader will read only vertices and faces.
-     *          Normal, parameters and textures vectors are ignored.
-     *
-     */
-    template< typename M >
-    class WaveFrontOBJReader
-      : public itk::MeshSource< M >
-    {
-    public:
-      typedef WaveFrontOBJReader              Self;
-      typedef itk::MeshSource< M >            Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-      typedef M                                    MeshType;
-      typedef typename M::MeshTraits               MeshTraits;
-      typedef typename M::PointType                PointType;
-      typedef typename MeshTraits::PixelType       PixelType;
-      typedef typename M::Pointer                  MeshPointer;
-      typedef typename M::CellTraits               CellTraits;
-      typedef typename M::CellIdentifier           CellIdentifier;
-      typedef typename M::CellType                 CellType;
-      typedef typename M::CellAutoPointer          CellAutoPointer;
-      typedef typename M::PointIdentifier          PointIdentifier;
-      typedef typename CellTraits::PointIdIterator PointIdIterator;
-      typedef typename M::PointsContainerPointer   PointsContainerPointer;
-      typedef typename M::PointsContainer          PointsContainer;
-
-      typedef itk::PolygonCell< CellType > TPolygonCell;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( WaveFrontOBJReader, itkMeshSource );
-
-      itkSetStringMacro( FileName );
-      itkGetStringMacro( FileName );
-
-    protected:
-      WaveFrontOBJReader( );
-      virtual ~WaveFrontOBJReader( );
-
-      virtual void GenerateData( );
-
-    private:
-      // Purposely not implemented
-      WaveFrontOBJReader( const Self& );
-      Self& operator=( const Self & );
-
-    protected:
-      std::string m_FileName;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-#include <cpExtensions/IO/WaveFrontOBJReader.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __CPEXTENSIONS__IO__WAVEFRONTOBJREADER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/IO/WaveFrontOBJReader.hxx b/lib/cpExtensions/IO/WaveFrontOBJReader.hxx
deleted file mode 100644 (file)
index 355f779..0000000
+++ /dev/null
@@ -1,123 +0,0 @@
-#ifndef __CPEXTENSIONS__IO__WAVEFRONTOBJREADER__HXX__
-#define __CPEXTENSIONS__IO__WAVEFRONTOBJREADER__HXX__
-
-#include <cstdlib>
-#include <fstream>
-#include <sstream>
-
-// -------------------------------------------------------------------------
-template< typename M >
-cpExtensions::IO::WaveFrontOBJReader< M >::
-WaveFrontOBJReader( )
-  : Superclass( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< typename M >
-cpExtensions::IO::WaveFrontOBJReader< M >::
-~WaveFrontOBJReader( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< typename M >
-void cpExtensions::IO::WaveFrontOBJReader< M >::
-GenerateData( )
-{
-  typedef typename PointType::ValueType TScalar;
-  typename M::Pointer out = this->GetOutput( );
-
-  out->SetCellsAllocationMethod( M::CellsAllocatedDynamicallyCellByCell );
-  if( this->m_FileName == "" )
-  {
-    itkExceptionMacro( << "No input FileName" );
-
-  } // fi
-
-  std::ifstream in( this->m_FileName.c_str( ) );
-  if( !in.is_open( ) )
-  {
-    itkExceptionMacro(
-      << "Unable to open file" << std::endl
-      << "\"" << m_FileName << "\""
-      );
-
-  } // fi
-
-  in.imbue( std::locale::classic( ) );
-  std::string buffer;
-
-  while( !in.eof( ) )
-  {
-    std::getline( in, buffer, '\n' );
-
-    // Tokenize
-    std::stringstream ss( buffer );
-    std::istream_iterator< std::string > it( ss );
-    std::istream_iterator< std::string > end;
-    std::vector< std::string > line( it, end );
-    if( line.size( ) == 0 )
-      continue;
-
-    // Now, we are talking...
-    if( line[ 0 ] == "v" || line[ 0 ] == "V" )
-    {
-      // Add points
-      PointType pnt;
-      pnt.Fill( TScalar( 0 ) );
-
-      if( line.size( ) > 1 && M::PointDimension >= 1 )
-        pnt[ 0 ] = TScalar( std::atof( line[ 1 ].c_str( ) ) );
-      if( line.size( ) > 2 && M::PointDimension >= 2 )
-        pnt[ 1 ] = TScalar( std::atof( line[ 2 ].c_str( ) ) );
-      if( line.size( ) > 3 && M::PointDimension >= 3 )
-        pnt[ 2 ] = TScalar( std::atof( line[ 3 ].c_str( ) ) );
-      if( M::PointDimension >= 4 )
-      {
-        if( line.size( ) > 4 )
-          pnt[ 3 ] = TScalar( std::atof( line[ 4 ].c_str( ) ) );
-        else
-          pnt[ 4 ] = TScalar( 1 );
-
-      } // fi
-      out->SetPoint( out->GetNumberOfPoints( ), pnt );
-    }
-    else if( line[ 0 ] == "f" || line[ 0 ] == "F" )
-    {
-      if( line.size( ) > 3 )
-      {
-        // Add a face
-        CellAutoPointer cell;
-        TPolygonCell* face = new TPolygonCell( );
-
-        for( unsigned int k = 1; k < line.size( ); ++k )
-        {
-          PointIdentifier pId =
-            PointIdentifier(
-              std::atoi(
-                line[ k ].
-                substr( 0, line[ k ].find_first_of( "/" ) ).c_str( )
-                )
-              );
-
-          // In OBJ files, vertices are numbered from 1
-          face->AddPointId( pId - 1 );
-
-        } // rof
-        cell.TakeOwnership( face );
-        out->SetCell( out->GetNumberOfCells( ), cell );
-
-      } // fi
-
-    } // fi
-
-  } // elihw
-
-  // Finish the job
-  in.close( );
-}
-
-#endif // __CPEXTENSIONS__IO__WAVEFRONTOBJREADER__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Interaction/BaseInteractorStyle.cxx b/lib/cpExtensions/Interaction/BaseInteractorStyle.cxx
deleted file mode 100644 (file)
index 6c0ebbe..0000000
+++ /dev/null
@@ -1,568 +0,0 @@
-#include <cpExtensions/Interaction/BaseInteractorStyle.h>
-
-#include <cmath>
-
-#include <vtkCallbackCommand.h>
-#include <vtkCamera.h>
-#include <vtkRenderer.h>
-#include <vtkRenderWindowInteractor.h>
-
-// -------------------------------------------------------------------------
-long cpExtensions::Interaction::BaseInteractorStyle::_TMouseButtonEvent::
-MaxDoubleClick = 350; // ms
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::BaseInteractorStyle::
-SetSetDoubleClickDelay( long delay )
-{
-  Self::_TMouseButtonEvent::MaxDoubleClick = delay;
-}
-
-// -------------------------------------------------------------------------
-vtkObject* cpExtensions::Interaction::BaseInteractorStyle::
-GetAssociatedObject( )
-{
-  return( this->m_AssociatedObject );
-}
-
-// -------------------------------------------------------------------------
-const vtkObject* cpExtensions::Interaction::BaseInteractorStyle::
-GetAssociatedObject( ) const
-{
-  return( this->m_AssociatedObject );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::BaseInteractorStyle::
-SetAssociatedObject( vtkObject* obj )
-{
-  if( this->m_AssociatedObject != obj )
-  {
-    this->m_AssociatedObject = obj;
-    this->Modified( );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::BaseInteractorStyle::
-DelegateTDxEvent( unsigned long event, void* calldata )
-{
-  // TODO
-  std::cerr << "No TDx support at this time!" << std::endl;
-  std::exit( 1 );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::BaseInteractorStyle::
-OnMouseMove( )
-{
-  // Get current position on the associated actors
-  vtkRenderWindowInteractor* rwi = this->GetInteractor( );
-  if( rwi == NULL )
-    return;
-
-  // Get modifiers
-  bool alt = ( rwi->GetAltKey( ) == 1 );
-  bool ctr = ( rwi->GetControlKey( ) == 1 );
-  bool sft = ( rwi->GetShiftKey( ) == 1 );
-  ButtonID button = this->GetButtonID( );
-
-  // Invoke possible generic events
-  if( button == Self::ButtonID_Right )
-  {
-    if( !alt && !ctr && !sft )
-    {
-      this->FindPokedRenderer(
-        rwi->GetEventPosition( )[ 0 ],
-        rwi->GetEventPosition( )[ 1 ]
-        );
-      this->Dolly( );
-
-    } // fi
-  }
-  else if( button == Self::ButtonID_Middle )
-  {
-    if( !alt && !ctr && !sft )
-    {
-      this->FindPokedRenderer(
-        rwi->GetEventPosition( )[ 0 ],
-        rwi->GetEventPosition( )[ 1 ]
-        );
-      this->Pan( );
-
-    } // fi
-
-  } // fi
-
-  // Get mouse pointer position
-  static int idx[ 2 ];
-  static double pos[ 3 ];
-  if( !( this->_PickPosition( idx, pos ) ) )
-    return;
-
-  // Invoke possible specialized events
-  auto i = this->m_MouseMoveCommands.begin( );
-  for( ; i != this->m_MouseMoveCommands.end( ); ++i )
-    i->first( i->second, button, idx, pos, alt, ctr, sft );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::BaseInteractorStyle::
-OnMouseWheelForward( )
-{
-  vtkRenderWindowInteractor* rwi = this->GetInteractor( );
-  if( rwi == NULL )
-    return;
-
-  // Invoke possible events
-  auto i = this->m_MouseWheelCommands.begin( );
-  for( ; i != this->m_MouseWheelCommands.end( ); ++i )
-    i->first(
-      i->second, 1,
-      rwi->GetAltKey( ) == 1,
-      rwi->GetControlKey( ) == 1,
-      rwi->GetShiftKey( ) == 1
-      );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::BaseInteractorStyle::
-OnMouseWheelBackward( )
-{
-  vtkRenderWindowInteractor* rwi = this->GetInteractor( );
-  if( rwi == NULL )
-    return;
-
-  // Invoke possible events
-  auto i = this->m_MouseWheelCommands.begin( );
-  for( ; i != this->m_MouseWheelCommands.end( ); ++i )
-    i->first(
-      i->second, -1,
-      rwi->GetAltKey( ) == 1,
-      rwi->GetControlKey( ) == 1,
-      rwi->GetShiftKey( ) == 1
-      );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::BaseInteractorStyle::
-OnLeftButtonDown( )
-{
-  this->m_ActiveButton = Self::ButtonID_Left;
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::BaseInteractorStyle::
-OnLeftButtonUp( )
-{
-  this->m_ActiveButton = Self::ButtonID_None;
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::BaseInteractorStyle::
-OnMiddleButtonDown( )
-{
-  this->m_ActiveButton = Self::ButtonID_Middle;
-
-  // Get current position on the associated actors
-  vtkRenderWindowInteractor* rwi = this->GetInteractor( );
-  if( rwi == NULL )
-    return;
-
-  // Get modifiers
-  bool alt = ( rwi->GetAltKey( ) == 1 );
-  bool ctr = ( rwi->GetControlKey( ) == 1 );
-  bool sft = ( rwi->GetShiftKey( ) == 1 );
-
-  if( !alt && !ctr && !sft )
-    this->StartPan( );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::BaseInteractorStyle::
-OnMiddleButtonUp( )
-{
-  this->m_ActiveButton = Self::ButtonID_None;
-
-  // Get current position on the associated actors
-  vtkRenderWindowInteractor* rwi = this->GetInteractor( );
-  if( rwi == NULL )
-    return;
-
-  // Get modifiers
-  bool alt = ( rwi->GetAltKey( ) == 1 );
-  bool ctr = ( rwi->GetControlKey( ) == 1 );
-  bool sft = ( rwi->GetShiftKey( ) == 1 );
-
-  switch( this->State )
-  {
-  case VTKIS_PAN:
-    this->EndPan( );
-    break;
-  default:
-    break;
-  } // hctiws
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::BaseInteractorStyle::
-OnRightButtonDown( )
-{
-  this->m_ActiveButton = Self::ButtonID_Right;
-
-  // Get current position on the associated actors
-  vtkRenderWindowInteractor* rwi = this->GetInteractor( );
-  if( rwi == NULL )
-    return;
-
-  // Get modifiers
-  bool alt = ( rwi->GetAltKey( ) == 1 );
-  bool ctr = ( rwi->GetControlKey( ) == 1 );
-  bool sft = ( rwi->GetShiftKey( ) == 1 );
-
-  if( !alt && !ctr && !sft )
-    this->StartDolly( );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::BaseInteractorStyle::
-OnRightButtonUp( )
-{
-  this->m_ActiveButton = Self::ButtonID_None;
-
-  // Get current position on the associated actors
-  vtkRenderWindowInteractor* rwi = this->GetInteractor( );
-  if( rwi == NULL )
-    return;
-
-  // Get modifiers
-  bool alt = ( rwi->GetAltKey( ) == 1 );
-  bool ctr = ( rwi->GetControlKey( ) == 1 );
-  bool sft = ( rwi->GetShiftKey( ) == 1 );
-
-  switch( this->State )
-  {
-  case VTKIS_DOLLY:
-    this->EndDolly( );
-    break;
-  default:
-    break;
-  } // hctiws
-}
-
-// -------------------------------------------------------------------------
-#define cpExtensions_BaseInteractorStyle_Click( S, T )          \
-  void cpExtensions::Interaction::BaseInteractorStyle::         \
-  On##S##T( )                                                   \
-  {                                                             \
-    vtkRenderWindowInteractor* rwi = this->GetInteractor( );    \
-    if( rwi == NULL )                                           \
-      return;                                                   \
-    static int idx[ 2 ];                                        \
-    static double pos[ 3 ];                                     \
-    if( !( this->_PickPosition( idx, pos ) ) )                  \
-      return;                                                   \
-    auto i = this->m_Mouse##T##Commands.begin( );               \
-    for( ; i != this->m_Mouse##T##Commands.end( ); ++i )        \
-      i->first(                                                 \
-        i->second,                                              \
-        Self::ButtonID_##S,                                     \
-        idx, pos,                                               \
-        rwi->GetAltKey( ) == 1,                                 \
-        rwi->GetControlKey( ) == 1,                             \
-        rwi->GetShiftKey( ) == 1                                \
-        );                                                      \
-  }
-
-cpExtensions_BaseInteractorStyle_Click( Left, Click );
-cpExtensions_BaseInteractorStyle_Click( Middle, Click );
-cpExtensions_BaseInteractorStyle_Click( Right, Click );
-cpExtensions_BaseInteractorStyle_Click( Left, DoubleClick );
-cpExtensions_BaseInteractorStyle_Click( Middle, DoubleClick );
-cpExtensions_BaseInteractorStyle_Click( Right, DoubleClick );
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::BaseInteractorStyle::
-OnChar( )
-{
-  vtkRenderWindowInteractor* rwi = this->GetInteractor( );
-  if( rwi == NULL )
-    return;
-
-  // Invoke possible events
-  auto i = this->m_KeyCommands.begin( );
-  for( ; i != this->m_KeyCommands.end( ); ++i )
-    i->first( i->second, rwi->GetKeyCode( ) );
-}
-
-// -------------------------------------------------------------------------
-#define cpExtensions_BaseInteractorStyle_Global( N )            \
-  void cpExtensions::Interaction::BaseInteractorStyle::         \
-  On##N( )                                                      \
-  {                                                             \
-    vtkRenderWindowInteractor* rwi = this->GetInteractor( );    \
-    if( rwi == NULL )                                           \
-      return;                                                   \
-    auto i = this->m_##N##Commands.begin( );                    \
-    for( ; i != this->m_##N##Commands.end( ); ++i )             \
-      i->first( i->second );                                    \
-  }
-
-cpExtensions_BaseInteractorStyle_Global( Expose );
-cpExtensions_BaseInteractorStyle_Global( Configure );
-cpExtensions_BaseInteractorStyle_Global( Enter );
-cpExtensions_BaseInteractorStyle_Global( Leave );
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::BaseInteractorStyle::
-Dolly( )
-{
-  if( this->CurrentRenderer == NULL )
-    return;
-
-  vtkRenderWindowInteractor* rwi = this->GetInteractor( );
-  double *center = this->CurrentRenderer->GetCenter( );
-  int dy = rwi->GetEventPosition( )[ 1 ] - rwi->GetLastEventPosition( )[ 1 ];
-  double dyf = this->m_MotionFactor * dy / center[ 1 ];
-  this->_Dolly( std::pow( 1.1, dyf ) );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::BaseInteractorStyle::
-Pan( )
-{
-  if( this->CurrentRenderer == NULL )
-    return;
-
-  vtkRenderWindowInteractor* rwi = this->Interactor;
-  double viewFocus[ 4 ], focalDepth, viewPoint[ 3 ];
-  double newPickPoint[ 4 ], oldPickPoint[ 4 ], motionVector[ 3 ];
-
-  // Calculate the focal depth since we'll be using it a lot
-  vtkCamera* camera = this->CurrentRenderer->GetActiveCamera( );
-  camera->GetFocalPoint( viewFocus );
-  this->ComputeWorldToDisplay(
-    viewFocus[ 0 ], viewFocus[ 1 ], viewFocus[ 2 ], viewFocus
-    );
-  focalDepth = viewFocus[ 2 ];
-  this->ComputeDisplayToWorld(
-    rwi->GetEventPosition( )[ 0 ],
-    rwi->GetEventPosition( )[ 1 ],
-    focalDepth,
-    newPickPoint
-    );
-
-  // Has to recalc old mouse point since the viewport has moved,
-  // so can't move it outside the loop
-  this->ComputeDisplayToWorld(
-    rwi->GetLastEventPosition( )[ 0 ],
-    rwi->GetLastEventPosition( )[ 1 ],
-    focalDepth,
-    oldPickPoint
-    );
-
-  // Camera motion is reversed
-  motionVector[ 0 ] = oldPickPoint[ 0 ] - newPickPoint[ 0 ];
-  motionVector[ 1 ] = oldPickPoint[ 1 ] - newPickPoint[ 1 ];
-  motionVector[ 2 ] = oldPickPoint[ 2 ] - newPickPoint[ 2 ];
-
-  camera->GetFocalPoint( viewFocus );
-  camera->GetPosition( viewPoint );
-  camera->SetFocalPoint(
-    motionVector[ 0 ] + viewFocus[ 0 ],
-    motionVector[ 1 ] + viewFocus[ 1 ],
-    motionVector[ 2 ] + viewFocus[ 2 ]
-    );
-  camera->SetPosition(
-    motionVector[ 0 ] + viewPoint[ 0 ],
-    motionVector[ 1 ] + viewPoint[ 1 ],
-    motionVector[ 2 ] + viewPoint[ 2 ]
-    );
-  if( rwi->GetLightFollowCamera( ) )
-    this->CurrentRenderer->UpdateLightsGeometryToFollowCamera( );
-  rwi->Render( );
-}
-
-// -------------------------------------------------------------------------
-cpExtensions::Interaction::BaseInteractorStyle::
-BaseInteractorStyle( )
-  : Superclass( ),
-    m_AssociatedObject( NULL ),
-    m_MotionFactor( double( 10 ) )
-{
-  this->m_LeftButtonEvent.Reset( );
-  this->m_MiddleButtonEvent.Reset( );
-  this->m_RightButtonEvent.Reset( );
-  this->m_ActiveButton = Self::ButtonID_None;
-
-  this->EventCallbackCommand->SetCallback( Self::_ProcessEvents );
-}
-
-// -------------------------------------------------------------------------
-cpExtensions::Interaction::BaseInteractorStyle::
-~BaseInteractorStyle( )
-{
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::BaseInteractorStyle::
-_Dolly( double factor )
-{
-  if( this->CurrentRenderer == NULL )
-    return;
-
-  vtkCamera* camera = this->CurrentRenderer->GetActiveCamera( );
-  if( camera->GetParallelProjection( ) == 0 )
-  {
-    camera->Dolly( factor );
-    if( this->AutoAdjustCameraClippingRange )
-      this->CurrentRenderer->ResetCameraClippingRange( );
-  }
-  else
-    camera->SetParallelScale( camera->GetParallelScale( ) / factor );
-  if( this->Interactor->GetLightFollowCamera( ) )
-    this->CurrentRenderer->UpdateLightsGeometryToFollowCamera( );
-  this->Interactor->Render( );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::BaseInteractorStyle::
-_ProcessEvents(
-  vtkObject* object,
-  unsigned long event,
-  void* clientdata,
-  void* calldata
-  )
-{
-  // Get active style and interactor
-  Self* s = reinterpret_cast< Self* >( clientdata );
-  if( s == NULL )
-    return;
-
-  // Process events
-  switch( event )
-  {
-  case vtkCommand::MouseMoveEvent:
-  {
-    s->OnMouseMove( );
-  }
-  break;
-  case vtkCommand::LeftButtonPressEvent:
-  {
-    unsigned char nc = s->m_LeftButtonEvent.Clicks( );
-    if( nc == 2 )
-      s->OnLeftDoubleClick( );
-    else if( nc == 1 )
-      s->OnLeftClick( );
-    s->OnLeftButtonDown( );
-  }
-  break;
-  case vtkCommand::LeftButtonReleaseEvent:
-  {
-    s->m_LeftButtonEvent.Release( );
-    s->OnLeftButtonUp( );
-  }
-  break;
-  case vtkCommand::MiddleButtonPressEvent:
-  {
-    unsigned char nc = s->m_MiddleButtonEvent.Clicks( );
-    if( nc == 2 )
-      s->OnMiddleDoubleClick( );
-    else if( nc == 1 )
-      s->OnMiddleClick( );
-    s->OnMiddleButtonDown( );
-  }
-  break;
-  case vtkCommand::MiddleButtonReleaseEvent:
-  {
-    s->m_MiddleButtonEvent.Release( );
-    s->OnMiddleButtonUp( );
-  }
-  break;
-  case vtkCommand::RightButtonPressEvent:
-  {
-    unsigned char nc = s->m_RightButtonEvent.Clicks( );
-    if( nc == 2 )
-      s->OnRightDoubleClick( );
-    else if( nc == 1 )
-      s->OnRightClick( );
-    s->OnRightButtonDown( );
-  }
-  break;
-  case vtkCommand::RightButtonReleaseEvent:
-  {
-    s->m_RightButtonEvent.Release( );
-    s->OnRightButtonUp( );
-  }
-  break;
-  case vtkCommand::MouseWheelForwardEvent:
-  {
-    s->OnMouseWheelForward( );
-  }
-  break;
-  case vtkCommand::MouseWheelBackwardEvent:
-  {
-    s->OnMouseWheelBackward( );
-  }
-  break;
-  case vtkCommand::KeyPressEvent:
-  {
-    s->OnKeyDown( );
-    s->OnKeyPress( );
-  }
-  break;
-  case vtkCommand::KeyReleaseEvent:
-  {
-    s->OnKeyUp( );
-    s->OnKeyRelease( );
-  }
-  break;
-  case vtkCommand::CharEvent:
-  {
-    s->OnChar( );
-  }
-  break;
-  case vtkCommand::ExposeEvent:
-  {
-    s->OnExpose( );
-  }
-  break;
-  case vtkCommand::ConfigureEvent:
-  {
-    s->OnConfigure( );
-  }
-  break;
-  case vtkCommand::EnterEvent:
-  {
-    s->OnEnter( );
-  }
-  break;
-  case vtkCommand::LeaveEvent:
-  {
-    s->OnLeave( );
-  }
-  break;
-  case vtkCommand::TimerEvent:
-  {
-    // Do nothing
-  }
-  break;
-  case vtkCommand::DeleteEvent:
-  {
-    s->SetInteractor( 0 );
-  }
-  break;
-  case vtkCommand::TDxMotionEvent:
-  case vtkCommand::TDxButtonPressEvent:
-  case vtkCommand::TDxButtonReleaseEvent:
-  {
-    s->DelegateTDxEvent( event, calldata );
-  }
-  break;
-  default:
-    break;
-  } // hctiws
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Interaction/BaseInteractorStyle.h b/lib/cpExtensions/Interaction/BaseInteractorStyle.h
deleted file mode 100644 (file)
index 30c3ba3..0000000
+++ /dev/null
@@ -1,226 +0,0 @@
-#ifndef __CPEXTENSIONS__INTERACTION__BASEINTERACTORSTYLE__H__
-#define __CPEXTENSIONS__INTERACTION__BASEINTERACTORSTYLE__H__
-
-#include <cpExtensions/cpExtensions_Export.h>
-
-#include <chrono>
-#include <map>
-#include <utility>
-
-#include <vtkInteractorStyle.h>
-
-/* =========================================================================
- * Double click algorithm inspired from:
- * http://www.autohotkey.com/board/topic/56493-easiest-way-to-detect-double-clicks/
- * =========================================================================
- */
-
-// -------------------------------------------------------------------------
-#define cpExtensions_BaseInteractorStyle_Commands( C )                  \
-  protected:                                                            \
-  std::map< T##C##Command, void* > m_##C##Commands;                     \
-public:                                                                 \
-  inline void Add##C##Command( T##C##Command c, void* d )               \
-  {                                                                     \
-    if( c != NULL )                                                     \
-    {                                                                   \
-      this->m_##C##Commands[ c ] = d;                                   \
-      this->Modified( );                                                \
-    }                                                                   \
-  }                                                                     \
-  inline void Remove##C##Command( T##C##Command c )                     \
-  {                                                                     \
-    std::map< T##C##Command, void* >::iterator i =                      \
-      this->m_##C##Commands.find( c );                                  \
-    if( i != this->m_##C##Commands.end( ) )                             \
-    {                                                                   \
-      this->m_##C##Commands.erase( i );                                 \
-      this->Modified( );                                                \
-    }                                                                   \
-  }
-
-// -------------------------------------------------------------------------
-#define BaseInteractorStyle_DIFF_TIME                           \
-  std::chrono::duration_cast< std::chrono::milliseconds >(      \
-    std::chrono::system_clock::now( ).time_since_epoch( )       \
-    ).count( )
-
-namespace cpExtensions
-{
-  namespace Interaction
-  {
-    /**
-     */
-    class cpExtensions_EXPORT BaseInteractorStyle
-      : public vtkInteractorStyle
-    {
-    public:
-      typedef BaseInteractorStyle Self;
-      vtkTypeMacro( BaseInteractorStyle, vtkInteractorStyle );
-
-      enum ButtonID
-      {
-        ButtonID_None = 0,
-        ButtonID_Left,
-        ButtonID_Middle,
-        ButtonID_Right
-      };
-
-      // Callbacks types
-      typedef void ( *TMouseCommand )(
-        void*, const ButtonID&, int*, double*, bool, bool, bool
-        );
-      typedef void ( *TMouseWheelCommand )( void*, const int&, bool, bool, bool );
-      typedef void ( *TKeyCommand )( void*, const char& );
-      typedef void ( *TVoidCommand )( void* );
-      typedef TMouseCommand TMouseMoveCommand;
-      typedef TMouseCommand TMouseClickCommand;
-      typedef TMouseCommand TMouseDoubleClickCommand;
-      typedef TVoidCommand  TExposeCommand;
-      typedef TVoidCommand  TConfigureCommand;
-      typedef TVoidCommand  TEnterCommand;
-      typedef TVoidCommand  TLeaveCommand;
-
-      // Associate callbacks for each event
-      cpExtensions_BaseInteractorStyle_Commands( MouseMove );
-      cpExtensions_BaseInteractorStyle_Commands( MouseClick );
-      cpExtensions_BaseInteractorStyle_Commands( MouseDoubleClick );
-      cpExtensions_BaseInteractorStyle_Commands( MouseWheel );
-      cpExtensions_BaseInteractorStyle_Commands( Key );
-      cpExtensions_BaseInteractorStyle_Commands( Expose );
-      cpExtensions_BaseInteractorStyle_Commands( Configure );
-      cpExtensions_BaseInteractorStyle_Commands( Enter );
-      cpExtensions_BaseInteractorStyle_Commands( Leave );
-
-    public:
-      vtkObject* GetAssociatedObject( );
-      const vtkObject* GetAssociatedObject( ) const;
-      void SetAssociatedObject( vtkObject* obj );
-
-      static void SetSetDoubleClickDelay( long delay );
-      void DelegateTDxEvent( unsigned long event, void* calldata );
-
-      // Possible mouse motion events
-      virtual void OnMouseMove( );
-      virtual void OnMouseWheelForward( );
-      virtual void OnMouseWheelBackward( );
-
-      // Possible mouse click-related events
-      inline ButtonID GetButtonID( ) const
-      {
-        return( this->m_ActiveButton );
-      }
-
-      virtual void OnLeftButtonDown( );
-      virtual void OnLeftButtonUp( );
-      virtual void OnMiddleButtonDown( );
-      virtual void OnMiddleButtonUp( );
-      virtual void OnRightButtonDown( );
-      virtual void OnRightButtonUp( );
-
-      virtual void OnLeftClick( );
-      virtual void OnLeftDoubleClick( );
-      virtual void OnMiddleClick( );
-      virtual void OnMiddleDoubleClick( );
-      virtual void OnRightClick( );
-      virtual void OnRightDoubleClick( );
-
-      // Keyboard-related events
-      virtual void OnChar( );
-      virtual void OnKeyDown( )    { }
-      virtual void OnKeyUp( )      { }
-      virtual void OnKeyPress( )   { }
-      virtual void OnKeyRelease( ) { }
-
-      // Other events
-      virtual void OnExpose( );
-      virtual void OnConfigure( );
-      virtual void OnEnter( );
-      virtual void OnLeave( );
-
-      virtual void Dolly( );
-      virtual void Pan( );
-
-    protected:
-      BaseInteractorStyle( );
-      virtual ~BaseInteractorStyle( );
-
-      virtual void _Dolly( double factor );
-
-      // Extension interface
-      virtual bool _PickPosition( int idx[ 2 ], double pos[ 3 ] ) = 0;
-
-      // Main event callback
-      static void _ProcessEvents(
-        vtkObject* object,
-        unsigned long event,
-        void* clientdata,
-        void* calldata
-        );
-
-    private:
-      // Purposely not implemented
-      BaseInteractorStyle( const Self& );
-      Self& operator=( const Self& );
-
-    protected:
-      vtkObject* m_AssociatedObject;
-      double m_MotionFactor;
-
-      /**
-       * Button events
-       */
-      struct _TMouseButtonEvent
-      {
-        static long MaxDoubleClick;
-        long m_LastButtonUp;
-        long m_LastButtonHeld;
-        long m_LastButtonDown;
-
-        inline _TMouseButtonEvent( )
-          { this->Reset( ); }
-        inline void Reset( )
-          {
-            this->m_LastButtonUp = 0;
-            this->m_LastButtonHeld = 0;
-            this->m_LastButtonDown = -1;
-          }
-        inline void Release( )
-          {
-            long c = BaseInteractorStyle_DIFF_TIME;
-            this->m_LastButtonUp = c;
-            this->m_LastButtonHeld = c - this->m_LastButtonDown;
-            this->m_LastButtonDown = -1;
-          }
-        inline unsigned char Clicks( )
-          {
-            unsigned char n = 0;
-            long c = BaseInteractorStyle_DIFF_TIME;
-            if(
-              this->m_LastButtonHeld < MaxDoubleClick &&
-              ( c - this->m_LastButtonUp ) < MaxDoubleClick
-              )
-            {
-              this->Reset( );
-              n = 2;
-            }
-            else
-              n = 1;
-            if( this->m_LastButtonDown < 0 )
-              this->m_LastButtonDown = c;
-            return( n );
-          }
-      };
-      _TMouseButtonEvent m_LeftButtonEvent;
-      _TMouseButtonEvent m_MiddleButtonEvent;
-      _TMouseButtonEvent m_RightButtonEvent;
-      ButtonID           m_ActiveButton;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPEXTENSIONS__INTERACTION__BASEINTERACTORSTYLE__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Interaction/ImageInteractorStyle.cxx b/lib/cpExtensions/Interaction/ImageInteractorStyle.cxx
deleted file mode 100644 (file)
index c037193..0000000
+++ /dev/null
@@ -1,168 +0,0 @@
-#include <cpExtensions/Interaction/ImageInteractorStyle.h>
-
-#include <vtkCommand.h>
-#include <vtkImageActor.h>
-#include <vtkPropCollection.h>
-#include <vtkProperty.h>
-#include <vtkRenderWindowInteractor.h>
-
-// -------------------------------------------------------------------------
-cpExtensions::Interaction::ImageInteractorStyle::TSeedWidget::
-TSeedWidget( vtkRenderWindowInteractor* interactor, vtkImageActor* actor )
-{
-  this->Placer = vtkSmartPointer< vtkImageActorPointPlacer >::New( );
-  this->Handle = vtkSmartPointer< vtkPointHandleRepresentation3D >::New( );
-  this->Representation = vtkSmartPointer< vtkSeedRepresentation >::New( );
-  this->Widget = vtkSmartPointer< SeedWidget >::New( );
-
-  this->Placer->SetImageActor( actor );
-  this->Handle->GetProperty( )->SetColor( 1, 0, 0 );
-  this->Handle->SetPointPlacer( this->Placer );
-  this->Representation->SetHandleRepresentation( this->Handle );
-  this->Widget->SetRepresentation( this->Representation );
-  this->Widget->SetInteractor( interactor );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::ImageInteractorStyle::TSeedWidget::
-On( )
-{
-  this->Widget->On( );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::ImageInteractorStyle::TSeedWidget::
-Off( )
-{
-  this->Widget->Off( );
-}
-
-// -------------------------------------------------------------------------
-cpExtensions::Interaction::ImageInteractorStyle::
-Self* cpExtensions::Interaction::ImageInteractorStyle::
-New( )
-{
-  return( new Self );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::ImageInteractorStyle::
-AssociateImageActor( vtkImageActor* actor )
-{
-  if( actor != NULL )
-  {
-    this->m_PropPicker->AddPickList( actor );
-    this->Modified( );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::ImageInteractorStyle::
-SeedWidgetOn( )
-{
-  if( this->m_SeedWidget != NULL ) delete this->m_SeedWidget;
-
-  this->m_PropPicker->GetPickList( )->InitTraversal( );
-  this->m_SeedWidget = new TSeedWidget(
-    this->Interactor,
-    dynamic_cast< vtkImageActor* >(
-      this->m_PropPicker->GetPickList( )->GetNextProp( )
-      )
-    );
-  this->m_SeedWidget->On( );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::ImageInteractorStyle::
-SeedWidgetOff( )
-{
-  if( this->m_SeedWidget != NULL )
-  {
-    this->m_SeedWidget->Off( );
-    delete this->m_SeedWidget;
-    this->m_SeedWidget = NULL;
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::ImageInteractorStyle::
-SetSeedWidgetCommand( vtkCommand* cmd )
-{
-  if( cmd == NULL || this->m_SeedWidget == NULL )
-    return;
-  this->m_SeedWidget->Widget->
-    AddObserver( vtkCommand::PlacePointEvent, cmd );
-}
-
-// -------------------------------------------------------------------------
-unsigned int cpExtensions::Interaction::ImageInteractorStyle::
-GetNumberOfSeeds( ) const
-{
-  if( this->m_SeedWidget != NULL )
-    return( this->m_SeedWidget->Representation->GetNumberOfSeeds( ) );
-  else
-    return( 0 );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::ImageInteractorStyle::
-GetSeedAsPoint( unsigned int id, double pos[ 3 ] ) const
-{
-  if( this->m_SeedWidget != NULL )
-    this->m_SeedWidget->Representation->GetSeedWorldPosition( id, pos );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::ImageInteractorStyle::
-GetSeedAsIndex( unsigned int id, int idx[ 3 ] ) const
-{
-  /* TODO
-     if( this->m_SeedWidget != NULL )
-     this->m_SeedWidget->Representation->GetSeedWorldPosition( id, pos );
-  */
-}
-
-// -------------------------------------------------------------------------
-cpExtensions::Interaction::ImageInteractorStyle::
-ImageInteractorStyle( )
-  : Superclass( ),
-    m_SeedWidget( NULL )
-{
-  this->m_PropPicker = vtkSmartPointer< vtkPropPicker >::New( );
-  this->m_PropPicker->PickFromListOn( );
-}
-
-// -------------------------------------------------------------------------
-cpExtensions::Interaction::ImageInteractorStyle::
-~ImageInteractorStyle( )
-{
-  if( this->m_SeedWidget != NULL ) delete this->m_SeedWidget;
-}
-
-// -------------------------------------------------------------------------
-bool cpExtensions::Interaction::ImageInteractorStyle::
-_PickPosition( int idx[ 2 ], double pos[ 3 ] )
-{
-  vtkRenderWindowInteractor* rwi = this->GetInteractor( );
-  if( rwi == NULL )
-    return( false );
-
-  // Find the renderer where the event has been raised
-  idx[ 0 ] = rwi->GetEventPosition( )[ 0 ];
-  idx[ 1 ] = rwi->GetEventPosition( )[ 1 ];
-  this->FindPokedRenderer( double( idx[ 0 ] ), double( idx[ 1 ] ) );
-
-  // Pick a 3D position
-  int r = this->m_PropPicker->Pick(
-    double( idx[ 0 ] ), double( idx[ 1 ] ), double( 0 ),
-    this->CurrentRenderer
-    );
-  if( r == 0 )
-    return( false );
-  this->m_PropPicker->GetPickPosition( pos );
-  return( true );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Interaction/ImageInteractorStyle.h b/lib/cpExtensions/Interaction/ImageInteractorStyle.h
deleted file mode 100644 (file)
index ec54f5e..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-#ifndef __CPEXTENSIONS__INTERACTION__IMAGEINTERACTORSTYLE__H__
-#define __CPEXTENSIONS__INTERACTION__IMAGEINTERACTORSTYLE__H__
-
-#include <cpExtensions/Interaction/BaseInteractorStyle.h>
-
-#include <vector>
-
-#include <vtkSmartPointer.h>
-#include <vtkImageActorPointPlacer.h>
-#include <vtkPropPicker.h>
-#include <vtkPointHandleRepresentation3D.h>
-#include <vtkSeedRepresentation.h>
-#include <cpExtensions/Interaction/SeedWidget.h>
-
-// Forward definitions
-class vtkCommand;
-class vtkImageActor;
-
-namespace cpExtensions
-{
-  namespace Interaction
-  {
-    /**
-     */
-    class cpExtensions_EXPORT ImageInteractorStyle
-      : public BaseInteractorStyle
-    {
-    public:
-      typedef ImageInteractorStyle Self;
-      vtkTypeMacro( ImageInteractorStyle, BaseInteractorStyle );
-
-      // Callbacks types
-      typedef Superclass::TMouseCommand            TMouseCommand;
-      typedef Superclass::TMouseWheelCommand       TMouseWheelCommand;
-      typedef Superclass::TKeyCommand              TKeyCommand;
-      typedef Superclass::TVoidCommand             TVoidCommand;
-      typedef Superclass::TMouseMoveCommand        TMouseMoveCommand;
-      typedef Superclass::TMouseClickCommand       TMouseClickCommand;
-      typedef Superclass::TMouseDoubleClickCommand TMouseDoubleClickCommand;
-      typedef Superclass::TExposeCommand           TExposeCommand;
-      typedef Superclass::TConfigureCommand        TConfigureCommand;
-      typedef Superclass::TEnterCommand            TEnterCommand;
-      typedef Superclass::TLeaveCommand            TLeaveCommand;
-
-      // Widgets
-      struct TSeedWidget
-      {
-        vtkSmartPointer< vtkImageActorPointPlacer >              Placer;
-        vtkSmartPointer< vtkPointHandleRepresentation3D >        Handle;
-        vtkSmartPointer< vtkSeedRepresentation >         Representation;
-        vtkSmartPointer< SeedWidget > Widget;
-
-        TSeedWidget(
-          vtkRenderWindowInteractor* interactor, vtkImageActor* actor
-          );
-        void On( );
-        void Off( );
-      };
-
-    public:
-      static Self* New( );
-
-      // Data for local picker
-      virtual void AssociateImageActor( vtkImageActor* actor );
-
-      // Widgets
-      void SeedWidgetOn( );
-      void SeedWidgetOff( );
-      void SetSeedWidgetCommand( vtkCommand* cmd );
-      unsigned int GetNumberOfSeeds( ) const;
-      void GetSeedAsPoint( unsigned int id, double pos[ 3 ] ) const;
-      void GetSeedAsIndex( unsigned int id, int pos[ 3 ] ) const;
-
-    protected:
-      ImageInteractorStyle( );
-      virtual ~ImageInteractorStyle( );
-
-      virtual bool _PickPosition( int idx[ 2 ], double pos[ 3 ] );
-
-    private:
-      // Purposely not implemented
-      ImageInteractorStyle( const Self& );
-      Self& operator=( const Self& );
-
-    protected:
-      vtkSmartPointer< vtkPropPicker > m_PropPicker;
-
-      TSeedWidget* m_SeedWidget;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPEXTENSIONS__INTERACTION__IMAGEINTERACTORSTYLE__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Interaction/SeedWidget.cxx b/lib/cpExtensions/Interaction/SeedWidget.cxx
deleted file mode 100644 (file)
index 73d13a5..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-#include <cpExtensions/Interaction/SeedWidget.h>
-
-#include <vtkCallbackCommand.h>
-#include <vtkCommand.h>
-#include <vtkRenderWindowInteractor.h>
-#include <vtkSeedRepresentation.h>
-#include <vtkWidgetEventTranslator.h>
-#include <vtkWidgetRepresentation.h>
-
-// -------------------------------------------------------------------------
-cpExtensions::Interaction::SeedWidget::
-Self* cpExtensions::Interaction::SeedWidget::
-New( )
-{
-  return( new Self );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::SeedWidget::
-SetInteractor( vtkRenderWindowInteractor* rwi )
-{
-  this->Superclass::SetInteractor( rwi );
-  if( rwi != NULL )
-  {
-    TBaseStyle* s =
-      dynamic_cast< TBaseStyle* >( rwi->GetInteractorStyle( ) );
-    if( s != NULL )
-    {
-      s->AddMouseClickCommand( Self::_Click, this );
-      s->AddMouseDoubleClickCommand( Self::_DoubleClick, this );
-
-    } // fi
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-cpExtensions::Interaction::SeedWidget::
-SeedWidget( )
-  : Superclass( )
-{
-  // Remove default translations
-  vtkWidgetEventTranslator* t = this->GetEventTranslator( );
-  t->RemoveTranslation( vtkCommand::LeftButtonPressEvent );
-  t->RemoveTranslation( vtkCommand::MiddleButtonPressEvent );
-  t->RemoveTranslation( vtkCommand::RightButtonPressEvent );
-}
-
-// -------------------------------------------------------------------------
-cpExtensions::Interaction::SeedWidget::
-~SeedWidget( )
-{
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::SeedWidget::
-_Click(
-  void* data, const TBaseStyle::ButtonID& button,
-  int* idx, double* pos, bool alt, bool ctr, bool sft
-  )
-{
-  SeedWidget* self = reinterpret_cast< SeedWidget* >( data );
-  if( self == NULL )
-    return;
-  if( self->WidgetState == vtkSeedWidget::MovingSeed )
-    return;
-
-  int st = self->WidgetRep->ComputeInteractionState( idx[ 0 ], idx[ 1 ] );
-  if( st == vtkSeedRepresentation::NearSeed )
-  {
-    self->WidgetState = vtkSeedWidget::MovingSeed;
-
-    // Invoke an event on ourself for the handles
-    self->InvokeEvent( vtkCommand::LeftButtonPressEvent, NULL );
-    self->Superclass::StartInteraction( );
-    self->InvokeEvent( vtkCommand::StartInteractionEvent, NULL );
-    self->EventCallbackCommand->SetAbortFlag( 1 );
-    self->Render( );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::SeedWidget::
-_DoubleClick(
-  void* data, const TBaseStyle::ButtonID& button,
-  int* idx, double* pos, bool alt, bool ctr, bool sft
-  )
-{
-  Self::AddPointAction( reinterpret_cast< vtkAbstractWidget* >( data ) );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Interaction/SeedWidget.h b/lib/cpExtensions/Interaction/SeedWidget.h
deleted file mode 100644 (file)
index 526ac7e..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-#ifndef __CPEXTENSIONS__INTERACTION__SEEDWIDGET__H__
-#define __CPEXTENSIONS__INTERACTION__SEEDWIDGET__H__
-
-#include <cpExtensions/cpExtensions_Export.h>
-#include <cpExtensions/Interaction/BaseInteractorStyle.h>
-#include <vtkSeedWidget.h>
-
-namespace cpExtensions
-{
-  namespace Interaction
-  {
-    /**
-     */
-    class cpExtensions_EXPORT SeedWidget
-      : public vtkSeedWidget
-    {
-    public:
-      typedef SeedWidget Self;
-      vtkTypeMacro( SeedWidget, vtkSeedWidget );
-
-      typedef cpExtensions::Interaction::BaseInteractorStyle TBaseStyle;
-      typedef TBaseStyle::TMouseCommand TMouseCommand;
-
-    public:
-      static Self* New( );
-
-      virtual void SetInteractor( vtkRenderWindowInteractor* rwi );
-
-    protected:
-      SeedWidget( );
-      virtual ~SeedWidget( );
-
-      static void _Click(
-        void* data, const TBaseStyle::ButtonID& button,
-        int* idx, double* pos, bool alt, bool ctr, bool sft
-        );
-      static void _DoubleClick(
-        void* data, const TBaseStyle::ButtonID& button,
-        int* idx, double* pos, bool alt, bool ctr, bool sft
-        );
-
-    private:
-      // Purposely not implemented
-      SeedWidget( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPEXTENSIONS__INTERACTION__SEEDWIDGET__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Interaction/SphereWidget.cxx b/lib/cpExtensions/Interaction/SphereWidget.cxx
deleted file mode 100644 (file)
index 882c3ca..0000000
+++ /dev/null
@@ -1,263 +0,0 @@
-#include <cpExtensions/Interaction/SphereWidget.h>
-
-#include <vtkCallbackCommand.h>
-#include <vtkCommand.h>
-#include <vtkRenderWindowInteractor.h>
-#include <vtkSeedRepresentation.h>
-#include <vtkWidgetEventTranslator.h>
-#include <vtkWidgetRepresentation.h>
-#include <vtkActor.h>
-#include <vtkSphereRepresentation.h>
-#include <vtkSmartPointer.h>
-#include <vtkSphere.h>
-#include <vtkProperty.h>
-
-// -------------------------------------------------------------------------
-cpExtensions::Interaction::SphereWidget::
-Self* cpExtensions::Interaction::SphereWidget::
-New()
-{
-  return(new Self);
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::SphereWidget::
-SetInteractor(vtkRenderWindowInteractor* rwi)
-{
-  this->Superclass::SetInteractor(rwi);
-  TBaseStyle* s = dynamic_cast<TBaseStyle*>(rwi->GetInteractorStyle());
-  if (s != NULL)
-  {    
-    s->AddKeyCommand(Self::_KeyPress, this);
-    s->AddMouseMoveCommand(Self::_MouseMove, this);
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-cpExtensions::Interaction::SphereWidget::
-SphereWidget()
-: Superclass()
-{
-  //this->SetAxis(0);
-
-  this->SetTranslation(0);
-  this->SetRadius(7);
-
-  this->SetPhiResolution(10);
-  this->SetThetaResolution(20);
-
-  this->SetRepresentationToWireframe();
-}
-
-// -------------------------------------------------------------------------
-cpExtensions::Interaction::SphereWidget::
-~SphereWidget()
-{
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::SphereWidget::
-_Click(
-void* data, const TBaseStyle::ButtonID& button,
-int* idx, double* pos, bool alt, bool ctr, bool sft
-)
-{
-  SphereWidget* self = reinterpret_cast<SphereWidget*>(data);
-  self->Superclass::EndInteraction();
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::SphereWidget::
-_DoubleClick(
-void* data, const TBaseStyle::ButtonID& button,
-int* idx, double* pos, bool alt, bool ctr, bool sft
-)
-{
-
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::SphereWidget::
-_MouseMove(
-void* data, const TBaseStyle::ButtonID& button,
-int* idx, double* pos, bool alt, bool ctr, bool sft
-)
-{
-  /*SphereWidget* self = reinterpret_cast<SphereWidget*>(data);
-  self->Superclass::StartInteraction();*/
-}
-
-void cpExtensions::Interaction::SphereWidget::SetAxis(int axis)
-{
-  this->m_axis = axis;
-}
-
-
-void cpExtensions::Interaction::SphereWidget::SetAxis(void* data, int axis)
-{
-  SphereWidget* self = reinterpret_cast<SphereWidget*>(data);
-  self->SetAxis(axis);
-}
-
-int cpExtensions::Interaction::SphereWidget::GetAxis()
-{
-  return this->m_axis;
-}
-
-int cpExtensions::Interaction::SphereWidget::GetAxis(void* data)
-{
-  SphereWidget* self = reinterpret_cast<SphereWidget*>(data);
-  return self->GetAxis();
-}
-
-double* cpExtensions::Interaction::SphereWidget::GetPosition()
-{
-  return this->SphereActor->GetPosition();
-}
-
-double* cpExtensions::Interaction::SphereWidget::GetPosition(void* data)
-{
-  SphereWidget* self = reinterpret_cast<SphereWidget*>(data);
-  return self->GetPosition();
-}
-
-void cpExtensions::Interaction::SphereWidget::SetCenter(double * center)
-{
-  //this->Superclass::SetCenter(center);
-  this->SphereActor->SetPosition(center);
-  this->SphereActor->Modified();
-  this->Modified();
-  this->GetInteractor()->Render();
-}
-
-void cpExtensions::Interaction::SphereWidget::SetCenter(void* data, double * center)
-{
-  SphereWidget* self = reinterpret_cast<SphereWidget*>(data);
-  
-  //self->Superclass::SetCenter(center);
-  self->SphereActor->SetPosition(center);
-  self->SphereActor->Modified();
-  self->Modified();
-  self->GetInteractor()->Render();
-
-  std::cout << "sphere: {" << center[0] << " , " << center[1] << " , " << center[2] << "} " << std::endl;
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Interaction::SphereWidget::_KeyPress(void* data, const char& key)
-{
-  SphereWidget* self = reinterpret_cast<SphereWidget*>(data);
-  self->Superclass::StartInteraction();
-
-  double * center = self->SphereActor->GetPosition();
-
-  auto radius = self->GetRadius();
-
-  auto axis = self->GetAxis();
-
-  switch (key)
-  {
-  case 122: // Z & z
-  case 90:
-    radius += 0.1;
-   
-    break;
-  case 88:  // X & x
-  case 120:
-    radius -= 0.1;
-   
-    break;
-  case 119: // W & w
-  case 87:
-    if (axis == 0)
-    {
-      center[2] += 1;
-    } else if (axis == 1)
-    {
-      center[2] += 1;
-    } else
-    {
-      center[1] -= 1;
-    }
-   
-   
-    break;
-  case 83: // S & s
-  case 115:
-    if (axis == 0)
-    {
-      center[2] -= 1;
-    }
-    else if (axis == 1)
-    {
-      center[2] -= 1;
-    }
-    else
-    {
-      center[1] += 1;
-    }
-   
-    break;
-  case 65: // A & a
-  case 97:
-    if (axis == 0)
-    {
-      center[1] -= 1;
-    }
-    else if (axis == 1)
-    {
-      center[0] -= 1;
-    }
-    else
-    {
-      center[0] += 1;
-    }
-   
-    break;
-  case 100: // D & d
-  case 68:
-    if (axis == 0)
-    {
-      center[1] += 1;
-    }
-    else if (axis == 1)
-    {
-      center[0] += 1;
-    }
-    else
-    {
-      center[0] -= 1;
-    }
-   
-    break;
-  //case 81: // Q & q
-  //case 113:
-  //  center[2] += 1;
-  //
-  //  break;
-  //case 69: // E & e
-  //case 101:
-  //  center[2] -= 1;
-  //
-  //  break;
-
-  default:
-    break;
-  }
-
-
-  self->SetRadius(radius);
-  self->SetCenter(data, center);
-  self->Modified();
-  self->GetInteractor()->Render();
-  self->EndInteraction();
-}
-
-
-
-
-
-
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Interaction/SphereWidget.h b/lib/cpExtensions/Interaction/SphereWidget.h
deleted file mode 100644 (file)
index 9afae7c..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-#ifndef __CPEXTENSIONS__INTERACTION__SphereWidget__H__
-#define __CPEXTENSIONS__INTERACTION__SphereWidget__H__
-
-#include <cpExtensions/cpExtensions_Export.h>
-#include <cpExtensions/Interaction/BaseInteractorStyle.h>
-#include <vtkSphereWidget.h>
-
-namespace cpExtensions
-{
-  namespace Interaction
-  {
-    /**
-     */
-    class cpExtensions_EXPORT SphereWidget
-      : public vtkSphereWidget
-    {
-    public:
-      typedef SphereWidget Self;
-      vtkTypeMacro( SphereWidget, vtkSphereWidget );
-
-      typedef cpExtensions::Interaction::BaseInteractorStyle TBaseStyle;
-      typedef TBaseStyle::TMouseCommand TMouseCommand;
-      typedef TBaseStyle::TKeyCommand TKeyCommand;
-
-    public:
-      static Self* New( );
-
-      virtual void SetInteractor( vtkRenderWindowInteractor* rwi );
-      void SetCenter(double* center);
-      void SetAxis(int axis);
-      int GetAxis();
-      double * GetPosition();
-    protected:
-      SphereWidget( );
-      virtual ~SphereWidget( );
-
-      static void _Click(
-        void* data, const TBaseStyle::ButtonID& button,
-        int* idx, double* pos, bool alt, bool ctr, bool sft
-        );
-      static void _DoubleClick(
-        void* data, const TBaseStyle::ButtonID& button,
-        int* idx, double* pos, bool alt, bool ctr, bool sft
-        );
-      static void _MouseMove(
-        void* data, const TBaseStyle::ButtonID& button,
-        int* idx, double* pos, bool alt, bool ctr, bool sft
-        );
-     
-      static void _KeyPress(void* data, const char& key);
-       
-      static void SetCenter(void* data, double* center);
-
-      static void SetAxis(void* data, int axis);
-      static int GetAxis(void* data);
-      static double * GetPosition(void* data);
-    private:
-      int m_axis;
-
-      // Purposely not implemented
-      SphereWidget( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPEXTENSIONS__INTERACTION__SphereWidget__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Visualization/Image3DMPR.cxx b/lib/cpExtensions/Visualization/Image3DMPR.cxx
deleted file mode 100644 (file)
index 7812300..0000000
+++ /dev/null
@@ -1,364 +0,0 @@
-#include <cpExtensions/Visualization/Image3DMPR.h>
-
-#include <vtkCommand.h>
-#include <vtkInteractorStyleSwitch.h>
-
-#include <cpExtensions/Visualization/SeedWidgetCorrector.h>
-
-/**
- */
-class cpPlugins_Extensions_Visualization_InteractionModeCallback
-  : public vtkCommand
-{
-public:
-  static cpPlugins_Extensions_Visualization_InteractionModeCallback* New( )
-    {
-      return( new cpPlugins_Extensions_Visualization_InteractionModeCallback );
-    }
-  virtual void Execute(
-    vtkObject* caller, unsigned long eventId, void* arguments )
-    {
-      if( eventId == vtkCommand::KeyPressEvent )
-      {
-        vtkRenderWindowInteractor* iren =
-          static_cast< vtkRenderWindowInteractor* >( caller );
-        if( caller == NULL )
-          return;
-
-        switch( iren->GetKeyCode( ) )
-        {
-        case 'x':
-        case 'X':
-        {
-          bool eSeed = ( this->SeedWidget->GetProcessEvents( ) == 1 );
-          if( eSeed )
-          {
-            this->SeedWidget->ProcessEventsOff( );
-            this->WidgetX->InteractionOn( );
-            this->WidgetY->InteractionOn( );
-            this->WidgetZ->InteractionOn( );
-          }
-          else
-          {
-            this->SeedWidget->ProcessEventsOn( );
-            this->WidgetX->InteractionOff( );
-            this->WidgetY->InteractionOff( );
-            this->WidgetZ->InteractionOff( );
-
-          } // fi
-        }
-        break;
-        case 'z':
-        case 'Z':
-        {
-          this->SeedWidget->ProcessEventsOff( );
-          this->WidgetX->InteractionOff( );
-          this->WidgetY->InteractionOff( );
-          this->WidgetZ->InteractionOff( );
-        }
-        break;
-        default:
-          break;
-
-        } // hctiws
-
-      } // fi
-    }
-
-public:
-  vtkImagePlaneWidget* WidgetX;
-  vtkImagePlaneWidget* WidgetY;
-  vtkImagePlaneWidget* WidgetZ;
-  vtkSeedWidget*       SeedWidget;
-};
-
-// -------------------------------------------------------------------------
-cpExtensions::Visualization::Image3DMPR::
-Image3DMPR( )
-{
-  this->m_Outline = vtkSmartPointer< vtkOutlineSource >::New( );
-  this->m_OutlineMapper = vtkSmartPointer< vtkPolyDataMapper >::New( );
-  this->m_OutlineActor = vtkSmartPointer< vtkActor >::New( );
-  this->m_Picker = vtkSmartPointer< vtkCellPicker >::New( );
-  this->m_WidgetX = vtkSmartPointer< vtkImagePlaneWidget >::New( );
-  this->m_WidgetY = vtkSmartPointer< vtkImagePlaneWidget >::New( );
-  this->m_WidgetZ = vtkSmartPointer< vtkImagePlaneWidget >::New( );
-  this->m_Renderer = vtkSmartPointer< vtkRenderer >::New( );
-  this->m_Window = vtkSmartPointer< vtkRenderWindow >::New( );
-  this->m_Interactor = vtkSmartPointer< vtkRenderWindowInteractor >::New( );
-  this->m_SeedHandleRepresentation =
-    vtkSmartPointer< vtkPointHandleRepresentation3D >::New( );
-  this->m_SeedRepresentation =
-    vtkSmartPointer< vtkSeedRepresentation >::New( );
-  this->m_SeedWidget = vtkSmartPointer<vtkSeedWidget>::New();
-
-  this->m_SeedHandleRepresentation->GetProperty()->SetColor( 1, 0, 1 );
-  this->m_SeedRepresentation->
-    SetHandleRepresentation( this->m_SeedHandleRepresentation );
-  this->m_SeedWidget->SetRepresentation( this->m_SeedRepresentation );
-
-  this->m_WidgetX->KeyPressActivationOff( );
-  this->m_WidgetY->KeyPressActivationOff( );
-  this->m_WidgetZ->KeyPressActivationOff( );
-  this->m_SeedWidget->KeyPressActivationOff( );
-
-  typedef
-    cpPlugins_Extensions_Visualization_InteractionModeCallback
-    _TInteractionCB;
-  vtkSmartPointer< _TInteractionCB > int_cb =
-    vtkSmartPointer< _TInteractionCB >::New( );
-  int_cb->WidgetX = this->m_WidgetX;
-  int_cb->WidgetY = this->m_WidgetY;
-  int_cb->WidgetZ = this->m_WidgetZ;
-  int_cb->SeedWidget = this->m_SeedWidget;
-  this->m_Interactor->AddObserver( vtkCommand::KeyPressEvent, int_cb );
-
-  typedef
-    cpExtensions::Visualization::SeedWidgetCorrector
-    _TCorrector;
-  vtkSmartPointer< _TCorrector > corr_cb =
-    vtkSmartPointer< _TCorrector >::New( );
-  corr_cb->Configure( this->m_Picker );
-  this->m_SeedWidget->AddObserver( vtkCommand::PlacePointEvent, corr_cb );
-}
-
-// -------------------------------------------------------------------------
-cpExtensions::Visualization::Image3DMPR::
-~Image3DMPR( )
-{
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::Image3DMPR::
-SetImage( vtkImageData* image )
-{
-  this->m_Image = image;
-
-  // Outline
-  this->m_Outline->SetBounds( this->m_Image->GetBounds( ) );
-  this->m_OutlineMapper->
-    SetInputConnection( this->m_Outline->GetOutputPort( ) );
-  this->m_OutlineActor->SetMapper( this->m_OutlineMapper );
-  this->m_OutlineActor->GetProperty( )->SetColor( 1, 1, 1 );
-
-  // Local picker
-  this->m_Picker->SetTolerance( 0.005 );
-
-  // Image planes
-  this->m_WidgetX->DisplayTextOn( );
-  this->m_WidgetX->SetInputData( this->m_Image );
-  this->m_WidgetX->SetPlaneOrientationToXAxes( );
-  this->m_WidgetX->SetSliceIndex( this->m_Image->GetExtent( )[ 0 ] );
-  this->m_WidgetX->SetPicker( this->m_Picker );
-  this->m_WidgetX->SetKeyPressActivationValue( 'x' );
-  this->m_WidgetX->GetPlaneProperty( )->SetLineWidth( 3 );
-  this->m_WidgetX->GetPlaneProperty( )->SetColor( 0, 1, 1 );
-
-  this->m_WidgetY->DisplayTextOn( );
-  this->m_WidgetY->SetInputData( this->m_Image );
-  this->m_WidgetY->SetPlaneOrientationToYAxes( );
-  this->m_WidgetY->SetSliceIndex( this->m_Image->GetExtent( )[ 2 ] );
-  this->m_WidgetY->SetPicker( this->m_Picker );
-  this->m_WidgetY->SetKeyPressActivationValue( 'y' );
-  this->m_WidgetY->GetPlaneProperty( )->SetColor( 1, 0, 1 );
-  this->m_WidgetY->GetPlaneProperty( )->SetLineWidth( 3 );
-  this->m_WidgetY->SetLookupTable( this->m_WidgetX->GetLookupTable( ) );
-
-  this->m_WidgetZ->DisplayTextOn( );
-  this->m_WidgetZ->SetInputData( this->m_Image );
-  this->m_WidgetZ->SetPlaneOrientationToZAxes( );
-  this->m_WidgetZ->SetSliceIndex( this->m_Image->GetExtent( )[ 4 ] );
-  this->m_WidgetZ->SetPicker( this->m_Picker );
-  this->m_WidgetZ->SetKeyPressActivationValue( 'z' );
-  this->m_WidgetZ->GetPlaneProperty( )->SetColor( 1, 1, 0 );
-  this->m_WidgetZ->GetPlaneProperty( )->SetLineWidth( 3 );
-  this->m_WidgetZ->SetLookupTable( this->m_WidgetX->GetLookupTable( ) );
-
-  // Rendering stuff
-  this->m_Window->AddRenderer( this->m_Renderer );
-  this->m_Interactor->SetRenderWindow( this->m_Window );
-
-  // Command
-  double spac[ 3 ];
-  this->m_Image->GetSpacing( spac );
-  double min_spacing = spac[ 0 ];
-  for( unsigned int d = 1; d < 3; d++ )
-    min_spacing = ( spac[ d ] < min_spacing )? spac[ d ]: min_spacing;
-
-  vtkInteractorStyleSwitch* iswitch =
-    dynamic_cast< vtkInteractorStyleSwitch* >(
-      this->m_Interactor->GetInteractorStyle( )
-      );
-  if( iswitch != NULL )
-    iswitch->SetCurrentStyleToTrackballCamera( );
-
-  // Add actors
-  this->m_Renderer->AddActor( this->m_OutlineActor );
-
-  // Prepare widgets
-  this->m_WidgetX->SetInteractor( this->m_Interactor );
-  this->m_WidgetY->SetInteractor( this->m_Interactor );
-  this->m_WidgetZ->SetInteractor( this->m_Interactor );
-  this->m_SeedWidget->SetInteractor( this->m_Interactor );
-
-  this->m_WidgetX->On( );
-  this->m_WidgetY->On( );
-  this->m_WidgetZ->On( );
-  this->m_SeedWidget->On( );
-  this->m_SeedWidget->ProcessEventsOff( );
-  this->m_Interactor->SetPicker( this->m_Picker );
-  /*
-    this->m_Interactor->GetPickingManager( )->AddPicker( this->m_Picker );
-    this->m_Interactor->GetPickingManager( )->EnabledOn( );
-  */
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::Image3DMPR::
-SetBackground( double r, double g, double b )
-{
-  this->m_Renderer->SetBackground( r, g, b );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::Image3DMPR::
-SetSize( unsigned int w, unsigned int h )
-{
-  this->m_Window->SetSize( w, h );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::Image3DMPR::
-SetWindowLevel( double w, double l )
-{
-  this->m_WidgetX->SetWindowLevel( w, l );
-  this->m_WidgetY->SetWindowLevel( w, l );
-  this->m_WidgetZ->SetWindowLevel( w, l );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::Image3DMPR::
-AddPolyData( vtkPolyData* pd, double opacity )
-{
-  unsigned int i = this->m_PolyDatas.size( );
-
-  this->m_PolyDatas.push_back( pd );
-  this->m_Mappers.push_back( vtkSmartPointer< vtkPolyDataMapper >::New( ) );
-  this->m_Actors.push_back( vtkSmartPointer< vtkActor >::New( ) );
-
-  this->m_Mappers[ i ]->SetInputData( pd );
-  this->m_Actors[ i ]->SetMapper( this->m_Mappers[ i ] );
-  this->m_Actors[ i ]->GetProperty( )->SetOpacity( opacity );
-  this->m_Actors[ i ]->GetProperty( )->SetLineWidth( 3 );
-  this->m_Actors[ i ]->GetProperty( )->SetPointSize( 5 );
-  this->m_Renderer->AddActor( this->m_Actors[ i ] );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::Image3DMPR::
-AddPolyData( vtkPolyData* pd, double r, double g, double b, double opacity )
-{
-  unsigned int i = this->m_PolyDatas.size( );
-
-  this->m_PolyDatas.push_back( pd );
-  this->m_Mappers.push_back( vtkSmartPointer< vtkPolyDataMapper >::New( ) );
-  this->m_Actors.push_back( vtkSmartPointer< vtkActor >::New( ) );
-
-  this->m_Mappers[ i ]->SetInputData( pd );
-  this->m_Mappers[ i ]->ScalarVisibilityOff( );
-  this->m_Actors[ i ]->SetMapper( this->m_Mappers[ i ] );
-  this->m_Actors[ i ]->GetProperty( )->SetColor( r, g, b );
-  this->m_Actors[ i ]->GetProperty( )->SetOpacity( opacity );
-  this->m_Actors[ i ]->GetProperty( )->SetLineWidth( 3 );
-  this->m_Actors[ i ]->GetProperty( )->SetPointSize( 5 );
-  this->m_Renderer->AddActor( this->m_Actors[ i ] );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::Image3DMPR::
-AddPolyData( vtkPolyData* pd, vtkLookupTable* lut, double opacity )
-{
-  unsigned int i = this->m_PolyDatas.size( );
-
-  this->m_PolyDatas.push_back( pd );
-  this->m_Mappers.push_back( vtkSmartPointer< vtkPolyDataMapper >::New( ) );
-  this->m_Actors.push_back( vtkSmartPointer< vtkActor >::New( ) );
-
-  this->m_Mappers[ i ]->SetInputData( pd );
-  this->m_Mappers[ i ]->SetLookupTable( lut );
-  this->m_Actors[ i ]->SetMapper( this->m_Mappers[ i ] );
-  this->m_Actors[ i ]->GetProperty( )->SetOpacity( opacity );
-  this->m_Renderer->AddActor( this->m_Actors[ i ] );
-}
-
-// -------------------------------------------------------------------------
-unsigned int cpExtensions::Visualization::Image3DMPR::
-GetNumberOfSeeds( ) const
-{
-  return( this->m_SeedRepresentation->GetNumberOfSeeds( ) );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::Image3DMPR::
-GetSeed( int n, double* s ) const
-{
-  vtkHandleWidget* hWdg = this->m_SeedWidget->GetSeed( n );
-  if( hWdg == NULL )
-    return;
-  vtkHandleRepresentation* hRep =
-    dynamic_cast< vtkHandleRepresentation* >( hWdg->GetRepresentation( ) );
-  if( hRep == NULL )
-    return;
-  hRep->GetWorldPosition( s );
-}
-
-// -------------------------------------------------------------------------
-unsigned int cpExtensions::Visualization::Image3DMPR::
-AddSeed( const double& x, const double& y, const double& z ) const
-{
-  double pos[ 3 ] = { x, y, z };
-
-  int hnd_id = this->m_SeedRepresentation->CreateHandle( pos );
-  vtkHandleWidget* hnd = this->m_SeedWidget->CreateNewHandle( );
-  this->m_SeedRepresentation->GetHandleRepresentation( hnd_id )->
-    SetWorldPosition( pos );
-  hnd->SetEnabled( 1 );
-
-  return( this->GetNumberOfSeeds( ) - 1 );
-}
-
-// -------------------------------------------------------------------------
-vtkRenderWindow* cpExtensions::Visualization::Image3DMPR::
-GetWindow( ) const
-{
-  return( this->m_Window );
-}
-
-// -------------------------------------------------------------------------
-vtkRenderer* cpExtensions::Visualization::Image3DMPR::
-GetRenderer( ) const
-{
-  return( this->m_Renderer );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::Image3DMPR::
-Start( )
-{
-  this->m_WidgetX->On( );
-  this->m_WidgetY->On( );
-  this->m_WidgetZ->On( );
-
-  this->m_Renderer->ResetCamera( );
-  this->m_Interactor->Initialize( );
-  this->m_Interactor->Start( );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::Image3DMPR::
-Render( )
-{
-  this->m_Window->Render( );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Visualization/Image3DMPR.h b/lib/cpExtensions/Visualization/Image3DMPR.h
deleted file mode 100644 (file)
index 2cbb9b7..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-#ifndef __CPEXTENSIONS__VISUALIZATION__IMAGE3DMPR__H__
-#define __CPEXTENSIONS__VISUALIZATION__IMAGE3DMPR__H__
-
-#include <cpExtensions/cpExtensions_Export.h>
-
-#include <vtkActor.h>
-#include <vtkCellPicker.h>
-#include <vtkHandleWidget.h>
-#include <vtkImageData.h>
-#include <vtkImagePlaneWidget.h>
-#include <vtkOutlineSource.h>
-#include <vtkPointHandleRepresentation3D.h>
-#include <vtkPolyDataMapper.h>
-#include <vtkProperty.h>
-#include <vtkRenderer.h>
-#include <vtkRendererCollection.h>
-#include <vtkRenderWindow.h>
-#include <vtkRenderWindowInteractor.h>
-#include <vtkSeedRepresentation.h>
-#include <vtkSeedWidget.h>
-#include <vtkSmartPointer.h>
-#include <vtkSphereSource.h>
-#include <vtkLookupTable.h>
-
-namespace cpExtensions
-{
-  namespace Visualization
-  {
-    /**
-     */
-    class cpExtensions_EXPORT Image3DMPR
-    {
-    public:
-      Image3DMPR( );
-      virtual ~Image3DMPR( );
-
-      void SetImage( vtkImageData* image );
-      void SetBackground( double r, double g, double b );
-      void SetSize( unsigned int w, unsigned int h );
-      void SetWindowLevel( double w, double l );
-
-      void AddPolyData( vtkPolyData* pd, double opacity = double( 1 ) );
-      void AddPolyData(
-        vtkPolyData* pd,
-        double r, double g, double b, double opacity = double( 1 )
-        );
-      void AddPolyData(
-        vtkPolyData* pd,
-        vtkLookupTable* lut,
-        double opacity = double( 1 )
-        );
-
-      unsigned int GetNumberOfSeeds( ) const;
-      void GetSeed( int n, double* s ) const;
-      unsigned int AddSeed(
-        const double& x, const double& y, const double& z
-        ) const;
-
-      vtkRenderWindow* GetWindow( ) const;
-      vtkRenderer* GetRenderer( ) const;
-
-      void Start( );
-      void Render( );
-
-    protected:
-      vtkSmartPointer< vtkImageData >              m_Image;
-      vtkSmartPointer< vtkOutlineSource >          m_Outline;
-      vtkSmartPointer< vtkPolyDataMapper >         m_OutlineMapper;
-      vtkSmartPointer< vtkActor >                  m_OutlineActor;
-      vtkSmartPointer< vtkCellPicker >             m_Picker;
-      vtkSmartPointer< vtkImagePlaneWidget >       m_WidgetX;
-      vtkSmartPointer< vtkImagePlaneWidget >       m_WidgetY;
-      vtkSmartPointer< vtkImagePlaneWidget >       m_WidgetZ;
-      vtkSmartPointer< vtkRenderer >               m_Renderer;
-      vtkSmartPointer< vtkRenderWindow >           m_Window;
-      vtkSmartPointer< vtkRenderWindowInteractor > m_Interactor;
-
-      std::vector< vtkSmartPointer< vtkPolyData > >       m_PolyDatas;
-      std::vector< vtkSmartPointer< vtkPolyDataMapper > > m_Mappers;
-      std::vector< vtkSmartPointer< vtkActor > >          m_Actors;
-
-      // Create the widget and its representation
-      vtkSmartPointer< vtkPointHandleRepresentation3D >
-        m_SeedHandleRepresentation;
-      vtkSmartPointer< vtkSeedRepresentation > m_SeedRepresentation;
-      vtkSmartPointer< vtkSeedWidget >         m_SeedWidget;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPEXTENSIONS__VISUALIZATION__IMAGE3DMPR__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Visualization/ImageBlender.cxx b/lib/cpExtensions/Visualization/ImageBlender.cxx
deleted file mode 100644 (file)
index 44a08ab..0000000
+++ /dev/null
@@ -1,239 +0,0 @@
-#include <cpExtensions/Visualization/ImageBlender.h>
-
-#include <vtkDataObject.h>
-#include <vtkImageData.h>
-#include <vtkImageIterator.h>
-#include <vtkImageProgressIterator.h>
-#include <vtkInformation.h>
-#include <vtkInformationVector.h>
-
-// -------------------------------------------------------------------------
-cpExtensions::Visualization::ImageBlender::
-Self* cpExtensions::Visualization::ImageBlender::
-New( )
-{
-  return( new Self( ) );
-}
-
-// -------------------------------------------------------------------------
-unsigned int cpExtensions::Visualization::ImageBlender::
-GetNumberOfInputs( )
-{
-  unsigned int np = this->GetNumberOfInputPorts( );
-  unsigned int ni = 0;
-  for( unsigned int p = 0; p < np; ++p )
-    ni += this->GetNumberOfInputConnections( p );
-  return( ni );
-}
-
-// -------------------------------------------------------------------------
-cpExtensions::Visualization::ImageBlender::
-ImageBlender( )
-  : Superclass( )
-{
-  this->SetNumberOfInputPorts( 1 );
-}
-
-// -------------------------------------------------------------------------
-cpExtensions::Visualization::ImageBlender::
-~ImageBlender( )
-{
-}
-
-// -------------------------------------------------------------------------
-int cpExtensions::Visualization::ImageBlender::
-RequestInformation(
-  vtkInformation* request,
-  vtkInformationVector** inputVector,
-  vtkInformationVector* outputVector
-  )
-{
-  if( this->GetNumberOfInputConnections( 0 ) == 0 )
-    return( 0 );
-
-  vtkDataObject::SetPointDataActiveScalarInfo(
-    outputVector->GetInformationObject( 0 ),
-    VTK_UNSIGNED_CHAR,
-    1
-    );
-  return( 1 );
-}
-
-// -------------------------------------------------------------------------
-int cpExtensions::Visualization::ImageBlender::
-RequestData(
-  vtkInformation* request,
-  vtkInformationVector** inputVector,
-  vtkInformationVector* outputVector
-  )
-{
-  this->m_Ranges.clear( );
-  for( int i = 0; i < this->GetNumberOfInputPorts( ); ++i )
-  {
-    vtkInformationVector* portInfo = inputVector[ i ];
-    for( int j = 0; j < portInfo->GetNumberOfInformationObjects( ); ++j )
-    {
-      vtkInformation* info = portInfo->GetInformationObject( j );
-      vtkImageData* image = vtkImageData::SafeDownCast(
-        info->Get( vtkDataObject::DATA_OBJECT( ) )
-        );
-      if( image != NULL )
-      {
-        double r[ 2 ];
-        image->GetScalarRange( r );
-        this->m_Ranges.push_back( r[ 0 ] );
-        this->m_Ranges.push_back( r[ 1 ] );
-      }
-      else
-      {
-        this->m_Ranges.push_back( double( 0 ) );
-        this->m_Ranges.push_back( double( 0 ) );
-
-      } // fi
-
-    } // rof
-
-  } // rof
-  return(
-    this->Superclass::RequestData( request, inputVector, outputVector )
-    );
-}
-
-// -------------------------------------------------------------------------
-// Description:
-// This templated function executes the filter for any type of data.
-template< class T >
-void cpExtensions_Visualization_ImageBlender_Execute(
-  cpExtensions::Visualization::ImageBlender* self,
-  vtkImageData** inDatas, int numInputs,
-  const std::vector< double >& ranges, vtkImageData* outData,
-  int outExt[ 6 ], int id, T* really_not_used
-  )
-{
-  vtkImageIterator< T > inItsFast[ 256 ];
-  T* inSIFast[ 256 ];
-  vtkImageProgressIterator< T > outIt( outData, outExt, self, id );
-  vtkImageIterator< T >* inIts;
-  T** inSI;
-  if( numInputs < 256 )
-  {
-    inIts = inItsFast;
-    inSI = inSIFast;
-  }
-  else
-  {
-    inIts = new vtkImageIterator< T >[ numInputs ];
-    inSI = new T*[ numInputs ];
-
-  } // fi
-
-  // Loop through all input ImageData to initialize iterators
-  for( int i = 0; i < numInputs; ++i )
-    inIts[ i ].Initialize( inDatas[ i ], outExt );
-
-  // Loop through output pixels
-  while( !outIt.IsAtEnd( ) )
-  {
-    for( int j = 0; j < numInputs; ++j )
-      inSI[ j ] = inIts[ j ].BeginSpan( );
-
-    T* outSI = outIt.BeginSpan( );
-    T* outSIEnd = outIt.EndSpan( );
-
-    // Pixel operation
-    while( outSI != outSIEnd )
-    {
-      // Input 0 is ignored: it is just used to guarantee sizes all over
-      // the result
-      double vmax = double( 0 );
-      for( int k = 1; k < numInputs; ++k )
-      {
-        double v =
-          ( ( double( k ) * double( *inSI[ k ] ) ) - ranges[ k << 1 ] ) /
-          ( ranges[ ( k << 1 ) + 1 ] - ranges[ k << 1 ] );
-        vmax = ( vmax < v )? v: vmax;
-
-      } // rof
-      *outSI = static_cast< T >( vmax );
-      outSI++;
-      for( int l = 0; l < numInputs; ++l )
-        inSI[ l ]++;
-
-    } // elihw
-    for( int j = 0; j < numInputs; ++j )
-      inIts[ j ].NextSpan( );
-    outIt.NextSpan( );
-
-  } // elihw
-
-  if( numInputs >= 256)
-  {
-    delete [] inIts;
-    delete [] inSI;
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageBlender::
-ThreadedRequestData(
-  vtkInformation* request,
-  vtkInformationVector** inputVector,
-  vtkInformationVector* outputVector,
-  vtkImageData*** inData, vtkImageData** outData,
-  int outExt[ 6 ], int id
-  )
-{
-  if( inData[ 0 ][ 0 ] == NULL )
-  {
-    vtkErrorMacro( << "Input " << 0 << " must be specified." );
-    return;
-
-  } // fi
-
-  int numInputs = this->GetNumberOfInputConnections( 0 );
-  int scalarType = inData[ 0 ][ 0 ]->GetScalarType( );
-  int numComp = inData[ 0 ][ 0 ]->GetNumberOfScalarComponents( );
-  for( int i = 1; i < numInputs; ++i )
-  {
-    int otherType = inData[ 0 ][ i ]->GetScalarType( );
-    int otherComp = inData[ 0 ][ i ]->GetNumberOfScalarComponents( );
-    if( otherType != scalarType || otherComp != numComp )
-    {
-      if( id == 0 )
-        vtkErrorMacro(
-          "ThreadedRequestData: Input " << i
-          << " has " << otherComp << " components of type "
-          << otherType << ", but input 0 has " << numComp
-          << " components of type " << scalarType
-          );
-      return;
-
-    } // fi
-
-  } // rof
-
-  switch( scalarType )
-  {
-    vtkTemplateMacro(
-      cpExtensions_Visualization_ImageBlender_Execute(
-        this, inData[ 0 ], numInputs, this->m_Ranges,
-        outData[ 0 ], outExt, id, static_cast< VTK_TT* >( 0 )
-        )
-      );
-  default:
-    if( id == 0 )
-      vtkErrorMacro( << "Execute: Unknown ScalarType" );
-    return;
-  } // hctiws
-}
-
-// -------------------------------------------------------------------------
-int cpExtensions::Visualization::ImageBlender::
-FillInputPortInformation( int i, vtkInformation* info )
-{
-  info->Set( vtkAlgorithm::INPUT_IS_REPEATABLE( ), 1 );
-  return( this->Superclass::FillInputPortInformation( i,info ) );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Visualization/ImageBlender.h b/lib/cpExtensions/Visualization/ImageBlender.h
deleted file mode 100644 (file)
index e4bf27c..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-#ifndef __CPEXTENSIONS__VISUALIZATION__IMAGEBLENDER__H__
-#define __CPEXTENSIONS__VISUALIZATION__IMAGEBLENDER__H__
-
-#include <cpExtensions/cpExtensions_Export.h>
-
-#include <vector>
-
-#include <vtkThreadedImageAlgorithm.h>
-
-namespace cpExtensions
-{
-  namespace Visualization
-  {
-    /**
-     * @note: Based on vtkImageWeightedSum
-     */
-    class cpExtensions_EXPORT ImageBlender
-      : public vtkThreadedImageAlgorithm
-    {
-    public:
-      typedef ImageBlender Self;
-      vtkTypeMacro( ImageBlender, vtkThreadedImageAlgorithm );
-
-    public:
-      static Self* New( );
-
-      unsigned int GetNumberOfInputs( );
-
-    protected:
-      ImageBlender( );
-      virtual ~ImageBlender( );
-
-      int RequestInformation(
-        vtkInformation* request,
-        vtkInformationVector** inputVector,
-        vtkInformationVector* outputVector
-        );
-      int RequestData(
-        vtkInformation* request,
-        vtkInformationVector** inputVector,
-        vtkInformationVector* outputVector
-        );
-      void ThreadedRequestData(
-        vtkInformation* request,
-        vtkInformationVector** inputVector,
-        vtkInformationVector* outputVector,
-        vtkImageData*** inData, vtkImageData** outData,
-        int outExt[ 6 ], int id
-        );
-      int FillInputPortInformation( int i, vtkInformation* info );
-
-    private:
-      // Purposely not implemented.
-      ImageBlender( const Self& other );
-      void operator=( const Self& other );
-
-    protected:
-      std::vector< double > m_Ranges;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif //  __CPEXTENSIONS__VISUALIZATION__IMAGEBLENDER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Visualization/ImageSliceActors.cxx b/lib/cpExtensions/Visualization/ImageSliceActors.cxx
deleted file mode 100644 (file)
index 024fbe0..0000000
+++ /dev/null
@@ -1,1323 +0,0 @@
-#include <cpExtensions/Visualization/ImageSliceActors.h>
-
-#include <cstring>
-#include <sstream>
-
-#include <vtkAlgorithmOutput.h>
-#include <vtkCamera.h>
-#include <vtkCellArray.h>
-#include <vtkImageData.h>
-#include <vtkImageProperty.h>
-#include <vtkPoints.h>
-#include <vtkProperty.h>
-#include <vtkRenderer.h>
-#include <vtkRendererCollection.h>
-#include <vtkRenderWindow.h>
-#include <vtkRenderWindowInteractor.h>
-#include <vtkTextProperty.h>
-
-// -------------------------------------------------------------------------
-double cpExtensions::Visualization::ImageSliceActors::
-m_PlaneColors[ 3 ][ 3 ] =
-{
-  { 1, 0, 0 },
-  { 0, 1, 0 },
-  { 0, 0, 1 }
-};
-
-// -------------------------------------------------------------------------
-cpExtensions::Visualization::ImageSliceActors*
-cpExtensions::Visualization::ImageSliceActors::
-New( )
-{
-  return( new Self( ) );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-SetAxis( int axis )
-{
-  this->m_ImageMapper->SetOrientation( axis );
-  this->m_BlenderMapper->SetOrientation( axis );
-  this->m_ImageMapper->Update( );
-  this->m_BlenderMapper->Update( );
-  this->SetSliceNumber( this->GetSliceNumberMinValue( ) );
-  this->m_ImageActor->Modified( );
-  this->m_BlenderActor->Modified( );
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-SetInputConnection( vtkAlgorithmOutput* aout )
-{
-  // Get input vtkImageData
-  if( aout == NULL )
-    return;
-
-  // Create mapper and actors
-  this->m_ImageMapper->SetInputConnection( aout );
-  this->_ConfigureInputImage( );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-SetInputImage( vtkImageData* data )
-{
-  // Get input vtkImageData
-  if( data == NULL )
-    return;
-
-  // Create mapper and actors
-  this->m_ImageMapper->SetInputData( data );
-  this->_ConfigureInputImage( );
-}
-
-// -------------------------------------------------------------------------
-int cpExtensions::Visualization::ImageSliceActors::
-AddBinaryConnection(
-  vtkAlgorithmOutput* aout,
-  const double& r, const double& g, const double& b
-  )
-{
-  if( aout == NULL )
-    return( -1 );
-  this->m_Blender->AddInputConnection( aout );
-  this->_ConfigureBinaryImage( r, g, b );
-  return( this->m_Blender->GetNumberOfInputs( ) - 1 );
-}
-
-// -------------------------------------------------------------------------
-int cpExtensions::Visualization::ImageSliceActors::
-AddBinaryImage(
-  vtkImageData* data,
-  const double& r, const double& g, const double& b
-  )
-{
-  if( data == NULL )
-    return( -1 );
-  this->m_Blender->AddInputData( data );
-  this->_ConfigureBinaryImage( r, g, b );
-  return( this->m_Blender->GetNumberOfInputs( ) - 1 );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-Clear( )
-{
-  // Unbind from container
-  this->RemoveAllItems( );
-
-  // Filters and mappers
-  this->m_ImageMapper   = vtkSmartPointer< vtkImageSliceMapper >::New( );
-  this->m_ImageActor    = vtkSmartPointer< vtkImageActor >::New( );
-  this->m_Blender       = vtkSmartPointer< TBlender >::New( );
-  this->m_BlenderMapper = vtkSmartPointer< vtkImageSliceMapper >::New( );
-  this->m_BlenderLUT    = vtkSmartPointer< vtkLookupTable >::New( );
-  this->m_BlenderActor  = vtkSmartPointer< vtkImageActor >::New( );
-
-  this->m_ImageActor->SetMapper( this->m_ImageMapper );
-  this->m_BlenderMapper->
-    SetInputConnection( this->m_Blender->GetOutputPort( ) );
-
-  this->m_BlenderLUT->SetNumberOfTableValues( 1 );
-  this->m_BlenderLUT->SetTableRange( 0, 1 );
-  this->m_BlenderLUT->SetTableValue( 0, 0, 0, 0, 0 );
-  this->m_BlenderLUT->Build( );
-
-  this->m_BlenderActor->SetMapper( this->m_BlenderMapper );
-  this->m_BlenderActor->GetProperty( )->SetLookupTable( this->m_BlenderLUT );
-  this->m_BlenderActor->GetProperty( )->UseLookupTableScalarRangeOn( );
-
-  // White cursor
-  vtkSmartPointer< vtkPoints > cursor_points =
-    vtkSmartPointer< vtkPoints >::New( );
-  vtkSmartPointer< vtkCellArray > cursor_lines =
-    vtkSmartPointer< vtkCellArray >::New( );
-  cursor_points->InsertNextPoint( 0, 0, 0 );
-  cursor_points->InsertNextPoint( 0, 0, 0 );
-  cursor_points->InsertNextPoint( 0, 0, 0 );
-  cursor_points->InsertNextPoint( 0, 0, 0 );
-  cursor_lines->InsertNextCell( 2 );
-  cursor_lines->InsertCellPoint( 0 );
-  cursor_lines->InsertCellPoint( 1 );
-  cursor_lines->InsertNextCell( 2 );
-  cursor_lines->InsertCellPoint( 2 );
-  cursor_lines->InsertCellPoint( 3 );
-
-  this->m_Cursor = vtkSmartPointer< vtkPolyData >::New( );
-  this->m_CursorMapper = vtkSmartPointer< vtkPolyDataMapper >::New( );
-  this->m_CursorActor = vtkSmartPointer< vtkActor >::New( );
-
-  this->m_Cursor->SetPoints( cursor_points );
-  this->m_Cursor->SetLines( cursor_lines );
-  this->m_CursorMapper->SetInputData( this->m_Cursor );
-  this->m_CursorActor->SetMapper( this->m_CursorMapper );
-  this->m_CursorActor->GetProperty( )->SetColor( 1, 1, 0 );
-  this->m_CursorActor->GetProperty( )->SetLineWidth( 2 );
-
-  // Plane intersections
-  this->m_Axis1       = vtkSmartPointer< vtkPolyData >::New( );
-  this->m_Axis1Mapper = vtkSmartPointer< vtkPolyDataMapper >::New( );
-  this->m_Axis1Actor  = vtkSmartPointer< vtkActor >::New( );
-
-  vtkSmartPointer< vtkPoints > h_points =
-    vtkSmartPointer< vtkPoints >::New( );
-  vtkSmartPointer< vtkCellArray > h_lines =
-    vtkSmartPointer< vtkCellArray >::New( );
-  h_points->InsertNextPoint( 0, 0, 0 );
-  h_points->InsertNextPoint( 0, 0, 0 );
-  h_lines->InsertNextCell( 2 );
-  h_lines->InsertCellPoint( 0 );
-  h_lines->InsertCellPoint( 1 );
-  this->m_Axis1->SetPoints( h_points );
-  this->m_Axis1->SetLines( h_lines );
-  this->m_Axis1Mapper->SetInputData( this->m_Axis1 );
-  this->m_Axis1Actor->SetMapper( this->m_Axis1Mapper );
-
-  this->m_Axis2       = vtkSmartPointer< vtkPolyData >::New( );
-  this->m_Axis2Mapper = vtkSmartPointer< vtkPolyDataMapper >::New( );
-  this->m_Axis2Actor  = vtkSmartPointer< vtkActor >::New( );
-
-  vtkSmartPointer< vtkPoints > v_points =
-    vtkSmartPointer< vtkPoints >::New( );
-  vtkSmartPointer< vtkCellArray > v_lines =
-    vtkSmartPointer< vtkCellArray >::New( );
-  v_points->InsertNextPoint( 0, 0, 0 );
-  v_points->InsertNextPoint( 0, 0, 0 );
-  v_lines->InsertNextCell( 2 );
-  v_lines->InsertCellPoint( 0 );
-  v_lines->InsertCellPoint( 1 );
-  this->m_Axis2->SetPoints( v_points );
-  this->m_Axis2->SetLines( v_lines );
-  this->m_Axis2Mapper->SetInputData( this->m_Axis2 );
-  this->m_Axis2Actor->SetMapper( this->m_Axis2Mapper );
-
-  // Plane
-  this->m_Plane       = vtkSmartPointer< vtkPolyData >::New( );
-  this->m_PlaneMapper = vtkSmartPointer< vtkPolyDataMapper >::New( );
-  this->m_PlaneActor  = vtkSmartPointer< vtkActor >::New( );
-
-  vtkSmartPointer< vtkPoints > plane_points =
-    vtkSmartPointer< vtkPoints >::New( );
-  vtkSmartPointer< vtkCellArray > plane_lines =
-    vtkSmartPointer< vtkCellArray >::New( );
-  plane_points->InsertNextPoint( 0, 0, 0 );
-  plane_points->InsertNextPoint( 0, 1, 0 );
-  plane_points->InsertNextPoint( 1, 1, 0 );
-  plane_points->InsertNextPoint( 1, 0, 0 );
-  plane_lines->InsertNextCell( 5 );
-  plane_lines->InsertCellPoint( 0 );
-  plane_lines->InsertCellPoint( 1 );
-  plane_lines->InsertCellPoint( 2 );
-  plane_lines->InsertCellPoint( 3 );
-  plane_lines->InsertCellPoint( 0 );
-  this->m_Plane->SetPoints( plane_points );
-  this->m_Plane->SetLines( plane_lines );
-
-  this->m_PlaneMapper->SetInputData( this->m_Plane );
-  this->m_PlaneActor->SetMapper( this->m_PlaneMapper );
-
-  // Text actor
-  this->m_TextActor = vtkSmartPointer< vtkTextActor >::New( );
-  this->m_TextBuffer[ 0 ] = '\0';
-  this->m_TextActor->SetTextScaleModeToNone( );
-  vtkTextProperty* textprop = this->m_TextActor->GetTextProperty( );
-  textprop->SetColor( 1, 1, 0 );
-  textprop->SetFontFamilyToCourier( );
-  textprop->SetFontSize( 18 );
-  textprop->BoldOff( );
-  textprop->ItalicOff( );
-  textprop->ShadowOff( );
-  textprop->SetJustificationToLeft( );
-  textprop->SetVerticalJustificationToBottom( );
-  vtkCoordinate* coord = this->m_TextActor->GetPositionCoordinate( );
-  coord->SetCoordinateSystemToNormalizedViewport( );
-  coord->SetValue( 0.01, 0.01 );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-AssociateSlice( Self* slice )
-{
-  this->m_AssociatedSlices.push_back( slice );
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-vtkInteractorStyle* cpExtensions::Visualization::ImageSliceActors::
-GetStyle( )
-{
-  return( this->m_Style.GetPointer( ) );
-}
-
-// -------------------------------------------------------------------------
-const vtkInteractorStyle* cpExtensions::Visualization::ImageSliceActors::
-GetStyle( ) const
-{
-  return( this->m_Style.GetPointer( ) );
-}
-
-// -------------------------------------------------------------------------
-vtkImageData* cpExtensions::Visualization::ImageSliceActors::
-GetInputImage( )
-{
-  if( this->m_ImageMapper.GetPointer( ) != NULL )
-    return( this->m_ImageMapper->GetInput( ) );
-  else
-    return( NULL );
-}
-
-// -------------------------------------------------------------------------
-const vtkImageData* cpExtensions::Visualization::ImageSliceActors::
-GetInputImage( ) const
-{
-  if( this->m_ImageMapper.GetPointer( ) != NULL )
-    return( this->m_ImageMapper->GetInput( ) );
-  else
-    return( NULL );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-PushActorsInto( vtkRenderWindow* window, bool force_style )
-{
-  this->m_Window = window;
-  if( window == NULL )
-    return;
-  vtkRenderWindowInteractor* rwi = window->GetInteractor( );
-  vtkRenderer* renderer = window->GetRenderers( )->GetFirstRenderer( );
-  if( rwi == NULL || renderer == NULL )
-    return;
-
-  // Update style
-  if( this->m_Style.GetPointer( ) != NULL && force_style )
-    rwi->SetInteractorStyle( this->m_Style );
-
-  // Update actors
-  renderer->AddViewProp( this->m_ImageActor );
-  renderer->AddViewProp( this->m_BlenderActor );
-  if( force_style )
-  {
-    renderer->AddViewProp( this->m_CursorActor );
-    renderer->AddViewProp( this->m_PlaneActor );
-    renderer->AddViewProp( this->m_TextActor );
-    renderer->AddViewProp( this->m_Axis1Actor );
-    renderer->AddViewProp( this->m_Axis2Actor );
-
-  } // fi
-
-  // Configure camera
-  vtkCamera* camera = renderer->GetActiveCamera( );
-  if( camera != NULL && force_style )
-  {
-    // Parallel projections are better when displaying 2D images
-    int axis = this->GetAxis( );
-    camera->ParallelProjectionOn( );
-    camera->SetFocalPoint( double( 0 ), double( 0 ), double( 0 ) );
-    if( axis == 0 )
-    {
-      camera->SetPosition( double( 1 ), double( 0 ), double( 0 ) );
-      camera->SetViewUp  ( double( 0 ), double( 0 ), double( 1 ) );
-    }
-    else if( axis == 1 )
-    {
-      camera->SetPosition( double( 0 ), double( -1 ), double( 0 ) );
-      camera->SetViewUp  ( double( 0 ), double(  0 ), double( 1 ) );
-    }
-    else // if( axis == 2 )
-    {
-      camera->SetPosition( double( 0 ), double(  0 ), double( -1 ) );
-      camera->SetViewUp  ( double( 0 ), double( -1 ), double(  0 ) );
-
-    } // fi
-
-  } // fi
-  renderer->ResetCamera( );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-PopActorsFrom( vtkRenderWindow* window )
-{
-  vtkRenderWindowInteractor* rwi = window->GetInteractor( );
-  vtkRenderer* renderer = window->GetRenderers( )->GetFirstRenderer( );
-  if( renderer != NULL )
-  {
-    renderer->RemoveViewProp( this->m_ImageActor );
-    renderer->RemoveViewProp( this->m_BlenderActor );
-    renderer->RemoveViewProp( this->m_CursorActor );
-    renderer->RemoveViewProp( this->m_PlaneActor );
-    renderer->RemoveViewProp( this->m_TextActor );
-    renderer->RemoveViewProp( this->m_Axis1Actor );
-    renderer->RemoveViewProp( this->m_Axis2Actor );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-unsigned int cpExtensions::Visualization::ImageSliceActors::
-GetNumberOfImages( ) const
-{
-  return( this->m_Blender->GetNumberOfInputs( ) );
-}
-
-// -------------------------------------------------------------------------
-vtkImageActor* cpExtensions::Visualization::ImageSliceActors::
-GetImageActor( )
-{
-  return( this->m_ImageActor );
-}
-
-// -------------------------------------------------------------------------
-const vtkImageActor* cpExtensions::Visualization::ImageSliceActors::
-GetImageActor( ) const
-{
-  return( this->m_ImageActor );
-}
-
-// -------------------------------------------------------------------------
-vtkImageActor* cpExtensions::Visualization::ImageSliceActors::
-GetBinaryActor( )
-{
-  return( this->m_BlenderActor );
-}
-
-// -------------------------------------------------------------------------
-const vtkImageActor* cpExtensions::Visualization::ImageSliceActors::
-GetBinaryActor( ) const
-{
-  return( this->m_BlenderActor );
-}
-
-// -------------------------------------------------------------------------
-vtkTextActor* cpExtensions::Visualization::ImageSliceActors::
-GetTextActor( )
-{
-  return( this->m_TextActor );
-}
-
-// -------------------------------------------------------------------------
-const vtkTextActor* cpExtensions::Visualization::ImageSliceActors::
-GetTextActor( ) const
-{
-  return( this->m_TextActor );
-}
-
-// -------------------------------------------------------------------------
-vtkActor* cpExtensions::Visualization::ImageSliceActors::
-GetPlaneActor( )
-{
-  return( this->m_PlaneActor );
-}
-
-// -------------------------------------------------------------------------
-const vtkActor* cpExtensions::Visualization::ImageSliceActors::
-GetPlaneActor( ) const
-{
-  return( this->m_PlaneActor );
-}
-
-// -------------------------------------------------------------------------
-vtkPlane* cpExtensions::Visualization::ImageSliceActors::
-GetPlaneFunction( )
-{
-  if( this->m_ImageMapper.GetPointer( ) != NULL )
-    return( this->m_ImageMapper->GetSlicePlane( ) );
-  else
-    return( NULL );
-}
-
-// -------------------------------------------------------------------------
-const vtkPlane* cpExtensions::Visualization::ImageSliceActors::
-GetPlaneFunction( ) const
-{
-  if( this->m_ImageMapper.GetPointer( ) != NULL )
-    return( this->m_ImageMapper->GetSlicePlane( ) );
-  else
-    return( NULL );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-SetInterpolate( bool v )
-{
-  if( this->m_Interpolate != v )
-  {
-    this->m_ImageActor->SetInterpolate( v );
-    this->m_BlenderActor->SetInterpolate( v );
-    this->m_Interpolate = v;
-    this->Modified( );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-InterpolateOn( )
-{
-  this->SetInterpolate( true );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-InterpolateOff( )
-{
-  this->SetInterpolate( false );
-}
-
-// -------------------------------------------------------------------------
-double* cpExtensions::Visualization::ImageSliceActors::
-GetDisplayBounds( ) const
-{
-  if( this->m_ImageActor.GetPointer( ) != NULL )
-    return( this->m_ImageActor->GetDisplayBounds( ) );
-  else
-    return( NULL );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-GetDisplayBounds( double bounds[ 6 ] ) const
-{
-  if( this->m_ImageActor.GetPointer( ) == NULL )
-  {
-    bounds[ 0 ] = bounds[ 2 ] = bounds[ 4 ] = double(  0 );
-    bounds[ 1 ] = bounds[ 3 ] = bounds[ 5 ] = double( -1 );
-  }
-  else
-    this->m_ImageActor->GetDisplayBounds( bounds );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-ResetCursor( )
-{
-  if( this->m_ImageMapper.GetPointer( ) != NULL )
-  {
-    double pos[] =
-      {
-        this->m_VisibleBounds[ 0 ],
-        this->m_VisibleBounds[ 2 ],
-        this->m_VisibleBounds[ 4 ]
-      };
-    this->SetCursor( pos );
-  }
-  else
-  {
-    vtkPoints* points = this->m_Cursor->GetPoints( );
-    points->SetPoint( 0, 0, 0, 0 );
-    points->SetPoint( 1, 0, 0, 0 );
-    points->SetPoint( 2, 0, 0, 0 );
-    points->SetPoint( 3, 0, 0, 0 );
-    this->m_Cursor->Modified( );
-    this->m_CursorMapper->Modified( );
-    this->m_CursorActor->Modified( );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-SetCursor( double pos[ 3 ] )
-{
-  if( this->m_ImageMapper.GetPointer( ) == NULL )
-    return;
-
-  // Get ordered axes
-  int a0 = this->GetAxis( );
-  int a1 = ( a0 + 1 ) % 3;
-  int a2 = ( a0 + 2 ) % 3;
-  int ma0 = a0 << 1;
-  int ma1 = a1 << 1;
-  int ma2 = a2 << 1;
-
-  // Update cross
-  double* bounds = this->m_VisibleBounds;
-  double p0[ 3 ], p1[ 3 ], p2[ 3 ], p3[ 3 ];
-
-  p0[ a2 ] = p1[ a2 ] = pos[ a2 ];
-  p2[ a1 ] = p3[ a1 ] = pos[ a1 ];
-  p0[ a0 ] = p1[ a0 ] = p2[ a0 ] = p3[ a0 ] = bounds[ ma0 ];
-  p0[ a1 ] = bounds[ ma1 ];
-  p1[ a1 ] = bounds[ ma1 + 1 ];
-  p2[ a2 ] = bounds[ ma2 ];
-  p3[ a2 ] = bounds[ ma2 + 1 ];
-
-  vtkPoints* points = this->m_Cursor->GetPoints( );
-  points->SetPoint( 0, p0 );
-  points->SetPoint( 1, p1 );
-  points->SetPoint( 2, p2 );
-  points->SetPoint( 3, p3 );
-  this->m_Cursor->Modified( );
-  this->m_CursorMapper->Modified( );
-  this->m_CursorActor->Modified( );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-ResetAxesCursor( )
-{
-  if( this->m_ImageMapper.GetPointer( ) != NULL )
-  {
-    double pos[] =
-      {
-        this->m_VisibleBounds[ 0 ],
-        this->m_VisibleBounds[ 2 ],
-        this->m_VisibleBounds[ 4 ]
-      };
-    this->SetAxesCursor( pos );
-  }
-  else
-  {
-    vtkPoints* points = this->m_Axis1->GetPoints( );
-    points->SetPoint( 0, 0, 0, 0 );
-    points->SetPoint( 1, 0, 0, 0 );
-    this->m_Axis1->Modified( );
-    this->m_Axis1Mapper->Modified( );
-    this->m_Axis1Actor->Modified( );
-
-    points = this->m_Axis2->GetPoints( );
-    points->SetPoint( 0, 0, 0, 0 );
-    points->SetPoint( 1, 0, 0, 0 );
-    this->m_Axis2->Modified( );
-    this->m_Axis2Mapper->Modified( );
-    this->m_Axis2Actor->Modified( );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-SetAxesCursor( double pos[ 3 ] )
-{
-  if( this->m_ImageMapper.GetPointer( ) == NULL )
-    return;
-
-  // Get ordered axes
-  int a0 = this->GetAxis( );
-  int a1 = ( a0 + 1 ) % 3;
-  int a2 = ( a0 + 2 ) % 3;
-  int ma0 = a0 << 1;
-  int ma1 = a1 << 1;
-  int ma2 = a2 << 1;
-
-  // Update cross
-  double* bounds = this->m_VisibleBounds;
-  double p0[ 3 ], p1[ 3 ], p2[ 3 ], p3[ 3 ];
-
-  p0[ a2 ] = p1[ a2 ] = pos[ a2 ];
-  p2[ a1 ] = p3[ a1 ] = pos[ a1 ];
-  p0[ a0 ] = p1[ a0 ] = p2[ a0 ] = p3[ a0 ] = bounds[ ma0 ];
-  p0[ a1 ] = bounds[ ma1 ];
-  p1[ a1 ] = bounds[ ma1 + 1 ];
-  p2[ a2 ] = bounds[ ma2 ];
-  p3[ a2 ] = bounds[ ma2 + 1 ];
-
-  vtkPoints* points1 = this->m_Axis1->GetPoints( );
-  points1->SetPoint( 0, p2 );
-  points1->SetPoint( 1, p3 );
-
-  vtkPoints* points2 = this->m_Axis2->GetPoints( );
-  points2->SetPoint( 0, p0 );
-  points2->SetPoint( 1, p1 );
-
-  this->m_Axis1->Modified( );
-  this->m_Axis1Mapper->Modified( );
-  this->m_Axis1Actor->Modified( );
-
-  this->m_Axis2->Modified( );
-  this->m_Axis2Mapper->Modified( );
-  this->m_Axis2Actor->Modified( );
-}
-
-// -------------------------------------------------------------------------
-double cpExtensions::Visualization::ImageSliceActors::
-GetMinWindow( ) const
-{
-  return( this->m_WLRange[ 0 ] );
-}
-
-// -------------------------------------------------------------------------
-double cpExtensions::Visualization::ImageSliceActors::
-GetMaxWindow( ) const
-{
-  return( this->m_WLRange[ 1 ] );
-}
-
-// -------------------------------------------------------------------------
-double cpExtensions::Visualization::ImageSliceActors::
-GetMinLevel( ) const
-{
-  return( this->m_WLRange[ 2 ] );
-}
-
-// -------------------------------------------------------------------------
-double cpExtensions::Visualization::ImageSliceActors::
-GetMaxLevel( ) const
-{
-  return( this->m_WLRange[ 3 ] );
-}
-
-// -------------------------------------------------------------------------
-double cpExtensions::Visualization::ImageSliceActors::
-GetWindow( ) const
-{
-  if( this->m_ImageActor.GetPointer( ) != NULL )
-    return( this->m_ImageActor->GetProperty( )->GetColorWindow( ) );
-  else
-    return( double( 0 ) );
-}
-
-// -------------------------------------------------------------------------
-double cpExtensions::Visualization::ImageSliceActors::
-GetLevel( ) const
-{
-  if( this->m_ImageActor.GetPointer( ) != NULL )
-    return( this->m_ImageActor->GetProperty( )->GetColorLevel( ) );
-  else
-    return( double( 0 ) );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-SetWindow( double w )
-{
-  if( this->m_ImageActor.GetPointer( ) == NULL )
-    return;
-  double v = ( w < this->m_WLRange[ 0 ] )? this->m_WLRange[ 0 ]: w;
-  v        = ( v > this->m_WLRange[ 1 ] )? this->m_WLRange[ 1 ]: v;
-  this->m_ImageActor->GetProperty( )->SetColorWindow( v );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-SetLevel( double l )
-{
-  if( this->m_ImageActor.GetPointer( ) == NULL )
-    return;
-  double v = ( l < this->m_WLRange[ 2 ] )? this->m_WLRange[ 2 ]: l;
-  v        = ( v > this->m_WLRange[ 3 ] )? this->m_WLRange[ 3 ]: v;
-  this->m_ImageActor->GetProperty( )->SetColorLevel( v );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-SetWindowLevel( double w, double l )
-{
-  if( this->m_ImageActor.GetPointer( ) == NULL )
-    return;
-  double a = ( w < this->m_WLRange[ 0 ] )? this->m_WLRange[ 0 ]: w;
-  a        = ( a > this->m_WLRange[ 1 ] )? this->m_WLRange[ 1 ]: a;
-  double b = ( l < this->m_WLRange[ 2 ] )? this->m_WLRange[ 2 ]: l;
-  b        = ( b > this->m_WLRange[ 3 ] )? this->m_WLRange[ 3 ]: b;
-  this->m_ImageActor->GetProperty( )->SetColorWindow( a );
-  this->m_ImageActor->GetProperty( )->SetColorLevel( b );
-  this->UpdateText( a, b );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-ResetWindowLevel( )
-{
-  this->SetWindowLevel(
-    this->m_WLRange[ 1 ] * double( 0.5 ),
-    ( this->m_WLRange[ 3 ] + this->m_WLRange[ 2 ] ) * double( 0.5 )
-    );
-}
-
-// -------------------------------------------------------------------------
-int cpExtensions::Visualization::ImageSliceActors::
-GetAxis( ) const
-{
-  if( this->m_ImageMapper.GetPointer( ) != NULL )
-    return( this->m_ImageMapper->GetOrientation( ) );
-  else
-    return( -1 );
-}
-
-// -------------------------------------------------------------------------
-int cpExtensions::Visualization::ImageSliceActors::
-GetSliceNumber( ) const
-{
-  if( this->m_ImageMapper.GetPointer( ) != NULL )
-    return( this->m_ImageMapper->GetSliceNumber( ) );
-  else
-    return( -1 );
-}
-
-// -------------------------------------------------------------------------
-int cpExtensions::Visualization::ImageSliceActors::
-GetSliceNumberMinValue( ) const
-{
-  if( this->m_ImageMapper.GetPointer( ) != NULL )
-    return( this->m_ImageMapper->GetSliceNumberMinValue( ) );
-  else
-    return( -1 );
-}
-
-// -------------------------------------------------------------------------
-int cpExtensions::Visualization::ImageSliceActors::
-GetSliceNumberMaxValue( ) const
-{
-  if( this->m_ImageMapper.GetPointer( ) != NULL )
-    return( this->m_ImageMapper->GetSliceNumberMaxValue( ) );
-  else
-    return( -1 );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-SetSliceNumber( const int& slice )
-{
-  if( this->m_ImageMapper.GetPointer( ) == NULL )
-    return;
-
-  int axis = this->GetAxis( );
-  double prev_pos = this->m_VisibleBounds[ axis << 1 ];
-
-  // Update mappers and display bounds
-  this->m_ImageMapper->SetSliceNumber( slice );
-  this->m_BlenderMapper->SetSliceNumber( slice );
-  this->m_ImageMapper->Modified( );
-  this->m_BlenderMapper->Modified( );
-  this->m_ImageActor->Modified( );
-  this->m_BlenderActor->Modified( );
-
-  // Update display extent (this isn't done automatically)
-  this->m_ImageMapper->GetInput( )->GetExtent( this->m_VisibleExtent );
-  this->m_VisibleExtent[ axis << 1 ] = slice;
-  this->m_VisibleExtent[ ( axis << 1 ) + 1 ] = slice;
-  this->m_ImageActor->SetDisplayExtent( this->m_VisibleExtent );
-
-  // Prepare plane data
-  this->m_ImageMapper->GetBounds( this->m_VisibleBounds );
-  double x0[][ 3 ] =
-    {
-      {
-        this->m_VisibleBounds[ 0 ],
-        this->m_VisibleBounds[ 2 ],
-        this->m_VisibleBounds[ 4 ]
-      },
-      {
-        this->m_VisibleBounds[ 1 ],
-        this->m_VisibleBounds[ 3 ],
-        this->m_VisibleBounds[ 5 ]
-      }
-    };
-  double p0[ 2 ][ 3 ];
-
-  vtkPlane* plane = this->m_ImageMapper->GetSlicePlane( );
-  plane->GeneralizedProjectPoint( x0[ 0 ], p0[ 0 ] );
-  plane->GeneralizedProjectPoint( x0[ 1 ], p0[ 1 ] );
-
-  this->m_VisibleBounds[ 0 ] = p0[ 0 ][ 0 ];
-  this->m_VisibleBounds[ 1 ] = p0[ 1 ][ 0 ];
-  this->m_VisibleBounds[ 2 ] = p0[ 0 ][ 1 ];
-  this->m_VisibleBounds[ 3 ] = p0[ 1 ][ 1 ];
-  this->m_VisibleBounds[ 4 ] = p0[ 0 ][ 2 ];
-  this->m_VisibleBounds[ 5 ] = p0[ 1 ][ 2 ];
-  double* bnds = this->m_VisibleBounds;
-
-  // Configure visualization and implicit plane orientation
-  this->m_PlaneActor->GetProperty( )->SetRepresentationToWireframe( );
-  this->m_PlaneActor->GetProperty( )->SetLineWidth( 3 );
-  vtkPoints* plane_points = this->m_Plane->GetPoints( );
-  plane_points->SetPoint( 0, bnds[ 0 ], bnds[ 2 ], bnds[ 4 ] );
-  plane_points->SetPoint( 2, bnds[ 1 ], bnds[ 3 ], bnds[ 5 ] );
-  if( axis == 0 || axis == 2 ) // YZ, x-normal
-  {
-    plane_points->SetPoint( 1, bnds[ 1 ], bnds[ 2 ], bnds[ 5 ] );
-    plane_points->SetPoint( 3, bnds[ 0 ], bnds[ 3 ], bnds[ 4 ] );
-  }
-  else if( axis == 1 ) // ZX, y-normal
-  {
-    plane_points->SetPoint( 1, bnds[ 0 ], bnds[ 2 ], bnds[ 5 ] );
-    plane_points->SetPoint( 3, bnds[ 1 ], bnds[ 3 ], bnds[ 4 ] );
-
-  } // fi
-
-  // Set plane colors
-  this->m_PlaneActor->GetProperty( )->
-    SetColor( this->m_PlaneColors[ axis ] );
-  this->m_Axis1Actor->GetProperty( )->
-    SetColor( this->m_PlaneColors[ ( axis + 1 ) % 3 ] );
-  this->m_Axis2Actor->GetProperty( )->
-    SetColor( this->m_PlaneColors[ ( axis + 2 ) % 3 ] );
-
-  this->m_Plane->Modified( );
-  this->m_PlaneMapper->Modified( );
-  this->m_PlaneActor->Modified( );
-
-  this->m_Axis1->Modified( );
-  this->m_Axis1Mapper->Modified( );
-  this->m_Axis1Actor->Modified( );
-
-  this->m_Axis2->Modified( );
-  this->m_Axis2Mapper->Modified( );
-  this->m_Axis2Actor->Modified( );
-
-  // Update text
-  this->UpdateText( );
-
-  // Update camera position
-  if( this->m_Window == NULL )
-    return;
-  vtkRenderer* renderer =
-    this->m_Window->GetRenderers( )->GetFirstRenderer( );
-  if( renderer == NULL )
-    return;
-  vtkCamera* camera = renderer->GetActiveCamera( );
-  if( camera == NULL )
-    return;
-  double cam_pos[ 3 ];
-  camera->GetPosition( cam_pos );
-  cam_pos[ axis ] += this->m_VisibleBounds[ axis << 1 ] - prev_pos;
-  camera->SetPosition( cam_pos );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-SetSlice( double* pos )
-{
-  vtkImageData* image = this->GetInputImage( );
-  if( image == NULL )
-    return;
-
-  int ijk[ 3 ];
-  double pcoords[ 3 ];
-  image->ComputeStructuredCoordinates( pos, ijk, pcoords );
-  this->SetSliceNumber( ijk[ this->GetAxis( ) ] );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-UpdateText( )
-{
-  if( this->m_ImageMapper.GetPointer( ) != NULL )
-  {
-    char axis;
-    int axId = this->m_ImageMapper->GetOrientation( );
-    if     ( axId == 0 ) axis = 'X';
-    else if( axId == 1 ) axis = 'Y';
-    else if( axId == 2 ) axis = 'Z';
-
-#if defined(WIN32)
-    sprintf_s(
-      this->m_TextBuffer, 1024, "Axis: %c (%d)",
-      axis, this->m_ImageMapper->GetSliceNumber( )
-      );
-#else // defined(WIN32)
-    std::sprintf(
-      this->m_TextBuffer, "Axis: %c (%d)",
-      axis, this->m_ImageMapper->GetSliceNumber( )
-      );
-#endif // defined(WIN32)
-  }
-  else
-    this->m_TextBuffer[ 0 ] = '\0';
-  this->m_TextActor->SetInput( this->m_TextBuffer );
-  this->m_TextActor->Modified( );
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-UpdateText( double pos[ 3 ] )
-{
-  if( this->m_ImageMapper.GetPointer( ) != NULL )
-  {
-    char axis;
-    int axId = this->m_ImageMapper->GetOrientation( );
-    if     ( axId == 0 ) axis = 'X';
-    else if( axId == 1 ) axis = 'Y';
-    else if( axId == 2 ) axis = 'Z';
-    int slice = this->GetSliceNumber( );
-
-    vtkImageData* image = this->GetInputImage( );
-    int ijk[ 3 ];
-    double pcoords[ 3 ];
-    image->ComputeStructuredCoordinates( pos, ijk, pcoords );
-    ijk[ axId ] = slice;
-
-    int ext[ 6 ];
-    image->GetExtent( ext );
-    if(
-      ext[ 0 ] <= ijk[ 0 ] && ijk[ 0 ] <= ext[ 1 ] &&
-      ext[ 2 ] <= ijk[ 1 ] && ijk[ 1 ] <= ext[ 3 ] &&
-      ext[ 4 ] <= ijk[ 2 ] && ijk[ 2 ] <= ext[ 5 ]
-      )
-    {
-      int nScl = image->GetNumberOfScalarComponents( );
-      std::stringstream str;
-      str
-        << "[" << ijk[ 0 ]
-        << "," << ijk[ 1 ]
-        << "," << ijk[ 2 ] << "]=(";
-      str <<
-        image->GetScalarComponentAsFloat( ijk[ 0 ], ijk[ 1 ], ijk[ 2 ], 0 );
-      for( int n = 1; n < nScl; ++n )
-        str
-          << " "
-          << image->GetScalarComponentAsFloat(
-            ijk[ 0 ], ijk[ 1 ], ijk[ 2 ], n
-            );
-      str << ")";
-
-#if defined(WIN32)
-      sprintf_s(
-        this->m_TextBuffer, 1024, "Axis: %c (%d)\nPixel %s",
-        axis, slice, str.str( ).c_str( )
-        );
-#else // defined(WIN32)
-      std::sprintf(
-        this->m_TextBuffer, "Axis: %c (%d)\nPixel %s",
-        axis, slice, str.str( ).c_str( )
-        );
-#endif // defined(WIN32)
-    } // fi
-  }
-  else
-    this->m_TextBuffer[ 0 ] = '\0';
-  this->m_TextActor->SetInput( this->m_TextBuffer );
-  this->m_TextActor->Modified( );
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-UpdateText( const double& w, const double& l )
-{
-  if( this->m_ImageMapper.GetPointer( ) != NULL )
-  {
-    char axis;
-    int axId = this->m_ImageMapper->GetOrientation( );
-    if     ( axId == 0 ) axis = 'X';
-    else if( axId == 1 ) axis = 'Y';
-    else if( axId == 2 ) axis = 'Z';
-
-#if defined(WIN32)
-    sprintf_s(
-      this->m_TextBuffer, 1024, "Axis: %c (%d)\nW/L (%.2f/%.2f)",
-      axis, this->m_ImageMapper->GetSliceNumber( ), w, l
-      );
-#else // defined(WIN32)
-    std::sprintf(
-      this->m_TextBuffer, "Axis: %c (%d)\nW/L (%.2f/%.2f)",
-      axis, this->m_ImageMapper->GetSliceNumber( ), w, l
-      );
-#endif // defined(WIN32)
-  }
-  else
-    this->m_TextBuffer[ 0 ] = '\0';
-  this->m_TextActor->SetInput( this->m_TextBuffer );
-  this->m_TextActor->Modified( );
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-Render( )
-{
-  if( this->m_Window == NULL )
-    return;
-  vtkRenderer* renderer =
-    this->m_Window->GetRenderers( )->GetFirstRenderer( );
-  if( renderer == NULL )
-    return;
-  renderer->SetAllocatedRenderTime( 1e-3 );
-  this->m_Window->Render( );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-ResetCamera( )
-{
-  if( this->m_Window == NULL )
-    return;
-  vtkRenderer* renderer =
-    this->m_Window->GetRenderers( )->GetFirstRenderer( );
-  if( renderer == NULL )
-    return;
-  renderer->ResetCamera( );
-}
-
-// -------------------------------------------------------------------------
-cpExtensions::Visualization::ImageSliceActors::
-ImageSliceActors( )
-  : Superclass( ),
-    m_Window( NULL ),
-    m_Interpolate( false )
-{
-  this->Clear( );
-  this->_ConfigureStyle( );
-}
-
-// -------------------------------------------------------------------------
-cpExtensions::Visualization::ImageSliceActors::
-~ImageSliceActors( )
-{
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-_ConfigureStyle( )
-{
-  // Connect this view with a controller
-  this->m_Style = vtkSmartPointer< TStyle >::New( );
-  this->m_Style->SetAssociatedObject( this );
-  this->m_Style->AddMouseMoveCommand( Self::_MouseMoveCommand, this );
-  this->m_Style->AddMouseClickCommand( Self::_MouseClickCommand, this );
-  this->m_Style->AddMouseWheelCommand( Self::_MouseWheelCommand, this );
-  this->m_Style->AddKeyCommand( Self::_KeyCommand, this );
-  this->m_Style->AddEnterCommand( Self::_EnterCommand, this );
-  this->m_Style->AddLeaveCommand( Self::_LeaveCommand, this );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-_ConfigureInputImage( )
-{
-  this->m_ImageMapper->SetOrientation( 0 );
-  this->m_ImageMapper->Update( );
-
-  // Create actor
-  this->m_ImageActor->SetInterpolate( this->m_Interpolate );
-  this->m_ImageActor->Modified( );
-
-  if( this->m_Style.GetPointer( ) != NULL )
-    this->m_Style->AssociateImageActor( this->m_ImageActor );
-  this->AddItem( this->m_ImageActor );
-
-  this->SetSliceNumber( this->GetSliceNumberMinValue( ) );
-  this->ResetCursor( );
-  this->Modified( );
-
-  // Reset cursors
-  this->ResetCursor( );
-  this->ResetAxesCursor( );
-
-  // Update window/level ranges
-  vtkImageData* data = this->GetInputImage( );
-  if( data != NULL )
-  {
-    double r[ 2 ];
-    data->GetScalarRange( r );
-    this->m_WLRange[ 0 ] = double( 0 );
-    this->m_WLRange[ 1 ] = r[ 1 ] - r[ 0 ];
-    this->m_WLRange[ 2 ] = r[ 0 ];
-    this->m_WLRange[ 3 ] = r[ 1 ];
-    this->ResetWindowLevel( );
-
-    // Configure blender
-    this->m_BlenderBase = vtkSmartPointer< vtkImageData >::New( );
-    this->m_BlenderBase->ShallowCopy( data );
-    this->m_BlenderBase->AllocateScalars( VTK_UNSIGNED_CHAR, 1 );
-    std::memset(
-      this->m_BlenderBase->GetScalarPointer( ), 0,
-      this->m_BlenderBase->GetActualMemorySize( )
-      );
-    this->m_Blender->AddInputData( this->m_BlenderBase );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-_ConfigureBinaryImage( const double& r, const double& g, const double& b )
-{
-  unsigned int nValues = this->m_BlenderLUT->GetNumberOfTableValues( );
-  this->m_BlenderLUT->SetNumberOfTableValues( nValues + 1 );
-  this->m_BlenderLUT->SetTableRange( 0, nValues );
-  this->m_BlenderLUT->SetTableValue( nValues, r, g, b, 0.5 );
-  this->m_BlenderLUT->Build( );
-
-  this->m_BlenderLUT->Modified( );
-  this->m_Blender->Modified( );
-  this->m_Blender->Update( );
-
-  this->m_BlenderMapper->Modified( );
-  this->m_BlenderActor->Modified( );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-_MouseMoveCommand(
-  void* data, const TStyle::ButtonID& btn, int* idx, double* pos,
-  bool alt, bool ctr, bool sft
-  )
-{
-  ImageSliceActors* actors = reinterpret_cast< ImageSliceActors* >( data );
-  if( actors == NULL )
-    return;
-
-  if( btn == TStyle::ButtonID_None )
-  {
-    // Just show the pixel information
-    actors->SetCursor( pos );
-    actors->UpdateText( pos );
-    actors->Render( );
-  }
-  else if( btn == TStyle::ButtonID_Left )
-  {
-    if( !alt && ctr && !sft )
-    {
-      // Show axes in current renderer
-      actors->SetAxesCursor( pos );
-      actors->Render( );
-
-      // Interactively move slices
-      auto i = actors->m_SlicesCommands.begin( );
-      for( ; i != actors->m_SlicesCommands.end( ); ++i )
-        i->first( pos, actors->GetAxis( ), i->second );
-
-    } // fi
-  }
-  else if( btn == TStyle::ButtonID_Right )
-  {
-    if( !alt && !ctr && sft )
-    {
-      // Change image window level
-      double bounds[ 6 ];
-      actors->m_ImageMapper->GetBounds( bounds );
-
-      int a0 = actors->GetAxis( );
-      int a1 = ( a0 + 1 ) % 3;
-      int a2 = ( a0 + 2 ) % 3;
-      double dx = pos[ a1 ] - actors->m_StartWindowLevelPos[ a1 ];
-      double dy = pos[ a2 ] - actors->m_StartWindowLevelPos[ a2 ];
-      dx /= bounds[ ( a1 << 1 ) + 1 ] - bounds[ a1 << 1 ];
-      dy /= bounds[ ( a2 << 1 ) + 1 ] - bounds[ a2 << 1 ];
-
-      dx *= actors->m_StartWindowLevel[ 0 ];
-      dy *= actors->m_StartWindowLevel[ 1 ];
-      dx += actors->m_StartWindowLevel[ 0 ];
-      dy += actors->m_StartWindowLevel[ 1 ];
-      actors->SetWindowLevel( dx, dy );
-      actors->Render( );
-
-      // Associate objects
-      auto i = actors->m_WindowLevelCommands.begin( );
-      for( ; i != actors->m_WindowLevelCommands.end( ); ++i )
-        i->first( dx, dy, i->second );
-
-    } // fi
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-_MouseClickCommand(
-  void* data, const TStyle::ButtonID& btn, int* idx, double* pos,
-  bool alt, bool ctr, bool sft
-  )
-{
-  ImageSliceActors* actors = reinterpret_cast< ImageSliceActors* >( data );
-  if( actors == NULL )
-    return;
-
-  actors->m_StartWindowLevelPos[ 0 ] = pos[ 0 ];
-  actors->m_StartWindowLevelPos[ 1 ] = pos[ 1 ];
-  actors->m_StartWindowLevelPos[ 2 ] = pos[ 2 ];
-  actors->m_StartWindowLevel[ 0 ] = actors->GetWindow( );
-  actors->m_StartWindowLevel[ 1 ] = actors->GetLevel( );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-_MouseWheelCommand(
-  void* data, const int& dir,
-  bool alt, bool ctr, bool sft
-  )
-{
-  ImageSliceActors* actors = reinterpret_cast< ImageSliceActors* >( data );
-  if( actors == NULL )
-    return;
-
-  if( !alt && !ctr )
-  {
-    int slice = actors->GetSliceNumber( ) + ( dir * ( ( sft )? 10: 1 ) );
-    if( slice < actors->GetSliceNumberMinValue( ) )
-      slice = actors->GetSliceNumberMinValue( );
-    if( slice > actors->GetSliceNumberMaxValue( ) )
-      slice = actors->GetSliceNumberMaxValue( );
-    actors->SetSliceNumber( slice );
-    actors->Render( );
-
-    auto a = actors->m_AssociatedSlices.begin( );
-    for( ; a != actors->m_AssociatedSlices.end( ); ++a )
-      ( *a )->SetSliceNumber( slice );
-
-    // Associate objects
-    auto i = actors->m_RenderCommands.begin( );
-    for( ; i != actors->m_RenderCommands.end( ); ++i )
-      i->first( i->second );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-_KeyCommand( void* data, const char& key )
-{
-  ImageSliceActors* actors = reinterpret_cast< ImageSliceActors* >( data );
-  if( actors == NULL )
-    return;
-
-  switch( key )
-  {
-  case 'r': case 'R':
-  {
-    actors->ResetCamera( );
-    actors->Render( );
-
-    // Associate objects
-    auto i = actors->m_RenderCommands.begin( );
-    for( ; i != actors->m_RenderCommands.end( ); ++i )
-      i->first( i->second );
-  }
-  break;
-  case 'w': case 'W':
-  {
-    actors->ResetWindowLevel( );
-    actors->Render( );
-
-    // Associate objects
-    auto i = actors->m_RenderCommands.begin( );
-    for( ; i != actors->m_RenderCommands.end( ); ++i )
-      i->first( i->second );
-  }
-  break;
-  default:
-    break;
-  } // hctiws
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-_EnterCommand( void* data )
-{
-  ImageSliceActors* actors = reinterpret_cast< ImageSliceActors* >( data );
-  if( actors == NULL )
-    return;
-
-  actors->ResetCursor( );
-  actors->m_CursorActor->VisibilityOn( );
-  actors->Render( );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::ImageSliceActors::
-_LeaveCommand( void* data )
-{
-  ImageSliceActors* actors = reinterpret_cast< ImageSliceActors* >( data );
-  if( actors == NULL )
-    return;
-
-  actors->ResetCursor( );
-  actors->m_CursorActor->VisibilityOff( );
-  actors->Render( );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Visualization/ImageSliceActors.h b/lib/cpExtensions/Visualization/ImageSliceActors.h
deleted file mode 100644 (file)
index b4cec90..0000000
+++ /dev/null
@@ -1,236 +0,0 @@
-#ifndef __CPEXTENSIONS__VISUALIZATION__IMAGESLICEACTORS__H__
-#define __CPEXTENSIONS__VISUALIZATION__IMAGESLICEACTORS__H__
-
-#include <cpExtensions/cpExtensions_Export.h>
-
-#include <vtkSmartPointer.h>
-#include <vtkActor.h>
-#include <vtkImageActor.h>
-#include <vtkImageSliceMapper.h>
-#include <vtkLookupTable.h>
-#include <vtkPlane.h>
-#include <vtkPolyData.h>
-#include <vtkPolyDataMapper.h>
-#include <vtkPropCollection.h>
-#include <vtkTextActor.h>
-
-#include <cpExtensions/Interaction/ImageInteractorStyle.h>
-#include <cpExtensions/Visualization/ImageBlender.h>
-
-// -------------------------------------------------------------------------
-class vtkAlgorithmOutput;
-class vtkImageData;
-class vtkLookupTable;
-class vtkRenderer;
-
-// -------------------------------------------------------------------------
-namespace cpExtensions
-{
-  namespace Visualization
-  {
-    /**
-     */
-    class cpExtensions_EXPORT ImageSliceActors
-      : public vtkPropCollection
-    {
-    public:
-      typedef ImageSliceActors Self;
-
-      typedef cpExtensions::Interaction::ImageInteractorStyle TStyle;
-      typedef TStyle::TMouseCommand            TMouseCommand;
-      typedef TStyle::TMouseWheelCommand       TMouseWheelCommand;
-      typedef TStyle::TKeyCommand              TKeyCommand;
-      typedef TStyle::TVoidCommand             TVoidCommand;
-      typedef TStyle::TMouseMoveCommand        TMouseMoveCommand;
-      typedef TStyle::TMouseClickCommand       TMouseClickCommand;
-      typedef TStyle::TMouseDoubleClickCommand TMouseDoubleClickCommand;
-      typedef TStyle::TExposeCommand           TExposeCommand;
-      typedef TStyle::TConfigureCommand        TConfigureCommand;
-      typedef TStyle::TEnterCommand            TEnterCommand;
-      typedef TStyle::TLeaveCommand            TLeaveCommand;
-      typedef void ( *TSlicesCommand )( double*, int, void* );
-      typedef void ( *TWindowLevelCommand )( double, double, void* );
-      typedef TVoidCommand TRenderCommand;
-
-      typedef cpExtensions::Visualization::ImageBlender TBlender;
-
-    public:
-      vtkTypeMacro( ImageSliceActors, vtkPropCollection );
-
-      cpExtensions_BaseInteractorStyle_Commands( Slices );
-      cpExtensions_BaseInteractorStyle_Commands( WindowLevel );
-      cpExtensions_BaseInteractorStyle_Commands( Render );
-
-    public:
-      // Creation
-      static ImageSliceActors* New( );
-
-      void SetAxis( int axis );
-      void SetInputConnection( vtkAlgorithmOutput* aout );
-      void SetInputImage( vtkImageData* data );
-      int AddBinaryConnection(
-        vtkAlgorithmOutput* aout,
-        const double& r, const double& g, const double& b
-        );
-      int AddBinaryImage(
-        vtkImageData* data,
-        const double& r, const double& g, const double& b
-        );
-      void Clear( );
-
-      void AssociateSlice( Self* slice );
-
-      vtkImageData* GetInputImage( );
-      const vtkImageData* GetInputImage( ) const;
-
-      vtkInteractorStyle* GetStyle( );
-      const vtkInteractorStyle* GetStyle( ) const;
-
-      void PushActorsInto( vtkRenderWindow* window, bool force_style = true );
-      void PopActorsFrom( vtkRenderWindow* window );
-      unsigned int GetNumberOfImages( ) const;
-
-      vtkImageActor* GetImageActor( );
-      const vtkImageActor* GetImageActor( ) const;
-      vtkImageActor* GetBinaryActor( );
-      const vtkImageActor* GetBinaryActor( ) const;
-      vtkTextActor* GetTextActor( );
-      const vtkTextActor* GetTextActor( ) const;
-      vtkActor* GetPlaneActor( );
-      const vtkActor* GetPlaneActor( ) const;
-      vtkPlane* GetPlaneFunction( );
-      const vtkPlane* GetPlaneFunction( ) const;
-
-      void SetInterpolate( bool v );
-      void InterpolateOn( );
-      void InterpolateOff( );
-
-      double* GetDisplayBounds( ) const;
-      void GetDisplayBounds( double bounds[ 6 ] ) const;
-
-      void ResetCursor( );
-      void SetCursor( double pos[ 3 ] );
-
-      void ResetAxesCursor( );
-      void SetAxesCursor( double pos[ 3 ] );
-
-      double GetMinWindow( ) const;
-      double GetMaxWindow( ) const;
-      double GetMinLevel( ) const;
-      double GetMaxLevel( ) const;
-      double GetWindow( ) const;
-      double GetLevel( ) const;
-      void SetWindow( double w );
-      void SetLevel( double l );
-      void SetWindowLevel( double w, double l );
-      void ResetWindowLevel( );
-
-      int GetAxis( ) const;
-      int GetSliceNumber( ) const;
-      int GetSliceNumberMinValue( ) const;
-      int GetSliceNumberMaxValue( ) const;
-      void SetSliceNumber( const int& slice );
-      void SetSlice( double* pos );
-      void UpdateText( );
-      void UpdateText( double pos[ 3 ] );
-      void UpdateText( const double& w, const double& l );
-
-      void Render( );
-      void ResetCamera( );
-
-    protected:
-      ImageSliceActors( );
-      virtual ~ImageSliceActors( );
-
-      void _ConfigureStyle( );
-      void _ConfigureInputImage( );
-      void _ConfigureBinaryImage(
-        const double& r, const double& g, const double& b
-        );
-
-      // Events
-      static void _MouseMoveCommand(
-        void* data,
-        const TStyle::ButtonID& btn,
-        int* idx, double* pos,
-        bool alt, bool ctr, bool sft
-        );
-      static void _MouseClickCommand(
-        void* data,
-        const TStyle::ButtonID& btn,
-        int* idx, double* pos,
-        bool alt, bool ctr, bool sft
-        );
-      static void _MouseWheelCommand(
-        void* data,
-        const int& dir, bool alt, bool ctr, bool sft
-        );
-      static void _KeyCommand(
-        void* data,
-        const char& key
-        );
-      static void _EnterCommand( void* data );
-      static void _LeaveCommand( void* data );
-
-    private:
-      // Purposely not implemented
-      ImageSliceActors( const Self& );
-      Self& operator=( const Self& );
-
-    protected:
-      static double m_PlaneColors[ 3 ][ 3 ];
-
-      vtkSmartPointer< TStyle > m_Style;
-      vtkRenderWindow* m_Window;
-
-      // Multiple actors
-      vtkSmartPointer< vtkImageSliceMapper > m_ImageMapper;
-      vtkSmartPointer< vtkImageActor >       m_ImageActor;
-
-      vtkSmartPointer< vtkImageData >        m_BlenderBase;
-      vtkSmartPointer< TBlender >            m_Blender;
-      vtkSmartPointer< vtkImageSliceMapper > m_BlenderMapper;
-      vtkSmartPointer< vtkLookupTable >      m_BlenderLUT;
-      vtkSmartPointer< vtkImageActor >       m_BlenderActor;
-
-      bool m_Interpolate;
-
-      double m_WLRange[ 4 ];
-
-      int    m_VisibleExtent[ 6 ];
-      double m_VisibleBounds[ 6 ];
-
-      // Associated slices
-      std::vector< Self* > m_AssociatedSlices;
-
-      // Unique objects
-      vtkSmartPointer< vtkPolyData >       m_Cursor;
-      vtkSmartPointer< vtkPolyDataMapper > m_CursorMapper;
-      vtkSmartPointer< vtkActor >          m_CursorActor;
-
-      vtkSmartPointer< vtkPolyData >       m_Axis1;
-      vtkSmartPointer< vtkPolyDataMapper > m_Axis1Mapper;
-      vtkSmartPointer< vtkActor >          m_Axis1Actor;
-
-      vtkSmartPointer< vtkPolyData >       m_Axis2;
-      vtkSmartPointer< vtkPolyDataMapper > m_Axis2Mapper;
-      vtkSmartPointer< vtkActor >          m_Axis2Actor;
-
-      vtkSmartPointer< vtkPolyData >       m_Plane;
-      vtkSmartPointer< vtkPolyDataMapper > m_PlaneMapper;
-      vtkSmartPointer< vtkActor >          m_PlaneActor;
-
-      char                                 m_TextBuffer[ 1024 ];
-      vtkSmartPointer< vtkTextActor >      m_TextActor;
-
-      double m_StartWindowLevelPos[ 3 ];
-      double m_StartWindowLevel[ 2 ];
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif //  __CPEXTENSIONS__VISUALIZATION__IMAGESLICEACTORS__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Visualization/MPRActors.cxx b/lib/cpExtensions/Visualization/MPRActors.cxx
deleted file mode 100644 (file)
index e26651b..0000000
+++ /dev/null
@@ -1,500 +0,0 @@
-#include <cpExtensions/Visualization/MPRActors.h>
-
-#include <vtkAlgorithmOutput.h>
-#include <vtkImageData.h>
-#include <vtkOutlineSource.h>
-#include <vtkProperty.h>
-#include <vtkRenderer.h>
-#include <vtkRendererCollection.h>
-#include <vtkRenderWindow.h>
-
-// -------------------------------------------------------------------------
-cpExtensions::Visualization::MPRActors*
-cpExtensions::Visualization::MPRActors::
-New( )
-{
-  return( new Self( ) );
-}
-
-// -------------------------------------------------------------------------
-cpExtensions::Visualization::
-ImageSliceActors* cpExtensions::Visualization::MPRActors::
-GetSliceActors( const int& i ) const
-{
-  if( i < 3 )
-    return( this->Slices[ 0 ][ i ] );
-  else
-    return( NULL );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-SetInputConnection( vtkAlgorithmOutput* aout )
-{
-  for( int i = 0; i < 2; ++i )
-  {
-    for( int j = 0; j < 3; ++j )
-    {
-      this->Slices[ i ][ j ]->SetInputConnection( aout );
-      this->Slices[ i ][ j ]->SetAxis( j );
-
-    } // rof
-
-  } // rof
-  this->_CreateBoundingBox( );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-SetInputImage( vtkImageData* data )
-{
-  for( int i = 0; i < 2; ++i )
-  {
-    for( int j = 0; j < 3; ++j )
-    {
-      this->Slices[ i ][ j ]->SetInputImage( data );
-      this->Slices[ i ][ j ]->SetAxis( j );
-
-    } // rof
-
-  } // rof
-  this->_CreateBoundingBox( );
-}
-
-// -------------------------------------------------------------------------
-int cpExtensions::Visualization::MPRActors::
-AddBinaryConnection(
-  vtkAlgorithmOutput* aout,
-  const double& r, const double& g, const double& b
-  )
-{
-  this->Slices[ 0 ][ 0 ]->AddBinaryConnection( aout, r, g, b );
-  this->Slices[ 0 ][ 1 ]->AddBinaryConnection( aout, r, g, b );
-  this->Slices[ 0 ][ 2 ]->AddBinaryConnection( aout, r, g, b );
-  this->Slices[ 1 ][ 0 ]->AddBinaryConnection( aout, r, g, b );
-  this->Slices[ 1 ][ 1 ]->AddBinaryConnection( aout, r, g, b );
-  return( this->Slices[ 1 ][ 2 ]->AddBinaryConnection( aout, r, g, b ) );
-}
-
-// -------------------------------------------------------------------------
-int cpExtensions::Visualization::MPRActors::
-AddBinaryImage(
-  vtkImageData* data,
-  const double& r, const double& g, const double& b
-  )
-{
-  this->Slices[ 0 ][ 0 ]->AddBinaryImage( data, r, g, b );
-  this->Slices[ 0 ][ 1 ]->AddBinaryImage( data, r, g, b );
-  this->Slices[ 0 ][ 2 ]->AddBinaryImage( data, r, g, b );
-  this->Slices[ 1 ][ 0 ]->AddBinaryImage( data, r, g, b );
-  this->Slices[ 1 ][ 1 ]->AddBinaryImage( data, r, g, b );
-  return( this->Slices[ 1 ][ 2 ]->AddBinaryImage( data, r, g, b ) );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-Clear( )
-{
-  this->Slices[ 0 ][ 0 ]->Clear( );
-  this->Slices[ 0 ][ 1 ]->Clear( );
-  this->Slices[ 0 ][ 2 ]->Clear( );
-  this->Slices[ 1 ][ 0 ]->Clear( );
-  this->Slices[ 1 ][ 1 ]->Clear( );
-  this->Slices[ 1 ][ 2 ]->Clear( );
-}
-
-// -------------------------------------------------------------------------
-vtkImageData* cpExtensions::Visualization::MPRActors::
-GetInputImage( )
-{
-  return( this->Slices[ 0 ][ 0 ]->GetInputImage( ) );
-}
-
-// -------------------------------------------------------------------------
-const vtkImageData* cpExtensions::Visualization::MPRActors::
-GetInputImage( ) const
-{
-  return( this->Slices[ 0 ][ 0 ]->GetInputImage( ) );
-}
-
-// -------------------------------------------------------------------------
-unsigned int cpExtensions::Visualization::MPRActors::
-GetNumberOfImages( ) const
-{
-  return( this->Slices[ 0 ][ 0 ]->GetNumberOfImages( ) );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-SetInterpolate( bool v )
-{
-  this->Slices[ 0 ][ 0 ]->SetInterpolate( v );
-  this->Slices[ 0 ][ 1 ]->SetInterpolate( v );
-  this->Slices[ 0 ][ 2 ]->SetInterpolate( v );
-  this->Slices[ 1 ][ 0 ]->SetInterpolate( v );
-  this->Slices[ 1 ][ 1 ]->SetInterpolate( v );
-  this->Slices[ 1 ][ 2 ]->SetInterpolate( v );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-InterpolateOn( )
-{
-  this->SetInterpolate( true );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-InterpolateOff( )
-{
-  this->SetInterpolate( false );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-PushActorsInto(
-  vtkRenderWindow* x,
-  vtkRenderWindow* y,
-  vtkRenderWindow* z,
-  vtkRenderWindow* w
-  )
-{
-  this->Slices[ 0 ][ 0 ]->PushActorsInto( x, true );
-  this->Slices[ 0 ][ 1 ]->PushActorsInto( y, true );
-  this->Slices[ 0 ][ 2 ]->PushActorsInto( z, true );
-  this->Slices[ 1 ][ 0 ]->PushActorsInto( w, false );
-  this->Slices[ 1 ][ 1 ]->PushActorsInto( w, false );
-  this->Slices[ 1 ][ 2 ]->PushActorsInto( w, false );
-
-  vtkRenderer* wren =
-    ( w != NULL )? w->GetRenderers( )->GetFirstRenderer( ): NULL;
-  if( wren != NULL )
-  {
-    wren->AddViewProp( this->ImageOutlineActor );
-    wren->AddViewProp( this->Slices[ 1 ][ 0 ]->GetPlaneActor( ) );
-    wren->AddViewProp( this->Slices[ 1 ][ 1 ]->GetPlaneActor( ) );
-    wren->AddViewProp( this->Slices[ 1 ][ 2 ]->GetPlaneActor( ) );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-PopActorsFrom(
-  vtkRenderWindow* x,
-  vtkRenderWindow* y,
-  vtkRenderWindow* z,
-  vtkRenderWindow* w
-  )
-{
-  this->Slices[ 0 ][ 0 ]->PopActorsFrom( x );
-  this->Slices[ 0 ][ 1 ]->PopActorsFrom( y );
-  this->Slices[ 0 ][ 2 ]->PopActorsFrom( z );
-  this->Slices[ 1 ][ 0 ]->PopActorsFrom( w );
-  this->Slices[ 1 ][ 1 ]->PopActorsFrom( w );
-  this->Slices[ 1 ][ 2 ]->PopActorsFrom( w );
-
-  vtkRenderer* wren =
-    ( w != NULL )? w->GetRenderers( )->GetFirstRenderer( ): NULL;
-  if( wren != NULL )
-  {
-    wren->RemoveViewProp( this->ImageOutlineActor );
-    wren->RemoveViewProp( this->Slices[ 1 ][ 0 ]->GetPlaneActor( ) );
-    wren->RemoveViewProp( this->Slices[ 1 ][ 1 ]->GetPlaneActor( ) );
-    wren->RemoveViewProp( this->Slices[ 1 ][ 2 ]->GetPlaneActor( ) );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-double cpExtensions::Visualization::MPRActors::
-GetMinWindow( ) const
-{
-  return( this->Slices[ 0 ][ 0 ]->GetMinWindow( ) );
-}
-
-// -------------------------------------------------------------------------
-double cpExtensions::Visualization::MPRActors::
-GetMaxWindow( ) const
-{
-  return( this->Slices[ 0 ][ 0 ]->GetMaxWindow( ) );
-}
-
-// -------------------------------------------------------------------------
-double cpExtensions::Visualization::MPRActors::
-GetMinLevel( ) const
-{
-  return( this->Slices[ 0 ][ 0 ]->GetMinLevel( ) );
-}
-
-// -------------------------------------------------------------------------
-double cpExtensions::Visualization::MPRActors::
-GetMaxLevel( ) const
-{
-  return( this->Slices[ 0 ][ 0 ]->GetMaxLevel( ) );
-}
-
-// -------------------------------------------------------------------------
-double cpExtensions::Visualization::MPRActors::
-GetWindow( )
-{
-  return( this->Slices[ 0 ][ 0 ]->GetWindow( ) );
-}
-
-// -------------------------------------------------------------------------
-double cpExtensions::Visualization::MPRActors::
-GetLevel( )
-{
-  return( this->Slices[ 0 ][ 0 ]->GetLevel( ) );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-SetWindow( double w )
-{
-  this->Slices[ 0 ][ 0 ]->SetWindow( w );
-  this->Slices[ 0 ][ 1 ]->SetWindow( w );
-  this->Slices[ 0 ][ 2 ]->SetWindow( w );
-  this->Slices[ 1 ][ 0 ]->SetWindow( w );
-  this->Slices[ 1 ][ 1 ]->SetWindow( w );
-  this->Slices[ 1 ][ 2 ]->SetWindow( w );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-SetLevel( double l )
-{
-  this->Slices[ 0 ][ 0 ]->SetLevel( l );
-  this->Slices[ 0 ][ 1 ]->SetLevel( l );
-  this->Slices[ 0 ][ 2 ]->SetLevel( l );
-  this->Slices[ 1 ][ 0 ]->SetLevel( l );
-  this->Slices[ 1 ][ 1 ]->SetLevel( l );
-  this->Slices[ 1 ][ 2 ]->SetLevel( l );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-SetWindowLevel( double w, double l )
-{
-  this->Slices[ 0 ][ 0 ]->SetWindowLevel( w, l );
-  this->Slices[ 0 ][ 1 ]->SetWindowLevel( w, l );
-  this->Slices[ 0 ][ 2 ]->SetWindowLevel( w, l );
-  this->Slices[ 1 ][ 0 ]->SetWindowLevel( w, l );
-  this->Slices[ 1 ][ 1 ]->SetWindowLevel( w, l );
-  this->Slices[ 1 ][ 2 ]->SetWindowLevel( w, l );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-ResetWindowLevel( )
-{
-  this->Slices[ 0 ][ 0 ]->ResetWindowLevel( );
-  this->Slices[ 0 ][ 1 ]->ResetWindowLevel( );
-  this->Slices[ 0 ][ 2 ]->ResetWindowLevel( );
-  this->Slices[ 1 ][ 0 ]->ResetWindowLevel( );
-  this->Slices[ 1 ][ 1 ]->ResetWindowLevel( );
-  this->Slices[ 1 ][ 2 ]->ResetWindowLevel( );
-}
-
-// -------------------------------------------------------------------------
-int cpExtensions::Visualization::MPRActors::
-GetSliceNumber( const int& axis ) const
-{
-  if( axis < 3 )
-    return( this->Slices[ 0 ][ axis ]->GetSliceNumber( ) );
-  else
-    return( -1 );
-}
-
-// -------------------------------------------------------------------------
-int cpExtensions::Visualization::MPRActors::
-GetSliceNumberMinValue( const int& axis ) const
-{
-  if( axis < 3 )
-    return( this->Slices[ 0 ][ axis ]->GetSliceNumberMinValue( ) );
-  else
-    return( -1 );
-}
-
-// -------------------------------------------------------------------------
-int cpExtensions::Visualization::MPRActors::
-GetSliceNumberMaxValue( const int& axis ) const
-{
-  if( axis < 3 )
-    return( this->Slices[ 0 ][ axis ]->GetSliceNumberMaxValue( ) );
-  else
-    return( -1 );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-SetSliceNumber( const int& axis, const int& slice )
-{
-  if( axis < 3 )
-  {
-    this->Slices[ 0 ][ axis ]->SetSliceNumber( slice );
-    this->Slices[ 1 ][ axis ]->SetSliceNumber( slice );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-SetSlice( const int& axis, double* pos )
-{
-  if( axis < 3 )
-  {
-    this->Slices[ 0 ][ axis ]->SetSlice( pos );
-    this->Slices[ 1 ][ axis ]->SetSlice( pos );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-SetAxesCursor( const int& axis, double* pos )
-{
-  if( axis < 3 )
-    this->Slices[ 0 ][ axis ]->SetAxesCursor( pos );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-Render( const int& axis )
-{
-  if( axis < 3 )
-  {
-    this->Slices[ 0 ][ axis ]->Render( );
-    this->Slices[ 1 ][ axis ]->Render( );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-Render( )
-{
-  this->Render( 0 );
-  this->Render( 1 );
-  this->Render( 2 );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-ResetCamera( const int& axis )
-{
-  if( axis < 3 )
-    this->Slices[ 0 ][ axis ]->ResetCamera( );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-ResetCameras( )
-{
-  this->ResetCamera( 0 );
-  this->ResetCamera( 1 );
-  this->ResetCamera( 2 );
-}
-
-// -------------------------------------------------------------------------
-cpExtensions::Visualization::MPRActors::
-MPRActors( )
-  : Superclass( )
-{
-  this->ImageOutlineActor = vtkSmartPointer< vtkActor >::New( );
-  for( unsigned int i = 0; i < 2; ++i )
-    for( unsigned int j = 0; j < 3; ++j )
-      this->Slices[ i ][ j ] = vtkSmartPointer< ImageSliceActors >::New( );
-
-  this->Slices[ 0 ][ 0 ]->AssociateSlice( this->Slices[ 1 ][ 0 ] );
-  this->Slices[ 0 ][ 1 ]->AssociateSlice( this->Slices[ 1 ][ 1 ] );
-  this->Slices[ 0 ][ 2 ]->AssociateSlice( this->Slices[ 1 ][ 2 ] );
-
-  for( unsigned int i = 0; i < 3; ++ i )
-  {
-    this->Slices[ 0 ][ i ]->AddRenderCommand(
-      Self::_RenderCommand, this
-      );
-    this->Slices[ 0 ][ i ]->AddWindowLevelCommand(
-      Self::_WindowLevelCommand, this
-      );
-    this->Slices[ 0 ][ i ]->AddSlicesCommand( Self::_SlicesCommand, this );
-
-  } // rof
-}
-
-// -------------------------------------------------------------------------
-cpExtensions::Visualization::MPRActors::
-~MPRActors( )
-{
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-_CreateBoundingBox( )
-{
-  vtkImageData* image =
-    dynamic_cast< vtkImageData* >( this->Slices[ 0 ][ 0 ]->GetInputImage( ) );
-  if( image == NULL )
-    return;
-
-  // Create 3D outline
-  double bb[ 6 ];
-  image->GetBounds( bb );
-
-  vtkSmartPointer< vtkOutlineSource > img_ol =
-    vtkSmartPointer< vtkOutlineSource >::New( );
-  img_ol->SetBounds( bb );
-
-  vtkSmartPointer< vtkPolyDataMapper > img_ol_mapper =
-    vtkSmartPointer< vtkPolyDataMapper >::New( );
-  img_ol_mapper->SetInputConnection( img_ol->GetOutputPort( ) );
-  this->ImageOutlineActor->SetMapper( img_ol_mapper );
-  this->ImageOutlineActor->GetProperty( )->SetColor( 1, 1, 1 );
-  this->ImageOutlineActor->GetProperty( )->SetLineWidth( 1 );
-
-  this->AddItem( this->ImageOutlineActor );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-_SlicesCommand( double* pos, int axis, void* data )
-{
-  MPRActors* actors = reinterpret_cast< MPRActors* >( data );
-  if( actors == NULL )
-    return;
-  for( unsigned int j = 0; j < 3; ++j )
-  {
-    if( actors->Slices[ 0 ][ j ]->GetAxis( ) != axis )
-    {
-      actors->SetSlice( j, pos );
-      actors->SetAxesCursor( j, pos );
-      actors->Render( j );
-
-    } // fi
-
-  } // rof
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-_WindowLevelCommand( double window, double level, void* data )
-{
-  MPRActors* actors = reinterpret_cast< MPRActors* >( data );
-  if( actors == NULL )
-    return;
-  actors->SetWindowLevel( window, level );
-  actors->Render( );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRActors::
-_RenderCommand( void* data )
-{
-  MPRActors* actors = reinterpret_cast< MPRActors* >( data );
-  if( actors == NULL )
-    return;
-  actors->Render( );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Visualization/MPRActors.h b/lib/cpExtensions/Visualization/MPRActors.h
deleted file mode 100644 (file)
index 91c0b50..0000000
+++ /dev/null
@@ -1,128 +0,0 @@
-#ifndef __CPEXTENSIONS__VISUALIZATION__MPRACTORS__H__
-#define __CPEXTENSIONS__VISUALIZATION__MPRACTORS__H__
-
-#include <cpExtensions/cpExtensions_Export.h>
-#include <cpExtensions/Visualization/ImageSliceActors.h>
-
-namespace cpExtensions
-{
-  namespace Visualization
-  {
-    /**
-     */
-    class cpExtensions_EXPORT MPRActors
-      : public vtkPropCollection
-    {
-    public:
-      typedef MPRActors Self;
-
-      typedef ImageSliceActors::TStyle                   TStyle;
-      typedef ImageSliceActors::TMouseCommand            TMouseCommand;
-      typedef ImageSliceActors::TMouseWheelCommand       TMouseWheelCommand;
-      typedef ImageSliceActors::TKeyCommand              TKeyCommand;
-      typedef ImageSliceActors::TVoidCommand             TVoidCommand;
-      typedef ImageSliceActors::TMouseMoveCommand        TMouseMoveCommand;
-      typedef ImageSliceActors::TMouseClickCommand       TMouseClickCommand;
-      typedef ImageSliceActors::TMouseDoubleClickCommand TMouseDoubleClickCommand;
-      typedef ImageSliceActors::TExposeCommand           TExposeCommand;
-      typedef ImageSliceActors::TConfigureCommand        TConfigureCommand;
-      typedef ImageSliceActors::TEnterCommand            TEnterCommand;
-      typedef ImageSliceActors::TLeaveCommand            TLeaveCommand;
-
-    public:
-      vtkTypeMacro( MPRActors, vtkPropCollection );
-
-    public:
-      // Creation
-      static MPRActors* New( );
-
-      ImageSliceActors* GetSliceActors( const int& i ) const;
-
-      void SetInputConnection( vtkAlgorithmOutput* aout );
-      void SetInputImage( vtkImageData* data );
-      int AddBinaryConnection(
-        vtkAlgorithmOutput* aout,
-        const double& r, const double& g, const double& b
-        );
-      int AddBinaryImage(
-        vtkImageData* data,
-        const double& r, const double& g, const double& b
-        );
-      void Clear( );
-
-      vtkImageData* GetInputImage( );
-      const vtkImageData* GetInputImage( ) const;
-
-      unsigned int GetNumberOfImages( ) const;
-
-      void SetInterpolate( bool v );
-      void InterpolateOn( );
-      void InterpolateOff( );
-
-      void PushActorsInto(
-        vtkRenderWindow* x,
-        vtkRenderWindow* y,
-        vtkRenderWindow* z,
-        vtkRenderWindow* w
-        );
-      void PopActorsFrom(
-        vtkRenderWindow* x,
-        vtkRenderWindow* y,
-        vtkRenderWindow* z,
-        vtkRenderWindow* w
-        );
-
-      double GetMinWindow( ) const;
-      double GetMaxWindow( ) const;
-      double GetMinLevel( ) const;
-      double GetMaxLevel( ) const;
-      double GetWindow( );
-      double GetLevel( );
-      void SetWindow( double w );
-      void SetLevel( double l );
-      void SetWindowLevel( double w, double l );
-      void ResetWindowLevel( );
-
-      // Slice access
-      int GetSliceNumber( const int& axis ) const;
-      int GetSliceNumberMinValue( const int& axis ) const;
-      int GetSliceNumberMaxValue( const int& axis ) const;
-      void SetSliceNumber( const int& axis, const int& slice );
-      void SetSlice( const int& axis, double* pos );
-      void SetAxesCursor( const int& axis, double* pos );
-
-      // Rendering controls
-      void Render( const int& axis );
-      void Render( );
-      void ResetCamera( const int& axis );
-      void ResetCameras( );
-
-    protected:
-      MPRActors( );
-      virtual ~MPRActors( );
-
-      void _CreateBoundingBox( );
-
-      static void _SlicesCommand( double* pos, int axis, void* data );
-      static void _WindowLevelCommand(
-        double window, double level, void* data
-        );
-      static void _RenderCommand( void* data );
-
-    private:
-      // Purposely not implemented
-      MPRActors( const Self& );
-      Self& operator=( const Self& );
-
-    protected:
-      vtkSmartPointer< vtkActor >         ImageOutlineActor;
-      vtkSmartPointer< ImageSliceActors > Slices[ 2 ][ 3 ];
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif //  __CPEXTENSIONS__VISUALIZATION__MPRACTORS__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Visualization/MPRObjects.cxx b/lib/cpExtensions/Visualization/MPRObjects.cxx
deleted file mode 100644 (file)
index 0727f22..0000000
+++ /dev/null
@@ -1,519 +0,0 @@
-#include <cpExtensions/Visualization/MPRObjects.h>
-
-#include <cmath>
-#include <vtkImageData.h>
-#include <vtkLookupTable.h>
-
-// -------------------------------------------------------------------------
-cpExtensions::Visualization::MPRObjects*
-cpExtensions::Visualization::MPRObjects::
-New( )
-{
-  return( new Self( ) );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-SetRenderWindows(
-  vtkRenderWindow* x, vtkRenderWindow* y,
-  vtkRenderWindow* z, vtkRenderWindow* w
-  )
-{
-  this->m_Windows[ 0 ] = x;
-  this->m_Windows[ 1 ] = y;
-  this->m_Windows[ 2 ] = z;
-  this->m_Windows[ 3 ] = w;
-
-  // Prepare 2D renderers
-  for( int i = 0; i < 4; ++i )
-  {
-    // Create renderer, if render window exists
-    if( this->m_Windows[ i ] != NULL )
-    {
-      this->m_Renderers[ i ] = vtkSmartPointer< vtkRenderer >::New( );
-      this->m_Renderers[ i ]->SetBackground( 0.3, 0.3, 0.3 );
-      this->m_Windows[ i ]->AddRenderer( this->m_Renderers[ i ] );
-    }
-    else
-      this->m_Renderers[ i ] = NULL;
-
-  } // rof
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-SetInputConnection( vtkAlgorithmOutput* aout )
-{
-  this->m_MPRActors->SetInputConnection( aout );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-SetInputImage( vtkImageData* data )
-{
-  this->m_MPRActors->SetInputImage( data );
-}
-
-// -------------------------------------------------------------------------
-int cpExtensions::Visualization::MPRObjects::
-AddBinaryConnection(
-  vtkAlgorithmOutput* aout,
-  const double& r, const double& g, const double& b
-  )
-{
-  return( this->m_MPRActors->AddBinaryConnection( aout, r, g, b ) );
-}
-
-// -------------------------------------------------------------------------
-int cpExtensions::Visualization::MPRObjects::
-AddBinaryImage(
-  vtkImageData* data,
-  const double& r, const double& g, const double& b
-  )
-{
-  return( this->m_MPRActors->AddBinaryImage( data, r, g, b ) );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-Show( )
-{
-  this->m_MPRActors->PushActorsInto(
-    this->m_Windows[ 0 ],
-    this->m_Windows[ 1 ],
-    this->m_Windows[ 2 ],
-    this->m_Windows[ 3 ]
-    );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-Hide( )
-{
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-Clear( )
-{
-  this->m_MPRActors->Clear( );
-}
-
-// -------------------------------------------------------------------------
-vtkImageData* cpExtensions::Visualization::MPRObjects::
-GetInputImage( )
-{
-  return( this->m_MPRActors->GetInputImage( ) );
-}
-
-// -------------------------------------------------------------------------
-const vtkImageData* cpExtensions::Visualization::MPRObjects::
-GetInputImage( ) const
-{
-  return( this->m_MPRActors->GetInputImage( ) );
-}
-
-// -------------------------------------------------------------------------
-unsigned int cpExtensions::Visualization::MPRObjects::
-GetNumberOfImages( ) const
-{
-  return( this->m_MPRActors->GetNumberOfImages( ) );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-SetInterpolate( bool v )
-{
-  this->m_MPRActors->SetInterpolate( v );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-InterpolateOn( )
-{
-  this->m_MPRActors->InterpolateOn( );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-InterpolateOff( )
-{
-  this->m_MPRActors->InterpolateOff( );
-}
-
-// -------------------------------------------------------------------------
-double cpExtensions::Visualization::MPRObjects::
-GetMinWindow( ) const
-{
-  return( this->m_MPRActors->GetMinWindow( ) );
-}
-
-// -------------------------------------------------------------------------
-double cpExtensions::Visualization::MPRObjects::
-GetMaxWindow( ) const
-{
-  return( this->m_MPRActors->GetMaxWindow( ) );
-}
-
-// -------------------------------------------------------------------------
-double cpExtensions::Visualization::MPRObjects::
-GetMinLevel( ) const
-{
-  return( this->m_MPRActors->GetMinLevel( ) );
-}
-
-// -------------------------------------------------------------------------
-double cpExtensions::Visualization::MPRObjects::
-GetMaxLevel( ) const
-{
-  return( this->m_MPRActors->GetMaxLevel( ) );
-}
-
-// -------------------------------------------------------------------------
-double cpExtensions::Visualization::MPRObjects::
-GetWindow( ) const
-{
-  return( this->m_MPRActors->GetWindow( ) );
-}
-
-// -------------------------------------------------------------------------
-double cpExtensions::Visualization::MPRObjects::
-GetLevel( ) const
-{
-  return( this->m_MPRActors->GetLevel( ) );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-SetWindow( double w )
-{
-  this->m_MPRActors->SetWindow( w );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-SetLevel( double l )
-{
-  this->m_MPRActors->SetLevel( l );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-SetWindowLevel( double w, double l )
-{
-  this->m_MPRActors->SetWindowLevel( w, l );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-ResetWindowLevel( )
-{
-  this->m_MPRActors->ResetWindowLevel( );
-}
-
-// -------------------------------------------------------------------------
-int cpExtensions::Visualization::MPRObjects::
-GetSliceNumber( const int& axis ) const
-{
-  return( this->m_MPRActors->GetSliceNumber( axis ) );
-}
-
-// -------------------------------------------------------------------------
-int cpExtensions::Visualization::MPRObjects::
-GetSliceNumberMinValue( const int& axis ) const
-{
-  return( this->m_MPRActors->GetSliceNumberMinValue( axis ) );
-}
-
-// -------------------------------------------------------------------------
-int cpExtensions::Visualization::MPRObjects::
-GetSliceNumberMaxValue( const int& axis ) const
-{
-  return( this->m_MPRActors->GetSliceNumberMaxValue( axis ) );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-SetSliceNumber( const int& axis, const int& slice )
-{
-  this->m_MPRActors->SetSliceNumber( axis, slice );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-SetSlice( const int& axis, double* pos )
-{
-  this->m_MPRActors->SetSlice( axis, pos );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-Render( const double& t )
-{
-  this->Render( 0, t );
-  this->Render( 1, t );
-  this->Render( 2, t );
-  this->Render( 3, t );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-Render( const int& axis, const double& t )
-{
-  if( axis < 4 )
-  {
-    if( this->m_Windows[ axis ].GetPointer( ) != NULL )
-    {
-      if( this->m_Renderers[ axis ].GetPointer( ) != NULL )
-        this->m_Renderers[ axis ]->SetAllocatedRenderTime( t );
-      this->m_Windows[ axis ]->Render( );
-
-    } // fi
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-ResetCamera( const int& axis )
-{
-  if( axis < 4 )
-    if( this->m_Renderers[ axis ].GetPointer( ) != NULL )
-      this->m_Renderers[ axis ]->ResetCamera( );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-ResetCameras( )
-{
-  this->ResetCamera( 0 );
-  this->ResetCamera( 1 );
-  this->ResetCamera( 2 );
-  this->ResetCamera( 3 );
-}
-
-// -------------------------------------------------------------------------
-cpExtensions::Visualization::MPRObjects::
-MPRObjects( )
-  : vtkObject( )
-{
-  this->m_MPRActors = vtkSmartPointer< MPRActors >::New( );
-}
-
-// -------------------------------------------------------------------------
-cpExtensions::Visualization::MPRObjects::
-~MPRObjects( )
-{
-}
-
-
-
-
-/*
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-SetRenderWindows(
-  vtkRenderWindow* wx, vtkRenderWindow* wy,
-  vtkRenderWindow* wz, vtkRenderWindow* w3D
-  )
-{
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-AddImage( vtkImageData* image )
-{
-  this->m_MPRActors->AddInputData( image );
-  this->m_MPRActors->PushActorsInto(
-    this->m_Windows[ 0 ],
-    this->m_Windows[ 1 ],
-    this->m_Windows[ 2 ],
-    this->m_Windows[ 3 ]
-    );
-
-  // First rendering
-  if( this->m_MPRActors->GetNumberOfImages( ) == 1 )
-  {
-    this->m_MPRActors->ResetSlices( );
-    this->ResetCameras( );
-
-  } // fi
-  this->RenderAll( 1e-3 );
-}
-
-// -------------------------------------------------------------------------
-unsigned int cpExtensions::Visualization::MPRObjects::
-GetNumberOfImages( ) const
-{
-  return( this->m_MPRActors->GetNumberOfImages( ) );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-ClearAll( )
-{
-  this->m_MPRActors->PopActorsFrom(
-    this->m_Windows[ 0 ],
-    this->m_Windows[ 1 ],
-    this->m_Windows[ 2 ],
-    this->m_Windows[ 3 ]
-    );
-  this->ResetCameras( );
-  this->RenderAll( 1e-3 );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-ResetCamera( const int& id )
-{
-  if( id < 4 )
-    if( this->m_Windows[ id ] != NULL )
-      this->m_Renderers[ id ]->ResetCamera( );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-ResetCameras( )
-{
-  for( int i = 0; i < 4; ++i )
-    if( this->m_Windows[ i ] != NULL )
-      this->m_Renderers[ i ]->ResetCamera( );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-Render( const int& id, const double& t )
-{
-  if( id < 4 )
-  {
-    if( this->m_Windows[ id ] != NULL )
-    {
-      if( this->m_Renderers[ id ] != NULL )
-        this->m_Renderers[ id ]->SetAllocatedRenderTime( t );
-      this->m_Windows[ id ]->Render( );
-      
-    } // fi
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::MPRObjects::
-RenderAll( const double& t )
-{
-  for( int i = 0; i < 4; ++i )
-  {
-    if( this->m_Windows[ i ] != NULL )
-    {
-      if( this->m_Renderers[ i ] != NULL )
-        this->m_Renderers[ i ]->SetAllocatedRenderTime( t );
-      this->m_Windows[ i ]->Render( );
-
-    } // fi
-
-  } // rof
-}
-
-// -------------------------------------------------------------------------
-vtkRenderer* cpExtensions::Visualization::MPRObjects::
-GetXRenderer( )
-{
-  return( this->m_Renderers[ 0 ] );
-}
-
-// -------------------------------------------------------------------------
-vtkRenderer* cpExtensions::Visualization::MPRObjects::
-GetYRenderer( )
-{
-  return( this->m_Renderers[ 1 ] );
-}
-
-// -------------------------------------------------------------------------
-vtkRenderer* cpExtensions::Visualization::MPRObjects::
-GetZRenderer( )
-{
-  return( this->m_Renderers[ 2 ] );
-}
-
-// -------------------------------------------------------------------------
-vtkRenderer* cpExtensions::Visualization::MPRObjects::
-Get3DRenderer( )
-{
-  return( this->m_Renderers[ 3 ] );
-}
-
-// -------------------------------------------------------------------------
-const vtkRenderer* cpExtensions::Visualization::MPRObjects::
-GetXRenderer( ) const
-{
-  return( this->m_Renderers[ 0 ] );
-}
-
-// -------------------------------------------------------------------------
-const vtkRenderer* cpExtensions::Visualization::MPRObjects::
-GetYRenderer( ) const
-{
-  return( this->m_Renderers[ 1 ] );
-}
-
-// -------------------------------------------------------------------------
-const vtkRenderer* cpExtensions::Visualization::MPRObjects::
-GetZRenderer( ) const
-{
-  return( this->m_Renderers[ 2 ] );
-}
-
-// -------------------------------------------------------------------------
-const vtkRenderer* cpExtensions::Visualization::MPRObjects::
-Get3DRenderer( ) const
-{
-  return( this->m_Renderers[ 3 ] );
-}
-
-// -------------------------------------------------------------------------
-cpExtensions::Visualization::
-MPRActors* cpExtensions::Visualization::MPRObjects::
-GetMPRActors( )
-{
-  return( this->m_MPRActors );
-}
-
-// -------------------------------------------------------------------------
-const cpExtensions::Visualization::
-MPRActors* cpExtensions::Visualization::MPRObjects::
-GetMPRActors( ) const
-{
-  return( this->m_MPRActors );
-}
-
-// -------------------------------------------------------------------------
-double cpExtensions::Visualization::MPRObjects::
-GetWindow( ) const
-{
-  return( this->m_MPRActors->GetWindow( ) );
-}
-
-// -------------------------------------------------------------------------
-double cpExtensions::Visualization::MPRObjects::
-GetLevel( ) const
-{
-  return( this->m_MPRActors->GetLevel( ) );
-}
-
-// -------------------------------------------------------------------------
-cpExtensions::Visualization::MPRObjects::
-MPRObjects( )
-  : vtkObject( )
-{
-  // Prepare actors
-  this->m_MPRActors = vtkSmartPointer< MPRActors >::New( );
-}
-
-// -------------------------------------------------------------------------
-cpExtensions::Visualization::MPRObjects::
-~MPRObjects( )
-{
-}
-*/
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Visualization/MPRObjects.h b/lib/cpExtensions/Visualization/MPRObjects.h
deleted file mode 100644 (file)
index c800fc1..0000000
+++ /dev/null
@@ -1,137 +0,0 @@
-#ifndef __CPEXTENSIONS__VISUALIZATION__MPROBJECTS__H__
-#define __CPEXTENSIONS__VISUALIZATION__MPROBJECTS__H__
-
-#include <cpExtensions/cpExtensions_Export.h>
-#include <cpExtensions/Visualization/MPRActors.h>
-
-#include <vtkObject.h>
-#include <vtkRenderer.h>
-#include <vtkRenderWindow.h>
-
-// -------------------------------------------------------------------------
-#define cpExtensions_MPRObjects_Renderer( DIR )                         \
-  inline vtkRenderer* Get##DIR##Renderer( )                             \
-  { return( this->m_Renderers[ Self::MPRDirections_##DIR ] ); }         \
-  inline const vtkRenderer* Get##DIR##Renderer( ) const                 \
-  { return( this->m_Renderers[ Self::MPRDirections_##DIR ] ); }
-
-namespace cpExtensions
-{
-  namespace Visualization
-  {
-    /**
-     */
-    class cpExtensions_EXPORT MPRObjects
-      : public vtkObject
-    {
-    public:
-      typedef MPRObjects Self;
-
-      typedef MPRActors::TStyle                   TStyle;
-      typedef MPRActors::TMouseCommand            TMouseCommand;
-      typedef MPRActors::TMouseWheelCommand       TMouseWheelCommand;
-      typedef MPRActors::TKeyCommand              TKeyCommand;
-      typedef MPRActors::TVoidCommand             TVoidCommand;
-      typedef MPRActors::TMouseMoveCommand        TMouseMoveCommand;
-      typedef MPRActors::TMouseClickCommand       TMouseClickCommand;
-      typedef MPRActors::TMouseDoubleClickCommand TMouseDoubleClickCommand;
-      typedef MPRActors::TExposeCommand           TExposeCommand;
-      typedef MPRActors::TConfigureCommand        TConfigureCommand;
-      typedef MPRActors::TEnterCommand            TEnterCommand;
-      typedef MPRActors::TLeaveCommand            TLeaveCommand;
-
-      enum MPRDirections
-      {
-        MPRDirections_X = 0,
-        MPRDirections_Y = 1,
-        MPRDirections_Z = 2,
-        MPRDirections_W = 3
-      };
-
-    public:
-      vtkTypeMacro( MPRObjects, vtkObject );
-
-      cpExtensions_MPRObjects_Renderer( X );
-      cpExtensions_MPRObjects_Renderer( Y );
-      cpExtensions_MPRObjects_Renderer( Z );
-      cpExtensions_MPRObjects_Renderer( W );
-
-    public:
-      // Creation
-      static MPRObjects* New( );
-
-      // Association
-      void SetRenderWindows(
-        vtkRenderWindow* x, vtkRenderWindow* y,
-        vtkRenderWindow* z, vtkRenderWindow* w
-        );
-
-      void SetInputConnection( vtkAlgorithmOutput* aout );
-      void SetInputImage( vtkImageData* data );
-      int AddBinaryConnection(
-        vtkAlgorithmOutput* aout,
-        const double& r, const double& g, const double& b
-        );
-      int AddBinaryImage(
-        vtkImageData* data,
-        const double& r, const double& g, const double& b
-        );
-      void Show( );
-      void Hide( );
-      void Clear( );
-
-      vtkImageData* GetInputImage( );
-      const vtkImageData* GetInputImage( ) const;
-      unsigned int GetNumberOfImages( ) const;
-
-      void SetInterpolate( bool v );
-      void InterpolateOn( );
-      void InterpolateOff( );
-
-      double GetMinWindow( ) const;
-      double GetMaxWindow( ) const;
-      double GetMinLevel( ) const;
-      double GetMaxLevel( ) const;
-      double GetWindow( ) const;
-      double GetLevel( ) const;
-      void SetWindow( double w );
-      void SetLevel( double l );
-      void SetWindowLevel( double w, double l );
-      void ResetWindowLevel( );
-
-      int GetSliceNumber( const int& axis ) const;
-      int GetSliceNumberMinValue( const int& axis ) const;
-      int GetSliceNumberMaxValue( const int& axis ) const;
-      void SetSliceNumber( const int& axis, const int& slice );
-      void SetSlice( const int& axis, double* pos );
-
-      void Render( const double& t );
-      void Render( const int& axis, const double& t );
-      void ResetCamera( const int& axis );
-      void ResetCameras( );
-
-    protected:
-      MPRObjects( );
-      virtual ~MPRObjects( );
-
-    private:
-      // Purposely not implemented
-      MPRObjects( const Self& );
-      Self& operator=( const Self& );
-
-    protected:
-      // Inputs
-      vtkSmartPointer< vtkRenderWindow > m_Windows[ 4 ];
-
-      // Internal pipelines
-      vtkSmartPointer< MPRActors >   m_MPRActors;
-      vtkSmartPointer< vtkRenderer > m_Renderers[ 4 ];
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif //  __CPEXTENSIONS__VISUALIZATION__MPROBJECTS__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Visualization/MeshMapper.h b/lib/cpExtensions/Visualization/MeshMapper.h
deleted file mode 100644 (file)
index c6aee51..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-#ifndef __CPEXTENSIONS__VISUALIZATION__MESHMAPPER__H__
-#define __CPEXTENSIONS__VISUALIZATION__MESHMAPPER__H__
-
-#include <itkConceptChecking.h>
-#include <vtkMapper.h>
-
-class vtkActor;
-class vtkInformation;
-class vtkRenderer;
-
-namespace cpExtensions
-{
-  namespace Visualization
-  {
-    /**
-     */
-    template< class M >
-    class MeshMapper
-      : public vtkMapper
-    {
-    public:
-      typedef MeshMapper Self;
-      vtkTypeMacro( MeshMapper, vtkMapper );
-
-      typedef M                             TMesh;
-      typedef typename M::PointType         TPoint;
-      typedef typename TPoint::VectorType   TVector;
-      typedef typename TPoint::CoordRepType TScalar;
-      itkStaticConstMacro( Dimension, unsigned int, M::PointDimension );
-
-      // Begin concept checking
-#ifdef ITK_USE_CONCEPT_CHECKING
-      /* TODO
-         itkConceptMacro(
-         InputMeshIsTwoOrThreeimensionalCheck,
-         ( itk::Concept::SameDimensionOrMinusOne< Self::Dimension, 3 > )
-         );
-         itkConceptMacro(
-         ScalarTypeHasFloatResolution,
-         ( itk::Concept::IsFloatingPoint< TScalar > )
-         );
-      */
-#endif
-      // End concept checking
-
-    public:
-      // TODO: static Self* New( );
-      virtual void ShallowCopy( vtkAbstractMapper* m );
-
-      virtual void SetInputData( M* in );
-      virtual M* GetInput( );
-      virtual const M* GetInput( ) const;
-
-      virtual double* GetBounds( );
-      virtual void GetBounds( double bounds[ 6 ] );
-
-      virtual void RenderPiece( vtkRenderer* aren, vtkActor* act ) = 0;
-      virtual void Render( vtkRenderer* aren, vtkActor* act );
-      virtual void Update( );
-      virtual void Update( int port );
-
-      virtual void MapDataArrayToVertexAttribute(
-        const char* vertexAttributeName,
-        const char* dataArrayName,
-        int fieldAssociation,
-        int componentno = -1
-        );
-      virtual void MapDataArrayToMultiTextureAttribute(
-        int unit,
-        const char* dataArrayName,
-        int fieldAssociation,
-        int componentno = -1
-        );
-      virtual void RemoveVertexAttributeMapping(
-        const char* vertexAttributeName
-        );
-      virtual void RemoveAllVertexAttributeMappings( );
-
-    protected:
-      MeshMapper( );
-      virtual ~MeshMapper( );
-
-      virtual void ComputeBounds( );
-      virtual int FillInputPortInformation( int port, vtkInformation* info );
-
-    private:
-      // These methods aren't supposed to be implemented
-      MeshMapper( const Self& other );
-      Self& operator=( const Self& other );
-
-    protected:
-      typename M::Pointer Mesh;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-#include <cpExtensions/Visualization/MeshMapper.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __CPEXTENSIONS__VISUALIZATION__MESHMAPPER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Visualization/MeshMapper.hxx b/lib/cpExtensions/Visualization/MeshMapper.hxx
deleted file mode 100644 (file)
index 4374ffe..0000000
+++ /dev/null
@@ -1,224 +0,0 @@
-#ifndef __CPEXTENSIONS__VISUALIZATION__MESHMAPPER__HXX__
-#define __CPEXTENSIONS__VISUALIZATION__MESHMAPPER__HXX__
-
-#include <vtkInformation.h>
-#include <vtkMath.h>
-
-// TODO: #include <cpExtensions/Visualization/OpenGLMeshMapper.h>
-
-// -------------------------------------------------------------------------
-/* TODO
-   template< class M >
-   typename cpExtensions::Visualization::MeshMapper< M >::
-   Self* cpExtensions::Visualization::MeshMapper< M >::
-   New( )
-   {
-   return(
-   cpExtensions::Visualization::OpenGLMeshMapper< M >::New( )
-   );
-   }
-*/
-
-// -------------------------------------------------------------------------
-template< class M >
-void cpExtensions::Visualization::MeshMapper< M >::
-ShallowCopy( vtkAbstractMapper* m )
-{
-  Self* mapper = Self::SafeDownCast( m );
-  if( m != NULL )
-    this->SetInputData( mapper->GetInput( ) );
-  this->vtkMapper::ShallowCopy( m );
-}
-
-// -------------------------------------------------------------------------
-template< class M >
-void cpExtensions::Visualization::MeshMapper< M >::
-SetInputData( M* in )
-{
-  if( this->Mesh != in )
-  {
-    this->Mesh = in;
-    this->Modified( );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-template< class M >
-M* cpExtensions::Visualization::MeshMapper< M >::
-GetInput( )
-{
-  return( this->Mesh );
-}
-
-// -------------------------------------------------------------------------
-template< class M >
-const M* cpExtensions::Visualization::MeshMapper< M >::
-GetInput( ) const
-{
-  return( this->Mesh );
-}
-
-// -------------------------------------------------------------------------
-template< class M >
-double* cpExtensions::Visualization::MeshMapper< M >::
-GetBounds( )
-{
-  // do we have an input
-  if( this->Mesh.IsNull( ) )
-  {
-    vtkMath::UninitializeBounds( this->Bounds );
-    return( this->Bounds );
-  }
-  else
-  {
-    this->Mesh->Update( );
-    this->ComputeBounds( );
-
-    if( !vtkMath::AreBoundsInitialized( this->Bounds ) )
-      return( NULL );
-    return( this->Bounds );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-template< class M >
-void cpExtensions::Visualization::MeshMapper< M >::
-GetBounds( double bounds[ 6 ] )
-{
-  this->Superclass::GetBounds( bounds );
-}
-
-// -------------------------------------------------------------------------
-template< class M >
-void cpExtensions::Visualization::MeshMapper< M >::
-Render( vtkRenderer* aren, vtkActor* act )
-{
-  if( this->Mesh.IsNull( ) )
-  {
-    vtkErrorMacro( "Mapper has no input." );
-    return;
-
-  } // fi
-  this->RenderPiece( aren, act );
-}
-
-// -------------------------------------------------------------------------
-template< class M >
-void cpExtensions::Visualization::MeshMapper< M >::
-Update( )
-{
-  // TODO:
-  std::cout << "Update( )" << std::endl;
-}
-
-// -------------------------------------------------------------------------
-template< class M >
-void cpExtensions::Visualization::MeshMapper< M >::
-Update( int port )
-{
-  // TODO:
-  std::cout << "Update( port = " << port << " ) "<< std::endl;
-}
-
-// -------------------------------------------------------------------------
-template< class M >
-void cpExtensions::Visualization::MeshMapper< M >::
-MapDataArrayToVertexAttribute(
-  const char* vertexAttributeName,
-  const char* dataArrayName,
-  int fieldAssociation,
-  int componentno
-  )
-{
-  vtkErrorMacro( "Not implemented at this level..." );
-}
-
-// -------------------------------------------------------------------------
-template< class M >
-void cpExtensions::Visualization::MeshMapper< M >::
-MapDataArrayToMultiTextureAttribute(
-  int unit,
-  const char* dataArrayName,
-  int fieldAssociation,
-  int componentno
-  )
-{
-  vtkErrorMacro( "Not implemented at this level..." );
-}
-
-// -------------------------------------------------------------------------
-template< class M >
-void cpExtensions::Visualization::MeshMapper< M >::
-RemoveVertexAttributeMapping( const char* vertexAttributeName )
-{
-  vtkErrorMacro( "Not implemented at this level..." );
-}
-
-// -------------------------------------------------------------------------
-template< class M >
-void cpExtensions::Visualization::MeshMapper< M >::
-RemoveAllVertexAttributeMappings( )
-{
-  vtkErrorMacro( "Not implemented at this level..." );
-}
-
-// -------------------------------------------------------------------------
-template< class M >
-cpExtensions::Visualization::MeshMapper< M >::
-MeshMapper( )
-  : Superclass( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class M >
-cpExtensions::Visualization::MeshMapper< M >::
-~MeshMapper( )
-{
-}
-
-// -------------------------------------------------------------------------
-template< class M >
-void cpExtensions::Visualization::MeshMapper< M >::
-ComputeBounds( )
-{
-  static const TScalar _0 = TScalar( 0 );
-  if( this->Mesh.IsNotNull( ) )
-  {
-    const typename M::BoundingBoxType* bb = this->Mesh->GetBoundingBox( );
-    TPoint minP = bb->GetMinimum( );
-    TPoint maxP = bb->GetMaximum( );
-    this->Bounds[ 0 ] = double( ( Self::Dimension >= 1 )? minP[ 0 ]: _0 );
-    this->Bounds[ 1 ] = double( ( Self::Dimension >= 1 )? maxP[ 0 ]: _0 );
-    this->Bounds[ 2 ] = double( ( Self::Dimension >= 2 )? minP[ 1 ]: _0 );
-    this->Bounds[ 3 ] = double( ( Self::Dimension >= 2 )? maxP[ 1 ]: _0 );
-    this->Bounds[ 4 ] = double( ( Self::Dimension >= 3 )? minP[ 2 ]: _0 );
-    this->Bounds[ 5 ] = double( ( Self::Dimension >= 3 )? maxP[ 2 ]: _0 );
-  }
-  else
-  {
-    this->Bounds[ 0 ] =
-      this->Bounds[ 1 ] =
-      this->Bounds[ 2 ] =
-      this->Bounds[ 3 ] =
-      this->Bounds[ 4 ] =
-      this->Bounds[ 5 ] =
-      double( 0 );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-template< class M >
-int cpExtensions::Visualization::MeshMapper< M >::
-FillInputPortInformation( int port, vtkInformation* info )
-{
-  info->Set( vtkAlgorithm::INPUT_REQUIRED_DATA_TYPE( ), "itk::Mesh" );
-  return( 1 );
-}
-
-#endif // __CPEXTENSIONS__VISUALIZATION__MESHMAPPER__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Visualization/OpenGLMeshMapper.h b/lib/cpExtensions/Visualization/OpenGLMeshMapper.h
deleted file mode 100644 (file)
index ff80ce3..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-#ifndef __CPEXTENSIONS__VISUALIZATION__OPENGLMESHMAPPER__H__
-#define __CPEXTENSIONS__VISUALIZATION__OPENGLMESHMAPPER__H__
-
-#include <vector>
-
-#include <cpExtensions/Visualization/MeshMapper.h>
-
-namespace cpExtensions
-{
-  namespace Visualization
-  {
-    /**
-     */
-    template< class M >
-    class OpenGLMeshMapper
-      : public MeshMapper< M >
-    {
-    public:
-      typedef OpenGLMeshMapper Self;
-      vtkTypeMacro( OpenGLMeshMapper, MeshMapper< M > );
-
-      typedef typename Superclass::TMesh   TMesh;
-      typedef typename Superclass::TPoint  TPoint;
-      typedef typename Superclass::TVector TVector;
-      typedef typename Superclass::TScalar TScalar;
-
-    protected:
-      typedef unsigned int                            TIndex;
-      typedef typename M::CellType                    TCell;
-      typedef typename M::CellsContainer              TCellsContainer;
-      typedef typename TCellsContainer::ConstIterator TCellIt;
-
-    public:
-      virtual const char* GetNameOfClass( ) const
-        { return( "cpExtensions::OpenGLMeshMapper" ); }
-      static Self* New( );
-
-      virtual void RenderPiece( vtkRenderer* aren, vtkActor* act );
-      virtual void ReleaseGraphicsResources( vtkWindow* win );
-      virtual int Draw( vtkRenderer* aren, vtkActor* act );
-
-    protected:
-      OpenGLMeshMapper( );
-      virtual ~OpenGLMeshMapper( );
-
-      bool _ConfigureOpenGL( );
-
-    private:
-      // Purposely not implemented
-      OpenGLMeshMapper( const Self& other );
-      Self& operator=( const Self& other );
-
-    protected:
-      vtkIdType TotalCells;
-      // TODO: vtkSmartPointer< vtkOpenGLTexture > InternalColorTexture;
-
-      bool FirstRendering;
-
-      bool VBOSupported;
-      unsigned int VBOID1, VBOID2;
-
-      std::vector< unsigned int > Sizes;
-      std::vector< TIndex > Indices;
-      long IndexElementType;
-      long ElementValueType;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-#include <cpExtensions/Visualization/OpenGLMeshMapper.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __CPEXTENSIONS__VISUALIZATION__OPENGLMESHMAPPER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Visualization/OpenGLMeshMapper.hxx b/lib/cpExtensions/Visualization/OpenGLMeshMapper.hxx
deleted file mode 100644 (file)
index ab2fc60..0000000
+++ /dev/null
@@ -1,672 +0,0 @@
-#ifndef __CPEXTENSIONS__VISUALIZATION__OPENGLMESHMAPPER__HXX__
-#define __CPEXTENSIONS__VISUALIZATION__OPENGLMESHMAPPER__HXX__
-
-#include <algorithm>
-#include <string>
-
-#include <vtkCommand.h>
-#include <vtkImageData.h>
-#include <vtkOpenGLRenderer.h>
-#include <vtkProperty.h>
-#include <vtkRenderWindow.h>
-#include <vtkTimerLog.h>
-#include <vtkUnsignedCharArray.h>
-
-#include <vtkOpenGL.h>
-#include <vtkOpenGLError.h>
-#define GL_GLEXT_PROTOTYPES
-#include <GL/glext.h>
-
-#ifdef _WIN32
-
-PFNGLGENBUFFERSARBPROC           pglGenBuffers = 0;
-PFNGLBINDBUFFERARBPROC           pglBindBuffer = 0;
-PFNGLBUFFERDATAARBPROC           pglBufferData = 0;
-PFNGLBUFFERSUBDATAARBPROC        pglBufferSubData = 0;
-PFNGLDELETEBUFFERSARBPROC        pglDeleteBuffers = 0;
-PFNGLGETBUFFERPARAMETERIVARBPROC pglGetBufferParameteriv = 0;
-PFNGLMAPBUFFERARBPROC            pglMapBuffer = 0;
-PFNGLUNMAPBUFFERARBPROC          pglUnmapBuffer = 0;
-
-#define glGenBuffers           pglGenBuffers
-#define glBindBuffer           pglBindBuffer
-#define glBufferData           pglBufferData
-#define glBufferSubData        pglBufferSubData
-#define glDeleteBuffers        pglDeleteBuffers
-#define glGetBufferParameteriv pglGetBufferParameteriv
-#define glMapBuffer            pglMapBuffer
-#define glUnmapBuffer          pglUnmapBuffer
-
-#endif // _WIN32
-
-// some definitions for what the polydata has in it
-#define CPPLUGINS_VTK_PDM_NORMALS            0x0001
-#define CPPLUGINS_VTK_PDM_COLORS             0x0002
-#define CPPLUGINS_VTK_PDM_TCOORDS            0x0004
-#define CPPLUGINS_VTK_PDM_CELL_COLORS        0x0008
-#define CPPLUGINS_VTK_PDM_CELL_NORMALS       0x0010
-#define CPPLUGINS_VTK_PDM_POINT_TYPE_FLOAT   0x0020
-#define CPPLUGINS_VTK_PDM_POINT_TYPE_DOUBLE  0x0040
-#define CPPLUGINS_VTK_PDM_NORMAL_TYPE_FLOAT  0x0080
-#define CPPLUGINS_VTK_PDM_NORMAL_TYPE_DOUBLE 0x0100
-#define CPPLUGINS_VTK_PDM_TCOORD_TYPE_FLOAT  0x0200
-#define CPPLUGINS_VTK_PDM_TCOORD_TYPE_DOUBLE 0x0400
-#define CPPLUGINS_VTK_PDM_TCOORD_1D          0x0800
-#define CPPLUGINS_VTK_PDM_OPAQUE_COLORS      0x1000
-#define CPPLUGINS_VTK_PDM_USE_FIELD_DATA     0x2000
-
-// -------------------------------------------------------------------------
-template< class M >
-typename cpExtensions::Visualization::OpenGLMeshMapper< M >::
-Self* cpExtensions::Visualization::OpenGLMeshMapper< M >::
-New( )
-{
-  return( new Self( ) );
-}
-
-// -------------------------------------------------------------------------
-template< class M >
-void cpExtensions::Visualization::OpenGLMeshMapper< M >::
-RenderPiece( vtkRenderer* aren, vtkActor* act )
-{
-  vtkOpenGLClearErrorMacro( );
-
-  // Is the renderer correctly initialized?
-  if( aren->GetRenderWindow( )->CheckAbortStatus( ) )
-    return;
-
-  // Get input mesh ( and check it )
-  M* in = this->GetInput( );
-  if( !in )
-  {
-    vtkErrorMacro( << "No input!" );
-    return;
-
-  } // fi
-  unsigned long numPts = in->GetNumberOfPoints( );
-  if( numPts == 0 )
-  {
-    vtkDebugMacro( << "No points!" );
-    return;
-
-  } // fi
-
-  // Update input, if needed
-  this->InvokeEvent( vtkCommand::StartEvent, NULL );
-  if( !this->Static )
-    in->Update( );
-  this->InvokeEvent( vtkCommand::EndEvent, NULL );
-
-  // Update some visualization objects
-  if( !this->LookupTable )
-    this->CreateDefaultLookupTable( );
-  aren->GetRenderWindow( )->MakeCurrent( );
-
-  // Check clipping planes
-  int numClipPlanes = this->GetNumberOfClippingPlanes( );
-  if( numClipPlanes > 6 )
-  {
-    vtkErrorMacro( << "OpenGL has a limit of 6 clipping planes" );
-    numClipPlanes = 6;
-
-  } // fi
-
-  // Add all the clipping planes
-  double eq[ 4 ];
-  GLenum clipPlaneId;
-  for( int i = 0; i < numClipPlanes; i++ )
-  {
-    this->GetClippingPlaneInDataCoords( act->GetMatrix( ), i, eq );
-
-    clipPlaneId = static_cast< GLenum >( GL_CLIP_PLANE0 + i );
-    glEnable( clipPlaneId );
-    glClipPlane( clipPlaneId, eq );
-
-  } // rof
-
-  // Configure opacity
-  this->MapScalars( act->GetProperty( )->GetOpacity( ) );
-
-  // Configure textures
-  if( this->ColorTextureMap )
-  {
-    /* TODO
-       if( !this->InternalColorTexture )
-       {
-       this->InternalColorTexture =
-       vtkSmartPointer< vtkOpenGLTexture >::New( );
-       this->InternalColorTexture->RepeatOff( );
-
-       } // fi
-       this->InternalColorTexture->SetInputData( this->ColorTextureMap );
-    */
-
-    // Keep color from interacting with texture.
-    float info[ 4 ] = { float( 1 ), float( 1 ), float( 1 ), float( 1 ) };
-    glMaterialfv( GL_FRONT_AND_BACK, GL_DIFFUSE, info );
-
-  } // fi
-
-  int noAbort = 1;
-  bool renderNeeded = !this->ImmediateModeRendering;
-  renderNeeded     &= !this->GetGlobalImmediateModeRendering( );
-
-  // Something has changed in the pipeline?
-  if(
-    this->GetMTime( ) > this->BuildTime ||
-    in->GetMTime( ) > this->BuildTime ||
-    act->GetProperty( )->GetMTime( ) > this->BuildTime ||
-    aren->GetRenderWindow( ) != this->LastWindow
-    )
-  {
-    // Update visualization objects
-    this->ReleaseGraphicsResources( aren->GetRenderWindow( ) );
-    this->LastWindow = aren->GetRenderWindow( );
-
-    if( renderNeeded )
-    {
-      // Load textures
-      /* TODO
-         if( this->ColorTextureMap )
-         this->InternalColorTexture->Load( aren );
-      */
-
-      // Time the actual drawing
-      this->Timer->StartTimer( );
-      noAbort = this->Draw( aren, act );
-      this->Timer->StopTimer( );
-
-    } // fi
-
-    if( noAbort )
-      this->BuildTime.Modified( );
-  }
-  else
-  {
-    // If nothing changed, just draw the mapped mesh
-    if( renderNeeded )
-    {
-      // Load textures
-      /* TODO
-         if( this->ColorTextureMap )
-         this->InternalColorTexture->Load( aren );
-      */
-
-      // Time the actual drawing
-      this->Timer->StartTimer( );
-      this->Draw( aren, act );
-      this->Timer->StopTimer( );
-
-    } // fi
-
-  } // fi
-
-  // if we are in immediate mode rendering we always
-  // want to draw the primitives here
-  if( !renderNeeded )
-  {
-    // Load textures
-    /* TODO
-       if( this->ColorTextureMap )
-       this->InternalColorTexture->Load( aren );
-    */
-
-    // Time the actual drawing
-    this->Timer->StartTimer( );
-    this->Draw( aren, act );
-    this->Timer->StopTimer( );
-
-  } // fi
-  this->TimeToDraw = this->Timer->GetElapsedTime( );
-
-  // If the timer is not accurate enough, set it to a small
-  // time so that it is not zero
-  if( this->TimeToDraw == double( 0 ) )
-    this->TimeToDraw = double( 1e-3 );
-
-  for( int c = 0; c < numClipPlanes; c++ )
-  {
-    GLenum clipPlaneId = static_cast< GLenum >( GL_CLIP_PLANE0 + c );
-    glDisable( clipPlaneId );
-
-  } // rof
-  vtkOpenGLCheckErrorMacro( "failed after RenderPiece\n" );
-}
-
-// -------------------------------------------------------------------------
-template< class M >
-void cpExtensions::Visualization::OpenGLMeshMapper< M >::
-ReleaseGraphicsResources( vtkWindow* win )
-{
-  if( win && win->GetMapped( ) )
-  {
-    win->MakeCurrent( );
-    vtkOpenGLCheckErrorMacro( "failed after ReleaseGraphicsResources" );
-
-  } // fi
-  this->LastWindow = NULL;
-
-  // TAKEN FROM BASIC vtkOpenGLPolyDataMapper:
-  // We may not want to do this here.
-  /* TODO
-     if( this->InternalColorTexture )
-     this->InternalColorTexture->ReleaseGraphicsResources( win );
-  */
-}
-
-// -------------------------------------------------------------------------
-template< class M >
-int cpExtensions::Visualization::OpenGLMeshMapper< M >::
-Draw( vtkRenderer* aren, vtkActor* act )
-{
-  vtkOpenGLClearErrorMacro( );
-
-  // First and second initialization check
-  if( this->FirstRendering )
-    this->FirstRendering = !( this->_ConfigureOpenGL( ) );
-  if( this->FirstRendering )
-    return( 0 );
-
-  vtkOpenGLRenderer* ren = static_cast< vtkOpenGLRenderer* >( aren );
-  int rep, interpolation;
-  float tran;
-  vtkProperty* prop;
-  vtkUnsignedCharArray* c = NULL;
-  int tDim;
-  int noAbort = 1;
-  M* input = this->GetInput( );
-  int cellScalars = 0;
-  vtkIdType cellNum = 0;
-  int cellNormals;
-  int resolve = 0, zResolve = 0;
-  double zRes = 0.0;
-
-  // get the property
-  prop = act->GetProperty( );
-
-  // get the transparency
-  tran = prop->GetOpacity( );
-
-  // if the primitives are invisable then get out of here
-  if( tran <= 0.0 )
-    return( noAbort );
-
-  // get the representation ( e.g., surface / wireframe / points )
-  rep = prop->GetRepresentation( );
-
-  // get the shading interpolation
-  interpolation = prop->GetInterpolation( );
-
-  // are they cell or point scalars
-  if( this->Colors )
-  {
-    c = this->Colors;
-    if(
-      (
-        this->ScalarMode == VTK_SCALAR_MODE_USE_CELL_DATA ||
-        this->ScalarMode == VTK_SCALAR_MODE_USE_CELL_FIELD_DATA ||
-        this->ScalarMode == VTK_SCALAR_MODE_USE_FIELD_DATA ||
-        !input->GetPointData( )
-        ) &&
-      this->ScalarMode != VTK_SCALAR_MODE_USE_POINT_FIELD_DATA
-      )
-      cellScalars = 1;
-
-  } // fi
-
-  cellNormals = 1;
-
-  // if we are doing vertex colors then set lmcolor to adjust
-  // the current materials ambient and diffuse values using
-  // vertex color commands otherwise tell it not to.
-  glDisable( GL_COLOR_MATERIAL );
-  if( c )
-  {
-    GLenum lmcolorMode;
-    if( this->ScalarMaterialMode == VTK_MATERIALMODE_DEFAULT )
-    {
-      if( prop->GetAmbient( ) > prop->GetDiffuse( ) )
-        lmcolorMode = GL_AMBIENT;
-      else
-        lmcolorMode = GL_DIFFUSE;
-    }
-    else if( this->ScalarMaterialMode == VTK_MATERIALMODE_AMBIENT_AND_DIFFUSE )
-      lmcolorMode = GL_AMBIENT_AND_DIFFUSE;
-    else if( this->ScalarMaterialMode == VTK_MATERIALMODE_AMBIENT )
-      lmcolorMode = GL_AMBIENT;
-    else // if( this->ScalarMaterialMode == VTK_MATERIALMODE_DIFFUSE )
-      lmcolorMode = GL_DIFFUSE;
-    glColorMaterial( GL_FRONT_AND_BACK, lmcolorMode );
-    glEnable( GL_COLOR_MATERIAL );
-
-  } // fi
-
-  unsigned long idx = 0;
-  if( c )
-  {
-    idx |= CPPLUGINS_VTK_PDM_COLORS;
-    if( c->GetName( ) )
-      idx |= CPPLUGINS_VTK_PDM_OPAQUE_COLORS;
-  } // fi
-  if( cellScalars )
-    idx |= CPPLUGINS_VTK_PDM_CELL_COLORS;
-  if( cellNormals )
-    idx |= CPPLUGINS_VTK_PDM_CELL_NORMALS;
-  if( this->ScalarMode == VTK_SCALAR_MODE_USE_FIELD_DATA )
-    idx |= CPPLUGINS_VTK_PDM_USE_FIELD_DATA;
-
-  // store the types in the index
-  if( typeid( typename M::CoordRepType ) == typeid( float ) )
-    idx |= CPPLUGINS_VTK_PDM_POINT_TYPE_FLOAT;
-  else if( typeid( typename M::CoordRepType ) == typeid( double ) )
-    idx |= CPPLUGINS_VTK_PDM_POINT_TYPE_DOUBLE;
-
-  if( typeid( typename M::CoordRepType ) == typeid( float ) )
-    idx |= CPPLUGINS_VTK_PDM_NORMAL_TYPE_FLOAT;
-  else if( typeid( typename M::CoordRepType ) == typeid( double ) )
-    idx |= CPPLUGINS_VTK_PDM_NORMAL_TYPE_DOUBLE;
-
-  if( this->GetResolveCoincidentTopology( ) )
-  {
-    resolve = 1;
-    if( this->GetResolveCoincidentTopology( ) == VTK_RESOLVE_SHIFT_ZBUFFER )
-    {
-      zResolve = 1;
-      zRes = this->GetResolveCoincidentTopologyZShift( );
-    }
-    else
-    {
-#ifdef GL_VERSION_1_1
-      double f, u;
-      glEnable( GL_POLYGON_OFFSET_FILL );
-      this->GetResolveCoincidentTopologyPolygonOffsetParameters( f, u );
-      glPolygonOffset( f, u );
-#endif
-    } // fi
-
-  } // fi
-
-  // we need to know the total number of cells so that we can
-  // report progress
-  this->TotalCells = input->GetNumberOfCells( );
-
-  // Actual render
-  if( this->VBOSupported )
-  {
-    glBindBuffer( GL_ARRAY_BUFFER, GLuint( this->VBOID1 ) );
-
-    void* ptr = glMapBuffer( GL_ARRAY_BUFFER, GL_READ_WRITE );
-    if( ptr != NULL )
-    {
-      // Copy source points to OpenGL buffer
-      const TPoint* src =
-        input->GetPoints( )->CastToSTLContainer( ).data( );
-      TPoint* dest = reinterpret_cast< TPoint* >( ptr );
-      if( dest != NULL )
-        std::copy( src, src + input->GetNumberOfPoints( ), dest );
-      glUnmapBuffer( GL_ARRAY_BUFFER );
-
-    } // fi
-
-    std::size_t pSize = input->GetNumberOfPoints( ) * sizeof( TPoint );
-
-    // Bind vertices, normals and indices
-    glNormalPointer( this->ElementValueType, 0, ( void* )( pSize ) );
-    glVertexPointer( 3, this->ElementValueType, 0, 0 );
-    glBindBuffer( GL_ELEMENT_ARRAY_BUFFER, GLuint( this->VBOID2 ) );
-
-    // Prepare to render polygons
-    glEnableClientState( GL_NORMAL_ARRAY );
-    glEnableClientState( GL_VERTEX_ARRAY );
-
-    // Iterate over all input cells
-    unsigned int accum = 0;
-    const TCellsContainer* cells = input->GetCells( );
-    TCellIt cIt = cells->Begin( );
-    for( unsigned int nCell = 0; cIt != cells->End( ); nCell++, cIt++ )
-    {
-      const TCell* cell = cIt.Value( );
-      unsigned int nPoints = this->Sizes[ nCell ];
-
-      // Infere rendering mode
-      GLenum mode;
-      switch( prop->GetRepresentation( ) )
-      {
-      case VTK_SURFACE:
-      {
-        switch( nPoints )
-        {
-        case  1: mode = GL_POINTS;    break;
-        case  2: mode = GL_LINES;     break;
-        case  3: mode = GL_TRIANGLES; break;
-        case  4: mode = GL_QUADS;     break;
-        default: mode = GL_POLYGON;   break;
-        } // hctiws
-        // TODO: GL_LINE_STRIP,
-        // TODO: GL_LINE_LOOP,
-        // TODO: GL_TRIANGLE_STRIP,
-        // TODO: GL_TRIANGLE_FAN,
-        // TODO: GL_QUAD_STRIP,
-      }
-      break;
-      case VTK_WIREFRAME: mode = GL_LINE_LOOP; break;
-      case VTK_POINTS: default: mode = GL_POINTS; break;
-      } // hctiws
-
-      // Actual draw all elements
-      if( nPoints < 3 )
-        glDisable( GL_LIGHTING );
-
-      if( nPoints == 2 && zResolve )
-        glDepthRange( zRes, 1. );
-
-      glDrawElements(
-        mode, nPoints, this->IndexElementType, ( GLuint* )( 0 ) + accum
-        );
-      accum += nPoints;
-
-      if( nPoints < 3 )
-        glEnable( GL_LIGHTING );
-
-    } // rof
-
-    glDisableClientState( GL_VERTEX_ARRAY );
-    glDisableClientState( GL_NORMAL_ARRAY );
-
-    glBindBuffer( GL_ARRAY_BUFFER, 0 );
-    glBindBuffer( GL_ELEMENT_ARRAY_BUFFER, 0 );
-  }
-  else
-  {
-    std::cout << "Not VBO rendering!!!" << std::endl;
-
-  } // fi
-
-  if( resolve )
-  {
-    if( zResolve )
-      glDepthRange( 0., 1. );
-    else
-    {
-#ifdef GL_VERSION_1_1
-      glDisable( GL_POLYGON_OFFSET_FILL );
-#endif
-    } // fi
-
-  } // fi
-  vtkOpenGLCheckErrorMacro( "failed after Draw" );
-  this->UpdateProgress( 1.0 );
-  return( noAbort );
-}
-
-// -------------------------------------------------------------------------
-template< class M >
-cpExtensions::Visualization::OpenGLMeshMapper< M >::
-OpenGLMeshMapper( )
-  : Superclass( ),
-    TotalCells( 0 ),
-    FirstRendering( true ),
-    VBOID1( 0 ),
-    VBOID2( 0 )
-{
-  // Infere index element type
-  switch( sizeof( TIndex ) )
-  {
-  case 1 : this->IndexElementType = GL_UNSIGNED_BYTE;  break;
-  case 2 : this->IndexElementType = GL_UNSIGNED_SHORT; break;
-  case 4 : this->IndexElementType = GL_UNSIGNED_INT;   break;
-  default: this->IndexElementType = GL_UNSIGNED_BYTE;  break;
-  } // hctiws
-
-  // Infere point value type
-  if( typeid( TScalar ) == typeid( float ) )
-    this->ElementValueType = GL_FLOAT;
-  else
-    this->ElementValueType = GL_DOUBLE;
-}
-
-// -------------------------------------------------------------------------
-template< class M >
-cpExtensions::Visualization::OpenGLMeshMapper< M >::
-~OpenGLMeshMapper( )
-{
-  if( this->LastWindow )
-    this->ReleaseGraphicsResources( this->LastWindow );
-  if( this->VBOSupported )
-  {
-    GLuint id1 = GLuint( this->VBOID1 );
-    GLuint id2 = GLuint( this->VBOID2 );
-    if( id1 != GLuint( 0 ) ) glDeleteBuffers( 1, &id1 );
-    if( id2 != GLuint( 0 ) ) glDeleteBuffers( 1, &id2 );
-    this->VBOID1 = this->VBOID2 = 0;
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-template< class M >
-bool cpExtensions::Visualization::OpenGLMeshMapper< M >::
-_ConfigureOpenGL( )
-{
-  M* input = this->GetInput( );
-  if( input == NULL )
-    return( false );
-
-#ifdef _WIN32
-  // Get pointers to GL functions
-  glGenBuffers = reinterpret_cast< PFNGLGENBUFFERSARBPROC >
-    ( wglGetProcAddress( "glGenBuffers" ) );
-  glBindBuffer = reinterpret_cast< PFNGLBINDBUFFERARBPROC >
-    ( wglGetProcAddress( "glBindBuffer" ) );
-  glBufferData = reinterpret_cast< PFNGLBUFFERDATAARBPROC >
-    ( wglGetProcAddress( "glBufferData" ) );
-  glBufferSubData = reinterpret_cast< PFNGLBUFFERSUBDATAARBPROC >
-    ( wglGetProcAddress( "glBufferSubData" ) );
-  glDeleteBuffers = reinterpret_cast< PFNGLDELETEBUFFERSARBPROC >
-    ( wglGetProcAddress( "glDeleteBuffers" ) );
-  glGetBufferParameteriv =
-    reinterpret_cast< PFNGLGETBUFFERPARAMETERIVARBPROC >
-    ( wglGetProcAddress( "glGetBufferParameteriv" ) );
-  glMapBuffer = reinterpret_cast< PFNGLMAPBUFFERARBPROC >
-    ( wglGetProcAddress( "glMapBuffer" ) );
-  glUnmapBuffer = reinterpret_cast< PFNGLUNMAPBUFFERARBPROC >
-    ( wglGetProcAddress( "glUnmapBuffer" ) );
-
-  // Check once again VBO extension
-  if(
-    glGenBuffers != NULL &&
-    glBindBuffer != NULL &&
-    glBufferData != NULL &&
-    glBufferSubData != NULL &&
-    glMapBuffer != NULL &&
-    glUnmapBuffer != NULL &&
-    glDeleteBuffers != NULL &&
-    glGetBufferParameteriv != NULL
-    )
-    this->VBOSupported = true;
-  else
-    this->VBOSupported = false;
-#else // _WIN32
-  // Check if VBO ( Vertex Buffer Object ) is supported
-  std::string str = ( const char* )( glGetString( GL_EXTENSIONS ) );
-  this->VBOSupported =
-    ( str.find( "GL_ARB_vertex_buffer_object" ) != std::string::npos );
-#endif // _WIN32 
-
-  if( this->VBOSupported )
-  {
-    // Create points and normals buffers
-    GLuint id1;
-    std::size_t pSize = input->GetNumberOfPoints( ) * sizeof( TPoint );
-    std::size_t nSize =
-      input->GetPointNormalsContainer( ).size( ) * sizeof( TVector );
-    const TPoint* verts =
-      input->GetPoints( )->CastToSTLContainer( ).data( );
-    const TVector* norms = input->GetPointNormalsContainer( ).data( );
-    glGenBuffers( 1, &id1 );
-    glBindBuffer( GL_ARRAY_BUFFER, id1 );
-    glBufferData( GL_ARRAY_BUFFER, pSize + nSize, 0, GL_STREAM_DRAW );
-    glBufferSubData( GL_ARRAY_BUFFER, 0, pSize, verts );
-    glBufferSubData( GL_ARRAY_BUFFER, pSize, nSize, norms );
-    this->VBOID1 = ( unsigned int )( id1 );
-
-    // Create indices buffer
-    const TCellsContainer* cells = input->GetCells( );
-    if( cells == NULL )
-    {
-      itkExceptionMacro(
-        << "This QuadEdgeMesh does not have any cells!"
-        );
-
-    } // fi
-
-    TCellIt cIt;
-    unsigned int cellPointsCount = 0;
-    this->Sizes.clear( );
-    for( cIt = cells->Begin( ); cIt != cells->End( ); cIt++ )
-    {
-      this->Sizes.push_back( cIt.Value( )->GetNumberOfPoints( ) );
-      cellPointsCount += this->Sizes.back( );
-
-    } // rof
-    this->Indices.resize( cellPointsCount );
-    unsigned int indId = 0;
-    for( cIt = cells->Begin( ); cIt != cells->End( ); cIt++ )
-    {
-      const typename M::TQuadEdgeCell* cell =
-        dynamic_cast< const typename M::TQuadEdgeCell* >( cIt.Value( ) );
-      const typename M::TPrimalEdge* edge =
-        cell->GetEntryPrimalEdge( );
-      typename M::TPrimalEdge::ConstIterator iIt = edge->BeginLnext( );
-      for( ; iIt != edge->EndLnext( ); ++iIt )
-        this->Indices[ indId++ ] = ( *iIt )->GetOrigin( );
-
-    } // fi
-
-    // Attach index buffer to VBO
-    std::size_t iSize = std::size_t( this->Indices.size( ) );
-    iSize            *= sizeof( TIndex );
-    const unsigned int* indices = this->Indices.data( );
-    GLuint id2;
-    glGenBuffers( 1, &id2 );
-    glBindBuffer( GL_ARRAY_BUFFER, id2 );
-    glBufferData( GL_ARRAY_BUFFER, iSize, indices, GL_STATIC_DRAW );
-
-    int bSize;
-    glGetBufferParameteriv( GL_ARRAY_BUFFER, GL_BUFFER_SIZE, &bSize );
-    if( iSize != bSize )
-    {
-      glDeleteBuffers( 1, &id2 );
-      id2 = 0;
-      vtkErrorMacro( << "Data size mismatch with input array" );
-
-    } // fi
-    this->VBOID2 = ( unsigned int )( id2 );
-
-  } // fi
-  return( true );
-}
-
-#endif // __CPEXTENSIONS__VISUALIZATION__OPENGLMESHMAPPER__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Visualization/SeedWidgetCorrector.cxx b/lib/cpExtensions/Visualization/SeedWidgetCorrector.cxx
deleted file mode 100644 (file)
index f76cc9f..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-#include <cpExtensions/Visualization/SeedWidgetCorrector.h>
-
-#include <vtkCellPicker.h>
-#include <vtkSeedWidget.h>
-
-#include <vtkHandleRepresentation.h>
-#include <vtkHandleWidget.h>
-#include <vtkRenderWindowInteractor.h>
-
-// -------------------------------------------------------------------------
-cpExtensions::Visualization::SeedWidgetCorrector*
-cpExtensions::Visualization::SeedWidgetCorrector::
-New( )
-{
-  return( new cpExtensions::Visualization::SeedWidgetCorrector );
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::SeedWidgetCorrector::
-Configure( vtkCellPicker* picker )
-{
-  this->m_Picker = picker;
-}
-
-// -------------------------------------------------------------------------
-void cpExtensions::Visualization::SeedWidgetCorrector::
-Execute( vtkObject* caller, unsigned long eventId, void* arguments )
-{
-  vtkSeedWidget* wdg = dynamic_cast< vtkSeedWidget* >( caller );
-  if( wdg == NULL || this->m_Picker == NULL )
-    return;
-
-  if( eventId == vtkCommand::PlacePointEvent )
-  {
-    // Get newly added handle and its associated objects
-    int hId = *( reinterpret_cast< int* >( arguments ) );
-    vtkHandleWidget* hWdg = wdg->GetSeed( hId );
-    if( hWdg == NULL )
-      return;
-    vtkHandleRepresentation* hRep =
-      dynamic_cast< vtkHandleRepresentation* >( hWdg->GetRepresentation( ) );
-    if( hRep == NULL )
-      return;
-
-    // Get clicked point and 3D scene
-    double p[ 3 ];
-    hRep->GetDisplayPosition( p );
-    vtkRenderWindowInteractor* iren = wdg->GetInteractor( );
-    if( iren == NULL )
-      return;
-    vtkRenderer* ren =
-      iren->FindPokedRenderer( int( p[ 0 ] ), int( p[ 1 ] ) );
-    if( ren == NULL )
-      return;
-
-    // Correct point with given picker
-    double q[ 3 ];
-    this->m_Picker->Pick( p[ 0 ], p[ 1 ], p[ 2 ], ren );
-    this->m_Picker->GetPickPosition( q );
-    hRep->SetWorldPosition( q );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-cpExtensions::Visualization::SeedWidgetCorrector::
-SeedWidgetCorrector( )
-  : vtkCommand( ),
-    m_Picker( NULL )
-{
-}
-
-// -------------------------------------------------------------------------
-cpExtensions::Visualization::SeedWidgetCorrector::
-~SeedWidgetCorrector( )
-{
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpExtensions/Visualization/SeedWidgetCorrector.h b/lib/cpExtensions/Visualization/SeedWidgetCorrector.h
deleted file mode 100644 (file)
index 541d60c..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-#ifndef __CPEXTENSIONS__VISUALIZATION__SEEDWIDGETCORRECTOR__H__
-#define __CPEXTENSIONS__VISUALIZATION__SEEDWIDGETCORRECTOR__H__
-
-#include <cpExtensions/cpExtensions_Export.h>
-
-#include <vtkCommand.h>
-
-class vtkCellPicker;
-class vtkSeedWidget;
-
-namespace cpExtensions
-{
-  namespace Visualization
-  {
-    /**
-     */
-    class cpExtensions_EXPORT SeedWidgetCorrector
-      : public vtkCommand
-    {
-    public:
-      static SeedWidgetCorrector* New( );
-
-      void Configure( vtkCellPicker* picker );
-
-      virtual void Execute(
-        vtkObject* caller,
-        unsigned long eventId,
-        void* arguments
-        );
-
-    protected:
-      SeedWidgetCorrector( );
-      virtual ~SeedWidgetCorrector( );
-
-    protected:
-      vtkCellPicker* m_Picker;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPEXTENSIONS__VISUALIZATION__SEEDWIDGETCORRECTOR__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPipelineEditor/Block.cxx b/lib/cpPipelineEditor/Block.cxx
deleted file mode 100644 (file)
index aecdb41..0000000
+++ /dev/null
@@ -1,298 +0,0 @@
-#include "Block.h"\r
-\r
-#include <QPen>\r
-#include <QGraphicsScene>\r
-#include <QGraphicsSceneContextMenuEvent>\r
-#include <QFontMetrics>\r
-#include <QMenu>\r
-#include <QPainter>\r
-#include <QStyleOptionGraphicsItem>\r
-#include <QGraphicsWidget>\r
-\r
-#include <cpPlugins/Interface/ParametersQtDialog.h>\r
-\r
-#include "Port.h"\r
-#include "Connection.h"\r
-#include "Editor.h"\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::Block::\r
-Block(\r
-  TFilter* filter, const QString& name,\r
-  QGraphicsItem* parent, QGraphicsScene* scene\r
-  )\r
-  : Superclass( parent, scene ),\r
-    m_HorzMargin( 20 ),\r
-    m_VertMargin( 5 ),\r
-    m_NamePort( NULL ),\r
-    m_Filter( filter ),\r
-    m_Editor( NULL )\r
-{\r
-  QPainterPath p;\r
-  p.addRoundedRect( -50, -15, 100, 30, 5, 5 );\r
-\r
-  this->setPath( p );\r
-  this->setPen( QPen( Qt::darkGreen ) );\r
-  this->setBrush( Qt::green );\r
-  this->setFlag( QGraphicsItem::ItemIsMovable );\r
-  this->setFlag( QGraphicsItem::ItemIsSelectable );\r
-\r
-  this->m_Width = this->m_HorzMargin;\r
-  this->m_Height = this->m_VertMargin;\r
-\r
-  // Configure names\r
-  this->setNamePort( name );\r
-  this->_setTypeInfo( this->m_Filter->GetClassName( ) );\r
-\r
-  // Add input ports\r
-  auto inputs = this->m_Filter->GetInputsNames( );\r
-  for( auto iIt = inputs.begin( ); iIt != inputs.end( ); ++iIt )\r
-    this->addInputPort( iIt->c_str( ) );\r
-\r
-  // Add output ports\r
-  auto outputs = this->m_Filter->GetOutputsNames( );\r
-  for( auto oIt = outputs.begin( ); oIt != outputs.end( ); ++oIt )\r
-    this->addOutputPort( oIt->c_str( ) );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::Block::\r
-~Block( )\r
-{\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::Editor* cpPipelineEditor::Block::\r
-editor( )\r
-{\r
-  return( this->m_Editor );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-const cpPipelineEditor::Editor* cpPipelineEditor::Block::\r
-editor( ) const\r
-{\r
-  return( this->m_Editor );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::Block::\r
-setEditor( cpPipelineEditor::Editor* editor )\r
-{\r
-  this->m_Editor = editor;\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::Block::\r
-setNamePort( const QString& txt )\r
-{\r
-  if( this->m_NamePort == NULL )\r
-    this->m_NamePort = new NamePort( this );\r
-  this->m_NamePort->setName( txt );\r
-  this->_configPort( this->m_NamePort );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::InputPort* cpPipelineEditor::Block::\r
-addInputPort( const QString& txt )\r
-{\r
-  InputPort* ip = new InputPort( this );\r
-  ip->setExtendedName(\r
-    (\r
-      txt.toStdString( ) +\r
-      std::string( "@" ) +\r
-      this->namePort( ).toStdString( )\r
-      ).c_str( )\r
-    );\r
-  ip->setName( txt );\r
-  this->m_InputPorts[ txt.toStdString( ) ] = ip;\r
-  this->_configPort( ip );\r
-  return( ip );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::OutputPort* cpPipelineEditor::Block::\r
-addOutputPort( const QString& txt )\r
-{\r
-  OutputPort* op = new OutputPort( this );\r
-  op->setExtendedName(\r
-    (\r
-      txt.toStdString( ) +\r
-      std::string( "@" ) +\r
-      this->namePort( ).toStdString( )\r
-      ).c_str( )\r
-    );\r
-  op->setName( txt );\r
-  this->m_OutputPorts[ txt.toStdString( ) ] = op;\r
-  this->_configPort( op );\r
-  return( op );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::InputPort* cpPipelineEditor::Block::\r
-inputPort( const QString& txt )\r
-{\r
-  auto i = this->m_InputPorts.find( txt.toStdString( ) );\r
-  if( i != this->m_InputPorts.end( ) )\r
-    return( i->second );\r
-  else\r
-    return( NULL );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::OutputPort* cpPipelineEditor::Block::\r
-outputPort( const QString& txt )\r
-{\r
-  auto o = this->m_OutputPorts.find( txt.toStdString( ) );\r
-  if( o != this->m_OutputPorts.end( ) )\r
-    return( o->second );\r
-  else\r
-    return( NULL );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-QString cpPipelineEditor::Block::\r
-namePort( ) const\r
-{\r
-  return( this->m_NamePort->name( ) );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-const cpPipelineEditor::InputPort* cpPipelineEditor::Block::\r
-inputPort( const QString& txt ) const\r
-{\r
-  auto i = this->m_InputPorts.find( txt.toStdString( ) );\r
-  if( i != this->m_InputPorts.end( ) )\r
-    return( i->second );\r
-  else\r
-    return( NULL );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-const cpPipelineEditor::OutputPort* cpPipelineEditor::Block::\r
-outputPort( const QString& txt ) const\r
-{\r
-  auto o = this->m_OutputPorts.find( txt.toStdString( ) );\r
-  if( o != this->m_OutputPorts.end( ) )\r
-    return( o->second );\r
-  else\r
-    return( NULL );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::Block::\r
-paint(\r
-  QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget\r
-  )\r
-{\r
-  Q_UNUSED( option );\r
-  Q_UNUSED( widget );\r
-\r
-  if( this->isSelected( ) )\r
-  {\r
-    painter->setPen( QPen( Qt::darkYellow ) );\r
-    painter->setBrush( Qt::yellow );\r
-  }\r
-  else\r
-  {\r
-    painter->setPen( QPen( Qt::darkGreen ) );\r
-    painter->setBrush( Qt::green );\r
-\r
-  } // fi\r
-  painter->drawPath( this->path( ) );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-QVariant cpPipelineEditor::Block::\r
-itemChange( GraphicsItemChange change, const QVariant& value )\r
-{\r
-  return( value );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::Block::\r
-_setTypeInfo( const QString& txt )\r
-{\r
-  this->setToolTip( txt );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::Block::\r
-_configPort( Port* port )\r
-{\r
-  port->setBlock( this );\r
-\r
-  QFontMetrics fm( this->scene( )->font( ) );\r
-  this->m_Width = 0;\r
-  foreach( QGraphicsItem* i, this->children( ) )\r
-  {\r
-    Port* p = dynamic_cast< Port* >( i );\r
-    if( p == NULL )\r
-      continue;\r
-    int w = fm.width( p->name( ) ) + ( 4 * p->radius( ) );\r
-    if( w > this->m_Width - this->m_HorzMargin )\r
-      this->m_Width = w + this->m_HorzMargin;\r
-\r
-  } // rof\r
-  int h = fm.height( );\r
-  this->m_Height = this->m_InputPorts.size( ) + this->m_OutputPorts.size( );\r
-  this->m_Height += 3;\r
-  this->m_Height *= h;\r
-\r
-  QPainterPath pth;\r
-  pth.addRoundedRect(\r
-    -this->m_Width / 2,\r
-    -this->m_Height / 2,\r
-    this->m_Width,\r
-    this->m_Height, 5, 5\r
-    );\r
-  this->setPath( pth );\r
-\r
-  int y = -this->m_Height / 2 + this->m_VertMargin + port->radius( );\r
-  foreach( QGraphicsItem* i, this->children( ) )\r
-  {\r
-    Port* p = dynamic_cast< Port* >( i );\r
-    if( p == NULL )\r
-      continue;\r
-\r
-    if( dynamic_cast< NamePort* >( i ) != NULL )\r
-    {\r
-      i->setPos( -this->m_Width / 2 + port->radius( ), y );\r
-      y += h;\r
-    }\r
-    else if( dynamic_cast< InputPort* >( i ) != NULL )\r
-      i->setPos( -this->m_Width / 2 - 2 * port->radius( ), y );\r
-    else if( dynamic_cast< OutputPort* >( i ) != NULL )\r
-      i->setPos( this->m_Width / 2, y );\r
-    y += h;\r
-\r
-  } // rof\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::Block::\r
-mouseReleaseEvent( QGraphicsSceneMouseEvent* evt )\r
-{\r
-  if( this->m_Filter != NULL )\r
-    this->m_Filter->SetViewCoords(\r
-      this->scenePos( ).x( ), this->scenePos( ).y( )\r
-      );\r
-  this->Superclass::mouseReleaseEvent( evt );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::Block::\r
-contextMenuEvent( QGraphicsSceneContextMenuEvent* evt )\r
-{\r
-  QMenu menu;\r
-  QAction* configureAction = menu.addAction( "Configure" );\r
-  QAction* updateAction = menu.addAction( "Update" );\r
-  QAction* selectedAction = menu.exec( evt->screenPos( ) );\r
-\r
-  if( selectedAction == configureAction )\r
-    this->m_Filter->GetParametersDialog( )->exec( );\r
-  else if( selectedAction == updateAction )\r
-    this->m_Editor->updateFilter( this->namePort( ).toStdString( ) );\r
-}\r
-\r
-// eof - $RCSfile$\r
diff --git a/lib/cpPipelineEditor/Block.h b/lib/cpPipelineEditor/Block.h
deleted file mode 100644 (file)
index 6b2716f..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-#ifndef __CPPIPELINEEDITOR__BLOCK__H__\r
-#define __CPPIPELINEEDITOR__BLOCK__H__\r
-\r
-#include <cpPipelineEditor/cpPipelineEditor_Export.h>\r
-#include <QGraphicsPathItem>\r
-#include <cpPlugins/Interface/ProcessObject.h>\r
-\r
-namespace cpPipelineEditor\r
-{\r
-  class Editor;\r
-  class Port;\r
-  class NamePort;\r
-  class InputPort;\r
-  class OutputPort;\r
-\r
-  /**\r
-   */\r
-  class cpPipelineEditor_EXPORT Block\r
-    : public QGraphicsPathItem\r
-  {\r
-  public:\r
-    typedef Block             Self;\r
-    typedef QGraphicsPathItem Superclass;\r
-    typedef cpPlugins::Interface::ProcessObject TFilter;\r
-  \r
-  public:\r
-    enum { Type = QGraphicsItem::UserType + 6 };\r
-\r
-    Block(\r
-      TFilter* filter, const QString& name,\r
-      QGraphicsItem* parent = NULL, QGraphicsScene* scene = NULL\r
-      );\r
-    virtual ~Block( );\r
-\r
-    Editor* editor( );\r
-    const Editor* editor( ) const;\r
-    void setEditor( Editor* editor );\r
-\r
-    void setNamePort( const QString& txt );\r
-    InputPort* addInputPort( const QString& txt );\r
-    OutputPort* addOutputPort( const QString& txt );\r
-\r
-    InputPort* inputPort( const QString& txt );\r
-    OutputPort* outputPort( const QString& txt );\r
-\r
-    QString namePort( ) const;\r
-    const InputPort* inputPort( const QString& txt ) const;\r
-    const OutputPort* outputPort( const QString& txt ) const;\r
-\r
-    inline int type( ) const\r
-      { return( this->Type ); }\r
-\r
-    virtual void paint(\r
-      QPainter* painter,\r
-      const QStyleOptionGraphicsItem* option,\r
-      QWidget* widget\r
-      );\r
-\r
-  protected:\r
-    QVariant itemChange( GraphicsItemChange change, const QVariant& value );\r
-    void _setTypeInfo( const QString& txt );\r
-    void _configPort( Port* port );\r
-\r
-    virtual void mouseReleaseEvent( QGraphicsSceneMouseEvent* evt );\r
-    virtual void contextMenuEvent( QGraphicsSceneContextMenuEvent* evt );\r
-\r
-  private:\r
-    int m_HorzMargin;\r
-    int m_VertMargin;\r
-    int m_Width;\r
-    int m_Height;\r
-\r
-    NamePort* m_NamePort;\r
-    std::map< std::string, InputPort* >  m_InputPorts;\r
-    std::map< std::string, OutputPort* > m_OutputPorts;\r
-\r
-    TFilter* m_Filter;\r
-    Editor*  m_Editor;\r
-  };\r
-\r
-} // ecapseman\r
-\r
-#endif // __CPPIPELINEEDITOR__BLOCK__H__\r
-\r
-// eof - $RCSfile$\r
diff --git a/lib/cpPipelineEditor/CMakeLists.txt b/lib/cpPipelineEditor/CMakeLists.txt
deleted file mode 100644 (file)
index 263b4ac..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-SET(LIBRARY_NAME cpPipelineEditor)
-
-## ===============
-## = Source code =
-## ===============
-
-FILE(GLOB LIB_HEADERS_H   "*.h")
-FILE(GLOB LIB_HEADERS_HPP "*.hpp")
-FILE(GLOB LIB_HEADERS_HXX "*.hxx")
-FILE(GLOB LIB_SOURCES_C   "*.c")
-FILE(GLOB LIB_SOURCES_CPP "*.cpp")
-FILE(GLOB LIB_SOURCES_CXX "*.cxx")
-SET(
-  LIB_QT_Headers
-  Canvas.h
-  Editor.h
-  )
-
-## =====================
-## = Compilation rules =
-## =====================
-
-QT4_WRAP_CPP(LIB_QT_Wrapped_MOC_Sources ${LIB_QT_Headers})
-
-ADD_LIBRARY(
-  ${LIBRARY_NAME}
-  ${LIBRARY_TYPE}
-  ${LIB_SOURCES_C}
-  ${LIB_SOURCES_CPP}
-  ${LIB_SOURCES_CXX}
-  ${LIB_QT_Wrapped_MOC_Sources}
-  )
-GENERATE_EXPORT_HEADER(
-  ${LIBRARY_NAME}
-  BASE_NAME ${LIBRARY_NAME}
-  EXPORT_MACRO_NAME ${LIBRARY_NAME}_EXPORT
-  EXPORT_FILE_NAME ${PROJECT_BINARY_DIR}/lib/${LIBRARY_NAME}/${LIBRARY_NAME}_Export.h
-  STATIC_DEFINE ${LIBRARY_NAME}_BUILT_AS_STATIC
-  )
-TARGET_LINK_LIBRARIES(
-  ${LIBRARY_NAME}
-  ${QT_LIBRARIES}
-  cpPlugins_Interface
-  )
-
-## ========================
-## -- Installation rules --
-## ========================
-
-## eof - $RCSfile$
diff --git a/lib/cpPipelineEditor/Canvas.cxx b/lib/cpPipelineEditor/Canvas.cxx
deleted file mode 100644 (file)
index b8027d9..0000000
+++ /dev/null
@@ -1,153 +0,0 @@
-#include "Canvas.h"
-#include "Editor.h"
-#include "Block.h"
-#include "Connection.h"
-#include "Port.h"
-
-#include <QDragEnterEvent>
-#include <QWheelEvent>
-#include <QTreeWidget>
-
-// -------------------------------------------------------------------------
-cpPipelineEditor::Canvas::
-Canvas( QWidget* parent )
-  : QGraphicsView( parent )
-{
-  QGraphicsScene* scene = new QGraphicsScene( this );
-  this->setScene( scene );
-  this->setRenderHint( QPainter::Antialiasing );
-  this->setAcceptDrops( true );
-
-  this->m_Editor = new Editor( this );
-  this->m_Editor->install( scene );
-}
-
-// -------------------------------------------------------------------------
-cpPipelineEditor::Canvas::
-~Canvas( )
-{
-}
-
-// -------------------------------------------------------------------------
-cpPipelineEditor::
-Editor* cpPipelineEditor::Canvas::
-editor( )
-{
-  return( this->m_Editor );
-}
-
-// -------------------------------------------------------------------------
-const cpPipelineEditor::
-Editor* cpPipelineEditor::Canvas::
-editor( ) const
-{
-  return( this->m_Editor );
-}
-
-// -------------------------------------------------------------------------
-void cpPipelineEditor::Canvas::
-keyPressEvent( QKeyEvent* event )
-{
-  static const int del_key = 16777223;
-  if( event->key( ) == del_key )
-  {
-    auto _items = this->items( );
-    auto i = _items.begin( );
-    while( i != _items.end( ) )
-    {
-      if( ( *i )->isSelected( ) )
-      {
-        Block* b = dynamic_cast< Block* >( *i );
-        Connection* c = dynamic_cast< Connection* >( *i );
-        if( b != NULL )
-        {
-          if( this->m_Editor->deleteFilter( b->namePort( ).toStdString( ) ) )
-            delete b;
-        }
-        else if( c != NULL )
-        {
-          if(
-            this->m_Editor->deleteConnection(
-              c->port1( )->block( )->namePort( ).toStdString( ),
-              c->port2( )->block( )->namePort( ).toStdString( ),
-              c->port1( )->name( ).toStdString( ),
-              c->port2( )->name( ).toStdString( )
-              )
-            )
-            delete c;
-
-        } // fi
-        i = _items.end( );
-      }
-      else
-        i++;
-
-    } // elihw
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpPipelineEditor::Canvas::
-wheelEvent( QWheelEvent* event )
-{
-  this->_scaleView(
-    std::pow( double( 2 ), event->delta( ) / double( 240 ) )
-    );
-}
-
-// -------------------------------------------------------------------------
-void cpPipelineEditor::Canvas::
-dragEnterEvent( QDragEnterEvent* event )
-{
-  const QMimeData* mime = event->mimeData( );
-  if( mime->hasFormat( "application/x-qabstractitemmodeldatalist" ) )
-    event->acceptProposedAction( );
-}
-
-// -------------------------------------------------------------------------
-void cpPipelineEditor::Canvas::
-dragLeaveEvent( QDragLeaveEvent* event )
-{
-}
-
-// -------------------------------------------------------------------------
-void cpPipelineEditor::Canvas::
-dragMoveEvent( QDragMoveEvent* event )
-{
-}
-
-// -------------------------------------------------------------------------
-void cpPipelineEditor::Canvas::
-dropEvent( QDropEvent* event )
-{
-  const QMimeData* mime = event->mimeData( );
-  if( !( mime->hasFormat( "application/x-qabstractitemmodeldatalist" ) ) )
-    return;
-
-  event->acceptProposedAction( );
-  auto tree = dynamic_cast< QTreeWidget* >( event->source( ) );
-  if( tree == NULL )
-    return;
-
-  QList< QTreeWidgetItem* > items = tree->selectedItems( );
-  for( auto iIt = items.begin( ); iIt != items.end( ); ++iIt )
-    this->m_Editor->createFilter(
-      ( *iIt )->text( 0 ).toStdString( ), this->mapToScene( event->pos( ) )
-      );
-}
-
-// -------------------------------------------------------------------------
-void cpPipelineEditor::Canvas::
-_scaleView( qreal scaleFactor )
-{
-  qreal factor = this->transform( ).
-    scale( scaleFactor, scaleFactor ).
-    mapRect( QRectF( 0, 0, 1, 1 ) ).
-    width( );
-  if( factor < qreal( 0.07 ) || factor > qreal( 100 ) )
-    return;
-  this->scale( scaleFactor, scaleFactor );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPipelineEditor/Canvas.h b/lib/cpPipelineEditor/Canvas.h
deleted file mode 100644 (file)
index eb57a23..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-#ifndef __CPPIPELINEEDITOR__CANVAS__H__
-#define __CPPIPELINEEDITOR__CANVAS__H__
-
-#include <cpPipelineEditor/cpPipelineEditor_Export.h>
-#include <QtGui/QGraphicsView>
-
-namespace cpPipelineEditor
-{
-  // Some other forward declarations
-  class Block;
-  class Connection;
-  class Editor;
-
-  /**
-   */
-  class cpPipelineEditor_EXPORT Canvas
-    : public QGraphicsView
-  {
-    Q_OBJECT;
-
-  public:
-    Canvas( QWidget* parent = 0 );
-    virtual ~Canvas( );
-
-    Editor* editor( );
-    const Editor* editor( ) const;
-
-  protected:
-    /* TODO
-       void timerEvent( QTimerEvent* event );
-    */
-    void keyPressEvent( QKeyEvent* event );
-    void wheelEvent( QWheelEvent* event );
-
-    void dragEnterEvent( QDragEnterEvent* event );
-    void dragLeaveEvent( QDragLeaveEvent* event );
-    void dragMoveEvent( QDragMoveEvent* event );
-    void dropEvent( QDropEvent* event );
-
-    void _scaleView( qreal scaleFactor );
-
-  protected:
-    Editor* m_Editor;
-  };
-
-} // ecapseman
-
-#endif // __CPPIPELINEEDITOR__CANVAS__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPipelineEditor/Connection.cxx b/lib/cpPipelineEditor/Connection.cxx
deleted file mode 100644 (file)
index 0d5eea2..0000000
+++ /dev/null
@@ -1,140 +0,0 @@
-#include "Connection.h"\r
-#include "Port.h"\r
-\r
-#include <QBrush>\r
-#include <QPen>\r
-#include <QGraphicsScene>\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::Connection::\r
-Connection( QGraphicsItem* parent, QGraphicsScene* scene )\r
-  : Superclass( parent, scene )\r
-{\r
-  this->setPen( QPen( Qt::black, 2 ) );\r
-  this->setBrush( Qt::NoBrush );\r
-  this->setZValue( -1 );\r
-  this->m_Port1 = NULL;\r
-  this->m_Port2 = NULL;\r
-  this->setFlag( QGraphicsItem::ItemIsSelectable );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::Connection::\r
-~Connection( )\r
-{\r
-  if( this->m_Port1 != NULL )\r
-    this->m_Port1->connections( ).\r
-      remove( this->m_Port1->connections( ).indexOf( this ) );\r
-\r
-  if( this->m_Port2 != NULL )\r
-    this->m_Port2->setConnection( NULL );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::Connection::\r
-setPos1( const QPointF& p )\r
-{\r
-  this->m_Pos1 = p;\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::Connection::\r
-setPos2( const QPointF& p )\r
-{\r
-  this->m_Pos2 = p;\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::Connection::\r
-setPort1( OutputPort* p )\r
-{\r
-  if( p != NULL )\r
-  {\r
-    p->connections( ).append( this );\r
-    this->m_Port1 = p;\r
-\r
-  } // fi\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::Connection::\r
-setPort2( InputPort* p )\r
-{\r
-  if( p != NULL )\r
-  {\r
-    if( p->connection( ) == NULL )\r
-    {\r
-      p->setConnection( this );\r
-      this->m_Port2 = p;\r
-\r
-    } // fi\r
-\r
-  } // fi\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::Connection::\r
-updatePosFromPorts( )\r
-{\r
-  if( this->m_Port1 != NULL )\r
-    this->m_Pos1 =\r
-      this->m_Port1->scenePos( ) +\r
-      QPointF( this->m_Port1->radius( ), this->m_Port1->radius( ) );\r
-  if( this->m_Port2 != NULL )\r
-    this->m_Pos2 =\r
-      this->m_Port2->scenePos( ) +\r
-      QPointF( this->m_Port2->radius( ), this->m_Port2->radius( ) );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::Connection::\r
-updatePath( )\r
-{\r
-  QPainterPath p;\r
-  p.moveTo( this->m_Pos1 );\r
-\r
-  qreal dx = this->m_Pos2.x( ) - this->m_Pos1.x( );\r
-  qreal dy = this->m_Pos2.y( ) - this->m_Pos1.y( );\r
-  QPointF c1( this->m_Pos1.x( ) + dx * 0.25, this->m_Pos1.y( ) + dy * 0.1 );\r
-  QPointF c2( this->m_Pos1.x( ) + dx * 0.75, this->m_Pos1.y( ) + dy * 0.9 );\r
-  p.cubicTo( c1, c2, this->m_Pos2 );\r
-\r
-  this->setPath( p );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::OutputPort* cpPipelineEditor::Connection::\r
-port1( ) const\r
-{\r
-  return( this->m_Port1 );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::InputPort* cpPipelineEditor::Connection::\r
-port2( ) const\r
-{\r
-  return( this->m_Port2 );\r
-}\r
-\r
-#include <QPainter>\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::Connection::\r
-paint(\r
-  QPainter* painter,\r
-  const QStyleOptionGraphicsItem* option,\r
-  QWidget* widget\r
-  )\r
-{\r
-  Q_UNUSED( option );\r
-  Q_UNUSED( widget );\r
-\r
-  if( this->isSelected( ) )\r
-    painter->setPen( QPen( Qt::red, 5 ) );\r
-  else\r
-    painter->setPen( QPen( Qt::black, 2 ) );\r
-  this->setBrush( Qt::NoBrush );\r
-  painter->drawPath( this->path( ) );\r
-}\r
-\r
-// eof - $RCSfile$\r
diff --git a/lib/cpPipelineEditor/Connection.h b/lib/cpPipelineEditor/Connection.h
deleted file mode 100644 (file)
index 94b8676..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-#ifndef __CPPIPELINEEDITOR__CONNECTION__H__\r
-#define __CPPIPELINEEDITOR__CONNECTION__H__\r
-\r
-#include <cpPipelineEditor/cpPipelineEditor_Export.h>\r
-#include <QGraphicsPathItem>\r
-\r
-namespace cpPipelineEditor\r
-{\r
-  class InputPort;\r
-  class OutputPort;\r
-\r
-  /**\r
-   */\r
-  class cpPipelineEditor_EXPORT Connection\r
-    : public QGraphicsPathItem\r
-  {\r
-  public:\r
-    typedef Connection     Self;\r
-    typedef QGraphicsPathItem Superclass;\r
-\r
-  public:\r
-    enum { Type = QGraphicsItem::UserType + 5 };\r
-\r
-    Connection( QGraphicsItem* parent = 0, QGraphicsScene* scene = 0 );\r
-    virtual ~Connection( );\r
-\r
-    void setPos1( const QPointF& p );\r
-    void setPos2( const QPointF& p );\r
-    void setPort1( OutputPort* p );\r
-    void setPort2( InputPort* p );\r
-    void updatePosFromPorts( );\r
-    void updatePath( );\r
-    OutputPort* port1( ) const;\r
-    InputPort* port2( ) const;\r
-\r
-    inline int type( ) const\r
-      { return( this->Type ); }\r
-\r
-    virtual void paint(\r
-      QPainter* painter,\r
-      const QStyleOptionGraphicsItem* option,\r
-      QWidget* widget\r
-      );\r
-\r
-  private:\r
-    QPointF m_Pos1;\r
-    QPointF m_Pos2;\r
-    OutputPort* m_Port1;\r
-    InputPort*  m_Port2;\r
-  };\r
-\r
-} // ecapseman\r
-\r
-#endif // __CPPIPELINEEDITOR__CONNECTION__H__\r
-\r
-// eof - $RCSfile$\r
diff --git a/lib/cpPipelineEditor/Editor.cxx b/lib/cpPipelineEditor/Editor.cxx
deleted file mode 100644 (file)
index 8fb28bd..0000000
+++ /dev/null
@@ -1,594 +0,0 @@
-#include "Editor.h"\r
-\r
-#include <QGraphicsScene>\r
-#include <QEvent>\r
-#include <QGraphicsSceneContextMenuEvent>\r
-#include <QGraphicsSceneDragDropEvent>\r
-#include <QGraphicsSceneHelpEvent>\r
-#include <QGraphicsSceneHoverEvent>\r
-#include <QGraphicsSceneMouseEvent>\r
-#include <QGraphicsSceneMoveEvent>\r
-#include <QGraphicsSceneResizeEvent>\r
-#include <QGraphicsSceneWheelEvent>\r
-#include <QInputDialog>\r
-#include <QMessageBox>\r
-\r
-#include "Port.h"\r
-#include "Connection.h"\r
-#include "Block.h"\r
-\r
-// -------------------------------------------------------------------------\r
-#define cpPipelineEditor_Editor_Callback_SWITCH( E, e )                 \\r
-  case QEvent::GraphicsScene##E:                                        \\r
-  {                                                                     \\r
-    QGraphicsScene##E##Event* evt =                                     \\r
-      dynamic_cast< QGraphicsScene##E##Event* >( e );                   \\r
-    if( evt != NULL )                                                   \\r
-      this->_##E##_cbk( evt );                                          \\r
-  }                                                                     \\r
-  break;\r
-\r
-// -------------------------------------------------------------------------\r
-#define cpPipelineEditor_Editor_Callback_CODE( E )                      \\r
-  void cpPipelineEditor::Editor::_##E##_cbk( QGraphicsScene##E##Event* evt )\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::Editor::\r
-Editor( QObject* parent )\r
-  : Superclass( parent ),\r
-    m_ActualConnection( NULL ),\r
-    m_Workspace( NULL )\r
-{\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::Editor::\r
-~Editor( )\r
-{\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::Editor::\r
-TWorkspace* cpPipelineEditor::Editor::\r
-workspace( )\r
-{\r
-  return( this->m_Workspace );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-const cpPipelineEditor::Editor::\r
-TWorkspace* cpPipelineEditor::Editor::\r
-workspace( ) const\r
-{\r
-  return( this->m_Workspace );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::Editor::\r
-setWorkspace( TWorkspace* ws )\r
-{\r
-  this->m_Workspace = ws;\r
-  this->m_Graph = TGraph::New( );\r
-\r
-  // Create blocks\r
-  auto vIt = this->m_Workspace->GetGraph( )->BeginVertices( );\r
-  auto vIt_end = this->m_Workspace->GetGraph( )->EndVertices( );\r
-  for( ; vIt != vIt_end; ++vIt )\r
-  {\r
-    auto b = this->_createBlock(\r
-      dynamic_cast< TFilter* >( vIt->second.GetPointer( ) ),\r
-      vIt->first.c_str( ),\r
-      QPointF( vIt->second->GetViewX( ), vIt->second->GetViewY( ) )\r
-      );\r
-    if( b != NULL )\r
-      this->m_Graph->SetVertex( vIt->first, b );\r
-\r
-  } // rof\r
-\r
-  // Add edges\r
-  auto rIt = this->m_Workspace->GetGraph( )->BeginEdgesRows( );\r
-  auto rIt_end = this->m_Workspace->GetGraph( )->EndEdgesRows( );\r
-  for( ; rIt != rIt_end; ++rIt )\r
-  {\r
-    Block* orig = this->m_Graph->GetVertex( rIt->first );\r
-    auto cIt = rIt->second.begin( );\r
-    for( ; cIt != rIt->second.end( ); ++cIt )\r
-    {\r
-      Block* dest = this->m_Graph->GetVertex( cIt->first );\r
-      auto eIt = cIt->second.begin( );\r
-      for( ; eIt != cIt->second.end( ); ++eIt )\r
-      {\r
-        OutputPort* op = orig->outputPort( eIt->first.c_str( ) );\r
-        InputPort* ip = dest->inputPort( eIt->second.c_str( ) );\r
-        if( op == NULL || ip == NULL )\r
-          continue;\r
-\r
-        Connection* c = new Connection( 0, this->m_Scene );\r
-        c->setPort1( op );\r
-        c->setPort2( ip );\r
-        c->updatePosFromPorts( );\r
-        c->updatePath( );\r
-        this->m_Graph->AddEdge( rIt->first, cIt->first, c );\r
-\r
-      } // rof\r
-\r
-    } // rof\r
-\r
-  } // rof\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-std::string cpPipelineEditor::Editor::\r
-createFilter( const std::string& filter, const QPointF& pnt )\r
-{\r
-  std::string name = filter;\r
-  while( this->m_Workspace->HasFilter( name ) )\r
-    name += std::string( "_" );\r
-  if( this->m_Workspace->CreateFilter( filter, name ) )\r
-  {\r
-    auto b = this->_createBlock(\r
-      this->m_Workspace->GetFilter( name ),\r
-      name.c_str( ),\r
-      pnt\r
-      );\r
-    return( name );\r
-  }\r
-  else\r
-    return( "" );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-bool cpPipelineEditor::Editor::\r
-deleteFilter( const std::string& name )\r
-{\r
-  std::cout << name << std::endl;\r
-  return( false );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-bool cpPipelineEditor::Editor::\r
-deleteConnection(\r
-  const std::string& src, const std::string& des,\r
-  const std::string& in, const std::string& out\r
-  )\r
-{\r
-  std::cout\r
-    << src << " "\r
-    << des << " "\r
-    << in << " "\r
-    << out << std::endl;\r
-  return( false );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::Editor::\r
-install( QGraphicsScene* s )\r
-{\r
-  s->installEventFilter( this );\r
-  this->m_Scene = s;\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-QGraphicsItem* cpPipelineEditor::Editor::\r
-itemAt( const QPointF& pos )\r
-{\r
-  QList< QGraphicsItem* > items =\r
-    this->m_Scene->items( QRectF( pos - QPointF( 1, 1 ), QSize( 3, 3 ) ) );\r
-\r
-  foreach( QGraphicsItem* item, items )\r
-    if( item->type( ) > QGraphicsItem::UserType )\r
-      return( item );\r
-  return( NULL );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::Block* cpPipelineEditor::Editor::\r
-_createBlock( TFilter* f, const QString& name, const QPointF& pnt )\r
-{\r
-  if( f == NULL )\r
-    return( NULL );\r
-\r
-  // Add block\r
-  Block* b = new Block( f, name, 0, this->m_Scene );\r
-  b->setEditor( this );\r
-  b->setPos( pnt );\r
-\r
-  // Mark exposed inputs\r
-  auto& e_in = this->m_Workspace->GetExposedInputPorts( );\r
-  auto f_in = f->GetInputsNames( );\r
-  for( auto iIt = f_in.begin( ); iIt != f_in.end( ); ++iIt )\r
-  {\r
-    auto eIt = e_in.begin( );\r
-    auto fIt = e_in.end( );\r
-    for( ; eIt != e_in.end( ) && fIt == e_in.end( ); ++eIt )\r
-      if( eIt->second.second == *iIt )\r
-        fIt = eIt;\r
-    if( fIt == e_in.end( ) )\r
-      continue;\r
-    \r
-    auto port = b->inputPort( iIt->c_str( ) );\r
-    port->setExtendedName( fIt->first.c_str( ) );\r
-    port->setExtend( true );\r
-\r
-  } // rof\r
-\r
-  // Mark exposed outputs\r
-  auto& e_out = this->m_Workspace->GetExposedOutputPorts( );\r
-  auto f_out = f->GetOutputsNames( );\r
-  for( auto iIt = f_out.begin( ); iIt != f_out.end( ); ++iIt )\r
-  {\r
-    auto eIt = e_out.begin( );\r
-    auto fIt = e_out.end( );\r
-    for( ; eIt != e_out.end( ) && fIt == e_out.end( ); ++eIt )\r
-      if( eIt->second.second == *iIt )\r
-        fIt = eIt;\r
-    if( fIt == e_out.end( ) )\r
-      continue;\r
-    \r
-    auto port = b->outputPort( iIt->c_str( ) );\r
-    port->setExtendedName( fIt->first.c_str( ) );\r
-    port->setExtend( true );\r
-\r
-  } // rof\r
-\r
-  return( b );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-bool cpPipelineEditor::Editor::\r
-eventFilter( QObject* o, QEvent* e )\r
-{\r
-  // Event type\r
-  switch( int( e->type( ) ) )\r
-  {\r
-    cpPipelineEditor_Editor_Callback_SWITCH( ContextMenu, e );\r
-    cpPipelineEditor_Editor_Callback_SWITCH( DragEnter, e );\r
-    cpPipelineEditor_Editor_Callback_SWITCH( DragLeave, e );\r
-    cpPipelineEditor_Editor_Callback_SWITCH( DragMove, e );\r
-    cpPipelineEditor_Editor_Callback_SWITCH( Drop, e );\r
-    cpPipelineEditor_Editor_Callback_SWITCH( Help, e );\r
-    cpPipelineEditor_Editor_Callback_SWITCH( HoverEnter, e );\r
-    cpPipelineEditor_Editor_Callback_SWITCH( HoverLeave, e );\r
-    cpPipelineEditor_Editor_Callback_SWITCH( HoverMove, e );\r
-    cpPipelineEditor_Editor_Callback_SWITCH( MouseDoubleClick, e );\r
-    cpPipelineEditor_Editor_Callback_SWITCH( MouseMove, e );\r
-    cpPipelineEditor_Editor_Callback_SWITCH( MousePress, e );\r
-    cpPipelineEditor_Editor_Callback_SWITCH( MouseRelease, e );\r
-    cpPipelineEditor_Editor_Callback_SWITCH( Move, e );\r
-    cpPipelineEditor_Editor_Callback_SWITCH( Resize, e );\r
-    cpPipelineEditor_Editor_Callback_SWITCH( Wheel, e );\r
-  default:\r
-    break;\r
-  } // hctiws\r
-  return( this->Superclass::eventFilter( o, e ) );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::Editor::\r
-updateFilter( const std::string& filter_name )\r
-{\r
-  emit execFilter( filter_name );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::Editor::\r
-showOutputData(\r
-  const std::string& filter_name, const std::string& output_name\r
-  )\r
-{\r
-  emit showFilterOutput( filter_name, output_name );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor_Editor_Callback_CODE( ContextMenu )\r
-{\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor_Editor_Callback_CODE( DragEnter )\r
-{\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor_Editor_Callback_CODE( DragLeave )\r
-{\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor_Editor_Callback_CODE( DragMove )\r
-{\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor_Editor_Callback_CODE( Drop )\r
-{\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor_Editor_Callback_CODE( Help )\r
-{\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor_Editor_Callback_CODE( HoverEnter )\r
-{\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor_Editor_Callback_CODE( HoverLeave )\r
-{\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor_Editor_Callback_CODE( HoverMove )\r
-{\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor_Editor_Callback_CODE( MouseDoubleClick )\r
-{\r
-  QGraphicsItem* item = this->itemAt( evt->scenePos( ) );\r
-  if( item == NULL )\r
-    return;\r
-\r
-  switch( evt->button( ) )\r
-  {\r
-  case Qt::LeftButton:\r
-  {\r
-    Block* block = dynamic_cast< Block* >( item );\r
-    Port* port = dynamic_cast< Port* >( item );\r
-    Connection* conn = dynamic_cast< Connection* >( item );\r
-\r
-    if( block != NULL )\r
-    {\r
-      QString old_name = block->namePort( );\r
-      bool ok;\r
-      QString new_name =\r
-        QInputDialog::getText(\r
-          dynamic_cast< QWidget* >( this->parent( ) ),\r
-          "Change filter name",\r
-          "Filter name:",\r
-          QLineEdit::Normal,\r
-          old_name,\r
-          &ok\r
-          );\r
-      if( ok && !new_name.isEmpty( ) && old_name != new_name )\r
-      {\r
-        ok = this->m_Graph->RenameVertex(\r
-          old_name.toStdString( ),\r
-          new_name.toStdString( )\r
-          );\r
-        block->setNamePort( new_name );\r
-        this->m_Workspace->RenameFilter(\r
-          old_name.toStdString( ),\r
-          new_name.toStdString( )\r
-          );\r
-\r
-      } // fi\r
-    }\r
-    else if( port != NULL )\r
-    {\r
-      if( evt->modifiers( ) == Qt::ControlModifier )\r
-      {\r
-        port->setExtend( !( port->isExtended( ) ) );\r
-        InputPort* in_port = dynamic_cast< InputPort* >( port );\r
-        OutputPort* out_port = dynamic_cast< OutputPort* >( port );\r
-        if( port->isExtended( ) )\r
-        {\r
-          if( in_port != NULL )\r
-          {\r
-            this->m_Workspace->ExposeInputPort(\r
-              in_port->extendedName( ).toStdString( ),\r
-              in_port->block( )->namePort( ).toStdString( ),\r
-              in_port->name( ).toStdString( )\r
-              );\r
-          }\r
-          else if( out_port != NULL )\r
-          {\r
-            this->m_Workspace->ExposeOutputPort(\r
-              out_port->extendedName( ).toStdString( ),\r
-              out_port->block( )->namePort( ).toStdString( ),\r
-              out_port->name( ).toStdString( )\r
-              );\r
-\r
-          } // fi\r
-        }\r
-        else\r
-        {\r
-          if( in_port != NULL )\r
-            this->m_Workspace->HideInputPort(\r
-              in_port->extendedName( ).toStdString( )\r
-              );\r
-          else if( out_port != NULL )\r
-            this->m_Workspace->HideOutputPort(\r
-              out_port->extendedName( ).toStdString( )\r
-              );\r
-\r
-        } // fi\r
-        this->m_Scene->update( );\r
-      }\r
-      else if( evt->modifiers( ) == Qt::NoModifier )\r
-      {\r
-        if( port->isExtended( ) )\r
-        {\r
-          QString old_name = port->extendedName( );\r
-          bool ok;\r
-          QString new_name =\r
-            QInputDialog::getText(\r
-              dynamic_cast< QWidget* >( this->parent( ) ),\r
-              "Change filter name",\r
-              "Filter name:",\r
-              QLineEdit::Normal,\r
-              old_name,\r
-              &ok\r
-              );\r
-          if( ok && !new_name.isEmpty( ) && old_name != new_name )\r
-          {\r
-            port->setExtendedName( new_name );\r
-            InputPort* in_port = dynamic_cast< InputPort* >( port );\r
-            OutputPort* out_port = dynamic_cast< OutputPort* >( port );\r
-            if( in_port != NULL )\r
-              this->m_Workspace->\r
-                RenameExposedInputPort(\r
-                  old_name.toStdString( ),\r
-                  new_name.toStdString( )\r
-                  );\r
-            else if( out_port != NULL )\r
-              this->m_Workspace->\r
-                RenameExposedOutputPort(\r
-                  old_name.toStdString( ),\r
-                  new_name.toStdString( )\r
-                  );\r
-            this->m_Scene->update( );\r
-\r
-          } // fi\r
-\r
-        } // fi\r
-\r
-      } // fi\r
-    }\r
-    else if( conn != NULL )\r
-    {\r
-    } // fi\r
-  }\r
-  break;\r
-  /* TODO:\r
-     case Qt::RightButton:\r
-     {\r
-     }\r
-     break;\r
-     case Qt::MiddleButton:\r
-     {\r
-     }\r
-     break;\r
-  */\r
-  default:\r
-    break;\r
-  } // hctiws\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor_Editor_Callback_CODE( MouseMove )\r
-{\r
-  if( this->m_ActualConnection != NULL )\r
-  {\r
-    if( this->m_ActualConnection->port1( ) == NULL )\r
-      this->m_ActualConnection->setPos1( evt->scenePos( ) );\r
-    else if( this->m_ActualConnection->port2( ) == NULL )\r
-      this->m_ActualConnection->setPos2( evt->scenePos( ) );\r
-    this->m_ActualConnection->updatePath( );\r
-\r
-  } // fi\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor_Editor_Callback_CODE( MousePress )\r
-{\r
-  InputPort* in_port =\r
-    dynamic_cast< InputPort* >( this->itemAt( evt->scenePos( ) ) );\r
-  OutputPort* out_port =\r
-    dynamic_cast< OutputPort* >( this->itemAt( evt->scenePos( ) ) );\r
-  if( in_port == NULL && out_port == NULL )\r
-    return;\r
-\r
-  switch( evt->button( ) )\r
-  {\r
-  case Qt::LeftButton:\r
-  {\r
-    if( out_port != NULL )\r
-    {\r
-      if( out_port->block( ) != NULL )\r
-      {\r
-        // Start new connection\r
-        this->m_ActualConnection = new Connection( 0, this->m_Scene );\r
-        this->m_ActualConnection->setPort1( out_port );\r
-        this->m_ActualConnection->setPos1( out_port->scenePos( ) );\r
-        this->m_ActualConnection->setPos2( evt->scenePos( ) );\r
-        this->m_ActualConnection->updatePosFromPorts( );\r
-        this->m_ActualConnection->updatePath( );\r
-\r
-      } // fi\r
-\r
-    } // fi\r
-  }\r
-  break;\r
-  default:\r
-    break;\r
-\r
-  } // hctiws\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor_Editor_Callback_CODE( MouseRelease )\r
-{\r
-  if( this->m_ActualConnection == NULL )\r
-    return;\r
-\r
-  switch( evt->button( ) )\r
-  {\r
-  case Qt::LeftButton:\r
-  {\r
-    InputPort* port2 =\r
-      dynamic_cast< InputPort* >( this->itemAt( evt->scenePos( ) ) );\r
-    if( port2 != NULL )\r
-    {\r
-      OutputPort* port1 =\r
-        dynamic_cast< OutputPort* >( this->m_ActualConnection->port1( ) );\r
-      if( port1 != NULL )\r
-      {\r
-        if(\r
-          port1->block( ) != port2->block( ) &&\r
-          !port2->hasConnection( ) &&\r
-          !port1->isConnected( port2 ) &&\r
-          !port2->isExtended( )\r
-          )\r
-        {\r
-          this->m_ActualConnection->setPos2( port2->scenePos( ) );\r
-          this->m_ActualConnection->setPort2( port2 );\r
-          this->m_ActualConnection->updatePosFromPorts( );\r
-          this->m_ActualConnection->updatePath( );\r
-\r
-          this->m_Workspace->Connect(\r
-            port1->block( )->namePort( ).toStdString( ),\r
-            port2->block( )->namePort( ).toStdString( ),\r
-            port1->name( ).toStdString( ),\r
-            port2->name( ).toStdString( )\r
-            );\r
-          this->m_Graph->AddEdge(\r
-            port1->block( )->namePort( ).toStdString( ),\r
-            port2->block( )->namePort( ).toStdString( ),\r
-            this->m_ActualConnection\r
-            );\r
-        }\r
-        else\r
-          delete this->m_ActualConnection;\r
-      }\r
-      else\r
-        delete this->m_ActualConnection;\r
-    }\r
-    else\r
-      delete this->m_ActualConnection;\r
-    this->m_ActualConnection = NULL;\r
-  }\r
-  break;\r
-  default:\r
-    break;\r
-  } // hctisw\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor_Editor_Callback_CODE( Move )\r
-{\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor_Editor_Callback_CODE( Resize )\r
-{\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor_Editor_Callback_CODE( Wheel )\r
-{\r
-}\r
-\r
-// eof - $RCSfile$\r
diff --git a/lib/cpPipelineEditor/Editor.h b/lib/cpPipelineEditor/Editor.h
deleted file mode 100644 (file)
index 908abf9..0000000
+++ /dev/null
@@ -1,131 +0,0 @@
-#ifndef __CPPIPELINEEDITOR__EDITOR__H__\r
-#define __CPPIPELINEEDITOR__EDITOR__H__\r
-\r
-#include <cpPipelineEditor/cpPipelineEditor_Export.h>\r
-#include <cpExtensions/DataStructures/Graph.h>\r
-#include <cpPlugins/Interface/Workspace.h>\r
-#include <QObject>\r
-#include <QPointF>\r
-\r
-class QGraphicsScene;\r
-class QGraphicsSceneMouseEvent;\r
-class QGraphicsItem;\r
-class QGraphicsSceneContextMenuEvent;\r
-class QGraphicsSceneDragDropEvent;\r
-class QGraphicsSceneHelpEvent;\r
-class QGraphicsSceneHoverEvent;\r
-class QGraphicsSceneMouseEvent;\r
-class QGraphicsSceneMoveEvent;\r
-class QGraphicsSceneResizeEvent;\r
-class QGraphicsSceneWheelEvent;\r
-\r
-// -------------------------------------------------------------------------\r
-#define cpPipelineEditor_Editor_Callback_DCL( E )       \\r
-  void _##E##_cbk( QGraphicsScene##E##Event* e );\r
-\r
-namespace cpPipelineEditor\r
-{\r
-  class Connection;\r
-  class Block;\r
-\r
-  /**\r
-   */\r
-  class cpPipelineEditor_EXPORT Editor\r
-    : public QObject\r
-  {\r
-    Q_OBJECT;\r
-\r
-  public:\r
-    typedef Editor Self;\r
-    typedef QObject      Superclass;\r
-\r
-    typedef cpPlugins::Interface::Workspace TWorkspace;\r
-    typedef TWorkspace::TFilter             TFilter;\r
-    typedef\r
-      cpExtensions::DataStructures::\r
-      Graph< Block*, Connection*, std::string > TGraph;\r
-\r
-  public:\r
-    explicit Editor( QObject* parent = 0 );\r
-    virtual ~Editor( );\r
-\r
-    TWorkspace* workspace( );\r
-    const TWorkspace* workspace( ) const;\r
-    void setWorkspace( TWorkspace* ws );\r
-\r
-    std::string createFilter(\r
-      const std::string& filter,\r
-      const QPointF& pnt = QPointF( qreal( 0 ), qreal( 0 ) )\r
-      );\r
-    bool deleteFilter( const std::string& name );\r
-    bool deleteConnection(\r
-      const std::string& src, const std::string& des,\r
-      const std::string& in, const std::string& out\r
-      );\r
-\r
-    void install( QGraphicsScene* s );\r
-    bool eventFilter( QObject* o, QEvent* e );\r
-\r
-    void updateFilter( const std::string& filter_name );\r
-    void showOutputData(\r
-      const std::string& filter_name,\r
-      const std::string& output_name\r
-      );\r
-\r
-  signals:\r
-    void execFilter( const std::string& filter_name );\r
-    void showFilterOutput(\r
-      const std::string& filter_name,\r
-      const std::string& output_name\r
-      );\r
-\r
-  private:\r
-    QGraphicsItem* itemAt( const QPointF& pos );\r
-\r
-    inline Block* _createBlock(\r
-      TFilter* f, const QString& name, const QPointF& pnt\r
-      );\r
-\r
-  protected:\r
-    typedef QGraphicsSceneDragDropEvent QGraphicsSceneDragEnterEvent;\r
-    typedef QGraphicsSceneDragDropEvent QGraphicsSceneDragLeaveEvent;\r
-    typedef QGraphicsSceneDragDropEvent QGraphicsSceneDragMoveEvent;\r
-    typedef QGraphicsSceneDragDropEvent QGraphicsSceneDropEvent;\r
-    typedef QGraphicsSceneHoverEvent    QGraphicsSceneHoverEnterEvent;\r
-    typedef QGraphicsSceneHoverEvent    QGraphicsSceneHoverMoveEvent;\r
-    typedef QGraphicsSceneHoverEvent    QGraphicsSceneHoverLeaveEvent;\r
-    typedef QGraphicsSceneMouseEvent    QGraphicsSceneMouseDoubleClickEvent;\r
-    typedef QGraphicsSceneMouseEvent    QGraphicsSceneMouseMoveEvent;\r
-    typedef QGraphicsSceneMouseEvent    QGraphicsSceneMousePressEvent;\r
-    typedef QGraphicsSceneMouseEvent    QGraphicsSceneMouseReleaseEvent;\r
-\r
-    cpPipelineEditor_Editor_Callback_DCL( ContextMenu );\r
-    cpPipelineEditor_Editor_Callback_DCL( DragEnter );\r
-    cpPipelineEditor_Editor_Callback_DCL( DragLeave );\r
-    cpPipelineEditor_Editor_Callback_DCL( DragMove );\r
-    cpPipelineEditor_Editor_Callback_DCL( Drop );\r
-    cpPipelineEditor_Editor_Callback_DCL( Help );\r
-    cpPipelineEditor_Editor_Callback_DCL( HoverEnter );\r
-    cpPipelineEditor_Editor_Callback_DCL( HoverLeave );\r
-    cpPipelineEditor_Editor_Callback_DCL( HoverMove );\r
-    cpPipelineEditor_Editor_Callback_DCL( MouseDoubleClick );\r
-    cpPipelineEditor_Editor_Callback_DCL( MouseMove );\r
-    cpPipelineEditor_Editor_Callback_DCL( MousePress );\r
-    cpPipelineEditor_Editor_Callback_DCL( MouseRelease );\r
-    cpPipelineEditor_Editor_Callback_DCL( Move );\r
-    cpPipelineEditor_Editor_Callback_DCL( Resize );\r
-    cpPipelineEditor_Editor_Callback_DCL( Wheel );\r
-\r
-  private:\r
-    QGraphicsScene* m_Scene;\r
-    Connection* m_ActualConnection;\r
-\r
-    TWorkspace* m_Workspace;\r
-    TGraph::Pointer m_Graph;\r
-  };\r
-\r
-} // ecapseman\r
-\r
-#endif // __CPPIPELINEEDITOR__EDITOR__H__\r
-\r
-// eof - $RCSfile$\r
diff --git a/lib/cpPipelineEditor/Port.cxx b/lib/cpPipelineEditor/Port.cxx
deleted file mode 100644 (file)
index b447b0a..0000000
+++ /dev/null
@@ -1,292 +0,0 @@
-#include "Port.h"\r
-#include "Connection.h"\r
-#include "Block.h"\r
-#include "Editor.h"\r
-\r
-#include <QGraphicsScene>\r
-#include <QGraphicsSceneContextMenuEvent>\r
-#include <QFontMetrics>\r
-#include <QMenu>\r
-#include <QPainter>\r
-#include <QPen>\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::Port::\r
-Port( QGraphicsItem* parent, QGraphicsScene* scene )\r
-  : Superclass( parent, scene ),\r
-    m_Radius( 5 ),\r
-    m_Margin( 2 )\r
-{\r
-  this->m_Label = new QGraphicsTextItem( this );\r
-  this->m_ExtendedLabel = new QGraphicsTextItem( this );\r
-  this->setExtend( false );\r
-\r
-  QPainterPath p;\r
-  p.addEllipse( 0, 0, 2 * this->m_Radius, 2 * this->m_Radius );\r
-\r
-  this->setPath( p );\r
-  this->setPen( QPen( Qt::darkRed ) );\r
-  this->setBrush( Qt::red );\r
-  this->setFlag( QGraphicsItem::ItemSendsScenePositionChanges );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::Port::\r
-~Port( )\r
-{\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::Port::\r
-setBlock( Block* b )\r
-{\r
-  this->m_Block = b;\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::Port::\r
-setName( const QString& n )\r
-{\r
-  this->m_Label->setPlainText( n );\r
-  this->_updateLabels( );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::Port::\r
-setExtendedName( const QString& n )\r
-{\r
-  this->m_ExtendedLabel->setPlainText( n );\r
-  this->_updateLabels( );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::Port::\r
-setExtend( bool extend )\r
-{\r
-  // Do nothing!\r
-  this->m_IsExtended = false;\r
-  this->m_ExtendedLabel->setVisible( false );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::Port::\r
-paint(\r
-  QPainter* painter,\r
-  const QStyleOptionGraphicsItem* option,\r
-  QWidget* widget\r
-  )\r
-{\r
-  Q_UNUSED( option );\r
-  Q_UNUSED( widget );\r
-\r
-  if( this->isExtended( ) )\r
-  {\r
-    painter->setPen( QPen( Qt::darkBlue ) );\r
-    painter->setBrush( Qt::blue );\r
-  }\r
-  else\r
-  {\r
-    painter->setPen( QPen( Qt::darkRed ) );\r
-    painter->setBrush( Qt::red );\r
-\r
-  } // fi\r
-  painter->drawPath( this->path( ) );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::NamePort::\r
-NamePort( QGraphicsItem* parent, QGraphicsScene* scene )\r
-  : Superclass( parent, scene )\r
-{\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::NamePort::\r
-~NamePort( )\r
-{\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::NamePort::\r
-_updateLabels( )\r
-{\r
-  QFont font( this->scene( )->font( ) );\r
-  font.setBold( true );\r
-  this->m_Label->setFont( font );\r
-  this->m_ExtendedLabel->setFont( font );\r
-  this->setPath( QPainterPath( ) );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-bool cpPipelineEditor::NamePort::\r
-isConnected( Port* other )\r
-{\r
-  return( false );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::InputPort::\r
-InputPort( QGraphicsItem* parent, QGraphicsScene* scene )\r
-  : Superclass( parent, scene ),\r
-    m_Connection( NULL )\r
-{\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::InputPort::\r
-~InputPort( )\r
-{\r
-  if( this->m_Connection != NULL )\r
-    delete this->m_Connection;\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::InputPort::\r
-_updateLabels( )\r
-{\r
-  QFontMetrics fm( this->scene( )->font( ) );\r
-  this->m_Label->setPos( this->m_Radius * 2, -fm.height( ) / 2 );\r
-  this->m_ExtendedLabel->setPos(\r
-    -fm.width( this->extendedName( ) ) - this->m_Radius * 2,\r
-    -fm.height( ) / 2\r
-    );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::InputPort::\r
-setExtend( bool extend )\r
-{\r
-  if( this->m_Connection == NULL )\r
-  {\r
-    this->m_IsExtended = extend;\r
-    this->m_ExtendedLabel->setVisible( extend );\r
-  }\r
-  else\r
-    this->Superclass::setExtend( false );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-bool cpPipelineEditor::InputPort::\r
-isConnected( Port* other )\r
-{\r
-  if( this->m_Connection != NULL )\r
-    return(\r
-      this->m_Connection->port1( ) == other &&\r
-      this->m_Connection->port2( ) == this\r
-      );\r
-  else\r
-    return( false );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::InputPort::\r
-setConnection( Connection* c )\r
-{\r
-  this->m_Connection = c;\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-QVariant cpPipelineEditor::InputPort::\r
-itemChange( GraphicsItemChange change, const QVariant& value )\r
-{\r
-  if( change == ItemScenePositionHasChanged )\r
-  {\r
-    if( this->m_Connection != NULL )\r
-    {\r
-      this->m_Connection->updatePosFromPorts( );\r
-      this->m_Connection->updatePath( );\r
-\r
-    } // fi\r
-\r
-  } // fi\r
-  return( value );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::OutputPort::\r
-OutputPort( QGraphicsItem* parent, QGraphicsScene* scene )\r
-  : Superclass( parent, scene )\r
-{\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-cpPipelineEditor::OutputPort::\r
-~OutputPort( )\r
-{\r
-  foreach( Connection* conn, this->m_Connections )\r
-    delete conn;\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::OutputPort::\r
-_updateLabels( )\r
-{\r
-  QFontMetrics fm( this->scene( )->font( ) );\r
-  this->m_Label->setPos(\r
-    -fm.width( this->name( ) ) - this->m_Radius * 2, -fm.height( ) / 2\r
-    );\r
-  this->m_ExtendedLabel->setPos( this->m_Radius * 2, -fm.height( ) / 2 );\r
-\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::OutputPort::\r
-setExtend( bool extend )\r
-{\r
-  this->m_IsExtended = extend;\r
-  this->m_ExtendedLabel->setVisible( extend );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-bool cpPipelineEditor::OutputPort::\r
-isConnected( Port* other )\r
-{\r
-  auto i = this->m_Connections.begin( );\r
-  bool conn = false;\r
-  for( ; i != this->m_Connections.end( ) && !conn; ++i )\r
-    conn |= ( ( *i )->port1( ) == this && ( *i )->port2( ) == other );\r
-  return( conn );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-QVariant cpPipelineEditor::OutputPort::\r
-itemChange( GraphicsItemChange change, const QVariant& value )\r
-{\r
-  if( change == ItemScenePositionHasChanged )\r
-  {\r
-    foreach( Connection* conn, this->m_Connections )\r
-    {\r
-      conn->updatePosFromPorts( );\r
-      conn->updatePath( );\r
-\r
-    } // rof\r
-\r
-  } // fi\r
-  return( value );\r
-}\r
-\r
-// -------------------------------------------------------------------------\r
-void cpPipelineEditor::OutputPort::\r
-contextMenuEvent( QGraphicsSceneContextMenuEvent* evt )\r
-{\r
-  if( this->m_Block == NULL )\r
-    return;\r
-  \r
-  QMenu menu;\r
-  QAction* showAction = menu.addAction( "Show" );\r
-  QAction* hideAction = menu.addAction( "Hide" );\r
-  QAction* selectedAction = menu.exec( evt->screenPos( ) );\r
-\r
-  if( selectedAction == showAction )\r
-  {\r
-    this->m_Block->editor( )->showOutputData(\r
-      this->m_Block->namePort( ).toStdString( ),\r
-      this->name( ).toStdString( )\r
-      );\r
-  }\r
-  else if( selectedAction == hideAction )\r
-  {\r
-  } // fi\r
-}\r
-\r
-// eof - $RCSfile$\r
diff --git a/lib/cpPipelineEditor/Port.h b/lib/cpPipelineEditor/Port.h
deleted file mode 100644 (file)
index 4daafd0..0000000
+++ /dev/null
@@ -1,169 +0,0 @@
-#ifndef __CPPIPELINEEDITOR__PORT__H__\r
-#define __CPPIPELINEEDITOR__PORT__H__\r
-\r
-#include <cpPipelineEditor/cpPipelineEditor_Export.h>\r
-#include <QGraphicsPathItem>\r
-\r
-namespace cpPipelineEditor\r
-{\r
-  class Block;\r
-  class Connection;\r
-\r
-  /**\r
-   */\r
-  class cpPipelineEditor_EXPORT Port\r
-    : public QGraphicsPathItem\r
-  {\r
-  public:\r
-    typedef Port Self;\r
-    typedef QGraphicsPathItem Superclass;\r
-\r
-    enum { Type = QGraphicsItem::UserType + 1 };\r
-\r
-  public:\r
-    Port( QGraphicsItem* parent = NULL, QGraphicsScene* scene = NULL );\r
-    virtual ~Port( );\r
-\r
-    void setBlock( Block* b );\r
-    inline Block* block( ) const\r
-      { return( this->m_Block ); }\r
-\r
-    virtual void setName( const QString& n );\r
-    virtual void setExtendedName( const QString& n );\r
-    inline QString name( ) const\r
-      { return( this->m_Label->toPlainText( ) ); }\r
-    inline QString extendedName( ) const\r
-      { return( this->m_ExtendedLabel->toPlainText( ) ); }\r
-\r
-    inline int radius( ) const\r
-      { return( this->m_Radius ); }\r
-\r
-    inline bool isExtended( ) const\r
-      { return( this->m_IsExtended ); }\r
-    virtual void setExtend( bool extend );\r
-\r
-    virtual bool isConnected( Port* other ) = 0;\r
-    inline int type( ) const\r
-      { return( this->Type ); }\r
-\r
-    virtual void paint(\r
-      QPainter* painter,\r
-      const QStyleOptionGraphicsItem* option,\r
-      QWidget* widget\r
-      );\r
-\r
-  protected:\r
-    virtual void _updateLabels( ) { }\r
-\r
-  protected:\r
-    Block* m_Block;\r
-\r
-    int  m_Radius;\r
-    int  m_Margin;\r
-    bool m_IsExtended;\r
-\r
-    QGraphicsTextItem* m_Label;\r
-    QGraphicsTextItem* m_ExtendedLabel;\r
-  };\r
-\r
-  /**\r
-   */\r
-  class NamePort\r
-    : public Port\r
-  {\r
-  public:\r
-    typedef NamePort Self;\r
-    typedef Port     Superclass;\r
-\r
-    enum { Type = Superclass::Type + 1 };\r
-\r
-  public:\r
-    NamePort( QGraphicsItem* parent = NULL, QGraphicsScene* scene = NULL );\r
-    virtual ~NamePort( );\r
-\r
-    virtual bool isConnected( Port* other );\r
-    inline int type( ) const\r
-      { return( this->Type ); }\r
-\r
-  protected:\r
-    virtual void _updateLabels( );\r
-  };\r
-\r
-  /**\r
-   */\r
-  class InputPort\r
-    : public Port\r
-  {\r
-  public:\r
-    typedef InputPort Self;\r
-    typedef Port      Superclass;\r
-\r
-    enum { Type = Superclass::Type + 3 };\r
-\r
-  public:\r
-    InputPort( QGraphicsItem* parent = NULL, QGraphicsScene* scene = NULL );\r
-    virtual ~InputPort( );\r
-\r
-    virtual void setExtend( bool extend );\r
-\r
-    virtual bool isConnected( Port* other );\r
-    inline int type( ) const\r
-      { return( this->Type ); }\r
-\r
-    void setConnection( Connection* c );\r
-    inline Connection* connection( )\r
-      { return( this->m_Connection ); }\r
-    inline const Connection* connection( ) const\r
-      { return( this->m_Connection ); }\r
-    inline bool hasConnection( ) const\r
-      { return( this->m_Connection != NULL ); }\r
-\r
-  protected:\r
-    QVariant itemChange( GraphicsItemChange change, const QVariant& value );\r
-    virtual void _updateLabels( );\r
-\r
-  protected:\r
-    Connection* m_Connection;\r
-  };\r
-\r
-  /**\r
-   */\r
-  class OutputPort\r
-    : public Port\r
-  {\r
-  public:\r
-    typedef OutputPort Self;\r
-    typedef Port       Superclass;\r
-\r
-    enum { Type = Superclass::Type + 4 };\r
-\r
-  public:\r
-    OutputPort( QGraphicsItem* parent = NULL, QGraphicsScene* scene = NULL );\r
-    virtual ~OutputPort( );\r
-\r
-    virtual void setExtend( bool extend );\r
-\r
-    virtual bool isConnected( Port* other );\r
-    inline int type( ) const\r
-      { return( this->Type ); }\r
-\r
-    inline QVector< Connection* >& connections( )\r
-      { return( this->m_Connections ); }\r
-    inline const QVector< Connection* >& connections( ) const\r
-      { return( this->m_Connections ); }\r
-\r
-  protected:\r
-    QVariant itemChange( GraphicsItemChange change, const QVariant& value );\r
-    virtual void _updateLabels( );\r
-\r
-    virtual void contextMenuEvent( QGraphicsSceneContextMenuEvent* evt );\r
-\r
-  protected:\r
-    QVector< Connection* > m_Connections;\r
-  };\r
-\r
-} // ecapseman\r
-\r
-#endif // __CPPIPELINEEDITOR__PORT__H__\r
-\r
-// eof - $RCSfile$\r
diff --git a/lib/cpPlugins/CMakeLists.txt b/lib/cpPlugins/CMakeLists.txt
deleted file mode 100644 (file)
index fe78cf1..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-SUBDIRS(
-  Interface
-  Plugins
-  )
-
-## eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/BaseProcessObjects.cxx b/lib/cpPlugins/Interface/BaseProcessObjects.cxx
deleted file mode 100644 (file)
index 8177b75..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#include <cpPlugins/Interface/BaseProcessObjects.h>
-
-cpPlugins_Code_ProcessObject( SourceObject );
-cpPlugins_Code_ProcessObject( SinkObject );
-cpPlugins_Code_ProcessObject( FilterObject );
-cpPlugins_Code_ProcessObject( ImageSource );
-cpPlugins_Code_ProcessObject( MeshSource );
-cpPlugins_Code_ProcessObject( ImageSink );
-cpPlugins_Code_ProcessObject( MeshSink );
-cpPlugins_Code_ProcessObject( ImageToImageFilter );
-cpPlugins_Code_ProcessObject( ImageToMeshFilter );
-cpPlugins_Code_ProcessObject( MeshToImageFilter );
-cpPlugins_Code_ProcessObject( MeshToMeshFilter );
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/BaseProcessObjects.h b/lib/cpPlugins/Interface/BaseProcessObjects.h
deleted file mode 100644 (file)
index a120b84..0000000
+++ /dev/null
@@ -1,239 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__BASEPROCESSOBJECTS__H__
-#define __CPPLUGINS__INTERFACE__BASEPROCESSOBJECTS__H__
-
-#include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
-#include <cpPlugins/Interface/ProcessObject.h>
-
-// -------------------------------------------------------------------------
-#define cpPlugins_Define_ProcessObject( O, S )                          \
-  class cpPlugins_Interface_EXPORT O                                    \
-    : public S                                                          \
-  {                                                                     \
-  public:                                                               \
-    typedef O                               Self;                       \
-    typedef S                               Superclass;                 \
-    typedef itk::SmartPointer< Self >       Pointer;                    \
-    typedef itk::SmartPointer< const Self > ConstPointer;               \
-  public:                                                               \
-    itkTypeMacro( O, S );                                               \
-    cpPlugins_Id_Macro( cpPlugins::Interface::O, ProcessObject );       \
-  protected:                                                            \
-    O( );                                                               \
-    virtual ~O( );                                                      \
-  private:                                                              \
-    O( const Self& );                                                   \
-    Self& operator=( const Self& );                                     \
-  }
-
-// -------------------------------------------------------------------------
-#define cpPlugins_Code_ProcessObject( O )               \
-  cpPlugins::Interface::O::O( ) : Superclass( ) { }     \
-  cpPlugins::Interface::O::~O( ) { }
-
-// -------------------------------------------------------------------------
-#define cpPlugins_Image_Demangle( T, D, I, O, R, F )            \
-  if( ( O = I->GetITK< itk::Image< T, D > >( ) ) != NULL )      \
-    R = this->F< itk::Image< T, D > >( O )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_ArrayImage_Demangle( A, T, DI, DA, I, O, R, F )       \
-  if( ( O = I->GetITK< itk::Image< A< T, DA >, DI > >( ) ) != NULL )    \
-    R = this->F< itk::Image< A< T, DA >, DI > >( O )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_VectorImage_Demangle( T, D, I, O, R, F )              \
-  if( ( O = I->GetITK< itk::VectorImage< T, D > >( ) ) != NULL )        \
-    R = this->F< itk::VectorImage< T, D > >( O )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_ArrayVectorImage_Demangle( A, T, DI, DA, I, O, R, F ) \
-  if( ( O = I->GetITK< itk::VectorImage< A< T, DA >, DI > >( ) ) != NULL ) \
-   r = this->F< itk::VectorImage< A< T, DA >, DI > >( O )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_Image_Demangle_AllScalarTypes( D, I, O, R, F )        \
-  cpPlugins_Image_Demangle( char, D, I, O, R, F );                      \
-  else cpPlugins_Image_Demangle( short, D, I, O, R, F );                \
-  else cpPlugins_Image_Demangle( int, D, I, O, R, F );                  \
-  else cpPlugins_Image_Demangle( long, D, I, O, R, F );                 \
-  else cpPlugins_Image_Demangle( unsigned char, D, I, O, R, F );        \
-  else cpPlugins_Image_Demangle( unsigned short, D, I, O, R, F );       \
-  else cpPlugins_Image_Demangle( unsigned int, D, I, O, R, F );         \
-  else cpPlugins_Image_Demangle( unsigned long, D, I, O, R, F );        \
-  else cpPlugins_Image_Demangle( float, D, I, O, R, F );                \
-  else cpPlugins_Image_Demangle( double, D, I, O, R, F )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_Image_Demangle_AllComplexTypes( D, I, O, R, F )       \
-  cpPlugins_Image_Demangle( std::complex< float >, D, I, O, R, F );     \
-  else cpPlugins_Image_Demangle( std::complex< double >, D, I, O, R, F )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_Image_Demangle_AllRGBTypes( D, I, O, R, F )           \
-  cpPlugins_Image_Demangle( itk::RGBPixel< char >, D, I, O, R, F );     \
-  else cpPlugins_Image_Demangle( itk::RGBPixel< short >, D, I, O, R, F ); \
-  else cpPlugins_Image_Demangle( itk::RGBPixel< int >, D, I, O, R, F ); \
-  else cpPlugins_Image_Demangle( itk::RGBPixel< long >, D, I, O, R, F ); \
-  else cpPlugins_Image_Demangle( itk::RGBPixel< unsigned char >, D, I, O, R, F ); \
-  else cpPlugins_Image_Demangle( itk::RGBPixel< unsigned short >, D, I, O, R, F ); \
-  else cpPlugins_Image_Demangle( itk::RGBPixel< unsigned int >, D, I, O, R, F ); \
-  else cpPlugins_Image_Demangle( itk::RGBPixel< unsigned long >, D, I, O, R, F ); \
-  else cpPlugins_Image_Demangle( itk::RGBPixel< float >, D, I, O, R, F ); \
-  else cpPlugins_Image_Demangle( itk::RGBPixel< double >, D, I, O, R, F )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_Image_Demangle_AllRGBATypes( D, I, O, R, F )           \
-  cpPlugins_Image_Demangle( itk::RGBAPixel< char >, D, I, O, R, F );     \
-  else cpPlugins_Image_Demangle( itk::RGBAPixel< short >, D, I, O, R, F ); \
-  else cpPlugins_Image_Demangle( itk::RGBAPixel< int >, D, I, O, R, F ); \
-  else cpPlugins_Image_Demangle( itk::RGBAPixel< long >, D, I, O, R, F ); \
-  else cpPlugins_Image_Demangle( itk::RGBAPixel< unsigned char >, D, I, O, R, F ); \
-  else cpPlugins_Image_Demangle( itk::RGBAPixel< unsigned short >, D, I, O, R, F ); \
-  else cpPlugins_Image_Demangle( itk::RGBAPixel< unsigned int >, D, I, O, R, F ); \
-  else cpPlugins_Image_Demangle( itk::RGBAPixel< unsigned long >, D, I, O, R, F ); \
-  else cpPlugins_Image_Demangle( itk::RGBAPixel< float >, D, I, O, R, F ); \
-  else cpPlugins_Image_Demangle( itk::RGBAPixel< double >, D, I, O, R, F )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_Image_Demangle_AllDiffusionTensor3DTypes( D, I, O, R, F ) \
-  cpPlugins_Image_Demangle( itk::DiffusionTensor3D< float >, D, I, O, R, F ); \
-  else cpPlugins_Image_Demangle( itk::DiffusionTensor3D< double >, D, I, O, R, F )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_ArrayImage_Demangle_AllVectorTypes( DI, DA, I, O, R, F ) \
-  cpPlugins_ArrayImage_Demangle( itk::Vector, float, DI, DA, I, O, R, F ); \
-  else cpPlugins_ArrayImage_Demangle( itk::Vector, double, DI, DA, I, O, R, F )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_ArrayImage_Demangle_AllCovariantVectorTypes( DI, DA, I, O, R, F ) \
-  cpPlugins_ArrayImage_Demangle( itk::CovariantVector, float, DI, DA, I, O, R, F ); \
-  else cpPlugins_ArrayImage_Demangle( itk::CovariantVector, double, DI, DA, I, O, R, F )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_ArrayImage_Demangle_AllPointTypes( DI, DA, I, O, R, F ) \
-  cpPlugins_ArrayImage_Demangle( itk::Point, float, DI, DA, I, O, R, F ); \
-  else cpPlugins_ArrayImage_Demangle( itk::Point, double, DI, DA, I, O, R, F )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_ArrayImage_Demangle_AllSymmetricSecondRankTensorTypes( DI, DA, I, O, R, F ) \
-  cpPlugins_ArrayImage_Demangle( itk::SymmetricSecondRankTensor, float, DI, DA, I, O, R, F ); \
-  else cpPlugins_ArrayImage_Demangle( itk::SymmetricSecondRankTensor, double, DI, DA, I, O, R, F )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_Image_Demangle_AllTypes( D, I, O, R, F )              \
-  cpPlugins_Image_Demangle_AllScalarTypes( D, I, O, R, F );             \
-  else cpPlugins_Image_Demangle_AllComplexTypes( D, I, O, R, F );       \
-  else cpPlugins_Image_Demangle_AllRGBTypes( D, I, O, R, F );           \
-  else cpPlugins_Image_Demangle_AllRGBATypes( D, I, O, R, F );          \
-  else cpPlugins_Image_Demangle_AllDiffusionTensor3DTypes( D, I, O, R, F ); \
-  else cpPlugins_Image_Demangle( itk::Offset< D >, D, I, O, R, F );     \
-  else cpPlugins_ArrayImage_Demangle_AllVectorTypes( D, D, I, O, R, F ); \
-  else cpPlugins_ArrayImage_Demangle_AllCovariantVectorTypes( D, D, I, O, R, F ); \
-  else cpPlugins_ArrayImage_Demangle_AllPointTypes( D, D, I, O, R, F ); \
-  else cpPlugins_ArrayImage_Demangle_AllSymmetricSecondRankTensorTypes( D, D, I, O, R, F )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_VectorImage_Demangle_AllScalarTypes( D, I, O, R, F )  \
-  cpPlugins_VectorImage_Demangle( char, D, I, O, R, F );                \
-  else cpPlugins_VectorImage_Demangle( short, D, I, O, R, F );          \
-  else cpPlugins_VectorImage_Demangle( int, D, I, O, R, F );            \
-  else cpPlugins_VectorImage_Demangle( long, D, I, O, R, F );           \
-  else cpPlugins_VectorImage_Demangle( unsigned char, D, I, O, R, F );  \
-  else cpPlugins_VectorImage_Demangle( unsigned short, D, I, O, R, F ); \
-  else cpPlugins_VectorImage_Demangle( unsigned int, D, I, O, R, F );   \
-  else cpPlugins_VectorImage_Demangle( unsigned long, D, I, O, R, F );  \
-  else cpPlugins_VectorImage_Demangle( float, D, I, O, R, F );          \
-  else cpPlugins_VectorImage_Demangle( double, D, I, O, R, F )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_VectorImage_Demangle_AllComplexTypes( D, I, O, R, F ) \
-  cpPlugins_VectorImage_Demangle( std::complex< float >, D, I, O, R, F ); \
-  else cpPlugins_VectorImage_Demangle( std::complex< double >, D, I, O, R, F )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_VectorImage_Demangle_AllRGBTypes( D, I, O, R, F )     \
-  cpPlugins_VectorImage_Demangle( itk::RGBPixel< char >, D, I, O, R, F ); \
-  else cpPlugins_VectorImage_Demangle( itk::RGBPixel< short >, D, I, O, R, F ); \
-  else cpPlugins_VectorImage_Demangle( itk::RGBPixel< int >, D, I, O, R, F ); \
-  else cpPlugins_VectorImage_Demangle( itk::RGBPixel< long >, D, I, O, R, F ); \
-  else cpPlugins_VectorImage_Demangle( itk::RGBPixel< unsigned char >, D, I, O, R, F ); \
-  else cpPlugins_VectorImage_Demangle( itk::RGBPixel< unsigned short >, D, I, O, R, F ); \
-  else cpPlugins_VectorImage_Demangle( itk::RGBPixel< unsigned int >, D, I, O, R, F ); \
-  else cpPlugins_VectorImage_Demangle( itk::RGBPixel< unsigned long >, D, I, O, R, F ); \
-  else cpPlugins_VectorImage_Demangle( itk::RGBPixel< float >, D, I, O, R, F ); \
-  else cpPlugins_VectorImage_Demangle( itk::RGBPixel< double >, D, I, O, R, F )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_VectorImage_Demangle_AllRGBATypes( D, I, O, R, F )    \
-  cpPlugins_VectorImage_Demangle( itk::RGBAPixel< char >, D, I, O, R, F ); \
-  else cpPlugins_VectorImage_Demangle( itk::RGBAPixel< short >, D, I, O, R, F ); \
-  else cpPlugins_VectorImage_Demangle( itk::RGBAPixel< int >, D, I, O, R, F ); \
-  else cpPlugins_VectorImage_Demangle( itk::RGBAPixel< long >, D, I, O, R, F ); \
-  else cpPlugins_VectorImage_Demangle( itk::RGBAPixel< unsigned char >, D, I, O, R, F ); \
-  else cpPlugins_VectorImage_Demangle( itk::RGBAPixel< unsigned short >, D, I, O, R, F ); \
-  else cpPlugins_VectorImage_Demangle( itk::RGBAPixel< unsigned int >, D, I, O, R, F ); \
-  else cpPlugins_VectorImage_Demangle( itk::RGBAPixel< unsigned long >, D, I, O, R, F ); \
-  else cpPlugins_VectorImage_Demangle( itk::RGBAPixel< float >, D, I, O, R, F ); \
-  else cpPlugins_VectorImage_Demangle( itk::RGBAPixel< double >, D, I, O, R, F )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_VectorImage_Demangle_AllDiffusionTensor3DTypes( D, I, O, R, F ) \
-  cpPlugins_VectorImage_Demangle( itk::DiffusionTensor3D< float >, D, I, O, R, F ); \
-  else cpPlugins_VectorImage_Demangle( itk::DiffusionTensor3D< double >, D, I, O, R, F )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_ArrayVectorImage_Demangle_AllVectorTypes( DI, DA, I, O, R, F ) \
-  cpPlugins_ArrayVectorImage_Demangle( itk::Vector, float, DI, DA, I, O, R, F ); \
-  else cpPlugins_ArrayVectorImage_Demangle( itk::Vector, double, DI, DA, I, O, R, F )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_ArrayVectorImage_Demangle_AllCovariantVectorTypes( DI, DA, I, O, R, F ) \
-  cpPlugins_ArrayVectorImage_Demangle( itk::CovariantVector, float, DI, DA, I, O, R, F ); \
-  else cpPlugins_ArrayVectorImage_Demangle( itk::CovariantVector, double, DI, DA, I, O, R, F )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_ArrayVectorImage_Demangle_AllPointTypes( DI, DA, I, O, R, F ) \
-  cpPlugins_ArrayVectorImage_Demangle( itk::Point, float, DI, DA, I, O, R, F ); \
-  else cpPlugins_ArrayVectorImage_Demangle( itk::Point, double, DI, DA, I, O, R, F )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_ArrayVectorImage_Demangle_AllSymmetricSecondRankTensorTypes( DI, DA, I, O, R, F ) \
-  cpPlugins_ArrayVectorImage_Demangle( itk::SymmetricSecondRankTensor, float, DI, DA, I, O, R, F ); \
-  else cpPlugins_ArrayVectorImage_Demangle( itk::SymmetricSecondRankTensor, double, DI, DA, I, O, R, F )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_VectorImage_Demangle_AllTypes( D, I, O, R, F )        \
-  cpPlugins_VectorImage_Demangle_AllScalarTypes( D, I, O, R, F );       \
-  else cpPlugins_VectorImage_Demangle_AllComplexTypes( D, I, O, R, F ); \
-  else cpPlugins_VectorImage_Demangle_AllRGBTypes( D, I, O, R, F );     \
-  else cpPlugins_VectorImage_Demangle_AllRGBATypes( D, I, O, R, F );    \
-  else cpPlugins_VectorImage_Demangle_AllDiffusionTensor3DTypes( D, I, O, R, F ); \
-  else cpPlugins_VectorImage_Demangle( itk::Offset< D >, D, I, O, R, F ); \
-  else cpPlugins_ArrayVectorImage_Demangle_AllVectorTypes( D, D, I, O, R, F ); \
-  else cpPlugins_ArrayVectorImage_Demangle_AllCovariantVectorTypes( D, D, I, O, R, F ); \
-  else cpPlugins_ArrayVectorImage_Demangle_AllPointTypes( D, D, I, O, R, F ); \
-  else cpPlugins_ArrayVectorImage_Demangle_AllSymmetricSecondRankTensorTypes( D, D, I, O, R, F )
-
-namespace cpPlugins
-{
-  namespace Interface
-  {
-    cpPlugins_Define_ProcessObject( SourceObject, ProcessObject );
-    cpPlugins_Define_ProcessObject( SinkObject, ProcessObject );
-    cpPlugins_Define_ProcessObject( FilterObject, ProcessObject );
-    cpPlugins_Define_ProcessObject( ImageSource, SourceObject );
-    cpPlugins_Define_ProcessObject( MeshSource, SourceObject );
-    cpPlugins_Define_ProcessObject( ImageSink, SinkObject );
-    cpPlugins_Define_ProcessObject( MeshSink, SinkObject );
-    cpPlugins_Define_ProcessObject( ImageToImageFilter, FilterObject );
-    cpPlugins_Define_ProcessObject( ImageToMeshFilter, FilterObject );
-    cpPlugins_Define_ProcessObject( MeshToImageFilter, FilterObject );
-    cpPlugins_Define_ProcessObject( MeshToMeshFilter, FilterObject );
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__INTERFACE__BASEPROCESSOBJECTS__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/CMakeLists.txt b/lib/cpPlugins/Interface/CMakeLists.txt
deleted file mode 100644 (file)
index 3de13f1..0000000
+++ /dev/null
@@ -1,122 +0,0 @@
-SET(LIBRARY_NAME cpPlugins_Interface)
-
-CONFIGURE_FILE(
-  Config.h.in
-  ${PROJECT_BINARY_DIR}/lib/cpPlugins/Interface/Config.h
-  @ONLY
-  )
-
-## ===============
-## = Source code =
-## ===============
-
-FILE(GLOB LIB_HEADERS_H   "*.h")
-FILE(GLOB LIB_HEADERS_HPP "*.hpp")
-FILE(GLOB LIB_HEADERS_HXX "*.hxx")
-FILE(GLOB LIB_SOURCES_C   "*.c")
-FILE(GLOB LIB_SOURCES_CPP "*.cpp")
-FILE(GLOB LIB_SOURCES_CXX "*.cxx")
-
-IF(USE_QT4)
-  SET(
-    LIB_QT_UI
-    SimpleMPRWidget.ui
-    ParametersListWidget.ui
-    )
-  SET(
-    LIB_QT_Headers
-    ParametersListWidget.h
-    ParametersQtDialog.h
-    SimpleMPRWidget.h
-    )
-  SET(
-    LIB_QT_Sources
-    ParametersListWidget.cxx
-    ParametersQtDialog.cxx
-    SimpleMPRWidget.cxx
-    )
-  SET(
-    LIB_QT_Resources
-    )
-
-  QT4_WRAP_UI(LIB_QT_Wrapped_Headers ${LIB_QT_UI})
-  QT4_WRAP_CPP(LIB_QT_Wrapped_MOC_Sources ${LIB_QT_Headers})
-  QT4_ADD_RESOURCES(LIB_QT_Wrapped_Resources_Sources ${LIB_QT_Resources})
-
-  SET(
-    LIB_HEADERS_H
-    ${LIB_HEADERS_H}
-    ${LIB_QT_Wrapped_Headers}
-    )
-
-  SET(
-    LIB_SOURCES_CXX
-    ${LIB_SOURCES_CXX}
-    ${LIB_QT_Sources}
-    ${LIB_QT_Wrapped_Headers}
-    ${LIB_QT_Wrapped_MOC_Sources}
-    ${LIB_QT_Wrapped_Resources_Sources}
-    )
-
-ENDIF(USE_QT4)
-
-## =====================
-## = Compilation rules =
-## =====================
-
-ADD_LIBRARY(
-  ${LIBRARY_NAME}
-  SHARED
-  ${LIB_SOURCES_C}
-  ${LIB_SOURCES_CPP}
-  ${LIB_SOURCES_CXX}
-  )
-GENERATE_EXPORT_HEADER(
-  ${LIBRARY_NAME}
-  BASE_NAME ${LIBRARY_NAME}
-  EXPORT_MACRO_NAME ${LIBRARY_NAME}_EXPORT
-  EXPORT_FILE_NAME ${PROJECT_BINARY_DIR}/lib/cpPlugins/Interface/${LIBRARY_NAME}_Export.h
-  STATIC_DEFINE ${LIBRARY_NAME}_BUILT_AS_STATIC
-  )
-TARGET_LINK_LIBRARIES(
-  ${LIBRARY_NAME}
-  cpPlugins_tinyxml
-  cpPlugins_Pluma
-  ${QT_LIBRARIES}
-  ${ITK_LIBRARIES}
-  ${VTK_LIBRARIES}
-  cpExtensions
-  )
-
-## ========================
-## -- Installation rules --
-## ========================
-
-INSTALL(
-  TARGETS ${LIBRARY_NAME}
-  RUNTIME DESTINATION bin
-  LIBRARY DESTINATION lib
-  ARCHIVE DESTINATION lib/static
-  )
-INSTALL(
-  DIRECTORY .
-  DESTINATION include/cpPlugins/Interface
-  FILES_MATCHING PATTERN "*.h"
-  )
-INSTALL(
-  DIRECTORY .
-  DESTINATION include/cpPlugins/Interface
-  FILES_MATCHING PATTERN "*.hxx"
-  )
-INSTALL(
-  DIRECTORY .
-  DESTINATION include/cpPlugins/Interface
-  FILES_MATCHING PATTERN "*.hpp"
-  )
-INSTALL(
-  FILES
-  ${PROJECT_BINARY_DIR}/lib/cpPlugins/Interface/${LIBRARY_NAME}_Export.h
-  DESTINATION include/cpPlugins/Interface
-  )
-
-## eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/Config.h.in b/lib/cpPlugins/Interface/Config.h.in
deleted file mode 100644 (file)
index 8835c0a..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__CONFIG__H__
-#define __CPPLUGINS__INTERFACE__CONFIG__H__
-
-#define cpPlugins_MAJOR_VERSION   @prj_MAJOR_VERSION@
-#define cpPlugins_MINOR_VERSION   @prj_MINOR_VERSION@
-#define cpPlugins_RELEASE_VERSION @prj_RELEASE_VERSION@
-#define cpPlugins_VERSION         "@prj_VERSION@"
-
-#define cpPlugins_Interface_QT4_USED @QT4_FOUND@
-#if cpPlugins_Interface_QT4_USED == 1
-#  define cpPlugins_Interface_QT4
-#else // cpPlugins_Interface_QT4_USED == 1
-#  undef cpPlugins_Interface_QT4
-#endif // cpPlugins_Interface_QT4_USED == 1
-
-// Base configuration for each OS
-#ifdef _WIN32
-#  define PLUGIN_PREFIX ""
-#  define PLUGIN_EXT ".dll"
-#  ifdef _WIN64
-#  endif
-#elif __APPLE__
-#  include "TargetConditionals.h"
-#  if TARGET_IPHONE_SIMULATOR
-#    define PLUGIN_PREFIX "lib"
-#    define PLUGIN_EXT ".dylib"
-#  elif TARGET_OS_IPHONE
-#    define PLUGIN_PREFIX "lib"
-#    define PLUGIN_EXT ".dylib"
-#  elif TARGET_OS_MAC
-#    define PLUGIN_PREFIX "lib"
-#    define PLUGIN_EXT ".dylib"
-#  else
-#    error "Unknown Apple platform"
-#  endif
-#elif __linux__
-#  define PLUGIN_PREFIX "lib"
-#  define PLUGIN_EXT ".so"
-#elif __unix__ // all unices not caught above
-#  define PLUGIN_PREFIX "lib"
-#  define PLUGIN_EXT ".so"
-#elif defined(_POSIX_VERSION)
-#  define PLUGIN_PREFIX "lib"
-#  define PLUGIN_EXT ".so"
-#else
-#  error "Unknown compiler: I do not know how to manage dynamic libraries."
-#endif
-
-#define PLUGIN_CONFIG_FILE "plugins.cfg"
-
-#endif // __CPPLUGINS__INTERFACE__CONFIG__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/DataObject.cxx b/lib/cpPlugins/Interface/DataObject.cxx
deleted file mode 100644 (file)
index 0bbe13b..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-#include <cpPlugins/Interface/DataObject.h>
-
-#include <cpPlugins/Interface/ProcessObject.h>
-#include <itkDataObject.h>
-#include <vtkImageData.h>
-#include <vtkPolyData.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::ProcessObject* cpPlugins::Interface::DataObject::
-GetSource( )
-{
-  auto ptr = reinterpret_cast< ProcessObject::Pointer* >( this->m_Source );
-  return( ptr->GetPointer( ) );
-}
-
-// -------------------------------------------------------------------------
-const cpPlugins::Interface::ProcessObject* cpPlugins::Interface::DataObject::
-GetSource( ) const
-{
-  auto ptr = reinterpret_cast< ProcessObject::Pointer* >( this->m_Source );
-  return( ptr->GetPointer( ) );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::DataObject::
-SetSource( cpPlugins::Interface::ProcessObject* src )
-{
-  auto ptr = reinterpret_cast< ProcessObject::Pointer* >( this->m_Source );
-  if( ptr->GetPointer( ) != src )
-  {
-    *ptr = src;
-    this->Modified( );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::DataObject::
-DisconnectFromPipeline( )
-{
-  // Disconnect input pipelines (ITK)
-  itk::DataObject* itk_obj = this->GetITK< itk::DataObject >( );
-  if( itk_obj != NULL )
-    itk_obj->DisconnectPipeline( );
-
-  // Disconnect input pipelines (VTK)
-  vtkImageData* vtk_image = this->GetVTK< vtkImageData >( );
-  vtkPolyData* vtk_pd = this->GetVTK< vtkPolyData >( );
-  if( vtk_image != NULL )
-  {
-    vtkSmartPointer< vtkImageData > d =
-      vtkSmartPointer< vtkImageData >::New( );
-    d->ShallowCopy( vtk_image );
-    this->m_VTKObject = d;
-  }
-  else if( vtk_pd != NULL )
-  {
-    vtkSmartPointer< vtkPolyData > d =
-      vtkSmartPointer< vtkPolyData >::New( );
-    d->ShallowCopy( vtk_pd );
-    this->m_VTKObject = d;
-
-  } // fi
-
-  // Unbind source
-  auto ptr = reinterpret_cast< ProcessObject::Pointer* >( this->m_Source );
-  *ptr = NULL;
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::DataObject::
-DataObject( )
-  : Superclass( )
-{
-  this->m_Source = new ProcessObject::Pointer( );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::DataObject::
-~DataObject( )
-{
-  /* TODO
-     auto ptr = reinterpret_cast< ProcessObject::Pointer* >( this->m_Source );
-     delete ptr;
-  */
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/DataObject.h b/lib/cpPlugins/Interface/DataObject.h
deleted file mode 100644 (file)
index 9293376..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__DATAOBJECT__H__
-#define __CPPLUGINS__INTERFACE__DATAOBJECT__H__
-
-#include <cpPlugins/Interface/Object.h>
-
-namespace cpPlugins
-{
-  namespace Interface
-  {
-    // Some forward declarations
-    class ProcessObject;
-
-    /**
-     */
-    class cpPlugins_Interface_EXPORT DataObject
-      : public Object
-    {
-    public:
-      typedef DataObject                      Self;
-      typedef Object                          Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( DataObject, Object );
-      cpPlugins_Id_Macro( DataObject, BasicObject );
-
-    public:
-      ProcessObject* GetSource( );
-      const ProcessObject* GetSource( ) const;
-      void SetSource( ProcessObject* src );
-
-      void DisconnectFromPipeline( );
-
-    protected:
-      DataObject( );
-      virtual ~DataObject( );
-
-    private:
-      // Purposely not implemented
-      DataObject( const Self& );
-      Self& operator=( const Self& );
-
-    protected:
-      void* m_Source;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__INTERFACE__DATAOBJECT__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/Image.cxx b/lib/cpPlugins/Interface/Image.cxx
deleted file mode 100644 (file)
index b1f18f8..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-#include <cpPlugins/Interface/Image.h>
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Image::
-SetITK( itk::LightObject* o )
-{
-  this->Superclass::SetITK( o );
-  bool success = false;
-  success |= this->_ITK_2_VTK_0< 2 >( o );
-  success |= this->_ITK_2_VTK_0< 3 >( o );
-  if( !success )
-  {
-    this->m_VTKObject = NULL;
-    this->m_ITKvVTK = NULL;
-
-  } // fi
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Image::
-SetVTK( vtkObjectBase* o )
-{
-  this->Superclass::SetVTK( o );
-  std::cerr << "Image: TODO this!!!!" << std::endl;
-  std::exit( 1 );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::Image::
-Image( )
-  : Superclass( )
-{
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::Image::
-~Image( )
-{
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/Image.h b/lib/cpPlugins/Interface/Image.h
deleted file mode 100644 (file)
index 88808c4..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__IMAGE__H__
-#define __CPPLUGINS__INTERFACE__IMAGE__H__
-
-#include <cpPlugins/Interface/DataObject.h>
-
-#include <itkProcessObject.h>
-
-namespace cpPlugins
-{
-  namespace Interface
-  {
-    /**
-     */
-    class cpPlugins_Interface_EXPORT Image
-      : public DataObject
-    {
-    public:
-      typedef Image                           Self;
-      typedef DataObject                      Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( Image, DataObject );
-      cpPlugins_Id_Macro( Image, DataObject );
-
-    public:
-      virtual void SetITK( itk::LightObject* o );
-      virtual void SetVTK( vtkObjectBase* o );
-
-    protected:
-      Image( );
-      virtual ~Image( );
-
-      template< unsigned int D >
-        inline bool _ITK_2_VTK_0( itk::LightObject* o );
-
-      template< class P, unsigned int D >
-        inline bool _ITK_2_VTK_1( itk::LightObject* o );
-
-      template< class I >
-        inline bool _ITK_2_VTK_2( itk::LightObject* o );
-
-    private:
-      // Purposely not implemented
-      Image( const Self& );
-      Self& operator=( const Self& );
-
-    protected:
-      itk::ProcessObject::Pointer m_ITKvVTK;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#include <cpPlugins/Interface/Image.hxx>
-
-#endif // __CPPLUGINS__INTERFACE__IMAGE__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/Image.hxx b/lib/cpPlugins/Interface/Image.hxx
deleted file mode 100644 (file)
index 3160fea..0000000
+++ /dev/null
@@ -1,344 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__IMAGE__HXX__
-#define __CPPLUGINS__INTERFACE__IMAGE__HXX__
-
-#include <complex>
-
-#include <itkImage.h>
-#include <itkVectorImage.h>
-#include <itkImageToVTKImageFilter.h>
-
-#include <itkCovariantVector.h>
-#include <itkDiffusionTensor3D.h>
-#include <itkPoint.h>
-#include <itkRGBPixel.h>
-#include <itkRGBAPixel.h>
-#include <itkSymmetricSecondRankTensor.h>
-#include <itkVector.h>
-
-// -------------------------------------------------------------------------
-template< unsigned int D >
-bool cpPlugins::Interface::Image::
-_ITK_2_VTK_0( itk::LightObject* o )
-{
-  bool s = false;
-  if( dynamic_cast< itk::ImageBase< D >* >( o ) != NULL )
-  {
-    s |= this->_ITK_2_VTK_1< char, D >( o );
-    s |= this->_ITK_2_VTK_1< short, D >( o );
-    s |= this->_ITK_2_VTK_1< int, D >( o );
-    s |= this->_ITK_2_VTK_1< long, D >( o );
-    s |= this->_ITK_2_VTK_1< unsigned char, D >( o );
-    s |= this->_ITK_2_VTK_1< unsigned short, D >( o );
-    s |= this->_ITK_2_VTK_1< unsigned int, D >( o );
-    s |= this->_ITK_2_VTK_1< unsigned long, D >( o );
-    s |= this->_ITK_2_VTK_1< float, D >( o );
-    s |= this->_ITK_2_VTK_1< double, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::RGBPixel< char >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::RGBPixel< short >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::RGBPixel< int >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::RGBPixel< long >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::RGBPixel< unsigned char >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::RGBPixel< unsigned short >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::RGBPixel< unsigned int >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::RGBPixel< unsigned long >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::RGBPixel< float >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::RGBPixel< double >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::RGBAPixel< char >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::RGBAPixel< short >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::RGBAPixel< int >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::RGBAPixel< long >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::RGBAPixel< unsigned char >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::RGBAPixel< unsigned short >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::RGBAPixel< unsigned int >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::RGBAPixel< unsigned long >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::RGBAPixel< float >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::RGBAPixel< double >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::DiffusionTensor3D< float >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::DiffusionTensor3D< double >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::Vector< float, D >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::Vector< double, D >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::CovariantVector< float, D >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::CovariantVector< double, D >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::Point< float, D >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::Point< double, D >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::SymmetricSecondRankTensor< float, D >, D >( o );
-    s |= this->_ITK_2_VTK_1< itk::SymmetricSecondRankTensor< double, D >, D >( o );
-
-  } // fi
-  return( s );
-}
-
-// -------------------------------------------------------------------------
-template< class P, unsigned int D >
-bool cpPlugins::Interface::Image::
-_ITK_2_VTK_1( itk::LightObject* o )
-{
-  if( dynamic_cast< itk::Image< P, D >* >( o ) != NULL )
-    return( this->_ITK_2_VTK_2< itk::Image< P, D > >( o ) );
-  else
-    return( false );
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-bool cpPlugins::Interface::Image::
-_ITK_2_VTK_2( itk::LightObject* o )
-{
-  typedef itk::ImageToVTKImageFilter< I > _I2V;
-
-  I* image = dynamic_cast< I* >( o );
-  if( image != NULL )
-  {
-    _I2V* f = dynamic_cast< _I2V* >( this->m_ITKvVTK.GetPointer( ) );
-    if( f == NULL )
-    {
-      typename _I2V::Pointer nf = _I2V::New( );
-      this->m_ITKvVTK = nf;
-      f = nf.GetPointer( );
-
-    } // fi
-    f->SetInput( image );
-    f->Update( );
-
-    // Keep object track
-    this->m_ITKObject = o;
-    this->m_VTKObject = f->GetOutput( );
-    return( true );
-  }
-  else
-    return( false );
-}
-
-#ifndef cpPlugins_Interface_EXPORTS
-
-// =========================================================================
-// ==========           Declare import itk::Image types           ==========
-// =========================================================================
-
-// -------------------------------------------------------------------------
-#define cpPlugins_ITKImage_Import( T, D )                       \
-  cpPlugins_TEMPLATE_IMPORT(                                    \
-    2(class cpPlugins_Interface_EXPORT itk::Image< T, D >)      \
-    )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_ITKArrayImage_Import( A, T, DA, DI )                  \
-  cpPlugins_TEMPLATE_IMPORT(                                            \
-    3(class cpPlugins_Interface_EXPORT itk::Image< A< T, DA >, DI >)    \
-    )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_ITKImage_AllDims_Import( T )  \
-  cpPlugins_ITKImage_Import( T, 2 );            \
-  cpPlugins_ITKImage_Import( T, 3 );            \
-  cpPlugins_ITKImage_Import( T, 4 )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_ITKArrayImage_AllDims_Import( A, T )  \
-  cpPlugins_ITKArrayImage_Import( A, T, 2, 2 );         \
-  cpPlugins_ITKArrayImage_Import( A, T, 3, 3 );         \
-  cpPlugins_ITKArrayImage_Import( A, T, 4, 4 )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_VTKImage_Import( T, D )               \
-  cpPlugins_TEMPLATE_IMPORT(                            \
-    2(                                                  \
-      class cpPlugins_Interface_EXPORT                  \
-      itk::ImageToVTKImageFilter< itk::Image< T, D > >  \
-      )                                                 \
-    )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_VTKArrayImage_Import( A, T, DA, DI )                  \
-  cpPlugins_TEMPLATE_IMPORT(                                            \
-    3(class                                                             \
-      cpPlugins_Interface_EXPORT                                        \
-      itk::ImageToVTKImageFilter< itk::Image< A< T, DA >, DI > >)       \
-    )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_VTKImage_AllDims_Import( T )  \
-  cpPlugins_VTKImage_Import( T, 2 );            \
-  cpPlugins_VTKImage_Import( T, 3 )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_VTKArrayImage_AllDims_Import( A, T )  \
-  cpPlugins_VTKArrayImage_Import( A, T, 2, 2 );         \
-  cpPlugins_VTKArrayImage_Import( A, T, 3, 3 )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_Image_Import( T, D )          \
-  cpPlugins_ITKImage_Import( T, D );            \
-  cpPlugins_VTKImage_Import( T, D )             \
-  
-// -------------------------------------------------------------------------
-#define cpPlugins_Image_AllDims_Import( T )     \
-  cpPlugins_ITKImage_AllDims_Import( T );       \
-  cpPlugins_VTKImage_AllDims_Import( T )        \
-  
-// -------------------------------------------------------------------------
-#define cpPlugins_ArrayImage_AllDims_Import( A, T )     \
-  cpPlugins_ITKArrayImage_AllDims_Import( A, T );       \
-  cpPlugins_VTKArrayImage_AllDims_Import( A, T )        \
-  
-// -------------------------------------------------------------------------
-// ITK-VTK base clases
-// -------------------------------------------------------------------------
-
-cpPlugins_Image_AllDims_Import( char );
-cpPlugins_Image_AllDims_Import( short );
-cpPlugins_Image_AllDims_Import( int );
-cpPlugins_Image_AllDims_Import( long );
-cpPlugins_Image_AllDims_Import( unsigned char );
-cpPlugins_Image_AllDims_Import( unsigned short );
-cpPlugins_Image_AllDims_Import( unsigned int );
-cpPlugins_Image_AllDims_Import( unsigned long );
-cpPlugins_Image_AllDims_Import( float );
-cpPlugins_Image_AllDims_Import( double );
-
-cpPlugins_Image_AllDims_Import( itk::RGBPixel< char > );
-cpPlugins_Image_AllDims_Import( itk::RGBPixel< short > );
-cpPlugins_Image_AllDims_Import( itk::RGBPixel< int > );
-cpPlugins_Image_AllDims_Import( itk::RGBPixel< long > );
-cpPlugins_Image_AllDims_Import( itk::RGBPixel< unsigned char > );
-cpPlugins_Image_AllDims_Import( itk::RGBPixel< unsigned short > );
-cpPlugins_Image_AllDims_Import( itk::RGBPixel< unsigned int > );
-cpPlugins_Image_AllDims_Import( itk::RGBPixel< unsigned long > );
-cpPlugins_Image_AllDims_Import( itk::RGBPixel< float > );
-cpPlugins_Image_AllDims_Import( itk::RGBPixel< double > );
-
-cpPlugins_Image_AllDims_Import( itk::RGBAPixel< char > );
-cpPlugins_Image_AllDims_Import( itk::RGBAPixel< short > );
-cpPlugins_Image_AllDims_Import( itk::RGBAPixel< int > );
-cpPlugins_Image_AllDims_Import( itk::RGBAPixel< long > );
-cpPlugins_Image_AllDims_Import( itk::RGBAPixel< unsigned char > );
-cpPlugins_Image_AllDims_Import( itk::RGBAPixel< unsigned short > );
-cpPlugins_Image_AllDims_Import( itk::RGBAPixel< unsigned int > );
-cpPlugins_Image_AllDims_Import( itk::RGBAPixel< unsigned long > );
-cpPlugins_Image_AllDims_Import( itk::RGBAPixel< float > );
-cpPlugins_Image_AllDims_Import( itk::RGBAPixel< double > );
-
-cpPlugins_Image_AllDims_Import( itk::DiffusionTensor3D< float > );
-cpPlugins_Image_AllDims_Import( itk::DiffusionTensor3D< double > );
-
-cpPlugins_ArrayImage_AllDims_Import( itk::Vector, float );
-cpPlugins_ArrayImage_AllDims_Import( itk::Vector, double );
-
-cpPlugins_ArrayImage_AllDims_Import( itk::CovariantVector, float );
-cpPlugins_ArrayImage_AllDims_Import( itk::CovariantVector, double );
-
-cpPlugins_ArrayImage_AllDims_Import( itk::Point, float );
-cpPlugins_ArrayImage_AllDims_Import( itk::Point, double );
-
-cpPlugins_ArrayImage_AllDims_Import( itk::SymmetricSecondRankTensor, float );
-cpPlugins_ArrayImage_AllDims_Import( itk::SymmetricSecondRankTensor, double );
-
-// -------------------------------------------------------------------------
-// ITK-only base clases
-// -------------------------------------------------------------------------
-
-cpPlugins_ITKImage_AllDims_Import( std::complex< float > );
-cpPlugins_ITKImage_AllDims_Import( std::complex< double > );
-
-cpPlugins_ITKImage_Import( itk::Offset< 2 >, 2 );
-cpPlugins_ITKImage_Import( itk::Offset< 3 >, 3 );
-cpPlugins_ITKImage_Import( itk::Offset< 4 >, 4 );
-
-// =========================================================================
-// ==========        Declare import itk::VectorImage types        ==========
-// =========================================================================
-
-// -------------------------------------------------------------------------
-#define cpPlugins_VectorImage_Import( T, D )                            \
-  cpPlugins_TEMPLATE_IMPORT(                                            \
-    2(class cpPlugins_Interface_EXPORT itk::VectorImage< T, D >)        \
-    )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_ArrayVectorImage_Import( A, T, DA, DI )               \
-  cpPlugins_TEMPLATE_IMPORT(                                            \
-    3(class                                                             \
-      cpPlugins_Interface_EXPORT                                        \
-      itk::VectorImage< A< T, DA >, DI >)                               \
-    )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_VectorImage_AllDims_Import( T )  \
-  cpPlugins_VectorImage_Import( T, 2 );            \
-  cpPlugins_VectorImage_Import( T, 3 );            \
-  cpPlugins_VectorImage_Import( T, 4 )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_ArrayVectorImage_AllDims_Import( A, T )     \
-  cpPlugins_ArrayVectorImage_Import( A, T, 2, 2 );            \
-  cpPlugins_ArrayVectorImage_Import( A, T, 3, 3 );            \
-  cpPlugins_ArrayVectorImage_Import( A, T, 4, 4 )
-
-// -------------------------------------------------------------------------
-// ITK-VTK base clases
-// -------------------------------------------------------------------------
-
-cpPlugins_VectorImage_AllDims_Import( char );
-cpPlugins_VectorImage_AllDims_Import( short );
-cpPlugins_VectorImage_AllDims_Import( int );
-cpPlugins_VectorImage_AllDims_Import( long );
-cpPlugins_VectorImage_AllDims_Import( unsigned char );
-cpPlugins_VectorImage_AllDims_Import( unsigned short );
-cpPlugins_VectorImage_AllDims_Import( unsigned int );
-cpPlugins_VectorImage_AllDims_Import( unsigned long );
-cpPlugins_VectorImage_AllDims_Import( float );
-cpPlugins_VectorImage_AllDims_Import( double );
-
-cpPlugins_VectorImage_AllDims_Import( std::complex< float > );
-cpPlugins_VectorImage_AllDims_Import( std::complex< double > );
-
-cpPlugins_VectorImage_Import( itk::Offset< 2 >, 2 );
-cpPlugins_VectorImage_Import( itk::Offset< 3 >, 3 );
-cpPlugins_VectorImage_Import( itk::Offset< 4 >, 4 );
-
-cpPlugins_VectorImage_AllDims_Import( itk::RGBPixel< char > );
-cpPlugins_VectorImage_AllDims_Import( itk::RGBPixel< short > );
-cpPlugins_VectorImage_AllDims_Import( itk::RGBPixel< int > );
-cpPlugins_VectorImage_AllDims_Import( itk::RGBPixel< long > );
-cpPlugins_VectorImage_AllDims_Import( itk::RGBPixel< unsigned char > );
-cpPlugins_VectorImage_AllDims_Import( itk::RGBPixel< unsigned short > );
-cpPlugins_VectorImage_AllDims_Import( itk::RGBPixel< unsigned int > );
-cpPlugins_VectorImage_AllDims_Import( itk::RGBPixel< unsigned long > );
-cpPlugins_VectorImage_AllDims_Import( itk::RGBPixel< float > );
-cpPlugins_VectorImage_AllDims_Import( itk::RGBPixel< double > );
-
-cpPlugins_VectorImage_AllDims_Import( itk::RGBAPixel< char > );
-cpPlugins_VectorImage_AllDims_Import( itk::RGBAPixel< short > );
-cpPlugins_VectorImage_AllDims_Import( itk::RGBAPixel< int > );
-cpPlugins_VectorImage_AllDims_Import( itk::RGBAPixel< long > );
-cpPlugins_VectorImage_AllDims_Import( itk::RGBAPixel< unsigned char > );
-cpPlugins_VectorImage_AllDims_Import( itk::RGBAPixel< unsigned short > );
-cpPlugins_VectorImage_AllDims_Import( itk::RGBAPixel< unsigned int > );
-cpPlugins_VectorImage_AllDims_Import( itk::RGBAPixel< unsigned long > );
-cpPlugins_VectorImage_AllDims_Import( itk::RGBAPixel< float > );
-cpPlugins_VectorImage_AllDims_Import( itk::RGBAPixel< double > );
-
-cpPlugins_VectorImage_AllDims_Import( itk::DiffusionTensor3D< float > );
-cpPlugins_VectorImage_AllDims_Import( itk::DiffusionTensor3D< double > );
-
-cpPlugins_ArrayVectorImage_AllDims_Import( itk::Vector, float );
-cpPlugins_ArrayVectorImage_AllDims_Import( itk::Vector, double );
-
-cpPlugins_ArrayVectorImage_AllDims_Import( itk::CovariantVector, float );
-cpPlugins_ArrayVectorImage_AllDims_Import( itk::CovariantVector, double );
-
-cpPlugins_ArrayVectorImage_AllDims_Import( itk::Point, float );
-cpPlugins_ArrayVectorImage_AllDims_Import( itk::Point, double );
-
-cpPlugins_ArrayVectorImage_AllDims_Import(
-  itk::SymmetricSecondRankTensor, float
-  );
-cpPlugins_ArrayVectorImage_AllDims_Import(
-  itk::SymmetricSecondRankTensor, double
-  );
-
-#endif // cpPlugins_Interface_EXPORTS
-
-#endif // __CPPLUGINS__INTERFACE__IMAGE__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/ImplicitFunction.cxx b/lib/cpPlugins/Interface/ImplicitFunction.cxx
deleted file mode 100644 (file)
index 5b1a538..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-#include <cpPlugins/Interface/ImplicitFunction.h>
-
-#include <itkSpatialObject.h>
-
-#include <vtkSmartPointer.h>
-#include <vtkBox.h>
-#include <vtkCone.h>
-#include <vtkCylinder.h>
-#include <vtkImplicitBoolean.h>
-#include <vtkImplicitDataSet.h>
-#include <vtkImplicitHalo.h>
-#include <vtkImplicitPolyDataDistance.h>
-#include <vtkImplicitSelectionLoop.h>
-#include <vtkImplicitSum.h>
-#include <vtkImplicitVolume.h>
-#include <vtkImplicitWindowFunction.h>
-#include <vtkPerlinNoise.h>
-#include <vtkPlane.h>
-#include <vtkPlanes.h>
-#include <vtkPlanesIntersection.h>
-#include <vtkPolyPlane.h>
-#include <vtkQuadric.h>
-#include <vtkSphere.h>
-#include <vtkSuperquadric.h>
-
-// -------------------------------------------------------------------------
-#define cpPlugins_Interface_ImplicitFunction_DEF( T )                   \
-  void cpPlugins::Interface::ImplicitFunction::SetFunctionTo##T( )      \
-  {                                                                     \
-    this->m_VTKObject = vtkSmartPointer< vtk##T >::New( );              \
-    this->Modified( );                                                  \
-  }
-
-// -------------------------------------------------------------------------
-cpPlugins_Interface_ImplicitFunction_DEF( Box );
-cpPlugins_Interface_ImplicitFunction_DEF( Cone );
-cpPlugins_Interface_ImplicitFunction_DEF( Cylinder );
-cpPlugins_Interface_ImplicitFunction_DEF( ImplicitBoolean );
-cpPlugins_Interface_ImplicitFunction_DEF( ImplicitDataSet );
-cpPlugins_Interface_ImplicitFunction_DEF( ImplicitHalo );
-cpPlugins_Interface_ImplicitFunction_DEF( ImplicitPolyDataDistance );
-cpPlugins_Interface_ImplicitFunction_DEF( ImplicitSelectionLoop );
-cpPlugins_Interface_ImplicitFunction_DEF( ImplicitSum );
-cpPlugins_Interface_ImplicitFunction_DEF( ImplicitVolume );
-cpPlugins_Interface_ImplicitFunction_DEF( ImplicitWindowFunction );
-cpPlugins_Interface_ImplicitFunction_DEF( PerlinNoise );
-cpPlugins_Interface_ImplicitFunction_DEF( Plane );
-cpPlugins_Interface_ImplicitFunction_DEF( Planes );
-cpPlugins_Interface_ImplicitFunction_DEF( PlanesIntersection );
-cpPlugins_Interface_ImplicitFunction_DEF( PolyPlane );
-cpPlugins_Interface_ImplicitFunction_DEF( Quadric );
-cpPlugins_Interface_ImplicitFunction_DEF( Sphere );
-cpPlugins_Interface_ImplicitFunction_DEF( Superquadric );
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::ImplicitFunction::
-ImplicitFunction( )
-  : Superclass( )
-{
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::ImplicitFunction::
-~ImplicitFunction( )
-{
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/ImplicitFunction.h b/lib/cpPlugins/Interface/ImplicitFunction.h
deleted file mode 100644 (file)
index f55a188..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__IMPLICITFUNCTION__H__
-#define __CPPLUGINS__INTERFACE__IMPLICITFUNCTION__H__
-
-#include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
-#include <cpPlugins/Interface/DataObject.h>
-
-// Sompe forward declarations
-class vtkImplicitFunction;
-
-namespace cpPlugins
-{
-  namespace Interface
-  {
-    /**
-     */
-    class cpPlugins_Interface_EXPORT ImplicitFunction
-      : public DataObject
-    {
-    public:
-      typedef ImplicitFunction                Self;
-      typedef DataObject                      Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( ImplicitFunction, DataObject );
-
-    public:
-      void SetFunctionToBox( );
-      void SetFunctionToCone( );
-      void SetFunctionToCylinder( );
-      void SetFunctionToImplicitBoolean( );
-      void SetFunctionToImplicitDataSet( );
-      void SetFunctionToImplicitHalo( );
-      void SetFunctionToImplicitPolyDataDistance( );
-      void SetFunctionToImplicitSelectionLoop( );
-      void SetFunctionToImplicitSum( );
-      void SetFunctionToImplicitVolume( );
-      void SetFunctionToImplicitWindowFunction( );
-      void SetFunctionToPerlinNoise( );
-      void SetFunctionToPlane( );
-      void SetFunctionToPlanes( );
-      void SetFunctionToPlanesIntersection( );
-      void SetFunctionToPolyPlane( );
-      void SetFunctionToQuadric( );
-      void SetFunctionToSphere( );
-      void SetFunctionToSuperquadric( );
-
-    protected:
-      ImplicitFunction( );
-      virtual ~ImplicitFunction( );
-
-    private:
-      // Purposely not implemented
-      ImplicitFunction( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__INTERFACE__IMPLICITFUNCTION__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/Instances_itkImage.cxx b/lib/cpPlugins/Interface/Instances_itkImage.cxx
deleted file mode 100644 (file)
index 855c2f6..0000000
+++ /dev/null
@@ -1,146 +0,0 @@
-#include <cpPlugins/Interface/Macros.h>
-
-#include <complex>
-
-#undef ITK_MANUAL_INSTANTIATION
-#include <itkImage.h>
-#include <itkImageToVTKImageFilter.h>
-
-#include <itkCovariantVector.h>
-#include <itkDiffusionTensor3D.h>
-#include <itkPoint.h>
-#include <itkRGBPixel.h>
-#include <itkRGBAPixel.h>
-#include <itkSymmetricSecondRankTensor.h>
-#include <itkVector.h>
-
-// -------------------------------------------------------------------------
-#define cpPlugins_ITKImage_Export( T, D )                       \
-  cpPlugins_TEMPLATE_EXPORT(                                    \
-    2(class cpPlugins_Interface_EXPORT itk::Image< T, D >)      \
-    )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_ITKArrayImage_Export( A, T, DA, DI )                  \
-  cpPlugins_TEMPLATE_EXPORT(                                            \
-    3(class cpPlugins_Interface_EXPORT itk::Image< A< T, DA >, DI >)    \
-    )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_ITKImage_AllDims_Export( T )  \
-  cpPlugins_ITKImage_Export( T, 2 );            \
-  cpPlugins_ITKImage_Export( T, 3 );            \
-  cpPlugins_ITKImage_Export( T, 4 )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_ITKArrayImage_AllDims_Export( A, T )  \
-  cpPlugins_ITKArrayImage_Export( A, T, 2, 2 );         \
-  cpPlugins_ITKArrayImage_Export( A, T, 3, 3 );         \
-  cpPlugins_ITKArrayImage_Export( A, T, 4, 4 )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_VTKImage_Export( T, D )               \
-  cpPlugins_TEMPLATE_EXPORT(                            \
-    2(                                                  \
-      class cpPlugins_Interface_EXPORT                  \
-      itk::ImageToVTKImageFilter< itk::Image< T, D > >  \
-      )                                                 \
-    )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_VTKArrayImage_Export( A, T, DA, DI )                  \
-  cpPlugins_TEMPLATE_EXPORT(                                            \
-    3(class                                                             \
-      cpPlugins_Interface_EXPORT                                        \
-      itk::ImageToVTKImageFilter< itk::Image< A< T, DA >, DI > >)       \
-    )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_VTKImage_AllDims_Export( T )  \
-  cpPlugins_VTKImage_Export( T, 2 );            \
-  cpPlugins_VTKImage_Export( T, 3 )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_VTKArrayImage_AllDims_Export( A, T )  \
-  cpPlugins_VTKArrayImage_Export( A, T, 2, 2 );         \
-  cpPlugins_VTKArrayImage_Export( A, T, 3, 3 )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_Image_Export( T, D )          \
-  cpPlugins_ITKImage_Export( T, D );            \
-  cpPlugins_VTKImage_Export( T, D )             \
-  
-// -------------------------------------------------------------------------
-#define cpPlugins_Image_AllDims_Export( T )     \
-  cpPlugins_ITKImage_AllDims_Export( T );       \
-  cpPlugins_VTKImage_AllDims_Export( T )        \
-  
-// -------------------------------------------------------------------------
-#define cpPlugins_ArrayImage_AllDims_Export( A, T )     \
-  cpPlugins_ITKArrayImage_AllDims_Export( A, T );       \
-  cpPlugins_VTKArrayImage_AllDims_Export( A, T )        \
-  
-// -------------------------------------------------------------------------
-// ITK-VTK base clases
-// -------------------------------------------------------------------------
-
-cpPlugins_Image_AllDims_Export( char );
-cpPlugins_Image_AllDims_Export( short );
-cpPlugins_Image_AllDims_Export( int );
-cpPlugins_Image_AllDims_Export( long );
-cpPlugins_Image_AllDims_Export( unsigned char );
-cpPlugins_Image_AllDims_Export( unsigned short );
-cpPlugins_Image_AllDims_Export( unsigned int );
-cpPlugins_Image_AllDims_Export( unsigned long );
-cpPlugins_Image_AllDims_Export( float );
-cpPlugins_Image_AllDims_Export( double );
-
-cpPlugins_Image_AllDims_Export( itk::RGBPixel< char > );
-cpPlugins_Image_AllDims_Export( itk::RGBPixel< short > );
-cpPlugins_Image_AllDims_Export( itk::RGBPixel< int > );
-cpPlugins_Image_AllDims_Export( itk::RGBPixel< long > );
-cpPlugins_Image_AllDims_Export( itk::RGBPixel< unsigned char > );
-cpPlugins_Image_AllDims_Export( itk::RGBPixel< unsigned short > );
-cpPlugins_Image_AllDims_Export( itk::RGBPixel< unsigned int > );
-cpPlugins_Image_AllDims_Export( itk::RGBPixel< unsigned long > );
-cpPlugins_Image_AllDims_Export( itk::RGBPixel< float > );
-cpPlugins_Image_AllDims_Export( itk::RGBPixel< double > );
-
-cpPlugins_Image_AllDims_Export( itk::RGBAPixel< char > );
-cpPlugins_Image_AllDims_Export( itk::RGBAPixel< short > );
-cpPlugins_Image_AllDims_Export( itk::RGBAPixel< int > );
-cpPlugins_Image_AllDims_Export( itk::RGBAPixel< long > );
-cpPlugins_Image_AllDims_Export( itk::RGBAPixel< unsigned char > );
-cpPlugins_Image_AllDims_Export( itk::RGBAPixel< unsigned short > );
-cpPlugins_Image_AllDims_Export( itk::RGBAPixel< unsigned int > );
-cpPlugins_Image_AllDims_Export( itk::RGBAPixel< unsigned long > );
-cpPlugins_Image_AllDims_Export( itk::RGBAPixel< float > );
-cpPlugins_Image_AllDims_Export( itk::RGBAPixel< double > );
-
-cpPlugins_Image_AllDims_Export( itk::DiffusionTensor3D< float > );
-cpPlugins_Image_AllDims_Export( itk::DiffusionTensor3D< double > );
-
-cpPlugins_ArrayImage_AllDims_Export( itk::Vector, float );
-cpPlugins_ArrayImage_AllDims_Export( itk::Vector, double );
-
-cpPlugins_ArrayImage_AllDims_Export( itk::CovariantVector, float );
-cpPlugins_ArrayImage_AllDims_Export( itk::CovariantVector, double );
-
-cpPlugins_ArrayImage_AllDims_Export( itk::Point, float );
-cpPlugins_ArrayImage_AllDims_Export( itk::Point, double );
-
-cpPlugins_ArrayImage_AllDims_Export( itk::SymmetricSecondRankTensor, float );
-cpPlugins_ArrayImage_AllDims_Export( itk::SymmetricSecondRankTensor, double );
-
-// -------------------------------------------------------------------------
-// ITK-only base clases
-// -------------------------------------------------------------------------
-
-cpPlugins_ITKImage_AllDims_Export( std::complex< float > );
-cpPlugins_ITKImage_AllDims_Export( std::complex< double > );
-
-cpPlugins_ITKImage_Export( itk::Offset< 2 >, 2 );
-cpPlugins_ITKImage_Export( itk::Offset< 3 >, 3 );
-cpPlugins_ITKImage_Export( itk::Offset< 4 >, 4 );
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/Instances_itkMesh.cxx b/lib/cpPlugins/Interface/Instances_itkMesh.cxx
deleted file mode 100644 (file)
index c721b5e..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#include <cpPlugins/Interface/Macros.h>
-
-#undef ITK_MANUAL_INSTANTIATION
-#include <itkMesh.h>
-#include <itkQuadEdgeMesh.h>
-
-// -------------------------------------------------------------------------
-#define cpPlugins_Mesh_Export( N, T, D )                                \
-  cpPlugins_TEMPLATE_EXPORT(                                            \
-    2(class cpPlugins_Interface_EXPORT itk::N< T, D >)                  \
-    )
-
-// -------------------------------------------------------------------------
-cpPlugins_Mesh_Export( Mesh, float, 2 );
-cpPlugins_Mesh_Export( Mesh, double, 2 );
-cpPlugins_Mesh_Export( Mesh, float, 3 );
-cpPlugins_Mesh_Export( Mesh, double, 3 );
-cpPlugins_Mesh_Export( QuadEdgeMesh, float, 2 );
-cpPlugins_Mesh_Export( QuadEdgeMesh, double, 2 );
-cpPlugins_Mesh_Export( QuadEdgeMesh, float, 3 );
-cpPlugins_Mesh_Export( QuadEdgeMesh, double, 3 );
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/Instances_itkPolyLineParametricPath.cxx b/lib/cpPlugins/Interface/Instances_itkPolyLineParametricPath.cxx
deleted file mode 100644 (file)
index 5c00210..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#include <cpPlugins/Interface/Macros.h>
-
-#undef ITK_MANUAL_INSTANTIATION
-#include <itkPolyLineParametricPath.h>
-
-// -------------------------------------------------------------------------
-template class cpPlugins_Interface_EXPORT itk::PolyLineParametricPath< 2 >;
-template class cpPlugins_Interface_EXPORT itk::PolyLineParametricPath< 3 >;
-template class cpPlugins_Interface_EXPORT itk::PolyLineParametricPath< 4 >;
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/Instances_itkVectorImage.cxx b/lib/cpPlugins/Interface/Instances_itkVectorImage.cxx
deleted file mode 100644 (file)
index 5c4d599..0000000
+++ /dev/null
@@ -1,101 +0,0 @@
-#include <cpPlugins/Interface/Macros.h>
-
-#include <complex>
-
-#undef ITK_MANUAL_INSTANTIATION
-#include <itkVectorImage.h>
-
-#include <itkCovariantVector.h>
-#include <itkDiffusionTensor3D.h>
-#include <itkPoint.h>
-#include <itkRGBPixel.h>
-#include <itkRGBAPixel.h>
-#include <itkSymmetricSecondRankTensor.h>
-#include <itkVector.h>
-
-// -------------------------------------------------------------------------
-#define cpPlugins_Image_Export( T, D )                                  \
-  cpPlugins_TEMPLATE_EXPORT(                                            \
-    2(class cpPlugins_Interface_EXPORT itk::VectorImage< T, D >)        \
-    )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_ArrayImage_Export( A, T, DA, DI )                     \
-  cpPlugins_TEMPLATE_EXPORT(                                            \
-    3(class                                                             \
-      cpPlugins_Interface_EXPORT                                        \
-      itk::VectorImage< A< T, DA >, DI >)                               \
-    )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_Image_AllDims_Export( T )  \
-  cpPlugins_Image_Export( T, 2 );            \
-  cpPlugins_Image_Export( T, 3 );            \
-  cpPlugins_Image_Export( T, 4 )
-
-// -------------------------------------------------------------------------
-#define cpPlugins_ArrayImage_AllDims_Export( A, T )     \
-  cpPlugins_ArrayImage_Export( A, T, 2, 2 );            \
-  cpPlugins_ArrayImage_Export( A, T, 3, 3 );            \
-  cpPlugins_ArrayImage_Export( A, T, 4, 4 )
-
-// -------------------------------------------------------------------------
-// ITK-VTK base clases
-// -------------------------------------------------------------------------
-
-cpPlugins_Image_AllDims_Export( char );
-cpPlugins_Image_AllDims_Export( short );
-cpPlugins_Image_AllDims_Export( int );
-cpPlugins_Image_AllDims_Export( long );
-cpPlugins_Image_AllDims_Export( unsigned char );
-cpPlugins_Image_AllDims_Export( unsigned short );
-cpPlugins_Image_AllDims_Export( unsigned int );
-cpPlugins_Image_AllDims_Export( unsigned long );
-cpPlugins_Image_AllDims_Export( float );
-cpPlugins_Image_AllDims_Export( double );
-
-cpPlugins_Image_AllDims_Export( std::complex< float > );
-cpPlugins_Image_AllDims_Export( std::complex< double > );
-
-cpPlugins_Image_Export( itk::Offset< 2 >, 2 );
-cpPlugins_Image_Export( itk::Offset< 3 >, 3 );
-cpPlugins_Image_Export( itk::Offset< 4 >, 4 );
-
-cpPlugins_Image_AllDims_Export( itk::RGBPixel< char > );
-cpPlugins_Image_AllDims_Export( itk::RGBPixel< short > );
-cpPlugins_Image_AllDims_Export( itk::RGBPixel< int > );
-cpPlugins_Image_AllDims_Export( itk::RGBPixel< long > );
-cpPlugins_Image_AllDims_Export( itk::RGBPixel< unsigned char > );
-cpPlugins_Image_AllDims_Export( itk::RGBPixel< unsigned short > );
-cpPlugins_Image_AllDims_Export( itk::RGBPixel< unsigned int > );
-cpPlugins_Image_AllDims_Export( itk::RGBPixel< unsigned long > );
-cpPlugins_Image_AllDims_Export( itk::RGBPixel< float > );
-cpPlugins_Image_AllDims_Export( itk::RGBPixel< double > );
-
-cpPlugins_Image_AllDims_Export( itk::RGBAPixel< char > );
-cpPlugins_Image_AllDims_Export( itk::RGBAPixel< short > );
-cpPlugins_Image_AllDims_Export( itk::RGBAPixel< int > );
-cpPlugins_Image_AllDims_Export( itk::RGBAPixel< long > );
-cpPlugins_Image_AllDims_Export( itk::RGBAPixel< unsigned char > );
-cpPlugins_Image_AllDims_Export( itk::RGBAPixel< unsigned short > );
-cpPlugins_Image_AllDims_Export( itk::RGBAPixel< unsigned int > );
-cpPlugins_Image_AllDims_Export( itk::RGBAPixel< unsigned long > );
-cpPlugins_Image_AllDims_Export( itk::RGBAPixel< float > );
-cpPlugins_Image_AllDims_Export( itk::RGBAPixel< double > );
-
-cpPlugins_Image_AllDims_Export( itk::DiffusionTensor3D< float > );
-cpPlugins_Image_AllDims_Export( itk::DiffusionTensor3D< double > );
-
-cpPlugins_ArrayImage_AllDims_Export( itk::Vector, float );
-cpPlugins_ArrayImage_AllDims_Export( itk::Vector, double );
-
-cpPlugins_ArrayImage_AllDims_Export( itk::CovariantVector, float );
-cpPlugins_ArrayImage_AllDims_Export( itk::CovariantVector, double );
-
-cpPlugins_ArrayImage_AllDims_Export( itk::Point, float );
-cpPlugins_ArrayImage_AllDims_Export( itk::Point, double );
-
-cpPlugins_ArrayImage_AllDims_Export( itk::SymmetricSecondRankTensor, float );
-cpPlugins_ArrayImage_AllDims_Export( itk::SymmetricSecondRankTensor, double );
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/Interface.cxx b/lib/cpPlugins/Interface/Interface.cxx
deleted file mode 100644 (file)
index f2a58da..0000000
+++ /dev/null
@@ -1,358 +0,0 @@
-#include <cpPlugins/Interface/Interface.h>
-#include <cpPlugins/Interface/ProcessObjectProvider.h>
-#include <algorithm>
-#include <cstdlib>
-#include <fstream>
-#include <sstream>
-#include <Pluma/Pluma.hpp>
-
-namespace cpPlugins
-{
-  namespace Interface
-  {
-    struct PathSeparator
-    {
-      bool operator()( char c ) const
-        {
-#ifdef _WIN32
-          return( c == '\\' || c == '/' );
-#else // Linux like
-          return( c == '/' );
-#endif // _WIN32
-        }
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-// -------------------------------------------------------------------------
-std::string cpPlugins_Interface_CanonicalPath( const std::string& path )
-{
-#ifdef _WIN32
-  TCHAR  buffer[ 4096 ] = TEXT( "" );
-  TCHAR** lppPart = { NULL };
-  GetFullPathName( path.c_str( ), 4096, buffer, lppPart );
-  return( std::string( buffer ) );
-#else // Linux like
-  return( std::string( realpath( path.c_str( ), NULL ) ) );
-#endif // _WIN32
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::Interface::
-Interface( )
-{
-  this->m_Pluma = new pluma::Pluma( );
-  this->m_Pluma->acceptProviderType< ProcessObjectProvider >( );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::Interface::
-~Interface( )
-{
-  this->UnloadAll( );
-  delete this->m_Pluma;
-}
-
-// -------------------------------------------------------------------------
-bool cpPlugins::Interface::Interface::
-LoadDefaultConfiguration( const std::string& path )
-{
-  std::ifstream file( PLUGIN_CONFIG_FILE );
-  if( file )
-  {
-    char buffer[ 1000 ];
-    while( file.getline( buffer, 1000 ) )
-    {
-      // std::string line( buffer );
-      std::istringstream line( buffer );
-      std::string name, folder;
-      std::getline( line, name, '@' );
-      std::getline( line, folder, '@' );
-      std::stringstream path;
-      path << folder << "/" << PLUGIN_PREFIX << name << PLUGIN_EXT;
-      this->Load( path.str( ) );
-
-    } // elihw
-
-    file.close( );
-    return( true );
-  }
-  else
-    return( false );
-}
-
-// -------------------------------------------------------------------------
-bool cpPlugins::Interface::Interface::
-SaveDefaultConfiguration( const std::string& path )
-{
-  std::ofstream file( PLUGIN_CONFIG_FILE );
-  if( file )
-  {
-    auto pIt = this->m_LoadedPlugins.begin( );
-    for( ; pIt != this->m_LoadedPlugins.end( ); ++pIt )
-    {
-      auto fIt = pIt->second.begin( );
-      for( ; fIt != pIt->second.end( ); ++fIt )
-        file << *fIt << "@" << pIt->first << std::endl;
-
-    } // rof
-    file.close( );
-    return( true );
-  }
-  else
-    return( false );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::Interface::
-TClasses& cpPlugins::Interface::Interface::
-GetClasses( )
-{
-  return( this->m_Classes );
-}
-
-// -------------------------------------------------------------------------
-const cpPlugins::Interface::Interface::
-TClasses& cpPlugins::Interface::Interface::
-GetClasses( ) const
-{
-  return( this->m_Classes );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::Interface::
-TLoadedPlugins& cpPlugins::Interface::Interface::
-GetLoadedPlugins( )
-{
-  return( this->m_LoadedPlugins );
-}
-
-// -------------------------------------------------------------------------
-const cpPlugins::Interface::Interface::
-TLoadedPlugins& cpPlugins::Interface::Interface::
-GetLoadedPlugins( ) const
-{
-  return( this->m_LoadedPlugins );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::ProcessObject::Pointer
-cpPlugins::Interface::Interface::
-CreateObject( const std::string& name ) const
-{
-  cpPlugins::Interface::ProcessObject::Pointer po = NULL;
-  auto catIt = this->m_Classes.begin( );
-  while( catIt != this->m_Classes.end( ) )
-  {
-    auto classIt = catIt->second.find( name );
-    if( classIt != catIt->second.end( ) )
-    {
-      ProcessObjectProvider* provider =
-        dynamic_cast< ProcessObjectProvider* >(
-          this->m_Providers[ classIt->second ]
-          );
-      if( provider != NULL )
-        po = provider->create( );
-      catIt = this->m_Classes.end( );
-    }
-    else
-      catIt++;
-
-  } // elihw
-  return( po );
-}
-
-// -------------------------------------------------------------------------
-bool cpPlugins::Interface::Interface::
-Load( const std::string& path )
-{
-  bool ret = true;
-  try
-  {
-    ret = this->m_Pluma->load( path );
-    if( ret )
-    {
-      std::string folder, name;
-      Self::_SepFName( path, folder, name );
-      this->m_LoadedPlugins[ folder ].push_back( name );
-      this->_LoadClasses( );
-
-    } // fi
-  }
-  catch( ... )
-  {
-    ret = false;
-
-  } // yrt
-  return( ret );
-}
-
-// -------------------------------------------------------------------------
-bool cpPlugins::Interface::Interface::
-Load( const std::string& folder, const std::string& name )
-{
-  std::string real_folder = folder;
-  PathSeparator sep;
-  if( sep( folder[ folder.size( ) - 1 ] ) )
-    real_folder = folder.substr( 0, folder.size( ) - 1 );
-  real_folder = cpPlugins_Interface_CanonicalPath( real_folder );
-
-  bool ret = true;
-  try
-  {
-    ret = this->m_Pluma->load( real_folder, name );
-    if( ret )
-    {
-      // Update loaded plugins
-      std::string prefix( PLUGIN_PREFIX );
-      std::string ext( PLUGIN_EXT );
-      std::string real_name = name;
-      if( prefix != "" )
-        real_name.replace( real_name.find( prefix ), prefix.size( ), "" );
-      real_name.replace( real_name.find( ext ), ext.size( ), "" );
-      this->m_LoadedPlugins[ real_folder ].push_back( real_name );
-      this->_LoadClasses( );
-
-    } // fi
-  }
-  catch( ... )
-  {
-    ret = false;
-
-  } // yrt
-  return( ret );
-}
-
-// -------------------------------------------------------------------------
-bool cpPlugins::Interface::Interface::
-LoadFromFolder( const std::string& folder, bool r )
-{
-  try
-  {
-    std::list< std::string > f = this->m_Pluma->loadFromFolder( folder, r );
-    if( f.size( ) > 0 )
-    {
-      // Update loaded plugins
-      for( auto i = f.begin( ); i != f.end( ); ++i )
-      {
-        std::string folder, name;
-        Self::_SepFName( *i, folder, name );
-        this->m_LoadedPlugins[ folder ].push_back( name );
-
-      } // rof
-
-      // Load classes
-      this->_LoadClasses( );
-      return( true );
-    }
-    else
-      return( false );
-  }
-  catch( ... )
-  {
-    return( false );
-
-  } // yrt
-}
-
-// -------------------------------------------------------------------------
-bool cpPlugins::Interface::Interface::
-Unload( const std::string& name )
-{
-  bool ret = true;
-  try
-  {
-    ret = this->m_Pluma->unload( name );
-    if( ret )
-    {
-      this->m_Providers.clear( );
-      this->m_Classes.clear( );
-
-      // TODO: this->m_LoadedPlugins
-
-      this->_LoadClasses( );
-
-    } // fi
-  }
-  catch( ... )
-  {
-    ret = false;
-
-  } // yrt
-  return( ret );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Interface::
-UnloadAll( )
-{
-  try
-  {
-    this->m_Pluma->unloadAll( );
-  }
-  catch( ... )
-  {
-    // Do nothing
-
-  } // yrt
-  this->m_Providers.clear( );
-  this->m_Classes.clear( );
-  this->m_LoadedPlugins.clear( );
-}
-
-// -------------------------------------------------------------------------
-bool cpPlugins::Interface::Interface::
-IsLoaded( const std::string& name ) const
-{
-  return( this->m_Pluma->isLoaded( name ) );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Interface::
-_LoadClasses( )
-{
-  this->m_Providers.clear( );
-  this->m_Classes.clear( );
-  this->m_Pluma->getProviders( this->m_Providers );
-
-  // Get reader provider
-  for( unsigned int i = 0; i < this->m_Providers.size( ); ++i )
-  {
-    ProcessObject::Pointer d = this->m_Providers[ i ]->create( );
-    this->m_Classes[ d->GetClassCategory( ) ][ d->GetClassName( ) ] = i;
-
-  } // rof
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Interface::
-_SepFName( const std::string& path, std::string& folder, std::string& name )
-{
-  PathSeparator sep;
-
-  // Get absolute path
-  std::string real_path = cpPlugins_Interface_CanonicalPath( path );
-
-  // Get name
-  name = std::string(
-    std::find_if( real_path.rbegin( ), real_path.rend( ), sep ).base( ),
-    real_path.end( )
-    );
-
-  // Get containing folder
-  folder = real_path;
-  folder.replace( folder.find( name ), name.size( ), "" );
-  if( sep( folder[ folder.size( ) - 1 ] ) )
-    folder = folder.substr( 0, folder.size( ) - 1 );
-
-  // Erase prefix and extension from filename
-  std::string prefix( PLUGIN_PREFIX );
-  std::string ext( PLUGIN_EXT );
-  if( prefix != "" )
-    name.replace( name.find( prefix ), prefix.size( ), "" );
-  name.replace( name.find( ext ), ext.size( ), "" );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/Interface.h b/lib/cpPlugins/Interface/Interface.h
deleted file mode 100644 (file)
index 6dbcb4c..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__INTERFACE__H__
-#define __CPPLUGINS__INTERFACE__INTERFACE__H__
-
-#include <map>
-#include <string>
-#include <vector>
-
-#include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
-#include <cpPlugins/Interface/Object.h>
-#include <cpPlugins/Interface/ProcessObject.h>
-
-// Some forward declarations
-namespace pluma
-{
-  class Pluma;
-}
-
-namespace cpPlugins
-{
-  namespace Interface
-  {
-    // Some forward declarations
-    class ProcessObjectProvider;
-
-    /**
-     */
-    class cpPlugins_Interface_EXPORT Interface
-    {
-    public:
-      typedef Interface Self;
-      typedef std::vector< ProcessObjectProvider* > TProviders;
-      typedef std::map< std::string, unsigned int > TClass;
-      typedef std::map< std::string, TClass >       TClasses;
-      typedef
-        std::map< std::string, std::vector< std::string > >
-        TLoadedPlugins;
-
-      typedef TProviders::const_iterator TProvidersIterator;
-      typedef TClasses::const_iterator   TClassesIterator;
-
-    public:
-      Interface( );
-      virtual ~Interface( );
-
-      bool LoadDefaultConfiguration( const std::string& path );
-      bool SaveDefaultConfiguration( const std::string& path );
-
-      // Plugin access
-      TClasses& GetClasses( );
-      const TClasses& GetClasses( ) const;
-      TLoadedPlugins& GetLoadedPlugins( );
-      const TLoadedPlugins& GetLoadedPlugins( ) const;
-      ProcessObject::Pointer CreateObject( const std::string& name ) const;
-
-      // Interface to PLUMA
-      bool Load( const std::string& path );
-      bool Load( const std::string& folder, const std::string& name );
-      bool LoadFromFolder( const std::string& folder, bool r = false );
-      bool Unload( const std::string& name );
-      void UnloadAll( );
-      bool IsLoaded( const std::string& name ) const;
-
-    protected:
-      void _LoadClasses( );
-
-      static void _SepFName(
-        const std::string& path,
-        std::string& folder,
-        std::string& name
-        );
-
-    protected:
-      pluma::Pluma*  m_Pluma;
-      TProviders     m_Providers;
-      TClasses       m_Classes;
-      TLoadedPlugins m_LoadedPlugins;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__INTERFACE__INTERFACE__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/Macros.h b/lib/cpPlugins/Interface/Macros.h
deleted file mode 100644 (file)
index 922d036..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__MACROS__H__
-#define __CPPLUGINS__INTERFACE__MACROS__H__
-
-#include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
-#include <cpPlugins/Interface/Config.h>
-
-// -------------------------------------------------------------------------
-#define cpPlugins_Id_Macro( N, C )                                      \
-  public:                                                               \
-  virtual const char* GetClassName( ) const     { return( #N ); }       \
-  virtual const char* GetClassCategory( ) const { return( #C ); }
-
-/**
- * Based upon: http://www.itk.org/Wiki/Proposals:Explicit_Instantiation
- */
-// -------------------------------------------------------------------------
-#define cpPlugins_TEMPLATE_1( X1 )              \
-  X1
-#define cpPlugins_TEMPLATE_2( X1, X2 )          \
-  X1,X2
-#define cpPlugins_TEMPLATE_3( X1, X2, X3 )      \
-  X1,X2,X3
-#define cpPlugins_TEMPLATE_4( X1, X2, X3, X4 )  \
-  X1,X2,X3,X4
-#define cpPlugins_TEMPLATE_5( X1, X2, X3, X4, X5 )      \
-  X1,X2,X3,X4,X5
-#define cpPlugins_TEMPLATE_6( X1, X2, X3, X4, X5, X6 )  \
-  X1,X2,X3,X4,X5,X6
-#define cpPlugins_TEMPLATE_7( X1, X2, X3, X4, X5, X6, X7 )      \
-  X1,X2,X3,X4,X5,X6,X7
-#define cpPlugins_TEMPLATE_8( X1, X2, X3, X4, X5, X6, X7, X8 )  \
-  X1,X2,X3,X4,X5,X6,X7,X8
-#define cpPlugins_TEMPLATE_9( X1, X2, X3, X4, X5, X6, X7, X8, X9 )      \
-  X1,X2,X3,X4,X5,X6,X7,X8,X9
-  
-#define cpPlugins_TEMPLATE_EXPORT( X )          \
-  template cpPlugins_TEMPLATE_##X;
-#define cpPlugins_TEMPLATE_IMPORT( X )          \
-  extern template cpPlugins_TEMPLATE_##X;
-
-#endif // __CPPLUGINS__INTERFACE__MACROS__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/Mesh.cxx b/lib/cpPlugins/Interface/Mesh.cxx
deleted file mode 100644 (file)
index 29a3b49..0000000
+++ /dev/null
@@ -1,112 +0,0 @@
-#include <cpPlugins/Interface/Mesh.h>
-
-#include <itkMesh.h>
-#include <itkLineCell.h>
-#include <itkTriangleCell.h>
-#include <itkPolygonCell.h>
-
-#include <vtkPolyData.h>
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Mesh::
-SetITK( itk::LightObject* o )
-{
-  this->Superclass::SetITK( o );
-  this->_ITK_2_VTK< itk::Mesh< float, 2 > >( o );
-  this->_ITK_2_VTK< itk::Mesh< double, 2 > >( o );
-  this->_ITK_2_VTK< itk::Mesh< float, 3 > >( o );
-  this->_ITK_2_VTK< itk::Mesh< double, 3 > >( o );
-  this->_ITK_2_VTK< itk::QuadEdgeMesh< float, 2 > >( o );
-  this->_ITK_2_VTK< itk::QuadEdgeMesh< double, 2 > >( o );
-  this->_ITK_2_VTK< itk::QuadEdgeMesh< float, 3 > >( o );
-  this->_ITK_2_VTK< itk::QuadEdgeMesh< double, 3 > >( o );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Mesh::
-SetVTK( vtkObjectBase* o )
-{
-  typedef itk::Mesh< double, 3 >      _TMesh;
-  typedef _TMesh::CellType            _TCell;
-  typedef _TCell::CellAutoPointer     _TCellAutoPointer;
-  typedef itk::LineCell< _TCell >     _TLine;
-  typedef itk::TriangleCell< _TCell > _TTriangle;
-  typedef itk::PolygonCell< _TCell >  _TPolygon;
-
-  vtkPolyData* mesh = dynamic_cast< vtkPolyData* >( o );
-  if( mesh == NULL )
-  {
-    this->m_ITKObject = NULL;
-    this->Modified( );
-    return;
-
-  } // fi
-
-  if( this->m_VTKObject.GetPointer( ) != mesh )
-  {
-    this->m_VTKObject = mesh;
-
-    // Copy points
-    _TMesh::Pointer imesh = _TMesh::New( );
-    double point[ 3 ];
-    for( long i = 0; i < mesh->GetNumberOfPoints( ); ++i )
-    {
-      mesh->GetPoint( i, point );
-      _TMesh::PointType ipoint;
-      ipoint[ 0 ] = point[ 0 ];
-      ipoint[ 1 ] = point[ 1 ];
-      ipoint[ 2 ] = point[ 2 ];
-      imesh->SetPoint( i, ipoint );
-
-    } // rof
-
-    // Copy cells
-    for( long i = 0; i < mesh->GetNumberOfCells( ); ++i )
-    {
-      auto cell = mesh->GetCell( i );
-      long nPoints = cell->GetNumberOfPoints( );
-      _TCellAutoPointer icell;
-      if( nPoints == 2 )
-      {
-        icell.TakeOwnership( new _TLine );
-        icell->SetPointId( 0, cell->GetPointId( 0 ) );
-        icell->SetPointId( 1, cell->GetPointId( 1 ) );
-      }
-      else if( nPoints == 3 )
-      {
-        icell.TakeOwnership( new _TTriangle );
-        icell->SetPointId( 0, cell->GetPointId( 0 ) );
-        icell->SetPointId( 1, cell->GetPointId( 1 ) );
-        icell->SetPointId( 2, cell->GetPointId( 2 ) );
-      }
-      else if( nPoints > 3 )
-      {
-        _TPolygon* polygon = new _TPolygon( );
-        for( long j = 0; j < nPoints; ++j )
-          polygon->AddPointId( cell->GetPointId( j ) );
-        icell.TakeOwnership( polygon );
-
-      } // fi
-      imesh->SetCell( imesh->GetNumberOfCells( ), icell );
-
-    } // rof
-
-    this->m_ITKObject = imesh;
-    this->Modified( );
-
-  } // fi
-}
-// -------------------------------------------------------------------------
-cpPlugins::Interface::Mesh::
-Mesh( )
-  : Superclass( )
-{
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::Mesh::
-~Mesh( )
-{
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/Mesh.h b/lib/cpPlugins/Interface/Mesh.h
deleted file mode 100644 (file)
index 4d1f8fd..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__MESH__H__
-#define __CPPLUGINS__INTERFACE__MESH__H__
-
-#include <cpPlugins/Interface/DataObject.h>
-
-// Some forward declarations
-class vtkObject;
-
-namespace cpPlugins
-{
-  namespace Interface
-  {
-    /**
-     */
-    class cpPlugins_Interface_EXPORT Mesh
-      : public DataObject
-    {
-    public:
-      typedef Mesh                            Self;
-      typedef DataObject                      Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( Mesh, DataObject );
-      cpPlugins_Id_Macro( Mesh, DataObject );
-
-    public:
-      virtual void SetITK( itk::LightObject* o );
-      virtual void SetVTK( vtkObjectBase* o );
-
-    protected:
-      Mesh( );
-      virtual ~Mesh( );
-
-      template< class M >
-        inline void _ITK_2_VTK( itk::LightObject* o );
-
-    private:
-      // Purposely not implemented
-      Mesh( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#include <cpPlugins/Interface/Mesh.hxx>
-
-#endif // __CPPLUGINS__INTERFACE__MESH__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/Mesh.hxx b/lib/cpPlugins/Interface/Mesh.hxx
deleted file mode 100644 (file)
index 16504f0..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__MESH__HXX__
-#define __CPPLUGINS__INTERFACE__MESH__HXX__
-
-#include <map>
-
-#include <itkMesh.h>
-#include <itkQuadEdgeMesh.h>
-
-#include <vtkSmartPointer.h>
-#include <vtkCellArray.h>
-#include <vtkPoints.h>
-#include <vtkPolyData.h>
-
-// -------------------------------------------------------------------------
-template< class M >
-void cpPlugins::Interface::Mesh::
-_ITK_2_VTK( itk::LightObject* o )
-{
-  M* mesh = dynamic_cast< M* >( o );
-  if( mesh == NULL )
-    return;
-
-  long numPoints = mesh->GetNumberOfPoints( );
-  if( numPoints == 0 )
-    return;
-
-  vtkSmartPointer< vtkPoints > vpoints =
-    vtkSmartPointer< vtkPoints >::New( );
-  vpoints->SetNumberOfPoints( numPoints );
-  auto points = mesh->GetPoints( );
-
-  // Copy points
-  vtkIdType VTKId = 0;
-  std::map< vtkIdType, long > IndexMap;
-  for( auto i = points->Begin( ); i != points->End( ); ++i, VTKId++ )
-  {
-    IndexMap[ VTKId ] = i->Index( );
-    if( M::PointDimension == 2 )
-      vpoints->SetPoint(
-        VTKId,
-        i->Value( )[ 0 ], i->Value( )[ 1 ], 0
-        );
-    else if( M::PointDimension == 3 )
-      vpoints->SetPoint(
-        VTKId,
-        i->Value( )[ 0 ], i->Value( )[ 1 ], i->Value( )[ 2 ]
-        );
-
-  } // rof
-
-  // Copy cells
-  vtkSmartPointer< vtkCellArray > vcells =
-    vtkSmartPointer< vtkCellArray >::New( );
-  auto cells = mesh->GetCells( );
-  for( auto j = cells->Begin( ); j != cells->End( ); ++j )
-  {
-    auto cell = j->Value( );
-    vcells->InsertNextCell( cell->GetNumberOfPoints( ) );
-    for( auto k = cell->PointIdsBegin( ); k != cell->PointIdsEnd( ); ++k )
-      vcells->InsertCellPoint( IndexMap[ *k ] );
-    
-  } // rof
-
-  // Final assignations
-  vtkSmartPointer< vtkPolyData > vmesh =
-    vtkSmartPointer< vtkPolyData >::New( );
-  vmesh->SetPoints( vpoints );
-  vmesh->SetPolys( vcells );
-  this->m_VTKObject = vmesh;
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-#define cpPlugins_Mesh_Import( N, T, D )                                \
-  cpPlugins_TEMPLATE_IMPORT(                                            \
-    2(class cpPlugins_Interface_EXPORT itk::N< T, D >)                  \
-    )
-
-// -------------------------------------------------------------------------
-
-#ifndef cpPlugins_Interface_EXPORTS
-
-cpPlugins_Mesh_Import( Mesh, float, 2 );
-cpPlugins_Mesh_Import( Mesh, double, 2 );
-cpPlugins_Mesh_Import( Mesh, float, 3 );
-cpPlugins_Mesh_Import( Mesh, double, 3 );
-cpPlugins_Mesh_Import( QuadEdgeMesh, float, 2 );
-cpPlugins_Mesh_Import( QuadEdgeMesh, double, 2 );
-cpPlugins_Mesh_Import( QuadEdgeMesh, float, 3 );
-cpPlugins_Mesh_Import( QuadEdgeMesh, double, 3 );
-
-#endif // cpPlugins_Interface_EXPORTS
-
-#endif // __CPPLUGINS__INTERFACE__MESH__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/Object.cxx b/lib/cpPlugins/Interface/Object.cxx
deleted file mode 100644 (file)
index bef169d..0000000
+++ /dev/null
@@ -1,101 +0,0 @@
-#include <cpPlugins/Interface/Object.h>
-
-#include <itkObject.h>
-#include <vtkObject.h>
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Object::
-SetViewCoords( float x, float y )
-{
-  this->m_ViewX = x;
-  this->m_ViewY = y;
-  // WARNING: do not call "this->Modified( )" -> It could lead to a
-  //          re-execution of all pipeline
-}
-
-#ifdef cpPlugins_Interface_QT4
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Object::
-SetViewCoords( const QPointF& coords )
-{
-  this->SetViewCoords( coords.x( ), coords.y( ) );
-}
-
-// -------------------------------------------------------------------------
-QPointF cpPlugins::Interface::Object::
-GetViewCoords( ) const
-{
-  return( QPointF( this->m_ViewX, this->m_ViewY ) );
-}
-#endif // cpPlugins_Interface_QT4
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Object::
-Modified( ) const
-{
-  const itk::Object* i = this->GetITK< itk::Object >( );
-  vtkObject* v = const_cast< vtkObject* >( this->GetVTK< vtkObject >( ) );
-  if( i != NULL ) i->Modified( );
-  if( v != NULL ) v->Modified( );
-  this->Superclass::Modified( );
-}
-
-// -------------------------------------------------------------------------
-itk::ModifiedTimeType cpPlugins::Interface::Object::
-GetMTime( ) const
-{
-  unsigned long tTime = this->Superclass::GetMTime( );
-  unsigned long iTime = tTime;
-  unsigned long vTime = tTime;
-
-  const itk::Object* i = this->GetITK< itk::Object >( );
-  vtkObject* v = const_cast< vtkObject* >( this->GetVTK< vtkObject >( ) );
-  if( i != NULL ) iTime = i->GetMTime( );
-  if( v != NULL ) vTime = v->GetMTime( );
-
-  tTime = ( tTime < iTime )? tTime: iTime;
-  return( ( itk::ModifiedTimeType )( ( tTime < vTime )? tTime: vTime ) );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Object::
-SetITK( itk::LightObject* o )
-{
-  if( this->m_ITKObject.GetPointer( ) != o )
-  {
-    this->m_ITKObject = o;
-    this->Modified( );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Object::
-SetVTK( vtkObjectBase* o )
-{
-  if( this->m_VTKObject.GetPointer( ) != o )
-  {
-    this->m_VTKObject = o;
-    this->Modified( );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::Object::
-Object( )
-  : Superclass( ),
-    m_ITKObject( NULL ),
-    m_VTKObject( NULL ),
-    m_ViewX( float( 0 ) ),
-    m_ViewY( float( 0 ) )
-{
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::Object::
-~Object( )
-{
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/Object.h b/lib/cpPlugins/Interface/Object.h
deleted file mode 100644 (file)
index 34810d5..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__OBJECT__H__
-#define __CPPLUGINS__INTERFACE__OBJECT__H__
-
-#include <cpPlugins/Interface/Macros.h>
-
-#include <string>
-
-#include <itkObject.h>
-#include <itkObjectFactory.h>
-
-#include <vtkSmartPointer.h>
-#include <vtkObjectBase.h>
-
-#ifdef cpPlugins_Interface_QT4
-#include <QPointF>
-#endif // cpPlugins_Interface_QT4
-
-namespace cpPlugins
-{
-  namespace Interface
-  {
-    /**
-     */
-    class cpPlugins_Interface_EXPORT Object
-      : public itk::Object
-    {
-    public:
-      typedef Object                          Self;
-      typedef itk::Object                     Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( Object, itkObject );
-      cpPlugins_Id_Macro( Object, BaseObject );
-
-      itkGetConstMacro( ViewX, float );
-      itkGetConstMacro( ViewY, float );
-
-    public:
-      void SetViewCoords( float x, float y );
-
-#ifdef cpPlugins_Interface_QT4
-      void SetViewCoords( const QPointF& coords );
-      QPointF GetViewCoords( ) const;
-#endif // cpPlugins_Interface_QT4
-
-      virtual void Modified( ) const;
-      virtual itk::ModifiedTimeType GetMTime( ) const;
-
-      virtual void SetITK( itk::LightObject* o );
-      virtual void SetVTK( vtkObjectBase* o );
-
-      template< class T >
-        inline T* GetITK( );
-
-      template< class T >
-        inline const T* GetITK( ) const;
-
-      template< class T >
-        inline T* GetVTK( );
-
-      template< class T >
-        inline const T* GetVTK( ) const;
-
-    protected:
-      Object( );
-      virtual ~Object( );
-
-    private:
-      // Purposely not implemented
-      Object( const Self& );
-      Self& operator=( const Self& );
-
-    protected:
-      itk::LightObject::Pointer        m_ITKObject;
-      vtkSmartPointer< vtkObjectBase > m_VTKObject;
-
-      float m_ViewX;
-      float m_ViewY;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#include <cpPlugins/Interface/Object.hxx>
-
-#endif // __CPPLUGINS__INTERFACE__OBJECT__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/Object.hxx b/lib/cpPlugins/Interface/Object.hxx
deleted file mode 100644 (file)
index 914d5ca..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__OBJECT__HXX__
-#define __CPPLUGINS__INTERFACE__OBJECT__HXX__
-
-// -------------------------------------------------------------------------
-template< class T >
-T* cpPlugins::Interface::Object::
-GetITK( )
-{
-  return( dynamic_cast< T* >( this->m_ITKObject.GetPointer( ) ) );
-}
-
-// -------------------------------------------------------------------------
-template< class T >
-const T* cpPlugins::Interface::Object::
-GetITK( ) const
-{
-  return( dynamic_cast< const T* >( this->m_ITKObject.GetPointer( ) ) );
-}
-
-// -------------------------------------------------------------------------
-template< class T >
-T* cpPlugins::Interface::Object::
-GetVTK( )
-{
-  return( dynamic_cast< T* >( this->m_VTKObject.GetPointer( ) ) );
-}
-
-// -------------------------------------------------------------------------
-template< class T >
-const T* cpPlugins::Interface::Object::
-GetVTK( ) const
-{
-  return( dynamic_cast< const T* >( this->m_VTKObject.GetPointer( ) ) );
-}
-
-#endif // __CPPLUGINS__INTERFACE__OBJECT__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/Parameters.cxx b/lib/cpPlugins/Interface/Parameters.cxx
deleted file mode 100644 (file)
index 2e6d36c..0000000
+++ /dev/null
@@ -1,384 +0,0 @@
-#include <cpPlugins/Interface/Parameters.h>
-#include <cpPlugins/Interface/ProcessObject.h>
-#include <third_party/tinyxml/tinyxml.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::
-ProcessObject* cpPlugins::Interface::Parameters::
-GetProcessObject( )
-{
-  return( this->m_Process );
-}
-
-// -------------------------------------------------------------------------
-const cpPlugins::Interface::
-ProcessObject* cpPlugins::Interface::Parameters::
-GetProcessObject( ) const
-{
-  return( this->m_Process );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Parameters::
-SetProcessObject( ProcessObject* v )
-{
-  if( this->m_Process != v )
-  {
-    this->m_Process = v;
-    this->Modified( );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Parameters::
-Modified( ) const
-{
-  this->Superclass::Modified( );
-  if( this->m_Process != NULL )
-    this->m_Process->Modified( );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Parameters::
-Clear( )
-{
-  this->m_Parameters.clear( );
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Parameters::
-GetNames( std::vector< std::string >& container ) const
-{
-  container.clear( );
-  TParameters::const_iterator i = this->m_Parameters.begin( );
-  for( ; i != this->m_Parameters.end( ); ++i )
-    container.push_back( i->first );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::Parameters::
-Type cpPlugins::Interface::Parameters::
-GetType( const std::string& name ) const
-{
-  auto i = this->m_Parameters.find( name );
-  if( i != this->m_Parameters.end( ) )
-    return( i->second.first );
-  else
-    return( Self::NoType );
-}
-
-// -------------------------------------------------------------------------
-#define cpPlugins_Parameters_TypeAsString( Y )  \
-  if( i->second.first == Self::Y )              \
-    return( #Y )
-
-std::string cpPlugins::Interface::Parameters::
-GetTypeAsString( const std::string& name ) const
-{
-  auto i = this->m_Parameters.find( name );
-  cpPlugins_Parameters_TypeAsString( String );
-  else cpPlugins_Parameters_TypeAsString( Bool );
-  else cpPlugins_Parameters_TypeAsString( Int );
-  else cpPlugins_Parameters_TypeAsString( Uint );
-  else cpPlugins_Parameters_TypeAsString( Real );
-  else cpPlugins_Parameters_TypeAsString( OpenFileName );
-  else cpPlugins_Parameters_TypeAsString( SaveFileName );
-  else cpPlugins_Parameters_TypeAsString( PathName );
-  else cpPlugins_Parameters_TypeAsString( StringList );
-  else cpPlugins_Parameters_TypeAsString( BoolList );
-  else cpPlugins_Parameters_TypeAsString( IntList );
-  else cpPlugins_Parameters_TypeAsString( UintList );
-  else cpPlugins_Parameters_TypeAsString( RealList );
-  else cpPlugins_Parameters_TypeAsString( OpenFileNameList );
-  else cpPlugins_Parameters_TypeAsString( SaveFileNameList );
-  else cpPlugins_Parameters_TypeAsString( PathNameList );
-  else cpPlugins_Parameters_TypeAsString( Choices );
-  else return( "NoType" );
-}
-
-// -------------------------------------------------------------------------
-#define cpPlugins_Parameters_TypeFromString( Y, str )   \
-  if( str == std::string( #Y ) )                        \
-    return( Self::Y )
-
-cpPlugins::Interface::Parameters::
-Type cpPlugins::Interface::Parameters::
-GetTypeFromString( const std::string& t )
-{
-  cpPlugins_Parameters_TypeFromString( String, t );
-  else cpPlugins_Parameters_TypeFromString( Bool, t );
-  else cpPlugins_Parameters_TypeFromString( Int, t );
-  else cpPlugins_Parameters_TypeFromString( Uint, t );
-  else cpPlugins_Parameters_TypeFromString( Real, t );
-  else cpPlugins_Parameters_TypeFromString( OpenFileName, t );
-  else cpPlugins_Parameters_TypeFromString( SaveFileName, t );
-  else cpPlugins_Parameters_TypeFromString( PathName, t );
-  else cpPlugins_Parameters_TypeFromString( StringList, t );
-  else cpPlugins_Parameters_TypeFromString( BoolList, t );
-  else cpPlugins_Parameters_TypeFromString( IntList, t );
-  else cpPlugins_Parameters_TypeFromString( UintList, t );
-  else cpPlugins_Parameters_TypeFromString( RealList, t );
-  else cpPlugins_Parameters_TypeFromString( OpenFileNameList, t );
-  else cpPlugins_Parameters_TypeFromString( SaveFileNameList, t );
-  else cpPlugins_Parameters_TypeFromString( PathNameList, t );
-  else cpPlugins_Parameters_TypeFromString( Choices, t );
-  else return( Self::NoType );
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::Interface::Parameters::
-GetString( const std::string& name, bool force ) const
-{
-  auto i = this->m_Parameters.find( name );
-  if( i != this->m_Parameters.end( ) )
-  {
-    if( i->second.first == Self::String || force )
-      return( i->second.second );
-    else
-      return( "" );
-  }
-  else
-    return( "" );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Parameters::
-SetString( const std::string& name, const std::string& v, bool force )
-{
-  auto i = this->m_Parameters.find( name );
-  if( i != this->m_Parameters.end( ) )
-  {
-    if( i->second.first == Self::String || force )
-    {
-      if( i->second.second != v )
-      {
-        i->second.second = v;
-        this->Modified( );
-
-      } // fi
-
-    } // fi
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Parameters::
-ConfigureAsChoices(
-  const std::string& name, const std::vector< std::string >& choices
-  )
-{
-  // It is invalid not to give choices when configuring
-  if( choices.size( ) == 0 )
-    return;
-
-  std::stringstream str_choices;
-  str_choices << choices[ 0 ];
-  for( unsigned int i = 1; i < choices.size( ); ++i )
-    str_choices << "#" << choices[ i ];
-  str_choices << "@";
-  this->m_Parameters[ name ] =
-    TParameter( Self::Choices, str_choices.str( ) );
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-std::vector< std::string > cpPlugins::Interface::Parameters::
-GetChoices( const std::string& name ) const
-{
-  std::vector< std::string > choices;
-
-  TParameters::const_iterator i = this->m_Parameters.find( name );
-  if( i != this->m_Parameters.end( ) )
-  {
-    if( i->second.first == Self::Choices )
-    {
-      std::istringstream str_choices( i->second.second );
-      std::string real_choices;
-      std::getline( str_choices, real_choices, '@' );
-      std::istringstream str( real_choices );
-      std::string token;
-      while( std::getline( str, token, '#' ) )
-        choices.push_back( token );
-
-    } // fi
-
-  } // fi
-  return( choices );
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::Interface::Parameters::
-GetSelectedChoice( const std::string& name ) const
-{
-  auto i = this->m_Parameters.find( name );
-  if( i != this->m_Parameters.end( ) )
-  {
-    if( i->second.first == Self::Choices )
-    {
-      std::istringstream str_choices( i->second.second );
-      std::string real_choice;
-      std::getline( str_choices, real_choice, '@' );
-      std::getline( str_choices, real_choice, '@' );
-      return( real_choice );
-    }
-    else
-      return( "" );
-  }
-  else
-    return( "" );
-}
-
-// -------------------------------------------------------------------------
-bool cpPlugins::Interface::Parameters::
-SetSelectedChoice( const std::string& name, const std::string& choice )
-{
-  auto i = this->m_Parameters.find( name );
-  if( i != this->m_Parameters.end( ) )
-  {
-    if( i->second.first == Self::Choices )
-    {
-      std::istringstream str_choices( i->second.second );
-      std::string choices;
-      std::getline( str_choices, choices, '@' );
-      if( choices.find( choice ) != std::string::npos )
-      {
-        std::stringstream new_choices;
-        new_choices << choices << "@" << choice;
-        i->second.second = new_choices.str( );
-        this->Modified( );
-        return( true );
-      }
-      else
-        return( false );
-    }
-    else
-      return( false );
-  }
-  else
-    return( false );
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::Interface::Parameters::
-GetAcceptedFileExtensions( const std::string& name ) const
-{
-  auto i = this->m_AcceptedFileExtensions.find( name );
-  if( i != this->m_AcceptedFileExtensions.end( ) )
-    return( i->second );
-  else
-    return( "" );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Parameters::
-SetAcceptedFileExtensions(
-  const std::string& name, const std::string& extensions
-  )
-{
-  auto i = this->m_Parameters.find( name );
-  if( i != this->m_Parameters.end( ) )
-  {
-    bool is_valid = ( i->second.first == Self::OpenFileName );
-    is_valid     |= ( i->second.first == Self::SaveFileName );
-    is_valid     |= ( i->second.first == Self::OpenFileNameList );
-    is_valid     |= ( i->second.first == Self::SaveFileNameList );
-    if( is_valid )
-      this->m_AcceptedFileExtensions[ name ] = extensions;
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-bool cpPlugins::Interface::Parameters::
-ToXML( TiXmlElement* parent_elem ) const
-{
-  if( parent_elem == NULL )
-    return( false );
-
-  auto pIt = this->m_Parameters.begin( );
-  for( ; pIt != this->m_Parameters.end( ); ++pIt )
-  {
-    TiXmlElement* p = new TiXmlElement( "parameter" );
-    p->SetAttribute( "name", pIt->first.c_str( ) );
-    p->SetAttribute( "value", pIt->second.second.c_str( ) );
-    p->SetAttribute( "type", this->GetTypeAsString( pIt->first ).c_str( ) );
-    parent_elem->LinkEndChild( p );
-
-  } // rof
-  return( true );
-}
-
-// -------------------------------------------------------------------------
-bool cpPlugins::Interface::Parameters::
-FromXML( const TiXmlElement* filter_elem )
-{
-  const TiXmlElement* param = filter_elem->FirstChildElement( "parameter" );
-  bool ret = false;
-  while( param != NULL )
-  {
-    const char* param_name = param->Attribute( "name" );
-    const char* param_type = param->Attribute( "type" );
-    if( param_name != NULL && param_type != NULL )
-    {
-      TParameter value;
-      value.second = param->Attribute( "value" );
-      value.first = Self::GetTypeFromString( param_type );
-      this->m_Parameters[ param_name ] = value;
-
-    } // fi
-    param = param->NextSiblingElement( "parameter" );
-    ret = true;
-
-  } // elihw
-  this->Modified( );
-  return( ret );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::Parameters::
-Parameters( )
-  : Superclass( ),
-    m_Process( NULL )
-{
-  this->Clear( );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::Parameters::
-~Parameters( )
-{
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Parameters::
-PrintSelf( std::ostream& os, itk::Indent indent ) const
-{
-  TParameters::const_iterator i = this->m_Parameters.begin( );
-  for( ; i != this->m_Parameters.end( ); ++i )
-    os << indent
-       << i->first << ": ("
-       << i->second.first << " | "
-       << i->second.second << ")"
-       << std::endl;
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::Parameters::
-TParameters& cpPlugins::Interface::Parameters::
-GetRawParameters( )
-{
-  return( this->m_Parameters );
-}
-
-// -------------------------------------------------------------------------
-const cpPlugins::Interface::Parameters::
-TParameters& cpPlugins::Interface::Parameters::
-GetRawParameters( ) const
-{
-  return( this->m_Parameters );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/Parameters.h b/lib/cpPlugins/Interface/Parameters.h
deleted file mode 100644 (file)
index 3bf5d01..0000000
+++ /dev/null
@@ -1,304 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__PARAMETERS__H__
-#define __CPPLUGINS__INTERFACE__PARAMETERS__H__
-
-#include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
-
-#include <map>
-#include <ostream>
-#include <sstream>
-#include <string>
-#include <vector>
-
-#include <itkObject.h>
-#include <itkObjectFactory.h>
-
-// Some forward declarations
-class TiXmlElement;
-
-// -------------------------------------------------------------------------
-#define cpPlugins_Parameters_Configure( Y )                     \
-  void ConfigureAs##Y( const std::string& name )                \
-  {                                                             \
-    this->m_Parameters[ name ] = TParameter( Self::Y, "" );     \
-    this->Modified( );                                          \
-  }                                                             \
-  bool Has##Y( const std::string& name ) const                  \
-  {                                                             \
-    auto i = this->m_Parameters.find( name );                   \
-    if( i != this->m_Parameters.end( ) )                        \
-      return( i->second.first == Self::Y );                     \
-    else                                                        \
-      return( false );                                          \
-  }
-
-// -------------------------------------------------------------------------
-#define cpPlugins_Parameters_GetSet( Y )                                \
-  T##Y Get##Y( const std::string& name ) const                          \
-  {                                                                     \
-    auto i = this->m_Parameters.find( name );                           \
-    if( i != this->m_Parameters.end( ) )                                \
-    {                                                                   \
-      if( i->second.first == Self::Y )                                  \
-      {                                                                 \
-        if( typeid( T##Y ) != typeid( std::string ) )                   \
-        {                                                               \
-          std::istringstream tok_str( i->second.second );               \
-          T##Y v;                                                       \
-          tok_str >> v;                                                 \
-          return( v );                                                  \
-        }                                                               \
-        else                                                            \
-        {                                                               \
-          const T##Y* ptr =                                             \
-            reinterpret_cast< const T##Y* >(                            \
-              &( i->second.second )                                     \
-              );                                                        \
-          return( *ptr );                                               \
-        }                                                               \
-      }                                                                 \
-    }                                                                   \
-    return( T##Y( 0 ) );                                                \
-  }                                                                     \
-  void Set##Y( const std::string& name, const T##Y& v )                 \
-  {                                                                     \
-    auto i = this->m_Parameters.find( name );                           \
-    if( i != this->m_Parameters.end( ) )                                \
-    {                                                                   \
-      if( i->second.first == Self::Y )                                  \
-      {                                                                 \
-        if( typeid( T##Y ) != typeid( std::string ) )                   \
-        {                                                               \
-          std::stringstream str;                                        \
-          str << v;                                                     \
-          if( i->second.second != str.str( ) )                          \
-          {                                                             \
-            i->second.second = str.str( );                              \
-            this->Modified( );                                          \
-          }                                                             \
-        }                                                               \
-        else                                                            \
-        {                                                               \
-          const std::string* str =                                      \
-            reinterpret_cast< const std::string* >( &v );               \
-          if( i->second.second != *str )                                \
-          {                                                             \
-            i->second.second = *str;                                    \
-            this->Modified( );                                          \
-          }                                                             \
-        }                                                               \
-      }                                                                 \
-    }                                                                   \
-  }
-
-// -------------------------------------------------------------------------
-#define cpPlugins_Parameters_GetSetList( Y )                            \
-  std::vector< T##Y > Get##Y##List( const std::string& name ) const     \
-  {                                                                     \
-    std::vector< T##Y > lst;                                            \
-    std::vector< std::string >* slst =                                  \
-      reinterpret_cast< std::vector< std::string >* >( &lst );          \
-    auto i = this->m_Parameters.find( name );                           \
-    if( i != this->m_Parameters.end( ) )                                \
-    {                                                                   \
-      if( i->second.first == Self::Y##List )                            \
-      {                                                                 \
-        std::istringstream str( i->second.second );                     \
-        std::string token;                                              \
-        while( std::getline( str, token, '#' ) )                        \
-        {                                                               \
-          if( typeid( T##Y ) != typeid( std::string ) )                 \
-          {                                                             \
-            std::istringstream tok_str( token );                        \
-            T##Y v;                                                     \
-            tok_str >> v;                                               \
-            lst.push_back( v );                                         \
-          }                                                             \
-          else                                                          \
-            slst->push_back( token );                                   \
-        }                                                               \
-      }                                                                 \
-    }                                                                   \
-    return( lst );                                                      \
-  }                                                                     \
-  void AddTo##Y##List( const std::string& name, const T##Y& v )         \
-  {                                                                     \
-    auto i = this->m_Parameters.find( name );                           \
-    if( i != this->m_Parameters.end( ) )                                \
-    {                                                                   \
-      if( i->second.first == Self::Y##List )                            \
-      {                                                                 \
-        std::stringstream str;                                          \
-        if( i->second.second != "" )                                    \
-          str << i->second.second << "#";                               \
-        str << v;                                                       \
-        i->second.second = str.str( );                                  \
-        this->Modified( );                                              \
-      }                                                                 \
-    }                                                                   \
-  }                                                                     \
-  void Clear##Y##List( const std::string& name )                        \
-  {                                                                     \
-    auto i = this->m_Parameters.find( name );                           \
-    if( i != this->m_Parameters.end( ) )                                \
-    {                                                                   \
-      if( i->second.first == Self::Y##List )                            \
-      {                                                                 \
-        if( i->second.second != "" )                                    \
-        {                                                               \
-          i->second.second = "";                                        \
-          this->Modified( );                                            \
-        }                                                               \
-      }                                                                 \
-    }                                                                   \
-  }
-
-namespace cpPlugins
-{
-  namespace Interface
-  {
-    // Some forward declarations
-    class ProcessObject;
-    class ParametersQtDialog;
-
-    /**
-     */
-    class cpPlugins_Interface_EXPORT Parameters
-      : public itk::Object
-    {
-      friend class ParametersQtDialog;
-
-    public:
-      typedef Parameters                      Self;
-      typedef itk::Object                     Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-      enum Type
-      {
-        String       , Bool             , Int              ,
-        Uint         , Real             , OpenFileName     ,
-        SaveFileName , PathName         , StringList       ,
-        BoolList     , IntList          , UintList         ,
-        RealList     , OpenFileNameList , SaveFileNameList ,
-        PathNameList , Choices          , NoType
-      };
-
-      typedef bool          TBool;
-      typedef long          TInt;
-      typedef unsigned long TUint;
-      typedef double        TReal;
-      typedef std::string   TString;
-      typedef std::string   TOpenFileName;
-      typedef std::string   TSaveFileName;
-      typedef std::string   TPathName;
-
-      typedef std::pair< Self::Type, std::string > TParameter;
-      typedef std::map< std::string, TParameter >  TParameters;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( cpPlugins::Interface::Parameters, itk::Object );
-
-      cpPlugins_Parameters_Configure( String );
-      cpPlugins_Parameters_Configure( Bool );
-      cpPlugins_Parameters_Configure( Int );
-      cpPlugins_Parameters_Configure( Uint );
-      cpPlugins_Parameters_Configure( Real );
-      cpPlugins_Parameters_Configure( OpenFileName );
-      cpPlugins_Parameters_Configure( SaveFileName );
-      cpPlugins_Parameters_Configure( PathName );
-      cpPlugins_Parameters_Configure( StringList );
-      cpPlugins_Parameters_Configure( BoolList );
-      cpPlugins_Parameters_Configure( IntList );
-      cpPlugins_Parameters_Configure( UintList );
-      cpPlugins_Parameters_Configure( RealList );
-      cpPlugins_Parameters_Configure( OpenFileNameList );
-      cpPlugins_Parameters_Configure( SaveFileNameList );
-      cpPlugins_Parameters_Configure( PathNameList );
-      cpPlugins_Parameters_Configure( Choices );
-
-      cpPlugins_Parameters_GetSet( Bool );
-      cpPlugins_Parameters_GetSet( Int );
-      cpPlugins_Parameters_GetSet( Uint );
-      cpPlugins_Parameters_GetSet( Real );
-      cpPlugins_Parameters_GetSet( OpenFileName );
-      cpPlugins_Parameters_GetSet( SaveFileName );
-      cpPlugins_Parameters_GetSet( PathName );
-
-      cpPlugins_Parameters_GetSetList( String );
-      cpPlugins_Parameters_GetSetList( Bool );
-      cpPlugins_Parameters_GetSetList( Int );
-      cpPlugins_Parameters_GetSetList( Uint );
-      cpPlugins_Parameters_GetSetList( Real );
-      cpPlugins_Parameters_GetSetList( OpenFileName );
-      cpPlugins_Parameters_GetSetList( SaveFileName );
-      cpPlugins_Parameters_GetSetList( PathName );
-
-    public:
-      // To impact pipeline
-      virtual ProcessObject* GetProcessObject( );
-      virtual const ProcessObject* GetProcessObject( ) const;
-      virtual void SetProcessObject( ProcessObject* v );
-      virtual void Modified( ) const;
-
-      // Parameters container configuration
-      void Clear( );
-
-      // Get methods
-      void GetNames( std::vector< std::string >& container ) const;
-      Type GetType( const std::string& name ) const;
-      std::string GetTypeAsString( const std::string& name ) const;
-      static Type GetTypeFromString( const std::string& t );
-
-      // Base string methods
-      std::string GetString(
-        const std::string& name, bool force = true
-        ) const;
-      void SetString(
-        const std::string& name, const std::string& v, bool force = true
-        );
-
-      void ConfigureAsChoices(
-        const std::string& name, const std::vector< std::string >& choices
-        );
-      std::vector< std::string > GetChoices( const std::string& name ) const;
-      std::string GetSelectedChoice( const std::string& name ) const;
-      bool SetSelectedChoice(
-        const std::string& name, const std::string& choice
-        );
-
-      std::string GetAcceptedFileExtensions( const std::string& name ) const;
-      void SetAcceptedFileExtensions(
-        const std::string& name, const std::string& extensions
-        );
-
-      // XML "streaming"
-      bool ToXML( TiXmlElement* parent_elem ) const;
-      bool FromXML( const TiXmlElement* filter_elem );
-
-    protected:
-      Parameters( );
-      virtual ~Parameters( );
-      void PrintSelf( std::ostream& os, itk::Indent indent ) const;
-
-      TParameters& GetRawParameters( );
-      const TParameters& GetRawParameters( ) const;
-
-    private:
-      // Purposely not implemented
-      Parameters( const Self& other );
-      Self& operator=( const Self& other );
-
-    protected:
-      TParameters                          m_Parameters;
-      std::map< std::string, std::string > m_AcceptedFileExtensions;
-      ProcessObject*                       m_Process;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__INTERFACE__PARAMETERS__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/ParametersListWidget.cxx b/lib/cpPlugins/Interface/ParametersListWidget.cxx
deleted file mode 100644 (file)
index 4214ecd..0000000
+++ /dev/null
@@ -1,142 +0,0 @@
-#include <cpPlugins/Interface/ParametersListWidget.h>
-
-#ifdef cpPlugins_Interface_QT4
-
-#include <cpPlugins/Interface/ui_ParametersListWidget.h>
-
-#include <set>
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::ParametersListWidget::
-ParametersListWidget( const std::string& list_name, QWidget* parent )
-  : QWidget( parent ),
-    m_UI( new Ui::ParametersListWidget )
-{
-  this->m_UI->setupUi( this );
-
-  // Configure table
-  QTableWidget* table = this->m_UI->ValuesTable;
-  table->setColumnCount( 1 );
-  table->setRowCount( 1 );
-
-  QStringList header;
-  header << list_name.c_str( );
-  table->setHorizontalHeaderLabels( header );
-  table->setShowGrid( true );
-  table->setSelectionBehavior( QAbstractItemView::SelectRows );
-
-  // Connect signals
-  QObject::connect(
-    this->m_UI->AddValueButton, SIGNAL( clicked( ) ),
-    this, SLOT( _changeValuesCount( ) )
-    );
-  QObject::connect(
-    this->m_UI->RemoveValueButton, SIGNAL( clicked( ) ),
-    this, SLOT( _changeValuesCount( ) )
-    );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::ParametersListWidget::
-~ParametersListWidget( )
-{
-  delete this->m_UI;
-}
-
-// -------------------------------------------------------------------------
-std::vector< std::string > cpPlugins::Interface::ParametersListWidget::
-GetStringValues( ) const
-{
-  std::vector< std::string > values;
-
-  QTableWidget* table = this->m_UI->ValuesTable;
-  for( int i = 0; i < table->rowCount( ); ++i )
-    values.push_back( table->item( i, 0 )->text( ).toStdString( ) );
-  return( values );
-}
-
-// -------------------------------------------------------------------------
-std::vector< int > cpPlugins::Interface::ParametersListWidget::
-GetIntValues( ) const
-{
-  std::vector< int > values;
-
-  QTableWidget* table = this->m_UI->ValuesTable;
-  for( int i = 0; i < table->rowCount( ); ++i )
-  {
-    const char* text = table->item( i, 0 )->text( ).toStdString( ).c_str( );
-    char* ptr = 0;
-    double v = strtod( text, &ptr );
-    if( *ptr == '\0' && ptr != text )
-      values.push_back( int( v ) );
-
-  } // rof
-  return( values );
-}
-
-// -------------------------------------------------------------------------
-std::vector< unsigned int > cpPlugins::Interface::ParametersListWidget::
-GetUintValues( ) const
-{
-  std::vector< unsigned int > values;
-
-  QTableWidget* table = this->m_UI->ValuesTable;
-  for( int i = 0; i < table->rowCount( ); ++i )
-  {
-    const char* text = table->item( i, 0 )->text( ).toStdString( ).c_str( );
-    char* ptr = 0;
-    double v = strtod( text, &ptr );
-    if( *ptr == '\0' && ptr != text && v >= double( 0 ) )
-      values.push_back( ( unsigned int )( v ) );
-
-  } // rof
-  return( values );
-}
-
-// -------------------------------------------------------------------------
-std::vector< double > cpPlugins::Interface::ParametersListWidget::
-GetDoubleValues( ) const
-{
-  std::vector< double > values;
-
-  QTableWidget* table = this->m_UI->ValuesTable;
-  for( int i = 0; i < table->rowCount( ); ++i )
-  {
-    const char* text = table->item( i, 0 )->text( ).toStdString( ).c_str( );
-    char* ptr = 0;
-    double v = strtod( text, &ptr );
-    if( *ptr == '\0' && ptr != text )
-      values.push_back( v );
-
-  } // rof
-  return( values );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::ParametersListWidget::
-_changeValuesCount( )
-{
-  QPushButton* btn = dynamic_cast< QPushButton* >( this->sender( ) );
-  if( btn == NULL )
-    return;
-  QTableWidget* table = this->m_UI->ValuesTable;
-
-  if( btn == this->m_UI->RemoveValueButton )
-  {
-    std::set< int > to_delete;
-    QList< QTableWidgetItem* > lst = table->selectedItems( );
-    QList< QTableWidgetItem* >::iterator i = lst.begin( );
-    for( ; i != lst.end( ); ++i )
-      to_delete.insert( ( *i )->row( ) );
-
-    std::set< int >::const_reverse_iterator d = to_delete.rbegin( );
-    for( ; d != to_delete.rend( ); ++d )
-      table->removeRow( *d );
-  }
-  else
-    table->insertRow( table->rowCount( ) );
-}
-
-#endif // cpPlugins_Interface_QT4
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/ParametersListWidget.h b/lib/cpPlugins/Interface/ParametersListWidget.h
deleted file mode 100644 (file)
index 60133e3..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__PARAMETERSLISTWIDGET__H__
-#define __CPPLUGINS__INTERFACE__PARAMETERSLISTWIDGET__H__
-
-#include <cpPlugins/Interface/Config.h>
-
-#ifdef cpPlugins_Interface_QT4
-
-#include <vector>
-#include <QWidget>
-
-// -------------------------------------------------------------------------
-namespace Ui
-{
-  class ParametersListWidget;
-}
-
-// -------------------------------------------------------------------------
-/**
- */
-namespace cpPlugins
-{
-  namespace Interface
-  {
-    class ParametersListWidget
-      : public QWidget
-    {
-      Q_OBJECT;
-
-    public:
-
-    public:
-      explicit ParametersListWidget(
-        const std::string& list_name, QWidget* parent = 0
-        );
-      virtual ~ParametersListWidget( );
-
-      std::vector< std::string > GetStringValues( ) const;
-      std::vector< int > GetIntValues( ) const;
-      std::vector< unsigned int > GetUintValues( ) const;
-      std::vector< double > GetDoubleValues( ) const;
-
-    private slots:
-      void _changeValuesCount( );
-
-    private:
-      Ui::ParametersListWidget* m_UI;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // cpPlugins_Interface_QT4
-
-#endif // __CPPLUGINS__INTERFACE__PARAMETERSLISTWIDGET__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/ParametersListWidget.ui b/lib/cpPlugins/Interface/ParametersListWidget.ui
deleted file mode 100644 (file)
index 688029c..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>ParametersListWidget</class>
- <widget class="QWidget" name="ParametersListWidget">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>230</width>
-    <height>310</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>Form</string>
-  </property>
-  <layout class="QVBoxLayout" name="verticalLayout">
-   <item>
-    <widget class="QTableWidget" name="ValuesTable"/>
-   </item>
-   <item>
-    <layout class="QHBoxLayout" name="horizontalLayout">
-     <item>
-      <widget class="QPushButton" name="RemoveValueButton">
-       <property name="text">
-        <string>-</string>
-       </property>
-      </widget>
-     </item>
-     <item>
-      <widget class="QPushButton" name="AddValueButton">
-       <property name="text">
-        <string>+</string>
-       </property>
-      </widget>
-     </item>
-    </layout>
-   </item>
-  </layout>
- </widget>
- <resources/>
- <connections/>
-</ui>
diff --git a/lib/cpPlugins/Interface/ParametersQtDialog.cxx b/lib/cpPlugins/Interface/ParametersQtDialog.cxx
deleted file mode 100644 (file)
index 409f4e7..0000000
+++ /dev/null
@@ -1,858 +0,0 @@
-#include <cpPlugins/Interface/ParametersQtDialog.h>
-
-#ifdef cpPlugins_Interface_QT4
-
-#include <limits>
-
-#include <cpPlugins/Interface/ProcessObject.h>
-
-#include <QCheckBox>
-#include <QComboBox>
-#include <QDoubleSpinBox>
-#include <QFileDialog>
-#include <QHBoxLayout>
-#include <QInputDialog>
-#include <QLineEdit>
-#include <QPushButton>
-#include <QWidget>
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::ParametersQtDialog::
-ParametersQtDialog( QWidget* parent, Qt::WindowFlags f )
-  : QDialog( parent, f ),
-    m_Parameters( NULL ),
-    m_WidgetsUpdated( false )
-{
-  this->m_Title = new QLabel( this );
-  this->m_Title->setText( "Parameters dialog title" );
-
-  this->m_MainLayout = new QGridLayout( this );
-  this->m_ToolsLayout = new QVBoxLayout( );
-  this->m_ToolsLayout->addWidget( this->m_Title );
-  this->m_MainLayout->addLayout( this->m_ToolsLayout, 0, 0, 1, 1 );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::ParametersQtDialog::
-~ParametersQtDialog( )
-{
-  delete this->m_Title;
-  delete this->m_ToolsLayout;
-  delete this->m_MainLayout;
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::
-Parameters* cpPlugins::Interface::ParametersQtDialog::
-getParameters( ) const
-{
-  return( this->m_Parameters );
-}
-
-// -------------------------------------------------------------------------
-bool cpPlugins::Interface::ParametersQtDialog::
-setParameters( Parameters* parameters )
-{
-  if( this->m_Parameters != NULL || parameters == NULL )
-    return( false );
-  this->m_Parameters = parameters;
-  this->m_WidgetsUpdated = false;
-  return( true );
-}
-
-// -------------------------------------------------------------------------
-int cpPlugins::Interface::ParametersQtDialog::
-exec( )
-{
-  this->_updateWidgets( );
-  this->updateView( );
-
-  int ret = this->QDialog::exec( );
-  if( ret == 1 )
-    this->updateParameters( );
-  else
-    this->updateView( );
-  return( ret );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::ParametersQtDialog::
-updateParameters( )
-{
-  if( this->m_Parameters == NULL )
-    return;
-
-  // Put values
-  auto& raw_params = this->m_Parameters->GetRawParameters( );
-  for( auto pIt = raw_params.begin( ); pIt != raw_params.end( ); ++pIt )
-  {
-    QString pName = pIt->first.c_str( );
-    switch( pIt->second.first )
-    {
-    case Parameters::String:
-    case Parameters::OpenFileName:
-    case Parameters::SaveFileName:
-    case Parameters::PathName:
-    case Parameters::IntList:
-    case Parameters::UintList:
-    case Parameters::RealList:
-    case Parameters::OpenFileNameList:
-    {
-      QLineEdit* v_string = this->findChild< QLineEdit* >( pName );
-      if( v_string != NULL )
-        pIt->second.second = v_string->text( ).toStdString( );
-    }
-    break;
-    case Parameters::Bool:
-    {
-      QCheckBox* v_bool = this->findChild< QCheckBox* >( pName );
-      if( v_bool != NULL )
-        pIt->second.second = ( v_bool->isChecked( ) )? "1": "0";
-    }
-    break;
-    case Parameters::Int:
-    case Parameters::Uint:
-    {
-      QSpinBox* v_uint = this->findChild< QSpinBox* >( pName );
-      if( v_uint )
-      {
-        std::stringstream str;
-        str << v_uint->value( );
-        pIt->second.second = str.str( );
-
-      } // fi
-    }
-    break;
-    case Parameters::Real:
-    {
-      QDoubleSpinBox* v_double = this->findChild< QDoubleSpinBox* >( pName );
-      if( v_double )
-      {
-        std::stringstream str;
-        str << v_double->value( );
-        pIt->second.second = str.str( );
-
-      } // fi
-    }
-    break;
-    case Parameters::StringList:
-      break;
-    case Parameters::BoolList:
-      break;
-    case Parameters::SaveFileNameList:
-      break;
-    case Parameters::PathNameList:
-      break;
-    case Parameters::Choices:
-    {
-      QComboBox* v_choices = this->findChild< QComboBox* >( pName );
-      if( v_choices != NULL )
-      {
-        std::istringstream str_choices( pIt->second.second );
-        std::string real_choices;
-        std::getline( str_choices, real_choices, '@' );
-        pIt->second.second =
-          real_choices + "@" +
-          v_choices->currentText( ).toStdString( );
-
-      } // fi
-    }
-    break;
-    default:
-      break;
-    } // hctiws
-
-  } // rof
-  this->m_Parameters->Modified( );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::ParametersQtDialog::
-updateView( )
-{
-  if( this->m_Parameters == NULL )
-    return;
-
-  // Put values
-  auto& raw_params = this->m_Parameters->GetRawParameters( );
-  for( auto pIt = raw_params.begin( ); pIt != raw_params.end( ); ++pIt )
-  {
-    QString pName = pIt->first.c_str( );
-    switch( pIt->second.first )
-    {
-    case Parameters::String:
-    case Parameters::OpenFileName:
-    case Parameters::SaveFileName:
-    case Parameters::PathName:
-    case Parameters::IntList:
-    case Parameters::UintList:
-    case Parameters::RealList:
-    case Parameters::OpenFileNameList:
-    {
-      QLineEdit* v_string = this->findChild< QLineEdit* >( pName );
-      if( v_string != NULL )
-        v_string->setText( pIt->second.second.c_str( ) );
-    }
-    break;
-    case Parameters::Bool:
-    {
-      QCheckBox* v_bool = this->findChild< QCheckBox* >( pName );
-      if( v_bool != NULL )
-        v_bool->setChecked( pIt->second.second == "1" );
-    }
-    break;
-    case Parameters::Int:
-    case Parameters::Uint:
-    {
-      QSpinBox* v_uint = this->findChild< QSpinBox* >( pName );
-      if( v_uint )
-      {
-        std::istringstream tok_str( pIt->second.second );
-        int v;
-        tok_str >> v;
-        v_uint->setValue( v );
-
-      } // fi
-    }
-    break;
-    case Parameters::Real:
-    {
-      QDoubleSpinBox* v_double = this->findChild< QDoubleSpinBox* >( pName );
-      if( v_double )
-      {
-        std::istringstream tok_str( pIt->second.second );
-        double v;
-        tok_str >> v;
-        v_double->setValue( v );
-
-      } // fi
-    }
-    break;
-    case Parameters::StringList:
-      break;
-    case Parameters::BoolList:
-      break;
-    case Parameters::SaveFileNameList:
-      break;
-    case Parameters::PathNameList:
-      break;
-    case Parameters::Choices:
-    {
-      QComboBox* v_choices = this->findChild< QComboBox* >( pName );
-      if( v_choices != NULL )
-      {
-        std::istringstream str_choices( pIt->second.second );
-        std::string choices, real_choice;
-        std::getline( str_choices, choices, '@' );
-        std::getline( str_choices, real_choice, '@' );
-        std::istringstream str( choices );
-        std::string token;
-        int id = -1, cont = 0;
-        while( std::getline( str, token, '#' ) )
-        {
-          if( token == real_choice )
-            id = cont;
-          cont++;
-
-        } // elihw
-
-        if( id > -1 )
-          v_choices->setCurrentIndex( id );
-
-      } // fi
-    }
-    break;
-    default:
-      break;
-    } // hctiws
-
-  } // rof
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::ParametersQtDialog::
-_addButtons( )
-{
-  // Add buttons
-  this->m_Buttons = new QDialogButtonBox(
-    QDialogButtonBox::Ok | QDialogButtonBox::Cancel
-    );
-  this->connect(
-    this->m_Buttons, SIGNAL( accepted( ) ), this, SLOT( accept( ) )
-    );
-  this->connect(
-    this->m_Buttons, SIGNAL( rejected( ) ), this, SLOT( reject( ) )
-    );
-  this->m_ToolsLayout->addWidget( this->m_Buttons );
-
-  this->updateView( );
-  this->m_WidgetsUpdated = true;
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::ParametersQtDialog::
-_updateWidgets( )
-{
-  if( this->m_WidgetsUpdated || this->m_Parameters == NULL )
-    return;
-
-  // Set dialog title
-  auto filter = this->m_Parameters->GetProcessObject( );
-  std::stringstream title;
-  title
-    << "Parameters for an object of class \""
-    << filter->GetClassName( )
-    << "\"";
-  this->m_Title->setText( title.str( ).c_str( ) );
-
-  // Put values
-  auto& raw_params = this->m_Parameters->GetRawParameters( );
-  for( auto pIt = raw_params.begin( ); pIt != raw_params.end( ); ++pIt )
-  {
-    QWidget* w_input = NULL;
-    switch( pIt->second.first )
-    {
-    case Parameters::String:
-    {
-      QLineEdit* v_string = new QLineEdit( this );
-      v_string->setObjectName( pIt->first.c_str( ) );
-      v_string->setText( pIt->second.second.c_str( ) );
-      w_input = v_string;
-    }
-    break;
-    case Parameters::Bool:
-    {
-      QCheckBox* v_bool = new QCheckBox( this );
-      v_bool->setObjectName( pIt->first.c_str( ) );
-      v_bool->setText( "[ON/OFF]" );
-      v_bool->setChecked( pIt->second.second == "1" );
-      w_input = v_bool;
-    }
-    break;
-    case Parameters::Int:
-    case Parameters::Uint:
-    {
-      std::istringstream tok_str( pIt->second.second );
-      int v;
-      tok_str >> v;
-      QSpinBox* v_uint = new QSpinBox( this );
-      v_uint->setObjectName( pIt->first.c_str( ) );
-      if( pIt->second.first == Parameters::Uint )
-        v_uint->setMinimum( 0 );
-      else
-        v_uint->setMinimum( -std::numeric_limits< int >::max( ) );
-      v_uint->setMaximum( std::numeric_limits< int >::max( ) );
-      v_uint->setValue( v );
-      w_input = v_uint;
-    }
-    break;
-    case Parameters::Real:
-    {
-      std::istringstream tok_str( pIt->second.second );
-      double v;
-      tok_str >> v;
-      QDoubleSpinBox* v_double = new QDoubleSpinBox( this );
-      v_double->setObjectName( pIt->first.c_str( ) );
-      v_double->setDecimals( 3 );
-      v_double->setMinimum( -std::numeric_limits< double >::max( ) );
-      v_double->setMaximum(  std::numeric_limits< double >::max( ) );
-      v_double->setValue( v );
-      w_input = v_double;
-    }
-    break;
-    case Parameters::OpenFileName:
-    {
-      QFrame* frame = new QFrame( this );
-      QHBoxLayout* layout = new QHBoxLayout( frame );
-      QLineEdit* v_string = new QLineEdit( frame );
-      v_string->setObjectName( pIt->first.c_str( ) );
-      v_string->setText( pIt->second.second.c_str( ) );
-      QPushButton* v_button = new QPushButton( frame );
-      v_button->setObjectName( ( pIt->first + "_=?btn" ).c_str( ) );
-      v_button->setText( "..." );
-      v_button->connect(
-        v_button, SIGNAL( clicked( ) ),
-        this, SLOT( _dlg_OpenSingleFile( ) )
-        );
-      layout->addWidget( v_string );
-      layout->addWidget( v_button );
-      w_input = frame;
-    }
-    case Parameters::SaveFileName:
-    {
-      QFrame* frame = new QFrame( this );
-      QHBoxLayout* layout = new QHBoxLayout( frame );
-      QLineEdit* v_string = new QLineEdit( frame );
-      v_string->setObjectName( pIt->first.c_str( ) );
-      v_string->setText( pIt->second.second.c_str( ) );
-      QPushButton* v_button = new QPushButton( frame );
-      v_button->setObjectName( ( pIt->first + "_=?btn" ).c_str( ) );
-      v_button->setText( "..." );
-      v_button->connect(
-        v_button, SIGNAL( clicked( ) ),
-        this, SLOT( _dlg_SaveSingleFile( ) )
-        );
-      layout->addWidget( v_string );
-      layout->addWidget( v_button );
-      w_input = frame;
-    }
-    break;
-    case Parameters::PathName:
-    {
-      QFrame* frame = new QFrame( this );
-      QHBoxLayout* layout = new QHBoxLayout( frame );
-      QLineEdit* v_string = new QLineEdit( frame );
-      v_string->setObjectName( pIt->first.c_str( ) );
-      v_string->setText( pIt->second.second.c_str( ) );
-      QPushButton* v_button = new QPushButton( frame );
-      v_button->setObjectName( ( pIt->first + "_=?btn" ).c_str( ) );
-      v_button->setText( "..." );
-      v_button->connect(
-        v_button, SIGNAL( clicked( ) ),
-        this, SLOT( _dlg_OpenSinglePath( ) )
-        );
-      layout->addWidget( v_string );
-      layout->addWidget( v_button );
-      w_input = frame;
-    }
-    break;
-    case Parameters::StringList:
-      break;
-    case Parameters::BoolList:
-      break;
-    case Parameters::IntList:
-    {
-      QFrame* frame = new QFrame( this );
-      QHBoxLayout* layout = new QHBoxLayout( frame );
-      QLineEdit* v_string = new QLineEdit( frame );
-      v_string->setObjectName( pIt->first.c_str( ) );
-      v_string->setText( pIt->second.second.c_str( ) );
-      QPushButton* v_button = new QPushButton( frame );
-      v_button->setObjectName( ( pIt->first + "_=?btn" ).c_str( ) );
-      v_button->setText( "+" );
-      v_button->connect(
-        v_button, SIGNAL( clicked( ) ),
-        this, SLOT( _dlg_AddInt( ) )
-        );
-      layout->addWidget( v_string );
-      layout->addWidget( v_button );
-      w_input = frame;
-    }
-    break;
-    case Parameters::UintList:
-    {
-      QFrame* frame = new QFrame( this );
-      QHBoxLayout* layout = new QHBoxLayout( frame );
-      QLineEdit* v_string = new QLineEdit( frame );
-      v_string->setObjectName( pIt->first.c_str( ) );
-      v_string->setText( pIt->second.second.c_str( ) );
-      QPushButton* v_button = new QPushButton( frame );
-      v_button->setObjectName( ( pIt->first + "_=?btn" ).c_str( ) );
-      v_button->setText( "+" );
-      v_button->connect(
-        v_button, SIGNAL( clicked( ) ),
-        this, SLOT( _dlg_AddUint( ) )
-        );
-      layout->addWidget( v_string );
-      layout->addWidget( v_button );
-      w_input = frame;
-    }
-    break;
-    case Parameters::RealList:
-    {
-      QFrame* frame = new QFrame( this );
-      QHBoxLayout* layout = new QHBoxLayout( frame );
-      QLineEdit* v_string = new QLineEdit( frame );
-      v_string->setObjectName( pIt->first.c_str( ) );
-      v_string->setText( pIt->second.second.c_str( ) );
-      QPushButton* v_button = new QPushButton( frame );
-      v_button->setObjectName( ( pIt->first + "_=?btn" ).c_str( ) );
-      v_button->setText( "+" );
-      v_button->connect(
-        v_button, SIGNAL( clicked( ) ),
-        this, SLOT( _dlg_AddReal( ) )
-        );
-      layout->addWidget( v_string );
-      layout->addWidget( v_button );
-      w_input = frame;
-    }
-    break;
-    case Parameters::OpenFileNameList:
-    {
-      QFrame* frame = new QFrame( this );
-      QHBoxLayout* layout = new QHBoxLayout( frame );
-      QLineEdit* v_string = new QLineEdit( frame );
-      v_string->setObjectName( pIt->first.c_str( ) );
-      v_string->setMaxLength( std::numeric_limits< int >::max( ) );
-      v_string->setText( pIt->second.second.c_str( ) );
-      QPushButton* v_button = new QPushButton( frame );
-      v_button->setObjectName( ( pIt->first + "_=?btn" ).c_str( ) );
-      v_button->setText( "..." );
-      v_button->connect(
-        v_button, SIGNAL( clicked( ) ),
-        this, SLOT( _dlg_OpenMultipleFiles( ) )
-        );
-      layout->addWidget( v_string );
-      layout->addWidget( v_button );
-      w_input = frame;
-    }
-    break;
-    case Parameters::SaveFileNameList:
-      break;
-    case Parameters::PathNameList:
-      break;
-    case Parameters::Choices:
-    {
-      QComboBox* v_choices = new QComboBox( this );
-      v_choices->setObjectName( pIt->first.c_str( ) );
-
-      std::istringstream str0( pIt->second.second );
-      std::string choices;
-      std::getline( str0, choices, '@' );
-      std::istringstream str1( choices );
-      std::string token;
-      int id = 0;
-      while( std::getline( str1, token, '#' ) )
-        v_choices->insertItem( id++, token.c_str( ) );
-      w_input = v_choices;
-    }
-    break;
-    default:
-      w_input = NULL;
-      break;
-    } // hctiws
-
-    // Ok, a representation was created
-    if( w_input != NULL )
-    {
-      QHBoxLayout* new_layout = new QHBoxLayout( );
-      QLabel* label = new QLabel( this );
-      label->setText( QString( pIt->first.c_str( ) ) );
-      new_layout->addWidget( label );
-      new_layout->addWidget( w_input );
-      this->m_ToolsLayout->addLayout( new_layout );
-
-    } // fi
-
-  } // rof
-
-  // Update values
-  this->_addButtons( );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::ParametersQtDialog::
-_dlg_OpenSingleFile( )
-{
-  QPushButton* btn = dynamic_cast< QPushButton* >( this->sender( ) );
-  if( btn != NULL )
-  {
-    std::string bName = btn->objectName( ).toStdString( );
-    std::string line_name = bName.substr( 0, bName.find( "_=?btn" ) );
-    QLineEdit* line = this->findChild< QLineEdit* >( line_name.c_str( ) );
-    if( line != NULL )
-    {
-      std::string param_name = line->objectName( ).toStdString( );
-      if( param_name != "" )
-      {
-        std::string param_value =
-          this->m_Parameters->GetOpenFileName( param_name );
-        if( param_value == "" )
-          param_value = ".";
-        QStringList dialog_filters;
-        std::string extensions =
-          this->m_Parameters->GetAcceptedFileExtensions( param_name );
-        if( extensions != "" )
-          dialog_filters << extensions.c_str( );
-        dialog_filters << "Any file (*)";
-
-        // Show dialog and check if it was accepted
-        QFileDialog dialog( this );
-        dialog.setFileMode( QFileDialog::ExistingFile );
-        dialog.setDirectory( QFileDialog::tr( param_value.c_str( ) ) );
-        dialog.setNameFilters( dialog_filters );
-        dialog.setAcceptMode( QFileDialog::AcceptOpen );
-        if( dialog.exec( ) )
-          line->setText( *( dialog.selectedFiles( ).begin( ) ) );
-
-      } // fi
-
-    } // fi
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::ParametersQtDialog::
-_dlg_SaveSingleFile( )
-{
-  QPushButton* btn = dynamic_cast< QPushButton* >( this->sender( ) );
-  if( btn != NULL )
-  {
-    std::string bName = btn->objectName( ).toStdString( );
-    std::string line_name = bName.substr( 0, bName.find( "_=?btn" ) );
-    QLineEdit* line = this->findChild< QLineEdit* >( line_name.c_str( ) );
-    if( line != NULL )
-    {
-      std::string param_name = line->objectName( ).toStdString( );
-      if( param_name != "" )
-      {
-        std::string param_value =
-          this->m_Parameters->GetSaveFileName( param_name );
-        if( param_value == "" )
-          param_value = ".";
-        QStringList dialog_filters;
-        std::string extensions =
-          this->m_Parameters->GetAcceptedFileExtensions( param_name );
-        if( extensions != "" )
-          dialog_filters << extensions.c_str( );
-        dialog_filters << "Any file (*)";
-
-        // Show dialog and check if it was accepted
-        QFileDialog dialog( this );
-        dialog.setFileMode( QFileDialog::AnyFile );
-        dialog.setDirectory( QFileDialog::tr( param_value.c_str( ) ) );
-        dialog.setNameFilters( dialog_filters );
-        dialog.setAcceptMode( QFileDialog::AcceptSave );
-        if( dialog.exec( ) )
-          line->setText( *( dialog.selectedFiles( ).begin( ) ) );
-
-      } // fi
-
-    } // fi
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::ParametersQtDialog::
-_dlg_OpenSinglePath( )
-{
-  QPushButton* btn = dynamic_cast< QPushButton* >( this->sender( ) );
-  if( btn != NULL )
-  {
-    std::string bName = btn->objectName( ).toStdString( );
-    std::string line_name = bName.substr( 0, bName.find( "_=?btn" ) );
-    QLineEdit* line = this->findChild< QLineEdit* >( line_name.c_str( ) );
-    if( line != NULL )
-    {
-      std::string param_name = line->objectName( ).toStdString( );
-      if( param_name != "" )
-      {
-        std::string param_value =
-          this->m_Parameters->GetPathName( param_name );
-        if( param_value == "" )
-          param_value = ".";
-
-        // Show dialog and check if it was accepted
-        QFileDialog dialog( this );
-        dialog.setFileMode( QFileDialog::Directory );
-        dialog.setDirectory( QFileDialog::tr( param_value.c_str( ) ) );
-        dialog.setAcceptMode( QFileDialog::AcceptOpen );
-        if( dialog.exec( ) )
-          line->setText( *( dialog.selectedFiles( ).begin( ) ) );
-
-      } // fi
-
-    } // fi
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::ParametersQtDialog::
-_dlg_OpenMultipleFiles( )
-{
-  QPushButton* btn = dynamic_cast< QPushButton* >( this->sender( ) );
-  if( btn != NULL )
-  {
-    std::string bName = btn->objectName( ).toStdString( );
-    std::string line_name = bName.substr( 0, bName.find( "_=?btn" ) );
-
-    QLineEdit* line = this->findChild< QLineEdit* >( line_name.c_str( ) );
-    if( line != NULL )
-    {
-      std::string param_name = line->objectName( ).toStdString( );
-      if( param_name != "" )
-      {
-        QStringList dialog_filters;
-        std::string extensions =
-          this->m_Parameters->GetAcceptedFileExtensions( param_name );
-        if( extensions != "" )
-          dialog_filters << extensions.c_str( );
-        dialog_filters << "Any file (*)";
-
-        // Show dialog and check if it was accepted
-        QFileDialog dialog( this );
-        dialog.setFileMode( QFileDialog::ExistingFiles );
-        dialog.setNameFilters( dialog_filters );
-        dialog.setAcceptMode( QFileDialog::AcceptOpen );
-        if( dialog.exec( ) )
-        {
-          if( dialog.selectedFiles( ).size( ) > 0 )
-          {
-            std::stringstream str;
-            auto files = dialog.selectedFiles( );
-            auto fIt = files.begin( );
-            str << fIt->toStdString( );
-            ++fIt;
-            for( ; fIt != files.end( ); ++fIt )
-              str << "#" << fIt->toStdString( );
-            line->setText( str.str( ).c_str( ) );
-
-          } // fi
-
-        } // fi
-
-      } // fi
-
-    } // fi
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::ParametersQtDialog::
-_dlg_AddInt( )
-{
-  QPushButton* btn = dynamic_cast< QPushButton* >( this->sender( ) );
-  if( btn != NULL )
-  {
-    std::string bName = btn->objectName( ).toStdString( );
-    std::string line_name = bName.substr( 0, bName.find( "_=?btn" ) );
-    QLineEdit* line = this->findChild< QLineEdit* >( line_name.c_str( ) );
-    if( line != NULL )
-    {
-      std::string param_name = line->objectName( ).toStdString( );
-      if( param_name != "" )
-      {
-        bool ok;
-        int value =
-          QInputDialog::getInt(
-            this,
-            (
-              std::string( "Add new value to \"" ) +
-              param_name +
-              std::string( "\"" )
-              ).c_str( ),
-            "Value:",
-            0,
-            -std::numeric_limits< int >::max( ),
-            std::numeric_limits< int >::max( ),
-            1, &ok
-            );
-        if( ok )
-        {
-          std::string values = line->text( ).toStdString( );
-          if( values != "" )
-            values += "#";
-          std::stringstream str;
-          str << values << value;
-          line->setText( str.str( ).c_str( ) );
-
-        } // fi
-
-      } // fi
-
-    } // fi
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::ParametersQtDialog::
-_dlg_AddUint( )
-{
-  QPushButton* btn = dynamic_cast< QPushButton* >( this->sender( ) );
-  if( btn != NULL )
-  {
-    std::string bName = btn->objectName( ).toStdString( );
-    std::string line_name = bName.substr( 0, bName.find( "_=?btn" ) );
-    QLineEdit* line = this->findChild< QLineEdit* >( line_name.c_str( ) );
-    if( line != NULL )
-    {
-      std::string param_name = line->objectName( ).toStdString( );
-      if( param_name != "" )
-      {
-        bool ok;
-        int value =
-          QInputDialog::getInt(
-            this,
-            (
-              std::string( "Add new value to \"" ) +
-              param_name +
-              std::string( "\"" )
-              ).c_str( ),
-            "Value:",
-            0, 0, std::numeric_limits< int >::max( ), 1,
-            &ok
-            );
-        if( ok )
-        {
-          std::string values = line->text( ).toStdString( );
-          if( values != "" )
-            values += "#";
-          std::stringstream str;
-          str << values << value;
-          line->setText( str.str( ).c_str( ) );
-
-        } // fi
-
-      } // fi
-
-    } // fi
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::ParametersQtDialog::
-_dlg_AddReal( )
-{
-  QPushButton* btn = dynamic_cast< QPushButton* >( this->sender( ) );
-  if( btn != NULL )
-  {
-    std::string bName = btn->objectName( ).toStdString( );
-    std::string line_name = bName.substr( 0, bName.find( "_=?btn" ) );
-    QLineEdit* line = this->findChild< QLineEdit* >( line_name.c_str( ) );
-    if( line != NULL )
-    {
-      std::string param_name = line->objectName( ).toStdString( );
-      if( param_name != "" )
-      {
-        bool ok;
-        double value =
-          QInputDialog::getDouble(
-            this,
-            (
-              std::string( "Add new value to \"" ) +
-              param_name +
-              std::string( "\"" )
-              ).c_str( ),
-            "Value:",
-            0,
-            -std::numeric_limits< double >::max( ),
-            std::numeric_limits< double >::max( ),
-            1, &ok
-            );
-        if( ok )
-        {
-          std::string values = line->text( ).toStdString( );
-          if( values != "" )
-            values += "#";
-          std::stringstream str;
-          str << values << value;
-          line->setText( str.str( ).c_str( ) );
-
-        } // fi
-
-      } // fi
-
-    } // fi
-
-  } // fi
-}
-
-#endif // cpPlugins_Interface_QT4
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/ParametersQtDialog.h b/lib/cpPlugins/Interface/ParametersQtDialog.h
deleted file mode 100644 (file)
index 04b76ed..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__PARAMETERSQTDIALOG__H__
-#define __CPPLUGINS__INTERFACE__PARAMETERSQTDIALOG__H__
-
-#include <cpPlugins/Interface/Config.h>
-
-#ifdef cpPlugins_Interface_QT4
-
-#include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
-#include <cpPlugins/Interface/Parameters.h>
-
-#include <set>
-
-#include <QDialog>
-#include <QDialogButtonBox>
-#include <QGridLayout>
-#include <QLabel>
-#include <QVBoxLayout>
-
-namespace cpPlugins
-{
-  namespace Interface
-  {
-    /**
-     */
-    class cpPlugins_Interface_EXPORT ParametersQtDialog
-      : public QDialog
-    {
-      Q_OBJECT;
-
-    public:
-      ParametersQtDialog( QWidget* parent = 0, Qt::WindowFlags f = 0 );
-      virtual ~ParametersQtDialog( );
-
-      Parameters* getParameters( ) const;
-      bool setParameters( Parameters* parameters );
-
-      virtual int exec( );
-
-      virtual void updateParameters( );
-      virtual void updateView( );
-
-    protected:
-      virtual void _addButtons( );
-      virtual void _updateWidgets( );
-
-    protected slots:
-      virtual void _dlg_OpenSingleFile( );
-      virtual void _dlg_SaveSingleFile( );
-      virtual void _dlg_OpenSinglePath( );
-      virtual void _dlg_OpenMultipleFiles( );
-      virtual void _dlg_AddInt( );
-      virtual void _dlg_AddUint( );
-      virtual void _dlg_AddReal( );
-
-    protected:
-      Parameters* m_Parameters;
-      bool m_WidgetsUpdated;
-      QLabel* m_Title;
-      QGridLayout* m_MainLayout;
-      QVBoxLayout* m_ToolsLayout;
-      QDialogButtonBox* m_Buttons;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // cpPlugins_Interface_QT4
-
-#endif // __CPPLUGINS__INTERFACE__PARAMETERSQTDIALOG__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/PointList.cxx b/lib/cpPlugins/Interface/PointList.cxx
deleted file mode 100644 (file)
index 69acc92..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#include <cpPlugins/Interface/PointList.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::PointList::
-PointList( )
-  : Superclass( )
-{
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::PointList::
-~PointList( )
-{
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/PointList.h b/lib/cpPlugins/Interface/PointList.h
deleted file mode 100644 (file)
index 286825c..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__POINTLIST__H__
-#define __CPPLUGINS__INTERFACE__POINTLIST__H__
-
-#include <cpPlugins/Interface/DataObject.h>
-
-namespace cpPlugins
-{
-  namespace Interface
-  {
-    /**
-     */
-    class cpPlugins_Interface_EXPORT PointList
-      : public DataObject
-    {
-    public:
-      typedef PointList                       Self;
-      typedef DataObject                      Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( PointList, DataObject );
-      cpPlugins_Id_Macro( PointList, DataObject );
-
-    protected:
-      PointList( );
-      virtual ~PointList( );
-
-    private:
-      // Purposely not implemented
-      PointList( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#include <cpPlugins/Interface/PointList.hxx>
-
-#endif // __CPPLUGINS__INTERFACE__POINTLIST__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/PointList.hxx b/lib/cpPlugins/Interface/PointList.hxx
deleted file mode 100644 (file)
index 651e4cd..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__POINTLIST__HXX__
-#define __CPPLUGINS__INTERFACE__POINTLIST__HXX__
-
-// TODO: erase this file
-
-#endif // __CPPLUGINS__INTERFACE__POINTLIST__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/PolyLineParametricPath.cxx b/lib/cpPlugins/Interface/PolyLineParametricPath.cxx
deleted file mode 100644 (file)
index 9f4bdde..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#include <cpPlugins/Interface/PolyLineParametricPath.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::PolyLineParametricPath::
-PolyLineParametricPath( )
-  : Superclass( )
-{
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::PolyLineParametricPath::
-~PolyLineParametricPath( )
-{
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/PolyLineParametricPath.h b/lib/cpPlugins/Interface/PolyLineParametricPath.h
deleted file mode 100644 (file)
index 47c793d..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__POLYLINEPARAMETRICPATH__H__
-#define __CPPLUGINS__INTERFACE__POLYLINEPARAMETRICPATH__H__
-
-#include <cpPlugins/Interface/DataObject.h>
-#include <itkPolyLineParametricPath.h>
-
-namespace cpPlugins
-{
-  namespace Interface
-  {
-    /**
-     */
-    class cpPlugins_Interface_EXPORT PolyLineParametricPath
-      : public DataObject
-    {
-    public:
-      typedef PolyLineParametricPath          Self;
-      typedef DataObject                      Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( PolyLineParametricPath, DataObject );
-      cpPlugins_Id_Macro( PolyLineParametricPath, DataObject );
-
-    protected:
-      PolyLineParametricPath( );
-      virtual ~PolyLineParametricPath( );
-
-    private:
-      // Purposely not implemented
-      PolyLineParametricPath( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#include <cpPlugins/Interface/PolyLineParametricPath.hxx>
-
-#endif // __CPPLUGINS__INTERFACE__POLYLINEPARAMETRICPATH__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/PolyLineParametricPath.hxx b/lib/cpPlugins/Interface/PolyLineParametricPath.hxx
deleted file mode 100644 (file)
index 08105eb..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__POLYLINEPARAMETRICPATH__HXX__
-#define __CPPLUGINS__INTERFACE__POLYLINEPARAMETRICPATH__HXX__
-
-// TODO: erase this file
-
-#endif // __CPPLUGINS__INTERFACE__POLYLINEPARAMETRICPATH__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/ProcessObject.cxx b/lib/cpPlugins/Interface/ProcessObject.cxx
deleted file mode 100644 (file)
index 557c188..0000000
+++ /dev/null
@@ -1,283 +0,0 @@
-#include <cpPlugins/Interface/ProcessObject.h>
-#include <itkProcessObject.h>
-
-#ifdef cpPlugins_Interface_QT4
-#include <QApplication>
-#include <cpPlugins/Interface/ParametersQtDialog.h>
-#include <cpPlugins/Interface/SimpleMPRWidget.h>
-#endif // cpPlugins_Interface_QT4
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::ProcessObject::
-SetITK( itk::LightObject* o )
-{
-  // Polymorphism: do nothing -> this is a filter!!!
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::ProcessObject::
-SetVTK( vtkObjectBase* o )
-{
-  // Polymorphism: do nothing -> this is a filter!!!
-}
-
-// -------------------------------------------------------------------------
-std::set< std::string > cpPlugins::Interface::ProcessObject::
-GetInputsNames( ) const
-{
-  std::set< std::string > names;
-  for( auto i = this->m_Inputs.begin( ); i != this->m_Inputs.end( ); ++i )
-    names.insert( i->first );
-  return( names );
-}
-
-// -------------------------------------------------------------------------
-std::set< std::string > cpPlugins::Interface::ProcessObject::
-GetOutputsNames( ) const
-{
-  std::set< std::string > names;
-  for( auto i = this->m_Outputs.begin( ); i != this->m_Outputs.end( ); ++i )
-    names.insert( i->first );
-  return( names );
-}
-
-// -------------------------------------------------------------------------
-unsigned int cpPlugins::Interface::ProcessObject::
-GetNumberOfInputs( ) const
-{
-  return( this->m_Inputs.size( ) );
-}
-
-// -------------------------------------------------------------------------
-unsigned int cpPlugins::Interface::ProcessObject::
-GetNumberOfOutputs( ) const
-{
-  return( this->m_Outputs.size( ) );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::
-OutputProcessObjectPort& cpPlugins::Interface::ProcessObject::
-GetOutput( const std::string& id )
-{
-  static OutputProcessObjectPort null_port;
-  auto i = this->m_Outputs.find( id );
-  if( i == this->m_Outputs.end( ) )
-  {
-    null_port = NULL;
-    return( null_port );
-  }
-  else
-    return( i->second );
-}
-
-// -------------------------------------------------------------------------
-const cpPlugins::Interface::
-OutputProcessObjectPort& cpPlugins::Interface::ProcessObject::
-GetOutput( const std::string& id ) const
-{
-  static const OutputProcessObjectPort null_port;
-  auto i = this->m_Outputs.find( id );
-  if( i == this->m_Outputs.end( ) )
-    return( null_port );
-  else
-    return( i->second );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::
-DataObject* cpPlugins::Interface::ProcessObject::
-GetInputData( const std::string& id )
-{
-  auto i = this->m_Inputs.find( id );
-  if( i != this->m_Inputs.end( ) )
-    return( dynamic_cast< DataObject* >( i->second.GetPointer( ) ) );
-  else
-    return( NULL );
-}
-
-// -------------------------------------------------------------------------
-const cpPlugins::Interface::
-DataObject* cpPlugins::Interface::ProcessObject::
-GetInputData( const std::string& id ) const
-{
-  auto i = this->m_Inputs.find( id );
-  if( i != this->m_Inputs.end( ) )
-    return( dynamic_cast< const DataObject* >( i->second.GetPointer( ) ) );
-  else
-    return( NULL );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::
-DataObject* cpPlugins::Interface::ProcessObject::
-GetOutputData( const std::string& id )
-{
-  auto i = this->m_Outputs.find( id );
-  if( i != this->m_Outputs.end( ) )
-    return( dynamic_cast< DataObject* >( i->second.GetPointer( ) ) );
-  else
-    return( NULL );
-}
-
-// -------------------------------------------------------------------------
-const cpPlugins::Interface::
-DataObject* cpPlugins::Interface::ProcessObject::
-GetOutputData( const std::string& id ) const
-{
-  auto i = this->m_Outputs.find( id );
-  if( i != this->m_Outputs.end( ) )
-    return( dynamic_cast< const DataObject* >( i->second.GetPointer( ) ) );
-  else
-    return( NULL );
-}
-
-// -------------------------------------------------------------------------
-bool cpPlugins::Interface::ProcessObject::
-SetInput( const std::string& id, const OutputProcessObjectPort& port )
-{
-  auto i = this->m_Inputs.find( id );
-  if( i != this->m_Inputs.end( ) )
-  {
-    if( i->second.GetPointer( ) != port.GetPointer( ) )
-    {
-      i->second = port;
-      this->Modified( );
-
-    } // fi
-    return( true );
-  }
-  else
-    return( false );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::ProcessObject::
-DisconnectInputs( )
-{
-  auto i = this->m_Inputs.begin( );
-  for( ; i != this->m_Inputs.end( ); ++i )
-    i->second = NULL;
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::ProcessObject::
-DisconnectOutputs( )
-{
-  auto i = this->m_Outputs.begin( );
-  for( ; i != this->m_Outputs.end( ); ++i )
-    if( i->second.IsValid( ) )
-      i->second->DisconnectFromPipeline( );
-  this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::ProcessObject::
-Disconnect( )
-{
-  this->DisconnectInputs( );
-  this->DisconnectOutputs( );
-}
-
-// -------------------------------------------------------------------------
-itk::ModifiedTimeType cpPlugins::Interface::ProcessObject::
-GetMTime( ) const
-{
-  auto params_time = this->m_Parameters->GetMTime( );
-  auto filter_time = this->Superclass::GetMTime( );
-  return( ( params_time < filter_time )? params_time: filter_time );
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::Interface::ProcessObject::
-Update( )
-{
-  std::string r = "";
-
-  // Force upstream updates
-  auto i = this->m_Inputs.begin( );
-  bool need_to_update = false;
-  for( ; i != this->m_Inputs.end( ) && r == ""; ++i )
-  {
-    bool iv = i->second.IsValid( );
-    bool ir = i->second.IsRequired( );
-    if( !iv && ir )
-      r =
-        "ProcessObject: Required input \"" +
-        i->first + "@" + this->GetClassName( ) +
-        "\" is not valid (=NULL).";
-    if( iv && r == "" )
-    {
-      Self* src = dynamic_cast< Self* >( i->second->GetSource( ) );
-      if( src != NULL )
-      {
-        need_to_update |= ( this->m_LastExecutionTime < src->GetMTime( ) );
-        r = src->Update( );
-
-      } // fi
-
-    } // fi
-
-  } // rof
-
-  // Current update
-  if( r == "" )
-  {
-    if( this->m_LastExecutionTime < this->GetMTime( ) || need_to_update )
-    {
-      r = this->_GenerateData( );
-      this->m_LastExecutionTime = this->GetMTime( );
-
-    } // fi
-
-  } // fi
-
-  // Return error description, if any
-  return( r );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::ProcessObject::
-ProcessObject( )
-  : Superclass( ),
-    m_LastExecutionTime( 0 ),
-    m_ParametersDialog( NULL ),
-    m_MPRViewer( NULL )
-{
-  this->m_Parameters = TParameters::New( );
-  this->m_Parameters->SetProcessObject( this );
-
-#ifdef cpPlugins_Interface_QT4
-  if( QApplication::instance( ) != NULL )
-  {
-    this->m_ParametersDialog = new ParametersQtDialog( );
-    this->m_ParametersDialog->setParameters( this->m_Parameters );
-
-  } // fi
-#endif // cpPlugins_Interface_QT4
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::ProcessObject::
-~ProcessObject( )
-{
-  this->Disconnect( );
-  if( this->m_ParametersDialog != NULL )
-    delete this->m_ParametersDialog;
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::ProcessObject::
-_AddInput( const std::string& name, bool required )
-{
-  auto i = this->m_Inputs.find( name );
-  if( i == this->m_Inputs.end( ) )
-  {
-    this->m_Inputs[ name ] = InputProcessObjectPort( required );
-    this->Modified( );
-
-  } // fi
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/ProcessObject.h b/lib/cpPlugins/Interface/ProcessObject.h
deleted file mode 100644 (file)
index 617ea74..0000000
+++ /dev/null
@@ -1,138 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__PROCESSOBJECT__H__
-#define __CPPLUGINS__INTERFACE__PROCESSOBJECT__H__
-
-#include <map>
-#include <set>
-
-#include <itkDataObject.h>
-#include <cpPlugins/Interface/ProcessObjectPort.h>
-#include <cpPlugins/Interface/Parameters.h>
-
-// Some forward declarations
-class vtkRenderWindowInteractor;
-
-namespace cpPlugins
-{
-  namespace Interface
-  {
-    // Some forward declarations
-#ifdef cpPlugins_Interface_QT4
-    class ParametersQtDialog;
-    class SimpleMPRWidget;
-#else
-    typedef char ParametersQtDialog;
-    typedef char SimpleMPRWidget;
-#endif // cpPlugins_Interface_QT4
-
-    /**
-     */
-    class cpPlugins_Interface_EXPORT ProcessObject
-      : public Object
-    {
-    public:
-      typedef ProcessObject                   Self;
-      typedef Object                          Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-      typedef Parameters TParameters;
-      typedef std::set< vtkRenderWindowInteractor* > TInteractors;
-      typedef bool DialogResult;
-
-    public:
-      itkTypeMacro( ProcessObject, Object );
-      cpPlugins_Id_Macro( ProcessObject, BaseObject );
-
-      itkGetConstObjectMacro( Parameters, TParameters );
-
-      itkGetObjectMacro( Parameters, TParameters );
-      itkGetMacro( ParametersDialog, ParametersQtDialog* );
-      itkGetMacro( SingleInteractor, vtkRenderWindowInteractor* );
-      itkGetMacro( MPRViewer, SimpleMPRWidget* );
-
-      itkSetObjectMacro( ParametersDialog, ParametersQtDialog );
-      itkSetObjectMacro( SingleInteractor, vtkRenderWindowInteractor );
-      itkSetObjectMacro( MPRViewer, SimpleMPRWidget );
-
-    public:
-      virtual void SetITK( itk::LightObject* o );
-      virtual void SetVTK( vtkObjectBase* o );
-
-      // IO management
-      std::set< std::string > GetInputsNames( ) const;
-      std::set< std::string > GetOutputsNames( ) const;
-      unsigned int GetNumberOfInputs( ) const;
-      unsigned int GetNumberOfOutputs( ) const;
-
-      OutputProcessObjectPort& GetOutput( const std::string& id );
-      const OutputProcessObjectPort& GetOutput( const std::string& id ) const;
-
-      /* TODO
-         template< class T >
-         inline T* GetInputData( const std::string& id );
-         template< class T >
-         inline const T* GetInputData( const std::string& id ) const;
-         template< class T >
-         inline T* GetOutputData( const std::string& id );
-         template< class T >
-         inline const T* GetOutputData( const std::string& id ) const;
-      */
-      DataObject* GetInputData( const std::string& id );
-      const DataObject* GetInputData( const std::string& id ) const;
-      DataObject* GetOutputData( const std::string& id );
-      const DataObject* GetOutputData( const std::string& id ) const;
-
-      bool SetInput(
-        const std::string& id, const OutputProcessObjectPort& port
-        );
-
-      void DisconnectInputs( );
-      void DisconnectOutputs( );
-      void Disconnect( );
-
-      // Pipeline execution
-      virtual itk::ModifiedTimeType GetMTime( ) const;
-      virtual std::string Update( );
-
-    protected:
-      ProcessObject( );
-      virtual ~ProcessObject( );
-
-      void _AddInput( const std::string& name, bool required = true );
-      template< class O >
-        inline void _AddOutput( const std::string& name );
-      template< class F >
-        inline F* _CreateITK( );
-      template< class F >
-        inline F* _CreateVTK( );
-
-      virtual std::string _GenerateData( ) = 0;
-
-    private:
-      // Purposely not implemented
-      ProcessObject( const Self& );
-      Self& operator=( const Self& );
-
-    protected:
-      typedef std::map< std::string, InputProcessObjectPort >  _TInputs;
-      typedef std::map< std::string, OutputProcessObjectPort > _TOutputs;
-      _TInputs  m_Inputs;
-      _TOutputs m_Outputs;
-      Parameters::Pointer m_Parameters;
-
-      itk::ModifiedTimeType m_LastExecutionTime;
-
-      ParametersQtDialog*        m_ParametersDialog;
-      vtkRenderWindowInteractor* m_SingleInteractor;
-      SimpleMPRWidget*           m_MPRViewer;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#include <cpPlugins/Interface/ProcessObject.hxx>
-
-#endif // __CPPLUGINS__INTERFACE__PROCESSOBJECT__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/ProcessObject.hxx b/lib/cpPlugins/Interface/ProcessObject.hxx
deleted file mode 100644 (file)
index 9f15c81..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__PROCESSOBJECT__HXX__
-#define __CPPLUGINS__INTERFACE__PROCESSOBJECT__HXX__
-
-// -------------------------------------------------------------------------
-/* TODO
-template< class T >
-T* cpPlugins::Interface::ProcessObject::
-GetInputData( const std::string& id )
-{
-  auto i = this->m_Inputs.find( id );
-  if( i != this->m_Inputs.end( ) )
-    return( dynamic_cast< T* >( i->second.GetPointer( ) ) );
-  else
-    return( NULL );
-}
-
-// -------------------------------------------------------------------------
-template< class T >
-const T* cpPlugins::Interface::ProcessObject::
-GetInputData( const std::string& id ) const
-{
-  auto i = this->m_Inputs.find( id );
-  if( i != this->m_Inputs.end( ) )
-    return( dynamic_cast< const T* >( i->second.GetPointer( ) ) );
-  else
-    return( NULL );
-}
-
-// -------------------------------------------------------------------------
-template< class T >
-T* cpPlugins::Interface::ProcessObject::
-GetOutputData( const std::string& id )
-{
-  auto i = this->m_Outputs.find( id );
-  if( i != this->m_Outputs.end( ) )
-    return( dynamic_cast< T* >( i->second.GetPointer( ) ) );
-  else
-    return( NULL );
-}
-
-// -------------------------------------------------------------------------
-template< class T >
-const T* cpPlugins::Interface::ProcessObject::
-GetOutputData( const std::string& id ) const
-{
-  auto i = this->m_Outputs.find( id );
-  if( i != this->m_Outputs.end( ) )
-    return( dynamic_cast< const T* >( i->second.GetPointer( ) ) );
-  else
-    return( NULL );
-}
-*/
-
-// -------------------------------------------------------------------------
-template< class O >
-void cpPlugins::Interface::ProcessObject::
-_AddOutput( const std::string& name )
-{
-  auto i = this->m_Outputs.find( name );
-  if( i == this->m_Outputs.end( ) )
-  {
-    typename O::Pointer o = O::New( );
-    o->SetSource( this );
-    this->m_Outputs[ name ] = o;
-    this->Modified( );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-template< class F >
-F* cpPlugins::Interface::ProcessObject::
-_CreateITK( )
-{
-  F* filter = this->GetITK< F >( );
-  if( filter == NULL )
-  {
-    typename F::Pointer filter_ptr = F::New( );
-    this->m_ITKObject = filter_ptr;
-    this->m_VTKObject = NULL;
-    filter = filter_ptr.GetPointer( );
-    this->Modified( );
-
-  } // fi
-  return( filter );
-}
-
-// -------------------------------------------------------------------------
-template< class F >
-F* cpPlugins::Interface::ProcessObject::
-_CreateVTK( )
-{
-  F* filter = this->GetVTK< F >( );
-  if( filter == NULL )
-  {
-    vtkSmartPointer< F > filter_ptr = vtkSmartPointer< F >::New( );
-    this->m_ITKObject = NULL;
-    this->m_VTKObject = filter_ptr;
-    filter = filter_ptr.GetPointer( );
-    this->Modified( );
-
-  } // fi
-  return( filter );
-}
-
-#endif // __CPPLUGINS__INTERFACE__PROCESSOBJECT__HXX__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/ProcessObjectPort.cxx b/lib/cpPlugins/Interface/ProcessObjectPort.cxx
deleted file mode 100644 (file)
index 240c4e3..0000000
+++ /dev/null
@@ -1,135 +0,0 @@
-#include <cpPlugins/Interface/ProcessObjectPort.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::ProcessObjectPort::
-ProcessObjectPort( )
-{
-  this->m_Data = NULL;
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::ProcessObjectPort::
-~ProcessObjectPort( )
-{
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::ProcessObjectPort::
-Self& cpPlugins::Interface::ProcessObjectPort::
-operator=( DataObject* obj )
-{
-  this->m_Data = obj;
-  return( *this );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::ProcessObjectPort::
-Self& cpPlugins::Interface::ProcessObjectPort::
-operator=( const Self& other )
-{
-  this->m_Data = other.m_Data;
-  return( *this );
-}
-
-// -------------------------------------------------------------------------
-bool cpPlugins::Interface::ProcessObjectPort::
-IsValid( ) const
-{
-  return( this->m_Data.GetPointer( ) != NULL );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::InputProcessObjectPort::
-InputProcessObjectPort( bool required )
-  : Superclass( ),
-    m_Required( required )
-{
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::InputProcessObjectPort::
-~InputProcessObjectPort( )
-{
-}
-      
-// -------------------------------------------------------------------------
-cpPlugins::Interface::InputProcessObjectPort::
-Self& cpPlugins::Interface::InputProcessObjectPort::
-operator=( DataObject* obj )
-{
-  this->Superclass::operator=( obj );
-  return( *this );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::InputProcessObjectPort::
-Self& cpPlugins::Interface::InputProcessObjectPort::
-operator=( const Superclass& other )
-{
-  this->Superclass::operator=( other );
-  auto i = dynamic_cast< const InputProcessObjectPort* >( &other );
-  if( i != NULL )
-    this->m_Required = i->m_Required;
-  return( *this );
-}
-
-// -------------------------------------------------------------------------
-bool cpPlugins::Interface::InputProcessObjectPort::
-IsRequired( ) const
-{
-  return( this->m_Required );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::InputProcessObjectPort::
-RequiredOn( )
-{
-  this->SetRequired( true );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::InputProcessObjectPort::
-RequiredOff( )
-{
-  this->SetRequired( false );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::InputProcessObjectPort::
-SetRequired( bool required )
-{
-  this->m_Required = required;
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::OutputProcessObjectPort::
-OutputProcessObjectPort( )
-  : Superclass( )
-{
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::OutputProcessObjectPort::
-~OutputProcessObjectPort( )
-{
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::OutputProcessObjectPort::
-Self& cpPlugins::Interface::OutputProcessObjectPort::
-operator=( DataObject* obj )
-{
-  this->Superclass::operator=( obj );
-  return( *this );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::OutputProcessObjectPort::
-Self& cpPlugins::Interface::OutputProcessObjectPort::
-operator=( const Superclass& other )
-{
-  this->Superclass::operator=( other );
-  return( *this );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/ProcessObjectPort.h b/lib/cpPlugins/Interface/ProcessObjectPort.h
deleted file mode 100644 (file)
index 48cb07a..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__PROCESSOBJECTPORT__H__
-#define __CPPLUGINS__INTERFACE__PROCESSOBJECTPORT__H__
-
-#include <cpPlugins/Interface/DataObject.h>
-
-namespace cpPlugins
-{
-  namespace Interface
-  {
-    /**
-     */
-    class cpPlugins_Interface_EXPORT ProcessObjectPort
-    {
-    public:
-      typedef ProcessObjectPort Self;
-
-    public:
-      ProcessObjectPort( );
-      virtual ~ProcessObjectPort( );
-      Self& operator=( DataObject* obj );
-      Self& operator=( const Self& other );
-
-      bool IsValid( ) const;
-
-      // This could be seen as a pointer to DataObject's
-      inline DataObject* GetPointer( )
-      { return( this->m_Data.GetPointer( ) ); }
-      inline const DataObject* GetPointer( ) const
-      { return( this->m_Data.GetPointer( ) ); }
-      inline DataObject* operator->( ) const
-      { return( this->m_Data.GetPointer( ) ); }
-
-      inline void SetPointer( DataObject* ptr )
-      { this->m_Data = ptr; }
-
-    protected:
-      cpPlugins::Interface::DataObject::Pointer m_Data;
-    };
-
-    /**
-     */
-    class cpPlugins_Interface_EXPORT InputProcessObjectPort
-      : public ProcessObjectPort
-    {
-    public:
-      typedef InputProcessObjectPort Self;
-      typedef ProcessObjectPort      Superclass;
-
-    public:
-      InputProcessObjectPort( bool required = false );
-      virtual ~InputProcessObjectPort( );
-      Self& operator=( DataObject* obj );
-      Self& operator=( const Superclass& other );
-
-      bool IsRequired( ) const;
-      void RequiredOn( );
-      void RequiredOff( );
-      void SetRequired( bool required );
-
-    protected:
-      bool m_Required;
-    };
-
-    /**
-     */
-    class cpPlugins_Interface_EXPORT OutputProcessObjectPort
-      : public ProcessObjectPort
-    {
-    public:
-      typedef OutputProcessObjectPort Self;
-      typedef ProcessObjectPort       Superclass;
-
-    public:
-      OutputProcessObjectPort( );
-      virtual ~OutputProcessObjectPort( );
-      Self& operator=( DataObject* obj );
-      Self& operator=( const Superclass& other );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__INTERFACE__PROCESSOBJECTPORT__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/ProcessObjectProvider.cxx b/lib/cpPlugins/Interface/ProcessObjectProvider.cxx
deleted file mode 100644 (file)
index 5a3308c..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#include <cpPlugins/Interface/ProcessObjectProvider.h>
-
-// -------------------------------------------------------------------------
-PLUMA_PROVIDER_SOURCE( cpPlugins::Interface::ProcessObject, 1, 1 );
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/ProcessObjectProvider.h b/lib/cpPlugins/Interface/ProcessObjectProvider.h
deleted file mode 100644 (file)
index 5ca1282..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__PROCESSOBJECTPROVIDER__H__
-#define __CPPLUGINS__INTERFACE__PROCESSOBJECTPROVIDER__H__
-
-#include <Pluma/Pluma.hpp>
-#include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
-#include <cpPlugins/Interface/Config.h>
-#include <cpPlugins/Interface/ProcessObject.h>
-
-// -------------------------------------------------------------------------
-#define CPPLUGINS_INHERIT_PROVIDER( T )                                 \
-  class T##Provider                                                     \
-    : public cpPlugins::Interface::ProcessObjectProvider                \
-  {                                                                     \
-  public:                                                               \
-    cpPlugins::Interface::ProcessObject::Pointer create( ) const        \
-    {                                                                   \
-      T::Pointer a = T::New( );                                      \
-      cpPlugins::Interface::ProcessObject::Pointer b = a.GetPointer( ); \
-      return( b );                                                      \
-    }                                                                   \
-  };
-
-// -------------------------------------------------------------------------
-namespace cpPlugins
-{
-  namespace Interface
-  {
-    /**
-     */
-    class cpPlugins_Interface_EXPORT ProcessObjectProvider
-      : public pluma::Provider
-    {
-      friend class pluma::Pluma;
-
-    private:
-      static const unsigned int PLUMA_INTERFACE_VERSION;
-      static const unsigned int PLUMA_INTERFACE_LOWEST_VERSION;
-      static const std::string  PLUMA_PROVIDER_TYPE;
-      std::string plumaGetType( ) const
-      { return( PLUMA_PROVIDER_TYPE ); }
-
-    public:
-      unsigned int getVersion( ) const
-      { return( PLUMA_INTERFACE_VERSION ); }
-
-      virtual ProcessObject::Pointer create( ) const = 0;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__INTERFACE__PROCESSOBJECTPROVIDER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/SimpleMPRWidget.cxx b/lib/cpPlugins/Interface/SimpleMPRWidget.cxx
deleted file mode 100644 (file)
index 3c97e40..0000000
+++ /dev/null
@@ -1,614 +0,0 @@
-#include <cpPlugins/Interface/SimpleMPRWidget.h>
-
-#ifdef cpPlugins_Interface_QT4
-
-#include <cpPlugins/Interface/ui_SimpleMPRWidget.h>
-#include <cpPlugins/Interface/DataObject.h>
-#include <cpPlugins/Interface/Image.h>
-#include <cpPlugins/Interface/Mesh.h>
-// TODO: #include <QTreeWidgetItem>
-
-#include <vtkProperty.h>
-#include <vtkRendererCollection.h>
-
-double cpPlugins::Interface::SimpleMPRWidget::
-cm_Colors[ 8 ][ 3 ] =
-{
-  { 1.0, 0.0, 0.0 },
-  { 0.0, 1.0, 0.0 },
-  { 0.0, 0.0, 1.0 },
-  { 0.0, 1.0, 1.0 },
-  { 1.0, 0.0, 1.0 },
-  { 1.0, 1.0, 0.0 },
-  { 1.0, 0.5, 0.0 },
-  { 1.0, 0.0, 0.5 }
-};
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::SimpleMPRWidget::
-SimpleMPRWidget( QWidget* parent )
-  : QWidget( parent ),
-    m_UI( new Ui::SimpleMPRWidget ),
-    m_MainImage( "" )
-{
-  this->m_UI->setupUi( this );
-
-  // Configure VTK widgets
-  this->m_VTK[ 0 ] = this->m_UI->VTK01;
-  this->m_VTK[ 1 ] = this->m_UI->VTK00;
-  this->m_VTK[ 2 ] = this->m_UI->VTK10;
-  this->m_VTK[ 3 ] = this->m_UI->VTK11;
-
-  this->m_MPRObjects = vtkSmartPointer< TMPRObjects >::New( );
-  this->m_MPRObjects->SetRenderWindows(
-    this->m_VTK[ 0 ]->GetRenderWindow( ),
-    this->m_VTK[ 1 ]->GetRenderWindow( ),
-    this->m_VTK[ 2 ]->GetRenderWindow( ),
-    this->m_VTK[ 3 ]->GetRenderWindow( )
-    );
-
-  // Connect slots
-  QObject::connect(
-    this->m_UI->TopSplitter, SIGNAL( splitterMoved( int, int ) ),
-    this, SLOT( _SyncBottom( int, int ) )
-    );
-  QObject::connect(
-    this->m_UI->BottomSplitter, SIGNAL( splitterMoved( int, int ) ),
-    this, SLOT( _SyncTop( int, int ) )
-    );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::SimpleMPRWidget::
-~SimpleMPRWidget( )
-{
-  delete this->m_UI;
-}
-
-// -------------------------------------------------------------------------
-unsigned int cpPlugins::Interface::SimpleMPRWidget::
-GetNumberOfData( ) const
-{
-  return( this->m_Data.size( ) );
-}
-
-// -------------------------------------------------------------------------
-bool cpPlugins::Interface::SimpleMPRWidget::
-AddData(
-  cpPlugins::Interface::DataObject* data, const std::string& name,
-  const std::string& parent
-  )
-{
-  if( name == "" )
-    return( false );
-
-  auto iIt = this->m_Data.find( name );
-  if( iIt == this->m_Data.end( ) )
-  {
-    if( parent != "" )
-    {
-      auto pIt = this->m_Data.find( parent );
-      if( pIt == this->m_Data.end( ) )
-        return( false );
-
-    } // fi
-
-    // Add new data
-    this->m_Data[ name ].SetSourceDataObject( data );
-
-    // Set color
-    auto iIt = this->m_Data.find( name );
-    if( iIt != this->m_Data.end( ) )
-    {
-      vtkActor* actor =
-        dynamic_cast< vtkActor* >( iIt->second.GetMeshActor( ) );
-      if( actor != NULL )
-      {
-        unsigned int idx = this->m_Data.size( ) % 8;
-        actor->GetProperty( )->SetColor(
-          Self::cm_Colors[ idx ][ 0 ],
-          Self::cm_Colors[ idx ][ 1 ],
-          Self::cm_Colors[ idx ][ 2 ]
-          );
-
-      } // fi
-
-    } // fi
-
-    // Add to tree view
-    // TODO: this->_UpdateTreeItem( name, parent );
-    return( true );
-  }
-  else
-    return( false );
-}
-
-// -------------------------------------------------------------------------
-const std::string& cpPlugins::Interface::SimpleMPRWidget::
-GetMainImage( ) const
-{
-  return( this->m_MainImage );
-}
-
-// -------------------------------------------------------------------------
-bool cpPlugins::Interface::SimpleMPRWidget::
-SetMainImage( const std::string& name )
-{
-  auto iIt = this->m_Data.find( name );
-  if( iIt != this->m_Data.end( ) )
-  {
-    if( iIt->second.Tag == Data::IMAGE )
-    {
-      this->m_MainImage = name;
-      return( true );
-    }
-    else
-      return( false );
-  }
-  else
-    return( false );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::SimpleMPRWidget::
-DeleteData( const std::string& name )
-{
-  auto iIt = this->m_Data.find( name );
-  if( iIt != this->m_Data.end( ) )
-  {
-    this->m_Data.erase( iIt );
-
-    // Get children
-    std::vector< std::string > to_erase;
-    auto tIt = this->m_Tree.begin( );
-    for( ; tIt != this->m_Tree.end( ); ++tIt )
-      if( tIt->second == name )
-        to_erase.push_back( tIt->first );
-
-    // Delete from tree
-    tIt = this->m_Tree.find( name );
-    if( tIt != this->m_Tree.end( ) )
-      this->m_Tree.erase( tIt );
-
-    // Recursive erase
-    auto dIt = to_erase.begin( );
-    for( ; dIt != to_erase.end( ); ++dIt )
-      this->DeleteData( *dIt );
-
-    // Delete from tree widget
-    /* TODO
-       QTreeWidgetItem* item = this->_FindItemInTree( name );
-       if( item != NULL )
-       this->m_UI->LoadedData->removeItemWidget( item, 0 );
-    */
-
-    // Reset main image, just in case
-    if( this->m_Data.size( ) == 0 )
-      this->m_MainImage = "";
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::SimpleMPRWidget::
-DeleteAllData( )
-{
-  this->m_MPRObjects->Clear( );
-  this->m_Data.clear( );
-  this->m_Tree.clear( );
-  // TODO: this->m_UI->LoadedData->clear( );
-  this->m_MainImage = "";
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::SimpleMPRWidget::
-SetDataColor(
-  const std::string& name, const double& r, const double& g, const double& b
-  )
-{
-  /*
-    auto iIt = this->m_Data.find( name );
-    if( iIt == this->m_Data.end( ) )
-    return;
-
-    if( iIt->second.Tag == Data::IMAGE )
-    {
-    }
-    else if( iIt->second.Tag == Data::MESH )
-    {
-    } // fi
-  */
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::SimpleMPRWidget::
-ShowData( const std::string& name )
-{
-  auto iIt = this->m_Data.find( name );
-  if( iIt == this->m_Data.end( ) )
-    return;
-
-  if( iIt->second.Tag == Data::IMAGE )
-  {
-    if( name == this->m_MainImage )
-      this->m_MPRObjects->SetInputImage( iIt->second.Image );
-    else
-    {
-      unsigned int i = ( this->m_MPRObjects->GetNumberOfImages( ) - 1 ) % 8;
-      this->m_MPRObjects->AddBinaryImage(
-        iIt->second.Image,
-        Self::cm_Colors[ i ][ 0 ],
-        Self::cm_Colors[ i ][ 1 ],
-        Self::cm_Colors[ i ][ 2 ]
-        );
-    }
-    this->m_MPRObjects->Show( );
-  }
-  else if( iIt->second.Tag == Data::MESH )
-  {
-    vtkRenderer* ren =
-      this->m_VTK[ 3 ]->GetRenderWindow( )->
-      GetRenderers( )->GetFirstRenderer( );
-    if( ren == NULL )
-      return;
-    ren->AddActor( iIt->second.GetMeshActor( ) );
-    this->m_VTK[ 3 ]->GetRenderWindow( )->Render( );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::SimpleMPRWidget::
-HideData( const std::string& name )
-{
-}
-
-// -------------------------------------------------------------------------
-vtkRenderWindowInteractor* cpPlugins::Interface::SimpleMPRWidget::
-GetInteractor( unsigned int i )
-{
-  if( i < 4 )
-  {
-    if( this->m_VTK[ i ] != NULL )
-      return( this->m_VTK[ i ]->GetInteractor( ) );
-    else
-      return( NULL );
-  }
-  else
-    return( NULL );
-}
-
-// -------------------------------------------------------------------------
-/*
-  bool cpPlugins::Interface::SimpleMPRWidget::
-  ShowImage(
-  vtkImageData* image,
-  const std::string& name,
-  const std::string& parent
-  )
-  {
-  // Update tree view
-  QTreeWidgetItem* new_item = this->_UpdateTreeItem( name, parent );
-  if( new_item == NULL )
-  return( false );
-
-  // Associate new data
-  this->m_Images[ name ] = image;
-  this->m_Tree[ name ] = parent;
-
-  // Show image and return
-  this->m_MPRObjects->AddImage( image );
-  return( true );
-  }
-
-  // -------------------------------------------------------------------------
-  bool cpPlugins::Interface::SimpleMPRWidget::
-  ShowImage(
-  vtkImageData* image,
-  const std::string& name,
-  const std::string& parent,
-  const double& r, const double& g, const double& b
-  )
-  {
-  // Update tree view
-  QTreeWidgetItem* new_item = this->_UpdateTreeItem( name, parent );
-  if( new_item == NULL )
-  return( false );
-
-  // Associate new data
-  this->m_Images[ name ] = image;
-  this->m_Tree[ name ] = parent;
-
-  // Show image and return
-  this->m_MPRObjects->AddImage( image );
-  return( true );
-  }
-
-  // -------------------------------------------------------------------------
-  bool cpPlugins::Interface::SimpleMPRWidget::
-  ShowMesh(
-  vtkPolyData* mesh,
-  const std::string& name,
-  const std::string& parent
-  )
-  {
-  // Update tree view
-  QTreeWidgetItem* new_item = this->_UpdateTreeItem( name, parent );
-  if( new_item == NULL )
-  return( false );
-
-  // Associate new data
-  PolyDataActor* actor = new PolyDataActor( mesh );
-  this->m_Meshes[ name ] = actor;
-  this->m_Tree[ name ] = parent;
-
-  // Show mesh
-  this->_Add3DActor( actor->Actor );
-  return( true );
-  }
-
-  // -------------------------------------------------------------------------
-  bool cpPlugins::Interface::SimpleMPRWidget::
-  ShowMesh(
-  vtkPolyData* mesh,
-  const std::string& name,
-  const std::string& parent,
-  const double& r, const double& g, const double& b
-  )
-  {
-  return false;
-  }
-
-  // -------------------------------------------------------------------------
-  void cpPlugins::Interface::SimpleMPRWidget::
-  ClearAll( )
-  {
-  this->m_MPRObjects->ClearAll( );
-  this->m_Images.clear( );
-  this->m_Meshes.clear( );
-  }
-*/
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::Interface::SimpleMPRWidget::
-GetSelectedData( ) const
-{
-  /* TODO
-     QTreeWidgetItem* item = this->m_UI->LoadedData->currentItem( );
-     if( item != NULL )
-     return( item->text( 0 ).toStdString( ) );
-     else
-  */
-  return( "" );
-}
-
-// -------------------------------------------------------------------------
-/* TODO
-QTreeWidgetItem* cpPlugins::Interface::SimpleMPRWidget::
-_FindItemInTree( const std::string& name ) const
-{
-  QList< QTreeWidgetItem* > items =
-    this->m_UI->LoadedData->findItems(
-      name.c_str( ), Qt::MatchExactly | Qt::MatchRecursive
-      );
-  if( items.size( ) > 0 )
-    return( items[ 0 ] );
-  else
-    return( NULL );
-}
-
-// -------------------------------------------------------------------------
-QTreeWidgetItem* cpPlugins::Interface::SimpleMPRWidget::
-_UpdateTreeItem( const std::string& name, const std::string& parent )
-{
-  // Update tree view
-  QTreeWidgetItem* new_item = NULL;
-  if( parent != "" )
-  {
-    QTreeWidgetItem* parent_item = this->_FindItemInTree( parent );
-    if( parent_item != NULL )
-    {
-      QTreeWidgetItem* old_item = this->_FindItemInTree( name );
-      if( old_item == NULL )
-      {
-        new_item =
-          new QTreeWidgetItem( parent_item, QStringList( name.c_str( ) ) );
-        parent_item->setExpanded( true );
-
-      } // fi
-
-    } // fi
-  }
-  else
-  {
-    new_item = new QTreeWidgetItem(
-      ( QTreeWidgetItem* )( NULL ), QStringList( name.c_str( ) )
-      );
-    this->m_UI->LoadedData->addTopLevelItem( new_item );
-
-  } // fi
-  return( new_item );
-}
-*/
-
-// -------------------------------------------------------------------------
-/*
-  void cpPlugins::Interface::SimpleMPRWidget::
-  _Add3DActor( vtkProp3D* prop )
-  {
-  vtkRenderer* ren =
-  this->m_VTK[ 3 ]->GetRenderWindow( )->GetRenderers( )->GetFirstRenderer( );
-  if( ren == NULL )
-  return;
-  ren->AddActor( prop );
-  this->m_VTK[ 3 ]->GetRenderWindow( )->Render( );
-  }
-*/
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::SimpleMPRWidget::
-_SyncBottom( int a, int b )
-{
-  this->m_UI->BottomSplitter->setSizes( this->m_UI->TopSplitter->sizes( ) );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::SimpleMPRWidget::
-_SyncTop( int a, int b )
-{
-  this->m_UI->TopSplitter->setSizes( this->m_UI->BottomSplitter->sizes( ) );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::SimpleMPRWidget::PolyDataActor::
-PolyDataActor( )
-  : Mesh( NULL ),
-    Normals( NULL ),
-    Stripper( NULL ),
-    Mapper( NULL ),
-    Actor( NULL )
-{
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::SimpleMPRWidget::PolyDataActor::
-~PolyDataActor( )
-{
-  if( this->Actor != NULL )    this->Actor->Delete( );
-  if( this->Mapper != NULL )   this->Mapper->Delete( );
-  if( this->Stripper != NULL ) this->Stripper->Delete( );
-  if( this->Normals != NULL )  this->Normals->Delete( );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::SimpleMPRWidget::PolyDataActor::
-Configure( vtkPolyData* pd )
-{
-  if( pd ==  NULL )
-    return;
-
-  double range[ 2 ];
-  pd->GetScalarRange( range );
-
-  this->Normals = vtkPolyDataNormals::New( );
-  this->Stripper = vtkStripper::New( );
-  this->Mapper = vtkPolyDataMapper::New( );
-  this->Actor = vtkQuadricLODActor::New( );
-
-  this->Mesh = pd;
-  this->Normals->SetInputData( pd );
-  this->Normals->SetFeatureAngle( 60.0 );
-  this->Stripper->SetInputConnection( this->Normals->GetOutputPort( ) );
-  this->Mapper->SetInputConnection( this->Stripper->GetOutputPort( ) );
-  this->Mapper->UseLookupTableScalarRangeOff( );
-  this->Mapper->SetScalarRange(
-    range[ 0 ], ( ( range[ 1 ] - range[ 0 ] ) * 0.75 ) + range[ 0 ]
-    );
-  this->Actor->SetMapper( this->Mapper );
-  this->Actor->DeferLODConstructionOff( );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::SimpleMPRWidget::Data::
-Data( )
-{
-  this->Tag = Data::IMAGE;
-  this->Source = NULL;
-  this->Image = NULL;
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::SimpleMPRWidget::Data::
-~Data( )
-{
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::SimpleMPRWidget::
-Data& cpPlugins::Interface::SimpleMPRWidget::Data::
-operator=( const Data& data )
-{
-  this->Tag = data.Tag;
-  this->Source = data.Source;
-  if( this->Tag == Data::IMAGE )
-    this->Image = data.Image;
-  else if( this->Tag == Data::MESH )
-    this->Mesh = data.Mesh;
-  return( *this );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::
-DataObject* cpPlugins::Interface::SimpleMPRWidget::Data::
-GetSourceDataObject( )
-{
-  return( this->Source );
-}
-
-// -------------------------------------------------------------------------
-const cpPlugins::Interface::
-DataObject* cpPlugins::Interface::SimpleMPRWidget::Data::
-GetSourceDataObject( ) const
-{
-  return( this->Source );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::SimpleMPRWidget::Data::
-SetSourceDataObject( cpPlugins::Interface::DataObject* dobj )
-{
-  typedef cpPlugins::Interface::Image _TImage;
-  typedef cpPlugins::Interface::Mesh  _TMesh;
-
-  this->Source = dobj;
-  _TImage* image = dynamic_cast< _TImage* >( dobj );
-  if( image != NULL )
-  {
-    this->Tag = Data::IMAGE;
-    this->Image = image->GetVTK< vtkImageData >( );
-  }
-  else
-  {
-    _TMesh* mesh = dynamic_cast< _TMesh* >( dobj );
-    if( mesh == NULL )
-      return;
-
-    this->Tag = Data::MESH;
-    this->Mesh.Configure( mesh->GetVTK< vtkPolyData >( ) );
-
-  } // fi
-}
-
-// -------------------------------------------------------------------------
-vtkImageData* cpPlugins::Interface::SimpleMPRWidget::Data::
-GetImage( )
-{
-  if( this->Tag == Data::IMAGE )
-    return( this->Image );
-  else
-    return( NULL );
-}
-
-// -------------------------------------------------------------------------
-vtkPolyData* cpPlugins::Interface::SimpleMPRWidget::Data::
-GetMesh( )
-{
-  if( this->Tag == Data::MESH )
-    return( this->Mesh.Mesh );
-  else
-    return( NULL );
-}
-
-// -------------------------------------------------------------------------
-vtkProp* cpPlugins::Interface::SimpleMPRWidget::Data::
-GetMeshActor( )
-{
-  if( this->Tag == Data::MESH )
-    return( this->Mesh.Actor );
-  else
-    return( NULL );
-}
-
-#endif // cpPlugins_Interface_QT4
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/SimpleMPRWidget.h b/lib/cpPlugins/Interface/SimpleMPRWidget.h
deleted file mode 100644 (file)
index 48d3979..0000000
+++ /dev/null
@@ -1,159 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__SIMPLEMPRWIDGET__H__
-#define __CPPLUGINS__INTERFACE__SIMPLEMPRWIDGET__H__
-
-#include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
-#include <cpPlugins/Interface/Config.h>
-
-#ifdef cpPlugins_Interface_QT4
-
-#include <map>
-#include <string>
-
-#include <QWidget>
-
-#include <vtkSmartPointer.h>
-#include <vtkImageData.h>
-#include <vtkPolyDataMapper.h>
-#include <vtkPolyDataNormals.h>
-#include <vtkQuadricLODActor.h>
-#include <vtkStripper.h>
-
-#include <cpExtensions/Visualization/MPRObjects.h>
-
-// -------------------------------------------------------------------------
-class QTreeWidgetItem;
-class QVTKWidget;
-
-namespace Ui
-{
-  class SimpleMPRWidget;
-}
-
-// -------------------------------------------------------------------------
-namespace cpPlugins
-{
-  namespace Interface
-  {
-    // Some forward declarations
-    class DataObject;
-
-    /**
-     */
-    class cpPlugins_Interface_EXPORT SimpleMPRWidget
-      : public QWidget
-    {
-      Q_OBJECT;
-
-    public:
-      typedef SimpleMPRWidget Self;
-      typedef cpExtensions::Visualization::MPRObjects TMPRObjects;
-
-      typedef TMPRObjects::TStyle                   TStyle;
-      typedef TMPRObjects::TMouseCommand            TMouseCommand;
-      typedef TMPRObjects::TMouseWheelCommand       TMouseWheelCommand;
-      typedef TMPRObjects::TKeyCommand              TKeyCommand;
-      typedef TMPRObjects::TVoidCommand             TVoidCommand;
-      typedef TMPRObjects::TMouseMoveCommand        TMouseMoveCommand;
-      typedef TMPRObjects::TMouseClickCommand       TMouseClickCommand;
-      typedef TMPRObjects::TMouseDoubleClickCommand TMouseDoubleClickCommand;
-      typedef TMPRObjects::TExposeCommand           TExposeCommand;
-      typedef TMPRObjects::TConfigureCommand        TConfigureCommand;
-      typedef TMPRObjects::TEnterCommand            TEnterCommand;
-      typedef TMPRObjects::TLeaveCommand            TLeaveCommand;
-
-    public:
-      explicit SimpleMPRWidget( QWidget* parent = 0 );
-      virtual ~SimpleMPRWidget( );
-
-      // Data management
-      unsigned int GetNumberOfData( ) const;
-      bool AddData(
-        DataObject* data, const std::string& name,
-        const std::string& parent
-        );
-      const std::string& GetMainImage( ) const;
-      bool SetMainImage( const std::string& name );
-      void DeleteData( const std::string& name );
-      void DeleteAllData( );
-
-      // Some visualization accessors
-      void SetDataColor(
-        const std::string& name,
-        const double& r, const double& g, const double& b
-        );
-      void ShowData( const std::string& name );
-      void HideData( const std::string& name );
-
-      vtkRenderWindowInteractor* GetInteractor( unsigned int i );
-
-      // Visual objects accessors
-      std::string GetSelectedData( ) const;
-
-    protected:
-      /* TODO
-         QTreeWidgetItem* _FindItemInTree( const std::string& name ) const;
-         QTreeWidgetItem* _UpdateTreeItem(
-         const std::string& name,
-         const std::string& parent
-         );
-      */
-
-    private slots:
-      void _SyncBottom( int a, int b );
-      void _SyncTop( int a, int b );
-
-    protected:
-      static double cm_Colors[ 8 ][ 3 ];
-
-      Ui::SimpleMPRWidget*           m_UI;
-      vtkSmartPointer< TMPRObjects > m_MPRObjects;
-      QVTKWidget*                    m_VTK[ 4 ];
-
-      struct PolyDataActor
-      {
-        vtkPolyData*        Mesh;
-        vtkPolyDataNormals* Normals;
-        vtkStripper*        Stripper;
-        vtkPolyDataMapper*  Mapper;
-        vtkQuadricLODActor* Actor;
-
-        PolyDataActor( );
-        virtual ~PolyDataActor( );
-        void Configure( vtkPolyData* pd );
-      };
-
-      struct Data
-      {
-        enum { IMAGE, MESH } Tag;
-        DataObject*          Source;
-        vtkImageData*        Image;
-        PolyDataActor        Mesh;
-
-        Data( );
-        virtual ~Data( );
-
-        Data& operator=( const Data& data );
-
-        DataObject* GetSourceDataObject( );
-        const DataObject* GetSourceDataObject( ) const;
-        void SetSourceDataObject( DataObject* dobj );
-
-        vtkImageData* GetImage( );
-        vtkPolyData* GetMesh( );
-        vtkProp* GetMeshActor( );
-      };
-
-      std::string m_MainImage;
-      std::map< std::string, Data >        m_Data;
-      std::map< std::string, std::string > m_Tree;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // cpPlugins_Interface_QT4
-
-#endif // __CPPLUGINS__INTERFACE__SIMPLEMPRWIDGET__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/SimpleMPRWidget.ui b/lib/cpPlugins/Interface/SimpleMPRWidget.ui
deleted file mode 100644 (file)
index c8246e1..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>SimpleMPRWidget</class>
- <widget class="QWidget" name="SimpleMPRWidget">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>424</width>
-    <height>424</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>Form</string>
-  </property>
-  <layout class="QGridLayout" name="gridLayout">
-   <item row="0" column="0">
-    <widget class="QSplitter" name="QuadSplitter">
-     <property name="minimumSize">
-      <size>
-       <width>406</width>
-       <height>406</height>
-      </size>
-     </property>
-     <property name="orientation">
-      <enum>Qt::Vertical</enum>
-     </property>
-     <widget class="QSplitter" name="TopSplitter">
-      <property name="minimumSize">
-       <size>
-        <width>406</width>
-        <height>200</height>
-       </size>
-      </property>
-      <property name="orientation">
-       <enum>Qt::Horizontal</enum>
-      </property>
-      <widget class="QVTKWidget" name="VTK00" native="true">
-       <property name="minimumSize">
-        <size>
-         <width>200</width>
-         <height>200</height>
-        </size>
-       </property>
-      </widget>
-      <widget class="QVTKWidget" name="VTK01" native="true">
-       <property name="minimumSize">
-        <size>
-         <width>200</width>
-         <height>200</height>
-        </size>
-       </property>
-      </widget>
-     </widget>
-     <widget class="QSplitter" name="BottomSplitter">
-      <property name="minimumSize">
-       <size>
-        <width>406</width>
-        <height>200</height>
-       </size>
-      </property>
-      <property name="orientation">
-       <enum>Qt::Horizontal</enum>
-      </property>
-      <widget class="QVTKWidget" name="VTK10" native="true">
-       <property name="minimumSize">
-        <size>
-         <width>200</width>
-         <height>200</height>
-        </size>
-       </property>
-      </widget>
-      <widget class="QVTKWidget" name="VTK11" native="true">
-       <property name="minimumSize">
-        <size>
-         <width>200</width>
-         <height>200</height>
-        </size>
-       </property>
-      </widget>
-     </widget>
-    </widget>
-   </item>
-  </layout>
- </widget>
- <customwidgets>
-  <customwidget>
-   <class>QVTKWidget</class>
-   <extends>QWidget</extends>
-   <header location="global">QVTKWidget.h</header>
-   <container>1</container>
-  </customwidget>
- </customwidgets>
- <resources/>
- <connections/>
-</ui>
diff --git a/lib/cpPlugins/Interface/Workspace.cxx b/lib/cpPlugins/Interface/Workspace.cxx
deleted file mode 100644 (file)
index a65aec6..0000000
+++ /dev/null
@@ -1,413 +0,0 @@
-#include <cpPlugins/Interface/Workspace.h>
-#include <cpPlugins/Interface/SimpleMPRWidget.h>
-#include <vtkRenderWindowInteractor.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::Workspace::
-Workspace( )
-  : m_Plugins( NULL ),
-    m_MPRViewer( NULL )
-{
-  this->m_Graph = TGraph::New( );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::Workspace::
-~Workspace( )
-{
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::Workspace::
-TPlugins* cpPlugins::Interface::Workspace::
-GetPlugins( )
-{
-  return( this->m_Plugins );
-}
-
-// -------------------------------------------------------------------------
-const cpPlugins::Interface::Workspace::
-TPlugins* cpPlugins::Interface::Workspace::
-GetPlugins( ) const
-{
-  return( this->m_Plugins );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Workspace::
-SetPlugins( TPlugins* i )
-{
-  if( this->m_Plugins != i )
-    this->m_Plugins = i;
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::Workspace::
-TGraph* cpPlugins::Interface::Workspace::
-GetGraph( )
-{
-  return( this->m_Graph );
-}
-
-// -------------------------------------------------------------------------
-const cpPlugins::Interface::Workspace::
-TGraph* cpPlugins::Interface::Workspace::
-GetGraph( ) const
-{
-  return( this->m_Graph );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Workspace::
-Clear( )
-{
-  if( this->m_Graph.IsNotNull( ) )
-    this->m_Graph->Clear( );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Workspace::
-ClearConnections( )
-{
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::Workspace::
-TFilter* cpPlugins::Interface::Workspace::
-GetFilter( const std::string& name )
-{
-  TFilter* f =
-    dynamic_cast< TFilter* >(
-      this->m_Graph->GetVertex( name ).GetPointer( )
-      );
-  return( f );
-}
-
-// -------------------------------------------------------------------------
-const cpPlugins::Interface::Workspace::
-TFilter* cpPlugins::Interface::Workspace::
-GetFilter( const std::string& name ) const
-{
-  const TFilter* f =
-    dynamic_cast< const TFilter* >(
-      this->m_Graph->GetVertex( name ).GetPointer( )
-      );
-  return( f );
-}
-
-// -------------------------------------------------------------------------
-bool cpPlugins::Interface::Workspace::
-HasFilter( const std::string& name ) const
-{
-  if( this->m_Graph->HasVertexIndex( name ) )
-    return( this->GetFilter( name ) != NULL );
-  else
-    return( false );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::Workspace::
-TFilter* cpPlugins::Interface::Workspace::
-CreateFilter( const std::string& filter, const std::string& name )
-{
-  if( this->m_Plugins == NULL )
-    return( NULL );
-
-  // Get or create new filter from name
-  if( !( this->m_Graph->HasVertexIndex( name ) ) )
-  {
-    TFilter::Pointer f = this->m_Plugins->CreateObject( filter );
-    if( f.IsNotNull( ) )
-    {
-      f->SetSingleInteractor( this->m_SingleInteractor );
-      f->SetMPRViewer( this->m_MPRViewer );
-
-      TObject::Pointer o = f.GetPointer( );
-      this->m_Graph->SetVertex( name, o );
-
-    } // fi
-    return( f.GetPointer( ) );
-  }
-  else
-    return( this->GetFilter( name ) );
-}
-
-// -------------------------------------------------------------------------
-bool cpPlugins::Interface::Workspace::
-RenameFilter( const std::string& old_name, const std::string& new_name )
-{
-  return( this->m_Graph->RenameVertex( old_name, new_name ) );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Workspace::
-RemoveFilter( const std::string& name )
-{
-}
-
-// -------------------------------------------------------------------------
-vtkRenderWindowInteractor* cpPlugins::Interface::Workspace::
-GetSingleInteractor( )
-{
-  return( this->m_SingleInteractor );
-}
-
-// -------------------------------------------------------------------------
-const vtkRenderWindowInteractor* cpPlugins::Interface::Workspace::
-GetSingleInteractor( ) const
-{
-  return( this->m_SingleInteractor );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Workspace::
-SetSingleInteractor( vtkRenderWindowInteractor* interactor )
-{
-  this->m_SingleInteractor = interactor;
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::
-SimpleMPRWidget* cpPlugins::Interface::Workspace::
-GetMPRViewer( )
-{
-  return( this->m_MPRViewer );
-}
-
-// -------------------------------------------------------------------------
-const cpPlugins::Interface::
-SimpleMPRWidget* cpPlugins::Interface::Workspace::
-GetMPRViewer( ) const
-{
-  return( this->m_MPRViewer );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Workspace::
-SetMPRViewer( cpPlugins::Interface::SimpleMPRWidget* wdg )
-{
-  this->m_MPRViewer = wdg;
-}
-
-// -------------------------------------------------------------------------
-bool cpPlugins::Interface::Workspace::
-Connect(
-  const std::string& orig_filter, const std::string& dest_filter,
-  const std::string& output_name, const std::string& input_name
-  )
-{
-  // Get filters
-  TFilter* orig = this->GetFilter( orig_filter );
-  TFilter* dest = this->GetFilter( dest_filter );
-  if( orig == NULL || dest == NULL )
-    return( false );
-
-  // Real connection
-  if( dest->SetInput( input_name, orig->GetOutput( output_name ) ) )
-  {
-    this->m_Graph->AddEdge(
-      orig_filter, dest_filter,
-      TConnection( output_name, input_name )
-      );
-    return( true );
-  }
-  else
-    return( false );
-}
-
-// -------------------------------------------------------------------------
-bool cpPlugins::Interface::Workspace::
-Connect(
-  const OutputProcessObjectPort& port, const std::string& exposed_port
-  )
-{
-  auto i = this->m_ExposedInputPorts.find( exposed_port );
-  if( i != this->m_ExposedInputPorts.end( ) )
-  {
-    TFilter* filter = this->GetFilter( i->second.first );
-    if( filter != NULL )
-      return( filter->SetInput( i->second.second, port ) );
-    else
-      return( false );
-  }
-  else
-    return( false );
-}
-
-// -------------------------------------------------------------------------
-bool cpPlugins::Interface::Workspace::
-Reduce( const std::string& name )
-{
-  return( false );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Workspace::
-ExposeInputPort(
-  const std::string& name,
-  const std::string& filter, const std::string& filter_input
-  )
-{
-  this->m_ExposedInputPorts[ name ] = TExposedPort( filter, filter_input );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Workspace::
-ExposeOutputPort(
-  const std::string& name,
-  const std::string& filter, const std::string& filter_output
-  )
-{
-  this->m_ExposedOutputPorts[ name ] = TExposedPort( filter, filter_output );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Workspace::
-HideInputPort( const std::string& name )
-{
-  auto i = this->m_ExposedInputPorts.find( name );
-  if( i != this->m_ExposedInputPorts.end( ) )
-    this->m_ExposedInputPorts.erase( i );
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::Interface::Workspace::
-HideOutputPort( const std::string& name )
-{
-  auto i = this->m_ExposedOutputPorts.find( name );
-  if( i != this->m_ExposedOutputPorts.end( ) )
-    this->m_ExposedOutputPorts.erase( i );
-}
-
-// -------------------------------------------------------------------------
-bool cpPlugins::Interface::Workspace::
-RenameExposedInputPort(
-  const std::string& old_name,
-  const std::string& new_name
-  )
-{
-  auto o = this->m_ExposedInputPorts.find( old_name );
-  auto n = this->m_ExposedInputPorts.find( new_name );
-  if(
-    o != this->m_ExposedInputPorts.end( ) &&
-    n == this->m_ExposedInputPorts.end( )
-    )
-  {
-    this->m_ExposedInputPorts[ new_name ] = o->second;
-    this->m_ExposedInputPorts.erase( o );
-    return( true );
-  }
-  else
-    return( false );
-}
-
-// -------------------------------------------------------------------------
-bool cpPlugins::Interface::Workspace::
-RenameExposedOutputPort(
-  const std::string& old_name,
-  const std::string& new_name
-  )
-{
-  auto o = this->m_ExposedOutputPorts.find( old_name );
-  auto n = this->m_ExposedOutputPorts.find( new_name );
-  if(
-    o != this->m_ExposedOutputPorts.end( ) &&
-    n == this->m_ExposedOutputPorts.end( )
-    )
-  {
-    this->m_ExposedOutputPorts[ new_name ] = o->second;
-    this->m_ExposedOutputPorts.erase( o );
-    return( true );
-  }
-  else
-    return( false );
-}
-
-// -------------------------------------------------------------------------
-const cpPlugins::Interface::Workspace::
-TExposedPorts& cpPlugins::Interface::Workspace::
-GetExposedInputPorts( ) const
-{
-  return( this->m_ExposedInputPorts );
-}
-
-// -------------------------------------------------------------------------
-const cpPlugins::Interface::Workspace::
-TExposedPorts& cpPlugins::Interface::Workspace::
-GetExposedOutputPorts( ) const
-{
-  return( this->m_ExposedOutputPorts );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Interface::
-OutputProcessObjectPort& cpPlugins::Interface::Workspace::
-GetExposedOutput( const std::string& name )
-{
-  static OutputProcessObjectPort null_port;
-
-  auto i = this->m_ExposedOutputPorts.find( name );
-  if( i != this->m_ExposedOutputPorts.end( ) )
-  {
-    TFilter* filter = this->GetFilter( i->second.first );
-    if( filter != NULL )
-      return( filter->GetOutput( i->second.second ) );
-
-  } // fi
-  return( null_port );
-}
-
-// -------------------------------------------------------------------------
-const cpPlugins::Interface::
-OutputProcessObjectPort& cpPlugins::Interface::Workspace::
-GetExposedOutput( const std::string& name ) const
-{
-  static const OutputProcessObjectPort null_port;
-
-  auto i = this->m_ExposedOutputPorts.find( name );
-  if( i != this->m_ExposedOutputPorts.end( ) )
-  {
-    const TFilter* filter = this->GetFilter( i->second.first );
-    if( filter != NULL )
-      return( filter->GetOutput( i->second.second ) );
-
-  } // fi
-  return( null_port );
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::Interface::Workspace::
-Execute( )
-{
-  // Find sinks
-  std::set< std::string > sinks = this->m_Graph->GetSinks( );
-
-  // Update sinks
-  std::string err = "";
-  for( auto sIt = sinks.begin( ); sIt != sinks.end( ); ++sIt )
-  {
-    std::string lerr = this->Execute( *sIt );
-    if( lerr != "" )
-      err += lerr + std::string( "\n" );
-
-  } // rof
-  return( err );
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::Interface::Workspace::
-Execute( const std::string& name )
-{
-  // Get filter
-  TFilter* f = this->GetFilter( name );
-  if( f == NULL )
-    return(
-      std::string( "cpPlugins::Interface::Workspace: Vertex \"" ) +
-      name + std::string( "\" is not a filter." )
-      );
-
-  // Execute and return
-  return( f->Update( ) );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/Workspace.h b/lib/cpPlugins/Interface/Workspace.h
deleted file mode 100644 (file)
index 75ef769..0000000
+++ /dev/null
@@ -1,155 +0,0 @@
-#ifndef __CPPLUGINS__INTERFACE__WORKSPACE__H__
-#define __CPPLUGINS__INTERFACE__WORKSPACE__H__
-
-#include <cpExtensions/DataStructures/Graph.h>
-#include <cpPlugins/Interface/Interface.h>
-#include <cpPlugins/Interface/DataObject.h>
-#include <cpPlugins/Interface/ProcessObject.h>
-
-#include <set>
-#include <string>
-
-// Some forward declarations
-class QWidget;
-class vtkRenderWindowInteractor;
-
-namespace cpPlugins
-{
-  namespace Interface
-  {
-    // Some forward declarations
-#ifdef cpPlugins_Interface_QT4
-    class SimpleMPRWidget;
-#else // cpPlugins_Interface_QT4
-    typedef char SimpleMPRWidget;
-#endif // cpPlugins_Interface_QT4
-
-    /** \brief A complex pipeline
-     */
-    class cpPlugins_Interface_EXPORT Workspace
-    {
-    public:
-      typedef cpPlugins::Interface::Interface     TPlugins;
-      typedef cpPlugins::Interface::Object        TObject;
-      typedef cpPlugins::Interface::ProcessObject TFilter;
-      typedef cpPlugins::Interface::DataObject    TData;
-      typedef TFilter::TParameters                TParameters;
-
-      // Various types
-      typedef std::set< std::string >               TStringContainer;
-      typedef std::pair< std::string, std::string > TExposedPort;
-      typedef std::map< std::string, TExposedPort > TExposedPorts;
-
-      // Graph type
-      typedef std::pair< std::string, std::string > TConnection;
-      typedef
-        cpExtensions::DataStructures::
-        Graph< TObject::Pointer, TConnection, std::string > TGraph;
-
-    public:
-      Workspace( );
-      virtual ~Workspace( );
-
-      // Plugins management
-      TPlugins* GetPlugins( );
-      const TPlugins* GetPlugins( ) const;
-      void SetPlugins( TPlugins* i );
-
-      // Workspace IO
-      std::string LoadWorkspace( const std::string& fname );
-      std::string SaveWorkspace( const std::string& fname ) const;
-
-      // Graph management
-      TGraph* GetGraph( );
-      const TGraph* GetGraph( ) const;
-
-      void Clear( );
-      void ClearConnections( );
-
-      // Filter management
-      TFilter* GetFilter( const std::string& name );
-      const TFilter* GetFilter( const std::string& name ) const;
-      bool HasFilter( const std::string& name ) const;
-      TFilter* CreateFilter(
-        const std::string& filter, const std::string& name
-        );
-      bool RenameFilter(
-        const std::string& old_name, const std::string& new_name
-        );
-      void RemoveFilter( const std::string& name );
-
-      // Widgets management
-      vtkRenderWindowInteractor* GetSingleInteractor( );
-      const vtkRenderWindowInteractor* GetSingleInteractor( ) const;
-      void SetSingleInteractor( vtkRenderWindowInteractor* interactor );
-
-      SimpleMPRWidget* GetMPRViewer( );
-      const SimpleMPRWidget* GetMPRViewer( ) const;
-      void SetMPRViewer( SimpleMPRWidget* wdg );
-
-      // Connection management
-      bool Connect(
-        const std::string& orig_filter, const std::string& dest_filter,
-        const std::string& output_name, const std::string& input_name
-        );
-      bool Connect(
-        const OutputProcessObjectPort& port, const std::string& exposed_port
-        );
-      void RemoveConnection(
-        const std::string& dest_filter, const std::string& input_name
-        );
-      void RemoveConnection( const std::string& exposed_port );
-      void RemoveConnections( const std::string& dest_filter );
-
-      // Graph reduction
-      bool Reduce( const std::string& name );
-      void ExposeInputPort(
-        const std::string& name,
-        const std::string& filter, const std::string& filter_input
-        );
-      void ExposeOutputPort(
-        const std::string& name,
-        const std::string& filter, const std::string& filter_output
-        );
-      void HideInputPort( const std::string& name );
-      void HideOutputPort( const std::string& name );
-
-      bool RenameExposedInputPort(
-        const std::string& old_name,
-        const std::string& new_name
-        );
-      bool RenameExposedOutputPort(
-        const std::string& old_name,
-        const std::string& new_name
-        );
-
-      const TExposedPorts& GetExposedInputPorts( ) const;
-      const TExposedPorts& GetExposedOutputPorts( ) const;
-
-      OutputProcessObjectPort& GetExposedOutput( const std::string& name );
-      const OutputProcessObjectPort& GetExposedOutput( const std::string& name ) const;
-
-      // Pipeline execution
-      std::string Execute( );
-      std::string Execute( const std::string& name );
-
-    protected:
-      // Plugins interface
-      TPlugins* m_Plugins;
-
-      // Processing graph
-      TGraph::Pointer m_Graph;
-      TExposedPorts m_ExposedInputPorts;
-      TExposedPorts m_ExposedOutputPorts;
-
-      vtkSmartPointer< vtkRenderWindowInteractor > m_SingleInteractor;
-      SimpleMPRWidget*                             m_MPRViewer;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__INTERFACE__WORKSPACE__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/WorkspaceIO.cxx b/lib/cpPlugins/Interface/WorkspaceIO.cxx
deleted file mode 100644 (file)
index f811a5e..0000000
+++ /dev/null
@@ -1,194 +0,0 @@
-#include <cpPlugins/Interface/Workspace.h>
-#include <third_party/tinyxml/tinyxml.h>
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::Interface::Workspace::
-LoadWorkspace( const std::string& fname )
-{
-  TiXmlDocument* doc = new TiXmlDocument( fname.c_str( ) );
-  doc->LoadFile( );
-  TiXmlElement* root = doc->RootElement( );
-  if( root == NULL )
-    return( "cpPlugins::Interface::Workspace: No valid file" );
-  if( std::string( root->Value( ) ) != "cpPlugins_Workspace" )
-    return( "cpPlugins::Interface::Workspace: No valid workspace" );
-  std::stringstream err;
-
-  // Read filters
-  TiXmlElement* filter = root->FirstChildElement( "filter" );
-  while( filter != NULL )
-  {
-    const char* class_value = filter->Attribute( "class" );
-    const char* name_value = filter->Attribute( "name" );
-    float viewX = float( 0 ), viewY = float( 0 );
-    filter->QueryFloatAttribute( "ViewX", &viewX );
-    filter->QueryFloatAttribute( "ViewY", &viewY );
-    if( class_value != NULL && name_value != NULL )
-    {
-      if( this->CreateFilter( class_value, name_value ) )
-      {
-        TFilter* new_filter = this->GetFilter( name_value );
-        new_filter->SetViewCoords( viewX, viewY );
-
-        // Read parameters
-        TParameters* parameters = new_filter->GetParameters( );
-        parameters->FromXML( filter );
-      }
-      else
-        err
-          << "No valid class \"" << class_value << "\" with name \""
-          << name_value << "\"" << std::endl;
-    }
-    else
-      err << "Incomplete data." << std::endl;
-    filter = filter->NextSiblingElement( "filter" );
-
-  } // elihw
-
-  // Read connections
-  TiXmlElement* connection = root->FirstChildElement( "connection" );
-  while( connection != NULL )
-  {
-    TiXmlElement* orig = connection->FirstChildElement( "origin" );
-    TiXmlElement* dest = connection->FirstChildElement( "destination" );
-    if( orig != NULL && dest != NULL )
-    {
-      const char* orig_filter = orig->Attribute( "filter" );
-      const char* dest_filter = dest->Attribute( "filter" );
-      const char* orig_name = orig->Attribute( "name" );
-      const char* dest_name = dest->Attribute( "name" );
-      if(
-        orig_filter != NULL && dest_filter != NULL &&
-        orig_name != NULL && dest_name != NULL
-        )
-        this->Connect( orig_filter, dest_filter, orig_name, dest_name );
-
-    } // fi
-    connection = connection->NextSiblingElement( "connection" );
-
-  } // elihw
-
-  // Read exposed inputs
-  TiXmlElement* port = root->FirstChildElement( "exposed_input_port" );
-  while( port != NULL )
-  {
-    this->ExposeInputPort(
-      port->Attribute( "port_name" ),
-      port->Attribute( "filter" ),
-      port->Attribute( "filter_port_name" )
-      );
-    port = port->NextSiblingElement( "exposed_input_port" );
-
-  } // elihw
-
-  // Read exposed outputs
-  port = root->FirstChildElement( "exposed_output_port" );
-  while( port != NULL )
-  {
-    this->ExposeOutputPort(
-      port->Attribute( "port_name" ),
-      port->Attribute( "filter" ),
-      port->Attribute( "filter_port_name" )
-      );
-    port = port->NextSiblingElement( "exposed_output_port" );
-
-  } // elihw
-
-  // Finish and return
-  delete doc;
-  return( err.str( ) );
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::Interface::Workspace::
-SaveWorkspace( const std::string& fname ) const
-{
-  std::stringstream err;
-  TiXmlDocument* doc = new TiXmlDocument( );
-  TiXmlElement* root = new TiXmlElement( "cpPlugins_Workspace" );
-
-  // Save vertices
-  auto vIt = this->m_Graph->BeginVertices( );
-  for( ; vIt != this->m_Graph->EndVertices( ); ++vIt )
-  {
-    auto filter = dynamic_cast< TFilter* >( vIt->second.GetPointer( ) );
-    auto data = dynamic_cast< TData* >( vIt->second.GetPointer( ) );
-    if( filter != NULL )
-    {
-      TiXmlElement* e = new TiXmlElement( "filter" );
-      e->SetAttribute( "class", filter->GetClassName( ) );
-      e->SetAttribute( "name", vIt->first.c_str( ) );
-      e->SetAttribute( "ViewX", filter->GetViewX( ) );
-      e->SetAttribute( "ViewY", filter->GetViewY( ) );
-
-      const TParameters* params = filter->GetParameters( );
-      params->ToXML( e );
-
-      root->LinkEndChild( e );
-    }
-    else if( data != NULL )
-    {
-      // TODO
-    } // fi
-
-  } // rof
-
-  // Save connections
-  auto mIt = this->m_Graph->BeginEdgesRows( );
-  for( ; mIt != this->m_Graph->EndEdgesRows( ); ++mIt )
-  {
-    auto rIt = mIt->second.begin( );
-    for( ; rIt != mIt->second.end( ); ++rIt )
-    {
-      auto eIt = rIt->second.begin( );
-      for( ; eIt != rIt->second.end( ); ++eIt )
-      {
-        TiXmlElement* conn = new TiXmlElement( "connection" );
-        TiXmlElement* orig = new TiXmlElement( "origin" );
-        TiXmlElement* dest = new TiXmlElement( "destination" );
-        orig->SetAttribute( "filter", mIt->first.c_str( ) );
-        orig->SetAttribute( "name", eIt->first.c_str( ) );
-        dest->SetAttribute( "filter", rIt->first.c_str( ) );
-        dest->SetAttribute( "name", eIt->second.c_str( ) );
-
-        conn->LinkEndChild( orig );
-        conn->LinkEndChild( dest );
-        root->LinkEndChild( conn );
-
-      } // rof
-
-    } // rof
-
-  } // rof
-
-  // Save exposed ports
-  auto eipIt = this->m_ExposedInputPorts.begin( );
-  for( ; eipIt != this->m_ExposedInputPorts.end( ); ++eipIt )
-  {
-    TiXmlElement* port = new TiXmlElement( "exposed_input_port" );
-    port->SetAttribute( "port_name", eipIt->first.c_str( ) );
-    port->SetAttribute( "filter", eipIt->second.first.c_str( ) );
-    port->SetAttribute( "filter_port_name", eipIt->second.second.c_str( ) );
-    root->LinkEndChild( port );
-
-  } // rof
-
-  auto eopIt = this->m_ExposedOutputPorts.begin( );
-  for( ; eopIt != this->m_ExposedOutputPorts.end( ); ++eopIt )
-  {
-    TiXmlElement* port = new TiXmlElement( "exposed_output_port" );
-    port->SetAttribute( "port_name", eopIt->first.c_str( ) );
-    port->SetAttribute( "filter", eopIt->second.first.c_str( ) );
-    port->SetAttribute( "filter_port_name", eopIt->second.second.c_str( ) );
-    root->LinkEndChild( port );
-
-  } // rof
-
-  // Physical write and return
-  doc->LinkEndChild( root );
-  doc->SaveFile( fname.c_str( ) );
-  delete doc;
-  return( err.str( ) );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/AppendMeshesFilter.cxx b/lib/cpPlugins/Plugins/BasicFilters/AppendMeshesFilter.cxx
deleted file mode 100644 (file)
index 9d6a9f4..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-#include "AppendMeshesFilter.h"
-#include <cpPlugins/Interface/Mesh.h>
-
-#include <vtkAppendPolyData.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::AppendMeshesFilter::
-AppendMeshesFilter( )
-  : Superclass( )
-{
-  this->_AddInput( "Input0" );
-  this->_AddInput( "Input1" );
-  this->_AddOutput< cpPlugins::Interface::Mesh >( "Output" );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::AppendMeshesFilter::
-~AppendMeshesFilter( )
-{
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::BasicFilters::AppendMeshesFilter::
-_GenerateData( )
-{
-  auto m0 = this->GetInputData( "Input0" );
-  auto m1 = this->GetInputData( "Input1" );
-
-  auto filter = this->_CreateVTK< vtkAppendPolyData >( );
-  filter->AddInputData( m0->GetVTK< vtkPolyData >( ) );
-  filter->AddInputData( m1->GetVTK< vtkPolyData >( ) );
-  filter->Update( );
-
-  auto out = this->GetOutputData( "Output" );
-  out->SetVTK( filter->GetOutput( ) );
-  return( "" );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/AppendMeshesFilter.h b/lib/cpPlugins/Plugins/BasicFilters/AppendMeshesFilter.h
deleted file mode 100644 (file)
index d814a2a..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__APPENDMESHESFILTER__H__
-#define __CPPLUGINS__PLUGINS__APPENDMESHESFILTER__H__
-
-#include <cpPlugins/BasicFilters/cpPluginsBasicFilters_Export.h>
-#include <cpPlugins/Interface/BaseProcessObjects.h>
-
-namespace cpPlugins
-{
-  namespace BasicFilters
-  {
-    /**
-     */
-    class cpPluginsBasicFilters_EXPORT AppendMeshesFilter
-      : public cpPlugins::Interface::MeshToMeshFilter
-    {
-    public:
-      typedef AppendMeshesFilter                     Self;
-      typedef cpPlugins::Interface::MeshToMeshFilter Superclass;
-      typedef itk::SmartPointer< Self >              Pointer;
-      typedef itk::SmartPointer< const Self >        ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro(
-        AppendMeshesFilter,
-        cpPlugins::Interface::MeshToMeshFilter
-        );
-      cpPlugins_Id_Macro(
-        cpPlugins::BasicFilters::AppendMeshesFilter,
-        MeshToMeshFilter
-        );
-
-    protected:
-      AppendMeshesFilter( );
-      virtual ~AppendMeshesFilter( );
-
-      virtual std::string _GenerateData( );
-
-    private:
-      // Purposely not implemented
-      AppendMeshesFilter( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__APPENDMESHESFILTER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/BinaryErodeImageFilter.cxx b/lib/cpPlugins/Plugins/BasicFilters/BinaryErodeImageFilter.cxx
deleted file mode 100644 (file)
index 4391732..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-#include "BinaryErodeImageFilter.h"
-#include <cpPlugins/Interface/Image.h>
-
-#include <itkBinaryErodeImageFilter.h>
-#include <itkImage.h>
-#include <itkBinaryBallStructuringElement.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::BinaryErodeImageFilter::
-BinaryErodeImageFilter( )
-  : Superclass( )
-{
-  this->_AddInput( "Input" );
-  this->_AddOutput< cpPlugins::Interface::Image >( "Output" );
-
-  this->m_Parameters->ConfigureAsUint( "Radius" );
-  this->m_Parameters->SetUint( "Radius", 2 );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::BinaryErodeImageFilter::
-~BinaryErodeImageFilter( )
-{
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::BasicFilters::BinaryErodeImageFilter::
-_GenerateData( )
-{
-  auto image = this->GetInputData( "Input" );
-  itk::DataObject* itk_image = NULL;
-  std::string r = "";
-  cpPlugins_Image_Demangle_AllScalarTypes( 2, image, itk_image, r, _GD0 );
-  else cpPlugins_Image_Demangle_AllScalarTypes( 3, image, itk_image, r, _GD0 );
-  else cpPlugins_Image_Demangle_AllScalarTypes( 4, image, itk_image, r, _GD0 );
-  else r = "BinaryErodeImageFilter: Input image type not supported.";
-  return( r );
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-std::string cpPlugins::BasicFilters::BinaryErodeImageFilter::
-_GD0( itk::DataObject* image )
-{
-  return(
-    this->_RealGD< I, itk::Image< unsigned char, I::ImageDimension > >(
-      image
-      )
-    );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-inline std::string cpPlugins::BasicFilters::BinaryErodeImageFilter::
-_RealGD( itk::DataObject* image )
-{
-  //typedef itk::Image<I, I::ImageDimension>    ImageType;
-  typedef itk::BinaryBallStructuringElement< typename I::PixelType, I::ImageDimension>  StructuringElementType;
-  typedef itk::BinaryErodeImageFilter< I, O, StructuringElementType > _F;
-  typedef typename _F::RadiusType _RT;
-
-  // Get parameters
-  _RT rad_val;
-  rad_val.Fill( this->m_Parameters->GetUint( "Radius" ) );
-
-  // Configure filter
-
-  StructuringElementType structuringElement;
-  structuringElement.SetRadius( rad_val );
-  structuringElement.CreateStructuringElement( );
-
-  _F* filter = this->_CreateITK< _F >( );
-  filter->SetInput( dynamic_cast< I* >( image ) );
-  filter->SetKernel( structuringElement );
-  filter->Update( );
-
-  // Connect output
-  auto out = this->GetOutputData( "Output" );
-  out->SetITK( filter->GetOutput( ) );
-  return( "" );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/BinaryErodeImageFilter.h b/lib/cpPlugins/Plugins/BasicFilters/BinaryErodeImageFilter.h
deleted file mode 100644 (file)
index d0c3191..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__BinaryErodeImageFilter__H__
-#define __CPPLUGINS__PLUGINS__BinaryErodeImageFilter__H__
-
-#include <cpPlugins/BasicFilters/cpPluginsBasicFilters_Export.h>
-#include <cpPlugins/Interface/BaseProcessObjects.h>
-
-namespace cpPlugins
-{
-  namespace BasicFilters
-  {
-    /**
-     */
-    class cpPluginsBasicFilters_EXPORT BinaryErodeImageFilter
-      : public cpPlugins::Interface::ImageToImageFilter
-    {
-    public:
-      typedef BinaryErodeImageFilter                        Self;
-      typedef cpPlugins::Interface::ImageToImageFilter Superclass;
-      typedef itk::SmartPointer< Self >                Pointer;
-      typedef itk::SmartPointer< const Self >          ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro(
-        BinaryErodeImageFilter,
-        cpPluginsInterfaceImageToImageFilter
-        );
-      cpPlugins_Id_Macro(
-        cpPlugins::BasicFilters::BinaryErodeImageFilter,
-        ImageToBinaryImageFilter
-        );
-
-    protected:
-      BinaryErodeImageFilter( );
-      virtual ~BinaryErodeImageFilter( );
-
-      virtual std::string _GenerateData( );
-
-      template< class I >
-        inline std::string _GD0( itk::DataObject* image );
-
-      template< class I, class O >
-        inline std::string _RealGD( itk::DataObject* image );
-
-    private:
-      // Purposely not implemented
-      BinaryErodeImageFilter( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__BinaryErodeImageFilter__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/BinaryThresholdImageFilter.cxx b/lib/cpPlugins/Plugins/BasicFilters/BinaryThresholdImageFilter.cxx
deleted file mode 100644 (file)
index ab26ffa..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-#include "BinaryThresholdImageFilter.h"
-#include <cpPlugins/Interface/Image.h>
-
-#include <itkBinaryThresholdImageFilter.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::BinaryThresholdImageFilter::
-BinaryThresholdImageFilter( )
-  : Superclass( )
-{
-  this->_AddInput( "Input" );
-  this->_AddOutput< cpPlugins::Interface::Image >( "Output" );
-
-  this->m_Parameters->ConfigureAsReal( "LowerThresholdValue" );
-  this->m_Parameters->ConfigureAsReal( "UpperThresholdValue" );
-  this->m_Parameters->ConfigureAsUint( "InsideValue" );
-  this->m_Parameters->ConfigureAsUint( "OutsideValue" );
-
-  this->m_Parameters->SetReal( "LowerThresholdValue", 0 );
-  this->m_Parameters->SetReal( "UpperThresholdValue", 10000 );
-  this->m_Parameters->SetUint( "InsideValue", 1 );
-  this->m_Parameters->SetUint( "OutsideValue", 0 );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::BinaryThresholdImageFilter::
-~BinaryThresholdImageFilter( )
-{
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::BasicFilters::BinaryThresholdImageFilter::
-_GenerateData( )
-{
-  auto image = this->GetInputData( "Input" );
-  itk::DataObject* itk_image = NULL;
-  std::string r = "";
-  cpPlugins_Image_Demangle_AllScalarTypes( 2, image, itk_image, r, _GD0 );
-  else cpPlugins_Image_Demangle_AllScalarTypes( 3, image, itk_image, r, _GD0 );
-  else cpPlugins_Image_Demangle_AllScalarTypes( 4, image, itk_image, r, _GD0 );
-  else r = "BinaryThresholdImageFilter: Input image type not supported.";
-  return( r );
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-std::string cpPlugins::BasicFilters::BinaryThresholdImageFilter::
-_GD0( itk::DataObject* image )
-{
-  return(
-    this->_RealGD< I, itk::Image< unsigned char, I::ImageDimension > >(
-      image
-      )
-    );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-inline std::string cpPlugins::BasicFilters::BinaryThresholdImageFilter::
-_RealGD( itk::DataObject* image )
-{
-  typedef itk::BinaryThresholdImageFilter< I, O > _F;
-  typedef typename I::PixelType _IP;
-  typedef typename O::PixelType _OP;
-
-  // Get parameters
-  //unsigned int bins =
-  //  this->m_Parameters.GetValueAsUint( "NumberOfHistogramBins" );
-  _IP lower_val = _IP( this->m_Parameters->GetReal( "LowerThresholdValue" ) );
-  _IP upper_val = _IP( this->m_Parameters->GetReal( "UpperThresholdValue" ) );
-  _OP in_val = _OP( this->m_Parameters->GetUint( "InsideValue" ) );
-  _OP out_val = _OP( this->m_Parameters->GetUint( "OutsideValue" ) );
-
-  // Configure filter
-  _F* filter = this->_CreateITK< _F >( );
-  filter->SetInput( dynamic_cast< I* >( image ) );
-  filter->SetLowerThreshold( lower_val );
-  filter->SetUpperThreshold( upper_val );
-  filter->SetInsideValue( in_val );
-  filter->SetOutsideValue( out_val );
-  filter->Update( );
-
-  // Connect output
-  auto out = this->GetOutputData( "Output" );
-  out->SetITK( filter->GetOutput( ) );
-  return( "" );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/BinaryThresholdImageFilter.h b/lib/cpPlugins/Plugins/BasicFilters/BinaryThresholdImageFilter.h
deleted file mode 100644 (file)
index 76b725b..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__BINARYTHRESHOLDIMAGEFILTER__H__
-#define __CPPLUGINS__PLUGINS__BINARYTHRESHOLDIMAGEFILTER__H__
-
-#include <cpPlugins/BasicFilters/cpPluginsBasicFilters_Export.h>
-#include <cpPlugins/Interface/BaseProcessObjects.h>
-
-namespace cpPlugins
-{
-  namespace BasicFilters
-  {
-    /**
-     */
-    class cpPluginsBasicFilters_EXPORT BinaryThresholdImageFilter
-      : public cpPlugins::Interface::ImageToImageFilter
-    {
-    public:
-      typedef BinaryThresholdImageFilter               Self;
-      typedef cpPlugins::Interface::ImageToImageFilter Superclass;
-      typedef itk::SmartPointer< Self >                Pointer;
-      typedef itk::SmartPointer< const Self >          ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro(
-        BinaryThresholdImageFilter,
-        cpPluginsInterfaceImageToImageFilter
-        );
-      cpPlugins_Id_Macro(
-        cpPlugins::BasicFilters::BinaryThresholdImageFilter,
-        ImageToBinaryImageFilter
-        );
-
-    protected:
-      BinaryThresholdImageFilter( );
-      virtual ~BinaryThresholdImageFilter( );
-
-      virtual std::string _GenerateData( );
-
-      template< class I >
-        inline std::string _GD0( itk::DataObject* image );
-
-      template< class I, class O >
-        inline std::string _RealGD( itk::DataObject* image );
-
-    private:
-      // Purposely not implemented
-      BinaryThresholdImageFilter( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__BINARYTHRESHOLDIMAGEFILTER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/CMakeLists.txt b/lib/cpPlugins/Plugins/BasicFilters/CMakeLists.txt
deleted file mode 100644 (file)
index 2d0392f..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-SET(LIBRARY_NAME cpPluginsBasicFilters)
-
-## ===============
-## = Source code =
-## ===============
-
-FILE(GLOB LIB_HEADERS_H   "*.h")
-FILE(GLOB LIB_HEADERS_HPP "*.hpp")
-FILE(GLOB LIB_HEADERS_HXX "*.hxx")
-FILE(GLOB LIB_SOURCES_C   "*.c")
-FILE(GLOB LIB_SOURCES_CPP "*.cpp")
-FILE(GLOB LIB_SOURCES_CXX "*.cxx")
-
-IF(USE_QT4)
-  SET(
-    LIB_QT_Headers
-    MacheteFilter.h
-    DoubleFloodImageFilter.h
-    )
-  SET(
-    LIB_QT_Sources
-    MacheteFilter.cxx
-    DoubleFloodImageFilter.cxx
-    )
-
-  QT4_WRAP_CPP(LIB_QT_Wrapped_MOC_Sources ${LIB_QT_Headers})
-
-  SET(
-    LIB_SOURCES_CXX
-    ${LIB_SOURCES_CXX}
-    ${LIB_QT_Sources}
-    ${LIB_QT_Wrapped_MOC_Sources}
-    )
-
-ENDIF(USE_QT4)
-
-## =====================
-## = Compilation rules =
-## =====================
-
-ADD_CUSTOM_COMMAND(
-  OUTPUT ${LIBRARY_NAME}_Host.cxx
-  DEPENDS ${cpPlugins_createHost_APP} ${LIB_HEADERS_H}
-  COMMAND ${cpPlugins_createHost_APP} ${LIBRARY_NAME}_Host.cxx cpPlugins::BasicFilters ${LIB_HEADERS_H}
-  )
-
-ADD_LIBRARY(
-  ${LIBRARY_NAME}
-  SHARED
-  ${LIBRARY_NAME}_Host.cxx
-  ${LIB_SOURCES_C}
-  ${LIB_SOURCES_CPP}
-  ${LIB_SOURCES_CXX}
-  )
-GENERATE_EXPORT_HEADER(
-  ${LIBRARY_NAME}
-  BASE_NAME ${LIBRARY_NAME}
-  EXPORT_MACRO_NAME ${LIBRARY_NAME}_EXPORT
-  EXPORT_FILE_NAME ${PROJECT_BINARY_DIR}/lib/cpPlugins/BasicFilters/${LIBRARY_NAME}_Export.h
-  STATIC_DEFINE ${LIBRARY_NAME}_BUILT_AS_STATIC
-  )
-TARGET_LINK_LIBRARIES(
-  ${LIBRARY_NAME}
-  cpPlugins_Interface
-  cpExtensions
-  )
-
-## ========================
-## -- Installation rules --
-## ========================
-
-INSTALL(
-  TARGETS ${LIBRARY_NAME}
-  RUNTIME DESTINATION bin
-  LIBRARY DESTINATION lib
-  ARCHIVE DESTINATION lib/static
-  )
-
-## eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/Cutter.cxx b/lib/cpPlugins/Plugins/BasicFilters/Cutter.cxx
deleted file mode 100644 (file)
index 2afadd5..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-#include "Cutter.h"
-#include <cpPlugins/Interface/ImplicitFunction.h>
-#include <cpPlugins/Interface/Mesh.h>
-
-#include <vtkCutter.h>
-#include <vtkProperty.h>
-
-
-#include <vtkPlane.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::Cutter::
-Cutter( )
-  : Superclass( )
-{
-  this->_AddInput( "InputMesh" );
-  this->_AddInput( "InputFunction" );
-  this->_AddOutput< cpPlugins::Interface::Mesh >( "Output" );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::Cutter::
-~Cutter( )
-{
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::BasicFilters::Cutter::
-_GenerateData( )
-{
-  // Get inputs
-  auto mesh = this->GetInputData( "InputMesh" );
-  auto function = this->GetInputData( "InputFunction" );
-  vtkCutter* cutter = this->_CreateVTK< vtkCutter >( );
-  cutter->DebugOn( );
-  cutter->SetInputData( mesh->GetVTK< vtkPolyData >( ) );
-  cutter->SetCutFunction( function->GetVTK< vtkImplicitFunction >( ) );
-  cutter->SetValue( 0, 1 );
-  cutter->GenerateTrianglesOff( );
-  cutter->Update( );
-
-  // Execute filter
-  auto out = this->GetOutputData( "Output" );
-  out->SetVTK( cutter->GetOutput( ) );
-
-  return( "" );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/Cutter.h b/lib/cpPlugins/Plugins/BasicFilters/Cutter.h
deleted file mode 100644 (file)
index f0045af..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__CUTTER__H__
-#define __CPPLUGINS__PLUGINS__CUTTER__H__
-
-#include <cpPlugins/BasicFilters/cpPluginsBasicFilters_Export.h>
-#include <cpPlugins/Interface/BaseProcessObjects.h>
-
-namespace cpPlugins
-{
-  namespace BasicFilters
-  {
-    /**
-     */
-    class cpPluginsBasicFilters_EXPORT Cutter
-      : public cpPlugins::Interface::MeshToMeshFilter
-    {
-    public:
-      typedef Cutter                                 Self;
-      typedef cpPlugins::Interface::MeshToMeshFilter Superclass;
-      typedef itk::SmartPointer< Self >              Pointer;
-      typedef itk::SmartPointer< const Self >        ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( Cutter, cpPluginsInterfaceMeshToMeshFilter );
-      cpPlugins_Id_Macro(
-        cpPlugins::BasicFilters::Cutter, MeshToMeshFilter
-        );
-
-    protected:
-      Cutter( );
-      virtual ~Cutter( );
-
-      virtual std::string _GenerateData( );
-
-    private:
-      // Purposely not implemented
-      Cutter( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__CUTTER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/DoubleFloodImageFilter.cxx b/lib/cpPlugins/Plugins/BasicFilters/DoubleFloodImageFilter.cxx
deleted file mode 100644 (file)
index aeaa590..0000000
+++ /dev/null
@@ -1,386 +0,0 @@
-#include "DoubleFloodImageFilter.h"
-#include <cpPlugins/Interface/Image.h>
-#include <cpExtensions/Interaction/ImageInteractorStyle.h>
-#include <cpExtensions/Visualization/ImageSliceActors.h>
-
-#include <vtkRenderWindowInteractor.h>
-
-#include <itkFloodFilledImageFunctionConditionalConstIterator.h>
-#include <itkImageFunction.h>
-
-#ifdef cpPlugins_Interface_QT4
-#include <QDialogButtonBox>
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::DoubleFloodImageFilter_Dialog::
-DoubleFloodImageFilter_Dialog(
-  QWidget* parent, DoubleFloodImageFilter* filter, Qt::WindowFlags f
-  )
-  : QDialog( parent, f | Qt::WindowStaysOnTopHint ),
-    m_Filter( filter )
-{
-/* TODO
-  this->m_Title = new QLabel( this );
-  this->m_Title->setText( "Execute simple vessel segmentation filter" );
-
-  this->m_MainLayout = new QGridLayout( this );
-  this->m_ToolsLayout = new QVBoxLayout( );
-  this->m_ToolsLayout->addWidget( this->m_Title );
-  this->m_MainLayout->addLayout( this->m_ToolsLayout, 0, 0, 1, 1 );
-
-  // Add buttons
-  QDialogButtonBox* bb = new QDialogButtonBox(
-    QDialogButtonBox::Cancel | QDialogButtonBox::Ok
-    );
-  QObject::connect( bb, SIGNAL( accepted( ) ), this, SLOT( accept( ) ) );
-  QObject::connect( bb, SIGNAL( rejected( ) ), this, SLOT( reject( ) ) );
-  this->m_ToolsLayout->addWidget( bb );
-*/
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::DoubleFloodImageFilter_Dialog::
-~DoubleFloodImageFilter_Dialog( )
-{
-/*
-  delete this->m_Title;
-  delete this->m_ToolsLayout;
-  delete this->m_MainLayout;
-*/
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::BasicFilters::DoubleFloodImageFilter_Dialog::
-accept( )
-{
-/*
-  // Get interactive widget
-  if( this->m_Filter == NULL )
-    return;
-
-  typedef cpExtensions::Interaction::ImageInteractorStyle _TImageStyle;
-  typedef cpExtensions::Visualization::ImageSliceActors   _TImageActors;
-
-  // Get seeds
-  unsigned int nTotalSeeds = 0;
-  auto iIt = this->m_Filter->m_Interactors.begin( );
-  for( ; iIt != this->m_Filter->m_Interactors.end( ); ++iIt )
-  {
-    _TImageStyle* istyle =
-      dynamic_cast< _TImageStyle* >(
-        ( *iIt )->GetInteractorStyle( )
-        );
-    if( istyle == NULL )
-      continue;
-
-    // Get window level
-    _TImageActors* actors =
-      dynamic_cast< _TImageActors* >( istyle->GetAssociatedObject( ) );
-    if( actors != NULL )
-    {
-      this->m_Filter->GetParameters( )->SetReal( "Window", actors->GetWindow( ) );
-      this->m_Filter->GetParameters( )->SetReal( "Level", actors->GetLevel( ) );
-
-    } // fi
-
-    unsigned int nSeeds = istyle->GetNumberOfSeeds( );
-    for( unsigned int s = 0; s < nSeeds; ++s )
-    {
-      if( nTotalSeeds < 2 )
-      {
-        double seed[ 3 ];
-        istyle->GetSeedAsPoint( s, seed );
-        if( nTotalSeeds == 0 )
-          this->m_Filter->GetParameters( )->SetPoint( "Seed0", 3, seed );
-        else
-          this->m_Filter->GetParameters( )->SetPoint( "Seed1", 3, seed );
-
-      } // fi
-      nTotalSeeds++;
-
-    } // rof
-
-  } // rof
-
-  // Update filter
-  auto plugins = this->m_Filter->GetPlugins( );
-  if( plugins != NULL )
-  {
-    auto app = plugins->GetApplication( );
-    if( app != NULL )
-      app->UpdateActualFilter( );
-
-  } // fi
-*/
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::BasicFilters::DoubleFloodImageFilter_Dialog::
-reject( )
-{
-/*
-  auto plugins = this->m_Filter->GetPlugins( );
-  if( plugins != NULL )
-    plugins->DeactivateFilter( );
-  this->Superclass::reject( );
-*/
-}
-#endif // cpPlugins_Interface_QT4
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::DoubleFloodImageFilter::
-DialogResult cpPlugins::BasicFilters::DoubleFloodImageFilter::
-ExecConfigurationDialog( QWidget* parent )
-{
-/* TODO
-#ifdef cpPlugins_Interface_QT4
-
-  typedef cpExtensions::Interaction::ImageInteractorStyle _TImageStyle;
-
-  // Activate seed widgets
-  bool at_least_one = false;
-  auto iIt = this->m_Interactors.begin( );
-  for( ; iIt != this->m_Interactors.end( ); ++iIt )
-  {
-    _TImageStyle* istyle =
-      dynamic_cast< _TImageStyle* >(
-        ( *iIt )->GetInteractorStyle( )
-        );
-    if( istyle != NULL )
-    {
-      istyle->SeedWidgetOn( );
-      at_least_one = true;
-
-    } // fi
-    
-  } // rof
-  if( !at_least_one )
-    return( false );
-  
-  // Create dialog
-  this->m_Dialog = new DoubleFloodImageFilter_Dialog( NULL, this );
-  this->m_Dialog->show( );
-
-  return( true );
-#else // cpPlugins_Interface_QT4
-  return( false );
-#endif // cpPlugins_Interface_QT4
-*/
-  return( false );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::DoubleFloodImageFilter::
-DoubleFloodImageFilter( )
-  : Superclass( )
-{
-  /* TODO
-  this->_AddInput( "Input" );
-  this->_MakeOutput< cpPlugins::Interface::Image >( "Output" );
-
-  this->m_Parameters->ConfigureAsPoint( "Seed0" );
-  this->m_Parameters->ConfigureAsPoint( "Seed1" );
-  this->m_Parameters->ConfigureAsReal( "Window" );
-  this->m_Parameters->ConfigureAsReal( "Level" );
-  this->m_Parameters->ConfigureAsUint( "InsideValue" );
-  this->m_Parameters->ConfigureAsUint( "OutsideValue" );
-
-  this->m_Parameters->SetReal( "Window", 0 );
-  this->m_Parameters->SetReal( "Level", 0 );
-  this->m_Parameters->SetUint( "InsideValue", 255 );
-  this->m_Parameters->SetUint( "OutsideValue", 0 );
-  */
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::DoubleFloodImageFilter::
-~DoubleFloodImageFilter( )
-{
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::BasicFilters::DoubleFloodImageFilter::
-_GenerateData( )
-{
-  /* TODO
-  cpPlugins::Interface::Image* image =
-    this->GetInput< cpPlugins::Interface::Image >( "Input" );
-  if( image == NULL )
-    return( "DoubleFloodImageFilter: No input image." );
-
-  itk::DataObject* itk_image = NULL;
-  std::string r = "";
-  cpPlugins_Image_Demangle_AllScalarTypes( 2, image, itk_image, r, _GD0 );
-  else cpPlugins_Image_Demangle_AllScalarTypes( 3, image, itk_image, r, _GD0 );
-  else r = "DoubleFloodImageFilter: Input image type not supported.";
-  return( r );
-  */
-  return( "" );
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-std::string cpPlugins::BasicFilters::DoubleFloodImageFilter::
-_GD0( itk::DataObject* image )
-{
-  /* TODO
-  return(
-    this->_RealGD< I, itk::Image< unsigned char, I::ImageDimension > >(
-      image
-      )
-    );
-  */
-  return( "" );
-
-}
-
-// -------------------------------------------------------------------------
-/* TODO
-template< class I, class R = float >
-class cpPlugins_BasicFilters_DoubleFloodImageFilter_Function
-  : public itk::ImageFunction< I, bool, R >
-{
-public:
-  typedef cpPlugins_BasicFilters_DoubleFloodImageFilter_Function Self;
-  typedef itk::ImageFunction< I, bool, R >                     Superclass;
-  typedef itk::SmartPointer< Self >                            Pointer;
-  typedef itk::SmartPointer< const Self >                      ConstPointer;
-
-  typedef typename Superclass::PointType           TPoint;
-  typedef typename Superclass::IndexType           TIndex;
-  typedef typename Superclass::ContinuousIndexType TCIndex;
-
-public:
-  itkNewMacro( Self );
-  itkTypeMacro(
-    cpPlugins_BasicFilters_DoubleFloodImageFilter_Function,
-    itkImageFunction
-    );
-
-  itkSetMacro( Window, double );
-  itkSetMacro( Level, double );
-
-public:
-  virtual bool Evaluate( const TPoint& point ) const
-    {
-      return( true );
-    }
-  virtual bool EvaluateAtIndex( const TIndex& index ) const
-    {
-      if( !( this->IsInsideBuffer( index ) ) )
-        return( false );
-
-      const I* image = this->GetInputImage( );
-      double w2 = this->m_Window / double( 2 );
-      double min = this->m_Level - w2;
-      double max = this->m_Level + w2;
-      unsigned char val = double( 0 );
-      double x = double( image->GetPixel( index ) );
-      double m = double( 100 ) / this->m_Window;
-      double b = ( this->m_Window - ( double( 2 ) * this->m_Level ) );
-      b *= double( 50 ) / this->m_Window;
-      if( x > min && x < max )
-        val = ( unsigned char )( ( m * x ) + b );
-
-      if( this->m_Start )
-      {
-        this->m_StartValue = val;
-        this->m_Start = false;
-        return( true );
-      }
-      else
-        return( std::abs( this->m_StartValue - val ) <= 2 );
-    }
-  virtual bool EvaluateAtContinuousIndex( const TCIndex& index ) const
-    {
-      return( true );
-    }
-
-protected:
-  cpPlugins_BasicFilters_DoubleFloodImageFilter_Function( )
-    : Superclass( ),
-      m_Window( double( 0 ) ),
-      m_Level( double( 0 ) ),
-      m_Start( true )
-    {
-    }
-  virtual ~cpPlugins_BasicFilters_DoubleFloodImageFilter_Function( )
-    {
-    }
-
-private:
-  // Purposely not implemented
-  cpPlugins_BasicFilters_DoubleFloodImageFilter_Function( const Self& other );
-  Self& operator=( const Self& other );
-
-protected:
-  double m_Window;
-  double m_Level;
-  mutable unsigned char m_StartValue;
-  mutable bool m_Start;
-};
-*/
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-inline std::string cpPlugins::BasicFilters::DoubleFloodImageFilter::
-_RealGD( itk::DataObject* image )
-{
-  /* TODO
-  typedef typename O::PixelType _OP;
-  typedef cpPlugins_BasicFilters_DoubleFloodImageFilter_Function< I > _F;
-  typedef itk::FloodFilledImageFunctionConditionalConstIterator< I, _F > _It;
-
-  typename I::PointType pseed0, pseed1;
-  pseed0 = this->m_Parameters->GetPoint< typename I::PointType >(
-    "Seed0", I::ImageDimension
-    );
-  pseed1 = this->m_Parameters->GetPoint< typename I::PointType >(
-    "Seed1", I::ImageDimension
-    );
-  double window = this->m_Parameters->GetReal( "Window" );
-  double level = this->m_Parameters->GetReal( "Level" );
-  _OP in_val = _OP( this->m_Parameters->GetUint( "InsideValue" ) );
-  _OP out_val = _OP( this->m_Parameters->GetUint( "OutsideValue" ) );
-
-  const I* in = dynamic_cast< const I* >( image );
-  typename I::IndexType seed0, seed1;
-  in->TransformPhysicalPointToIndex( pseed0, seed0 );
-  in->TransformPhysicalPointToIndex( pseed1, seed1 );
-
-  typename O::Pointer out = O::New( );
-  out->SetLargestPossibleRegion( in->GetLargestPossibleRegion( ) );
-  out->SetRequestedRegion( in->GetRequestedRegion( ) );
-  out->SetBufferedRegion( in->GetBufferedRegion( ) );
-  out->SetOrigin( in->GetOrigin( ) );
-  out->SetDirection( in->GetDirection( ) );
-  out->SetSpacing( in->GetSpacing( ) );
-  out->Allocate( );
-  out->FillBuffer( out_val );
-
-  typename _F::Pointer f = _F::New( );
-  f->SetInputImage( in );
-  f->SetWindow( window );
-  f->SetLevel( level );
-  _It i( in, f );
-  i.AddSeed( seed0 );
-  i.AddSeed( seed1 );
-
-  for( i.GoToBegin( ); !i.IsAtEnd( ); ++i )
-    out->SetPixel( i.GetIndex( ), in_val );
-
-  // Connect output
-  cpPlugins::Interface::Image* out_port =
-    this->GetOutput< cpPlugins::Interface::Image >( "Output" );
-  if( out_port != NULL )
-  {
-    out_port->SetITK< O >( out );
-    return( "" );
-  }
-  else
-    return( "DoubleFloodImageFilter: output not correctly created." );
-  */
-  return( "" );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/DoubleFloodImageFilter.h b/lib/cpPlugins/Plugins/BasicFilters/DoubleFloodImageFilter.h
deleted file mode 100644 (file)
index bcaf84c..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__DOUBLEFLOODIMAGEFILTER__H__
-#define __CPPLUGINS__PLUGINS__DOUBLEFLOODIMAGEFILTER__H__
-
-#include <cpPlugins/BasicFilters/cpPluginsBasicFilters_Export.h>
-#include <cpPlugins/Interface/BaseProcessObjects.h>
-
-#ifdef cpPlugins_Interface_QT4
-#include <QDialog>
-#include <QGridLayout>
-#include <QLabel>
-#include <QVBoxLayout>
-#endif // cpPlugins_Interface_QT4
-
-namespace cpPlugins
-{
-  namespace BasicFilters
-  {
-#ifdef cpPlugins_Interface_QT4
-    class DoubleFloodImageFilter;
-
-    class DoubleFloodImageFilter_Dialog
-      : public QDialog
-    {
-      Q_OBJECT;
-
-    public:
-      typedef QDialog Superclass;
-
-    public:
-      DoubleFloodImageFilter_Dialog(
-        QWidget* parent, DoubleFloodImageFilter* filter, Qt::WindowFlags f = 0
-        );
-      virtual ~DoubleFloodImageFilter_Dialog( );
-
-    public slots:
-      virtual void accept( );
-      virtual void reject( );
-
-    protected:
-      DoubleFloodImageFilter* m_Filter;
-      QLabel* m_Title;
-      QGridLayout* m_MainLayout;
-      QVBoxLayout* m_ToolsLayout;
-    };
-#endif // cpPlugins_Interface_QT4
-
-    /**
-     */
-    class cpPluginsBasicFilters_EXPORT DoubleFloodImageFilter
-      : public cpPlugins::Interface::ImageToImageFilter
-    {
-    public:
-      typedef DoubleFloodImageFilter                     Self;
-      typedef cpPlugins::Interface::ImageToImageFilter Superclass;
-      typedef itk::SmartPointer< Self >                Pointer;
-      typedef itk::SmartPointer< const Self >          ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro(
-        DoubleFloodImageFilter,
-        cpPlugins::Interface::ImageToImageFilter
-        );
-      cpPlugins_Id_Macro(
-        cpPlugins::BasicFilters::DoubleFloodImageFilter,
-        ImageToBinaryImageFilter
-        );
-
-    public:
-      virtual DialogResult ExecConfigurationDialog( QWidget* parent );
-
-    protected:
-      DoubleFloodImageFilter( );
-      virtual ~DoubleFloodImageFilter( );
-
-      virtual std::string _GenerateData( );
-
-      template< class I >
-        inline std::string _GD0( itk::DataObject* image );
-
-      template< class I, class O >
-        inline std::string _RealGD( itk::DataObject* image );
-
-    private:
-      // Purposely not implemented
-      DoubleFloodImageFilter( const Self& );
-      Self& operator=( const Self& );
-
-    protected:
-#ifdef cpPlugins_Interface_QT4
-      friend class DoubleFloodImageFilter_Dialog;
-      DoubleFloodImageFilter_Dialog* m_Dialog;
-#endif // cpPlugins_Interface_QT4
-
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__DOUBLEFLOODIMAGEFILTER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/ExtractSliceImageFilter.cxx b/lib/cpPlugins/Plugins/BasicFilters/ExtractSliceImageFilter.cxx
deleted file mode 100644 (file)
index a700a01..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-#include "ExtractSliceImageFilter.h"
-#include <cpPlugins/Interface/Image.h>
-
-#include <itkExtractImageFilter.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::ExtractSliceImageFilter::
-ExtractSliceImageFilter( )
-  : Superclass( )
-{
-  this->_AddInput( "Input" );
-  this->_AddOutput< cpPlugins::Interface::Image >( "Output" );
-
-  this->m_Parameters->ConfigureAsUint( "Axis" );
-  this->m_Parameters->ConfigureAsInt( "Slice" );
-
-  this->m_Parameters->SetUint( "Axis", 0 );
-  this->m_Parameters->SetInt( "Slice", 0 );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::ExtractSliceImageFilter::
-~ExtractSliceImageFilter( )
-{
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::BasicFilters::ExtractSliceImageFilter::
-_GenerateData( )
-{
-  auto image = this->GetInputData( "Input" );
-  itk::DataObject* itk_image = NULL;
-  std::string r = "";
-/*
-  cpPlugins_Image_Demangle_AllTypes( 3, image, itk_image, r, _GD0 );
-  else cpPlugins_VectorImage_Demangle_AllTypes( 3, image, itk_image, r, _GD0 );
-  else*/ r = "ExtractSliceImageFilter: Input image type not supported.";
-  return( r );
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-std::string cpPlugins::BasicFilters::ExtractSliceImageFilter::
-_GD0( itk::DataObject* image )
-{
-  return( this->_RealGD< I, I >( image ) );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-inline std::string cpPlugins::BasicFilters::ExtractSliceImageFilter::
-_RealGD( itk::DataObject* image )
-{
-  typedef itk::ExtractImageFilter< I, O > _F;
-  typedef typename O::PixelType _OP;
-
-  // Get parameters
-  int axis = this->m_Parameters->GetUint( "Axis" );
-  int slice = this->m_Parameters->GetInt( "Slice" );
-
-  // Compute region
-  I* img = dynamic_cast< I* >( image );
-  typename I::RegionType region = img->GetRequestedRegion( );
-  typename I::SizeType size = region.GetSize( );
-  typename I::IndexType index = region.GetIndex( );
-  size[ axis ] = 1;
-  index[ axis ] = slice;
-  region.SetSize( size );
-  region.SetIndex( index );
-
-  // Configure filter
-  _F* filter = this->_CreateITK< _F >( );
-  filter->SetInput( img );
-  filter->SetExtractionRegion( region );
-  filter->SetDirectionCollapseToIdentity( );
-  filter->Update( );
-
-  // Connect output
-  auto out = this->GetOutputData( "Output" );
-  out->SetITK( filter->GetOutput( ) );
-  return( "" );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/ExtractSliceImageFilter.h b/lib/cpPlugins/Plugins/BasicFilters/ExtractSliceImageFilter.h
deleted file mode 100644 (file)
index 4138bbe..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__EXTRACTSLICEIMAGEFILTER__H__
-#define __CPPLUGINS__PLUGINS__EXTRACTSLICEIMAGEFILTER__H__
-
-#include <cpPlugins/BasicFilters/cpPluginsBasicFilters_Export.h>
-#include <cpPlugins/Interface/BaseProcessObjects.h>
-
-namespace cpPlugins
-{
-  namespace BasicFilters
-  {
-    /**
-     */
-    class cpPluginsBasicFilters_EXPORT ExtractSliceImageFilter
-      : public cpPlugins::Interface::ImageToImageFilter
-    {
-    public:
-      typedef ExtractSliceImageFilter                       Self;
-      typedef cpPlugins::Interface::ImageToImageFilter Superclass;
-      typedef itk::SmartPointer< Self >                Pointer;
-      typedef itk::SmartPointer< const Self >          ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro(
-        ExtractSliceImageFilter, cpPluginsInterfaceImageToImageFilter
-        );
-      cpPlugins_Id_Macro(
-        cpPlugins::BasicFilters::ExtractSliceImageFilter,
-        ImageToImageFilter
-        );
-
-    protected:
-      ExtractSliceImageFilter( );
-      virtual ~ExtractSliceImageFilter( );
-
-      virtual std::string _GenerateData( );
-
-      template< class I >
-        inline std::string _GD0( itk::DataObject* image );
-
-      template< class I, class O >
-        inline std::string _RealGD( itk::DataObject* image );
-
-    private:
-      // Purposely not implemented
-      ExtractSliceImageFilter( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__EXTRACTSLICEIMAGEFILTER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/FloodFillImageFilter.cxx b/lib/cpPlugins/Plugins/BasicFilters/FloodFillImageFilter.cxx
deleted file mode 100644 (file)
index 98b9e58..0000000
+++ /dev/null
@@ -1,215 +0,0 @@
-#include "FloodFillImageFilter.h"
-#include <cpPlugins/Interface/Image.h>
-#include <cpPlugins/Interface/PointList.h>
-
-#include <itkFloodFilledImageFunctionConditionalConstIterator.h>
-#include <itkImageFunction.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::FloodFillImageFilter::
-FloodFillImageFilter( )
-  : Superclass( )
-{
-  /* TODO
-  this->_AddInput( "Input" );
-  this->_AddInput( "Seed" );
-  this->_AddOutput< cpPlugins::Interface::Image >( "Output" );
-
-  this->m_Parameters->ConfigureAsReal( "Window" );
-  this->m_Parameters->ConfigureAsReal( "Level" );
-  this->m_Parameters->ConfigureAsUint( "InsideValue" );
-  this->m_Parameters->ConfigureAsUint( "OutsideValue" );
-
-  this->m_Parameters->SetReal( "Window", 0 );
-  this->m_Parameters->SetReal( "Level", 0 );
-  this->m_Parameters->SetUint( "InsideValue", 0 );
-  this->m_Parameters->SetUint( "OutsideValue", 255 );
-  */
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::FloodFillImageFilter::
-~FloodFillImageFilter( )
-{
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::BasicFilters::FloodFillImageFilter::
-_GenerateData( )
-{
-  /* TODO
-  cpPlugins::Interface::Image* image =
-    this->GetInput< cpPlugins::Interface::Image >( "Input" );
-  if( image == NULL )
-    return( "FloodFillImageFilter: No input image." );
-
-  itk::DataObject* itk_image = NULL;
-  std::string r = "";
-  cpPlugins_Image_Demangle_AllScalarTypes( 2, image, itk_image, r, _GD0 );
-  else cpPlugins_Image_Demangle_AllScalarTypes( 3, image, itk_image, r, _GD0 );
-  else r = "FloodFillImageFilter: Input image type not supported.";
-  return( r );
-  */
-  return( "" );
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-std::string cpPlugins::BasicFilters::FloodFillImageFilter::
-_GD0( itk::DataObject* image )
-{
-  /* TODO
-  return(
-    this->_RealGD< I, itk::Image< unsigned char, I::ImageDimension > >(
-      image
-      )
-    );
-  */
-  return( "" );
-}
-
-// -------------------------------------------------------------------------
-/* TODO
-template< class I, class R = float >
-class cpPlugins_BasicFilters_FloodFillImageFilter_Function
-  : public itk::ImageFunction< I, bool, R >
-{
-public:
-  typedef cpPlugins_BasicFilters_FloodFillImageFilter_Function Self;
-  typedef itk::ImageFunction< I, bool, R >                     Superclass;
-  typedef itk::SmartPointer< Self >                            Pointer;
-  typedef itk::SmartPointer< const Self >                      ConstPointer;
-
-  typedef typename Superclass::PointType           TPoint;
-  typedef typename Superclass::IndexType           TIndex;
-  typedef typename Superclass::ContinuousIndexType TCIndex;
-
-public:
-  itkNewMacro( Self );
-  itkTypeMacro(
-    cpPlugins_BasicFilters_FloodFillImageFilter_Function,
-    itkImageFunction
-    );
-
-  itkSetMacro( Window, double );
-  itkSetMacro( Level, double );
-
-public:
-  virtual bool Evaluate( const TPoint& point ) const
-    {
-      return( true );
-    }
-  virtual bool EvaluateAtIndex( const TIndex& index ) const
-    {
-      if( !( this->IsInsideBuffer( index ) ) )
-        return( false );
-
-      const I* image = this->GetInputImage( );
-      double w2 = this->m_Window / double( 2 );
-      double min = this->m_Level - w2;
-      double max = this->m_Level + w2;
-      unsigned char val = double( 0 );
-      double x = double( image->GetPixel( index ) );
-      double m = double( 100 ) / this->m_Window;
-      double b = ( this->m_Window - ( double( 2 ) * this->m_Level ) );
-      b *= double( 50 ) / this->m_Window;
-      if( x > min && x < max )
-        val = ( unsigned char )( ( m * x ) + b );
-
-      if( this->m_Start )
-      {
-        this->m_StartValue = val;
-        this->m_Start = false;
-        return( true );
-      }
-      else
-        return( std::abs( this->m_StartValue - val ) <= 2 );
-    }
-  virtual bool EvaluateAtContinuousIndex( const TCIndex& index ) const
-    {
-      return( true );
-    }
-
-protected:
-  cpPlugins_BasicFilters_FloodFillImageFilter_Function( )
-    : Superclass( ),
-      m_Window( double( 0 ) ),
-      m_Level( double( 0 ) ),
-      m_Start( true )
-    {
-    }
-  virtual ~cpPlugins_BasicFilters_FloodFillImageFilter_Function( )
-    {
-    }
-
-private:
-  // Purposely not implemented
-  cpPlugins_BasicFilters_FloodFillImageFilter_Function( const Self& other );
-  Self& operator=( const Self& other );
-
-protected:
-  double m_Window;
-  double m_Level;
-  mutable unsigned char m_StartValue;
-  mutable bool m_Start;
-};
-*/
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-inline std::string cpPlugins::BasicFilters::FloodFillImageFilter::
-_RealGD( itk::DataObject* image )
-{
-  /* TODO
-  typedef typename O::PixelType _OP;
-  typedef cpPlugins_BasicFilters_FloodFillImageFilter_Function< I > _F;
-  typedef itk::FloodFilledImageFunctionConditionalConstIterator< I, _F > _It;
-
-  typename I::PointType pseed;
-  pseed = this->m_Parameters->GetPoint< typename I::PointType >(
-    "Seed", I::ImageDimension
-    );
-  double window = this->m_Parameters->GetReal( "Window" );
-  double level = this->m_Parameters->GetReal( "Level" );
-  _OP in_val = _OP( this->m_Parameters->GetUint( "InsideValue" ) );
-  _OP out_val = _OP( this->m_Parameters->GetUint( "OutsideValue" ) );
-
-  const I* in = dynamic_cast< const I* >( image );
-  typename I::IndexType seed;
-  in->TransformPhysicalPointToIndex( pseed, seed );
-
-  typename O::Pointer out = O::New( );
-  out->SetLargestPossibleRegion( in->GetLargestPossibleRegion( ) );
-  out->SetRequestedRegion( in->GetRequestedRegion( ) );
-  out->SetBufferedRegion( in->GetBufferedRegion( ) );
-  out->SetOrigin( in->GetOrigin( ) );
-  out->SetDirection( in->GetDirection( ) );
-  out->SetSpacing( in->GetSpacing( ) );
-  out->Allocate( );
-  out->FillBuffer( out_val );
-
-  typename _F::Pointer f = _F::New( );
-  f->SetInputImage( in );
-  f->SetWindow( window );
-  f->SetLevel( level );
-  _It i( in, f );
-  i.AddSeed( seed );
-
-  for( i.GoToBegin( ); !i.IsAtEnd( ); ++i )
-    out->SetPixel( i.GetIndex( ), in_val );
-
-  // Connect output
-  cpPlugins::Interface::Image* out_port =
-    this->GetOutput< cpPlugins::Interface::Image >( "Output" );
-  if( out_port != NULL )
-  {
-    out_port->SetITK< O >( out );
-    return( "" );
-  }
-  else
-    return( "FloodFillImageFilter: output not correctly created." );
-  */
-  return( "" );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/FloodFillImageFilter.h b/lib/cpPlugins/Plugins/BasicFilters/FloodFillImageFilter.h
deleted file mode 100644 (file)
index aa770ec..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__FLOODFILLIMAGEFILTER__H__
-#define __CPPLUGINS__PLUGINS__FLOODFILLIMAGEFILTER__H__
-
-#include <cpPlugins/BasicFilters/cpPluginsBasicFilters_Export.h>
-#include <cpPlugins/Interface/BaseProcessObjects.h>
-
-namespace cpPlugins
-{
-  namespace BasicFilters
-  {
-    /**
-     */
-    class cpPluginsBasicFilters_EXPORT FloodFillImageFilter
-      : public cpPlugins::Interface::ImageToImageFilter
-    {
-    public:
-      typedef FloodFillImageFilter                     Self;
-      typedef cpPlugins::Interface::ImageToImageFilter Superclass;
-      typedef itk::SmartPointer< Self >                Pointer;
-      typedef itk::SmartPointer< const Self >          ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro(
-        FloodFillImageFilter,
-        cpPluginsInterfaceImageToImageFilter
-        );
-      cpPlugins_Id_Macro(
-        cpPlugins::BasicFilters::FloodFillImageFilter,
-        ImageToBinaryImageFilter
-        );
-
-    protected:
-      FloodFillImageFilter( );
-      virtual ~FloodFillImageFilter( );
-
-      virtual std::string _GenerateData( );
-
-      template< class I >
-        inline std::string _GD0( itk::DataObject* image );
-
-      template< class I, class O >
-        inline std::string _RealGD( itk::DataObject* image );
-
-    private:
-      // Purposely not implemented
-      FloodFillImageFilter( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__FLOODFILLIMAGEFILTER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/ImageInterpolatorSource.cxx b/lib/cpPlugins/Plugins/BasicFilters/ImageInterpolatorSource.cxx
deleted file mode 100644 (file)
index bffab16..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-#include "ImageInterpolatorSource.h"
-
-#include <cpPlugins/Interface/Image.h>
-#include <itkLinearInterpolateImageFunction.h>
-#include <itkNearestNeighborInterpolateImageFunction.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::ImageInterpolatorSource::
-ImageInterpolatorSource( )
-  : Superclass( )
-{
-  this->_AddInput( "ReferenceImage" );
-  this->_AddOutput< cpPlugins::Interface::DataObject >( "Output" );
-
-  std::vector< std::string > type_choices;
-  type_choices.push_back( "Linear" );
-  type_choices.push_back( "NearestNeighbor" );
-  this->m_Parameters->ConfigureAsChoices( "InterpolationType", type_choices );
-  this->m_Parameters->SetSelectedChoice( "InterpolationType", "Linear" );
-
-  std::vector< std::string > scalar_choices;
-  scalar_choices.push_back( "float" );
-  scalar_choices.push_back( "double" );
-  this->m_Parameters->ConfigureAsChoices( "ScalarType", scalar_choices );
-  this->m_Parameters->SetSelectedChoice( "ScalarType", "float" );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::ImageInterpolatorSource::
-~ImageInterpolatorSource( )
-{
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::BasicFilters::ImageInterpolatorSource::
-_GenerateData( )
-{
-  auto image = this->GetInputData( "ReferenceImage" );
-  itk::DataObject* itk_image = NULL;
-  std::string r = "";
-  cpPlugins_Image_Demangle_AllScalarTypes( 2, image, itk_image, r, _GD0 );
-  else cpPlugins_Image_Demangle_AllScalarTypes( 3, image, itk_image, r, _GD0 );
-  else cpPlugins_Image_Demangle_AllScalarTypes( 4, image, itk_image, r, _GD0 );
-  else r = "ImageInterpolatorSource: Input image type not supported.";
-  return( r );
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-std::string cpPlugins::BasicFilters::ImageInterpolatorSource::
-_GD0( itk::DataObject* dobj )
-{
-  std::string int_choice =
-    this->m_Parameters->GetSelectedChoice( "InterpolationType" );
-  std::string scalar_choice =
-    this->m_Parameters->GetSelectedChoice( "ScalarType" );
-
-  if( int_choice == "Linear" )
-  {
-    if( scalar_choice == "float" )
-      return(
-        this->_GD1< itk::LinearInterpolateImageFunction< I, float > >( )
-        );
-    else if( scalar_choice == "double" )
-      return(
-        this->_GD1< itk::LinearInterpolateImageFunction< I, double > >( )
-        );
-    else
-      return( "ImageInterpolatorSource: Invalid scalar type" );
-  }
-  else if( int_choice == "NearestNeighbor" )
-  {
-    if( scalar_choice == "float" )
-      return(
-        this->_GD1< itk::NearestNeighborInterpolateImageFunction< I, float > >( )
-        );
-    else if( scalar_choice == "double" )
-      return(
-        this->_GD1< itk::NearestNeighborInterpolateImageFunction< I, double > >( )
-        );
-    else
-      return( "ImageInterpolatorSource: Invalid scalar type" );
-  }
-  else
-    return( "ImageInterpolatorSource: Invalid interpolator" );
-}
-
-// -------------------------------------------------------------------------
-template< class T >
-std::string cpPlugins::BasicFilters::ImageInterpolatorSource::
-_GD1( )
-{
-  auto out = this->GetOutputData( "Output" );
-  if( out->GetITK< T >( ) == NULL )
-  {
-    typename T::Pointer res = T::New( );
-    out->SetITK( res.GetPointer( ) );
-
-  } // fi
-  return( "" );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/ImageInterpolatorSource.h b/lib/cpPlugins/Plugins/BasicFilters/ImageInterpolatorSource.h
deleted file mode 100644 (file)
index efb459b..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__IMAGEINTERPOLATORSOURCE__H__
-#define __CPPLUGINS__PLUGINS__IMAGEINTERPOLATORSOURCE__H__
-
-#include <cpPlugins/BasicFilters/cpPluginsBasicFilters_Export.h>
-#include <cpPlugins/Interface/BaseProcessObjects.h>
-
-namespace cpPlugins
-{
-  namespace BasicFilters
-  {
-    /**
-     */
-    class cpPluginsBasicFilters_EXPORT ImageInterpolatorSource
-      : public cpPlugins::Interface::ProcessObject
-    {
-    public:
-      typedef ImageInterpolatorSource             Self;
-      typedef cpPlugins::Interface::ProcessObject Superclass;
-      typedef itk::SmartPointer< Self >           Pointer;
-      typedef itk::SmartPointer< const Self >     ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro(
-        ImageInterpolatorSource, cpPlugins::Interface::ProcessObject
-        );
-      cpPlugins_Id_Macro(
-        cpPlugins::BasicFilters::ImageInterpolatorSource,
-        FunctionSource
-        );
-
-    protected:
-      ImageInterpolatorSource( );
-      virtual ~ImageInterpolatorSource( );
-
-      virtual std::string _GenerateData( );
-
-      template< class I >
-        inline std::string _GD0( itk::DataObject* dobj );
-
-      template< class T >
-        inline std::string _GD1( );
-
-    private:
-      // Purposely not implemented
-      ImageInterpolatorSource( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__IMAGEINTERPOLATORSOURCE__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/InputDataReproducer.cxx b/lib/cpPlugins/Plugins/BasicFilters/InputDataReproducer.cxx
deleted file mode 100644 (file)
index 5ecc101..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-#include "InputDataReproducer.h"
-
-#include <cpPlugins/Interface/Image.h>
-#include <cpPlugins/Interface/PointList.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::InputDataReproducer::
-InputDataReproducer( )
-  : Superclass( )
-{
-  this->_AddInput( "Input" );
-  this->_AddOutput< cpPlugins::Interface::DataObject >( "Output" );
-  this->m_Parameters->Clear( );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::InputDataReproducer::
-~InputDataReproducer( )
-{
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::BasicFilters::InputDataReproducer::
-_GenerateData( )
-{
-  auto i = this->m_Inputs.find( "Input" );
-  auto o = this->m_Outputs.find( "Output" );
-  if( i == this->m_Inputs.end( ) || o == this->m_Outputs.end( ) )
-    return( "InputDataReproducer: No input/output ports." );
-  o->second->SetITK( i->second->GetITK< itk::LightObject >( ) );
-  o->second->SetVTK( i->second->GetVTK< vtkObjectBase >( ) );
-  return( "" );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/InputDataReproducer.h b/lib/cpPlugins/Plugins/BasicFilters/InputDataReproducer.h
deleted file mode 100644 (file)
index 870266f..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__INPUTDATAREPRODUCER__H__
-#define __CPPLUGINS__PLUGINS__INPUTDATAREPRODUCER__H__
-
-#include <cpPlugins/BasicFilters/cpPluginsBasicFilters_Export.h>
-#include <cpPlugins/Interface/BaseProcessObjects.h>
-
-namespace cpPlugins
-{
-  namespace BasicFilters
-  {
-    /**
-     */
-    class cpPluginsBasicFilters_EXPORT InputDataReproducer
-      : public cpPlugins::Interface::ProcessObject
-    {
-    public:
-      typedef InputDataReproducer                 Self;
-      typedef cpPlugins::Interface::ProcessObject Superclass;
-      typedef itk::SmartPointer< Self >           Pointer;
-      typedef itk::SmartPointer< const Self >     ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro(
-        InputDataReproducer,
-        cpPluginsInterfaceProcessObject
-        );
-      cpPlugins_Id_Macro(
-        cpPlugins::BasicFilters::InputDataReproducer,
-        PortObjects
-        );
-
-    protected:
-      InputDataReproducer( );
-      virtual ~InputDataReproducer( );
-
-      virtual std::string _GenerateData( );
-
-    private:
-      // Purposely not implemented
-      InputDataReproducer( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__INPUTDATAREPRODUCER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/MacheteFilter.cxx b/lib/cpPlugins/Plugins/BasicFilters/MacheteFilter.cxx
deleted file mode 100644 (file)
index 6a077f5..0000000
+++ /dev/null
@@ -1,310 +0,0 @@
-#include "MacheteFilter.h"
-
-#include <cpPlugins/Interface/DataObject.h>
-#include <cpPlugins/Interface/Image.h>
-#include <cpPlugins/Interface/Mesh.h>
-
-#include <cpExtensions/Interaction/ImageInteractorStyle.h>
-#include <cpExtensions/DataStructures/InfinitePlaneSpatialObject.h>
-#include <cpExtensions/Algorithms/SpatialObjectMaskImageFilter.h>
-
-#include <itkPlaneSpatialObject.h>
-#include <itkPoint.h>
-#include <itkVector.h>
-
-#include <vtkInteractorStyleSwitch.h>
-#include <vtkPlaneWidget.h>
-#include <vtkRenderWindowInteractor.h>
-
-#ifdef cpPlugins_Interface_QT4
-#include <QDialogButtonBox>
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::MacheteFilter_Dialog::
-MacheteFilter_Dialog(
-  QWidget* parent, MacheteFilter* filter, Qt::WindowFlags f
-  )
-  : QDialog( parent, f | Qt::WindowStaysOnTopHint ),
-    m_Filter( filter )
-{
-  this->m_Title = new QLabel( this );
-  this->m_Title->setText( "Execute machete filter" );
-
-  this->m_MainLayout = new QGridLayout( this );
-  this->m_ToolsLayout = new QVBoxLayout( );
-  this->m_ToolsLayout->addWidget( this->m_Title );
-  this->m_MainLayout->addLayout( this->m_ToolsLayout, 0, 0, 1, 1 );
-
-  // Add buttons
-  QDialogButtonBox* bb = new QDialogButtonBox(
-    QDialogButtonBox::Cancel | QDialogButtonBox::Ok
-    );
-  QObject::connect( bb, SIGNAL( accepted( ) ), this, SLOT( accept( ) ) );
-  QObject::connect( bb, SIGNAL( rejected( ) ), this, SLOT( reject( ) ) );
-  this->m_ToolsLayout->addWidget( bb );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::MacheteFilter_Dialog::
-~MacheteFilter_Dialog( )
-{
-  delete this->m_Title;
-  delete this->m_ToolsLayout;
-  delete this->m_MainLayout;
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::BasicFilters::MacheteFilter_Dialog::
-accept( )
-{
-  // Get interactive widget
-  if( this->m_Filter == NULL )
-    return;
-  vtkPlaneWidget* wdg = this->m_Filter->m_PlaneWidget;
-  if( wdg == NULL )
-    return;
-
-  // Get/Set plane parameters
-  double center[ 3 ], normal[ 3 ];
-  wdg->GetCenter( center );
-  wdg->GetNormal( normal );
-
-  /* TODO
-     this->m_Filter->GetParameters( )->SetPoint( "PlaneCenter", 3, center );
-     this->m_Filter->GetParameters( )->SetVector( "PlaneNormal", 3, normal );
-  */
-
-  // Update filter
-  /* TODO
-     auto plugins = this->m_Filter->GetPlugins( );
-     if( plugins != NULL )
-     {
-     auto app = plugins->GetApplication( );
-     if( app != NULL )
-     app->UpdateActualFilter( );
-
-     } // fi
-  */
-}
-
-// -------------------------------------------------------------------------
-void cpPlugins::BasicFilters::MacheteFilter_Dialog::
-reject( )
-{
-  /*
-  auto plugins = this->m_Filter->GetPlugins( );
-  if( plugins != NULL )
-    plugins->DeactivateFilter( );
-  */
-  this->Superclass::reject( );
-}
-
-#endif // cpPlugins_Interface_QT4
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::MacheteFilter::
-DialogResult cpPlugins::BasicFilters::MacheteFilter::
-ExecConfigurationDialog( QWidget* parent )
-{
-#ifdef cpPlugins_Interface_QT4
-
-  typedef cpExtensions::Interaction::ImageInteractorStyle _TImageStyle;
-
-  // Choose a valid 3D interactor
-  vtkRenderWindowInteractor* iren = NULL;
-  /* TODO
-  auto iIt = this->m_Interactors.begin( );
-  for( ; iIt != this->m_Interactors.end( ) && iren == NULL; ++iIt )
-  {
-    _TImageStyle* istyle =
-      dynamic_cast< _TImageStyle* >(
-        ( *iIt )->GetInteractorStyle( )
-        );
-    if( istyle == NULL )
-      iren = *iIt;
-    
-  } // rof
-  */
-  if( iren == NULL )
-    return( false );
-  
-  // Get bounding box
-  double bbox[ 6 ];
-  auto image = this->GetInputData( "Input" );
-  bool input_found = false;
-  if( image != NULL )
-  {
-    image->GetVTK< vtkImageData >( )->GetBounds( bbox );
-    input_found = true;
-
-  } // fi
-  auto mesh = this->GetInputData( "Input" );
-  if( mesh != NULL )
-  {
-    mesh->GetVTK< vtkPolyData >( )->GetBounds( bbox );
-    input_found = true;
-
-  } // fi
-  if( !input_found )
-    return( false );
-
-  // Create plane widget
-  if( this->m_PlaneWidget != NULL )
-    this->m_PlaneWidget->Delete( );
-  this->m_PlaneWidget = vtkPlaneWidget::New( );
-  this->m_PlaneWidget->NormalToXAxisOn( );
-  this->m_PlaneWidget->SetCenter(
-    ( bbox[ 1 ] + bbox[ 0 ] ) * double( 0.5 ),
-    ( bbox[ 3 ] + bbox[ 2 ] ) * double( 0.5 ),
-    ( bbox[ 5 ] + bbox[ 4 ] ) * double( 0.5 )
-    );
-  this->m_PlaneWidget->SetOrigin(
-    ( bbox[ 1 ] + bbox[ 0 ] ) * double( 0.5 ),
-    bbox[ 2 ],
-    bbox[ 4 ]
-    );
-  this->m_PlaneWidget->SetPoint1(
-    ( bbox[ 1 ] + bbox[ 0 ] ) * double( 0.5 ),
-    bbox[ 3 ],
-    bbox[ 4 ]
-    );
-  this->m_PlaneWidget->SetPoint2(
-    ( bbox[ 1 ] + bbox[ 0 ] ) * double( 0.5 ),
-    bbox[ 2 ],
-    bbox[ 5 ]
-    );
-  this->m_PlaneWidget->SetResolution( 15 );
-  this->m_PlaneWidget->SetRepresentationToWireframe( );
-  this->m_PlaneWidget->SetInteractor( iren );
-  this->m_PlaneWidget->PlaceWidget( );
-  this->m_PlaneWidget->On( );
-
-  this->m_Dialog = new MacheteFilter_Dialog( NULL, this );
-  this->m_Dialog->show( );
-
-  return( true );
-#else // cpPlugins_Interface_QT4
-  return( false );
-#endif // cpPlugins_Interface_QT4
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::MacheteFilter::
-MacheteFilter( )
-  : Superclass( ),
-    m_PlaneWidget( NULL )
-{
-  this->_AddInput( "Input" );
-  this->_AddOutput< cpPlugins::Interface::DataObject >( "PositiveOutput" );
-  this->_AddOutput< cpPlugins::Interface::DataObject >( "NegativeOutput" );
-
-  /*
-  this->m_Parameters->ConfigureAsPoint( "PlaneCenter" );
-  this->m_Parameters->ConfigureAsVector( "PlaneNormal" );
-  */
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::MacheteFilter::
-~MacheteFilter( )
-{
-  if( this->m_PlaneWidget != NULL )
-    this->m_PlaneWidget->Delete( );
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::BasicFilters::MacheteFilter::
-_GenerateData( )
-{
-  auto image = this->GetInputData( "Input" );
-  if( image != NULL )
-    return( this->_FromImage( image ) );
-  auto mesh = this->GetInputData( "Input" );
-  if( mesh == NULL )
-    return( this->_FromMesh( mesh ) );
-  return( "MacheteFilter: No valid input." );
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::BasicFilters::MacheteFilter::
-_FromImage( cpPlugins::Interface::DataObject* image )
-{
-  itk::DataObject* itk_image = NULL;
-  std::string r = "";
-  cpPlugins_Image_Demangle_AllScalarTypes( 2, image, itk_image, r, _RealImage );
-  else cpPlugins_Image_Demangle_AllScalarTypes( 3, image, itk_image, r, _RealImage );
-  else r = "MacheteFilter: Input image type not supported.";
-  return( r );
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::BasicFilters::MacheteFilter::
-_FromMesh( cpPlugins::Interface::DataObject* mesh )
-{
-  return( "" );
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-std::string cpPlugins::BasicFilters::MacheteFilter::
-_RealImage( itk::DataObject* dobj )
-{
-  typedef
-    cpExtensions::DataStructures::
-    InfinitePlaneSpatialObject< I::ImageDimension > _TPlane;
-  typedef
-    cpExtensions::Algorithms::
-    SpatialObjectMaskImageFilter< I, I > _TFilter;
-  typedef cpPlugins::Interface::DataObject _TObj;
-  typedef cpPlugins::Interface::Image      _TImage;
-  typedef typename _TPlane::PointType      _TPoint;
-  typedef typename _TPlane::VectorType     _TVector;
-  typedef typename I::PixelType            _TPixel;
-
-  I* image = dynamic_cast< I* >( dobj );
-
-  /*
-  _TPoint c = this->m_Parameters->GetPoint< _TPoint >(
-    "PlaneCenter", I::ImageDimension
-    );
-  _TVector n = this->m_Parameters->GetVector< _TVector >(
-    "PlaneNormal", I::ImageDimension
-    );
-  */
-  _TPoint c;
-  _TVector n;
-
-  typename _TPlane::Pointer plane = _TPlane::New( );
-  plane->SetCenter( c );
-  plane->SetNormal( n );
-
-  // Configure filter
-  _TFilter* filter = this->_CreateITK< _TFilter >( );
-  filter->SetInput( image );
-  filter->SetSpatialObject( plane );
-  filter->SetOutsideValue( _TPixel( 0 ) );
-  filter->Update( );
-
-  // Connect outputs (and correct their types and names)
-  _TObj* pos_out = this->GetOutputData( "PositiveOutput" );
-  if( pos_out == NULL )
-  {
-    this->_AddOutput< _TImage >( "PositiveOutput" );
-    pos_out = this->GetOutputData( "PositiveOutput" );
-
-  } // fi
-  _TObj* neg_out = this->GetOutputData( "NegativeOutput" );
-  if( neg_out == NULL )
-  {
-    this->_AddOutput< _TImage >( "NegativeOutput" );
-    neg_out = this->GetOutputData( "NegativeOutput" );
-
-  } // fi
-
-  // Assign outputs
-  pos_out->SetITK( filter->GetPositiveOutput( ) );
-  neg_out->SetITK( filter->GetNegativeOutput( ) );
-  return( "" );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/MacheteFilter.h b/lib/cpPlugins/Plugins/BasicFilters/MacheteFilter.h
deleted file mode 100644 (file)
index 05068a4..0000000
+++ /dev/null
@@ -1,115 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__MACHETEFILTER__H__
-#define __CPPLUGINS__PLUGINS__MACHETEFILTER__H__
-
-#include <cpPlugins/BasicFilters/cpPluginsBasicFilters_Export.h>
-#include <cpPlugins/Interface/BaseProcessObjects.h>
-
-#include <cpPlugins/Interface/Config.h>
-
-#ifdef cpPlugins_Interface_QT4
-#include <QDialog>
-#include <QGridLayout>
-#include <QLabel>
-#include <QVBoxLayout>
-#endif // cpPlugins_Interface_QT4
-
-// Some forward declarations
-class vtkPlaneWidget;
-
-namespace cpPlugins
-{
-  // Some forward declarations
-  namespace Interface
-  {
-    class Image;
-    class Mesh;
-
-  } // ecapseman
-
-  namespace BasicFilters
-  {
-#ifdef cpPlugins_Interface_QT4
-    class MacheteFilter;
-
-    /**
-     */
-    class MacheteFilter_Dialog
-      : public QDialog
-    {
-      Q_OBJECT;
-
-    public:
-      typedef QDialog Superclass;
-
-    public:
-      MacheteFilter_Dialog(
-        QWidget* parent, MacheteFilter* filter, Qt::WindowFlags f = 0
-        );
-      virtual ~MacheteFilter_Dialog( );
-
-    public slots:
-      virtual void accept( );
-      virtual void reject( );
-
-    protected:
-      MacheteFilter* m_Filter;
-      QLabel* m_Title;
-      QGridLayout* m_MainLayout;
-      QVBoxLayout* m_ToolsLayout;
-    };
-#endif // cpPlugins_Interface_QT4
-
-    /**
-     */
-    class cpPluginsBasicFilters_EXPORT MacheteFilter
-      : public cpPlugins::Interface::FilterObject
-    {
-      friend class MacheteFilter_Dialog;
-
-    public:
-      typedef MacheteFilter                      Self;
-      typedef cpPlugins::Interface::FilterObject Superclass;
-      typedef itk::SmartPointer< Self >          Pointer;
-      typedef itk::SmartPointer< const Self >    ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( MacheteFilter, FilterObject );
-      cpPlugins_Id_Macro(
-        cpPlugins::BasicFilters::MacheteFilter, FilterObject
-        );
-
-    public:
-      virtual DialogResult ExecConfigurationDialog( QWidget* parent );
-
-    protected:
-      MacheteFilter( );
-      virtual ~MacheteFilter( );
-
-      virtual std::string _GenerateData( );
-
-      std::string _FromImage( cpPlugins::Interface::DataObject* image );
-      std::string _FromMesh( cpPlugins::Interface::DataObject* mesh );
-
-      template< class I >
-        inline std::string _RealImage( itk::DataObject* dobj );
-
-    private:
-      // Purposely not implemented
-      MacheteFilter( const Self& );
-      Self& operator=( const Self& );
-
-    protected:
-#ifdef cpPlugins_Interface_QT4
-      vtkPlaneWidget*       m_PlaneWidget;
-      MacheteFilter_Dialog* m_Dialog;
-#endif // cpPlugins_Interface_QT4
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__MACHETEFILTER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/MacheteImageFilter.cxx b/lib/cpPlugins/Plugins/BasicFilters/MacheteImageFilter.cxx
deleted file mode 100644 (file)
index ea7bc98..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-#include "MacheteImageFilter.h"
-#include <cpPlugins/Interface/Image.h>
-
-//#include <MacheteImageFilter.h>
-#include <itkImage.h>
-#include <itkBinaryBallStructuringElement.h>
-
-#include <cpExtensions/Algorithms/MacheteImageFilter.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::MacheteImageFilter::
-MacheteImageFilter()
-: Superclass()
-{
-  this->_AddInput( "Input" );
-  this->_AddOutput< cpPlugins::Interface::Image >("Output");
-
-  this->m_Parameters->ConfigureAsReal("Radius");
-  //this->m_Parameters->ConfigureAsPoint("Point", 3, 3);
-  this->m_Parameters->ConfigureAsReal("X");
-  this->m_Parameters->ConfigureAsReal("Y");
-  this->m_Parameters->ConfigureAsReal("Z");
-
-  this->m_Parameters->SetReal("Radius", 20);
-  //this->m_Parameters->SetPoint("Point", 3, 3);
-  this->m_Parameters->SetReal("X", 30);
-  this->m_Parameters->SetReal("Y", 30);
-  this->m_Parameters->SetReal("Z", 30);
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::MacheteImageFilter::
-~MacheteImageFilter()
-{
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::BasicFilters::MacheteImageFilter::
-_GenerateData()
-{
-  auto image = this->GetInputData("Input");
-  itk::DataObject* itk_image = NULL;
-  std::string r = "";
-  cpPlugins_Image_Demangle_AllScalarTypes(2, image, itk_image, r, _GD0);
-  else cpPlugins_Image_Demangle_AllScalarTypes(3, image, itk_image, r, _GD0);
-  else cpPlugins_Image_Demangle_AllScalarTypes(4, image, itk_image, r, _GD0);
-  else r = "MacheteImageFilter: Input image type not supported.";
-  return(r);
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-std::string cpPlugins::BasicFilters::MacheteImageFilter::
-_GD0(itk::DataObject* image)
-{
-  return(
-    this->_RealGD< I, itk::Image< unsigned char, I::ImageDimension > >(
-      image
-      )
-    );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-inline std::string cpPlugins::BasicFilters::MacheteImageFilter::
-_RealGD(itk::DataObject* image)
-{
-  typedef cpExtensions::Algorithms::MacheteImageFilter< I, O > _F;
-  typedef typename I::PixelType _RT;
-
-  // Get parameters
-
-  _RT rad_val = _RT(this->m_Parameters->GetReal("Radius"));
-  
-  double pointx = this->m_Parameters->GetReal("X");
-  double pointy = this->m_Parameters->GetReal("Y");
-  double pointz = this->m_Parameters->GetReal("Z");
-
-  // Configure filter
-    _F* filter = this->_CreateITK< _F >();
-  filter->SetInput(dynamic_cast<I*>(image));
-  filter->SetRadius(rad_val);
-   
-  filter->SetPoint(pointx, pointy, pointz);
-
-  filter->Update();
-
-  // Connect output
-  auto out = this->GetOutputData("Output");
-  out->SetITK( filter->GetOutput( ) );
-  return("");
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/MacheteImageFilter.h b/lib/cpPlugins/Plugins/BasicFilters/MacheteImageFilter.h
deleted file mode 100644 (file)
index faf1b34..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__MACHETEIMAGEFILTER__H__
-#define __CPPLUGINS__PLUGINS__MACHETEIMAGEFILTER__H__
-
-#include <cpPlugins/BasicFilters/cpPluginsBasicFilters_Export.h>
-#include <cpPlugins/Interface/BaseProcessObjects.h>
-
-namespace cpPlugins
-{
-  namespace BasicFilters
-  {
-    /**
-     */
-    class cpPluginsBasicFilters_EXPORT MacheteImageFilter
-      : public cpPlugins::Interface::ImageToImageFilter
-    {
-    public:
-      typedef MacheteImageFilter                       Self;
-      typedef cpPlugins::Interface::ImageToImageFilter Superclass;
-      typedef itk::SmartPointer< Self >                Pointer;
-      typedef itk::SmartPointer< const Self >          ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro(
-        MacheteImageFilter,
-        cpPluginsInterfaceImageToImageFilter
-        );
-      cpPlugins_Id_Macro(
-        cpPlugins::BasicFilters::MacheteImageFilter,
-        ImageToBinaryImageFilter
-        );
-
-    protected:
-      MacheteImageFilter( );
-      virtual ~MacheteImageFilter( );
-
-      virtual std::string _GenerateData( );
-
-      template< class I >
-        inline std::string _GD0( itk::DataObject* image );
-
-      template< class I, class O >
-        inline std::string _RealGD( itk::DataObject* image );
-
-    private:
-      // Purposely not implemented
-      MacheteImageFilter( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__MacheteImageFilter__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/MarchingCubes.cxx b/lib/cpPlugins/Plugins/BasicFilters/MarchingCubes.cxx
deleted file mode 100644 (file)
index f05296e..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-#include "MarchingCubes.h"
-#include <cpPlugins/Interface/Image.h>
-#include <cpPlugins/Interface/Mesh.h>
-
-#include <vtkImageData.h>
-#include <vtkMarchingCubes.h>
-#include <vtkMarchingSquares.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::MarchingCubes::
-MarchingCubes( )
-  : Superclass( )
-{
-  this->_AddInput( "Input" );
-  this->_AddOutput< cpPlugins::Interface::Mesh >( "Output" );
-
-  this->m_Parameters->ConfigureAsRealList( "Thresholds" );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::MarchingCubes::
-~MarchingCubes( )
-{
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::BasicFilters::MarchingCubes::
-_GenerateData( )
-{
-  // Get input
-  auto image = this->GetInputData( "Input" );
-  vtkImageData* vtk_image = image->GetVTK< vtkImageData >( );
-  if( vtk_image == NULL )
-    return( "MarchingCubes: Input does not have a valid VTK conversion." );
-
-  std::vector< double > values =
-    this->m_Parameters->GetRealList( "Thresholds" );
-  vtkPolyData* pd = NULL;
-  if( vtk_image->GetDataDimension( ) == 2 )
-  {
-    vtkMarchingSquares* ms = this->_CreateVTK< vtkMarchingSquares >( );
-    ms->SetInputData( vtk_image );
-    for( unsigned int i = 0; i < values.size( ); ++i )
-      ms->SetValue( i, values[ i ] );
-    ms->Update( );
-    pd = ms->GetOutput( );
-  }
-  else if( vtk_image->GetDataDimension( ) == 3 )
-  {
-    vtkMarchingCubes* mc = this->_CreateVTK< vtkMarchingCubes >( );
-    mc->ComputeNormalsOff( );
-    mc->SetInputData( vtk_image );
-    for( unsigned int i = 0; i < values.size( ); ++i )
-      mc->SetValue( i, values[ i ] );
-    mc->Update( );
-    pd = mc->GetOutput( );
-  }
-  else
-    return( "MarchingCubes: Input data does not have a valid dimension." );
-
-  // Execute filter
-  auto out = this->GetOutputData( "Output" );
-  out->SetVTK( pd );
-  return( "" );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/MarchingCubes.h b/lib/cpPlugins/Plugins/BasicFilters/MarchingCubes.h
deleted file mode 100644 (file)
index 176b6dd..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__MARCHINGCUBES__H__
-#define __CPPLUGINS__PLUGINS__MARCHINGCUBES__H__
-
-#include <cpPlugins/BasicFilters/cpPluginsBasicFilters_Export.h>
-#include <cpPlugins/Interface/BaseProcessObjects.h>
-
-namespace cpPlugins
-{
-  namespace BasicFilters
-  {
-    /**
-     */
-    class cpPluginsBasicFilters_EXPORT MarchingCubes
-      : public cpPlugins::Interface::ImageToMeshFilter
-    {
-    public:
-      typedef MarchingCubes                           Self;
-      typedef cpPlugins::Interface::ImageToMeshFilter Superclass;
-      typedef itk::SmartPointer< Self >               Pointer;
-      typedef itk::SmartPointer< const Self >         ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( MarchingCubes, cpPluginsInterfaceImageToMeshFilter );
-      cpPlugins_Id_Macro(
-        cpPlugins::BasicFilters::MarchingCubes, ImageToMeshFilter
-        );
-
-    protected:
-      MarchingCubes( );
-      virtual ~MarchingCubes( );
-
-      virtual std::string _GenerateData( );
-
-    private:
-      // Purposely not implemented
-      MarchingCubes( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__MARCHINGCUBES__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/MedianImageFilter.cxx b/lib/cpPlugins/Plugins/BasicFilters/MedianImageFilter.cxx
deleted file mode 100644 (file)
index a7fdb3b..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-#include "MedianImageFilter.h"
-#include <cpPlugins/Interface/Image.h>
-
-#include <itkMedianImageFilter.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::MedianImageFilter::
-MedianImageFilter( )
-  : Superclass( )
-{
-  this->_AddInput( "Input" );
-  this->_AddOutput< cpPlugins::Interface::Image >( "Output" );
-
-  this->m_Parameters->ConfigureAsUint( "Radius" );
-  this->m_Parameters->SetUint( "Radius", 3 );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::MedianImageFilter::
-~MedianImageFilter( )
-{
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::BasicFilters::MedianImageFilter::
-_GenerateData( )
-{
-  auto image = this->GetInputData( "Input" );
-  itk::DataObject* itk_image = NULL;
-  std::string r = "";
-  cpPlugins_Image_Demangle_AllScalarTypes( 2, image, itk_image, r, _GD0 );
-  else cpPlugins_Image_Demangle_AllScalarTypes( 3, image, itk_image, r, _GD0 );
-  else cpPlugins_Image_Demangle_AllScalarTypes( 4, image, itk_image, r, _GD0 );
-  else r = "MedianImageFilter: Input image type not supported.";
-  return( r );
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-std::string cpPlugins::BasicFilters::MedianImageFilter::
-_GD0( itk::DataObject* image )
-{
-  return(
-    this->_RealGD< I, itk::Image< unsigned char, I::ImageDimension > >(
-      image
-      )
-    );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-inline std::string cpPlugins::BasicFilters::MedianImageFilter::
-_RealGD( itk::DataObject* image )
-{
-  typedef itk::MedianImageFilter< I, O > _F;
-  typedef typename _F::RadiusType _RT;
-
-  // Get parameters
-  _RT rad_val;
-  rad_val.Fill( this->m_Parameters->GetUint( "Radius" ) );
-
-  // Configure filter
-  _F* filter = this->_CreateITK< _F >( );
-  filter->SetInput( dynamic_cast< I* >( image ) );
-  filter->SetRadius( rad_val );
-  filter->Update( );
-
-  // Connect output
-  auto out = this->GetOutputData( "Output" );
-  out->SetITK( filter->GetOutput( ) );
-  return( "" );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/MedianImageFilter.h b/lib/cpPlugins/Plugins/BasicFilters/MedianImageFilter.h
deleted file mode 100644 (file)
index fa7d601..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__MEDIANIMAGEFILTER__H__
-#define __CPPLUGINS__PLUGINS__MEDIANIMAGEFILTER__H__
-
-#include <cpPlugins/BasicFilters/cpPluginsBasicFilters_Export.h>
-#include <cpPlugins/Interface/BaseProcessObjects.h>
-
-namespace cpPlugins
-{
-  namespace BasicFilters
-  {
-    /**
-     */
-    class cpPluginsBasicFilters_EXPORT MedianImageFilter
-      : public cpPlugins::Interface::ImageToImageFilter
-    {
-    public:
-      typedef MedianImageFilter                        Self;
-      typedef cpPlugins::Interface::ImageToImageFilter Superclass;
-      typedef itk::SmartPointer< Self >                Pointer;
-      typedef itk::SmartPointer< const Self >          ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro(
-        MedianImageFilter,
-        cpPluginsInterfaceImageToImageFilter
-        );
-      cpPlugins_Id_Macro(
-        cpPlugins::BasicFilters::MedianImageFilter,
-        ImageToBinaryImageFilter
-        );
-
-    protected:
-      MedianImageFilter( );
-      virtual ~MedianImageFilter( );
-
-      virtual std::string _GenerateData( );
-
-      template< class I >
-        inline std::string _GD0( itk::DataObject* image );
-
-      template< class I, class O >
-        inline std::string _RealGD( itk::DataObject* image );
-
-    private:
-      // Purposely not implemented
-      MedianImageFilter( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__MEDIANIMAGEFILTER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/MultiplyImageFilter.cxx b/lib/cpPlugins/Plugins/BasicFilters/MultiplyImageFilter.cxx
deleted file mode 100644 (file)
index c1822ed..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-#include "MultiplyImageFilter.h"
-#include <cpPlugins/Interface/Image.h>
-
-#include <itkMultiplyImageFilter.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::MultiplyImageFilter::
-MultiplyImageFilter( )
-  : Superclass( )
-{
-  this->_AddInput( "Input0" );
-  this->_AddInput( "Input1", false );
-  this->_AddOutput< cpPlugins::Interface::Image >( "Output" );
-
-  this->m_Parameters->ConfigureAsReal( "Constant" );
-  this->m_Parameters->SetReal( "Constant", 1 );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::MultiplyImageFilter::
-~MultiplyImageFilter( )
-{
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::BasicFilters::MultiplyImageFilter::
-_GenerateData( )
-{
-  auto image = this->GetInputData( "Input0" );
-  itk::DataObject* itk_image = NULL;
-  std::string r = "";
-  cpPlugins_Image_Demangle_AllScalarTypes( 2, image, itk_image, r, _GD0 );
-  else cpPlugins_Image_Demangle_AllScalarTypes( 3, image, itk_image, r, _GD0 );
-  else cpPlugins_Image_Demangle_AllScalarTypes( 4, image, itk_image, r, _GD0 );
-  else r = "MultiplyImageFilter: Input image type not supported.";
-  return( r );
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-std::string cpPlugins::BasicFilters::MultiplyImageFilter::
-_GD0( itk::DataObject* image )
-{
-  return( this->_RealGD< I, I >( image ) );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-inline std::string cpPlugins::BasicFilters::MultiplyImageFilter::
-_RealGD( itk::DataObject* image )
-{
-  typedef itk::MultiplyImageFilter< I, I, O > _F;
-  typedef typename I::PixelType _IP;
-
-  // Get parameters
-  _IP c = _IP( this->m_Parameters->GetReal( "Constant" ) );
-
-  // Configure filter
-  _F* filter = this->_CreateITK< _F >( );
-  filter->SetInput( dynamic_cast< I* >( image ) );
-  filter->SetConstant( c );
-  filter->Update( );
-
-  // Connect output
-  auto out = this->GetOutputData( "Output" );
-  out->SetITK( filter->GetOutput( ) );
-  return( "" );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/MultiplyImageFilter.h b/lib/cpPlugins/Plugins/BasicFilters/MultiplyImageFilter.h
deleted file mode 100644 (file)
index 7d67aa8..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__MULTIPLYIMAGEFILTER__H__
-#define __CPPLUGINS__PLUGINS__MULTIPLYIMAGEFILTER__H__
-
-#include <cpPlugins/BasicFilters/cpPluginsBasicFilters_Export.h>
-#include <cpPlugins/Interface/BaseProcessObjects.h>
-
-namespace cpPlugins
-{
-  namespace BasicFilters
-  {
-    /**
-     */
-    class cpPluginsBasicFilters_EXPORT MultiplyImageFilter
-      : public cpPlugins::Interface::ImageToImageFilter
-    {
-    public:
-      typedef MultiplyImageFilter               Self;
-      typedef cpPlugins::Interface::ImageToImageFilter Superclass;
-      typedef itk::SmartPointer< Self >                Pointer;
-      typedef itk::SmartPointer< const Self >          ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro(
-        MultiplyImageFilter,
-        cpPluginsInterfaceImageToImageFilter
-        );
-      cpPlugins_Id_Macro(
-        cpPlugins::BasicFilters::MultiplyImageFilter,
-        ImageToImageFilter
-        );
-
-    protected:
-      MultiplyImageFilter( );
-      virtual ~MultiplyImageFilter( );
-
-      virtual std::string _GenerateData( );
-
-      template< class I >
-        inline std::string _GD0( itk::DataObject* image );
-
-      template< class I, class O >
-        inline std::string _RealGD( itk::DataObject* image );
-
-    private:
-      // Purposely not implemented
-      MultiplyImageFilter( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__MULTIPLYIMAGEFILTER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/OtsuThresholdImageFilter.cxx b/lib/cpPlugins/Plugins/BasicFilters/OtsuThresholdImageFilter.cxx
deleted file mode 100644 (file)
index 6ce525a..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-#include "OtsuThresholdImageFilter.h"
-#include <cpPlugins/Interface/Image.h>
-
-#include <itkOtsuThresholdImageFilter.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::OtsuThresholdImageFilter::
-OtsuThresholdImageFilter( )
-  : Superclass( )
-{
-  this->_AddInput( "Input" );
-  this->_AddOutput< cpPlugins::Interface::Image >( "Output" );
-
-  this->m_Parameters->ConfigureAsUint( "NumberOfHistogramBins" );
-  this->m_Parameters->ConfigureAsUint( "InsideValue" );
-  this->m_Parameters->ConfigureAsUint( "OutsideValue" );
-
-  this->m_Parameters->SetUint( "NumberOfHistogramBins", 100 );
-  this->m_Parameters->SetUint( "InsideValue", 255 );
-  this->m_Parameters->SetUint( "OutsideValue", 0 );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::OtsuThresholdImageFilter::
-~OtsuThresholdImageFilter( )
-{
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::BasicFilters::OtsuThresholdImageFilter::
-_GenerateData( )
-{
-  auto image = this->GetInputData( "Input" );
-  itk::DataObject* itk_image = NULL;
-  std::string r = "";
-  cpPlugins_Image_Demangle_AllScalarTypes( 2, image, itk_image, r, _GD0 );
-  else cpPlugins_Image_Demangle_AllScalarTypes( 3, image, itk_image, r, _GD0 );
-  else cpPlugins_Image_Demangle_AllScalarTypes( 4, image, itk_image, r, _GD0 );
-  else r = "OtsuThresholdImageFilter: Input image type not supported.";
-  return( r );
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-std::string cpPlugins::BasicFilters::OtsuThresholdImageFilter::
-_GD0( itk::DataObject* image )
-{
-  return(
-    this->_RealGD< I, itk::Image< unsigned char, I::ImageDimension > >(
-      image
-      )
-    );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-inline std::string cpPlugins::BasicFilters::OtsuThresholdImageFilter::
-_RealGD( itk::DataObject* image )
-{
-  typedef itk::OtsuThresholdImageFilter< I, O > _F;
-  typedef typename O::PixelType _OP;
-
-  // Get parameters
-  unsigned int bins = this->m_Parameters->GetUint( "NumberOfHistogramBins" );
-  _OP in_val = _OP( this->m_Parameters->GetUint( "InsideValue" ) );
-  _OP out_val = _OP( this->m_Parameters->GetUint( "OutsideValue" ) );
-
-  // Configure filter
-  _F* filter = this->_CreateITK< _F >( );
-  filter->SetInput( dynamic_cast< I* >( image ) );
-  filter->SetNumberOfHistogramBins( bins );
-  filter->SetInsideValue( out_val ); // WARNING: these are inverted
-  filter->SetOutsideValue( in_val );
-  filter->Update( );
-
-  // Connect output
-  auto out = this->GetOutputData( "Output" );
-  out->SetITK( filter->GetOutput( ) );
-  return( "" );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/OtsuThresholdImageFilter.h b/lib/cpPlugins/Plugins/BasicFilters/OtsuThresholdImageFilter.h
deleted file mode 100644 (file)
index dd37f13..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__OTSUTHRESHOLDIMAGEFILTER__H__
-#define __CPPLUGINS__PLUGINS__OTSUTHRESHOLDIMAGEFILTER__H__
-
-#include <cpPlugins/BasicFilters/cpPluginsBasicFilters_Export.h>
-#include <cpPlugins/Interface/BaseProcessObjects.h>
-
-namespace cpPlugins
-{
-  namespace BasicFilters
-  {
-    /**
-     */
-    class cpPluginsBasicFilters_EXPORT OtsuThresholdImageFilter
-      : public cpPlugins::Interface::ImageToImageFilter
-    {
-    public:
-      typedef OtsuThresholdImageFilter                 Self;
-      typedef cpPlugins::Interface::ImageToImageFilter Superclass;
-      typedef itk::SmartPointer< Self >                Pointer;
-      typedef itk::SmartPointer< const Self >          ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro(
-        OtsuThresholdImageFilter,
-        cpPluginsInterfaceImageToImageFilter
-        );
-      cpPlugins_Id_Macro(
-        cpPlugins::BasicFilters::OtsuThresholdImageFilter,
-        ImageToBinaryImageFilter
-        );
-
-    protected:
-      OtsuThresholdImageFilter( );
-      virtual ~OtsuThresholdImageFilter( );
-
-      virtual std::string _GenerateData( );
-
-      template< class I >
-        inline std::string _GD0( itk::DataObject* image );
-
-      template< class I, class O >
-        inline std::string _RealGD( itk::DataObject* image );
-
-    private:
-      // Purposely not implemented
-      OtsuThresholdImageFilter( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__OTSUTHRESHOLDIMAGEFILTER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/RGBImageToOtherChannelsFilter.cxx b/lib/cpPlugins/Plugins/BasicFilters/RGBImageToOtherChannelsFilter.cxx
deleted file mode 100644 (file)
index 92b8ac5..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-#include "RGBImageToOtherChannelsFilter.h"
-#include <cpPlugins/Interface/Image.h>
-
-#include <cpExtensions/Algorithms/RGBImageToOtherChannelsFilter.h>
-#include <cpExtensions/Algorithms/RGBExtractFunction.h>
-#include <cpExtensions/Algorithms/RGBToHSVFunction.h>
-#include <cpExtensions/Algorithms/RGBToYPbPrFunction.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::RGBImageToOtherChannelsFilter::
-RGBImageToOtherChannelsFilter( )
-  : Superclass( )
-{
-  this->_AddInput( "Input" );
-  this->_AddOutput< cpPlugins::Interface::Image >( "Output" );
-
-  std::vector< std::string > choices;
-  choices.push_back( "HSV" );
-  choices.push_back( "YPbPr" );
-  this->m_Parameters->ConfigureAsChoices( "OutChannel", choices );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::RGBImageToOtherChannelsFilter::
-~RGBImageToOtherChannelsFilter( )
-{
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::BasicFilters::RGBImageToOtherChannelsFilter::
-_GenerateData( )
-{
-  auto image = this->GetInputData( "Input" );
-  itk::DataObject* itk_image = NULL;
-  std::string r = "";
-  cpPlugins_Image_Demangle_AllRGBTypes( 2, image, itk_image, r, _GD0 );
-  else cpPlugins_Image_Demangle_AllRGBTypes( 3, image, itk_image, r, _GD0 );
-  else cpPlugins_Image_Demangle_AllRGBTypes( 4, image, itk_image, r, _GD0 );
-  else r = "RGBImageToOtherChannelsFilter: Input image type not supported.";
-  return( r );
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-std::string cpPlugins::BasicFilters::RGBImageToOtherChannelsFilter::
-_GD0( itk::DataObject* image )
-{
-  typedef typename I::PixelType _P;
-
-  std::string outc = this->m_Parameters->GetSelectedChoice( "OutChannel" );
-  std::string r = "";
-
-  using namespace cpExtensions::Algorithms;
-  if( outc == "HSV" )
-    r = this->_RealGD< I, RGBToHSVFunction< _P > >( image );
-  else if( outc == "YPbPr" )
-    r = this->_RealGD< I, RGBToYPbPrFunction< _P > >( image );
-  else if( outc == "Copy" )
-    r = this->_RealGD< I, RGBExtractFunction< _P > >( image );
-  else
-    r =
-      std::string( "RGBImageToOtherChannelsFilter: Conversor not available: " ) +
-      outc;
-  return( r );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class C >
-std::string cpPlugins::BasicFilters::RGBImageToOtherChannelsFilter::
-_RealGD( itk::DataObject* image )
-{
-  typedef itk::Image< itk::RGBPixel< double >, I::ImageDimension > _O;
-  typedef
-    cpExtensions::Algorithms::RGBImageToOtherChannelsFilter< I, _O, C >
-    _F;
-
-  // Configure filter
-  _F* filter = this->_CreateITK< _F >( );
-  filter->SetInput( dynamic_cast< I* >( image ) );
-  filter->Update( );
-
-  // Connect output
-  auto out = this->GetOutputData( "Output" );
-  out->SetITK( filter->GetOutput( ) );
-  return( "" );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/RGBImageToOtherChannelsFilter.h b/lib/cpPlugins/Plugins/BasicFilters/RGBImageToOtherChannelsFilter.h
deleted file mode 100644 (file)
index 1d035e4..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__RGBIMAGETOOTHERCHANNELSFILTER__H__
-#define __CPPLUGINS__PLUGINS__RGBIMAGETOOTHERCHANNELSFILTER__H__
-
-#include <cpPlugins/BasicFilters/cpPluginsBasicFilters_Export.h>
-#include <cpPlugins/Interface/BaseProcessObjects.h>
-
-namespace cpPlugins
-{
-  namespace BasicFilters
-  {
-    /**
-     */
-    class cpPluginsBasicFilters_EXPORT RGBImageToOtherChannelsFilter
-      : public cpPlugins::Interface::ImageToImageFilter
-    {
-    public:
-      typedef RGBImageToOtherChannelsFilter            Self;
-      typedef cpPlugins::Interface::ImageToImageFilter Superclass;
-      typedef itk::SmartPointer< Self >                Pointer;
-      typedef itk::SmartPointer< const Self >          ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro(
-        RGBImageToOtherChannelsFilter,
-        cpPluginsInterfaceImageToImageFilter
-        );
-      cpPlugins_Id_Macro(
-        cpPlugins::BasicFilters::RGBImageToOtherChannelsFilter,
-        ImageToImageFilter
-        );
-
-    protected:
-      RGBImageToOtherChannelsFilter( );
-      virtual ~RGBImageToOtherChannelsFilter( );
-
-      virtual std::string _GenerateData( );
-
-      template< class I >
-        inline std::string _GD0( itk::DataObject* image );
-
-      template< class I, class C >
-        inline std::string _RealGD( itk::DataObject* image );
-
-    private:
-      // Purposely not implemented
-      RGBImageToOtherChannelsFilter( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__RGBIMAGETOOTHERCHANNELSFILTER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/SignedMaurerDistanceMapImageFilter.cxx b/lib/cpPlugins/Plugins/BasicFilters/SignedMaurerDistanceMapImageFilter.cxx
deleted file mode 100644 (file)
index f2f2ce6..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-#include "SignedMaurerDistanceMapImageFilter.h"
-#include <cpPlugins/Interface/Image.h>
-
-#include <itkSignedMaurerDistanceMapImageFilter.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::SignedMaurerDistanceMapImageFilter::
-SignedMaurerDistanceMapImageFilter( )
-  : Superclass( )
-{
-  this->_AddInput( "Input" );
-  this->_AddOutput< cpPlugins::Interface::Image >( "Output" );
-
-  this->m_Parameters->ConfigureAsReal( "BackgroundValue" );
-  this->m_Parameters->ConfigureAsBool( "InsideIsPositive" );
-  this->m_Parameters->ConfigureAsBool( "SquaredDistance" );
-  this->m_Parameters->ConfigureAsBool( "UseImageSpacing" );
-
-  std::vector< std::string > choices;
-  choices.push_back( "float" );
-  choices.push_back( "double" );
-  this->m_Parameters->ConfigureAsChoices( "OutputResolution", choices );
-
-  this->m_Parameters->SetReal( "BackgroundValue", 0 );
-  this->m_Parameters->SetBool( "InsideIsPositive", true );
-  this->m_Parameters->SetBool( "SquaredDistance", false );
-  this->m_Parameters->SetBool( "UseImageSpacing", true );
-  this->m_Parameters->SetSelectedChoice( "OutputResolution", "float" );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::SignedMaurerDistanceMapImageFilter::
-~SignedMaurerDistanceMapImageFilter( )
-{
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::BasicFilters::SignedMaurerDistanceMapImageFilter::
-_GenerateData( )
-{
-  auto image = this->GetInputData( "Input" );
-  itk::DataObject* itk_image = NULL;
-  std::string r = "";
-  cpPlugins_Image_Demangle_AllScalarTypes( 2, image, itk_image, r, _GD0 );
-  else cpPlugins_Image_Demangle_AllScalarTypes( 3, image, itk_image, r, _GD0 );
-  else r = "SignedMaurerDistanceMapImageFilter: Input image type not supported.";
-  return( r );
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-std::string cpPlugins::BasicFilters::SignedMaurerDistanceMapImageFilter::
-_GD0( itk::DataObject* image )
-{
-  std::string out_res =
-    this->m_Parameters->GetSelectedChoice( "OutputResolution" );
-  if( out_res == "float" )
-    return(
-      this->_RealGD< I, itk::Image< float, I::ImageDimension > >(
-        image
-        )
-      );
-  else if( out_res == "double" )
-    return(
-      this->_RealGD< I, itk::Image< double, I::ImageDimension > >(
-        image
-        )
-      );
-  else
-    return( "SignedMaurerDistanceMapImageFilter: Output resolution not supported." );
-}
-
-// -------------------------------------------------------------------------
-template< class I, class O >
-inline std::string cpPlugins::BasicFilters::SignedMaurerDistanceMapImageFilter::
-_RealGD( itk::DataObject* image )
-{
-  typedef itk::SignedMaurerDistanceMapImageFilter< I, O > _F;
-
-  // Get parameters
-  double back_value = this->m_Parameters->GetReal( "BackgroundValue" );
-  bool pos_inside = this->m_Parameters->GetBool( "InsideIsPositive" );
-  bool sqr_dist = this->m_Parameters->GetBool( "SquaredDistance" );
-  bool use_spac = this->m_Parameters->GetBool( "UseImageSpacing" );
-
-  // Configure filter
-  _F* filter = this->_CreateITK< _F >( );
-  filter->SetInput( dynamic_cast< I* >( image ) );
-  filter->SetBackgroundValue( ( typename I::PixelType )( back_value ) );
-  filter->SetInsideIsPositive( pos_inside );
-  filter->SetSquaredDistance( sqr_dist );
-  filter->SetUseImageSpacing( use_spac );
-
-  filter->Update( );
-
-  // Connect output
-  auto out = this->GetOutputData( "Output" );
-  out->SetITK( filter->GetOutput( ) );
-  return( "" );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/SignedMaurerDistanceMapImageFilter.h b/lib/cpPlugins/Plugins/BasicFilters/SignedMaurerDistanceMapImageFilter.h
deleted file mode 100644 (file)
index cf40665..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__SIGNEDMAURERDISTANCEMAPIMAGEFILTER__H__
-#define __CPPLUGINS__PLUGINS__SIGNEDMAURERDISTANCEMAPIMAGEFILTER__H__
-
-#include <cpPlugins/BasicFilters/cpPluginsBasicFilters_Export.h>
-#include <cpPlugins/Interface/BaseProcessObjects.h>
-
-namespace cpPlugins
-{
-  namespace BasicFilters
-  {
-    /**
-     */
-    class cpPluginsBasicFilters_EXPORT SignedMaurerDistanceMapImageFilter
-      : public cpPlugins::Interface::ImageToImageFilter
-    {
-    public:
-      typedef SignedMaurerDistanceMapImageFilter       Self;
-      typedef cpPlugins::Interface::ImageToImageFilter Superclass;
-      typedef itk::SmartPointer< Self >                Pointer;
-      typedef itk::SmartPointer< const Self >          ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro(
-        SignedMaurerDistanceMapImageFilter,
-        cpPluginsInterfaceImageToImageFilter
-        );
-      cpPlugins_Id_Macro(
-        cpPlugins::BasicFilters::SignedMaurerDistanceMapImageFilter,
-        DistanceMapFilter
-        );
-
-    protected:
-      SignedMaurerDistanceMapImageFilter( );
-      virtual ~SignedMaurerDistanceMapImageFilter( );
-
-      virtual std::string _GenerateData( );
-
-      template< class I >
-        inline std::string _GD0( itk::DataObject* image );
-
-      template< class I, class O >
-        inline std::string _RealGD( itk::DataObject* image );
-
-    private:
-      // Purposely not implemented
-      SignedMaurerDistanceMapImageFilter( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__SIGNEDMAURERDISTANCEMAPIMAGEFILTER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/SphereMeshSource.cxx b/lib/cpPlugins/Plugins/BasicFilters/SphereMeshSource.cxx
deleted file mode 100644 (file)
index 1497134..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-#include "SphereMeshSource.h"
-#include <cpPlugins/Interface/Image.h>
-#include <cpPlugins/Interface/Mesh.h>
-
-#include <vtkSphereSource.h>
-#include <itkPoint.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::SphereMeshSource::
-SphereMeshSource( )
-  : Superclass( )
-{
-  this->_AddInput( "Center", false );
-  this->_AddOutput< cpPlugins::Interface::Mesh >( "Output" );
-
-  this->m_Parameters->ConfigureAsReal( "Radius" );
-  this->m_Parameters->ConfigureAsUint( "PhiResolution" );
-  this->m_Parameters->ConfigureAsUint( "ThetaResolution" );
-
-  this->m_Parameters->SetReal( "Radius", 1 );
-  this->m_Parameters->SetUint( "PhiResolution", 8 );
-  this->m_Parameters->SetUint( "ThetaResolution", 8 );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::SphereMeshSource::
-~SphereMeshSource( )
-{
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::BasicFilters::SphereMeshSource::
-_GenerateData( )
-{
-  itk::Point< double, 3 > center;
-  center.Fill( double( 0 ) );
-  /* TODO
-     itk::Point< double, 3 > center =
-     this->m_Parameters->GetPoint< itk::Point< double, 3 > >( "Center", 3 );
-  */
-  double radius = this->m_Parameters->GetReal( "Radius" );
-  unsigned int phi = this->m_Parameters->GetUint( "PhiResolution" );
-  unsigned int theta = this->m_Parameters->GetUint( "ThetaResolution" );
-
-  vtkSphereSource* src = this->_CreateVTK< vtkSphereSource >( );
-  src->SetCenter( center[ 0 ], center[ 1 ], center[ 2 ] );
-  src->SetRadius( radius );
-  src->SetPhiResolution( phi );
-  src->SetThetaResolution( theta );
-  src->Update( );
-
-  // Execute filter
-  auto out = this->GetOutputData( "Output" );
-  out->SetVTK( src->GetOutput( ) );
-  return( "" );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/SphereMeshSource.h b/lib/cpPlugins/Plugins/BasicFilters/SphereMeshSource.h
deleted file mode 100644 (file)
index abaabcd..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__SPHEREMESHSOURCE__H__
-#define __CPPLUGINS__PLUGINS__SPHEREMESHSOURCE__H__
-
-#include <cpPlugins/BasicFilters/cpPluginsBasicFilters_Export.h>
-#include <cpPlugins/Interface/BaseProcessObjects.h>
-
-namespace cpPlugins
-{
-  namespace BasicFilters
-  {
-    /**
-     */
-    class cpPluginsBasicFilters_EXPORT SphereMeshSource
-      : public cpPlugins::Interface::MeshSource
-    {
-    public:
-      typedef SphereMeshSource                 Self;
-      typedef cpPlugins::Interface::MeshSource Superclass;
-      typedef itk::SmartPointer< Self >        Pointer;
-      typedef itk::SmartPointer< const Self >  ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( SphereMeshSource, cpPluginsInterfaceMeshSource );
-      cpPlugins_Id_Macro(
-        cpPlugins::BasicFilters::SphereMeshSource, MeshSource
-        );
-
-    protected:
-      SphereMeshSource( );
-      virtual ~SphereMeshSource( );
-
-      virtual std::string _GenerateData( );
-
-    private:
-      // Purposely not implemented
-      SphereMeshSource( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__SPHEREMESHSOURCE__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/TriangleMeshToBinaryImageFilter.cxx b/lib/cpPlugins/Plugins/BasicFilters/TriangleMeshToBinaryImageFilter.cxx
deleted file mode 100644 (file)
index cc2e388..0000000
+++ /dev/null
@@ -1,124 +0,0 @@
-#include "TriangleMeshToBinaryImageFilter.h"
-#include <cpPlugins/Interface/Image.h>
-#include <cpPlugins/Interface/Mesh.h>
-
-#include <itkMesh.h>
-#include <itkTriangleMeshToBinaryImageFilter.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::TriangleMeshToBinaryImageFilter::
-TriangleMeshToBinaryImageFilter( )
-  : Superclass( )
-{
-  this->_AddInput( "Input" );
-  this->_AddOutput< cpPlugins::Interface::Image >( "Output" );
-
-  this->m_Parameters->ConfigureAsUint( "InsideValue" );
-  this->m_Parameters->ConfigureAsUint( "OutsideValue" );
-  this->m_Parameters->ConfigureAsUint( "MinimumSize" );
-
-  this->m_Parameters->SetUint( "InsideValue", 1 );
-  this->m_Parameters->SetUint( "OutsideValue", 0 );
-  this->m_Parameters->SetUint( "MinimumSize", 100 );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::BasicFilters::TriangleMeshToBinaryImageFilter::
-~TriangleMeshToBinaryImageFilter( )
-{
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::BasicFilters::TriangleMeshToBinaryImageFilter::
-_GenerateData( )
-{
-  typedef itk::Mesh< float, 3 > _3F;
-  typedef itk::Mesh< double, 3 > _3D;
-
-  auto input = this->GetInputData( "Input" );
-  auto in_3f = input->GetITK< _3F >( );
-  auto in_3d = input->GetITK< _3D >( );
-  if     ( in_3f != NULL ) return( this->_GD0( in_3f ) );
-  else if( in_3d != NULL ) return( this->_GD0( in_3d ) );
-  else
-    return( "TriangleMeshToBinaryImageFilter: No valid input itk mesh." );
-}
-
-// -------------------------------------------------------------------------
-template< class M >
-std::string cpPlugins::BasicFilters::TriangleMeshToBinaryImageFilter::
-_GD0( M* mesh )
-{
-  return(
-    this->_RealGD< M, itk::Image< unsigned char, M::PointDimension > >(
-      mesh
-      )
-    );
-}
-
-// -------------------------------------------------------------------------
-template< class M, class I >
-inline std::string cpPlugins::BasicFilters::TriangleMeshToBinaryImageFilter::
-_RealGD( M* mesh )
-{
-  static const unsigned int PAD = 10;
-
-  typedef itk::TriangleMeshToBinaryImageFilter< M, I > _F;
-
-  _F* filter = this->_CreateITK< _F >( );
-
-  auto bb = mesh->GetBoundingBox( );
-  auto minBB = bb->GetMinimum( );
-  auto maxBB = bb->GetMaximum( );
-
-  double lx = double( maxBB[ 0 ] - minBB[ 0 ] );
-  double ly = double( maxBB[ 1 ] - minBB[ 1 ] );
-  double lz = double( maxBB[ 2 ] - minBB[ 2 ] );
-  double lm = ( lx < ly )? lx: ly;
-  lm = ( lm < lz )? lm: lz;
-
-  // Compute spacing
-  double mSpac = lm / double( this->m_Parameters->GetUint( "MinimumSize" ) );
-  typename I::SpacingType spac;
-  spac.Fill( mSpac );
-  filter->SetSpacing( spac );
-
-  // Compute size
-  typename I::SizeType size;
-  size[ 0 ] = ( unsigned long )( std::ceil( lx / mSpac ) );
-  size[ 1 ] = ( unsigned long )( std::ceil( ly / mSpac ) );
-  size[ 2 ] = ( unsigned long )( std::ceil( lz / mSpac ) );
-
-  // ... add some padding pixels
-  size[ 0 ] += PAD;
-  size[ 1 ] += PAD;
-  size[ 2 ] += PAD;
-  filter->SetSize( size );
-
-  // Set origin
-  typename I::PointType origin = minBB;
-  origin[ 0 ] -= double( PAD >> 1 ) * spac[ 0 ];
-  origin[ 1 ] -= double( PAD >> 1 ) * spac[ 1 ];
-  origin[ 2 ] -= double( PAD >> 1 ) * spac[ 2 ];
-  filter->SetOrigin( origin );
-
-  // Remaining values
-  typename I::DirectionType direction;
-  direction.SetIdentity( );
-  filter->SetDirection( direction );
-
-  typename I::IndexType index;
-  index.Fill( 0 );
-  filter->SetIndex( index );
-
-  // Execute
-  filter->SetInput( mesh );
-  filter->Update( );
-
-  // Connect output
-  auto out = this->GetOutputData( "Output" );
-  out->SetITK( filter->GetOutput( ) );
-  return( "" );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/BasicFilters/TriangleMeshToBinaryImageFilter.h b/lib/cpPlugins/Plugins/BasicFilters/TriangleMeshToBinaryImageFilter.h
deleted file mode 100644 (file)
index 4214867..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__TRIANGLEMESHTOBINARYIMAGEFILTER__H__
-#define __CPPLUGINS__PLUGINS__TRIANGLEMESHTOBINARYIMAGEFILTER__H__
-
-#include <cpPlugins/BasicFilters/cpPluginsBasicFilters_Export.h>
-#include <cpPlugins/Interface/BaseProcessObjects.h>
-
-namespace cpPlugins
-{
-  namespace BasicFilters
-  {
-    /**
-     */
-    class cpPluginsBasicFilters_EXPORT TriangleMeshToBinaryImageFilter
-      : public cpPlugins::Interface::MeshToImageFilter
-    {
-    public:
-      typedef TriangleMeshToBinaryImageFilter         Self;
-      typedef cpPlugins::Interface::MeshToImageFilter Superclass;
-      typedef itk::SmartPointer< Self >               Pointer;
-      typedef itk::SmartPointer< const Self >         ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro(
-        TriangleMeshToBinaryImageFilter,
-        cpPluginsInterfaceMeshToImageFilter
-        );
-      cpPlugins_Id_Macro(
-        cpPlugins::BasicFilters::TriangleMeshToBinaryImageFilter,
-        MeshToImageFilter
-        );
-
-    protected:
-      TriangleMeshToBinaryImageFilter( );
-      virtual ~TriangleMeshToBinaryImageFilter( );
-
-      virtual std::string _GenerateData( );
-
-      template< class M >
-        inline std::string _GD0( M* mesh );
-
-      template< class M, class I >
-        inline std::string _RealGD( M* mesh );
-
-    private:
-      // Purposely not implemented
-      TriangleMeshToBinaryImageFilter( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__TRIANGLEMESHTOBINARYIMAGEFILTER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/CMakeLists.txt b/lib/cpPlugins/Plugins/CMakeLists.txt
deleted file mode 100644 (file)
index 4d70488..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-SUBDIRS(
-  IO
-  BasicFilters
-  Widgets
-  )
-
-## eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/IO/CMakeLists.txt b/lib/cpPlugins/Plugins/IO/CMakeLists.txt
deleted file mode 100644 (file)
index 98dca49..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-SET(LIBRARY_NAME cpPluginsIO)
-
-## ===============
-## = Source code =
-## ===============
-
-FILE(GLOB LIB_HEADERS_H   "*.h")
-FILE(GLOB LIB_HEADERS_HPP "*.hpp")
-FILE(GLOB LIB_HEADERS_HXX "*.hxx")
-FILE(GLOB LIB_SOURCES_C   "*.c")
-FILE(GLOB LIB_SOURCES_CPP "*.cpp")
-FILE(GLOB LIB_SOURCES_CXX "*.cxx")
-
-## =====================
-## = Compilation rules =
-## =====================
-
-ADD_CUSTOM_COMMAND(
-  OUTPUT ${LIBRARY_NAME}_Host.cxx
-  DEPENDS ${cpPlugins_createHost_APP} ${LIB_HEADERS_H}
-  COMMAND ${cpPlugins_createHost_APP} ${LIBRARY_NAME}_Host.cxx cpPlugins::IO ${LIB_HEADERS_H}
-  )
-
-ADD_LIBRARY(
-  ${LIBRARY_NAME}
-  SHARED
-  ${LIBRARY_NAME}_Host.cxx
-  ${LIB_SOURCES_C}
-  ${LIB_SOURCES_CPP}
-  ${LIB_SOURCES_CXX}
-  )
-GENERATE_EXPORT_HEADER(
-  ${LIBRARY_NAME}
-  BASE_NAME ${LIBRARY_NAME}
-  EXPORT_MACRO_NAME ${LIBRARY_NAME}_EXPORT
-  EXPORT_FILE_NAME ${PROJECT_BINARY_DIR}/lib/cpPlugins/IO/${LIBRARY_NAME}_Export.h
-  STATIC_DEFINE ${LIBRARY_NAME}_BUILT_AS_STATIC
-  )
-TARGET_LINK_LIBRARIES(
-  ${LIBRARY_NAME}
-  cpPlugins_Interface
-  )
-
-## ========================
-## -- Installation rules --
-## ========================
-
-INSTALL(
-  TARGETS ${LIBRARY_NAME}
-  RUNTIME DESTINATION bin
-  LIBRARY DESTINATION lib
-  ARCHIVE DESTINATION lib/static
-  )
-
-## eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/IO/DicomSeriesReader.cxx b/lib/cpPlugins/Plugins/IO/DicomSeriesReader.cxx
deleted file mode 100644 (file)
index 4710e59..0000000
+++ /dev/null
@@ -1,224 +0,0 @@
-#include "DicomSeriesReader.h"
-
-#ifdef cpPlugins_Interface_QT4
-#include <queue>
-#include <map>
-#include <sstream>
-#include <vector>
-
-#include <QApplication>
-#include <QDialogButtonBox>
-#include <QDir>
-#include <QFileDialog>
-#include <QGridLayout>
-#include <QLabel>
-#include <QTreeWidget>
-#include <QVBoxLayout>
-
-#include <cpPlugins/Interface/ParametersQtDialog.h>
-
-#include <itkGDCMSeriesFileNames.h>
-
-/**
- */
-class cpPlugins_IO_DicomSeriesReader_ParametersQtDialog
-  : public cpPlugins::Interface::ParametersQtDialog
-{
-public:
-  cpPlugins_IO_DicomSeriesReader_ParametersQtDialog(
-    QWidget* parent = 0, Qt::WindowFlags f = 0
-    )
-    : cpPlugins::Interface::ParametersQtDialog( parent, f )
-    {
-    }
-  virtual ~cpPlugins_IO_DicomSeriesReader_ParametersQtDialog( )
-    {
-    }
-
-protected:
-  virtual void _dlg_OpenMultipleFiles( )
-    {
-      // DICOM series analyzer
-      itk::GDCMSeriesFileNames::GlobalWarningDisplayOff( );
-      itk::GDCMSeriesFileNames::Pointer series =
-        itk::GDCMSeriesFileNames::New( );
-
-      // Show dialog and check if it was accepted
-      QWidget* parent = dynamic_cast< QWidget* >( this->parent( ) );
-      QFileDialog dialog( parent );
-      dialog.setFileMode( QFileDialog::DirectoryOnly );
-      dialog.setDirectory( QFileDialog::tr( "." ) );
-      if( !dialog.exec( ) )
-        return;
-
-      // Prepare dialog
-      QApplication::setOverrideCursor( Qt::WaitCursor );
-      if( parent != NULL )
-        parent->setEnabled( false );
-
-      QDialog* tree_dialog = new QDialog( parent );
-      QTreeWidget* tree_widget = new QTreeWidget( tree_dialog );
-      QList< QTreeWidgetItem* > tree_items;
-      std::map<
-        std::string,
-        std::map< std::string, std::vector< std::string > >
-        > found_files;
-
-      std::string main_dir_name =
-        dialog.selectedFiles( ).begin( )->toStdString( );
-      std::queue< std::string > q;
-      q.push( main_dir_name );
-      while( !( q.empty( ) ) )
-      {
-        std::string dir_name = q.front( );
-        q.pop( );
-
-        // Get DICOM information
-        series->SetUseSeriesDetails( true );
-        series->AddSeriesRestriction( "0008|0021" );
-        series->SetDirectory( dir_name );
-        const std::vector< std::string >& seriesUID = series->GetSeriesUIDs( );
-        if( seriesUID.size( ) > 0 )
-        {
-          QTreeWidgetItem* new_item = new QTreeWidgetItem(
-            ( QTreeWidgetItem* )( NULL ),
-            QStringList( dir_name.c_str( ) )
-            );
-          QTreeWidgetItem* new_leaf = NULL;
-          std::vector< std::string >::const_iterator sIt = seriesUID.begin( );
-          for( ; sIt != seriesUID.end( ); ++sIt )
-          {
-            std::vector< std::string > filenames = series->GetFileNames( *sIt );
-            if( filenames.size( ) > 0 )
-            {
-              std::stringstream ss;
-              ss << "(" << filenames.size( ) << "): " << *sIt;
-              new_leaf =
-                new QTreeWidgetItem(
-                  new_item, QStringList( ss.str( ).c_str( ) )
-                  );
-              new_item->addChild( new_leaf );
-              found_files[ dir_name ][ *sIt ] = filenames;
-
-            } // fi
-
-          } // rof
-
-          if( new_leaf != NULL )
-            tree_items.append( new_item );
-          else
-            delete new_item;
-
-        } // fi
-
-        // Update queue
-        QDir dir( dir_name.c_str( ) );
-        QFileInfoList contents = dir.entryInfoList( );
-        QFileInfoList::const_iterator i = contents.begin( );
-        for( ; i != contents.end( ); ++i )
-        {
-          if( i->isDir( ) )
-          {
-            std::string new_dir_name = i->absoluteFilePath( ).toStdString( );
-            if( new_dir_name.size( ) > dir_name.size( ) )
-              q.push( new_dir_name );
-
-          } // fi
-
-        } // rof
-
-      } // elihw
-
-      // Show second dialog
-      if( tree_items.size( ) == 0 )
-      {
-        delete tree_widget;
-        delete tree_dialog;
-        return;
-
-      } // fi
-
-      QLabel* title = new QLabel( tree_dialog );
-      title->setText( "Choose a DICOM series" );
-      QGridLayout* mainLayout = new QGridLayout( tree_dialog );
-      QVBoxLayout* toolsLayout = new QVBoxLayout( );
-      toolsLayout->addWidget( title );
-      mainLayout->addLayout( toolsLayout, 0, 0, 1, 1 );
-
-      tree_widget->insertTopLevelItems( 0, tree_items );
-      toolsLayout->addWidget( tree_widget );
-
-      QDialogButtonBox* bb = new QDialogButtonBox(
-        QDialogButtonBox::Ok | QDialogButtonBox::Cancel
-        );
-      tree_dialog->connect(
-        bb, SIGNAL( accepted( ) ), tree_dialog, SLOT( accept( ) )
-        );
-      tree_dialog->connect(
-        bb, SIGNAL( rejected( ) ), tree_dialog, SLOT( reject( ) )
-        );
-      toolsLayout->addWidget( bb );
-
-      QApplication::restoreOverrideCursor( );
-      if( parent != NULL )
-        parent->setEnabled( true );
-
-      if( tree_dialog->exec( ) == 0 )
-        return;
-
-      QTreeWidgetItem* item = tree_widget->currentItem( );
-      if( item != NULL )
-      {
-        QTreeWidgetItem* item_parent = item->parent( );
-        if( item_parent != NULL )
-        {
-          QApplication::setOverrideCursor( Qt::WaitCursor );
-          if( parent != NULL )
-            parent->setEnabled( false );
-
-          std::string serie_dir = item_parent->text( 0 ).toStdString( );
-          std::string serie_id = item->text( 0 ).toStdString( );
-          serie_id = serie_id.substr( serie_id.find_first_of( " " ) + 1 );
-          this->m_Parameters->ClearOpenFileNameList( "FileNames" );
-          const std::vector< std::string >& names =
-            found_files[ serie_dir ][ serie_id ];
-          for( unsigned int f = 0; f < names.size( ); ++f )
-            this->m_Parameters->AddToOpenFileNameList( "FileNames", names[ f ] );
-          this->updateView( );
-
-          QApplication::restoreOverrideCursor( );
-          if( parent != NULL )
-            parent->setEnabled( true );
-
-        } // fi
-
-      } // fi
-      itk::GDCMSeriesFileNames::GlobalWarningDisplayOn( );
-    }
-};
-
-#endif // cpPlugins_Interface_QT4
-
-// -------------------------------------------------------------------------
-cpPlugins::IO::DicomSeriesReader::
-DicomSeriesReader( )
-  : Superclass( )
-{
-#ifdef cpPlugins_Interface_QT4
-  if( QApplication::instance( ) != NULL )
-  {
-    this->m_ParametersDialog =
-      new cpPlugins_IO_DicomSeriesReader_ParametersQtDialog( );
-    this->m_ParametersDialog->setParameters( this->m_Parameters );
-
-  } // fi
-#endif // cpPlugins_Interface_QT4
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::IO::DicomSeriesReader::
-~DicomSeriesReader( )
-{
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/IO/DicomSeriesReader.h b/lib/cpPlugins/Plugins/IO/DicomSeriesReader.h
deleted file mode 100644 (file)
index a202a3a..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__DICOMSERIESREADER__H__
-#define __CPPLUGINS__PLUGINS__DICOMSERIESREADER__H__
-
-#include <vector>
-
-#include <cpPlugins/IO/cpPluginsIO_Export.h>
-#include <cpPlugins/Plugins/IO/ImageReader.h>
-
-namespace itk
-{
-  class ImageIOBase;
-}
-
-namespace cpPlugins
-{
-  namespace IO
-  {
-    /**
-     */
-    class cpPluginsIO_EXPORT DicomSeriesReader
-      : public ImageReader
-    {
-    public:
-      typedef DicomSeriesReader               Self;
-      typedef ImageReader                     Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-      typedef Superclass::TParameters TParameters;
-      typedef Superclass::TStringList TStringList;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( DicomSeriesReader, ImageReader );
-      cpPlugins_Id_Macro( cpPlugins::IO::DicomSeriesReader, IO );
-
-    protected:
-      DicomSeriesReader( );
-      virtual ~DicomSeriesReader( );
-
-    private:
-      // Purposely not implemented
-      DicomSeriesReader( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__DICOMSERIESREADER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/IO/ImageReader.cxx b/lib/cpPlugins/Plugins/IO/ImageReader.cxx
deleted file mode 100644 (file)
index de091b1..0000000
+++ /dev/null
@@ -1,364 +0,0 @@
-#include "ImageReader.h"
-#include <cpPlugins/Interface/Image.h>
-
-#include <itkImageFileReader.h>
-#include <itkImageSeriesReader.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::IO::ImageReader::
-ImageReader( )
-  : Superclass( )
-{
-  this->_AddOutput< cpPlugins::Interface::Image >( "Output" );
-
-  this->m_Parameters->ConfigureAsOpenFileNameList( "FileNames" );
-  this->m_Parameters->ConfigureAsBool( "VectorType" );
-  this->m_Parameters->SetBool( "VectorType", false );
-  this->m_Parameters->SetAcceptedFileExtensions(
-    "FileNames",
-    "Image files (*.bmp *.png *.jpg *.jpeg *.dcm *.mhd *.nhdr *.nrrd *.tiff)"
-    );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::IO::ImageReader::
-~ImageReader( )
-{
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::IO::ImageReader::
-_GenerateData( )
-{
-  // Get filenames
-  TStringList names = this->m_Parameters->GetOpenFileNameList( "FileNames" );
-
-  std::string r = "";
-  if( names.size( ) >= 1 )
-  {
-    // Guess image properties
-    itk::ImageIOBase::Pointer io =
-      itk::ImageIOFactory::CreateImageIO(
-        names[ 0 ].c_str( ),
-        itk::ImageIOFactory::ReadMode
-        );
-    if( io.IsNotNull( ) )
-    {
-      io->SetFileName( names[ 0 ] );
-      io->ReadImageInformation( );
-      if( names.size( ) >= 1 )
-      {
-        switch( io->GetNumberOfDimensions( ) )
-        {
-        case 2: r = this->_GD0< 2 >( io, names ); break;
-        case 3: r = this->_GD0< 3 >( io, names ); break;
-        case 4: r = this->_GD0< 4 >( io, names ); break;
-        default:
-          r = "ImageReader: Image dimension not supported.";
-          break;
-        } // hctiws
-
-      } // fi
-    }
-    else
-      r = "ImageReader: Could not CreateImageIO for \"" + names[ 0 ] + "\"";
-  }
-  else
-    r = "ImageReader: No image files given";
-  return( r );
-}
-
-// -------------------------------------------------------------------------
-template< unsigned int D >
-std::string cpPlugins::IO::ImageReader::
-_GD0( itk::ImageIOBase* io, const TStringList& names )
-{
-  itk::ImageIOBase::IOComponentType ct = io->GetComponentType( );
-  itk::ImageIOBase::IOPixelType pt = io->GetPixelType( );
-  std::string r = "";
-
-  if( pt == itk::ImageIOBase::SCALAR )
-  {
-    switch( ct )
-    {
-    case itk::ImageIOBase::UCHAR:
-      r = this->_GD1< unsigned char, D >( names );
-      break;
-    case itk::ImageIOBase::CHAR:
-      r = this->_GD1< char, D >( names );
-      break;
-    case itk::ImageIOBase::USHORT:
-      r = this->_GD1< unsigned short, D >( names );
-      break;
-    case itk::ImageIOBase::SHORT:
-      r = this->_GD1< short, D >( names );
-      break;
-    case itk::ImageIOBase::UINT:
-      r = this->_GD1< unsigned int, D >( names );
-      break;
-    case itk::ImageIOBase::INT:
-      r = this->_GD1< int, D >( names );
-      break;
-    case itk::ImageIOBase::ULONG:
-      r = this->_GD1< unsigned long, D >( names );
-      break;
-    case itk::ImageIOBase::LONG:
-      r = this->_GD1< long, D >( names );
-      break;
-    case itk::ImageIOBase::FLOAT:
-      r = this->_GD1< float, D >( names );
-      break;
-    case itk::ImageIOBase::DOUBLE:
-      r = this->_GD1< double, D >( names );
-      break;
-    default:
-      r = "ImageReader: Scalar pixel type not supported.";
-      break;
-    } // hctiws
-  }
-  else if( pt == itk::ImageIOBase::RGB )
-  {
-    switch( ct )
-    {
-    case itk::ImageIOBase::UCHAR:
-      r = this->_GD1< itk::RGBPixel< unsigned char >, D >( names );
-      break;
-    case itk::ImageIOBase::CHAR:
-      r = this->_GD1< itk::RGBPixel< char >, D >( names );
-      break;
-    case itk::ImageIOBase::USHORT:
-      r = this->_GD1< itk::RGBPixel< unsigned short >, D >( names );
-      break;
-    case itk::ImageIOBase::SHORT:
-      r = this->_GD1< itk::RGBPixel< short >, D >( names );
-      break;
-    case itk::ImageIOBase::UINT:
-      r = this->_GD1< itk::RGBPixel< unsigned int >, D >( names );
-      break;
-    case itk::ImageIOBase::INT:
-      r = this->_GD1< itk::RGBPixel< int >, D >( names );
-      break;
-    case itk::ImageIOBase::ULONG:
-      r = this->_GD1< itk::RGBPixel< unsigned long >, D >( names );
-      break;
-    case itk::ImageIOBase::LONG:
-      r = this->_GD1< itk::RGBPixel< long >, D >( names );
-      break;
-    case itk::ImageIOBase::FLOAT:
-      r = this->_GD1< itk::RGBPixel< float >, D >( names );
-      break;
-    case itk::ImageIOBase::DOUBLE:
-      r = this->_GD1< itk::RGBPixel< double >, D >( names );
-      break;
-    default:
-      r = "ImageReader: RGB pixel type not supported.";
-      break;
-    } // hctiws
-  }
-  else if( pt == itk::ImageIOBase::RGBA )
-  {
-    switch( ct )
-    {
-    case itk::ImageIOBase::UCHAR:
-      r = this->_GD1< itk::RGBAPixel< unsigned char >, D >( names );
-      break;
-    case itk::ImageIOBase::CHAR:
-      r = this->_GD1< itk::RGBAPixel< char >, D >( names );
-      break;
-    case itk::ImageIOBase::USHORT:
-      r = this->_GD1< itk::RGBAPixel< unsigned short >, D >( names );
-      break;
-    case itk::ImageIOBase::SHORT:
-      r = this->_GD1< itk::RGBAPixel< short >, D >( names );
-      break;
-    case itk::ImageIOBase::UINT:
-      r = this->_GD1< itk::RGBAPixel< unsigned int >, D >( names );
-      break;
-    case itk::ImageIOBase::INT:
-      r = this->_GD1< itk::RGBAPixel< int >, D >( names );
-      break;
-    case itk::ImageIOBase::ULONG:
-      r = this->_GD1< itk::RGBAPixel< unsigned long >, D >( names );
-      break;
-    case itk::ImageIOBase::LONG:
-      r = this->_GD1< itk::RGBAPixel< long >, D >( names );
-      break;
-    case itk::ImageIOBase::FLOAT:
-      r = this->_GD1< itk::RGBAPixel< float >, D >( names );
-      break;
-    case itk::ImageIOBase::DOUBLE:
-      r = this->_GD1< itk::RGBAPixel< double >, D >( names );
-      break;
-    default:
-      r = "ImageReader: RGBA pixel type not supported.";
-      break;
-    } // hctiws
-  }
-  else if( pt == itk::ImageIOBase::VECTOR )
-  {
-    switch( ct )
-    {
-    case itk::ImageIOBase::FLOAT:
-      r = this->_GD1< itk::Vector< float, D >, D >( names );
-      break;
-    case itk::ImageIOBase::DOUBLE:
-      r = this->_GD1< itk::Vector< double, D >, D >( names );
-      break;
-    default:
-      r = "ImageReader: Vector type not supported.";
-      break;
-    } // hctiws
-  }
-  else if( pt == itk::ImageIOBase::POINT )
-  {
-    switch( ct )
-    {
-    case itk::ImageIOBase::FLOAT:
-      r = this->_GD1< itk::Point< float, D >, D >( names );
-      break;
-    case itk::ImageIOBase::DOUBLE:
-      r = this->_GD1< itk::Point< double, D >, D >( names );
-      break;
-    default:
-      r = "ImageReader: Point type not supported.";
-      break;
-    } // hctiws
-  }
-  else if( pt == itk::ImageIOBase::COVARIANTVECTOR )
-  {
-    switch( ct )
-    {
-    case itk::ImageIOBase::FLOAT:
-      r = this->_GD1< itk::CovariantVector< float, D >, D >( names );
-      break;
-    case itk::ImageIOBase::DOUBLE:
-      r = this->_GD1< itk::CovariantVector< double, D >, D >( names );
-      break;
-    default:
-      r = "ImageReader: CovariantVector type not supported.";
-      break;
-    } // hctiws
-  }
-  else if( pt == itk::ImageIOBase::SYMMETRICSECONDRANKTENSOR )
-  {
-    switch( ct )
-    {
-    case itk::ImageIOBase::FLOAT:
-      r =
-        this->_GD1< itk::SymmetricSecondRankTensor< float, D >, D >(
-          names
-          );
-      break;
-    case itk::ImageIOBase::DOUBLE:
-      r =
-        this->_GD1< itk::SymmetricSecondRankTensor< double, D >, D >(
-          names
-          );
-      break;
-    default:
-      r = "ImageReader: Vector type not supported.";
-      break;
-    } // hctiws
-  }
-  else if( pt == itk::ImageIOBase::DIFFUSIONTENSOR3D )
-  {
-    switch( ct )
-    {
-    case itk::ImageIOBase::FLOAT:
-      r = this->_GD1< itk::DiffusionTensor3D< float >, D >( names );
-      break;
-    case itk::ImageIOBase::DOUBLE:
-      r = this->_GD1< itk::DiffusionTensor3D< double >, D >( names );
-      break;
-    default:
-      r = "ImageReader: Diffusion tensor type not supported.";
-      break;
-    } // hctiws
-  }
-  else if( pt == itk::ImageIOBase::COMPLEX )
-  {
-    switch( ct )
-    {
-    case itk::ImageIOBase::FLOAT:
-      r = this->_GD1< std::complex< float >, D >( names );
-      break;
-    case itk::ImageIOBase::DOUBLE:
-      r = this->_GD1< std::complex< double >, D >( names );
-      break;
-    default:
-      r = "ImageReader: Complex type not supported.";
-      break;
-    } // hctiws
-  }
-  else if( pt == itk::ImageIOBase::OFFSET )
-    r = this->_GD1< itk::Offset< D >, D >( names );
-  else
-    r = "ImageReader: Image pixel type not yet supported.";
-  /* TODO
-     itk::ImageIOBase::FIXEDARRAY
-     itk::ImageIOBase::MATRIX
-  */
-  return( r );
-}
-
-// -------------------------------------------------------------------------
-template< class P, unsigned int D >
-std::string cpPlugins::IO::ImageReader::
-_GD1( const TStringList& names )
-{
-  if( this->m_Parameters->GetBool( "VectorType" ) )
-    return( this->_RealGD< itk::VectorImage< P, D > >( names ) );
-  else
-    return( this->_RealGD< itk::Image< P, D > >( names ) );
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-std::string cpPlugins::IO::ImageReader::
-_RealGD( const TStringList& names )
-{
-  auto out = this->GetOutputData( "Output" );
-  std::string r = "";
-  if( names.size( ) == 1 )
-  {
-    // Read single image
-    typedef itk::ImageFileReader< I > _SR;
-    _SR* reader = this->_CreateITK< _SR >( );
-    reader->SetFileName( names[ 0 ] );
-    try
-    {
-      reader->Update( );
-      out->SetITK( reader->GetOutput( ) );
-    }
-    catch( itk::ExceptionObject& err )
-    {
-      r = "ImageReader: " + std::string( err.GetDescription( ) );
-      out->SetITK( NULL );
-
-    } // yrt
-  }
-  else if( names.size( ) > 1 )
-  {
-    // Read image series
-    typedef itk::ImageSeriesReader< I > _MR;
-    _MR* reader = this->_CreateITK< _MR >( );
-    for( unsigned int i = 0; i < names.size( ); ++i )
-      reader->AddFileName( names[ i ] );
-    try
-    {
-      reader->Update( );
-      out->SetITK( reader->GetOutput( ) );
-    }
-    catch( itk::ExceptionObject& err )
-    {
-      r = "ImageReader: " + std::string( err.GetDescription( ) );
-      out->SetITK( NULL );
-
-    } // yrt
-  }
-  else
-    r = "ImageReader: No image files given";
-  return( r );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/IO/ImageReader.h b/lib/cpPlugins/Plugins/IO/ImageReader.h
deleted file mode 100644 (file)
index 882ab04..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__IMAGEREADER__H__
-#define __CPPLUGINS__PLUGINS__IMAGEREADER__H__
-
-#include <vector>
-
-#include <cpPlugins/IO/cpPluginsIO_Export.h>
-#include <cpPlugins/Interface/BaseProcessObjects.h>
-
-namespace itk
-{
-  class ImageIOBase;
-}
-
-namespace cpPlugins
-{
-  namespace IO
-  {
-    /**
-     */
-    class cpPluginsIO_EXPORT ImageReader
-      : public cpPlugins::Interface::ImageSource
-    {
-    public:
-      typedef ImageReader                       Self;
-      typedef cpPlugins::Interface::ImageSource Superclass;
-      typedef itk::SmartPointer< Self >         Pointer;
-      typedef itk::SmartPointer< const Self >   ConstPointer;
-
-      typedef Superclass::TParameters    TParameters;
-      typedef std::vector< std::string > TStringList;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( ImageReader, cpPluginsInterfaceImageSource );
-      cpPlugins_Id_Macro( cpPlugins::IO::ImageReader, IO );
-
-    protected:
-      ImageReader( );
-      virtual ~ImageReader( );
-
-      virtual std::string _GenerateData( );
-
-      template< unsigned int D >
-        std::string _GD0( itk::ImageIOBase* io, const TStringList& names );
-
-      template< class P, unsigned int D >
-        std::string _GD1( const TStringList& names );
-
-      template< class I >
-        std::string _RealGD( const TStringList& names );
-
-    private:
-      // Purposely not implemented
-      ImageReader( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__IMAGEREADER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/IO/ImageWriter.cxx b/lib/cpPlugins/Plugins/IO/ImageWriter.cxx
deleted file mode 100644 (file)
index f2afa0f..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-#include "ImageWriter.h"
-#include <cpPlugins/Interface/Image.h>
-
-#include <itkImageFileWriter.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::IO::ImageWriter::
-ImageWriter( )
-  : Superclass( )
-{
-  this->_AddInput( "Input" );
-  this->m_Parameters->ConfigureAsSaveFileName( "FileName" );
-  this->m_Parameters->SetAcceptedFileExtensions(
-    "FileName",
-    "Image files (*.bmp *.png *.jpg *.jpeg *.dcm *.mhd *.nhdr *.nrrd *.tiff)"
-    );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::IO::ImageWriter::
-~ImageWriter( )
-{
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::IO::ImageWriter::
-_GenerateData( )
-{
-  // Thank you very much Microsoft !!! :-@
-  std::string   r = this->_GD0_Image< 2 >( );
-  if( r != "" ) r = this->_GD0_Image< 3 >( );
-  if( r != "" ) r = this->_GD0_Image< 4 >( );
-  if( r != "" ) r = this->_GD0_VectorImage< 2 >( );
-  if( r != "" ) r = this->_GD0_VectorImage< 3 >( );
-  if( r != "" ) r = this->_GD0_VectorImage< 4 >( );
-  return( r );
-}
-
-// -------------------------------------------------------------------------
-template< unsigned int D >
-std::string cpPlugins::IO::ImageWriter::
-_GD0_Image( )
-{
-  auto image = this->GetInputData( "Input" );
-  itk::DataObject* itk_image = NULL;
-  std::string r = "";
-  cpPlugins_Image_Demangle_AllTypes( D, image, itk_image, r, _RealGD );
-  else r = "ImageWriter: Input image type not supported.";
-  return( r );
-}
-
-// -------------------------------------------------------------------------
-template< unsigned int D >
-std::string cpPlugins::IO::ImageWriter::
-_GD0_VectorImage( )
-{
-  auto image = this->GetInputData( "Input" );
-  itk::DataObject* itk_image = NULL;
-  std::string r = "";
-  cpPlugins_VectorImage_Demangle_AllTypes( D, image, itk_image, r, _RealGD );
-  else r = "ImageWriter: Input image type not supported.";
-  return( r );
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-std::string cpPlugins::IO::ImageWriter::
-_RealGD( itk::DataObject* image )
-{
-  typedef itk::ImageFileWriter< I > _W;
-  _W* writer = this->_CreateITK< _W >( );
-  writer->SetFileName( this->m_Parameters->GetSaveFileName( "FileName" ) );
-  writer->SetInput( dynamic_cast< I* >( image ) );
-  try
-  {
-    writer->Update( );
-  }
-  catch( itk::ExceptionObject& err )
-  {
-    return( "ImageWriter: " + std::string( err.GetDescription( ) ) );
-
-  } // yrt
-  return( "" );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/IO/ImageWriter.h b/lib/cpPlugins/Plugins/IO/ImageWriter.h
deleted file mode 100644 (file)
index 20c519e..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__IMAGEWRITER__H__
-#define __CPPLUGINS__PLUGINS__IMAGEWRITER__H__
-
-#include <cpPlugins/IO/cpPluginsIO_Export.h>
-#include <cpPlugins/Interface/BaseProcessObjects.h>
-
-namespace cpPlugins
-{
-  namespace IO
-  {
-    /**
-     */
-    class cpPluginsIO_EXPORT ImageWriter
-      : public cpPlugins::Interface::ImageSink
-    {
-    public:
-      typedef ImageWriter                     Self;
-      typedef cpPlugins::Interface::ImageSink Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( ImageWriter, cpPluginsInterfaceImageSink );
-      cpPlugins_Id_Macro( cpPlugins::IO::ImageWriter, IO );
-
-    protected:
-      ImageWriter( );
-      virtual ~ImageWriter( );
-
-      virtual std::string _GenerateData( );
-
-      /*
-       * These two methods are Micro$oft courtesy: inner loop error !
-       */
-      template< unsigned int D >
-        inline std::string _GD0_Image( );
-
-      template< unsigned int D >
-        inline std::string _GD0_VectorImage( );
-
-      template< class I >
-        inline std::string _RealGD( itk::DataObject* image );
-
-    private:
-      // Purposely not implemented
-      ImageWriter( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__IMAGEWRITER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/IO/MeshReader.cxx b/lib/cpPlugins/Plugins/IO/MeshReader.cxx
deleted file mode 100644 (file)
index 3042d67..0000000
+++ /dev/null
@@ -1,109 +0,0 @@
-#include "MeshReader.h"
-#include <cpPlugins/Interface/Mesh.h>
-
-#include <cstring>
-
-#include <vtkPolyData.h>
-#include <vtkPolyDataReader.h>
-#include <vtkSTLReader.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::IO::MeshReader::
-MeshReader( )
-  : Superclass( )
-{
-  this->_AddOutput< cpPlugins::Interface::Mesh >( "Output" );
-
-  std::vector< TParameters::TString > valid_types;
-  valid_types.push_back( "float" );
-  valid_types.push_back( "double" );
-  this->m_Parameters->ConfigureAsOpenFileName( "FileName" );
-  this->m_Parameters->ConfigureAsChoices( "PixelType", valid_types );
-  this->m_Parameters->ConfigureAsUint( "Dimension" );
-
-  this->m_Parameters->SetUint( "Dimension", 3 );
-  this->m_Parameters->SetAcceptedFileExtensions(
-    "FileName",
-    "Mesh files (*.vtk *.stl *.obj)"
-    );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::IO::MeshReader::
-~MeshReader( )
-{
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::IO::MeshReader::
-_GenerateData( )
-{
-  using namespace cpPlugins::Interface;
-  Parameters::TUint dim = this->m_Parameters->GetUint( "Dimension" );
-  std::string r = "MeshReader: Mesh dimension not supported.";
-  if( dim == 2 )
-    r = this->_GD0< 2 >( );
-  else if( dim == 3 )
-    r = this->_GD0< 3 >( );
-  return( r );
-}
-
-// -------------------------------------------------------------------------
-template< unsigned int D >
-std::string cpPlugins::IO::MeshReader::
-_GD0( )
-{
-  using namespace cpPlugins::Interface;
-  Parameters::TString pt =
-    this->m_Parameters->GetSelectedChoice( "PixelType" );
-  std::string r = "MeshReader: Mesh pixel type not supported";
-  if( pt == "float" )       r = this->_GD1< float, D >( );
-  else if( pt == "double" ) r = this->_GD1< double, D >( );
-  return( r );
-}
-
-// -------------------------------------------------------------------------
-template< class P, unsigned int D >
-std::string cpPlugins::IO::MeshReader::
-_GD1( )
-{
-  // Get filename
-  std::string fname = this->m_Parameters->GetOpenFileName( "FileName" );
-
-  // Get file extension
-  std::istringstream fname_str( fname );
-  std::string token, ext;
-  while( std::getline( fname_str, token, '.' ) )
-    ext = token;
-  std::transform( ext.begin( ), ext.end( ), ext.begin( ), tolower );
-
-  // Real read
-  if( ext == "stl" )
-  {
-    vtkSTLReader* stlr = this->_CreateVTK< vtkSTLReader >( );
-    stlr->SetFileName( fname.c_str( ) );
-    stlr->Update( );
-
-    auto out = this->GetOutputData( "Output" );
-    out->SetVTK( stlr->GetOutput( ) );
-    return( "" );
-  }
-  else if( ext == "obj" )
-  {
-    return( "cpPlugins::IO::MeshReader: OBJ reader not ready yet." );
-  }
-  else if( ext == "vtk" )
-  {
-    vtkPolyDataReader* pdr = this->_CreateVTK< vtkPolyDataReader >( );
-    pdr->SetFileName( fname.c_str( ) );
-    pdr->Update( );
-
-    auto out = this->GetOutputData( "Output" );
-    out->SetVTK( pdr->GetOutput( ) );
-    return( "" );
-  }
-  else
-    return( "cpPlugins::IO::MeshReader: Input file format not recognized." );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/IO/MeshReader.h b/lib/cpPlugins/Plugins/IO/MeshReader.h
deleted file mode 100644 (file)
index e86e36b..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__MESHREADER__H__
-#define __CPPLUGINS__PLUGINS__MESHREADER__H__
-
-#include <cpPlugins/IO/cpPluginsIO_Export.h>
-#include <cpPlugins/Interface/BaseProcessObjects.h>
-
-class vtkDataReader;
-
-namespace cpPlugins
-{
-  namespace IO
-  {
-    /**
-     */
-    class cpPluginsIO_EXPORT MeshReader
-      : public cpPlugins::Interface::MeshSource
-    {
-    public:
-      typedef MeshReader                       Self;
-      typedef cpPlugins::Interface::MeshSource Superclass;
-      typedef itk::SmartPointer< Self >        Pointer;
-      typedef itk::SmartPointer< const Self >  ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( MeshReader, cpPluginsInterfaceMeshSource );
-      cpPlugins_Id_Macro( cpPlugins::IO::MeshReader, IO );
-
-    protected:
-      MeshReader( );
-      virtual ~MeshReader( );
-
-      virtual std::string _GenerateData( );
-
-      template< unsigned int D >
-        std::string _GD0( );
-
-      template< class P, unsigned int D >
-        std::string _GD1( );
-
-    private:
-      // Purposely not implemented
-      MeshReader( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__MESHREADER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/IO/MeshWriter.cxx b/lib/cpPlugins/Plugins/IO/MeshWriter.cxx
deleted file mode 100644 (file)
index c9ba1c9..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-#include "MeshWriter.h"
-#include <cpPlugins/Interface/Mesh.h>
-
-#include <vtkSmartPointer.h>
-#include <vtkPolyData.h>
-#include <vtkPolyDataWriter.h>
-
-// -------------------------------------------------------------------------
-cpPlugins::IO::MeshWriter::
-MeshWriter( )
-  : Superclass( )
-{
-  this->_AddInput( "Input" );
-  this->m_Parameters->ConfigureAsSaveFileName( "FileName" );
-  this->m_Parameters->SetAcceptedFileExtensions(
-    "FileName",
-    "Mesh files (*.vtk *.stl *.obj)"
-    );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::IO::MeshWriter::
-~MeshWriter( )
-{
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::IO::MeshWriter::
-_GenerateData( )
-{
-  auto mesh = this->GetInputData( "Input" );
-  vtkPolyData* i = mesh->GetVTK< vtkPolyData >( );
-  if( i == NULL )
-    return( "MeshWriter: No suitable input." );
-  std::string fname = this->m_Parameters->GetSaveFileName( "FileName" );
-
-  vtkPolyDataWriter* pdw = this->_CreateVTK< vtkPolyDataWriter >( );
-  pdw->SetInputData( i );
-  pdw->SetFileName( fname.c_str( ) );
-  pdw->SetFileTypeToBinary( );
-  pdw->Update( );
-  if( pdw->GetErrorCode( ) != 0 )
-    return( "MeshWriter: someting wrong happened." );
-  return( "" );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/IO/MeshWriter.h b/lib/cpPlugins/Plugins/IO/MeshWriter.h
deleted file mode 100644 (file)
index 26c92d5..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__MESHWRITER__H__
-#define __CPPLUGINS__PLUGINS__MESHWRITER__H__
-
-#include <cpPlugins/IO/cpPluginsIO_Export.h>
-#include <cpPlugins/Interface/BaseProcessObjects.h>
-
-class vtkDataWriter;
-
-namespace cpPlugins
-{
-  namespace IO
-  {
-    /**
-     */
-    class cpPluginsIO_EXPORT MeshWriter
-      : public cpPlugins::Interface::MeshSink
-    {
-    public:
-      typedef MeshWriter                      Self;
-      typedef cpPlugins::Interface::MeshSink  Superclass;
-      typedef itk::SmartPointer< Self >       Pointer;
-      typedef itk::SmartPointer< const Self > ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( MeshWriter, cpPluginsInterfaceMeshSink );
-      cpPlugins_Id_Macro( cpPlugins::IO::MeshWriter, IO );
-
-    protected:
-      MeshWriter( );
-      virtual ~MeshWriter( );
-
-      virtual std::string _GenerateData( );
-
-    private:
-      // Purposely not implemented
-      MeshWriter( const Self& );
-      Self& operator=( const Self& );
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__MESHWRITER__H__
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/Widgets/CMakeLists.txt b/lib/cpPlugins/Plugins/Widgets/CMakeLists.txt
deleted file mode 100644 (file)
index 5c1a47c..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-SET(LIBRARY_NAME cpPluginsWidgets)
-
-## ===============
-## = Source code =
-## ===============
-
-FILE(GLOB LIB_HEADERS_H   "*.h")
-FILE(GLOB LIB_HEADERS_HPP "*.hpp")
-FILE(GLOB LIB_HEADERS_HXX "*.hxx")
-FILE(GLOB LIB_SOURCES_C   "*.c")
-FILE(GLOB LIB_SOURCES_CPP "*.cpp")
-FILE(GLOB LIB_SOURCES_CXX "*.cxx")
-
-## =====================
-## = Compilation rules =
-## =====================
-
-ADD_CUSTOM_COMMAND(
-  OUTPUT ${LIBRARY_NAME}_Host.cxx
-  DEPENDS ${cpPlugins_createHost_APP} ${LIB_HEADERS_H}
-  COMMAND ${cpPlugins_createHost_APP} ${LIBRARY_NAME}_Host.cxx cpPlugins::Widgets ${LIB_HEADERS_H}
-  )
-
-ADD_LIBRARY(
-  ${LIBRARY_NAME}
-  SHARED
-  ${LIBRARY_NAME}_Host.cxx
-  ${LIB_SOURCES_C}
-  ${LIB_SOURCES_CPP}
-  ${LIB_SOURCES_CXX}
-  )
-GENERATE_EXPORT_HEADER(
-  ${LIBRARY_NAME}
-  BASE_NAME ${LIBRARY_NAME}
-  EXPORT_MACRO_NAME ${LIBRARY_NAME}_EXPORT
-  EXPORT_FILE_NAME ${PROJECT_BINARY_DIR}/lib/cpPlugins/Widgets/${LIBRARY_NAME}_Export.h
-  STATIC_DEFINE ${LIBRARY_NAME}_BUILT_AS_STATIC
-  )
-TARGET_LINK_LIBRARIES(
-  ${LIBRARY_NAME}
-  cpPlugins_Interface
-  )
-
-## ========================
-## -- Installation rules --
-## ========================
-
-INSTALL(
-  TARGETS ${LIBRARY_NAME}
-  RUNTIME DESTINATION bin
-  LIBRARY DESTINATION lib
-  ARCHIVE DESTINATION lib/static
-  )
-
-## eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/Widgets/SeedWidget.cxx b/lib/cpPlugins/Plugins/Widgets/SeedWidget.cxx
deleted file mode 100644 (file)
index fbd30d2..0000000
+++ /dev/null
@@ -1,223 +0,0 @@
-#include "SeedWidget.h"
-
-#include <cpPlugins/Interface/Image.h>
-#include <cpPlugins/Interface/PointList.h>
-#include <cpPlugins/Interface/SimpleMPRWidget.h>
-#include <cpExtensions/Interaction/ImageInteractorStyle.h>
-#include <cpExtensions/DataStructures/VectorValuesContainer.h>
-
-#include <vtkRenderWindowInteractor.h>
-
-// -------------------------------------------------------------------------
-itk::ModifiedTimeType cpPlugins::Widgets::SeedWidget::
-GetMTime( ) const
-{
-  // std::cout << "Seed GetMTime" << std::endl;
-  return( 0 /*this->Superclass::GetMTime( )*/ );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Widgets::SeedWidget::
-SeedWidget( )
-  : Superclass( ),
-    m_Configured( false )
-{
-  this->_AddInput( "ReferenceImage" );
-  this->_AddOutput< cpPlugins::Interface::PointList >( "Output" );
-
-  this->m_Parameters->ConfigureAsBool( "SeedsAreInRealSpace" );
-  this->m_Parameters->SetBool( "SeedsAreInRealSpace", false );
-}
-
-// -------------------------------------------------------------------------
-cpPlugins::Widgets::SeedWidget::
-~SeedWidget( )
-{
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::Widgets::SeedWidget::
-_GenerateData( )
-{
-  typedef itk::ImageBase< 2 > _2DImage;
-  typedef itk::ImageBase< 3 > _3DImage;
-
-  auto image = this->GetInputData( "ReferenceImage" );
-  itk::DataObject* itk_image = image->GetITK< _2DImage >( );
-  if( itk_image != NULL )
-    return( this->_GD0< _2DImage >( itk_image ) );
-  else
-  {
-    itk_image = image->GetITK< _3DImage >( );
-    if( itk_image != NULL )
-      return( this->_GD0< _3DImage >( itk_image ) );
-
-  } // fi
-  return( "SeedWidget: Input image dimension not supported." );
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-std::string cpPlugins::Widgets::SeedWidget::
-_GD0( itk::DataObject* image )
-{
-  if( this->m_Parameters->GetBool( "SeedsAreInRealSpace" ) )
-    return( this->_GD1_Points< I >( dynamic_cast< I* >( image ) ) );
-  else
-    return( this->_GD1_Vertices< I >( dynamic_cast< I* >( image ) ) );
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-std::string cpPlugins::Widgets::SeedWidget::
-_GD1_Points( I* image )
-{
-  typedef cpExtensions::Interaction::ImageInteractorStyle _S;
-  typedef itk::Point< double, I::ImageDimension > _P;
-  typedef cpExtensions::DataStructures::VectorValuesContainer< _P > _Container;
-
-  auto container = this->_CreateITK< _Container >( );
-
-  double aux_pnt[ 3 ];
-  unsigned int dim = ( I::ImageDimension < 3 )? I::ImageDimension: 3;
-
-  container->Get( ).clear( );
-
-  // MPR
-  if( this->m_MPRViewer != NULL )
-  {
-    for( unsigned int i = 0; i < 4; ++i )
-    {
-      _S* s =
-        dynamic_cast< _S* >(
-          this->m_MPRViewer->GetInteractor( i )->GetInteractorStyle( )
-          );
-      if( s != NULL )
-      {
-        if( this->m_Configured )
-        {
-          for( unsigned int i = 0; i < s->GetNumberOfSeeds( ); ++i )
-          {
-            s->GetSeedAsPoint( i, aux_pnt );
-            _P seed;
-            for( unsigned int d = 0; d < dim; ++d )
-              seed[ d ] = aux_pnt[ d ];
-            container->PushBack( seed );
-
-          } // rof
-        }
-        else
-          s->SeedWidgetOn( );
-
-      } // fi
-
-    } // rof
-
-  } // fi
-
-  // Single interactor
-  _S* s = dynamic_cast< _S* >( this->m_SingleInteractor );
-  if( s != NULL )
-  {
-    if( this->m_Configured )
-    {
-      for( unsigned int i = 0; i < s->GetNumberOfSeeds( ); ++i )
-      {
-        s->GetSeedAsPoint( i, aux_pnt );
-        _P seed;
-        for( unsigned int d = 0; d < dim; ++d )
-          seed[ d ] = aux_pnt[ d ];
-        container->PushBack( seed );
-
-      } // rof
-    }
-    else
-      s->SeedWidgetOn( );
-
-  } // fi
-  this->m_Configured = true;
-
-  auto out = this->GetOutputData( "Output" );
-  out->SetITK( container );
-  return( "" );
-}
-
-// -------------------------------------------------------------------------
-template< class I >
-std::string cpPlugins::Widgets::SeedWidget::
-_GD1_Vertices( I* image )
-{
-  typedef cpExtensions::Interaction::ImageInteractorStyle _S;
-  typedef cpExtensions::DataStructures::VectorValuesContainer< typename I::IndexType > _Container;
-
-  auto container = this->_CreateITK< _Container >( );
-
-  double aux_pnt[ 3 ];
-  unsigned int dim = ( I::ImageDimension < 3 )? I::ImageDimension: 3;
-
-  container->Get( ).clear( );
-
-  // MPR
-  if( this->m_MPRViewer != NULL )
-  {
-    for( unsigned int i = 0; i < 4; ++i )
-    {
-      _S* s =
-        dynamic_cast< _S* >(
-          this->m_MPRViewer->GetInteractor( i )->GetInteractorStyle( )
-          );
-      if( s != NULL )
-      {
-        if( this->m_Configured )
-        {
-          for( unsigned int i = 0; i < s->GetNumberOfSeeds( ); ++i )
-          {
-            s->GetSeedAsPoint( i, aux_pnt );
-            typename I::PointType seed;
-            for( unsigned int d = 0; d < dim; ++d )
-              seed[ d ] = aux_pnt[ d ];
-            typename I::IndexType idx;
-            if( image->TransformPhysicalPointToIndex( seed, idx ) )
-              container->PushBack( idx );
-
-          } // rof
-        }
-        else
-          s->SeedWidgetOn( );
-
-      } // fi
-
-    } // rof
-
-  } // fi
-
-  // Single interactor
-  _S* s = dynamic_cast< _S* >( this->m_SingleInteractor );
-  if( s != NULL )
-  {
-    if( this->m_Configured )
-    {
-      for( unsigned int i = 0; i < s->GetNumberOfSeeds( ); ++i )
-      {
-        s->GetSeedAsPoint( i, aux_pnt );
-        typename I::PointType seed;
-        for( unsigned int d = 0; d < dim; ++d )
-          seed[ d ] = aux_pnt[ d ];
-        typename I::IndexType idx;
-        if( image->TransformPhysicalPointToIndex( seed, idx ) )
-          container->PushBack( idx );
-
-      } // rof
-    }
-    else
-      s->SeedWidgetOn( );
-
-  } // fi
-  this->m_Configured = true;
-
-  auto out = this->GetOutputData( "Output" );
-  out->SetITK( container );
-  return( "" );
-}
-
-// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/Widgets/SeedWidget.h b/lib/cpPlugins/Plugins/Widgets/SeedWidget.h
deleted file mode 100644 (file)
index 5d11e1d..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-#ifndef __CPPLUGINS__PLUGINS__SEEDWIDGET__H__
-#define __CPPLUGINS__PLUGINS__SEEDWIDGET__H__
-
-#include <cpPlugins/Widgets/cpPluginsWidgets_Export.h>
-#include <cpPlugins/Interface/ProcessObject.h>
-
-namespace cpPlugins
-{
-  namespace Widgets
-  {
-    /**
-     */
-    class cpPluginsWidgets_EXPORT SeedWidget
-      : public cpPlugins::Interface::ProcessObject
-    {
-    public:
-      typedef SeedWidget                          Self;
-      typedef cpPlugins::Interface::ProcessObject Superclass;
-      typedef itk::SmartPointer< Self >           Pointer;
-      typedef itk::SmartPointer< const Self >     ConstPointer;
-
-    public:
-      itkNewMacro( Self );
-      itkTypeMacro( SeedWidget, cpPlugins::Interface::ProcessObject );
-      cpPlugins_Id_Macro( cpPlugins::Widgets::SeedWidget, Widgets );
-
-    public:
-      virtual itk::ModifiedTimeType GetMTime( ) const;
-
-    protected:
-      SeedWidget( );
-      virtual ~SeedWidget( );
-
-      virtual std::string _GenerateData( );
-
-      template< class I >
-        inline std::string _GD0( itk::DataObject* image );
-
-      template< class I >
-        inline std::string _GD1_Points( I* image );
-
-      template< class I >
-        inline std::string _GD1_Vertices( I* image );
-
-    private:
-      // Purposely not implemented
-      SeedWidget( const Self& );
-      Self& operator=( const Self& );
-
-    protected:
-      bool m_Configured;
-    };
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __CPPLUGINS__PLUGINS__SEEDWIDGET__H__
-
-// eof - $RCSfile$
diff --git a/lib/third_party/CMakeLists.txt b/lib/third_party/CMakeLists.txt
deleted file mode 100644 (file)
index c69ba0d..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-SUBDIRS(
-  tinyxml
-  Pluma
-  )
-
-## ========================
-## -- Installation rules --
-## ========================
-IF(WIN32 OR APPLE)
-  SET(
-    local_install_dirs
-    ItkVtkGlue
-    glext
-    )
-ELSE()
-  SET(
-    local_install_dirs
-    ItkVtkGlue
-    )
-ENDIF(WIN32 OR APPLE)
-
-FOREACH(dir ${local_install_dirs})
-  INSTALL(
-    DIRECTORY ${dir}
-    DESTINATION include/cpPlugins/third_party
-    FILES_MATCHING PATTERN "*.h"
-    )
-  INSTALL(
-    DIRECTORY ${dir}
-    DESTINATION include/cpPlugins/third_party
-    FILES_MATCHING PATTERN "*.hxx"
-    )
-  INSTALL(
-    DIRECTORY ${dir}
-    DESTINATION include/cpPlugins/third_party
-    FILES_MATCHING PATTERN "*.hpp"
-    )
-ENDFOREACH(dir)
-
-## eof - $RCSfile$
diff --git a/lib/third_party/ItkVtkGlue/itkImageToVTKImageFilter.h b/lib/third_party/ItkVtkGlue/itkImageToVTKImageFilter.h
deleted file mode 100644 (file)
index 34975da..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-/*=========================================================================
- *
- *  Copyright Insight Software Consortium
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0.txt
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- *
- *=========================================================================*/
-#ifndef __itkImageToVTKImageFilter_h
-#define __itkImageToVTKImageFilter_h
-
-#include "itkVTKImageExport.h"
-#include "vtkImageImport.h"
-#include "vtkImageData.h"
-
-namespace itk
-{
-
-/** \class ImageToVTKImageFilter
- * \brief Converts an ITK image into a VTK image and plugs a
- *  itk data pipeline to a VTK datapipeline.
- *
- *  This class puts together an itkVTKImageExporter and a vtkImageImporter.
- *  It takes care of the details related to the connection of ITK and VTK
- *  pipelines. The User will perceive this filter as an adaptor to which
- *  an itk::Image can be plugged as input and a vtkImage is produced as
- *  output.
- *
- * \ingroup   ITKVtkGlue
- *
- * \wiki
- * \wikiexample{IO/ImageToVTKImageFilter,Display an ITK image}
- * \wikiexample{IO/itkVtkImageConvertDICOM,Uses a custom user matrix to align the image with DICOM physical space}
- * \endwiki
- */
-template <typename TInputImage >
-class ImageToVTKImageFilter : public ProcessObject
-{
-public:
-  /** Standard class typedefs. */
-  typedef ImageToVTKImageFilter     Self;
-  typedef ProcessObject             Superclass;
-  typedef SmartPointer<Self>        Pointer;
-  typedef SmartPointer<const Self>  ConstPointer;
-
-  /** Method for creation through the object factory. */
-  itkNewMacro(Self);
-
-  /** Run-time type information (and related methods). */
-  itkTypeMacro(ImageToVTKImageFilter, ProcessObject);
-
-  /** Some typedefs. */
-  typedef TInputImage                            InputImageType;
-  typedef typename InputImageType::ConstPointer  InputImagePointer;
-
-  typedef VTKImageExport< InputImageType>        ExporterFilterType;
-  typedef typename ExporterFilterType::Pointer   ExporterFilterPointer;
-
-  /** Get the output in the form of a vtkImage.
-      This call is delegated to the internal vtkImageImporter filter  */
-  vtkImageData *  GetOutput() const;
-
-  /** Set the input in the form of an itk::Image */
-  using Superclass::SetInput;
-  void SetInput( const InputImageType * );
-  InputImageType * GetInput();
-
-  /** Return the internal VTK image importer filter.
-      This is intended to facilitate users the access
-      to methods in the importer */
-  vtkImageImport * GetImporter() const;
-
-  /** Return the internal ITK image exporter filter.
-      This is intended to facilitate users the access
-      to methods in the exporter */
-  ExporterFilterType * GetExporter() const;
-
-  /** This call delegates the update to the importer */
-  void Update();
-
-protected:
-  ImageToVTKImageFilter();
-  virtual ~ImageToVTKImageFilter();
-
-private:
-  ImageToVTKImageFilter(const Self&); //purposely not implemented
-  void operator=(const Self&);        //purposely not implemented
-
-  ExporterFilterPointer       m_Exporter;
-  vtkImageImport *            m_Importer;
-};
-
-} // end namespace itk
-
-#ifndef ITK_MANUAL_INSTANTIATION
-#include "itkImageToVTKImageFilter.hxx"
-#endif
-
-#endif
diff --git a/lib/third_party/ItkVtkGlue/itkImageToVTKImageFilter.hxx b/lib/third_party/ItkVtkGlue/itkImageToVTKImageFilter.hxx
deleted file mode 100644 (file)
index 1febaf0..0000000
+++ /dev/null
@@ -1,129 +0,0 @@
-/*=========================================================================
- *
- *  Copyright Insight Software Consortium
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0.txt
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- *
- *=========================================================================*/
-#ifndef __itkImageToVTKImageFilter_hxx
-#define __itkImageToVTKImageFilter_hxx
-
-#include "itkImageToVTKImageFilter.h"
-
-namespace itk
-{
-
-/**
- * Constructor
- */
-template <typename TInputImage>
-ImageToVTKImageFilter<TInputImage>
-::ImageToVTKImageFilter()
-{
-  m_Importer = vtkImageImport::New();
-  m_Exporter = ExporterFilterType::New();
-
-  m_Importer->SetUpdateInformationCallback(m_Exporter->GetUpdateInformationCallback());
-  m_Importer->SetPipelineModifiedCallback(m_Exporter->GetPipelineModifiedCallback());
-  m_Importer->SetWholeExtentCallback(m_Exporter->GetWholeExtentCallback());
-  m_Importer->SetSpacingCallback(m_Exporter->GetSpacingCallback());
-  m_Importer->SetOriginCallback(m_Exporter->GetOriginCallback());
-  m_Importer->SetScalarTypeCallback(m_Exporter->GetScalarTypeCallback());
-  m_Importer->SetNumberOfComponentsCallback(m_Exporter->GetNumberOfComponentsCallback());
-  m_Importer->SetPropagateUpdateExtentCallback(m_Exporter->GetPropagateUpdateExtentCallback());
-  m_Importer->SetUpdateDataCallback(m_Exporter->GetUpdateDataCallback());
-  m_Importer->SetDataExtentCallback(m_Exporter->GetDataExtentCallback());
-  m_Importer->SetBufferPointerCallback(m_Exporter->GetBufferPointerCallback());
-  m_Importer->SetCallbackUserData(m_Exporter->GetCallbackUserData());
-
-}
-
-/**
- * Destructor
- */
-template <typename TInputImage>
-ImageToVTKImageFilter<TInputImage>
-::~ImageToVTKImageFilter()
-{
-  if( m_Importer )
-    {
-    m_Importer->Delete();
-    m_Importer = 0;
-    }
-}
-
-/**
- * Set an itk::Image as input
- */
-template <typename TInputImage>
-void
-ImageToVTKImageFilter<TInputImage>
-::SetInput( const InputImageType * inputImage )
-{
-  m_Exporter->SetInput( inputImage );
-}
-
-template <typename TInputImage>
-typename ImageToVTKImageFilter<TInputImage>::InputImageType *
-ImageToVTKImageFilter<TInputImage>
-::GetInput()
-{
-  return m_Exporter->GetInput();
-}
-
-/**
- * Get a vtkImage as output
- */
-template <typename TInputImage>
-vtkImageData *
-ImageToVTKImageFilter<TInputImage>
-::GetOutput() const
-{
-  return m_Importer->GetOutput();
-}
-
-/**
- * Get the importer filter
- */
-template <typename TInputImage>
-vtkImageImport *
-ImageToVTKImageFilter<TInputImage>
-::GetImporter() const
-{
-  return m_Importer;
-}
-
-/**
- * Get the exporter filter
- */
-template <typename TInputImage>
-typename ImageToVTKImageFilter<TInputImage>::ExporterFilterType *
-ImageToVTKImageFilter<TInputImage>
-::GetExporter() const
-{
-  return m_Exporter.GetPointer();
-}
-
-/**
- * Delegate the Update to the importer
- */
-template <typename TInputImage>
-void
-ImageToVTKImageFilter<TInputImage>
-::Update()
-{
-  m_Importer->Update();
-}
-} // end namespace itk
-
-#endif
diff --git a/lib/third_party/ItkVtkGlue/itkVTKImageToImageFilter.h b/lib/third_party/ItkVtkGlue/itkVTKImageToImageFilter.h
deleted file mode 100644 (file)
index 6ba43fb..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-/*=========================================================================
- *
- *  Copyright Insight Software Consortium
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0.txt
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- *
- *=========================================================================*/
-
-#ifndef __itkVTKImageToImageFilter_h
-#define __itkVTKImageToImageFilter_h
-
-#include "itkVTKImageImport.h"
-#include "vtkImageExport.h"
-#include "vtkImageData.h"
-#include "vtkSmartPointer.h"
-
-#ifndef vtkFloatingPointType
-#define vtkFloatingPointType float
-#endif
-
-namespace itk
-{
-
-/** \class VTKImageToImageFilter
- * \brief Converts a VTK image into an ITK image and plugs a
- *  VTK data pipeline to an ITK datapipeline.
- *
- *  This class puts together an itk::VTKImageImport and a vtk::ImageExport.
- *  It takes care of the details related to the connection of ITK and VTK
- *  pipelines. The User will perceive this filter as an adaptor to which
- *  a vtkImageData can be plugged as input and an itk::Image is produced as
- *  output.
- *
- * \ingroup ITKVtkGlue
- */
-template <typename TOutputImage >
-class VTKImageToImageFilter : public VTKImageImport< TOutputImage >
-{
-public:
-  /** Standard class typedefs. */
-  typedef VTKImageToImageFilter             Self;
-  typedef VTKImageImport< TOutputImage >    Superclass;
-  typedef SmartPointer<Self>                Pointer;
-  typedef SmartPointer<const Self>          ConstPointer;
-
-  /** Method for creation through the object factory. */
-  itkNewMacro(Self);
-
-  /** Run-time type information (and related methods). */
-  itkTypeMacro(VTKImageToImageFilter, VTKImageImport);
-
-  /** Some typedefs. */
-  typedef TOutputImage                              OutputImageType;
-  typedef typename    OutputImageType::ConstPointer OutputImagePointer;
-
-  /** Set the input in the form of a vtkImageData */
-  void SetInput( vtkImageData * );
-  using Superclass::SetInput;
-
-  /** Return the internal VTK image exporter filter.
-      This is intended to facilitate users the access
-      to methods in the exporter */
-  vtkImageExport * GetExporter() const;
-
-  /** Return the internal ITK image importer filter.
-      This is intended to facilitate users the access
-      to methods in the importer.
-      */
-  const Superclass * GetImporter() const;
-
-protected:
-  VTKImageToImageFilter();
-  virtual ~VTKImageToImageFilter();
-
-private:
-  VTKImageToImageFilter(const Self&); //purposely not implemented
-  void operator=(const Self&); //purposely not implemented
-
-  typedef vtkSmartPointer<vtkImageExport> ImageExportPointer;
-  ImageExportPointer m_Exporter;
-
-};
-
-} // end namespace itk
-
-#ifndef ITK_MANUAL_INSTANTIATION
-#include "itkVTKImageToImageFilter.hxx"
-#endif
-
-#endif
diff --git a/lib/third_party/ItkVtkGlue/itkVTKImageToImageFilter.hxx b/lib/third_party/ItkVtkGlue/itkVTKImageToImageFilter.hxx
deleted file mode 100644 (file)
index c17538b..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-/*=========================================================================
- *
- *  Copyright Insight Software Consortium
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0.txt
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- *
- *=========================================================================*/
-
-#ifndef __itkVTKImageToImageFilter_hxx
-#define __itkVTKImageToImageFilter_hxx
-
-#include "itkVTKImageToImageFilter.h"
-
-#include "vtkVersion.h"
-
-namespace itk
-{
-
-/**
- * Constructor
- */
-template <typename TOutputImage>
-VTKImageToImageFilter<TOutputImage>
-::VTKImageToImageFilter()
-{
-
-  m_Exporter = vtkImageExport::New();
-
-  this->SetUpdateInformationCallback( m_Exporter->GetUpdateInformationCallback());
-  this->SetPipelineModifiedCallback( m_Exporter->GetPipelineModifiedCallback());
-  this->SetWholeExtentCallback( m_Exporter->GetWholeExtentCallback());
-  this->SetSpacingCallback( m_Exporter->GetSpacingCallback());
-  this->SetOriginCallback( m_Exporter->GetOriginCallback());
-  this->SetScalarTypeCallback( m_Exporter->GetScalarTypeCallback());
-  this->SetNumberOfComponentsCallback( m_Exporter->GetNumberOfComponentsCallback());
-  this->SetPropagateUpdateExtentCallback( m_Exporter->GetPropagateUpdateExtentCallback());
-  this->SetUpdateDataCallback( m_Exporter->GetUpdateDataCallback());
-  this->SetDataExtentCallback( m_Exporter->GetDataExtentCallback());
-  this->SetBufferPointerCallback( m_Exporter->GetBufferPointerCallback());
-  this->SetCallbackUserData( m_Exporter->GetCallbackUserData());
-
-}
-
-/**
- * Destructor
- */
-template <typename TOutputImage>
-VTKImageToImageFilter<TOutputImage>
-::~VTKImageToImageFilter()
-{
-  if( m_Exporter )
-    {
-    m_Exporter->Delete();
-    m_Exporter = 0;
-    }
-}
-
-/**
- * Set a vtkImageData as input
- */
-template <typename TOutputImage>
-void
-VTKImageToImageFilter<TOutputImage>
-::SetInput( vtkImageData * inputImage )
-{
-#if VTK_MAJOR_VERSION <= 5
-  m_Exporter->SetInput( inputImage );
-#else
-  m_Exporter->SetInputData( inputImage );
-#endif
-}
-
-/**
- * Get the exporter filter
- */
-template <typename TOutputImage>
-vtkImageExport *
-VTKImageToImageFilter<TOutputImage>
-::GetExporter() const
-{
-  return m_Exporter;
-}
-
-/**
- * Get the importer filter
- */
-template <typename TOutputImage>
-const typename VTKImageToImageFilter<TOutputImage>::Superclass *
-VTKImageToImageFilter<TOutputImage>
-::GetImporter() const
-{
-  return this;
-}
-
-} // end namespace itk
-
-#endif
diff --git a/lib/third_party/Pluma/CMakeLists.txt b/lib/third_party/Pluma/CMakeLists.txt
deleted file mode 100644 (file)
index c7e062c..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-SET(LIBRARY_NAME cpPlugins_Pluma)
-
-## ===============
-## = Source code =
-## ===============
-
-FILE(GLOB LIB_HEADERS_H   "*.h")
-FILE(GLOB LIB_HEADERS_HPP "*.hpp")
-FILE(GLOB LIB_HEADERS_HXX "*.hxx")
-FILE(GLOB LIB_SOURCES_C   "*.c")
-FILE(GLOB LIB_SOURCES_CPP "*.cpp")
-FILE(GLOB LIB_SOURCES_CXX "*.cxx")
-
-## =====================
-## = Compilation rules =
-## =====================
-
-ADD_LIBRARY(
-  ${LIBRARY_NAME}
-  SHARED
-  ${LIB_SOURCES_C}
-  ${LIB_SOURCES_CPP}
-  ${LIB_SOURCES_CXX}
-  )
-GENERATE_EXPORT_HEADER(
-  ${LIBRARY_NAME}
-  BASE_NAME ${LIBRARY_NAME}
-  EXPORT_MACRO_NAME ${LIBRARY_NAME}_EXPORT
-  EXPORT_FILE_NAME  ${PROJECT_BINARY_DIR}/lib/third_party/Pluma/${LIBRARY_NAME}_Export.h
-  STATIC_DEFINE ${LIBRARY_NAME}_BUILT_AS_STATIC
-  )
-IF(NOT WIN32)
-  TARGET_LINK_LIBRARIES(
-    ${LIBRARY_NAME}
-    dl
-    )
-ENDIF(NOT WIN32)
-
-## ========================
-## -- Installation rules --
-## ========================
-
-INSTALL(
-  TARGETS ${LIBRARY_NAME}
-  RUNTIME DESTINATION bin
-  LIBRARY DESTINATION lib
-  ARCHIVE DESTINATION lib/static
-  )
-
-## eof - $RCSfile$
diff --git a/lib/third_party/Pluma/Config.hpp b/lib/third_party/Pluma/Config.hpp
deleted file mode 100644 (file)
index 2fa7df5..0000000
+++ /dev/null
@@ -1,146 +0,0 @@
-////////////////////////////////////////////////////////////\r
-//\r
-// Pluma - Plug-in Management Framework\r
-// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
-//\r
-// This software is provided 'as-is', without any express or implied warranty.\r
-// In no event will the authors be held liable for any damages arising from the use of this software.\r
-//\r
-// Permission is granted to anyone to use this software for any purpose,\r
-// including commercial applications, and to alter it and redistribute it freely,\r
-// subject to the following restrictions:\r
-//\r
-// 1. The origin of this software must not be misrepresented;\r
-//    you must not claim that you wrote the original software.\r
-//    If you use this software in a product, an acknowledgment\r
-//    in the product documentation would be appreciated but is not required.\r
-//\r
-// 2. Altered source versions must be plainly marked as such,\r
-//    and must not be misrepresented as being the original software.\r
-//\r
-// 3. This notice may not be removed or altered from any source distribution.\r
-//\r
-////////////////////////////////////////////////////////////\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-//\r
-// Based on SFML configuration header\r
-// SFML Config.hpp:\r
-// http://www.sfml-dev.org/documentation/2.0/Config_8hpp-source.htm\r
-//\r
-// Acknowledgements to Simple and Fast Multimedia Library\r
-// http://www.sfml-dev.org/\r
-//\r
-////////////////////////////////////////////////////////////\r
-\r
-\r
-#ifndef PLUMA_CONFIG_HPP\r
-#define PLUMA_CONFIG_HPP\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-// Identify the operating system\r
-////////////////////////////////////////////////////////////\r
-#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__)\r
-\r
-    // Windows\r
-    #define PLUMA_SYS_WINDOWS\r
-    #ifndef WIN32_LEAN_AND_MEAN\r
-        #define WIN32_LEAN_AND_MEAN\r
-    #endif\r
-    #ifndef NOMINMAX\r
-        #define NOMINMAX\r
-    #endif\r
-\r
-#elif defined(linux) || defined(__linux)\r
-\r
-    // Linux\r
-    #define PLUMA_SYS_LINUX\r
-\r
-#elif defined(__APPLE__) || defined(MACOSX) || defined(macintosh) || defined(Macintosh)\r
-\r
-    // MacOS\r
-    #define PLUMA_SYS_MACOS\r
-\r
-#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)\r
-\r
-    // FreeBSD\r
-    #define PLUMA_SYS_FREEBSD\r
-\r
-#else\r
-\r
-    // Unsupported system\r
-    #error This operating system is not supported by this library\r
-\r
-#endif\r
-\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-// Define library file extension based on OS\r
-////////////////////////////////////////////////////////////\r
-#ifdef PLUMA_SYS_WINDOWS\r
-     #define PLUMA_LIB_EXTENSION "dll"\r
-#elif defined(PLUMA_SYS_MACOS)\r
-     #define PLUMA_LIB_EXTENSION "dylib"\r
-#elif defined(PLUMA_SYS_LINUX) || defined(PLUMA_SYS_FREEBSD)\r
-     #define PLUMA_LIB_EXTENSION "so"\r
-#else\r
-   // unknown library file type\r
-    #error Unknown library file extension for this operating system\r
-#endif\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-// Define portable import / export macros\r
-////////////////////////////////////////////////////////////\r
-\r
-#include <Pluma/cpPlugins_Pluma_Export.h>\r
-#define PLUMA_API cpPlugins_Pluma_EXPORT\r
-\r
-/* ===================================================================\r
- * florez-l@javeriana.edu.co: use dll macro defined from cmake instead\r
- * ===================================================================\r
- #if defined(PLUMA_SYS_WINDOWS)\r
-\r
- #ifndef PLUMA_STATIC\r
-\r
- // Windows platforms\r
- #ifdef PLUMA_EXPORTS\r
-\r
- // From DLL side, we must export\r
- #define PLUMA_API __declspec(dllexport)\r
-\r
- #else\r
-\r
- // From client application side, we must import\r
- #define PLUMA_API __declspec(dllimport)\r
-\r
- #endif\r
-\r
- // For Visual C++ compilers, we also need to turn off this annoying C4251 warning.\r
- // You can read lots ot different things about it, but the point is the code will\r
- // just work fine, and so the simplest way to get rid of this warning is to disable it\r
- #ifdef _MSC_VER\r
-\r
- #pragma warning(disable : 4251)\r
-\r
- #endif\r
-\r
- #else\r
-\r
- // No specific directive needed for static build\r
- #define PLUMA_API\r
-\r
- #endif\r
-\r
- #else\r
-\r
- // Other platforms don't need to define anything\r
- #define PLUMA_API\r
-\r
- #endif\r
-*/\r
-\r
-#endif // PLUMA_CONFIG_HPP\r
diff --git a/lib/third_party/Pluma/Connector.hpp b/lib/third_party/Pluma/Connector.hpp
deleted file mode 100644 (file)
index 3c227e7..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-////////////////////////////////////////////////////////////\r
-//\r
-// Pluma - Plug-in Management Framework\r
-// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
-//\r
-// This software is provided 'as-is', without any express or implied warranty.\r
-// In no event will the authors be held liable for any damages arising from the use of this software.\r
-//\r
-// Permission is granted to anyone to use this software for any purpose,\r
-// including commercial applications, and to alter it and redistribute it freely,\r
-// subject to the following restrictions:\r
-//\r
-// 1. The origin of this software must not be misrepresented;\r
-//    you must not claim that you wrote the original software.\r
-//    If you use this software in a product, an acknowledgment\r
-//    in the product documentation would be appreciated but is not required.\r
-//\r
-// 2. Altered source versions must be plainly marked as such,\r
-//    and must not be misrepresented as being the original software.\r
-//\r
-// 3. This notice may not be removed or altered from any source distribution.\r
-//\r
-////////////////////////////////////////////////////////////\r
-\r
-#ifndef PLUMA_CONNECTOR_HPP\r
-#define PLUMA_CONNECTOR_HPP\r
-\r
-////////////////////////////////////////////////////////////\r
-// Headers\r
-////////////////////////////////////////////////////////////\r
-#include <Pluma/Config.hpp>\r
-#include <Pluma/Pluma.hpp>\r
-\r
-\r
-/////////////////////////////////////////////////////////////////\r
-// Define portable import/export macros for Plugin registration\r
-/////////////////////////////////////////////////////////////////\r
-#if defined(PLUMA_SYS_WINDOWS)\r
-\r
-    #ifndef PLUMA_STATIC_PLUGIN\r
-\r
-         // Windows platforms\r
-        #ifndef PLUGIN_IMPORTS\r
-\r
-            // From DLL side, we must export\r
-            #ifdef __cplusplus\r
-               #define PLUMA_CONNECTOR extern "C" __declspec(dllexport)\r
-            #else\r
-               #define PLUMA_CONNECTOR __declspec(dllexport)\r
-            #endif\r
-\r
-        #else\r
-\r
-            // From client application side, we must import\r
-            #ifdef __cplusplus\r
-               #define PLUMA_CONNECTOR extern "C" __declspec(dllimport)\r
-            #else\r
-               #define PLUMA_CONNECTOR __declspec(dllimport)\r
-            #endif\r
-\r
-        #endif\r
-\r
-    #else\r
-\r
-        // Only define the extern "C" for static build\r
-        #ifdef __cplusplus\r
-           #define PLUMA_CONNECTOR extern "C"\r
-        #else\r
-           #define PLUMA_CONNECTOR\r
-        #endif\r
-\r
-    #endif\r
-\r
-#else\r
-\r
-    // Only define the extern "C" for other platforms\r
-    #ifdef __cplusplus\r
-       #define PLUMA_CONNECTOR extern "C"\r
-    #else\r
-       #define PLUMA_CONNECTOR\r
-    #endif\r
-\r
-#endif\r
-\r
-\r
-#endif // PLUMA_CONNECTOR_HPP\r
diff --git a/lib/third_party/Pluma/DLibrary.cpp b/lib/third_party/Pluma/DLibrary.cpp
deleted file mode 100644 (file)
index 14516ba..0000000
+++ /dev/null
@@ -1,121 +0,0 @@
-////////////////////////////////////////////////////////////\r
-//\r
-// Pluma - Plug-in Management Framework\r
-// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
-//\r
-// This software is provided 'as-is', without any express or implied warranty.\r
-// In no event will the authors be held liable for any damages arising from the use of this software.\r
-//\r
-// Permission is granted to anyone to use this software for any purpose,\r
-// including commercial applications, and to alter it and redistribute it freely,\r
-// subject to the following restrictions:\r
-//\r
-// 1. The origin of this software must not be misrepresented;\r
-//    you must not claim that you wrote the original software.\r
-//    If you use this software in a product, an acknowledgment\r
-//    in the product documentation would be appreciated but is not required.\r
-//\r
-// 2. Altered source versions must be plainly marked as such,\r
-//    and must not be misrepresented as being the original software.\r
-//\r
-// 3. This notice may not be removed or altered from any source distribution.\r
-//\r
-////////////////////////////////////////////////////////////\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-// Headers\r
-////////////////////////////////////////////////////////////\r
-#include <Pluma/DLibrary.hpp>\r
-#include <cstdio>\r
-#include <string>\r
-#include <stdexcept>\r
-\r
-\r
-namespace pluma{\r
-\r
-////////////////////////////////////////////////////////////\r
-DLibrary* DLibrary::load(const std::string& path){\r
-    if ( path.empty() ){\r
-      // fprintf(stderr, "Failed to load library: Empty path\n");\r
-      throw std::runtime_error( "Failed to load library: Empty path." );\r
-        return NULL;\r
-    }\r
-    void* handle = NULL;\r
-\r
-    // load library - OS dependent operation\r
-    #ifdef PLUMA_SYS_WINDOWS\r
-        handle = ::LoadLibraryA(path.c_str());\r
-        if (!handle){\r
-          //fprintf(stderr, "Failed to load library \"%s\".\n", path.c_str());\r
-          throw std::runtime_error(\r
-            std::string( "Failed to load library \"" ) +\r
-            path +\r
-            std::string( "\"." )\r
-            );\r
-          return NULL;\r
-        }\r
-    #else\r
-        handle = ::dlopen(path.c_str(), RTLD_NOW);\r
-        if (!handle){\r
-            const char* errorString = ::dlerror();\r
-            std::string error_text = "Failed to load library \"";\r
-            // fprintf(stderr, "Failed to load library \"%s\".", path.c_str());\r
-            if(errorString) error_text += std::string( errorString ); // fprintf(stderr, " OS returned error: \"%s\".", errorString);\r
-            // fprintf(stderr, "\n");\r
-            throw std::runtime_error( error_text + std::string( "\"." ) );\r
-            return NULL;\r
-        }\r
-    #endif\r
-    // return a DLibrary with the DLL handle\r
-    return new DLibrary(handle);\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-DLibrary::~DLibrary(){\r
-    if (handle){\r
-        #ifdef PLUMA_SYS_WINDOWS\r
-            ::FreeLibrary( (HMODULE)handle );\r
-        #else\r
-            ::dlclose(handle);\r
-        #endif\r
-    }\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-void* DLibrary::getSymbol(const std::string& symbol){\r
-    if (!handle){\r
-      //fprintf(stderr, "Cannot inspect library symbols, library isn't loaded.\n");\r
-      throw std::runtime_error( "Cannot inspect library symbols, library isn't loaded." );\r
-        return NULL;\r
-    }\r
-    void* res;\r
-    #ifdef PLUMA_SYS_WINDOWS\r
-        res = (void*)(::GetProcAddress((HMODULE)handle, symbol.c_str()));\r
-    #else\r
-        res = (void*)(::dlsym(handle, symbol.c_str()));\r
-    #endif\r
-    if (!res){\r
-      // fprintf(stderr, "Library symbol \"%s\" not found.\n", symbol.c_str());\r
-      throw std::runtime_error(\r
-        std::string( "Library symbol \"" ) +\r
-        symbol +\r
-        std::string( "\" not found." )\r
-        );\r
-      return NULL;\r
-    }\r
-    return res;\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-DLibrary::DLibrary(void* handle):\r
-    handle(handle)\r
-{\r
-    // Nothing to do\r
-}\r
-\r
-}   // namespace pluma\r
-\r
diff --git a/lib/third_party/Pluma/DLibrary.hpp b/lib/third_party/Pluma/DLibrary.hpp
deleted file mode 100644 (file)
index 1bb9bac..0000000
+++ /dev/null
@@ -1,123 +0,0 @@
-////////////////////////////////////////////////////////////\r
-//\r
-// Pluma - Plug-in Management Framework\r
-// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
-//\r
-// This software is provided 'as-is', without any express or implied warranty.\r
-// In no event will the authors be held liable for any damages arising from the use of this software.\r
-//\r
-// Permission is granted to anyone to use this software for any purpose,\r
-// including commercial applications, and to alter it and redistribute it freely,\r
-// subject to the following restrictions:\r
-//\r
-// 1. The origin of this software must not be misrepresented;\r
-//    you must not claim that you wrote the original software.\r
-//    If you use this software in a product, an acknowledgment\r
-//    in the product documentation would be appreciated but is not required.\r
-//\r
-// 2. Altered source versions must be plainly marked as such,\r
-//    and must not be misrepresented as being the original software.\r
-//\r
-// 3. This notice may not be removed or altered from any source distribution.\r
-//\r
-////////////////////////////////////////////////////////////\r
-\r
-#ifndef PLUMA_DYNAMIC_LIBRARY_HPP\r
-#define PLUMA_DYNAMIC_LIBRARY_HPP\r
-\r
-////////////////////////////////////////////////////////////\r
-// Headers\r
-////////////////////////////////////////////////////////////\r
-#include <Pluma/Config.hpp>\r
-#include <string>\r
-\r
-// include OS dependent support for DLL\r
-#ifdef PLUMA_SYS_WINDOWS\r
-    #include <Windows.h>\r
-#else\r
-    #include <dlfcn.h>\r
-#endif\r
-\r
-\r
-\r
-namespace pluma{\r
-\r
-////////////////////////////////////////////////////////////\r
-/// \brief Manages a Dynamic Linking Library.\r
-///\r
-////////////////////////////////////////////////////////////\r
-class DLibrary{\r
-\r
-\r
-public:\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Load a library.\r
-    ///\r
-    /// \param path Path to the library.\r
-    ///\r
-    /// \return Pointer to the loaded library, or NULL if failed.\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    static DLibrary* load(const std::string& path);\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Destructor.\r
-    ///\r
-    /// Close and free the opened library (if any).\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    ~DLibrary();\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Get a symbol from the library.\r
-    ///\r
-    /// \param symbol Symbol that we're looking for.\r
-    ///\r
-    /// \return Pointer to what the symbol refers to, or NULL if\r
-    /// the symbol is not found.\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    void* getSymbol(const std::string& symbol);\r
-\r
-\r
-private:\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Default constructor.\r
-    ///\r
-    /// Library instances cannot be created, use load instead.\r
-    ///\r
-    /// \see load\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    DLibrary();\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Constructor via library handle.\r
-    ///\r
-    /// Used on load function.\r
-    ///\r
-    /// \see load\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    DLibrary(void* handle);\r
-\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-// Member data\r
-////////////////////////////////////////////////////////////\r
-\r
-\r
-private:\r
-\r
-    void* handle; ///< Library handle.\r
-\r
-};\r
-\r
-\r
-}   // namespace pluma\r
-\r
-\r
-#endif // PLUMA_DYNAMIC_LIBRARY_HPP\r
diff --git a/lib/third_party/Pluma/Dir.cpp b/lib/third_party/Pluma/Dir.cpp
deleted file mode 100644 (file)
index b0494b7..0000000
+++ /dev/null
@@ -1,109 +0,0 @@
-////////////////////////////////////////////////////////////\r
-//\r
-// Pluma - Plug-in Management Framework\r
-// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
-//\r
-// This software is provided 'as-is', without any express or implied warranty.\r
-// In no event will the authors be held liable for any damages arising from the use of this software.\r
-//\r
-// Permission is granted to anyone to use this software for any purpose,\r
-// including commercial applications, and to alter it and redistribute it freely,\r
-// subject to the following restrictions:\r
-//\r
-// 1. The origin of this software must not be misrepresented;\r
-//    you must not claim that you wrote the original software.\r
-//    If you use this software in a product, an acknowledgment\r
-//    in the product documentation would be appreciated but is not required.\r
-//\r
-// 2. Altered source versions must be plainly marked as such,\r
-//    and must not be misrepresented as being the original software.\r
-//\r
-// 3. This notice may not be removed or altered from any source distribution.\r
-//\r
-////////////////////////////////////////////////////////////\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-// Headers\r
-////////////////////////////////////////////////////////////\r
-#include <Pluma/Dir.hpp>\r
-#include <Pluma/uce-dirent.h>\r
-#include <cstdio>\r
-#include <queue>\r
-#include <stdexcept>\r
-\r
-\r
-namespace pluma{\r
-\r
-namespace dir{\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-void listFiles(std::list<std::string>& list, const std::string& folder, const std::string& extension, bool recursive){\r
-    DIR* dir;\r
-    DIR* subDir;\r
-    struct dirent *ent;\r
-    // try to open top folder\r
-    dir = opendir(folder.c_str());\r
-    if (dir == NULL){\r
-        // could not open directory\r
-      // fprintf(stderr, "Could not open \"%s\" directory.\n", folder.c_str());\r
-      throw std::runtime_error(\r
-        std::string( "Could not open \"" ) +\r
-        folder +\r
-        std::string( "\" directory." )\r
-        );\r
-      return;\r
-    }else{\r
-        // close, we'll process it next\r
-        closedir(dir);\r
-    }\r
-    // enqueue top folder\r
-    std::queue<std::string> folders;\r
-    folders.push(folder);\r
-\r
-    // run while has queued folders\r
-    while (!folders.empty()){\r
-        std::string currFolder = folders.front();\r
-        folders.pop();\r
-        dir = opendir(currFolder.c_str());\r
-        if (dir == NULL) continue;\r
-        // iterate through all the files and directories\r
-        while ((ent = readdir (dir)) != NULL) {\r
-            std::string name(ent->d_name);\r
-            // ignore "." and ".." directories\r
-            if ( name.compare(".") == 0 || name.compare("..") == 0) continue;\r
-            // add path to the file name\r
-            std::string path = currFolder;\r
-            path.append("/");\r
-            path.append(name);\r
-            // check if it's a folder by trying to open it\r
-            subDir = opendir(path.c_str());\r
-            if (subDir != NULL){\r
-                // it's a folder: close, we can process it later\r
-                closedir(subDir);\r
-                if (recursive) folders.push(path);\r
-            }else{\r
-                // it's a file\r
-                if (extension.empty()){\r
-                    list.push_back(path);\r
-                }else{\r
-                    // check file extension\r
-                    size_t lastDot = name.find_last_of('.');\r
-                    std::string ext = name.substr(lastDot+1);\r
-                    if (ext.compare(extension) == 0){\r
-                        // match\r
-                        list.push_back(path);\r
-                    }\r
-                } // endif (extension test)\r
-            } // endif (folder test)\r
-        } // endwhile (nextFile)\r
-        closedir(dir);\r
-    } // endwhile (queued folders)\r
-\r
-} // end listFiles\r
-\r
-\r
-}   // namespace dir\r
-\r
-}   // namespace pluma\r
diff --git a/lib/third_party/Pluma/Dir.hpp b/lib/third_party/Pluma/Dir.hpp
deleted file mode 100644 (file)
index a94c477..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-////////////////////////////////////////////////////////////\r
-//\r
-// Pluma - Plug-in Management Framework\r
-// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
-//\r
-// This software is provided 'as-is', without any express or implied warranty.\r
-// In no event will the authors be held liable for any damages arising from the use of this software.\r
-//\r
-// Permission is granted to anyone to use this software for any purpose,\r
-// including commercial applications, and to alter it and redistribute it freely,\r
-// subject to the following restrictions:\r
-//\r
-// 1. The origin of this software must not be misrepresented;\r
-//    you must not claim that you wrote the original software.\r
-//    If you use this software in a product, an acknowledgment\r
-//    in the product documentation would be appreciated but is not required.\r
-//\r
-// 2. Altered source versions must be plainly marked as such,\r
-//    and must not be misrepresented as being the original software.\r
-//\r
-// 3. This notice may not be removed or altered from any source distribution.\r
-//\r
-////////////////////////////////////////////////////////////\r
-\r
-#ifndef PLUMA_DIRECTORY_HPP\r
-#define PLUMA_DIRECTORY_HPP\r
-\r
-////////////////////////////////////////////////////////////\r
-// Headers\r
-////////////////////////////////////////////////////////////\r
-#include <Pluma/Config.hpp>\r
-#include <string>\r
-#include <list>\r
-\r
-\r
-namespace pluma{\r
-\r
-namespace dir{\r
-\r
-////////////////////////////////////////////////////////////\r
-/// \brief List files of a directory.\r
-///\r
-/// \param list The output files list.\r
-/// \param folder The folder where to search in\r
-/// \param extension A file extension filter,\r
-/// empty extension will match all files.\r
-/// \param recursive If true it will list files in\r
-/// sub directories as well.\r
-///\r
-////////////////////////////////////////////////////////////\r
-void listFiles(\r
-    std::list<std::string>& list,\r
-    const std::string& folder,\r
-    const std::string& extension = "",\r
-    bool recursive = false\r
-);\r
-\r
-\r
-}   // namespace dir\r
-\r
-}   // namespace pluma\r
-\r
-\r
-#endif // PLUMA_DIRECTORY_HPP\r
diff --git a/lib/third_party/Pluma/Host.cpp b/lib/third_party/Pluma/Host.cpp
deleted file mode 100644 (file)
index 6fb5539..0000000
+++ /dev/null
@@ -1,189 +0,0 @@
-////////////////////////////////////////////////////////////\r
-//\r
-// Pluma - Plug-in Management Framework\r
-// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
-//\r
-// This software is provided 'as-is', without any express or implied warranty.\r
-// In no event will the authors be held liable for any damages arising from the use of this software.\r
-//\r
-// Permission is granted to anyone to use this software for any purpose,\r
-// including commercial applications, and to alter it and redistribute it freely,\r
-// subject to the following restrictions:\r
-//\r
-// 1. The origin of this software must not be misrepresented;\r
-//    you must not claim that you wrote the original software.\r
-//    If you use this software in a product, an acknowledgment\r
-//    in the product documentation would be appreciated but is not required.\r
-//\r
-// 2. Altered source versions must be plainly marked as such,\r
-//    and must not be misrepresented as being the original software.\r
-//\r
-// 3. This notice may not be removed or altered from any source distribution.\r
-//\r
-////////////////////////////////////////////////////////////\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-// Headers\r
-////////////////////////////////////////////////////////////\r
-#include <Pluma/Host.hpp>\r
-#include <cstdio>\r
-#include <stdexcept>\r
-\r
-\r
-namespace pluma{\r
-\r
-////////////////////////////////////////////////////////////\r
-Host::Host(){\r
-    // Nothing to do\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-bool Host::add(Provider* provider){\r
-    if (provider == NULL){\r
-      //fprintf(stderr, "Trying to add a null provider.\n");\r
-      throw std::runtime_error( "Trying to add a null provider." );\r
-        return false;\r
-    }\r
-    if (!validateProvider(provider)){\r
-        delete provider;\r
-        return false;\r
-    }\r
-    addRequests[ provider->plumaGetType() ].push_back(provider);\r
-    return true;\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-Host::~Host(){\r
-    clearProviders();\r
-    // map frees itself\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-void Host::clearProviders(){\r
-    ProvidersMap::iterator it;\r
-    for (it = knownTypes.begin() ; it != knownTypes.end() ; ++it){\r
-        std::list<Provider*>& providers = it->second.providers;\r
-        std::list<Provider*>::iterator provIt;\r
-        for (provIt = providers.begin() ; provIt != providers.end() ; ++provIt){\r
-            delete *provIt;\r
-        }\r
-        std::list<Provider*>().swap(providers);\r
-    }\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-bool Host::knows(const std::string& type) const{\r
-    return knownTypes.find(type) != knownTypes.end();\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-unsigned int Host::getVersion(const std::string& type) const{\r
-    ProvidersMap::const_iterator it = knownTypes.find(type);\r
-    if (it != knownTypes.end())\r
-        return it->second.version;\r
-    return 0;\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-unsigned int Host::getLowestVersion(const std::string& type) const{\r
-    ProvidersMap::const_iterator it = knownTypes.find(type);\r
-    if (it != knownTypes.end())\r
-        return it->second.lowestVersion;\r
-    return 0;\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-void Host::registerType(const std::string& type, unsigned int version, unsigned int lowestVersion){\r
-    if (!knows(type)){\r
-        ProviderInfo pi;\r
-        pi.version = version;\r
-        pi.lowestVersion = lowestVersion;\r
-        knownTypes[type] = pi;\r
-    }\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-const std::list<Provider*>* Host::getProviders(const std::string& type) const{\r
-    ProvidersMap::const_iterator it = knownTypes.find(type);\r
-    if (it != knownTypes.end())\r
-        return &it->second.providers;\r
-    return NULL;\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-bool Host::validateProvider(Provider* provider) const{\r
-    const std::string& type = provider->plumaGetType();\r
-    if ( !knows(type) ){\r
-      // fprintf(stderr, "%s provider type isn't registered.\n", type.c_str());\r
-      throw std::runtime_error(\r
-        type + std::string( " provider type isn't registered." )\r
-        );\r
-        return false;\r
-    }\r
-    if (!provider->isCompatible(*this)){\r
-      // fprintf(stderr, "Incompatible %s provider version.\n", type.c_str());\r
-      throw std::runtime_error(\r
-        std::string( "Incompatible " ) +\r
-        type +\r
-        std::string( " provider version." )\r
-        );\r
-        return false;\r
-    }\r
-    return true;\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-bool Host::registerProvider(Provider* provider){\r
-    if (!validateProvider(provider)){\r
-        delete provider;\r
-        return false;\r
-    }\r
-    knownTypes[ provider->plumaGetType() ].providers.push_back(provider);\r
-    return true;\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-void Host::cancelAddictions(){\r
-    TempProvidersMap::iterator it;\r
-    for( it = addRequests.begin() ; it != addRequests.end() ; ++it){\r
-        std::list<Provider*> lst = it->second;\r
-        std::list<Provider*>::iterator providerIt;\r
-        for (providerIt = lst.begin() ; providerIt != lst.end() ; ++providerIt){\r
-            delete *providerIt;\r
-        }\r
-    }\r
-    // clear map\r
-    TempProvidersMap().swap(addRequests);\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-bool Host::confirmAddictions(){\r
-    if (addRequests.empty()) return false;\r
-    TempProvidersMap::iterator it;\r
-    for( it = addRequests.begin() ; it != addRequests.end() ; ++it){\r
-        std::list<Provider*> lst = it->second;\r
-        std::list<Provider*>::iterator providerIt;\r
-        for (providerIt = lst.begin() ; providerIt != lst.end() ; ++providerIt){\r
-            knownTypes[it->first].providers.push_back(*providerIt);\r
-        }\r
-    }\r
-    // clear map\r
-    TempProvidersMap().swap(addRequests);\r
-    return true;\r
-}\r
-\r
-\r
-} //namespace pluma\r
diff --git a/lib/third_party/Pluma/Host.hpp b/lib/third_party/Pluma/Host.hpp
deleted file mode 100644 (file)
index cf049f5..0000000
+++ /dev/null
@@ -1,212 +0,0 @@
-////////////////////////////////////////////////////////////\r
-//\r
-// Pluma - Plug-in Management Framework\r
-// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
-//\r
-// This software is provided 'as-is', without any express or implied warranty.\r
-// In no event will the authors be held liable for any damages arising from the use of this software.\r
-//\r
-// Permission is granted to anyone to use this software for any purpose,\r
-// including commercial applications, and to alter it and redistribute it freely,\r
-// subject to the following restrictions:\r
-//\r
-// 1. The origin of this software must not be misrepresented;\r
-//    you must not claim that you wrote the original software.\r
-//    If you use this software in a product, an acknowledgment\r
-//    in the product documentation would be appreciated but is not required.\r
-//\r
-// 2. Altered source versions must be plainly marked as such,\r
-//    and must not be misrepresented as being the original software.\r
-//\r
-// 3. This notice may not be removed or altered from any source distribution.\r
-//\r
-////////////////////////////////////////////////////////////\r
-\r
-#ifndef PLUMA_HOST_HPP\r
-#define PLUMA_HOST_HPP\r
-\r
-////////////////////////////////////////////////////////////\r
-// Headers\r
-////////////////////////////////////////////////////////////\r
-#include <Pluma/Config.hpp>\r
-#include <Pluma/Provider.hpp>\r
-\r
-#include <vector>\r
-#include <list>\r
-#include <map>\r
-\r
-namespace pluma{\r
-\r
-////////////////////////////////////////////////////////////\r
-/// \brief Manages providers.\r
-///\r
-////////////////////////////////////////////////////////////\r
-class PLUMA_API Host{\r
-friend class PluginManager;\r
-friend class Provider;\r
-\r
-\r
-public:\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Add provider.\r
-    ///\r
-    /// Provider type and version are checked. Only known and\r
-    /// valid provider types are accepted.\r
-    ///\r
-    /// \param provider Provider to be added.\r
-    ///\r
-    /// \return True if the provider is accepted.\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    bool add(Provider* provider);\r
-\r
-\r
-private:\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Default constructor.\r
-    ///\r
-    /// New Host instances are not publicly allowed.\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    Host();\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Destructor.\r
-    ///\r
-    /// Clears all hosted providers\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    ~Host();\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Ckeck if a provider type is registered.\r
-    ///\r
-    /// \param type Provider type id.\r
-    ///\r
-    /// \return True if the type is registered\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    bool knows(const std::string& type) const;\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Get version of a type of providers.\r
-    ///\r
-    /// \param type Provider type.\r
-    ///\r
-    /// \return The version of the provider type.\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    unsigned int getVersion(const std::string& type) const;\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Get lowest compatible version of a type of providers.\r
-    ///\r
-    /// \param type Provider type.\r
-    ///\r
-    /// \return The lowest compatible version of the provider type.\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    unsigned int getLowestVersion(const std::string& type) const;\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Register a type of providers.\r
-    ///\r
-    /// \param type Provider type.\r
-    /// \param version Current version of that provider type.\r
-    /// \param lowestVersion Lowest compatible version of that provider type.\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    void registerType(const std::string& type, unsigned int version, unsigned int lowestVersion);\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Get providers of a certain type.\r
-    ///\r
-    /// \param type Provider type.\r
-    ///\r
-    /// \return Pointer to the list of providers of that \a type,\r
-    /// or NULL if \a type is not registered.\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    const std::list<Provider*>* getProviders(const std::string& type) const;\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Clears all hosted providers.\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    void clearProviders();\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Validate provider type and version.\r
-    ///\r
-    /// \return True if the provider is acceptable.\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    bool validateProvider(Provider* provider) const;\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Clearly add a provider.\r
-    ///\r
-    /// Provider type and version are checked. Only known and\r
-    /// valid provider types are accepted.\r
-    /// If acepted, provider is directly stored.\r
-    ///\r
-    /// \param provider Provider to be added.\r
-    ///\r
-    /// \return True if the provider is accepted.\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    bool registerProvider(Provider* provider);\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Previous add calls are canceled.\r
-    ///\r
-    /// Added providers are not stored.\r
-    ///\r
-    /// \see add\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    void cancelAddictions();\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Previous add calls are confirmed.\r
-    ///\r
-    /// Added providers are finally stored.\r
-    ///\r
-    /// \return True if something was stored.\r
-    ///\r
-    /// \see add\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    bool confirmAddictions();\r
-\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-// Member data\r
-////////////////////////////////////////////////////////////\r
-\r
-private:\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Structure with information about a provider type.\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    struct ProviderInfo{\r
-        unsigned int version;\r
-        unsigned int lowestVersion;\r
-        std::list<Provider*> providers;\r
-    };\r
-\r
-    typedef std::map<std::string, ProviderInfo > ProvidersMap;\r
-    typedef std::map<std::string, std::list<Provider*> > TempProvidersMap;\r
-\r
-    ProvidersMap knownTypes;        ///< Map of registered types.\r
-    TempProvidersMap addRequests;   ///< Temporarily added providers\r
-\r
-};\r
-\r
-}   // namespace pluma\r
-\r
-#endif // PLUMA_HOST_HPP\r
diff --git a/lib/third_party/Pluma/PluginManager.cpp b/lib/third_party/Pluma/PluginManager.cpp
deleted file mode 100644 (file)
index 6cfe12e..0000000
+++ /dev/null
@@ -1,222 +0,0 @@
-////////////////////////////////////////////////////////////\r
-//\r
-// Pluma - Plug-in Management Framework\r
-// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
-//\r
-// This software is provided 'as-is', without any express or implied warranty.\r
-// In no event will the authors be held liable for any damages arising from the use of this software.\r
-//\r
-// Permission is granted to anyone to use this software for any purpose,\r
-// including commercial applications, and to alter it and redistribute it freely,\r
-// subject to the following restrictions:\r
-//\r
-// 1. The origin of this software must not be misrepresented;\r
-//    you must not claim that you wrote the original software.\r
-//    If you use this software in a product, an acknowledgment\r
-//    in the product documentation would be appreciated but is not required.\r
-//\r
-// 2. Altered source versions must be plainly marked as such,\r
-//    and must not be misrepresented as being the original software.\r
-//\r
-// 3. This notice may not be removed or altered from any source distribution.\r
-//\r
-////////////////////////////////////////////////////////////\r
-\r
-////////////////////////////////////////////////////////////\r
-// Headers\r
-////////////////////////////////////////////////////////////\r
-#include <Pluma/PluginManager.hpp>\r
-#include <Pluma/DLibrary.hpp>\r
-#include <Pluma/Dir.hpp>\r
-#include <cstdio>\r
-#include <stdexcept>\r
-\r
-namespace pluma{\r
-\r
-////////////////////////////////////////////////////////////\r
-PluginManager::PluginManager(){\r
-    // Nothing to do\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-PluginManager::~PluginManager(){\r
-    unloadAll();\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-bool PluginManager::load(const std::string& path){\r
-    std::string plugName = getPluginName(path);\r
-    std::string realPath = resolvePathExtension(path);\r
-    DLibrary* lib = DLibrary::load(realPath);\r
-    if (!lib) return false;\r
-\r
-    fnRegisterPlugin* registerFunction;\r
-    registerFunction = reinterpret_cast<fnRegisterPlugin*>(lib->getSymbol("connect"));\r
-\r
-    if(!registerFunction){\r
-      //fprintf(stderr, "Failed to initialize plugin \"%s\": connect function not found\n", plugName.c_str());\r
-        delete lib;\r
-        throw std::runtime_error(\r
-          std::string( "Failed to initialize plugin \"" ) +\r
-          plugName +\r
-          std::string( "\": connect function not found" )\r
-          );\r
-        return false;\r
-    }\r
-    // try to initialize plugin:\r
-    if (!registerFunction(host)){\r
-        // plugin decided to fail\r
-      // fprintf(stderr, "Self registry failed on plugin \"%s\".\n", plugName.c_str());\r
-        host.cancelAddictions();\r
-        delete lib;\r
-        throw std::runtime_error(\r
-          std::string( "Self registry failed on plugin \"" ) +\r
-          plugName +\r
-          std::string( "\"" )\r
-          );\r
-        return false;\r
-    }\r
-    // Store the library if addictions are confirmed\r
-    if (host.confirmAddictions())\r
-        libraries[plugName] = lib;\r
-    else{\r
-        // otherwise nothing was registered\r
-      // fprintf(stderr, "Nothing registered by plugin \"%s\".\n", plugName.c_str());\r
-        delete lib;\r
-        throw std::runtime_error(\r
-          std::string( "Nothing registered by plugin \"" ) +\r
-          plugName +\r
-          std::string( "\"." )\r
-          );\r
-        return false;\r
-    }\r
-    return true;\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-bool PluginManager::load(const std::string& folder, const std::string& pluginName){\r
-    if (folder.empty())\r
-        return load(pluginName);\r
-    else if (folder[folder.size()-1] == '/' || folder[folder.size()-1] == '\\')\r
-        return load(folder + pluginName);\r
-    return load(folder + '/' + pluginName);\r
-}\r
-\r
-////////////////////////////////////////////////////////////\r
-  std::list< std::string > PluginManager::loadFromFolder(const std::string& folder, bool recursive){\r
-    std::list<std::string> files, loaded_files;\r
-    dir::listFiles(files, folder, PLUMA_LIB_EXTENSION, recursive);\r
-    // try to load every library\r
-    std::list<std::string>::const_iterator it;\r
-    for (it = files.begin() ; it != files.end() ; ++it){\r
-      // *** LFV ***\r
-      try\r
-      {\r
-        if ( load(*it) ) loaded_files.push_back( *it );\r
-      }\r
-      catch( ... )\r
-      {\r
-      } // yrt\r
-      // *** LFV ***\r
-    }\r
-    return loaded_files;\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-bool PluginManager::unload(const std::string& pluginName){\r
-    std::string plugName = getPluginName(pluginName);\r
-    LibMap::iterator it = libraries.find(plugName);\r
-    if( it != libraries.end() ) {\r
-        delete it->second;\r
-        libraries.erase(it);\r
-        return true;\r
-    }\r
-    return false;\r
-}\r
-\r
-////////////////////////////////////////////////////////////\r
-void PluginManager::unloadAll(){\r
-\r
-    host.clearProviders();\r
-    LibMap::iterator it;\r
-    for (it = libraries.begin() ; it != libraries.end() ; ++it){\r
-        delete it->second;\r
-    }\r
-    libraries.clear();\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-std::string PluginManager::getPluginName(const std::string& path){\r
-    size_t lastDash = path.find_last_of("/\\");\r
-    size_t lastDot = path.find_last_of('.');\r
-    if (lastDash == std::string::npos) lastDash = 0;\r
-    else ++lastDash;\r
-    if (lastDot < lastDash || lastDot == std::string::npos){\r
-        // path without extension\r
-        lastDot = path.length();\r
-    }\r
-    return path.substr(lastDash, lastDot-lastDash);\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-std::string PluginManager::resolvePathExtension(const std::string& path){\r
-    size_t lastDash = path.find_last_of("/\\");\r
-    size_t lastDot = path.find_last_of('.');\r
-    if (lastDash == std::string::npos) lastDash = 0;\r
-    else ++lastDash;\r
-    if (lastDot < lastDash || lastDot == std::string::npos){\r
-        // path without extension, add it\r
-        return path + "." + PLUMA_LIB_EXTENSION;\r
-    }\r
-    return path;\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-void PluginManager::registerType(const std::string& type, unsigned int version, unsigned int lowestVersion){\r
-    host.registerType(type, version, lowestVersion);\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-bool PluginManager::addProvider(Provider* provider){\r
-    if (provider == NULL){\r
-      // fprintf(stderr, "Trying to add null provider\n");\r
-      throw std::runtime_error( "Trying to add null provider." );\r
-        return false;\r
-    }\r
-    return host.registerProvider(provider);\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-void PluginManager::getLoadedPlugins(std::vector<const std::string*>& pluginNames) const{\r
-    pluginNames.reserve(pluginNames.size()+libraries.size());\r
-    LibMap::const_iterator it;\r
-    for(it = libraries.begin() ; it != libraries.end() ; ++it){\r
-        pluginNames.push_back(&(it->first));\r
-    }\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-bool PluginManager::isLoaded(const std::string& pluginName) const{\r
-    return libraries.find(getPluginName(pluginName)) != libraries.end();\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-const std::list<Provider*>* PluginManager::getProviders(const std::string& type) const{\r
-    return host.getProviders(type);\r
-}\r
-\r
-\r
-\r
-}   // namespace pluma\r
-\r
diff --git a/lib/third_party/Pluma/PluginManager.hpp b/lib/third_party/Pluma/PluginManager.hpp
deleted file mode 100644 (file)
index a6ba5f2..0000000
+++ /dev/null
@@ -1,247 +0,0 @@
-////////////////////////////////////////////////////////////\r
-//\r
-// Pluma - Plug-in Management Framework\r
-// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
-//\r
-// This software is provided 'as-is', without any express or implied warranty.\r
-// In no event will the authors be held liable for any damages arising from the use of this software.\r
-//\r
-// Permission is granted to anyone to use this software for any purpose,\r
-// including commercial applications, and to alter it and redistribute it freely,\r
-// subject to the following restrictions:\r
-//\r
-// 1. The origin of this software must not be misrepresented;\r
-//    you must not claim that you wrote the original software.\r
-//    If you use this software in a product, an acknowledgment\r
-//    in the product documentation would be appreciated but is not required.\r
-//\r
-// 2. Altered source versions must be plainly marked as such,\r
-//    and must not be misrepresented as being the original software.\r
-//\r
-// 3. This notice may not be removed or altered from any source distribution.\r
-//\r
-////////////////////////////////////////////////////////////\r
-\r
-#ifndef PLUMA_PLUGIN_MANAGER_HPP\r
-#define PLUMA_PLUGIN_MANAGER_HPP\r
-\r
-////////////////////////////////////////////////////////////\r
-// Headers\r
-////////////////////////////////////////////////////////////\r
-#include <Pluma/Config.hpp>\r
-#include <Pluma/Host.hpp>\r
-\r
-#include <string>\r
-#include <map>\r
-\r
-namespace pluma{\r
-class DLibrary;\r
-\r
-////////////////////////////////////////////////////////////\r
-/// \brief Manages loaded plugins.\r
-///\r
-////////////////////////////////////////////////////////////\r
-class PLUMA_API PluginManager{\r
-\r
-\r
-public:\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Destructor.\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    ~PluginManager();\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Load a plugin given it's path\r
-    ///\r
-    /// \param path Path for the plugin, including plugin name. File extension\r
-    /// may be included, but is discouraged for better cross platform code.\r
-    /// If file extension isn't present on the path, Pluma will deduce it\r
-    /// from the operating system.\r
-    ///\r
-    /// \return True if the plugin is successfully loaded.\r
-    ///\r
-    /// \see load(const std::string&, const std::string&)\r
-    /// \see loadFromFolder\r
-    /// \see unload\r
-    /// \see unloadAll\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    bool load(const std::string& path);\r
-\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Load a plugin from a given folder\r
-    ///\r
-    /// \param folder The folder path.\r
-    /// \param pluginName Name of the plugin. File extension\r
-    /// may be included, but is discouraged for better cross platform code.\r
-    /// If file extension is omitted, Pluma will deduce it\r
-    /// from the operating system.\r
-    ///\r
-    /// \return True if the plugin is successfully loaded.\r
-    ///\r
-    /// \see load(const std::string&)\r
-    /// \see loadFromFolder\r
-    /// \see unload\r
-    /// \see unloadAll\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    bool load(const std::string& folder, const std::string& pluginName);\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Load all plugins from a given folder\r
-    ///\r
-    /// \param folder Path for the folder where the plug-ins are.\r
-    /// \param recursive If true it will search on sub-folders as well\r
-    ///\r
-    /// \return Number of successfully loaded plug-ins.\r
-    ///\r
-    /// \see load(const std::string&, const std::string&)\r
-    /// \see load(const std::string&)\r
-    /// \see unload\r
-    /// \see unloadAll\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    std::list< std::string > loadFromFolder(\r
-      const std::string& folder, bool recursive = false\r
-      );\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Unload a plugin.\r
-    ///\r
-    /// \param pluginName Name or path of the plugin.\r
-    ///\r
-    /// \return True if the plugin is successfully unloaded,\r
-    /// false if no such plugin exists on the manager.\r
-    ///\r
-    /// \see load(const std::string&, const std::string&)\r
-    /// \see load(const std::string&)\r
-    /// \see loadFromFolder\r
-    /// \see unloadAll\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    bool unload(const std::string& pluginName);\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Unload all loaded plugins.\r
-    ///\r
-    /// \see load(const std::string&, const std::string&)\r
-    /// \see load(const std::string&)\r
-    /// \see loadFromFolder\r
-    /// \see unload\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    void unloadAll();\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Directly add a new provider.\r
-    ///\r
-    /// \param provider Provider.\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    bool addProvider(Provider* provider);\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Get the name of all loaded plugins.\r
-    ///\r
-    /// \param pluginNames A vector to fill with the plugins names.\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    void getLoadedPlugins(std::vector<const std::string*>& pluginNames) const;\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Check if a plug-in is loaded.\r
-    ///\r
-    /// \param pluginName the plug-in tname o check.\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    bool isLoaded(const std::string& pluginName) const;\r
-\r
-\r
-protected:\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Default constructor.\r
-    ///\r
-    /// PluginManager cannot be publicly instantiated.\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    PluginManager();\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Register a provider type\r
-    ///\r
-    /// \param type Provider type.\r
-    /// \param version Current version of that provider type.\r
-    /// \param lowestVersion Lowest compatible version of that provider type.\r
-    ///\r
-    /// \see Host::registerType\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    void registerType(const std::string& type, unsigned int version, unsigned int lowestVersion);\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Get providers of a certain type.\r
-    ///\r
-    /// \param type Provider type.\r
-    ///\r
-    /// \return Pointer to the list of providers of that \a type,\r
-    /// or NULL if \a type is not registered.\r
-    ///\r
-    /// \see Host::getProviders\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    const std::list<Provider*>* getProviders(const std::string& type) const;\r
-\r
-\r
-private:\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Get the plugin name (without extension) from its path\r
-    ///\r
-    /// \param path Plugin path.\r
-    ///\r
-    /// \return Name of the plugin.\r
-    ///\r
-    /// \see resolvePathExtension\r
-    /// \see load(const std::string&, const std::string&)\r
-    /// \see load(const std::string&)\r
-    /// \see unload\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    static std::string getPluginName(const std::string& path);\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief If the plugin path omits it's extension, this method returns\r
-    /// the path plus the OS specific dll extension.\r
-    /// Return a copy of the path otherwise.\r
-    ///\r
-    /// \param path Plugin path.\r
-    ///\r
-    /// \return Path with extension.\r
-    ///\r
-    /// \see getPluginName\r
-    /// \see load(const std::string&, const std::string&)\r
-    /// \see load(const std::string&)\r
-    /// \see unload\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    static std::string resolvePathExtension(const std::string& path);\r
-\r
-\r
-private:\r
-\r
-    /// Signature for the plugin's registration function\r
-    typedef bool fnRegisterPlugin(Host&);\r
-    typedef std::map<std::string,DLibrary*> LibMap;\r
-\r
-    LibMap libraries;   ///< Map containing the loaded libraries\r
-    Host host;          ///< Host app proxy, holding all providers\r
-\r
-};\r
-\r
-}   // namespace pluma\r
-\r
-#endif // PLUMA_PLUGIN_MANAGER_HPP\r
diff --git a/lib/third_party/Pluma/Pluma.hpp b/lib/third_party/Pluma/Pluma.hpp
deleted file mode 100644 (file)
index a9d614e..0000000
+++ /dev/null
@@ -1,171 +0,0 @@
-////////////////////////////////////////////////////////////\r
-//\r
-// Pluma - Plug-in Management Framework\r
-// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
-//\r
-// This software is provided 'as-is', without any express or implied warranty.\r
-// In no event will the authors be held liable for any damages arising from the use of this software.\r
-//\r
-// Permission is granted to anyone to use this software for any purpose,\r
-// including commercial applications, and to alter it and redistribute it freely,\r
-// subject to the following restrictions:\r
-//\r
-// 1. The origin of this software must not be misrepresented;\r
-//    you must not claim that you wrote the original software.\r
-//    If you use this software in a product, an acknowledgment\r
-//    in the product documentation would be appreciated but is not required.\r
-//\r
-// 2. Altered source versions must be plainly marked as such,\r
-//    and must not be misrepresented as being the original software.\r
-//\r
-// 3. This notice may not be removed or altered from any source distribution.\r
-//\r
-////////////////////////////////////////////////////////////\r
-\r
-#ifndef PLUMA_PLUMA_HPP\r
-#define PLUMA_PLUMA_HPP\r
-\r
-////////////////////////////////////////////////////////////\r
-// Headers\r
-////////////////////////////////////////////////////////////\r
-#include <Pluma/Config.hpp>\r
-#include <Pluma/Provider.hpp>\r
-#include <Pluma/PluginManager.hpp>\r
-\r
-////////////////////////////////////////////////////////////\r
-// Andy macro to convert parameter to string\r
-////////////////////////////////////////////////////////////\r
-#define PLUMA_2STRING(X) #X\r
-\r
-////////////////////////////////////////////////////////////\r
-// Macro that helps host applications defining\r
-// their provider classes\r
-////////////////////////////////////////////////////////////\r
-#define PLUMA_PROVIDER_HEADER(TYPE)\\r
-PLUMA_PROVIDER_HEADER_BEGIN(TYPE)\\r
-virtual TYPE* create() const = 0;\\r
-PLUMA_PROVIDER_HEADER_END\r
-\r
-////////////////////////////////////////////////////////////\r
-// Macro that generate first part of the provider definition\r
-////////////////////////////////////////////////////////////\r
-#define PLUMA_PROVIDER_HEADER_BEGIN(TYPE)\\r
-class TYPE##Provider: public pluma::Provider{\\r
-private:\\r
-    friend class pluma::Pluma;\\r
-    static const unsigned int PLUMA_INTERFACE_VERSION;\\r
-    static const unsigned int PLUMA_INTERFACE_LOWEST_VERSION;\\r
-    static const std::string PLUMA_PROVIDER_TYPE;\\r
-    std::string plumaGetType() const{ return PLUMA_PROVIDER_TYPE; }\\r
-public:\\r
-    unsigned int getVersion() const{ return PLUMA_INTERFACE_VERSION; }\r
-\r
-////////////////////////////////////////////////////////////\r
-// Macro that generate last part of the provider definition\r
-////////////////////////////////////////////////////////////\r
-#define PLUMA_PROVIDER_HEADER_END };\r
-\r
-////////////////////////////////////////////////////////////\r
-// Macro that generate the provider declaration\r
-////////////////////////////////////////////////////////////\r
-#define PLUMA_PROVIDER_SOURCE(TYPE, Version, LowestVersion)\\r
-const std::string TYPE##Provider::PLUMA_PROVIDER_TYPE = PLUMA_2STRING( TYPE );\\r
-const unsigned int TYPE##Provider::PLUMA_INTERFACE_VERSION = Version;\\r
-const unsigned int TYPE##Provider::PLUMA_INTERFACE_LOWEST_VERSION = LowestVersion;\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-// Macro that helps plugins generating their provider implementations\r
-// PRE: SPECIALIZED_TYPE must inherit from BASE_TYPE\r
-////////////////////////////////////////////////////////////\r
-#define PLUMA_INHERIT_PROVIDER(SPECIALIZED_TYPE, BASE_TYPE)\\r
-class SPECIALIZED_TYPE##Provider: public BASE_TYPE##Provider{\\r
-public:\\r
-    BASE_TYPE * create() const{ return new SPECIALIZED_TYPE (); }\\r
-};\r
-\r
-\r
-namespace pluma{\r
-\r
-////////////////////////////////////////////////////////////\r
-/// \brief Pluma plugins management\r
-///\r
-////////////////////////////////////////////////////////////\r
-class Pluma: public PluginManager{\r
-\r
-public:\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Default Constructor\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    Pluma();\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Tell Pluma to accept a certain type of providers\r
-    ///\r
-    /// A Pluma object is able to accept multiple types of providers.\r
-    /// When a plugin is loaded, it tries to register it's providers\r
-    /// implementations. Those are only accepted by the host\r
-    /// application if it's accepting providers of that kind.\r
-    ///\r
-    /// \tparam ProviderType type of provider.\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    template<typename ProviderType>\r
-    void acceptProviderType();\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Get the stored providers of a certain type.\r
-    ///\r
-    /// Providers are added at the end of the \a providers vector.\r
-    ///\r
-    /// \tparam ProviderType type of provider to be returned.\r
-    /// \param[out] providers Vector to fill with the existing\r
-    /// providers.\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    template<typename ProviderType>\r
-    void getProviders(std::vector<ProviderType*>& providers);\r
-};\r
-\r
-#include <Pluma/Pluma.inl>\r
-\r
-}\r
-\r
-\r
-#endif // PLUMA_PLUMA_HPP\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-/// \class pluma::Pluma\r
-///\r
-/// Pluma is the main class of Pluma library. Allows hosting\r
-/// applications to load/unload dlls in runtime (plugins), and\r
-/// to get providers of shared interface objects.\r
-///\r
-/// Example:\r
-/// \code\r
-/// pluma::Pluma pluma;\r
-/// // Tell it to accept providers of the type DeviceProvider\r
-/// pluma.acceptProviderType<DeviceProvider>();\r
-/// // Load some dll\r
-/// pluma.load("plugins/standard_devices");\r
-/// // Get device providers into a vector\r
-/// std::vector<DeviceProvider*> providers;\r
-/// pluma.getProviders(providers);\r
-/// // create a Device from the first provider\r
-/// if (!providers.empty()){\r
-///     Device* myDevice = providers.first()->create();\r
-///     // do something with myDevice\r
-///     std::cout << device->getDescription() << std::endl;\r
-///     // (...)\r
-///     delete myDevice;\r
-/// }\r
-/// \endcode\r
-///\r
-/// It is also possible to add local providers, providers that\r
-/// are defined directly on the host application. That can\r
-/// be useful to provide and use default implementations of certain\r
-/// interfaces, along with plugin implementations.\r
-///\r
-////////////////////////////////////////////////////////////\r
diff --git a/lib/third_party/Pluma/Pluma.inl b/lib/third_party/Pluma/Pluma.inl
deleted file mode 100644 (file)
index c3b6ce7..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-////////////////////////////////////////////////////////////\r
-//\r
-// Pluma - Plug-in Management Framework\r
-// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
-//\r
-// This software is provided 'as-is', without any express or implied warranty.\r
-// In no event will the authors be held liable for any damages arising from the use of this software.\r
-//\r
-// Permission is granted to anyone to use this software for any purpose,\r
-// including commercial applications, and to alter it and redistribute it freely,\r
-// subject to the following restrictions:\r
-//\r
-// 1. The origin of this software must not be misrepresented;\r
-//    you must not claim that you wrote the original software.\r
-//    If you use this software in a product, an acknowledgment\r
-//    in the product documentation would be appreciated but is not required.\r
-//\r
-// 2. Altered source versions must be plainly marked as such,\r
-//    and must not be misrepresented as being the original software.\r
-//\r
-// 3. This notice may not be removed or altered from any source distribution.\r
-//\r
-////////////////////////////////////////////////////////////\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-inline Pluma::Pluma(){\r
-    // Nothing to do\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-template<typename ProviderType>\r
-void Pluma::acceptProviderType(){\r
-    PluginManager::registerType(\r
-        ProviderType::PLUMA_PROVIDER_TYPE,\r
-        ProviderType::PLUMA_INTERFACE_VERSION,\r
-        ProviderType::PLUMA_INTERFACE_LOWEST_VERSION\r
-    );\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-template<typename ProviderType>\r
-void Pluma::getProviders(std::vector<ProviderType*>& providers){\r
-    const std::list<Provider*>* lst = PluginManager::getProviders(ProviderType::PLUMA_PROVIDER_TYPE);\r
-    if (!lst) return;\r
-    providers.reserve(providers.size() + lst->size());\r
-    std::list<Provider*>::const_iterator it;\r
-    for (it = lst->begin() ; it != lst->end() ; ++it)\r
-        providers.push_back(static_cast<ProviderType*>(*it));\r
-}\r
diff --git a/lib/third_party/Pluma/Provider.cpp b/lib/third_party/Pluma/Provider.cpp
deleted file mode 100644 (file)
index 36d4da3..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-////////////////////////////////////////////////////////////\r
-//\r
-// Pluma - Plug-in Management Framework\r
-// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
-//\r
-// This software is provided 'as-is', without any express or implied warranty.\r
-// In no event will the authors be held liable for any damages arising from the use of this software.\r
-//\r
-// Permission is granted to anyone to use this software for any purpose,\r
-// including commercial applications, and to alter it and redistribute it freely,\r
-// subject to the following restrictions:\r
-//\r
-// 1. The origin of this software must not be misrepresented;\r
-//    you must not claim that you wrote the original software.\r
-//    If you use this software in a product, an acknowledgment\r
-//    in the product documentation would be appreciated but is not required.\r
-//\r
-// 2. Altered source versions must be plainly marked as such,\r
-//    and must not be misrepresented as being the original software.\r
-//\r
-// 3. This notice may not be removed or altered from any source distribution.\r
-//\r
-////////////////////////////////////////////////////////////\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-// Headers\r
-////////////////////////////////////////////////////////////\r
-#include <Pluma/Provider.hpp>\r
-#include <Pluma/Host.hpp>\r
-\r
-\r
-namespace pluma{\r
-\r
-////////////////////////////////////////////////////////////\r
-Provider::~Provider(){\r
-    // Nothing to do\r
-}\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-bool Provider::isCompatible(const Host& host) const{\r
-    // check compatibility with host\r
-    const std::string& type = this->plumaGetType();\r
-    if (!host.knows(type)) return false;\r
-    unsigned int lowest = host.getLowestVersion(type);\r
-    unsigned int current = host.getVersion(type);\r
-    unsigned int myVersion = this->getVersion();\r
-    return lowest <= myVersion && myVersion <= current;\r
-}\r
-\r
-}   // namespace pluma\r
diff --git a/lib/third_party/Pluma/Provider.hpp b/lib/third_party/Pluma/Provider.hpp
deleted file mode 100644 (file)
index ea06497..0000000
+++ /dev/null
@@ -1,204 +0,0 @@
-////////////////////////////////////////////////////////////\r
-//\r
-// Pluma - Plug-in Management Framework\r
-// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
-//\r
-// This software is provided 'as-is', without any express or implied warranty.\r
-// In no event will the authors be held liable for any damages arising from the use of this software.\r
-//\r
-// Permission is granted to anyone to use this software for any purpose,\r
-// including commercial applications, and to alter it and redistribute it freely,\r
-// subject to the following restrictions:\r
-//\r
-// 1. The origin of this software must not be misrepresented;\r
-//    you must not claim that you wrote the original software.\r
-//    If you use this software in a product, an acknowledgment\r
-//    in the product documentation would be appreciated but is not required.\r
-//\r
-// 2. Altered source versions must be plainly marked as such,\r
-//    and must not be misrepresented as being the original software.\r
-//\r
-// 3. This notice may not be removed or altered from any source distribution.\r
-//\r
-////////////////////////////////////////////////////////////\r
-\r
-#ifndef PLUMA_PROVIDER_HPP\r
-#define PLUMA_PROVIDER_HPP\r
-\r
-////////////////////////////////////////////////////////////\r
-// Headers\r
-////////////////////////////////////////////////////////////\r
-#include <Pluma/Config.hpp>\r
-#include <string>\r
-\r
-\r
-namespace pluma{\r
-class Host;\r
-\r
-////////////////////////////////////////////////////////////\r
-/// \brief Interface to provide applications with objects from plugins.\r
-///\r
-////////////////////////////////////////////////////////////\r
-class PLUMA_API Provider{\r
-friend class Host;\r
-\r
-\r
-public:\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Destructor.\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    virtual ~Provider();\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Get provider version.\r
-    ///\r
-    /// \return Version number.\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    virtual unsigned int getVersion() const = 0;\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Check compatibility with host.\r
-    ///\r
-    /// The same provider may be compiled with different versions\r
-    /// on host side and on plugins side. This function checks if\r
-    /// a plugin provider is compatible with the current version of\r
-    /// the same provider type on the host side.\r
-    ///\r
-    /// \param host Host, proxy of host application.\r
-    ///\r
-    /// \return True if it's compatible with \a host.\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    bool isCompatible(const Host& host) const;\r
-\r
-\r
-private:\r
-\r
-    ////////////////////////////////////////////////////////////\r
-    /// \brief Get provider type.\r
-    ///\r
-    /// Each provider defined on the host application is identified by\r
-    /// a unique type. Those types are automatically managed internally by\r
-    /// pluma.\r
-    ///\r
-    /// \return Provider type id.\r
-    ///\r
-    ////////////////////////////////////////////////////////////\r
-    virtual std::string plumaGetType() const = 0;\r
-\r
-};\r
-\r
-}   // namespace pluma\r
-\r
-\r
-#endif // PLUMA_PROVIDER_HPP\r
-\r
-\r
-////////////////////////////////////////////////////////////\r
-/// \class pluma::Provider\r
-/// The plugin specific implementations are unknown at the host side,\r
-/// only their shared interfaces are known. Then, host app needs a generic\r
-/// way of create interface objects. That's what provider classes are for.\r
-/// It is the factory design pattern\r
-/// (http://www.oodesign.com/factory-pattern.html)\r
-///\r
-/// Shared interfaces define their provider types (by inheriting from\r
-/// pluma::Provider). Hosts then use those tipes to get objects from the\r
-/// plugins.\r
-/// Plugins derive the shared interface providers so that they can provide\r
-/// host with specific implementations of the shared interface.\r
-/// Those specific providers are given to the host through a connect function.\r
-///\r
-///\r
-/// Example: A host app uses objects of type Device. A certain plugin\r
-/// defines a Keyboard, witch is a Device.\r
-/// The Host will use DeviceProviders to create objects of type Device.\r
-/// The plugin will provide host specifically with a KeyboardProvider.\r
-/// Other plugins may provide host with other derived DeviceProvider types.\r
-///\r
-/// Device hpp (shared):\r
-/// \code\r
-/// #include <Pluma/Pluma.hpp>\r
-/// class Device{\r
-/// public:\r
-///     virtual std::string getDescription() const = 0;\r
-/// };\r
-/// // create DevicedProvider class\r
-/// PLUMA_PROVIDER_HEADER(Device);\r
-/// \endcode\r
-///\r
-/// Device cpp (shared):\r
-/// \code\r
-/// #include "Device.hpp"\r
-/// generate DevicedProvider with version 6, and compatible with at least v.3\r
-/// PLUMA_PROVIDER_SOURCE(Device, 6, 3);\r
-/// \endcode\r
-///\r
-///\r
-/// <br>\r
-/// Keyboard code on the plugin side:\r
-/// \code\r
-/// #include <Pluma/Pluma.hpp>\r
-/// #include "Device.hpp"\r
-///\r
-/// class Keyboard: public Device{\r
-/// public:\r
-///     std::string getDescription() const{\r
-///         return "keyboard";\r
-///     }\r
-/// };\r
-///\r
-/// // create KeyboardProvider, it implements DeviceProvider\r
-/// PLUMA_INHERIT_PROVIDER(Keyboard, Device);\r
-/// \endcode\r
-///\r
-/// plugin connector:\r
-/// \code\r
-/// #include <Pluma/Connector.hpp>\r
-/// #include "Keyboard.hpp"\r
-///\r
-/// PLUMA_CONNECTOR\r
-/// bool connect(pluma::Host& host){\r
-///     // add a keyboard provider to host\r
-///     host.add( new KeyboardProvider() );\r
-///     return true;\r
-/// }\r
-/// \endcode\r
-///\r
-///\r
-/// Host application code:\r
-/// \code\r
-/// #include <Pluma/Pluma.hpp>\r
-///\r
-/// #include "Device.hpp"\r
-/// #include <iostream>\r
-/// #include <vector>\r
-///\r
-/// int main(){\r
-///\r
-///     pluma::Pluma plugins;\r
-///     // Tell plugins manager to accept providers of the type DeviceProvider\r
-///     plugins.acceptProviderType<DeviceProvider>();\r
-///     // Load library "standard_devices" from folder "plugins"\r
-///     plugins.load("plugins", "standard_devices");\r
-///\r
-///     // Get device providers into a vector\r
-///     std::vector<DeviceProvider*> providers;\r
-///     plugins.getProviders(providers);\r
-///\r
-///     // create a Device from the first provider\r
-///     if (!providers.empty()){\r
-///         Device* myDevice = providers.first()->create();\r
-///         // do something with myDevice\r
-///         std::cout << device->getDescription() << std::endl;\r
-///         // and delete it in the end\r
-///         delete myDevice;\r
-///     }\r
-///     return 0;\r
-/// }\r
-/// \endcode\r
-///\r
-////////////////////////////////////////////////////////////\r
diff --git a/lib/third_party/Pluma/readme b/lib/third_party/Pluma/readme
deleted file mode 100644 (file)
index eee7f36..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-Pluma - Plug-in Management Framework\r
-\r
-1. About\r
-\r
-   Pluma stands for PLUg-in MAnagement framework, and also for PLUg-in Minimal Architecture.\r
-   It's small, cross-platform and simple to use. Support and more information at http://pluma-framework.sourceforge.net\r
-\r
-\r
-\r
-2. Licence\r
-\r
-   Source code is provided under the terms of the zlib/libpng License (http://www.opensource.org/licenses/zlib-license.php):\r
-\r
-      Pluma - Plug-in Management Framework\r
-      Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
-\r
-      This software is provided 'as-is', without any express or implied warranty.\r
-      In no event will the authors be held liable for any damages arising from the use of this software.\r
-\r
-      Permission is granted to anyone to use this software for any purpose,\r
-      including commercial applications, and to alter it and redistribute it freely,\r
-      subject to the following restrictions:\r
-\r
-      1. The origin of this software must not be misrepresented;\r
-         you must not claim that you wrote the original software.\r
-         If you use this software in a product, an acknowledgment\r
-         in the product documentation would be appreciated but is not required.\r
-\r
-      2. Altered source versions must be plainly marked as such,\r
-         and must not be misrepresented as being the original software.\r
-\r
-      3. This notice may not be removed or altered from any source distribution.\r
-\r
diff --git a/lib/third_party/Pluma/uce-dirent.h b/lib/third_party/Pluma/uce-dirent.h
deleted file mode 100644 (file)
index 91415bd..0000000
+++ /dev/null
@@ -1,688 +0,0 @@
-/*
- * uce-dirent.h - operating system independent dirent implementation
- * 
- * Copyright (C) 1998-2002  Toni Ronkko
- * 
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * ``Software''), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included
- * in all copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL TONI RONKKO BE LIABLE FOR ANY CLAIM, DAMAGES OR
- * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
- * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- * OTHER DEALINGS IN THE SOFTWARE.
- * 
- * 
- * May 28 1998, Toni Ronkko <tronkko@messi.uku.fi>
- *
- * $Id: uce-dirent.h,v 1.7 2002/05/13 10:48:35 tr Exp $
- *
- * $Log: uce-dirent.h,v $
- * Revision 1.7  2002/05/13 10:48:35  tr
- * embedded some source code directly to the header so that no source
- * modules need to be included in the MS Visual C project using the
- * interface, removed all the dependencies to other headers of the `uce'
- * library so that the header can be made public
- *
- * Revision 1.6  2002/04/12 16:22:04  tr
- * Unified Compiling Environment (UCE) replaced `std' library
- *
- * Revision 1.5  2001/07/20 16:33:40  tr
- * moved to `std' library and re-named defines accordingly
- *
- * Revision 1.4  2001/07/10 16:47:18  tronkko
- * revised comments
- *
- * Revision 1.3  2001/01/11 13:16:43  tr
- * using ``uce-machine.h'' for finding out defines such as `FREEBSD'
- *
- * Revision 1.2  2000/10/08 16:00:41  tr
- * copy of FreeBSD man page
- *
- * Revision 1.1  2000/07/10 05:53:16  tr
- * Initial revision
- *
- * Revision 1.2  1998/07/19 18:29:14  tr
- * Added error reporting capabilities and some asserts.
- *
- * Revision 1.1  1998/07/04 16:27:51  tr
- * Initial revision
- *
- * 
- * MSVC 1.0 scans automatic dependencies incorrectly when your project
- * contains this very header.  The problem is that MSVC cannot handle
- * include directives inside #if..#endif block those are never entered.
- * Since this header ought to compile in many different operating systems,
- * there had to be several conditional blocks that are compiled only in
- * operating systems for what they were designed for.  MSVC 1.0 cannot
- * handle inclusion of sys/dir.h in a part that is compiled only in Apollo
- * operating system.  To fix the problem you need to insert DIR.H into
- * SYSINCL.DAT located in MSVC\BIN directory and restart visual C++.
- * Consult manuals for more informaton about the problem.
- *
- * Since many UNIX systems have dirent.h we assume to have one also.
- * However, if your UNIX system does not have dirent.h you can download one
- * for example at: http://ftp.uni-mannheim.de/ftp/GNU/dirent/dirent.tar.gz.
- * You can also see if you have one of dirent.h, direct.h, dir.h, ndir.h,
- * sys/dir.h and sys/ndir.h somewhere.  Try defining HAVE_DIRENT_H,
- * HAVE_DIRECT_H, HAVE_DIR_H, HAVE_NDIR_H, HAVE_SYS_DIR_H and
- * HAVE_SYS_NDIR_H according to the files found.
- */
-#ifndef DIRENT_H
-#define DIRENT_H
-#define DIRENT_H_INCLUDED
-
-/* find out platform */
-#if defined(MSDOS)                             /* MS-DOS */
-#elif defined(__MSDOS__)                       /* Turbo C/Borland */
-# define MSDOS
-#elif defined(__DOS__)                         /* Watcom */
-# define MSDOS
-#endif
-
-#if defined(WIN32)                             /* MS-Windows */
-#elif defined(__NT__)                          /* Watcom */
-# define WIN32
-#elif defined(_WIN32)                          /* Microsoft */
-# define WIN32
-#elif defined(__WIN32__)                       /* Borland */
-# define WIN32
-#endif
-
-/*
- * See what kind of dirent interface we have unless autoconf has already
- * determinated that.
- */
-#if !defined(HAVE_DIRENT_H) && !defined(HAVE_DIRECT_H) && !defined(HAVE_SYS_DIR_H) && !defined(HAVE_NDIR_H) && !defined(HAVE_SYS_NDIR_H) && !defined(HAVE_DIR_H)
-# if defined(_MSC_VER)                         /* Microsoft C/C++ */
-    /* no dirent.h */
-# elif defined(__BORLANDC__)                   /* Borland C/C++ */
-#   define HAVE_DIRENT_H
-#   define VOID_CLOSEDIR
-# elif defined(__TURBOC__)                     /* Borland Turbo C */
-    /* no dirent.h */
-# elif defined(__WATCOMC__)                    /* Watcom C/C++ */
-#   define HAVE_DIRECT_H
-# elif defined(__apollo)                       /* Apollo */
-#   define HAVE_SYS_DIR_H
-# elif defined(__hpux)                         /* HP-UX */
-#   define HAVE_DIRENT_H
-# elif defined(__alpha) || defined(__alpha__)  /* Alpha OSF1 */
-#   error "not implemented"
-# elif defined(__sgi)                          /* Silicon Graphics */
-#   define HAVE_DIRENT_H
-# elif defined(sun) || defined(_sun)           /* Sun Solaris */
-#   define HAVE_DIRENT_H
-# elif defined(__FreeBSD__)                    /* FreeBSD */
-#   define HAVE_DIRENT_H
-# elif defined(__linux__)                      /* Linux */
-#   define HAVE_DIRENT_H
-# elif defined(__GNUC__)                       /* GNU C/C++ */
-#   define HAVE_DIRENT_H
-# else
-#   error "not implemented"
-# endif
-#endif
-
-/* include proper interface headers */
-#if defined(HAVE_DIRENT_H)
-# include <dirent.h>
-# ifdef FREEBSD
-#   define NAMLEN(dp) ((int)((dp)->d_namlen))
-# else
-#   define NAMLEN(dp) ((int)(strlen((dp)->d_name)))
-# endif
-
-#elif defined(HAVE_NDIR_H)
-# include <ndir.h>
-# define NAMLEN(dp) ((int)((dp)->d_namlen))
-
-#elif defined(HAVE_SYS_NDIR_H)
-# include <sys/ndir.h>
-# define NAMLEN(dp) ((int)((dp)->d_namlen))
-
-#elif defined(HAVE_DIRECT_H)
-# include <direct.h>
-# define NAMLEN(dp) ((int)((dp)->d_namlen))
-
-#elif defined(HAVE_DIR_H)
-# include <dir.h>
-# define NAMLEN(dp) ((int)((dp)->d_namlen))
-
-#elif defined(HAVE_SYS_DIR_H)
-# include <sys/types.h>
-# include <sys/dir.h>
-# ifndef dirent
-#   define dirent direct
-# endif
-# define NAMLEN(dp) ((int)((dp)->d_namlen))
-
-#elif defined(MSDOS) || defined(WIN32)
-
-  /* figure out type of underlaying directory interface to be used */
-# if defined(WIN32)
-#   define DIRENT_WIN32_INTERFACE
-# elif defined(MSDOS)
-#   define DIRENT_MSDOS_INTERFACE
-# else
-#   error "missing native dirent interface"
-# endif
-
-  /*** WIN32 specifics ***/
-# if defined(DIRENT_WIN32_INTERFACE)
-#   include <windows.h>
-#   if !defined(DIRENT_MAXNAMLEN)
-#     define DIRENT_MAXNAMLEN (MAX_PATH)
-#   endif
-
-
-  /*** MS-DOS specifics ***/
-# elif defined(DIRENT_MSDOS_INTERFACE)
-#   include <dos.h>
-
-    /* Borland defines file length macros in dir.h */
-#   if defined(__BORLANDC__)
-#     include <dir.h>
-#     if !defined(DIRENT_MAXNAMLEN)
-#       define DIRENT_MAXNAMLEN ((MAXFILE)+(MAXEXT))
-#     endif
-#     if !defined(_find_t)
-#       define _find_t find_t
-#     endif
-
-    /* Turbo C defines ffblk structure in dir.h */
-#   elif defined(__TURBOC__)
-#     include <dir.h>
-#     if !defined(DIRENT_MAXNAMLEN)
-#       define DIRENT_MAXNAMLEN ((MAXFILE)+(MAXEXT))
-#     endif
-#     define DIRENT_USE_FFBLK
-
-    /* MSVC */
-#   elif defined(_MSC_VER)
-#     if !defined(DIRENT_MAXNAMLEN)
-#       define DIRENT_MAXNAMLEN (12)
-#     endif
-
-    /* Watcom */
-#   elif defined(__WATCOMC__)
-#     if !defined(DIRENT_MAXNAMLEN)
-#       if defined(__OS2__) || defined(__NT__)
-#         define DIRENT_MAXNAMLEN (255)
-#       else
-#         define DIRENT_MAXNAMLEN (12)
-#       endif
-#     endif
-
-#   endif
-# endif
-
-  /*** generic MS-DOS and MS-Windows stuff ***/
-# if !defined(NAME_MAX) && defined(DIRENT_MAXNAMLEN)
-#   define NAME_MAX DIRENT_MAXNAMLEN
-# endif
-# if NAME_MAX < DIRENT_MAXNAMLEN
-#   error "assertion failed: NAME_MAX >= DIRENT_MAXNAMLEN"
-# endif
-
-
-  /*
-   * Substitute for real dirent structure.  Note that `d_name' field is a
-   * true character array although we have it copied in the implementation
-   * dependent data.  We could save some memory if we had declared `d_name'
-   * as a pointer refering the name within implementation dependent data.
-   * We have not done that since some code may rely on sizeof(d_name) to be
-   * something other than four.  Besides, directory entries are typically so
-   * small that it takes virtually no time to copy them from place to place.
-   */
-  typedef struct dirent {
-    char d_name[NAME_MAX + 1];
-
-    /*** Operating system specific part ***/
-# if defined(DIRENT_WIN32_INTERFACE)       /*WIN32*/
-    WIN32_FIND_DATA data;
-# elif defined(DIRENT_MSDOS_INTERFACE)     /*MSDOS*/
-#   if defined(DIRENT_USE_FFBLK)
-    struct ffblk data;
-#   else
-    struct _find_t data;
-#   endif
-# endif
-  } dirent;
-
-  /* DIR substitute structure containing directory name.  The name is
-   * essential for the operation of ``rewinndir'' function. */
-  typedef struct DIR {
-    char          *dirname;                    /* directory being scanned */
-    dirent        current;                     /* current entry */
-    int           dirent_filled;               /* is current un-processed? */
-
-  /*** Operating system specific part ***/
-#  if defined(DIRENT_WIN32_INTERFACE)
-    HANDLE        search_handle;
-#  elif defined(DIRENT_MSDOS_INTERFACE)
-#  endif
-  } DIR;
-
-# ifdef __cplusplus
-extern "C" {
-# endif
-
-/* supply prototypes for dirent functions */
-static DIR *opendir (const char *dirname);
-static struct dirent *readdir (DIR *dirp);
-static int closedir (DIR *dirp);
-static void rewinddir (DIR *dirp);
-
-/*
- * Implement dirent interface as static functions so that the user does not
- * need to change his project in any way to use dirent function.  With this
- * it is sufficient to include this very header from source modules using
- * dirent functions and the functions will be pulled in automatically.
- */
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <assert.h>
-#include <errno.h>
-
-/** Change by florez-l@javeriana.edu.co **/
-#if defined(WIN32)
-#  define NEW_STRCPY(A,B) strcpy_s(A,strlen(A),B)
-#  define NEW_STRNCPY(A,B,C) strncpy_s(A,C,B,C)
-#else // defined(WIN32)
-#  define NEW_STRCPY(A,B) strcpy(A,B)
-#  define NEW_STRNCPY(A,B,C) strncpy(A,B,C)
-#endif // defined(WIN32)
-
-/* use ffblk instead of _find_t if requested */
-#if defined(DIRENT_USE_FFBLK)
-# define _A_ARCH   (FA_ARCH)
-# define _A_HIDDEN (FA_HIDDEN)
-# define _A_NORMAL (0)
-# define _A_RDONLY (FA_RDONLY)
-# define _A_SUBDIR (FA_DIREC)
-# define _A_SYSTEM (FA_SYSTEM)
-# define _A_VOLID  (FA_LABEL)
-# define _dos_findnext(dest) findnext(dest)
-# define _dos_findfirst(name,flags,dest) findfirst(name,dest,flags)
-#endif
-
-static int _initdir (DIR *p);
-static const char *_getdirname (const struct dirent *dp);
-static void _setdirname (struct DIR *dirp);
-
-/*
- * <function name="opendir">
- * <intro>open directory stream for reading
- * <syntax>DIR *opendir (const char *dirname);
- *
- * <desc>Open named directory stream for read and return pointer to the
- * internal working area that is used for retrieving individual directory
- * entries.  The internal working area has no fields of your interest.
- *
- * <ret>Returns a pointer to the internal working area or NULL in case the 
- * directory stream could not be opened.  Global `errno' variable will set
- * in case of error as follows:
- *
- * <table>
- * [EACESS  |Permission denied.
- * [EMFILE  |Too many open files used by the process.
- * [ENFILE  |Too many open files in system.
- * [ENOENT  |Directory does not exist.
- * [ENOMEM  |Insufficient memory.
- * [ENOTDIR |dirname does not refer to directory.  This value is not
- *           reliable on MS-DOS and MS-Windows platforms.  Many
- *           implementations return ENOENT even when the name refers to a
- *           file.]
- * </table>
- * </function>
- */
-static DIR *
-opendir(
-    const char *dirname)
-{
-  DIR *dirp;
-  assert (dirname != NULL);
-  
-  dirp = (DIR*)malloc (sizeof (struct DIR));
-  if (dirp != NULL) {
-    char *p;
-    
-    /* allocate room for directory name */
-    dirp->dirname = (char*) malloc (strlen (dirname) + 1 + strlen ("\\*.*"));
-    if (dirp->dirname == NULL) {
-      /* failed to duplicate directory name.  errno set by malloc() */
-      free (dirp);
-      return NULL;
-    }
-    /* Copy directory name while appending directory separator and "*.*".
-     * Directory separator is not appended if the name already ends with
-     * drive or directory separator.  Directory separator is assumed to be
-     * '/' or '\' and drive separator is assumed to be ':'. */
-    NEW_STRCPY (dirp->dirname, dirname);
-    p = strchr (dirp->dirname, '\0');
-    if (dirp->dirname < p  &&
-        *(p - 1) != '\\'  &&  *(p - 1) != '/'  &&  *(p - 1) != ':')
-    {
-      NEW_STRCPY (p++, "/");
-    }
-# ifdef DIRENT_WIN32_INTERFACE
-    NEW_STRCPY (p, "*"); /*scan files with and without extension in win32*/
-# else
-    NEW_STRCPY (p, "*.*"); /*scan files with and without extension in DOS*/
-# endif
-
-    /* open stream */
-    if (_initdir (dirp) == 0) {
-      /* initialization failed */
-      free (dirp->dirname);
-      free (dirp);
-      return NULL;
-    }
-  }
-  return dirp;
-}
-
-
-/*
- * <function name="readdir">
- * <intro>read a directory entry
- * <syntax>struct dirent *readdir (DIR *dirp);
- *
- * <desc>Read individual directory entry and return pointer to a structure
- * containing the name of the entry.  Individual directory entries returned
- * include normal files, sub-directories, pseudo-directories "." and ".."
- * and also volume labels, hidden files and system files in MS-DOS and
- * MS-Windows.   You might want to use stat(2) function to determinate which
- * one are you dealing with.  Many dirent implementations already contain
- * equivalent information in dirent structure but you cannot depend on
- * this.
- *
- * The dirent structure contains several system dependent fields that
- * generally have no interest to you.  The only interesting one is char
- * d_name[] that is also portable across different systems.  The d_name
- * field contains the name of the directory entry without leading path.
- * While d_name is portable across different systems the actual storage
- * capacity of d_name varies from system to system and there is no portable
- * way to find out it at compile time as different systems define the
- * capacity of d_name with different macros and some systems do not define
- * capacity at all (besides actual declaration of the field). If you really
- * need to find out storage capacity of d_name then you might want to try
- * NAME_MAX macro. The NAME_MAX is defined in POSIX standard althought
- * there are many MS-DOS and MS-Windows implementations those do not define
- * it.  There are also systems that declare d_name as "char d_name[1]" and
- * then allocate suitable amount of memory at run-time.  Thanks to Alain
- * Decamps (Alain.Decamps@advalvas.be) for pointing it out to me.
- *
- * This all leads to the fact that it is difficult to allocate space
- * for the directory names when the very same program is being compiled on
- * number of operating systems.  Therefore I suggest that you always
- * allocate space for directory names dynamically.
- *
- * <ret>
- * Returns a pointer to a structure containing name of the directory entry
- * in `d_name' field or NULL if there was an error.  In case of an error the
- * global `errno' variable will set as follows:
- *
- * <table>
- * [EBADF  |dir parameter refers to an invalid directory stream.  This value
- *          is not set reliably on all implementations.]
- * </table>
- * </function>
- */
-static struct dirent *
-readdir (DIR *dirp)
-{
-  assert (dirp != NULL);
-  if (dirp == NULL) {
-    errno = EBADF;
-    return NULL;
-  }
-
-#if defined(DIRENT_WIN32_INTERFACE)
-  if (dirp->search_handle == INVALID_HANDLE_VALUE) {
-    /* directory stream was opened/rewound incorrectly or it ended normally */
-    errno = EBADF;
-    return NULL;
-  }
-#endif
-
-  if (dirp->dirent_filled != 0) {
-    /*
-     * Directory entry has already been retrieved and there is no need to
-     * retrieve a new one.  Directory entry will be retrieved in advance
-     * when the user calls readdir function for the first time.  This is so
-     * because real dirent has separate functions for opening and reading
-     * the stream whereas Win32 and DOS dirents open the stream
-     * automatically when we retrieve the first file.  Therefore, we have to
-     * save the first file when opening the stream and later we have to
-     * return the saved entry when the user tries to read the first entry.
-     */
-    dirp->dirent_filled = 0;
-  } else {
-    /* fill in entry and return that */
-#if defined(DIRENT_WIN32_INTERFACE)
-    if (FindNextFile (dirp->search_handle, &dirp->current.data) == FALSE) {
-      /* Last file has been processed or an error occured */
-      FindClose (dirp->search_handle);
-      dirp->search_handle = INVALID_HANDLE_VALUE;
-      errno = ENOENT;
-      return NULL;
-    }
-
-# elif defined(DIRENT_MSDOS_INTERFACE)
-    if (_dos_findnext (&dirp->current.data) != 0) {
-      /* _dos_findnext and findnext will set errno to ENOENT when no
-       * more entries could be retrieved. */
-      return NULL;
-    }
-# endif
-
-    _setdirname (dirp);
-    assert (dirp->dirent_filled == 0);
-  }
-  return &dirp->current;
-}
-
-
-/*
- * <function name="closedir">
- * <intro>close directory stream.
- * <syntax>int closedir (DIR *dirp);
- *
- * <desc>Close directory stream opened by the `opendir' function.  Close of
- * directory stream invalidates the DIR structure as well as previously read
- * dirent entry.
- *
- * <ret>The function typically returns 0 on success and -1 on failure but
- * the function may be declared to return void on same systems.  At least
- * Borland C/C++ and some UNIX implementations use void as a return type.
- * The dirent wrapper tries to define VOID_CLOSEDIR whenever closedir is
- * known to return nothing.  The very same definition is made by the GNU
- * autoconf if you happen to use it.
- *
- * The global `errno' variable will set to EBADF in case of error.
- * </function>
- */
-static int
-closedir (DIR *dirp)
-{   
-  int retcode = 0;
-
-  /* make sure that dirp points to legal structure */
-  assert (dirp != NULL);
-  if (dirp == NULL) {
-    errno = EBADF;
-    return -1;
-  }
-  /* free directory name and search handles */
-  if (dirp->dirname != NULL) free (dirp->dirname);
-
-#if defined(DIRENT_WIN32_INTERFACE)
-  if (dirp->search_handle != INVALID_HANDLE_VALUE) {
-    if (FindClose (dirp->search_handle) == FALSE) {
-      /* Unknown error */
-      retcode = -1;
-      errno = EBADF;
-    }
-  }
-#endif                     
-
-  /* clear dirp structure to make sure that it cannot be used anymore*/
-  memset (dirp, 0, sizeof (*dirp));
-# if defined(DIRENT_WIN32_INTERFACE)
-  dirp->search_handle = INVALID_HANDLE_VALUE;
-# endif
-
-  free (dirp);
-  return retcode;
-}
-
-
-/*
- * <function name="rewinddir">
- * <intro>rewind directory stream to the beginning
- * <syntax>void rewinddir (DIR *dirp);
- *
- * <desc>Rewind directory stream to the beginning so that the next call of
- * readdir() returns the very first directory entry again.  However, note
- * that next call of readdir() may not return the same directory entry as it
- * did in first time.  The directory stream may have been affected by newly
- * created files.
- *
- * Almost every dirent implementation ensure that rewinddir will update
- * the directory stream to reflect any changes made to the directory entries
- * since the previous ``opendir'' or ``rewinddir'' call.  Keep an eye on
- * this if your program depends on the feature.  I know at least one dirent
- * implementation where you are required to close and re-open the stream to
- * see the changes.
- *
- * <ret>Returns nothing.  If something went wrong while rewinding, you will
- * notice it later when you try to retrieve the first directory entry.
- */
-static void
-rewinddir (DIR *dirp)
-{   
-  /* make sure that dirp is legal */
-  assert (dirp != NULL);
-  if (dirp == NULL) {
-    errno = EBADF;
-    return;
-  }
-  assert (dirp->dirname != NULL);
-  
-  /* close previous stream */
-#if defined(DIRENT_WIN32_INTERFACE)
-  if (dirp->search_handle != INVALID_HANDLE_VALUE) {
-    if (FindClose (dirp->search_handle) == FALSE) {
-      /* Unknown error */
-      errno = EBADF;
-    }
-  }
-#endif
-
-  /* re-open previous stream */
-  if (_initdir (dirp) == 0) {
-    /* initialization failed but we cannot deal with error.  User will notice
-     * error later when she tries to retrieve first directory enty. */
-    /*EMPTY*/;
-  }
-}
-
-
-/*
- * Open native directory stream object and retrieve first file.
- * Be sure to close previous stream before opening new one.
- */
-static int
-_initdir (DIR *dirp)
-{ 
-  assert (dirp != NULL);
-  assert (dirp->dirname != NULL);
-  dirp->dirent_filled = 0;
-
-# if defined(DIRENT_WIN32_INTERFACE)
-  /* Open stream and retrieve first file */
-  dirp->search_handle = FindFirstFile (dirp->dirname, &dirp->current.data);
-  if (dirp->search_handle == INVALID_HANDLE_VALUE) {
-    /* something went wrong but we don't know what.  GetLastError() could
-     * give us more information about the error, but then we should map
-     * the error code into errno. */
-    errno = ENOENT;
-    return 0;
-  }
-
-# elif defined(DIRENT_MSDOS_INTERFACE)
-  if (_dos_findfirst (dirp->dirname,
-          _A_SUBDIR | _A_RDONLY | _A_ARCH | _A_SYSTEM | _A_HIDDEN,
-          &dirp->current.data) != 0)
-  {
-    /* _dos_findfirst and findfirst will set errno to ENOENT when no 
-     * more entries could be retrieved. */
-    return 0;
-  }
-# endif
-
-  /* initialize DIR and it's first entry */
-  _setdirname (dirp);
-  dirp->dirent_filled = 1;
-  return 1;
-}
-
-
-/*
- * Return implementation dependent name of the current directory entry.
- */
-static const char *
-_getdirname (const struct dirent *dp)
-{
-#if defined(DIRENT_WIN32_INTERFACE)
-  return dp->data.cFileName;
-  
-#elif defined(DIRENT_USE_FFBLK)
-  return dp->data.ff_name;
-  
-#else
-  return dp->data.name;
-#endif  
-}
-
-
-/*
- * Copy name of implementation dependent directory entry to the d_name field.
- */
-static void
-_setdirname (struct DIR *dirp) {
-  /* make sure that d_name is long enough */
-  assert (strlen (_getdirname (&dirp->current)) <= NAME_MAX);
-  
-  NEW_STRNCPY (dirp->current.d_name,
-      _getdirname (&dirp->current),
-      NAME_MAX);
-  dirp->current.d_name[NAME_MAX] = '\0'; /*char d_name[NAME_MAX+1]*/
-}
-  
-# ifdef __cplusplus
-}
-# endif
-# define NAMLEN(dp) ((int)(strlen((dp)->d_name)))
-
-#else
-# error "missing dirent interface"
-#endif
-
-
-#endif /*DIRENT_H*/
-
diff --git a/lib/third_party/glext/GL/glext.h b/lib/third_party/glext/GL/glext.h
deleted file mode 100644 (file)
index 4b82166..0000000
+++ /dev/null
@@ -1,13144 +0,0 @@
-#ifndef __glext_h_
-#define __glext_h_
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
-** Copyright (c) 2007-2012 The Khronos Group Inc.
-** 
-** Permission is hereby granted, free of charge, to any person obtaining a
-** copy of this software and/or associated documentation files (the
-** "Materials"), to deal in the Materials without restriction, including
-** without limitation the rights to use, copy, modify, merge, publish,
-** distribute, sublicense, and/or sell copies of the Materials, and to
-** permit persons to whom the Materials are furnished to do so, subject to
-** the following conditions:
-** 
-** The above copyright notice and this permission notice shall be included
-** in all copies or substantial portions of the Materials.
-** 
-** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-*/
-
-/* Header file version number, required by OpenGL ABI for Linux */
-/* glext.h last updated $Date: 2013-02-07 01:42:49 -0800 (Thu, 07 Feb 2013) $ */
-/* Current version at http://www.opengl.org/registry/ */
-#define GL_GLEXT_VERSION 86
-/* Function declaration macros - to move into glplatform.h */
-
-#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
-#define WIN32_LEAN_AND_MEAN 1
-#include <windows.h>
-#endif
-
-#ifndef APIENTRY
-#define APIENTRY
-#endif
-#ifndef APIENTRYP
-#define APIENTRYP APIENTRY *
-#endif
-#ifndef GLAPI
-#define GLAPI extern
-#endif
-
-/*************************************************************/
-
-#ifndef GL_VERSION_1_2
-#define GL_UNSIGNED_BYTE_3_3_2            0x8032
-#define GL_UNSIGNED_SHORT_4_4_4_4         0x8033
-#define GL_UNSIGNED_SHORT_5_5_5_1         0x8034
-#define GL_UNSIGNED_INT_8_8_8_8           0x8035
-#define GL_UNSIGNED_INT_10_10_10_2        0x8036
-#define GL_TEXTURE_BINDING_3D             0x806A
-#define GL_PACK_SKIP_IMAGES               0x806B
-#define GL_PACK_IMAGE_HEIGHT              0x806C
-#define GL_UNPACK_SKIP_IMAGES             0x806D
-#define GL_UNPACK_IMAGE_HEIGHT            0x806E
-#define GL_TEXTURE_3D                     0x806F
-#define GL_PROXY_TEXTURE_3D               0x8070
-#define GL_TEXTURE_DEPTH                  0x8071
-#define GL_TEXTURE_WRAP_R                 0x8072
-#define GL_MAX_3D_TEXTURE_SIZE            0x8073
-#define GL_UNSIGNED_BYTE_2_3_3_REV        0x8362
-#define GL_UNSIGNED_SHORT_5_6_5           0x8363
-#define GL_UNSIGNED_SHORT_5_6_5_REV       0x8364
-#define GL_UNSIGNED_SHORT_4_4_4_4_REV     0x8365
-#define GL_UNSIGNED_SHORT_1_5_5_5_REV     0x8366
-#define GL_UNSIGNED_INT_8_8_8_8_REV       0x8367
-#define GL_UNSIGNED_INT_2_10_10_10_REV    0x8368
-#define GL_BGR                            0x80E0
-#define GL_BGRA                           0x80E1
-#define GL_MAX_ELEMENTS_VERTICES          0x80E8
-#define GL_MAX_ELEMENTS_INDICES           0x80E9
-#define GL_CLAMP_TO_EDGE                  0x812F
-#define GL_TEXTURE_MIN_LOD                0x813A
-#define GL_TEXTURE_MAX_LOD                0x813B
-#define GL_TEXTURE_BASE_LEVEL             0x813C
-#define GL_TEXTURE_MAX_LEVEL              0x813D
-#define GL_SMOOTH_POINT_SIZE_RANGE        0x0B12
-#define GL_SMOOTH_POINT_SIZE_GRANULARITY  0x0B13
-#define GL_SMOOTH_LINE_WIDTH_RANGE        0x0B22
-#define GL_SMOOTH_LINE_WIDTH_GRANULARITY  0x0B23
-#define GL_ALIASED_LINE_WIDTH_RANGE       0x846E
-#define GL_RESCALE_NORMAL                 0x803A
-#define GL_LIGHT_MODEL_COLOR_CONTROL      0x81F8
-#define GL_SINGLE_COLOR                   0x81F9
-#define GL_SEPARATE_SPECULAR_COLOR        0x81FA
-#define GL_ALIASED_POINT_SIZE_RANGE       0x846D
-#endif
-
-#ifndef GL_ARB_imaging
-#define GL_CONSTANT_COLOR                 0x8001
-#define GL_ONE_MINUS_CONSTANT_COLOR       0x8002
-#define GL_CONSTANT_ALPHA                 0x8003
-#define GL_ONE_MINUS_CONSTANT_ALPHA       0x8004
-#define GL_BLEND_COLOR                    0x8005
-#define GL_FUNC_ADD                       0x8006
-#define GL_MIN                            0x8007
-#define GL_MAX                            0x8008
-#define GL_BLEND_EQUATION                 0x8009
-#define GL_FUNC_SUBTRACT                  0x800A
-#define GL_FUNC_REVERSE_SUBTRACT          0x800B
-#define GL_CONVOLUTION_1D                 0x8010
-#define GL_CONVOLUTION_2D                 0x8011
-#define GL_SEPARABLE_2D                   0x8012
-#define GL_CONVOLUTION_BORDER_MODE        0x8013
-#define GL_CONVOLUTION_FILTER_SCALE       0x8014
-#define GL_CONVOLUTION_FILTER_BIAS        0x8015
-#define GL_REDUCE                         0x8016
-#define GL_CONVOLUTION_FORMAT             0x8017
-#define GL_CONVOLUTION_WIDTH              0x8018
-#define GL_CONVOLUTION_HEIGHT             0x8019
-#define GL_MAX_CONVOLUTION_WIDTH          0x801A
-#define GL_MAX_CONVOLUTION_HEIGHT         0x801B
-#define GL_POST_CONVOLUTION_RED_SCALE     0x801C
-#define GL_POST_CONVOLUTION_GREEN_SCALE   0x801D
-#define GL_POST_CONVOLUTION_BLUE_SCALE    0x801E
-#define GL_POST_CONVOLUTION_ALPHA_SCALE   0x801F
-#define GL_POST_CONVOLUTION_RED_BIAS      0x8020
-#define GL_POST_CONVOLUTION_GREEN_BIAS    0x8021
-#define GL_POST_CONVOLUTION_BLUE_BIAS     0x8022
-#define GL_POST_CONVOLUTION_ALPHA_BIAS    0x8023
-#define GL_HISTOGRAM                      0x8024
-#define GL_PROXY_HISTOGRAM                0x8025
-#define GL_HISTOGRAM_WIDTH                0x8026
-#define GL_HISTOGRAM_FORMAT               0x8027
-#define GL_HISTOGRAM_RED_SIZE             0x8028
-#define GL_HISTOGRAM_GREEN_SIZE           0x8029
-#define GL_HISTOGRAM_BLUE_SIZE            0x802A
-#define GL_HISTOGRAM_ALPHA_SIZE           0x802B
-#define GL_HISTOGRAM_LUMINANCE_SIZE       0x802C
-#define GL_HISTOGRAM_SINK                 0x802D
-#define GL_MINMAX                         0x802E
-#define GL_MINMAX_FORMAT                  0x802F
-#define GL_MINMAX_SINK                    0x8030
-#define GL_TABLE_TOO_LARGE                0x8031
-#define GL_COLOR_MATRIX                   0x80B1
-#define GL_COLOR_MATRIX_STACK_DEPTH       0x80B2
-#define GL_MAX_COLOR_MATRIX_STACK_DEPTH   0x80B3
-#define GL_POST_COLOR_MATRIX_RED_SCALE    0x80B4
-#define GL_POST_COLOR_MATRIX_GREEN_SCALE  0x80B5
-#define GL_POST_COLOR_MATRIX_BLUE_SCALE   0x80B6
-#define GL_POST_COLOR_MATRIX_ALPHA_SCALE  0x80B7
-#define GL_POST_COLOR_MATRIX_RED_BIAS     0x80B8
-#define GL_POST_COLOR_MATRIX_GREEN_BIAS   0x80B9
-#define GL_POST_COLOR_MATRIX_BLUE_BIAS    0x80BA
-#define GL_POST_COLOR_MATRIX_ALPHA_BIAS   0x80BB
-#define GL_COLOR_TABLE                    0x80D0
-#define GL_POST_CONVOLUTION_COLOR_TABLE   0x80D1
-#define GL_POST_COLOR_MATRIX_COLOR_TABLE  0x80D2
-#define GL_PROXY_COLOR_TABLE              0x80D3
-#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4
-#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5
-#define GL_COLOR_TABLE_SCALE              0x80D6
-#define GL_COLOR_TABLE_BIAS               0x80D7
-#define GL_COLOR_TABLE_FORMAT             0x80D8
-#define GL_COLOR_TABLE_WIDTH              0x80D9
-#define GL_COLOR_TABLE_RED_SIZE           0x80DA
-#define GL_COLOR_TABLE_GREEN_SIZE         0x80DB
-#define GL_COLOR_TABLE_BLUE_SIZE          0x80DC
-#define GL_COLOR_TABLE_ALPHA_SIZE         0x80DD
-#define GL_COLOR_TABLE_LUMINANCE_SIZE     0x80DE
-#define GL_COLOR_TABLE_INTENSITY_SIZE     0x80DF
-#define GL_CONSTANT_BORDER                0x8151
-#define GL_REPLICATE_BORDER               0x8153
-#define GL_CONVOLUTION_BORDER_COLOR       0x8154
-#endif
-
-#ifndef GL_VERSION_1_3
-#define GL_TEXTURE0                       0x84C0
-#define GL_TEXTURE1                       0x84C1
-#define GL_TEXTURE2                       0x84C2
-#define GL_TEXTURE3                       0x84C3
-#define GL_TEXTURE4                       0x84C4
-#define GL_TEXTURE5                       0x84C5
-#define GL_TEXTURE6                       0x84C6
-#define GL_TEXTURE7                       0x84C7
-#define GL_TEXTURE8                       0x84C8
-#define GL_TEXTURE9                       0x84C9
-#define GL_TEXTURE10                      0x84CA
-#define GL_TEXTURE11                      0x84CB
-#define GL_TEXTURE12                      0x84CC
-#define GL_TEXTURE13                      0x84CD
-#define GL_TEXTURE14                      0x84CE
-#define GL_TEXTURE15                      0x84CF
-#define GL_TEXTURE16                      0x84D0
-#define GL_TEXTURE17                      0x84D1
-#define GL_TEXTURE18                      0x84D2
-#define GL_TEXTURE19                      0x84D3
-#define GL_TEXTURE20                      0x84D4
-#define GL_TEXTURE21                      0x84D5
-#define GL_TEXTURE22                      0x84D6
-#define GL_TEXTURE23                      0x84D7
-#define GL_TEXTURE24                      0x84D8
-#define GL_TEXTURE25                      0x84D9
-#define GL_TEXTURE26                      0x84DA
-#define GL_TEXTURE27                      0x84DB
-#define GL_TEXTURE28                      0x84DC
-#define GL_TEXTURE29                      0x84DD
-#define GL_TEXTURE30                      0x84DE
-#define GL_TEXTURE31                      0x84DF
-#define GL_ACTIVE_TEXTURE                 0x84E0
-#define GL_MULTISAMPLE                    0x809D
-#define GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E
-#define GL_SAMPLE_ALPHA_TO_ONE            0x809F
-#define GL_SAMPLE_COVERAGE                0x80A0
-#define GL_SAMPLE_BUFFERS                 0x80A8
-#define GL_SAMPLES                        0x80A9
-#define GL_SAMPLE_COVERAGE_VALUE          0x80AA
-#define GL_SAMPLE_COVERAGE_INVERT         0x80AB
-#define GL_TEXTURE_CUBE_MAP               0x8513
-#define GL_TEXTURE_BINDING_CUBE_MAP       0x8514
-#define GL_TEXTURE_CUBE_MAP_POSITIVE_X    0x8515
-#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X    0x8516
-#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y    0x8517
-#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y    0x8518
-#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z    0x8519
-#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z    0x851A
-#define GL_PROXY_TEXTURE_CUBE_MAP         0x851B
-#define GL_MAX_CUBE_MAP_TEXTURE_SIZE      0x851C
-#define GL_COMPRESSED_RGB                 0x84ED
-#define GL_COMPRESSED_RGBA                0x84EE
-#define GL_TEXTURE_COMPRESSION_HINT       0x84EF
-#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE  0x86A0
-#define GL_TEXTURE_COMPRESSED             0x86A1
-#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
-#define GL_COMPRESSED_TEXTURE_FORMATS     0x86A3
-#define GL_CLAMP_TO_BORDER                0x812D
-#define GL_CLIENT_ACTIVE_TEXTURE          0x84E1
-#define GL_MAX_TEXTURE_UNITS              0x84E2
-#define GL_TRANSPOSE_MODELVIEW_MATRIX     0x84E3
-#define GL_TRANSPOSE_PROJECTION_MATRIX    0x84E4
-#define GL_TRANSPOSE_TEXTURE_MATRIX       0x84E5
-#define GL_TRANSPOSE_COLOR_MATRIX         0x84E6
-#define GL_MULTISAMPLE_BIT                0x20000000
-#define GL_NORMAL_MAP                     0x8511
-#define GL_REFLECTION_MAP                 0x8512
-#define GL_COMPRESSED_ALPHA               0x84E9
-#define GL_COMPRESSED_LUMINANCE           0x84EA
-#define GL_COMPRESSED_LUMINANCE_ALPHA     0x84EB
-#define GL_COMPRESSED_INTENSITY           0x84EC
-#define GL_COMBINE                        0x8570
-#define GL_COMBINE_RGB                    0x8571
-#define GL_COMBINE_ALPHA                  0x8572
-#define GL_SOURCE0_RGB                    0x8580
-#define GL_SOURCE1_RGB                    0x8581
-#define GL_SOURCE2_RGB                    0x8582
-#define GL_SOURCE0_ALPHA                  0x8588
-#define GL_SOURCE1_ALPHA                  0x8589
-#define GL_SOURCE2_ALPHA                  0x858A
-#define GL_OPERAND0_RGB                   0x8590
-#define GL_OPERAND1_RGB                   0x8591
-#define GL_OPERAND2_RGB                   0x8592
-#define GL_OPERAND0_ALPHA                 0x8598
-#define GL_OPERAND1_ALPHA                 0x8599
-#define GL_OPERAND2_ALPHA                 0x859A
-#define GL_RGB_SCALE                      0x8573
-#define GL_ADD_SIGNED                     0x8574
-#define GL_INTERPOLATE                    0x8575
-#define GL_SUBTRACT                       0x84E7
-#define GL_CONSTANT                       0x8576
-#define GL_PRIMARY_COLOR                  0x8577
-#define GL_PREVIOUS                       0x8578
-#define GL_DOT3_RGB                       0x86AE
-#define GL_DOT3_RGBA                      0x86AF
-#endif
-
-#ifndef GL_VERSION_1_4
-#define GL_BLEND_DST_RGB                  0x80C8
-#define GL_BLEND_SRC_RGB                  0x80C9
-#define GL_BLEND_DST_ALPHA                0x80CA
-#define GL_BLEND_SRC_ALPHA                0x80CB
-#define GL_POINT_FADE_THRESHOLD_SIZE      0x8128
-#define GL_DEPTH_COMPONENT16              0x81A5
-#define GL_DEPTH_COMPONENT24              0x81A6
-#define GL_DEPTH_COMPONENT32              0x81A7
-#define GL_MIRRORED_REPEAT                0x8370
-#define GL_MAX_TEXTURE_LOD_BIAS           0x84FD
-#define GL_TEXTURE_LOD_BIAS               0x8501
-#define GL_INCR_WRAP                      0x8507
-#define GL_DECR_WRAP                      0x8508
-#define GL_TEXTURE_DEPTH_SIZE             0x884A
-#define GL_TEXTURE_COMPARE_MODE           0x884C
-#define GL_TEXTURE_COMPARE_FUNC           0x884D
-#define GL_POINT_SIZE_MIN                 0x8126
-#define GL_POINT_SIZE_MAX                 0x8127
-#define GL_POINT_DISTANCE_ATTENUATION     0x8129
-#define GL_GENERATE_MIPMAP                0x8191
-#define GL_GENERATE_MIPMAP_HINT           0x8192
-#define GL_FOG_COORDINATE_SOURCE          0x8450
-#define GL_FOG_COORDINATE                 0x8451
-#define GL_FRAGMENT_DEPTH                 0x8452
-#define GL_CURRENT_FOG_COORDINATE         0x8453
-#define GL_FOG_COORDINATE_ARRAY_TYPE      0x8454
-#define GL_FOG_COORDINATE_ARRAY_STRIDE    0x8455
-#define GL_FOG_COORDINATE_ARRAY_POINTER   0x8456
-#define GL_FOG_COORDINATE_ARRAY           0x8457
-#define GL_COLOR_SUM                      0x8458
-#define GL_CURRENT_SECONDARY_COLOR        0x8459
-#define GL_SECONDARY_COLOR_ARRAY_SIZE     0x845A
-#define GL_SECONDARY_COLOR_ARRAY_TYPE     0x845B
-#define GL_SECONDARY_COLOR_ARRAY_STRIDE   0x845C
-#define GL_SECONDARY_COLOR_ARRAY_POINTER  0x845D
-#define GL_SECONDARY_COLOR_ARRAY          0x845E
-#define GL_TEXTURE_FILTER_CONTROL         0x8500
-#define GL_DEPTH_TEXTURE_MODE             0x884B
-#define GL_COMPARE_R_TO_TEXTURE           0x884E
-#endif
-
-#ifndef GL_VERSION_1_5
-#define GL_BUFFER_SIZE                    0x8764
-#define GL_BUFFER_USAGE                   0x8765
-#define GL_QUERY_COUNTER_BITS             0x8864
-#define GL_CURRENT_QUERY                  0x8865
-#define GL_QUERY_RESULT                   0x8866
-#define GL_QUERY_RESULT_AVAILABLE         0x8867
-#define GL_ARRAY_BUFFER                   0x8892
-#define GL_ELEMENT_ARRAY_BUFFER           0x8893
-#define GL_ARRAY_BUFFER_BINDING           0x8894
-#define GL_ELEMENT_ARRAY_BUFFER_BINDING   0x8895
-#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
-#define GL_READ_ONLY                      0x88B8
-#define GL_WRITE_ONLY                     0x88B9
-#define GL_READ_WRITE                     0x88BA
-#define GL_BUFFER_ACCESS                  0x88BB
-#define GL_BUFFER_MAPPED                  0x88BC
-#define GL_BUFFER_MAP_POINTER             0x88BD
-#define GL_STREAM_DRAW                    0x88E0
-#define GL_STREAM_READ                    0x88E1
-#define GL_STREAM_COPY                    0x88E2
-#define GL_STATIC_DRAW                    0x88E4
-#define GL_STATIC_READ                    0x88E5
-#define GL_STATIC_COPY                    0x88E6
-#define GL_DYNAMIC_DRAW                   0x88E8
-#define GL_DYNAMIC_READ                   0x88E9
-#define GL_DYNAMIC_COPY                   0x88EA
-#define GL_SAMPLES_PASSED                 0x8914
-#define GL_SRC1_ALPHA                     0x8589
-#define GL_VERTEX_ARRAY_BUFFER_BINDING    0x8896
-#define GL_NORMAL_ARRAY_BUFFER_BINDING    0x8897
-#define GL_COLOR_ARRAY_BUFFER_BINDING     0x8898
-#define GL_INDEX_ARRAY_BUFFER_BINDING     0x8899
-#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
-#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B
-#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C
-#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D
-#define GL_WEIGHT_ARRAY_BUFFER_BINDING    0x889E
-#define GL_FOG_COORD_SRC                  0x8450
-#define GL_FOG_COORD                      0x8451
-#define GL_CURRENT_FOG_COORD              0x8453
-#define GL_FOG_COORD_ARRAY_TYPE           0x8454
-#define GL_FOG_COORD_ARRAY_STRIDE         0x8455
-#define GL_FOG_COORD_ARRAY_POINTER        0x8456
-#define GL_FOG_COORD_ARRAY                0x8457
-#define GL_FOG_COORD_ARRAY_BUFFER_BINDING 0x889D
-#define GL_SRC0_RGB                       0x8580
-#define GL_SRC1_RGB                       0x8581
-#define GL_SRC2_RGB                       0x8582
-#define GL_SRC0_ALPHA                     0x8588
-#define GL_SRC2_ALPHA                     0x858A
-#endif
-
-#ifndef GL_VERSION_2_0
-#define GL_BLEND_EQUATION_RGB             0x8009
-#define GL_VERTEX_ATTRIB_ARRAY_ENABLED    0x8622
-#define GL_VERTEX_ATTRIB_ARRAY_SIZE       0x8623
-#define GL_VERTEX_ATTRIB_ARRAY_STRIDE     0x8624
-#define GL_VERTEX_ATTRIB_ARRAY_TYPE       0x8625
-#define GL_CURRENT_VERTEX_ATTRIB          0x8626
-#define GL_VERTEX_PROGRAM_POINT_SIZE      0x8642
-#define GL_VERTEX_ATTRIB_ARRAY_POINTER    0x8645
-#define GL_STENCIL_BACK_FUNC              0x8800
-#define GL_STENCIL_BACK_FAIL              0x8801
-#define GL_STENCIL_BACK_PASS_DEPTH_FAIL   0x8802
-#define GL_STENCIL_BACK_PASS_DEPTH_PASS   0x8803
-#define GL_MAX_DRAW_BUFFERS               0x8824
-#define GL_DRAW_BUFFER0                   0x8825
-#define GL_DRAW_BUFFER1                   0x8826
-#define GL_DRAW_BUFFER2                   0x8827
-#define GL_DRAW_BUFFER3                   0x8828
-#define GL_DRAW_BUFFER4                   0x8829
-#define GL_DRAW_BUFFER5                   0x882A
-#define GL_DRAW_BUFFER6                   0x882B
-#define GL_DRAW_BUFFER7                   0x882C
-#define GL_DRAW_BUFFER8                   0x882D
-#define GL_DRAW_BUFFER9                   0x882E
-#define GL_DRAW_BUFFER10                  0x882F
-#define GL_DRAW_BUFFER11                  0x8830
-#define GL_DRAW_BUFFER12                  0x8831
-#define GL_DRAW_BUFFER13                  0x8832
-#define GL_DRAW_BUFFER14                  0x8833
-#define GL_DRAW_BUFFER15                  0x8834
-#define GL_BLEND_EQUATION_ALPHA           0x883D
-#define GL_MAX_VERTEX_ATTRIBS             0x8869
-#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
-#define GL_MAX_TEXTURE_IMAGE_UNITS        0x8872
-#define GL_FRAGMENT_SHADER                0x8B30
-#define GL_VERTEX_SHADER                  0x8B31
-#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
-#define GL_MAX_VERTEX_UNIFORM_COMPONENTS  0x8B4A
-#define GL_MAX_VARYING_FLOATS             0x8B4B
-#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
-#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
-#define GL_SHADER_TYPE                    0x8B4F
-#define GL_FLOAT_VEC2                     0x8B50
-#define GL_FLOAT_VEC3                     0x8B51
-#define GL_FLOAT_VEC4                     0x8B52
-#define GL_INT_VEC2                       0x8B53
-#define GL_INT_VEC3                       0x8B54
-#define GL_INT_VEC4                       0x8B55
-#define GL_BOOL                           0x8B56
-#define GL_BOOL_VEC2                      0x8B57
-#define GL_BOOL_VEC3                      0x8B58
-#define GL_BOOL_VEC4                      0x8B59
-#define GL_FLOAT_MAT2                     0x8B5A
-#define GL_FLOAT_MAT3                     0x8B5B
-#define GL_FLOAT_MAT4                     0x8B5C
-#define GL_SAMPLER_1D                     0x8B5D
-#define GL_SAMPLER_2D                     0x8B5E
-#define GL_SAMPLER_3D                     0x8B5F
-#define GL_SAMPLER_CUBE                   0x8B60
-#define GL_SAMPLER_1D_SHADOW              0x8B61
-#define GL_SAMPLER_2D_SHADOW              0x8B62
-#define GL_DELETE_STATUS                  0x8B80
-#define GL_COMPILE_STATUS                 0x8B81
-#define GL_LINK_STATUS                    0x8B82
-#define GL_VALIDATE_STATUS                0x8B83
-#define GL_INFO_LOG_LENGTH                0x8B84
-#define GL_ATTACHED_SHADERS               0x8B85
-#define GL_ACTIVE_UNIFORMS                0x8B86
-#define GL_ACTIVE_UNIFORM_MAX_LENGTH      0x8B87
-#define GL_SHADER_SOURCE_LENGTH           0x8B88
-#define GL_ACTIVE_ATTRIBUTES              0x8B89
-#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH    0x8B8A
-#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
-#define GL_SHADING_LANGUAGE_VERSION       0x8B8C
-#define GL_CURRENT_PROGRAM                0x8B8D
-#define GL_POINT_SPRITE_COORD_ORIGIN      0x8CA0
-#define GL_LOWER_LEFT                     0x8CA1
-#define GL_UPPER_LEFT                     0x8CA2
-#define GL_STENCIL_BACK_REF               0x8CA3
-#define GL_STENCIL_BACK_VALUE_MASK        0x8CA4
-#define GL_STENCIL_BACK_WRITEMASK         0x8CA5
-#define GL_VERTEX_PROGRAM_TWO_SIDE        0x8643
-#define GL_POINT_SPRITE                   0x8861
-#define GL_COORD_REPLACE                  0x8862
-#define GL_MAX_TEXTURE_COORDS             0x8871
-#endif
-
-#ifndef GL_VERSION_2_1
-#define GL_PIXEL_PACK_BUFFER              0x88EB
-#define GL_PIXEL_UNPACK_BUFFER            0x88EC
-#define GL_PIXEL_PACK_BUFFER_BINDING      0x88ED
-#define GL_PIXEL_UNPACK_BUFFER_BINDING    0x88EF
-#define GL_FLOAT_MAT2x3                   0x8B65
-#define GL_FLOAT_MAT2x4                   0x8B66
-#define GL_FLOAT_MAT3x2                   0x8B67
-#define GL_FLOAT_MAT3x4                   0x8B68
-#define GL_FLOAT_MAT4x2                   0x8B69
-#define GL_FLOAT_MAT4x3                   0x8B6A
-#define GL_SRGB                           0x8C40
-#define GL_SRGB8                          0x8C41
-#define GL_SRGB_ALPHA                     0x8C42
-#define GL_SRGB8_ALPHA8                   0x8C43
-#define GL_COMPRESSED_SRGB                0x8C48
-#define GL_COMPRESSED_SRGB_ALPHA          0x8C49
-#define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F
-#define GL_SLUMINANCE_ALPHA               0x8C44
-#define GL_SLUMINANCE8_ALPHA8             0x8C45
-#define GL_SLUMINANCE                     0x8C46
-#define GL_SLUMINANCE8                    0x8C47
-#define GL_COMPRESSED_SLUMINANCE          0x8C4A
-#define GL_COMPRESSED_SLUMINANCE_ALPHA    0x8C4B
-#endif
-
-#ifndef GL_VERSION_3_0
-#define GL_COMPARE_REF_TO_TEXTURE         0x884E
-#define GL_CLIP_DISTANCE0                 0x3000
-#define GL_CLIP_DISTANCE1                 0x3001
-#define GL_CLIP_DISTANCE2                 0x3002
-#define GL_CLIP_DISTANCE3                 0x3003
-#define GL_CLIP_DISTANCE4                 0x3004
-#define GL_CLIP_DISTANCE5                 0x3005
-#define GL_CLIP_DISTANCE6                 0x3006
-#define GL_CLIP_DISTANCE7                 0x3007
-#define GL_MAX_CLIP_DISTANCES             0x0D32
-#define GL_MAJOR_VERSION                  0x821B
-#define GL_MINOR_VERSION                  0x821C
-#define GL_NUM_EXTENSIONS                 0x821D
-#define GL_CONTEXT_FLAGS                  0x821E
-#define GL_COMPRESSED_RED                 0x8225
-#define GL_COMPRESSED_RG                  0x8226
-#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x0001
-#define GL_RGBA32F                        0x8814
-#define GL_RGB32F                         0x8815
-#define GL_RGBA16F                        0x881A
-#define GL_RGB16F                         0x881B
-#define GL_VERTEX_ATTRIB_ARRAY_INTEGER    0x88FD
-#define GL_MAX_ARRAY_TEXTURE_LAYERS       0x88FF
-#define GL_MIN_PROGRAM_TEXEL_OFFSET       0x8904
-#define GL_MAX_PROGRAM_TEXEL_OFFSET       0x8905
-#define GL_CLAMP_READ_COLOR               0x891C
-#define GL_FIXED_ONLY                     0x891D
-#define GL_MAX_VARYING_COMPONENTS         0x8B4B
-#define GL_TEXTURE_1D_ARRAY               0x8C18
-#define GL_PROXY_TEXTURE_1D_ARRAY         0x8C19
-#define GL_TEXTURE_2D_ARRAY               0x8C1A
-#define GL_PROXY_TEXTURE_2D_ARRAY         0x8C1B
-#define GL_TEXTURE_BINDING_1D_ARRAY       0x8C1C
-#define GL_TEXTURE_BINDING_2D_ARRAY       0x8C1D
-#define GL_R11F_G11F_B10F                 0x8C3A
-#define GL_UNSIGNED_INT_10F_11F_11F_REV   0x8C3B
-#define GL_RGB9_E5                        0x8C3D
-#define GL_UNSIGNED_INT_5_9_9_9_REV       0x8C3E
-#define GL_TEXTURE_SHARED_SIZE            0x8C3F
-#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76
-#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F
-#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80
-#define GL_TRANSFORM_FEEDBACK_VARYINGS    0x8C83
-#define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84
-#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85
-#define GL_PRIMITIVES_GENERATED           0x8C87
-#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88
-#define GL_RASTERIZER_DISCARD             0x8C89
-#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A
-#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B
-#define GL_INTERLEAVED_ATTRIBS            0x8C8C
-#define GL_SEPARATE_ATTRIBS               0x8C8D
-#define GL_TRANSFORM_FEEDBACK_BUFFER      0x8C8E
-#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F
-#define GL_RGBA32UI                       0x8D70
-#define GL_RGB32UI                        0x8D71
-#define GL_RGBA16UI                       0x8D76
-#define GL_RGB16UI                        0x8D77
-#define GL_RGBA8UI                        0x8D7C
-#define GL_RGB8UI                         0x8D7D
-#define GL_RGBA32I                        0x8D82
-#define GL_RGB32I                         0x8D83
-#define GL_RGBA16I                        0x8D88
-#define GL_RGB16I                         0x8D89
-#define GL_RGBA8I                         0x8D8E
-#define GL_RGB8I                          0x8D8F
-#define GL_RED_INTEGER                    0x8D94
-#define GL_GREEN_INTEGER                  0x8D95
-#define GL_BLUE_INTEGER                   0x8D96
-#define GL_RGB_INTEGER                    0x8D98
-#define GL_RGBA_INTEGER                   0x8D99
-#define GL_BGR_INTEGER                    0x8D9A
-#define GL_BGRA_INTEGER                   0x8D9B
-#define GL_SAMPLER_1D_ARRAY               0x8DC0
-#define GL_SAMPLER_2D_ARRAY               0x8DC1
-#define GL_SAMPLER_1D_ARRAY_SHADOW        0x8DC3
-#define GL_SAMPLER_2D_ARRAY_SHADOW        0x8DC4
-#define GL_SAMPLER_CUBE_SHADOW            0x8DC5
-#define GL_UNSIGNED_INT_VEC2              0x8DC6
-#define GL_UNSIGNED_INT_VEC3              0x8DC7
-#define GL_UNSIGNED_INT_VEC4              0x8DC8
-#define GL_INT_SAMPLER_1D                 0x8DC9
-#define GL_INT_SAMPLER_2D                 0x8DCA
-#define GL_INT_SAMPLER_3D                 0x8DCB
-#define GL_INT_SAMPLER_CUBE               0x8DCC
-#define GL_INT_SAMPLER_1D_ARRAY           0x8DCE
-#define GL_INT_SAMPLER_2D_ARRAY           0x8DCF
-#define GL_UNSIGNED_INT_SAMPLER_1D        0x8DD1
-#define GL_UNSIGNED_INT_SAMPLER_2D        0x8DD2
-#define GL_UNSIGNED_INT_SAMPLER_3D        0x8DD3
-#define GL_UNSIGNED_INT_SAMPLER_CUBE      0x8DD4
-#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY  0x8DD6
-#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY  0x8DD7
-#define GL_QUERY_WAIT                     0x8E13
-#define GL_QUERY_NO_WAIT                  0x8E14
-#define GL_QUERY_BY_REGION_WAIT           0x8E15
-#define GL_QUERY_BY_REGION_NO_WAIT        0x8E16
-#define GL_BUFFER_ACCESS_FLAGS            0x911F
-#define GL_BUFFER_MAP_LENGTH              0x9120
-#define GL_BUFFER_MAP_OFFSET              0x9121
-/* Reuse tokens from ARB_depth_buffer_float */
-/* reuse GL_DEPTH_COMPONENT32F */
-/* reuse GL_DEPTH32F_STENCIL8 */
-/* reuse GL_FLOAT_32_UNSIGNED_INT_24_8_REV */
-/* Reuse tokens from ARB_framebuffer_object */
-/* reuse GL_INVALID_FRAMEBUFFER_OPERATION */
-/* reuse GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING */
-/* reuse GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE */
-/* reuse GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE */
-/* reuse GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE */
-/* reuse GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE */
-/* reuse GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE */
-/* reuse GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE */
-/* reuse GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE */
-/* reuse GL_FRAMEBUFFER_DEFAULT */
-/* reuse GL_FRAMEBUFFER_UNDEFINED */
-/* reuse GL_DEPTH_STENCIL_ATTACHMENT */
-/* reuse GL_INDEX */
-/* reuse GL_MAX_RENDERBUFFER_SIZE */
-/* reuse GL_DEPTH_STENCIL */
-/* reuse GL_UNSIGNED_INT_24_8 */
-/* reuse GL_DEPTH24_STENCIL8 */
-/* reuse GL_TEXTURE_STENCIL_SIZE */
-/* reuse GL_TEXTURE_RED_TYPE */
-/* reuse GL_TEXTURE_GREEN_TYPE */
-/* reuse GL_TEXTURE_BLUE_TYPE */
-/* reuse GL_TEXTURE_ALPHA_TYPE */
-/* reuse GL_TEXTURE_DEPTH_TYPE */
-/* reuse GL_UNSIGNED_NORMALIZED */
-/* reuse GL_FRAMEBUFFER_BINDING */
-/* reuse GL_DRAW_FRAMEBUFFER_BINDING */
-/* reuse GL_RENDERBUFFER_BINDING */
-/* reuse GL_READ_FRAMEBUFFER */
-/* reuse GL_DRAW_FRAMEBUFFER */
-/* reuse GL_READ_FRAMEBUFFER_BINDING */
-/* reuse GL_RENDERBUFFER_SAMPLES */
-/* reuse GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE */
-/* reuse GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME */
-/* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL */
-/* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE */
-/* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER */
-/* reuse GL_FRAMEBUFFER_COMPLETE */
-/* reuse GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT */
-/* reuse GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT */
-/* reuse GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER */
-/* reuse GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER */
-/* reuse GL_FRAMEBUFFER_UNSUPPORTED */
-/* reuse GL_MAX_COLOR_ATTACHMENTS */
-/* reuse GL_COLOR_ATTACHMENT0 */
-/* reuse GL_COLOR_ATTACHMENT1 */
-/* reuse GL_COLOR_ATTACHMENT2 */
-/* reuse GL_COLOR_ATTACHMENT3 */
-/* reuse GL_COLOR_ATTACHMENT4 */
-/* reuse GL_COLOR_ATTACHMENT5 */
-/* reuse GL_COLOR_ATTACHMENT6 */
-/* reuse GL_COLOR_ATTACHMENT7 */
-/* reuse GL_COLOR_ATTACHMENT8 */
-/* reuse GL_COLOR_ATTACHMENT9 */
-/* reuse GL_COLOR_ATTACHMENT10 */
-/* reuse GL_COLOR_ATTACHMENT11 */
-/* reuse GL_COLOR_ATTACHMENT12 */
-/* reuse GL_COLOR_ATTACHMENT13 */
-/* reuse GL_COLOR_ATTACHMENT14 */
-/* reuse GL_COLOR_ATTACHMENT15 */
-/* reuse GL_DEPTH_ATTACHMENT */
-/* reuse GL_STENCIL_ATTACHMENT */
-/* reuse GL_FRAMEBUFFER */
-/* reuse GL_RENDERBUFFER */
-/* reuse GL_RENDERBUFFER_WIDTH */
-/* reuse GL_RENDERBUFFER_HEIGHT */
-/* reuse GL_RENDERBUFFER_INTERNAL_FORMAT */
-/* reuse GL_STENCIL_INDEX1 */
-/* reuse GL_STENCIL_INDEX4 */
-/* reuse GL_STENCIL_INDEX8 */
-/* reuse GL_STENCIL_INDEX16 */
-/* reuse GL_RENDERBUFFER_RED_SIZE */
-/* reuse GL_RENDERBUFFER_GREEN_SIZE */
-/* reuse GL_RENDERBUFFER_BLUE_SIZE */
-/* reuse GL_RENDERBUFFER_ALPHA_SIZE */
-/* reuse GL_RENDERBUFFER_DEPTH_SIZE */
-/* reuse GL_RENDERBUFFER_STENCIL_SIZE */
-/* reuse GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE */
-/* reuse GL_MAX_SAMPLES */
-/* Reuse tokens from ARB_framebuffer_sRGB */
-/* reuse GL_FRAMEBUFFER_SRGB */
-/* Reuse tokens from ARB_half_float_vertex */
-/* reuse GL_HALF_FLOAT */
-/* Reuse tokens from ARB_map_buffer_range */
-/* reuse GL_MAP_READ_BIT */
-/* reuse GL_MAP_WRITE_BIT */
-/* reuse GL_MAP_INVALIDATE_RANGE_BIT */
-/* reuse GL_MAP_INVALIDATE_BUFFER_BIT */
-/* reuse GL_MAP_FLUSH_EXPLICIT_BIT */
-/* reuse GL_MAP_UNSYNCHRONIZED_BIT */
-/* Reuse tokens from ARB_texture_compression_rgtc */
-/* reuse GL_COMPRESSED_RED_RGTC1 */
-/* reuse GL_COMPRESSED_SIGNED_RED_RGTC1 */
-/* reuse GL_COMPRESSED_RG_RGTC2 */
-/* reuse GL_COMPRESSED_SIGNED_RG_RGTC2 */
-/* Reuse tokens from ARB_texture_rg */
-/* reuse GL_RG */
-/* reuse GL_RG_INTEGER */
-/* reuse GL_R8 */
-/* reuse GL_R16 */
-/* reuse GL_RG8 */
-/* reuse GL_RG16 */
-/* reuse GL_R16F */
-/* reuse GL_R32F */
-/* reuse GL_RG16F */
-/* reuse GL_RG32F */
-/* reuse GL_R8I */
-/* reuse GL_R8UI */
-/* reuse GL_R16I */
-/* reuse GL_R16UI */
-/* reuse GL_R32I */
-/* reuse GL_R32UI */
-/* reuse GL_RG8I */
-/* reuse GL_RG8UI */
-/* reuse GL_RG16I */
-/* reuse GL_RG16UI */
-/* reuse GL_RG32I */
-/* reuse GL_RG32UI */
-/* Reuse tokens from ARB_vertex_array_object */
-/* reuse GL_VERTEX_ARRAY_BINDING */
-#define GL_CLAMP_VERTEX_COLOR             0x891A
-#define GL_CLAMP_FRAGMENT_COLOR           0x891B
-#define GL_ALPHA_INTEGER                  0x8D97
-/* Reuse tokens from ARB_framebuffer_object */
-/* reuse GL_TEXTURE_LUMINANCE_TYPE */
-/* reuse GL_TEXTURE_INTENSITY_TYPE */
-#endif
-
-#ifndef GL_VERSION_3_1
-#define GL_SAMPLER_2D_RECT                0x8B63
-#define GL_SAMPLER_2D_RECT_SHADOW         0x8B64
-#define GL_SAMPLER_BUFFER                 0x8DC2
-#define GL_INT_SAMPLER_2D_RECT            0x8DCD
-#define GL_INT_SAMPLER_BUFFER             0x8DD0
-#define GL_UNSIGNED_INT_SAMPLER_2D_RECT   0x8DD5
-#define GL_UNSIGNED_INT_SAMPLER_BUFFER    0x8DD8
-#define GL_TEXTURE_BUFFER                 0x8C2A
-#define GL_MAX_TEXTURE_BUFFER_SIZE        0x8C2B
-#define GL_TEXTURE_BINDING_BUFFER         0x8C2C
-#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D
-#define GL_TEXTURE_RECTANGLE              0x84F5
-#define GL_TEXTURE_BINDING_RECTANGLE      0x84F6
-#define GL_PROXY_TEXTURE_RECTANGLE        0x84F7
-#define GL_MAX_RECTANGLE_TEXTURE_SIZE     0x84F8
-#define GL_RED_SNORM                      0x8F90
-#define GL_RG_SNORM                       0x8F91
-#define GL_RGB_SNORM                      0x8F92
-#define GL_RGBA_SNORM                     0x8F93
-#define GL_R8_SNORM                       0x8F94
-#define GL_RG8_SNORM                      0x8F95
-#define GL_RGB8_SNORM                     0x8F96
-#define GL_RGBA8_SNORM                    0x8F97
-#define GL_R16_SNORM                      0x8F98
-#define GL_RG16_SNORM                     0x8F99
-#define GL_RGB16_SNORM                    0x8F9A
-#define GL_RGBA16_SNORM                   0x8F9B
-#define GL_SIGNED_NORMALIZED              0x8F9C
-#define GL_PRIMITIVE_RESTART              0x8F9D
-#define GL_PRIMITIVE_RESTART_INDEX        0x8F9E
-/* Reuse tokens from ARB_copy_buffer */
-/* reuse GL_COPY_READ_BUFFER */
-/* reuse GL_COPY_WRITE_BUFFER */
-/* Reuse tokens from ARB_draw_instanced (none) */
-/* Reuse tokens from ARB_uniform_buffer_object */
-/* reuse GL_UNIFORM_BUFFER */
-/* reuse GL_UNIFORM_BUFFER_BINDING */
-/* reuse GL_UNIFORM_BUFFER_START */
-/* reuse GL_UNIFORM_BUFFER_SIZE */
-/* reuse GL_MAX_VERTEX_UNIFORM_BLOCKS */
-/* reuse GL_MAX_FRAGMENT_UNIFORM_BLOCKS */
-/* reuse GL_MAX_COMBINED_UNIFORM_BLOCKS */
-/* reuse GL_MAX_UNIFORM_BUFFER_BINDINGS */
-/* reuse GL_MAX_UNIFORM_BLOCK_SIZE */
-/* reuse GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS */
-/* reuse GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS */
-/* reuse GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT */
-/* reuse GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH */
-/* reuse GL_ACTIVE_UNIFORM_BLOCKS */
-/* reuse GL_UNIFORM_TYPE */
-/* reuse GL_UNIFORM_SIZE */
-/* reuse GL_UNIFORM_NAME_LENGTH */
-/* reuse GL_UNIFORM_BLOCK_INDEX */
-/* reuse GL_UNIFORM_OFFSET */
-/* reuse GL_UNIFORM_ARRAY_STRIDE */
-/* reuse GL_UNIFORM_MATRIX_STRIDE */
-/* reuse GL_UNIFORM_IS_ROW_MAJOR */
-/* reuse GL_UNIFORM_BLOCK_BINDING */
-/* reuse GL_UNIFORM_BLOCK_DATA_SIZE */
-/* reuse GL_UNIFORM_BLOCK_NAME_LENGTH */
-/* reuse GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS */
-/* reuse GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES */
-/* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER */
-/* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER */
-/* reuse GL_INVALID_INDEX */
-#endif
-
-#ifndef GL_VERSION_3_2
-#define GL_CONTEXT_CORE_PROFILE_BIT       0x00000001
-#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002
-#define GL_LINES_ADJACENCY                0x000A
-#define GL_LINE_STRIP_ADJACENCY           0x000B
-#define GL_TRIANGLES_ADJACENCY            0x000C
-#define GL_TRIANGLE_STRIP_ADJACENCY       0x000D
-#define GL_PROGRAM_POINT_SIZE             0x8642
-#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29
-#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7
-#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8
-#define GL_GEOMETRY_SHADER                0x8DD9
-#define GL_GEOMETRY_VERTICES_OUT          0x8916
-#define GL_GEOMETRY_INPUT_TYPE            0x8917
-#define GL_GEOMETRY_OUTPUT_TYPE           0x8918
-#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF
-#define GL_MAX_GEOMETRY_OUTPUT_VERTICES   0x8DE0
-#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1
-#define GL_MAX_VERTEX_OUTPUT_COMPONENTS   0x9122
-#define GL_MAX_GEOMETRY_INPUT_COMPONENTS  0x9123
-#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124
-#define GL_MAX_FRAGMENT_INPUT_COMPONENTS  0x9125
-#define GL_CONTEXT_PROFILE_MASK           0x9126
-/* reuse GL_MAX_VARYING_COMPONENTS */
-/* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER */
-/* Reuse tokens from ARB_depth_clamp */
-/* reuse GL_DEPTH_CLAMP */
-/* Reuse tokens from ARB_draw_elements_base_vertex (none) */
-/* Reuse tokens from ARB_fragment_coord_conventions (none) */
-/* Reuse tokens from ARB_provoking_vertex */
-/* reuse GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION */
-/* reuse GL_FIRST_VERTEX_CONVENTION */
-/* reuse GL_LAST_VERTEX_CONVENTION */
-/* reuse GL_PROVOKING_VERTEX */
-/* Reuse tokens from ARB_seamless_cube_map */
-/* reuse GL_TEXTURE_CUBE_MAP_SEAMLESS */
-/* Reuse tokens from ARB_sync */
-/* reuse GL_MAX_SERVER_WAIT_TIMEOUT */
-/* reuse GL_OBJECT_TYPE */
-/* reuse GL_SYNC_CONDITION */
-/* reuse GL_SYNC_STATUS */
-/* reuse GL_SYNC_FLAGS */
-/* reuse GL_SYNC_FENCE */
-/* reuse GL_SYNC_GPU_COMMANDS_COMPLETE */
-/* reuse GL_UNSIGNALED */
-/* reuse GL_SIGNALED */
-/* reuse GL_ALREADY_SIGNALED */
-/* reuse GL_TIMEOUT_EXPIRED */
-/* reuse GL_CONDITION_SATISFIED */
-/* reuse GL_WAIT_FAILED */
-/* reuse GL_TIMEOUT_IGNORED */
-/* reuse GL_SYNC_FLUSH_COMMANDS_BIT */
-/* reuse GL_TIMEOUT_IGNORED */
-/* Reuse tokens from ARB_texture_multisample */
-/* reuse GL_SAMPLE_POSITION */
-/* reuse GL_SAMPLE_MASK */
-/* reuse GL_SAMPLE_MASK_VALUE */
-/* reuse GL_MAX_SAMPLE_MASK_WORDS */
-/* reuse GL_TEXTURE_2D_MULTISAMPLE */
-/* reuse GL_PROXY_TEXTURE_2D_MULTISAMPLE */
-/* reuse GL_TEXTURE_2D_MULTISAMPLE_ARRAY */
-/* reuse GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY */
-/* reuse GL_TEXTURE_BINDING_2D_MULTISAMPLE */
-/* reuse GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY */
-/* reuse GL_TEXTURE_SAMPLES */
-/* reuse GL_TEXTURE_FIXED_SAMPLE_LOCATIONS */
-/* reuse GL_SAMPLER_2D_MULTISAMPLE */
-/* reuse GL_INT_SAMPLER_2D_MULTISAMPLE */
-/* reuse GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE */
-/* reuse GL_SAMPLER_2D_MULTISAMPLE_ARRAY */
-/* reuse GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY */
-/* reuse GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY */
-/* reuse GL_MAX_COLOR_TEXTURE_SAMPLES */
-/* reuse GL_MAX_DEPTH_TEXTURE_SAMPLES */
-/* reuse GL_MAX_INTEGER_SAMPLES */
-/* Don't need to reuse tokens from ARB_vertex_array_bgra since they're already in 1.2 core */
-#endif
-
-#ifndef GL_VERSION_3_3
-#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR    0x88FE
-/* Reuse tokens from ARB_blend_func_extended */
-/* reuse GL_SRC1_COLOR */
-/* reuse GL_ONE_MINUS_SRC1_COLOR */
-/* reuse GL_ONE_MINUS_SRC1_ALPHA */
-/* reuse GL_MAX_DUAL_SOURCE_DRAW_BUFFERS */
-/* Reuse tokens from ARB_explicit_attrib_location (none) */
-/* Reuse tokens from ARB_occlusion_query2 */
-/* reuse GL_ANY_SAMPLES_PASSED */
-/* Reuse tokens from ARB_sampler_objects */
-/* reuse GL_SAMPLER_BINDING */
-/* Reuse tokens from ARB_shader_bit_encoding (none) */
-/* Reuse tokens from ARB_texture_rgb10_a2ui */
-/* reuse GL_RGB10_A2UI */
-/* Reuse tokens from ARB_texture_swizzle */
-/* reuse GL_TEXTURE_SWIZZLE_R */
-/* reuse GL_TEXTURE_SWIZZLE_G */
-/* reuse GL_TEXTURE_SWIZZLE_B */
-/* reuse GL_TEXTURE_SWIZZLE_A */
-/* reuse GL_TEXTURE_SWIZZLE_RGBA */
-/* Reuse tokens from ARB_timer_query */
-/* reuse GL_TIME_ELAPSED */
-/* reuse GL_TIMESTAMP */
-/* Reuse tokens from ARB_vertex_type_2_10_10_10_rev */
-/* reuse GL_INT_2_10_10_10_REV */
-#endif
-
-#ifndef GL_VERSION_4_0
-#define GL_SAMPLE_SHADING                 0x8C36
-#define GL_MIN_SAMPLE_SHADING_VALUE       0x8C37
-#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E
-#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F
-#define GL_TEXTURE_CUBE_MAP_ARRAY         0x9009
-#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A
-#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY   0x900B
-#define GL_SAMPLER_CUBE_MAP_ARRAY         0x900C
-#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW  0x900D
-#define GL_INT_SAMPLER_CUBE_MAP_ARRAY     0x900E
-#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F
-/* Reuse tokens from ARB_texture_query_lod (none) */
-/* Reuse tokens from ARB_draw_buffers_blend (none) */
-/* Reuse tokens from ARB_draw_indirect */
-/* reuse GL_DRAW_INDIRECT_BUFFER */
-/* reuse GL_DRAW_INDIRECT_BUFFER_BINDING */
-/* Reuse tokens from ARB_gpu_shader5 */
-/* reuse GL_GEOMETRY_SHADER_INVOCATIONS */
-/* reuse GL_MAX_GEOMETRY_SHADER_INVOCATIONS */
-/* reuse GL_MIN_FRAGMENT_INTERPOLATION_OFFSET */
-/* reuse GL_MAX_FRAGMENT_INTERPOLATION_OFFSET */
-/* reuse GL_FRAGMENT_INTERPOLATION_OFFSET_BITS */
-/* reuse GL_MAX_VERTEX_STREAMS */
-/* Reuse tokens from ARB_gpu_shader_fp64 */
-/* reuse GL_DOUBLE_VEC2 */
-/* reuse GL_DOUBLE_VEC3 */
-/* reuse GL_DOUBLE_VEC4 */
-/* reuse GL_DOUBLE_MAT2 */
-/* reuse GL_DOUBLE_MAT3 */
-/* reuse GL_DOUBLE_MAT4 */
-/* reuse GL_DOUBLE_MAT2x3 */
-/* reuse GL_DOUBLE_MAT2x4 */
-/* reuse GL_DOUBLE_MAT3x2 */
-/* reuse GL_DOUBLE_MAT3x4 */
-/* reuse GL_DOUBLE_MAT4x2 */
-/* reuse GL_DOUBLE_MAT4x3 */
-/* Reuse tokens from ARB_shader_subroutine */
-/* reuse GL_ACTIVE_SUBROUTINES */
-/* reuse GL_ACTIVE_SUBROUTINE_UNIFORMS */
-/* reuse GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS */
-/* reuse GL_ACTIVE_SUBROUTINE_MAX_LENGTH */
-/* reuse GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH */
-/* reuse GL_MAX_SUBROUTINES */
-/* reuse GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS */
-/* reuse GL_NUM_COMPATIBLE_SUBROUTINES */
-/* reuse GL_COMPATIBLE_SUBROUTINES */
-/* Reuse tokens from ARB_tessellation_shader */
-/* reuse GL_PATCHES */
-/* reuse GL_PATCH_VERTICES */
-/* reuse GL_PATCH_DEFAULT_INNER_LEVEL */
-/* reuse GL_PATCH_DEFAULT_OUTER_LEVEL */
-/* reuse GL_TESS_CONTROL_OUTPUT_VERTICES */
-/* reuse GL_TESS_GEN_MODE */
-/* reuse GL_TESS_GEN_SPACING */
-/* reuse GL_TESS_GEN_VERTEX_ORDER */
-/* reuse GL_TESS_GEN_POINT_MODE */
-/* reuse GL_ISOLINES */
-/* reuse GL_FRACTIONAL_ODD */
-/* reuse GL_FRACTIONAL_EVEN */
-/* reuse GL_MAX_PATCH_VERTICES */
-/* reuse GL_MAX_TESS_GEN_LEVEL */
-/* reuse GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS */
-/* reuse GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS */
-/* reuse GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS */
-/* reuse GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS */
-/* reuse GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS */
-/* reuse GL_MAX_TESS_PATCH_COMPONENTS */
-/* reuse GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS */
-/* reuse GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS */
-/* reuse GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS */
-/* reuse GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS */
-/* reuse GL_MAX_TESS_CONTROL_INPUT_COMPONENTS */
-/* reuse GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS */
-/* reuse GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS */
-/* reuse GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS */
-/* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER */
-/* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER */
-/* reuse GL_TESS_EVALUATION_SHADER */
-/* reuse GL_TESS_CONTROL_SHADER */
-/* Reuse tokens from ARB_texture_buffer_object_rgb32 (none) */
-/* Reuse tokens from ARB_transform_feedback2 */
-/* reuse GL_TRANSFORM_FEEDBACK */
-/* reuse GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED */
-/* reuse GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE */
-/* reuse GL_TRANSFORM_FEEDBACK_BINDING */
-/* Reuse tokens from ARB_transform_feedback3 */
-/* reuse GL_MAX_TRANSFORM_FEEDBACK_BUFFERS */
-/* reuse GL_MAX_VERTEX_STREAMS */
-#endif
-
-#ifndef GL_VERSION_4_1
-/* Reuse tokens from ARB_ES2_compatibility */
-/* reuse GL_FIXED */
-/* reuse GL_IMPLEMENTATION_COLOR_READ_TYPE */
-/* reuse GL_IMPLEMENTATION_COLOR_READ_FORMAT */
-/* reuse GL_LOW_FLOAT */
-/* reuse GL_MEDIUM_FLOAT */
-/* reuse GL_HIGH_FLOAT */
-/* reuse GL_LOW_INT */
-/* reuse GL_MEDIUM_INT */
-/* reuse GL_HIGH_INT */
-/* reuse GL_SHADER_COMPILER */
-/* reuse GL_SHADER_BINARY_FORMATS */
-/* reuse GL_NUM_SHADER_BINARY_FORMATS */
-/* reuse GL_MAX_VERTEX_UNIFORM_VECTORS */
-/* reuse GL_MAX_VARYING_VECTORS */
-/* reuse GL_MAX_FRAGMENT_UNIFORM_VECTORS */
-/* reuse GL_RGB565 */
-/* Reuse tokens from ARB_get_program_binary */
-/* reuse GL_PROGRAM_BINARY_RETRIEVABLE_HINT */
-/* reuse GL_PROGRAM_BINARY_LENGTH */
-/* reuse GL_NUM_PROGRAM_BINARY_FORMATS */
-/* reuse GL_PROGRAM_BINARY_FORMATS */
-/* Reuse tokens from ARB_separate_shader_objects */
-/* reuse GL_VERTEX_SHADER_BIT */
-/* reuse GL_FRAGMENT_SHADER_BIT */
-/* reuse GL_GEOMETRY_SHADER_BIT */
-/* reuse GL_TESS_CONTROL_SHADER_BIT */
-/* reuse GL_TESS_EVALUATION_SHADER_BIT */
-/* reuse GL_ALL_SHADER_BITS */
-/* reuse GL_PROGRAM_SEPARABLE */
-/* reuse GL_ACTIVE_PROGRAM */
-/* reuse GL_PROGRAM_PIPELINE_BINDING */
-/* Reuse tokens from ARB_shader_precision (none) */
-/* Reuse tokens from ARB_vertex_attrib_64bit - all are in GL 3.0 and 4.0 already */
-/* Reuse tokens from ARB_viewport_array - some are in GL 1.1 and ARB_provoking_vertex already */
-/* reuse GL_MAX_VIEWPORTS */
-/* reuse GL_VIEWPORT_SUBPIXEL_BITS */
-/* reuse GL_VIEWPORT_BOUNDS_RANGE */
-/* reuse GL_LAYER_PROVOKING_VERTEX */
-/* reuse GL_VIEWPORT_INDEX_PROVOKING_VERTEX */
-/* reuse GL_UNDEFINED_VERTEX */
-#endif
-
-#ifndef GL_VERSION_4_2
-/* Reuse tokens from ARB_base_instance (none) */
-/* Reuse tokens from ARB_shading_language_420pack (none) */
-/* Reuse tokens from ARB_transform_feedback_instanced (none) */
-/* Reuse tokens from ARB_compressed_texture_pixel_storage */
-/* reuse GL_UNPACK_COMPRESSED_BLOCK_WIDTH */
-/* reuse GL_UNPACK_COMPRESSED_BLOCK_HEIGHT */
-/* reuse GL_UNPACK_COMPRESSED_BLOCK_DEPTH */
-/* reuse GL_UNPACK_COMPRESSED_BLOCK_SIZE */
-/* reuse GL_PACK_COMPRESSED_BLOCK_WIDTH */
-/* reuse GL_PACK_COMPRESSED_BLOCK_HEIGHT */
-/* reuse GL_PACK_COMPRESSED_BLOCK_DEPTH */
-/* reuse GL_PACK_COMPRESSED_BLOCK_SIZE */
-/* Reuse tokens from ARB_conservative_depth (none) */
-/* Reuse tokens from ARB_internalformat_query */
-/* reuse GL_NUM_SAMPLE_COUNTS */
-/* Reuse tokens from ARB_map_buffer_alignment */
-/* reuse GL_MIN_MAP_BUFFER_ALIGNMENT */
-/* Reuse tokens from ARB_shader_atomic_counters */
-/* reuse GL_ATOMIC_COUNTER_BUFFER */
-/* reuse GL_ATOMIC_COUNTER_BUFFER_BINDING */
-/* reuse GL_ATOMIC_COUNTER_BUFFER_START */
-/* reuse GL_ATOMIC_COUNTER_BUFFER_SIZE */
-/* reuse GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE */
-/* reuse GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS */
-/* reuse GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES */
-/* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER */
-/* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER */
-/* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER */
-/* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER */
-/* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER */
-/* reuse GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS */
-/* reuse GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS */
-/* reuse GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS */
-/* reuse GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS */
-/* reuse GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS */
-/* reuse GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS */
-/* reuse GL_MAX_VERTEX_ATOMIC_COUNTERS */
-/* reuse GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS */
-/* reuse GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS */
-/* reuse GL_MAX_GEOMETRY_ATOMIC_COUNTERS */
-/* reuse GL_MAX_FRAGMENT_ATOMIC_COUNTERS */
-/* reuse GL_MAX_COMBINED_ATOMIC_COUNTERS */
-/* reuse GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE */
-/* reuse GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS */
-/* reuse GL_ACTIVE_ATOMIC_COUNTER_BUFFERS */
-/* reuse GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX */
-/* reuse GL_UNSIGNED_INT_ATOMIC_COUNTER */
-/* Reuse tokens from ARB_shader_image_load_store */
-/* reuse GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT */
-/* reuse GL_ELEMENT_ARRAY_BARRIER_BIT */
-/* reuse GL_UNIFORM_BARRIER_BIT */
-/* reuse GL_TEXTURE_FETCH_BARRIER_BIT */
-/* reuse GL_SHADER_IMAGE_ACCESS_BARRIER_BIT */
-/* reuse GL_COMMAND_BARRIER_BIT */
-/* reuse GL_PIXEL_BUFFER_BARRIER_BIT */
-/* reuse GL_TEXTURE_UPDATE_BARRIER_BIT */
-/* reuse GL_BUFFER_UPDATE_BARRIER_BIT */
-/* reuse GL_FRAMEBUFFER_BARRIER_BIT */
-/* reuse GL_TRANSFORM_FEEDBACK_BARRIER_BIT */
-/* reuse GL_ATOMIC_COUNTER_BARRIER_BIT */
-/* reuse GL_ALL_BARRIER_BITS */
-/* reuse GL_MAX_IMAGE_UNITS */
-/* reuse GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS */
-/* reuse GL_IMAGE_BINDING_NAME */
-/* reuse GL_IMAGE_BINDING_LEVEL */
-/* reuse GL_IMAGE_BINDING_LAYERED */
-/* reuse GL_IMAGE_BINDING_LAYER */
-/* reuse GL_IMAGE_BINDING_ACCESS */
-/* reuse GL_IMAGE_1D */
-/* reuse GL_IMAGE_2D */
-/* reuse GL_IMAGE_3D */
-/* reuse GL_IMAGE_2D_RECT */
-/* reuse GL_IMAGE_CUBE */
-/* reuse GL_IMAGE_BUFFER */
-/* reuse GL_IMAGE_1D_ARRAY */
-/* reuse GL_IMAGE_2D_ARRAY */
-/* reuse GL_IMAGE_CUBE_MAP_ARRAY */
-/* reuse GL_IMAGE_2D_MULTISAMPLE */
-/* reuse GL_IMAGE_2D_MULTISAMPLE_ARRAY */
-/* reuse GL_INT_IMAGE_1D */
-/* reuse GL_INT_IMAGE_2D */
-/* reuse GL_INT_IMAGE_3D */
-/* reuse GL_INT_IMAGE_2D_RECT */
-/* reuse GL_INT_IMAGE_CUBE */
-/* reuse GL_INT_IMAGE_BUFFER */
-/* reuse GL_INT_IMAGE_1D_ARRAY */
-/* reuse GL_INT_IMAGE_2D_ARRAY */
-/* reuse GL_INT_IMAGE_CUBE_MAP_ARRAY */
-/* reuse GL_INT_IMAGE_2D_MULTISAMPLE */
-/* reuse GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY */
-/* reuse GL_UNSIGNED_INT_IMAGE_1D */
-/* reuse GL_UNSIGNED_INT_IMAGE_2D */
-/* reuse GL_UNSIGNED_INT_IMAGE_3D */
-/* reuse GL_UNSIGNED_INT_IMAGE_2D_RECT */
-/* reuse GL_UNSIGNED_INT_IMAGE_CUBE */
-/* reuse GL_UNSIGNED_INT_IMAGE_BUFFER */
-/* reuse GL_UNSIGNED_INT_IMAGE_1D_ARRAY */
-/* reuse GL_UNSIGNED_INT_IMAGE_2D_ARRAY */
-/* reuse GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY */
-/* reuse GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE */
-/* reuse GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY */
-/* reuse GL_MAX_IMAGE_SAMPLES */
-/* reuse GL_IMAGE_BINDING_FORMAT */
-/* reuse GL_IMAGE_FORMAT_COMPATIBILITY_TYPE */
-/* reuse GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE */
-/* reuse GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS */
-/* reuse GL_MAX_VERTEX_IMAGE_UNIFORMS */
-/* reuse GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS */
-/* reuse GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS */
-/* reuse GL_MAX_GEOMETRY_IMAGE_UNIFORMS */
-/* reuse GL_MAX_FRAGMENT_IMAGE_UNIFORMS */
-/* reuse GL_MAX_COMBINED_IMAGE_UNIFORMS */
-/* Reuse tokens from ARB_shading_language_packing (none) */
-/* Reuse tokens from ARB_texture_storage */
-/* reuse GL_TEXTURE_IMMUTABLE_FORMAT */
-#endif
-
-#ifndef GL_VERSION_4_3
-#define GL_NUM_SHADING_LANGUAGE_VERSIONS  0x82E9
-#define GL_VERTEX_ATTRIB_ARRAY_LONG       0x874E
-/* Reuse tokens from ARB_arrays_of_arrays (none, GLSL only) */
-/* Reuse tokens from ARB_fragment_layer_viewport (none, GLSL only) */
-/* Reuse tokens from ARB_shader_image_size (none, GLSL only) */
-/* Reuse tokens from ARB_ES3_compatibility */
-/* reuse GL_COMPRESSED_RGB8_ETC2 */
-/* reuse GL_COMPRESSED_SRGB8_ETC2 */
-/* reuse GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 */
-/* reuse GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 */
-/* reuse GL_COMPRESSED_RGBA8_ETC2_EAC */
-/* reuse GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC */
-/* reuse GL_COMPRESSED_R11_EAC */
-/* reuse GL_COMPRESSED_SIGNED_R11_EAC */
-/* reuse GL_COMPRESSED_RG11_EAC */
-/* reuse GL_COMPRESSED_SIGNED_RG11_EAC */
-/* reuse GL_PRIMITIVE_RESTART_FIXED_INDEX */
-/* reuse GL_ANY_SAMPLES_PASSED_CONSERVATIVE */
-/* reuse GL_MAX_ELEMENT_INDEX */
-/* Reuse tokens from ARB_clear_buffer_object (none) */
-/* Reuse tokens from ARB_compute_shader */
-/* reuse GL_COMPUTE_SHADER */
-/* reuse GL_MAX_COMPUTE_UNIFORM_BLOCKS */
-/* reuse GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS */
-/* reuse GL_MAX_COMPUTE_IMAGE_UNIFORMS */
-/* reuse GL_MAX_COMPUTE_SHARED_MEMORY_SIZE */
-/* reuse GL_MAX_COMPUTE_UNIFORM_COMPONENTS */
-/* reuse GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS */
-/* reuse GL_MAX_COMPUTE_ATOMIC_COUNTERS */
-/* reuse GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS */
-/* reuse GL_MAX_COMPUTE_LOCAL_INVOCATIONS */
-/* reuse GL_MAX_COMPUTE_WORK_GROUP_COUNT */
-/* reuse GL_MAX_COMPUTE_WORK_GROUP_SIZE */
-/* reuse GL_COMPUTE_LOCAL_WORK_SIZE */
-/* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER */
-/* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER */
-/* reuse GL_DISPATCH_INDIRECT_BUFFER */
-/* reuse GL_DISPATCH_INDIRECT_BUFFER_BINDING */
-/* Reuse tokens from ARB_copy_image (none) */
-/* Reuse tokens from KHR_debug */
-/* reuse GL_DEBUG_OUTPUT_SYNCHRONOUS */
-/* reuse GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH */
-/* reuse GL_DEBUG_CALLBACK_FUNCTION */
-/* reuse GL_DEBUG_CALLBACK_USER_PARAM */
-/* reuse GL_DEBUG_SOURCE_API */
-/* reuse GL_DEBUG_SOURCE_WINDOW_SYSTEM */
-/* reuse GL_DEBUG_SOURCE_SHADER_COMPILER */
-/* reuse GL_DEBUG_SOURCE_THIRD_PARTY */
-/* reuse GL_DEBUG_SOURCE_APPLICATION */
-/* reuse GL_DEBUG_SOURCE_OTHER */
-/* reuse GL_DEBUG_TYPE_ERROR */
-/* reuse GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR */
-/* reuse GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR */
-/* reuse GL_DEBUG_TYPE_PORTABILITY */
-/* reuse GL_DEBUG_TYPE_PERFORMANCE */
-/* reuse GL_DEBUG_TYPE_OTHER */
-/* reuse GL_MAX_DEBUG_MESSAGE_LENGTH */
-/* reuse GL_MAX_DEBUG_LOGGED_MESSAGES */
-/* reuse GL_DEBUG_LOGGED_MESSAGES */
-/* reuse GL_DEBUG_SEVERITY_HIGH */
-/* reuse GL_DEBUG_SEVERITY_MEDIUM */
-/* reuse GL_DEBUG_SEVERITY_LOW */
-/* reuse GL_DEBUG_TYPE_MARKER */
-/* reuse GL_DEBUG_TYPE_PUSH_GROUP */
-/* reuse GL_DEBUG_TYPE_POP_GROUP */
-/* reuse GL_DEBUG_SEVERITY_NOTIFICATION */
-/* reuse GL_MAX_DEBUG_GROUP_STACK_DEPTH */
-/* reuse GL_DEBUG_GROUP_STACK_DEPTH */
-/* reuse GL_BUFFER */
-/* reuse GL_SHADER */
-/* reuse GL_PROGRAM */
-/* reuse GL_QUERY */
-/* reuse GL_PROGRAM_PIPELINE */
-/* reuse GL_SAMPLER */
-/* reuse GL_DISPLAY_LIST */
-/* reuse GL_MAX_LABEL_LENGTH */
-/* reuse GL_DEBUG_OUTPUT */
-/* reuse GL_CONTEXT_FLAG_DEBUG_BIT */
-/* reuse GL_STACK_UNDERFLOW */
-/* reuse GL_STACK_OVERFLOW */
-/* Reuse tokens from ARB_explicit_uniform_location */
-/* reuse GL_MAX_UNIFORM_LOCATIONS */
-/* Reuse tokens from ARB_framebuffer_no_attachments */
-/* reuse GL_FRAMEBUFFER_DEFAULT_WIDTH */
-/* reuse GL_FRAMEBUFFER_DEFAULT_HEIGHT */
-/* reuse GL_FRAMEBUFFER_DEFAULT_LAYERS */
-/* reuse GL_FRAMEBUFFER_DEFAULT_SAMPLES */
-/* reuse GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS */
-/* reuse GL_MAX_FRAMEBUFFER_WIDTH */
-/* reuse GL_MAX_FRAMEBUFFER_HEIGHT */
-/* reuse GL_MAX_FRAMEBUFFER_LAYERS */
-/* reuse GL_MAX_FRAMEBUFFER_SAMPLES */
-/* Reuse tokens from ARB_internalformat_query2 */
-/* reuse GL_INTERNALFORMAT_SUPPORTED */
-/* reuse GL_INTERNALFORMAT_PREFERRED */
-/* reuse GL_INTERNALFORMAT_RED_SIZE */
-/* reuse GL_INTERNALFORMAT_GREEN_SIZE */
-/* reuse GL_INTERNALFORMAT_BLUE_SIZE */
-/* reuse GL_INTERNALFORMAT_ALPHA_SIZE */
-/* reuse GL_INTERNALFORMAT_DEPTH_SIZE */
-/* reuse GL_INTERNALFORMAT_STENCIL_SIZE */
-/* reuse GL_INTERNALFORMAT_SHARED_SIZE */
-/* reuse GL_INTERNALFORMAT_RED_TYPE */
-/* reuse GL_INTERNALFORMAT_GREEN_TYPE */
-/* reuse GL_INTERNALFORMAT_BLUE_TYPE */
-/* reuse GL_INTERNALFORMAT_ALPHA_TYPE */
-/* reuse GL_INTERNALFORMAT_DEPTH_TYPE */
-/* reuse GL_INTERNALFORMAT_STENCIL_TYPE */
-/* reuse GL_MAX_WIDTH */
-/* reuse GL_MAX_HEIGHT */
-/* reuse GL_MAX_DEPTH */
-/* reuse GL_MAX_LAYERS */
-/* reuse GL_MAX_COMBINED_DIMENSIONS */
-/* reuse GL_COLOR_COMPONENTS */
-/* reuse GL_DEPTH_COMPONENTS */
-/* reuse GL_STENCIL_COMPONENTS */
-/* reuse GL_COLOR_RENDERABLE */
-/* reuse GL_DEPTH_RENDERABLE */
-/* reuse GL_STENCIL_RENDERABLE */
-/* reuse GL_FRAMEBUFFER_RENDERABLE */
-/* reuse GL_FRAMEBUFFER_RENDERABLE_LAYERED */
-/* reuse GL_FRAMEBUFFER_BLEND */
-/* reuse GL_READ_PIXELS */
-/* reuse GL_READ_PIXELS_FORMAT */
-/* reuse GL_READ_PIXELS_TYPE */
-/* reuse GL_TEXTURE_IMAGE_FORMAT */
-/* reuse GL_TEXTURE_IMAGE_TYPE */
-/* reuse GL_GET_TEXTURE_IMAGE_FORMAT */
-/* reuse GL_GET_TEXTURE_IMAGE_TYPE */
-/* reuse GL_MIPMAP */
-/* reuse GL_MANUAL_GENERATE_MIPMAP */
-/* reuse GL_AUTO_GENERATE_MIPMAP */
-/* reuse GL_COLOR_ENCODING */
-/* reuse GL_SRGB_READ */
-/* reuse GL_SRGB_WRITE */
-/* reuse GL_FILTER */
-/* reuse GL_VERTEX_TEXTURE */
-/* reuse GL_TESS_CONTROL_TEXTURE */
-/* reuse GL_TESS_EVALUATION_TEXTURE */
-/* reuse GL_GEOMETRY_TEXTURE */
-/* reuse GL_FRAGMENT_TEXTURE */
-/* reuse GL_COMPUTE_TEXTURE */
-/* reuse GL_TEXTURE_SHADOW */
-/* reuse GL_TEXTURE_GATHER */
-/* reuse GL_TEXTURE_GATHER_SHADOW */
-/* reuse GL_SHADER_IMAGE_LOAD */
-/* reuse GL_SHADER_IMAGE_STORE */
-/* reuse GL_SHADER_IMAGE_ATOMIC */
-/* reuse GL_IMAGE_TEXEL_SIZE */
-/* reuse GL_IMAGE_COMPATIBILITY_CLASS */
-/* reuse GL_IMAGE_PIXEL_FORMAT */
-/* reuse GL_IMAGE_PIXEL_TYPE */
-/* reuse GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST */
-/* reuse GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST */
-/* reuse GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE */
-/* reuse GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE */
-/* reuse GL_TEXTURE_COMPRESSED_BLOCK_WIDTH */
-/* reuse GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT */
-/* reuse GL_TEXTURE_COMPRESSED_BLOCK_SIZE */
-/* reuse GL_CLEAR_BUFFER */
-/* reuse GL_TEXTURE_VIEW */
-/* reuse GL_VIEW_COMPATIBILITY_CLASS */
-/* reuse GL_FULL_SUPPORT */
-/* reuse GL_CAVEAT_SUPPORT */
-/* reuse GL_IMAGE_CLASS_4_X_32 */
-/* reuse GL_IMAGE_CLASS_2_X_32 */
-/* reuse GL_IMAGE_CLASS_1_X_32 */
-/* reuse GL_IMAGE_CLASS_4_X_16 */
-/* reuse GL_IMAGE_CLASS_2_X_16 */
-/* reuse GL_IMAGE_CLASS_1_X_16 */
-/* reuse GL_IMAGE_CLASS_4_X_8 */
-/* reuse GL_IMAGE_CLASS_2_X_8 */
-/* reuse GL_IMAGE_CLASS_1_X_8 */
-/* reuse GL_IMAGE_CLASS_11_11_10 */
-/* reuse GL_IMAGE_CLASS_10_10_10_2 */
-/* reuse GL_VIEW_CLASS_128_BITS */
-/* reuse GL_VIEW_CLASS_96_BITS */
-/* reuse GL_VIEW_CLASS_64_BITS */
-/* reuse GL_VIEW_CLASS_48_BITS */
-/* reuse GL_VIEW_CLASS_32_BITS */
-/* reuse GL_VIEW_CLASS_24_BITS */
-/* reuse GL_VIEW_CLASS_16_BITS */
-/* reuse GL_VIEW_CLASS_8_BITS */
-/* reuse GL_VIEW_CLASS_S3TC_DXT1_RGB */
-/* reuse GL_VIEW_CLASS_S3TC_DXT1_RGBA */
-/* reuse GL_VIEW_CLASS_S3TC_DXT3_RGBA */
-/* reuse GL_VIEW_CLASS_S3TC_DXT5_RGBA */
-/* reuse GL_VIEW_CLASS_RGTC1_RED */
-/* reuse GL_VIEW_CLASS_RGTC2_RG */
-/* reuse GL_VIEW_CLASS_BPTC_UNORM */
-/* reuse GL_VIEW_CLASS_BPTC_FLOAT */
-/* Reuse tokens from ARB_invalidate_subdata (none) */
-/* Reuse tokens from ARB_multi_draw_indirect (none) */
-/* Reuse tokens from ARB_program_interface_query */
-/* reuse GL_UNIFORM */
-/* reuse GL_UNIFORM_BLOCK */
-/* reuse GL_PROGRAM_INPUT */
-/* reuse GL_PROGRAM_OUTPUT */
-/* reuse GL_BUFFER_VARIABLE */
-/* reuse GL_SHADER_STORAGE_BLOCK */
-/* reuse GL_VERTEX_SUBROUTINE */
-/* reuse GL_TESS_CONTROL_SUBROUTINE */
-/* reuse GL_TESS_EVALUATION_SUBROUTINE */
-/* reuse GL_GEOMETRY_SUBROUTINE */
-/* reuse GL_FRAGMENT_SUBROUTINE */
-/* reuse GL_COMPUTE_SUBROUTINE */
-/* reuse GL_VERTEX_SUBROUTINE_UNIFORM */
-/* reuse GL_TESS_CONTROL_SUBROUTINE_UNIFORM */
-/* reuse GL_TESS_EVALUATION_SUBROUTINE_UNIFORM */
-/* reuse GL_GEOMETRY_SUBROUTINE_UNIFORM */
-/* reuse GL_FRAGMENT_SUBROUTINE_UNIFORM */
-/* reuse GL_COMPUTE_SUBROUTINE_UNIFORM */
-/* reuse GL_TRANSFORM_FEEDBACK_VARYING */
-/* reuse GL_ACTIVE_RESOURCES */
-/* reuse GL_MAX_NAME_LENGTH */
-/* reuse GL_MAX_NUM_ACTIVE_VARIABLES */
-/* reuse GL_MAX_NUM_COMPATIBLE_SUBROUTINES */
-/* reuse GL_NAME_LENGTH */
-/* reuse GL_TYPE */
-/* reuse GL_ARRAY_SIZE */
-/* reuse GL_OFFSET */
-/* reuse GL_BLOCK_INDEX */
-/* reuse GL_ARRAY_STRIDE */
-/* reuse GL_MATRIX_STRIDE */
-/* reuse GL_IS_ROW_MAJOR */
-/* reuse GL_ATOMIC_COUNTER_BUFFER_INDEX */
-/* reuse GL_BUFFER_BINDING */
-/* reuse GL_BUFFER_DATA_SIZE */
-/* reuse GL_NUM_ACTIVE_VARIABLES */
-/* reuse GL_ACTIVE_VARIABLES */
-/* reuse GL_REFERENCED_BY_VERTEX_SHADER */
-/* reuse GL_REFERENCED_BY_TESS_CONTROL_SHADER */
-/* reuse GL_REFERENCED_BY_TESS_EVALUATION_SHADER */
-/* reuse GL_REFERENCED_BY_GEOMETRY_SHADER */
-/* reuse GL_REFERENCED_BY_FRAGMENT_SHADER */
-/* reuse GL_REFERENCED_BY_COMPUTE_SHADER */
-/* reuse GL_TOP_LEVEL_ARRAY_SIZE */
-/* reuse GL_TOP_LEVEL_ARRAY_STRIDE */
-/* reuse GL_LOCATION */
-/* reuse GL_LOCATION_INDEX */
-/* reuse GL_IS_PER_PATCH */
-/* Reuse tokens from ARB_robust_buffer_access_behavior (none) */
-/* Reuse tokens from ARB_shader_storage_buffer_object */
-/* reuse GL_SHADER_STORAGE_BUFFER */
-/* reuse GL_SHADER_STORAGE_BUFFER_BINDING */
-/* reuse GL_SHADER_STORAGE_BUFFER_START */
-/* reuse GL_SHADER_STORAGE_BUFFER_SIZE */
-/* reuse GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS */
-/* reuse GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS */
-/* reuse GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS */
-/* reuse GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS */
-/* reuse GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS */
-/* reuse GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS */
-/* reuse GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS */
-/* reuse GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS */
-/* reuse GL_MAX_SHADER_STORAGE_BLOCK_SIZE */
-/* reuse GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT */
-/* reuse GL_SHADER_STORAGE_BARRIER_BIT */
-/* reuse GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES */
-/* Reuse tokens from ARB_stencil_texturing */
-/* reuse GL_DEPTH_STENCIL_TEXTURE_MODE */
-/* Reuse tokens from ARB_texture_buffer_range */
-/* reuse GL_TEXTURE_BUFFER_OFFSET */
-/* reuse GL_TEXTURE_BUFFER_SIZE */
-/* reuse GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT */
-/* Reuse tokens from ARB_texture_query_levels (none) */
-/* Reuse tokens from ARB_texture_storage_multisample (none) */
-/* Reuse tokens from ARB_texture_view */
-/* reuse GL_TEXTURE_VIEW_MIN_LEVEL */
-/* reuse GL_TEXTURE_VIEW_NUM_LEVELS */
-/* reuse GL_TEXTURE_VIEW_MIN_LAYER */
-/* reuse GL_TEXTURE_VIEW_NUM_LAYERS */
-/* reuse GL_TEXTURE_IMMUTABLE_LEVELS */
-/* Reuse tokens from ARB_vertex_attrib_binding */
-/* reuse GL_VERTEX_ATTRIB_BINDING */
-/* reuse GL_VERTEX_ATTRIB_RELATIVE_OFFSET */
-/* reuse GL_VERTEX_BINDING_DIVISOR */
-/* reuse GL_VERTEX_BINDING_OFFSET */
-/* reuse GL_VERTEX_BINDING_STRIDE */
-/* reuse GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET */
-/* reuse GL_MAX_VERTEX_ATTRIB_BINDINGS */
-#endif
-
-#ifndef GL_ARB_multitexture
-#define GL_TEXTURE0_ARB                   0x84C0
-#define GL_TEXTURE1_ARB                   0x84C1
-#define GL_TEXTURE2_ARB                   0x84C2
-#define GL_TEXTURE3_ARB                   0x84C3
-#define GL_TEXTURE4_ARB                   0x84C4
-#define GL_TEXTURE5_ARB                   0x84C5
-#define GL_TEXTURE6_ARB                   0x84C6
-#define GL_TEXTURE7_ARB                   0x84C7
-#define GL_TEXTURE8_ARB                   0x84C8
-#define GL_TEXTURE9_ARB                   0x84C9
-#define GL_TEXTURE10_ARB                  0x84CA
-#define GL_TEXTURE11_ARB                  0x84CB
-#define GL_TEXTURE12_ARB                  0x84CC
-#define GL_TEXTURE13_ARB                  0x84CD
-#define GL_TEXTURE14_ARB                  0x84CE
-#define GL_TEXTURE15_ARB                  0x84CF
-#define GL_TEXTURE16_ARB                  0x84D0
-#define GL_TEXTURE17_ARB                  0x84D1
-#define GL_TEXTURE18_ARB                  0x84D2
-#define GL_TEXTURE19_ARB                  0x84D3
-#define GL_TEXTURE20_ARB                  0x84D4
-#define GL_TEXTURE21_ARB                  0x84D5
-#define GL_TEXTURE22_ARB                  0x84D6
-#define GL_TEXTURE23_ARB                  0x84D7
-#define GL_TEXTURE24_ARB                  0x84D8
-#define GL_TEXTURE25_ARB                  0x84D9
-#define GL_TEXTURE26_ARB                  0x84DA
-#define GL_TEXTURE27_ARB                  0x84DB
-#define GL_TEXTURE28_ARB                  0x84DC
-#define GL_TEXTURE29_ARB                  0x84DD
-#define GL_TEXTURE30_ARB                  0x84DE
-#define GL_TEXTURE31_ARB                  0x84DF
-#define GL_ACTIVE_TEXTURE_ARB             0x84E0
-#define GL_CLIENT_ACTIVE_TEXTURE_ARB      0x84E1
-#define GL_MAX_TEXTURE_UNITS_ARB          0x84E2
-#endif
-
-#ifndef GL_ARB_transpose_matrix
-#define GL_TRANSPOSE_MODELVIEW_MATRIX_ARB 0x84E3
-#define GL_TRANSPOSE_PROJECTION_MATRIX_ARB 0x84E4
-#define GL_TRANSPOSE_TEXTURE_MATRIX_ARB   0x84E5
-#define GL_TRANSPOSE_COLOR_MATRIX_ARB     0x84E6
-#endif
-
-#ifndef GL_ARB_multisample
-#define GL_MULTISAMPLE_ARB                0x809D
-#define GL_SAMPLE_ALPHA_TO_COVERAGE_ARB   0x809E
-#define GL_SAMPLE_ALPHA_TO_ONE_ARB        0x809F
-#define GL_SAMPLE_COVERAGE_ARB            0x80A0
-#define GL_SAMPLE_BUFFERS_ARB             0x80A8
-#define GL_SAMPLES_ARB                    0x80A9
-#define GL_SAMPLE_COVERAGE_VALUE_ARB      0x80AA
-#define GL_SAMPLE_COVERAGE_INVERT_ARB     0x80AB
-#define GL_MULTISAMPLE_BIT_ARB            0x20000000
-#endif
-
-#ifndef GL_ARB_texture_env_add
-#endif
-
-#ifndef GL_ARB_texture_cube_map
-#define GL_NORMAL_MAP_ARB                 0x8511
-#define GL_REFLECTION_MAP_ARB             0x8512
-#define GL_TEXTURE_CUBE_MAP_ARB           0x8513
-#define GL_TEXTURE_BINDING_CUBE_MAP_ARB   0x8514
-#define GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x8515
-#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x8516
-#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x8517
-#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x8518
-#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x8519
-#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x851A
-#define GL_PROXY_TEXTURE_CUBE_MAP_ARB     0x851B
-#define GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB  0x851C
-#endif
-
-#ifndef GL_ARB_texture_compression
-#define GL_COMPRESSED_ALPHA_ARB           0x84E9
-#define GL_COMPRESSED_LUMINANCE_ARB       0x84EA
-#define GL_COMPRESSED_LUMINANCE_ALPHA_ARB 0x84EB
-#define GL_COMPRESSED_INTENSITY_ARB       0x84EC
-#define GL_COMPRESSED_RGB_ARB             0x84ED
-#define GL_COMPRESSED_RGBA_ARB            0x84EE
-#define GL_TEXTURE_COMPRESSION_HINT_ARB   0x84EF
-#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB 0x86A0
-#define GL_TEXTURE_COMPRESSED_ARB         0x86A1
-#define GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A2
-#define GL_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A3
-#endif
-
-#ifndef GL_ARB_texture_border_clamp
-#define GL_CLAMP_TO_BORDER_ARB            0x812D
-#endif
-
-#ifndef GL_ARB_point_parameters
-#define GL_POINT_SIZE_MIN_ARB             0x8126
-#define GL_POINT_SIZE_MAX_ARB             0x8127
-#define GL_POINT_FADE_THRESHOLD_SIZE_ARB  0x8128
-#define GL_POINT_DISTANCE_ATTENUATION_ARB 0x8129
-#endif
-
-#ifndef GL_ARB_vertex_blend
-#define GL_MAX_VERTEX_UNITS_ARB           0x86A4
-#define GL_ACTIVE_VERTEX_UNITS_ARB        0x86A5
-#define GL_WEIGHT_SUM_UNITY_ARB           0x86A6
-#define GL_VERTEX_BLEND_ARB               0x86A7
-#define GL_CURRENT_WEIGHT_ARB             0x86A8
-#define GL_WEIGHT_ARRAY_TYPE_ARB          0x86A9
-#define GL_WEIGHT_ARRAY_STRIDE_ARB        0x86AA
-#define GL_WEIGHT_ARRAY_SIZE_ARB          0x86AB
-#define GL_WEIGHT_ARRAY_POINTER_ARB       0x86AC
-#define GL_WEIGHT_ARRAY_ARB               0x86AD
-#define GL_MODELVIEW0_ARB                 0x1700
-#define GL_MODELVIEW1_ARB                 0x850A
-#define GL_MODELVIEW2_ARB                 0x8722
-#define GL_MODELVIEW3_ARB                 0x8723
-#define GL_MODELVIEW4_ARB                 0x8724
-#define GL_MODELVIEW5_ARB                 0x8725
-#define GL_MODELVIEW6_ARB                 0x8726
-#define GL_MODELVIEW7_ARB                 0x8727
-#define GL_MODELVIEW8_ARB                 0x8728
-#define GL_MODELVIEW9_ARB                 0x8729
-#define GL_MODELVIEW10_ARB                0x872A
-#define GL_MODELVIEW11_ARB                0x872B
-#define GL_MODELVIEW12_ARB                0x872C
-#define GL_MODELVIEW13_ARB                0x872D
-#define GL_MODELVIEW14_ARB                0x872E
-#define GL_MODELVIEW15_ARB                0x872F
-#define GL_MODELVIEW16_ARB                0x8730
-#define GL_MODELVIEW17_ARB                0x8731
-#define GL_MODELVIEW18_ARB                0x8732
-#define GL_MODELVIEW19_ARB                0x8733
-#define GL_MODELVIEW20_ARB                0x8734
-#define GL_MODELVIEW21_ARB                0x8735
-#define GL_MODELVIEW22_ARB                0x8736
-#define GL_MODELVIEW23_ARB                0x8737
-#define GL_MODELVIEW24_ARB                0x8738
-#define GL_MODELVIEW25_ARB                0x8739
-#define GL_MODELVIEW26_ARB                0x873A
-#define GL_MODELVIEW27_ARB                0x873B
-#define GL_MODELVIEW28_ARB                0x873C
-#define GL_MODELVIEW29_ARB                0x873D
-#define GL_MODELVIEW30_ARB                0x873E
-#define GL_MODELVIEW31_ARB                0x873F
-#endif
-
-#ifndef GL_ARB_matrix_palette
-#define GL_MATRIX_PALETTE_ARB             0x8840
-#define GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB 0x8841
-#define GL_MAX_PALETTE_MATRICES_ARB       0x8842
-#define GL_CURRENT_PALETTE_MATRIX_ARB     0x8843
-#define GL_MATRIX_INDEX_ARRAY_ARB         0x8844
-#define GL_CURRENT_MATRIX_INDEX_ARB       0x8845
-#define GL_MATRIX_INDEX_ARRAY_SIZE_ARB    0x8846
-#define GL_MATRIX_INDEX_ARRAY_TYPE_ARB    0x8847
-#define GL_MATRIX_INDEX_ARRAY_STRIDE_ARB  0x8848
-#define GL_MATRIX_INDEX_ARRAY_POINTER_ARB 0x8849
-#endif
-
-#ifndef GL_ARB_texture_env_combine
-#define GL_COMBINE_ARB                    0x8570
-#define GL_COMBINE_RGB_ARB                0x8571
-#define GL_COMBINE_ALPHA_ARB              0x8572
-#define GL_SOURCE0_RGB_ARB                0x8580
-#define GL_SOURCE1_RGB_ARB                0x8581
-#define GL_SOURCE2_RGB_ARB                0x8582
-#define GL_SOURCE0_ALPHA_ARB              0x8588
-#define GL_SOURCE1_ALPHA_ARB              0x8589
-#define GL_SOURCE2_ALPHA_ARB              0x858A
-#define GL_OPERAND0_RGB_ARB               0x8590
-#define GL_OPERAND1_RGB_ARB               0x8591
-#define GL_OPERAND2_RGB_ARB               0x8592
-#define GL_OPERAND0_ALPHA_ARB             0x8598
-#define GL_OPERAND1_ALPHA_ARB             0x8599
-#define GL_OPERAND2_ALPHA_ARB             0x859A
-#define GL_RGB_SCALE_ARB                  0x8573
-#define GL_ADD_SIGNED_ARB                 0x8574
-#define GL_INTERPOLATE_ARB                0x8575
-#define GL_SUBTRACT_ARB                   0x84E7
-#define GL_CONSTANT_ARB                   0x8576
-#define GL_PRIMARY_COLOR_ARB              0x8577
-#define GL_PREVIOUS_ARB                   0x8578
-#endif
-
-#ifndef GL_ARB_texture_env_crossbar
-#endif
-
-#ifndef GL_ARB_texture_env_dot3
-#define GL_DOT3_RGB_ARB                   0x86AE
-#define GL_DOT3_RGBA_ARB                  0x86AF
-#endif
-
-#ifndef GL_ARB_texture_mirrored_repeat
-#define GL_MIRRORED_REPEAT_ARB            0x8370
-#endif
-
-#ifndef GL_ARB_depth_texture
-#define GL_DEPTH_COMPONENT16_ARB          0x81A5
-#define GL_DEPTH_COMPONENT24_ARB          0x81A6
-#define GL_DEPTH_COMPONENT32_ARB          0x81A7
-#define GL_TEXTURE_DEPTH_SIZE_ARB         0x884A
-#define GL_DEPTH_TEXTURE_MODE_ARB         0x884B
-#endif
-
-#ifndef GL_ARB_shadow
-#define GL_TEXTURE_COMPARE_MODE_ARB       0x884C
-#define GL_TEXTURE_COMPARE_FUNC_ARB       0x884D
-#define GL_COMPARE_R_TO_TEXTURE_ARB       0x884E
-#endif
-
-#ifndef GL_ARB_shadow_ambient
-#define GL_TEXTURE_COMPARE_FAIL_VALUE_ARB 0x80BF
-#endif
-
-#ifndef GL_ARB_window_pos
-#endif
-
-#ifndef GL_ARB_vertex_program
-#define GL_COLOR_SUM_ARB                  0x8458
-#define GL_VERTEX_PROGRAM_ARB             0x8620
-#define GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB 0x8622
-#define GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB   0x8623
-#define GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB 0x8624
-#define GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB   0x8625
-#define GL_CURRENT_VERTEX_ATTRIB_ARB      0x8626
-#define GL_PROGRAM_LENGTH_ARB             0x8627
-#define GL_PROGRAM_STRING_ARB             0x8628
-#define GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB 0x862E
-#define GL_MAX_PROGRAM_MATRICES_ARB       0x862F
-#define GL_CURRENT_MATRIX_STACK_DEPTH_ARB 0x8640
-#define GL_CURRENT_MATRIX_ARB             0x8641
-#define GL_VERTEX_PROGRAM_POINT_SIZE_ARB  0x8642
-#define GL_VERTEX_PROGRAM_TWO_SIDE_ARB    0x8643
-#define GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB 0x8645
-#define GL_PROGRAM_ERROR_POSITION_ARB     0x864B
-#define GL_PROGRAM_BINDING_ARB            0x8677
-#define GL_MAX_VERTEX_ATTRIBS_ARB         0x8869
-#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB 0x886A
-#define GL_PROGRAM_ERROR_STRING_ARB       0x8874
-#define GL_PROGRAM_FORMAT_ASCII_ARB       0x8875
-#define GL_PROGRAM_FORMAT_ARB             0x8876
-#define GL_PROGRAM_INSTRUCTIONS_ARB       0x88A0
-#define GL_MAX_PROGRAM_INSTRUCTIONS_ARB   0x88A1
-#define GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A2
-#define GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A3
-#define GL_PROGRAM_TEMPORARIES_ARB        0x88A4
-#define GL_MAX_PROGRAM_TEMPORARIES_ARB    0x88A5
-#define GL_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A6
-#define GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A7
-#define GL_PROGRAM_PARAMETERS_ARB         0x88A8
-#define GL_MAX_PROGRAM_PARAMETERS_ARB     0x88A9
-#define GL_PROGRAM_NATIVE_PARAMETERS_ARB  0x88AA
-#define GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AB
-#define GL_PROGRAM_ATTRIBS_ARB            0x88AC
-#define GL_MAX_PROGRAM_ATTRIBS_ARB        0x88AD
-#define GL_PROGRAM_NATIVE_ATTRIBS_ARB     0x88AE
-#define GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AF
-#define GL_PROGRAM_ADDRESS_REGISTERS_ARB  0x88B0
-#define GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B1
-#define GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B2
-#define GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B3
-#define GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB 0x88B4
-#define GL_MAX_PROGRAM_ENV_PARAMETERS_ARB 0x88B5
-#define GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB 0x88B6
-#define GL_TRANSPOSE_CURRENT_MATRIX_ARB   0x88B7
-#define GL_MATRIX0_ARB                    0x88C0
-#define GL_MATRIX1_ARB                    0x88C1
-#define GL_MATRIX2_ARB                    0x88C2
-#define GL_MATRIX3_ARB                    0x88C3
-#define GL_MATRIX4_ARB                    0x88C4
-#define GL_MATRIX5_ARB                    0x88C5
-#define GL_MATRIX6_ARB                    0x88C6
-#define GL_MATRIX7_ARB                    0x88C7
-#define GL_MATRIX8_ARB                    0x88C8
-#define GL_MATRIX9_ARB                    0x88C9
-#define GL_MATRIX10_ARB                   0x88CA
-#define GL_MATRIX11_ARB                   0x88CB
-#define GL_MATRIX12_ARB                   0x88CC
-#define GL_MATRIX13_ARB                   0x88CD
-#define GL_MATRIX14_ARB                   0x88CE
-#define GL_MATRIX15_ARB                   0x88CF
-#define GL_MATRIX16_ARB                   0x88D0
-#define GL_MATRIX17_ARB                   0x88D1
-#define GL_MATRIX18_ARB                   0x88D2
-#define GL_MATRIX19_ARB                   0x88D3
-#define GL_MATRIX20_ARB                   0x88D4
-#define GL_MATRIX21_ARB                   0x88D5
-#define GL_MATRIX22_ARB                   0x88D6
-#define GL_MATRIX23_ARB                   0x88D7
-#define GL_MATRIX24_ARB                   0x88D8
-#define GL_MATRIX25_ARB                   0x88D9
-#define GL_MATRIX26_ARB                   0x88DA
-#define GL_MATRIX27_ARB                   0x88DB
-#define GL_MATRIX28_ARB                   0x88DC
-#define GL_MATRIX29_ARB                   0x88DD
-#define GL_MATRIX30_ARB                   0x88DE
-#define GL_MATRIX31_ARB                   0x88DF
-#endif
-
-#ifndef GL_ARB_fragment_program
-#define GL_FRAGMENT_PROGRAM_ARB           0x8804
-#define GL_PROGRAM_ALU_INSTRUCTIONS_ARB   0x8805
-#define GL_PROGRAM_TEX_INSTRUCTIONS_ARB   0x8806
-#define GL_PROGRAM_TEX_INDIRECTIONS_ARB   0x8807
-#define GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x8808
-#define GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x8809
-#define GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x880A
-#define GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB 0x880B
-#define GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB 0x880C
-#define GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB 0x880D
-#define GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x880E
-#define GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x880F
-#define GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x8810
-#define GL_MAX_TEXTURE_COORDS_ARB         0x8871
-#define GL_MAX_TEXTURE_IMAGE_UNITS_ARB    0x8872
-#endif
-
-#ifndef GL_ARB_vertex_buffer_object
-#define GL_BUFFER_SIZE_ARB                0x8764
-#define GL_BUFFER_USAGE_ARB               0x8765
-#define GL_ARRAY_BUFFER_ARB               0x8892
-#define GL_ELEMENT_ARRAY_BUFFER_ARB       0x8893
-#define GL_ARRAY_BUFFER_BINDING_ARB       0x8894
-#define GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB 0x8895
-#define GL_VERTEX_ARRAY_BUFFER_BINDING_ARB 0x8896
-#define GL_NORMAL_ARRAY_BUFFER_BINDING_ARB 0x8897
-#define GL_COLOR_ARRAY_BUFFER_BINDING_ARB 0x8898
-#define GL_INDEX_ARRAY_BUFFER_BINDING_ARB 0x8899
-#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB 0x889A
-#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB 0x889B
-#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB 0x889C
-#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB 0x889D
-#define GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB 0x889E
-#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB 0x889F
-#define GL_READ_ONLY_ARB                  0x88B8
-#define GL_WRITE_ONLY_ARB                 0x88B9
-#define GL_READ_WRITE_ARB                 0x88BA
-#define GL_BUFFER_ACCESS_ARB              0x88BB
-#define GL_BUFFER_MAPPED_ARB              0x88BC
-#define GL_BUFFER_MAP_POINTER_ARB         0x88BD
-#define GL_STREAM_DRAW_ARB                0x88E0
-#define GL_STREAM_READ_ARB                0x88E1
-#define GL_STREAM_COPY_ARB                0x88E2
-#define GL_STATIC_DRAW_ARB                0x88E4
-#define GL_STATIC_READ_ARB                0x88E5
-#define GL_STATIC_COPY_ARB                0x88E6
-#define GL_DYNAMIC_DRAW_ARB               0x88E8
-#define GL_DYNAMIC_READ_ARB               0x88E9
-#define GL_DYNAMIC_COPY_ARB               0x88EA
-#endif
-
-#ifndef GL_ARB_occlusion_query
-#define GL_QUERY_COUNTER_BITS_ARB         0x8864
-#define GL_CURRENT_QUERY_ARB              0x8865
-#define GL_QUERY_RESULT_ARB               0x8866
-#define GL_QUERY_RESULT_AVAILABLE_ARB     0x8867
-#define GL_SAMPLES_PASSED_ARB             0x8914
-#endif
-
-#ifndef GL_ARB_shader_objects
-#define GL_PROGRAM_OBJECT_ARB             0x8B40
-#define GL_SHADER_OBJECT_ARB              0x8B48
-#define GL_OBJECT_TYPE_ARB                0x8B4E
-#define GL_OBJECT_SUBTYPE_ARB             0x8B4F
-#define GL_FLOAT_VEC2_ARB                 0x8B50
-#define GL_FLOAT_VEC3_ARB                 0x8B51
-#define GL_FLOAT_VEC4_ARB                 0x8B52
-#define GL_INT_VEC2_ARB                   0x8B53
-#define GL_INT_VEC3_ARB                   0x8B54
-#define GL_INT_VEC4_ARB                   0x8B55
-#define GL_BOOL_ARB                       0x8B56
-#define GL_BOOL_VEC2_ARB                  0x8B57
-#define GL_BOOL_VEC3_ARB                  0x8B58
-#define GL_BOOL_VEC4_ARB                  0x8B59
-#define GL_FLOAT_MAT2_ARB                 0x8B5A
-#define GL_FLOAT_MAT3_ARB                 0x8B5B
-#define GL_FLOAT_MAT4_ARB                 0x8B5C
-#define GL_SAMPLER_1D_ARB                 0x8B5D
-#define GL_SAMPLER_2D_ARB                 0x8B5E
-#define GL_SAMPLER_3D_ARB                 0x8B5F
-#define GL_SAMPLER_CUBE_ARB               0x8B60
-#define GL_SAMPLER_1D_SHADOW_ARB          0x8B61
-#define GL_SAMPLER_2D_SHADOW_ARB          0x8B62
-#define GL_SAMPLER_2D_RECT_ARB            0x8B63
-#define GL_SAMPLER_2D_RECT_SHADOW_ARB     0x8B64
-#define GL_OBJECT_DELETE_STATUS_ARB       0x8B80
-#define GL_OBJECT_COMPILE_STATUS_ARB      0x8B81
-#define GL_OBJECT_LINK_STATUS_ARB         0x8B82
-#define GL_OBJECT_VALIDATE_STATUS_ARB     0x8B83
-#define GL_OBJECT_INFO_LOG_LENGTH_ARB     0x8B84
-#define GL_OBJECT_ATTACHED_OBJECTS_ARB    0x8B85
-#define GL_OBJECT_ACTIVE_UNIFORMS_ARB     0x8B86
-#define GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB 0x8B87
-#define GL_OBJECT_SHADER_SOURCE_LENGTH_ARB 0x8B88
-#endif
-
-#ifndef GL_ARB_vertex_shader
-#define GL_VERTEX_SHADER_ARB              0x8B31
-#define GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB 0x8B4A
-#define GL_MAX_VARYING_FLOATS_ARB         0x8B4B
-#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB 0x8B4C
-#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB 0x8B4D
-#define GL_OBJECT_ACTIVE_ATTRIBUTES_ARB   0x8B89
-#define GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB 0x8B8A
-#endif
-
-#ifndef GL_ARB_fragment_shader
-#define GL_FRAGMENT_SHADER_ARB            0x8B30
-#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49
-#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB 0x8B8B
-#endif
-
-#ifndef GL_ARB_shading_language_100
-#define GL_SHADING_LANGUAGE_VERSION_ARB   0x8B8C
-#endif
-
-#ifndef GL_ARB_texture_non_power_of_two
-#endif
-
-#ifndef GL_ARB_point_sprite
-#define GL_POINT_SPRITE_ARB               0x8861
-#define GL_COORD_REPLACE_ARB              0x8862
-#endif
-
-#ifndef GL_ARB_fragment_program_shadow
-#endif
-
-#ifndef GL_ARB_draw_buffers
-#define GL_MAX_DRAW_BUFFERS_ARB           0x8824
-#define GL_DRAW_BUFFER0_ARB               0x8825
-#define GL_DRAW_BUFFER1_ARB               0x8826
-#define GL_DRAW_BUFFER2_ARB               0x8827
-#define GL_DRAW_BUFFER3_ARB               0x8828
-#define GL_DRAW_BUFFER4_ARB               0x8829
-#define GL_DRAW_BUFFER5_ARB               0x882A
-#define GL_DRAW_BUFFER6_ARB               0x882B
-#define GL_DRAW_BUFFER7_ARB               0x882C
-#define GL_DRAW_BUFFER8_ARB               0x882D
-#define GL_DRAW_BUFFER9_ARB               0x882E
-#define GL_DRAW_BUFFER10_ARB              0x882F
-#define GL_DRAW_BUFFER11_ARB              0x8830
-#define GL_DRAW_BUFFER12_ARB              0x8831
-#define GL_DRAW_BUFFER13_ARB              0x8832
-#define GL_DRAW_BUFFER14_ARB              0x8833
-#define GL_DRAW_BUFFER15_ARB              0x8834
-#endif
-
-#ifndef GL_ARB_texture_rectangle
-#define GL_TEXTURE_RECTANGLE_ARB          0x84F5
-#define GL_TEXTURE_BINDING_RECTANGLE_ARB  0x84F6
-#define GL_PROXY_TEXTURE_RECTANGLE_ARB    0x84F7
-#define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB 0x84F8
-#endif
-
-#ifndef GL_ARB_color_buffer_float
-#define GL_RGBA_FLOAT_MODE_ARB            0x8820
-#define GL_CLAMP_VERTEX_COLOR_ARB         0x891A
-#define GL_CLAMP_FRAGMENT_COLOR_ARB       0x891B
-#define GL_CLAMP_READ_COLOR_ARB           0x891C
-#define GL_FIXED_ONLY_ARB                 0x891D
-#endif
-
-#ifndef GL_ARB_half_float_pixel
-#define GL_HALF_FLOAT_ARB                 0x140B
-#endif
-
-#ifndef GL_ARB_texture_float
-#define GL_TEXTURE_RED_TYPE_ARB           0x8C10
-#define GL_TEXTURE_GREEN_TYPE_ARB         0x8C11
-#define GL_TEXTURE_BLUE_TYPE_ARB          0x8C12
-#define GL_TEXTURE_ALPHA_TYPE_ARB         0x8C13
-#define GL_TEXTURE_LUMINANCE_TYPE_ARB     0x8C14
-#define GL_TEXTURE_INTENSITY_TYPE_ARB     0x8C15
-#define GL_TEXTURE_DEPTH_TYPE_ARB         0x8C16
-#define GL_UNSIGNED_NORMALIZED_ARB        0x8C17
-#define GL_RGBA32F_ARB                    0x8814
-#define GL_RGB32F_ARB                     0x8815
-#define GL_ALPHA32F_ARB                   0x8816
-#define GL_INTENSITY32F_ARB               0x8817
-#define GL_LUMINANCE32F_ARB               0x8818
-#define GL_LUMINANCE_ALPHA32F_ARB         0x8819
-#define GL_RGBA16F_ARB                    0x881A
-#define GL_RGB16F_ARB                     0x881B
-#define GL_ALPHA16F_ARB                   0x881C
-#define GL_INTENSITY16F_ARB               0x881D
-#define GL_LUMINANCE16F_ARB               0x881E
-#define GL_LUMINANCE_ALPHA16F_ARB         0x881F
-#endif
-
-#ifndef GL_ARB_pixel_buffer_object
-#define GL_PIXEL_PACK_BUFFER_ARB          0x88EB
-#define GL_PIXEL_UNPACK_BUFFER_ARB        0x88EC
-#define GL_PIXEL_PACK_BUFFER_BINDING_ARB  0x88ED
-#define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB 0x88EF
-#endif
-
-#ifndef GL_ARB_depth_buffer_float
-#define GL_DEPTH_COMPONENT32F             0x8CAC
-#define GL_DEPTH32F_STENCIL8              0x8CAD
-#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD
-#endif
-
-#ifndef GL_ARB_draw_instanced
-#endif
-
-#ifndef GL_ARB_framebuffer_object
-#define GL_INVALID_FRAMEBUFFER_OPERATION  0x0506
-#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210
-#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211
-#define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212
-#define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213
-#define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214
-#define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215
-#define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216
-#define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217
-#define GL_FRAMEBUFFER_DEFAULT            0x8218
-#define GL_FRAMEBUFFER_UNDEFINED          0x8219
-#define GL_DEPTH_STENCIL_ATTACHMENT       0x821A
-#define GL_MAX_RENDERBUFFER_SIZE          0x84E8
-#define GL_DEPTH_STENCIL                  0x84F9
-#define GL_UNSIGNED_INT_24_8              0x84FA
-#define GL_DEPTH24_STENCIL8               0x88F0
-#define GL_TEXTURE_STENCIL_SIZE           0x88F1
-#define GL_TEXTURE_RED_TYPE               0x8C10
-#define GL_TEXTURE_GREEN_TYPE             0x8C11
-#define GL_TEXTURE_BLUE_TYPE              0x8C12
-#define GL_TEXTURE_ALPHA_TYPE             0x8C13
-#define GL_TEXTURE_DEPTH_TYPE             0x8C16
-#define GL_UNSIGNED_NORMALIZED            0x8C17
-#define GL_FRAMEBUFFER_BINDING            0x8CA6
-#define GL_DRAW_FRAMEBUFFER_BINDING       GL_FRAMEBUFFER_BINDING
-#define GL_RENDERBUFFER_BINDING           0x8CA7
-#define GL_READ_FRAMEBUFFER               0x8CA8
-#define GL_DRAW_FRAMEBUFFER               0x8CA9
-#define GL_READ_FRAMEBUFFER_BINDING       0x8CAA
-#define GL_RENDERBUFFER_SAMPLES           0x8CAB
-#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
-#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
-#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
-#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
-#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4
-#define GL_FRAMEBUFFER_COMPLETE           0x8CD5
-#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
-#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
-#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB
-#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC
-#define GL_FRAMEBUFFER_UNSUPPORTED        0x8CDD
-#define GL_MAX_COLOR_ATTACHMENTS          0x8CDF
-#define GL_COLOR_ATTACHMENT0              0x8CE0
-#define GL_COLOR_ATTACHMENT1              0x8CE1
-#define GL_COLOR_ATTACHMENT2              0x8CE2
-#define GL_COLOR_ATTACHMENT3              0x8CE3
-#define GL_COLOR_ATTACHMENT4              0x8CE4
-#define GL_COLOR_ATTACHMENT5              0x8CE5
-#define GL_COLOR_ATTACHMENT6              0x8CE6
-#define GL_COLOR_ATTACHMENT7              0x8CE7
-#define GL_COLOR_ATTACHMENT8              0x8CE8
-#define GL_COLOR_ATTACHMENT9              0x8CE9
-#define GL_COLOR_ATTACHMENT10             0x8CEA
-#define GL_COLOR_ATTACHMENT11             0x8CEB
-#define GL_COLOR_ATTACHMENT12             0x8CEC
-#define GL_COLOR_ATTACHMENT13             0x8CED
-#define GL_COLOR_ATTACHMENT14             0x8CEE
-#define GL_COLOR_ATTACHMENT15             0x8CEF
-#define GL_DEPTH_ATTACHMENT               0x8D00
-#define GL_STENCIL_ATTACHMENT             0x8D20
-#define GL_FRAMEBUFFER                    0x8D40
-#define GL_RENDERBUFFER                   0x8D41
-#define GL_RENDERBUFFER_WIDTH             0x8D42
-#define GL_RENDERBUFFER_HEIGHT            0x8D43
-#define GL_RENDERBUFFER_INTERNAL_FORMAT   0x8D44
-#define GL_STENCIL_INDEX1                 0x8D46
-#define GL_STENCIL_INDEX4                 0x8D47
-#define GL_STENCIL_INDEX8                 0x8D48
-#define GL_STENCIL_INDEX16                0x8D49
-#define GL_RENDERBUFFER_RED_SIZE          0x8D50
-#define GL_RENDERBUFFER_GREEN_SIZE        0x8D51
-#define GL_RENDERBUFFER_BLUE_SIZE         0x8D52
-#define GL_RENDERBUFFER_ALPHA_SIZE        0x8D53
-#define GL_RENDERBUFFER_DEPTH_SIZE        0x8D54
-#define GL_RENDERBUFFER_STENCIL_SIZE      0x8D55
-#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56
-#define GL_MAX_SAMPLES                    0x8D57
-#define GL_INDEX                          0x8222
-#define GL_TEXTURE_LUMINANCE_TYPE         0x8C14
-#define GL_TEXTURE_INTENSITY_TYPE         0x8C15
-#endif
-
-#ifndef GL_ARB_framebuffer_sRGB
-#define GL_FRAMEBUFFER_SRGB               0x8DB9
-#endif
-
-#ifndef GL_ARB_geometry_shader4
-#define GL_LINES_ADJACENCY_ARB            0x000A
-#define GL_LINE_STRIP_ADJACENCY_ARB       0x000B
-#define GL_TRIANGLES_ADJACENCY_ARB        0x000C
-#define GL_TRIANGLE_STRIP_ADJACENCY_ARB   0x000D
-#define GL_PROGRAM_POINT_SIZE_ARB         0x8642
-#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB 0x8C29
-#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB 0x8DA7
-#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB 0x8DA8
-#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB 0x8DA9
-#define GL_GEOMETRY_SHADER_ARB            0x8DD9
-#define GL_GEOMETRY_VERTICES_OUT_ARB      0x8DDA
-#define GL_GEOMETRY_INPUT_TYPE_ARB        0x8DDB
-#define GL_GEOMETRY_OUTPUT_TYPE_ARB       0x8DDC
-#define GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB 0x8DDD
-#define GL_MAX_VERTEX_VARYING_COMPONENTS_ARB 0x8DDE
-#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB 0x8DDF
-#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB 0x8DE0
-#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB 0x8DE1
-/* reuse GL_MAX_VARYING_COMPONENTS */
-/* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER */
-#endif
-
-#ifndef GL_ARB_half_float_vertex
-#define GL_HALF_FLOAT                     0x140B
-#endif
-
-#ifndef GL_ARB_instanced_arrays
-#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB 0x88FE
-#endif
-
-#ifndef GL_ARB_map_buffer_range
-#define GL_MAP_READ_BIT                   0x0001
-#define GL_MAP_WRITE_BIT                  0x0002
-#define GL_MAP_INVALIDATE_RANGE_BIT       0x0004
-#define GL_MAP_INVALIDATE_BUFFER_BIT      0x0008
-#define GL_MAP_FLUSH_EXPLICIT_BIT         0x0010
-#define GL_MAP_UNSYNCHRONIZED_BIT         0x0020
-#endif
-
-#ifndef GL_ARB_texture_buffer_object
-#define GL_TEXTURE_BUFFER_ARB             0x8C2A
-#define GL_MAX_TEXTURE_BUFFER_SIZE_ARB    0x8C2B
-#define GL_TEXTURE_BINDING_BUFFER_ARB     0x8C2C
-#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB 0x8C2D
-#define GL_TEXTURE_BUFFER_FORMAT_ARB      0x8C2E
-#endif
-
-#ifndef GL_ARB_texture_compression_rgtc
-#define GL_COMPRESSED_RED_RGTC1           0x8DBB
-#define GL_COMPRESSED_SIGNED_RED_RGTC1    0x8DBC
-#define GL_COMPRESSED_RG_RGTC2            0x8DBD
-#define GL_COMPRESSED_SIGNED_RG_RGTC2     0x8DBE
-#endif
-
-#ifndef GL_ARB_texture_rg
-#define GL_RG                             0x8227
-#define GL_RG_INTEGER                     0x8228
-#define GL_R8                             0x8229
-#define GL_R16                            0x822A
-#define GL_RG8                            0x822B
-#define GL_RG16                           0x822C
-#define GL_R16F                           0x822D
-#define GL_R32F                           0x822E
-#define GL_RG16F                          0x822F
-#define GL_RG32F                          0x8230
-#define GL_R8I                            0x8231
-#define GL_R8UI                           0x8232
-#define GL_R16I                           0x8233
-#define GL_R16UI                          0x8234
-#define GL_R32I                           0x8235
-#define GL_R32UI                          0x8236
-#define GL_RG8I                           0x8237
-#define GL_RG8UI                          0x8238
-#define GL_RG16I                          0x8239
-#define GL_RG16UI                         0x823A
-#define GL_RG32I                          0x823B
-#define GL_RG32UI                         0x823C
-#endif
-
-#ifndef GL_ARB_vertex_array_object
-#define GL_VERTEX_ARRAY_BINDING           0x85B5
-#endif
-
-#ifndef GL_ARB_uniform_buffer_object
-#define GL_UNIFORM_BUFFER                 0x8A11
-#define GL_UNIFORM_BUFFER_BINDING         0x8A28
-#define GL_UNIFORM_BUFFER_START           0x8A29
-#define GL_UNIFORM_BUFFER_SIZE            0x8A2A
-#define GL_MAX_VERTEX_UNIFORM_BLOCKS      0x8A2B
-#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS    0x8A2C
-#define GL_MAX_FRAGMENT_UNIFORM_BLOCKS    0x8A2D
-#define GL_MAX_COMBINED_UNIFORM_BLOCKS    0x8A2E
-#define GL_MAX_UNIFORM_BUFFER_BINDINGS    0x8A2F
-#define GL_MAX_UNIFORM_BLOCK_SIZE         0x8A30
-#define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31
-#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32
-#define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33
-#define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34
-#define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35
-#define GL_ACTIVE_UNIFORM_BLOCKS          0x8A36
-#define GL_UNIFORM_TYPE                   0x8A37
-#define GL_UNIFORM_SIZE                   0x8A38
-#define GL_UNIFORM_NAME_LENGTH            0x8A39
-#define GL_UNIFORM_BLOCK_INDEX            0x8A3A
-#define GL_UNIFORM_OFFSET                 0x8A3B
-#define GL_UNIFORM_ARRAY_STRIDE           0x8A3C
-#define GL_UNIFORM_MATRIX_STRIDE          0x8A3D
-#define GL_UNIFORM_IS_ROW_MAJOR           0x8A3E
-#define GL_UNIFORM_BLOCK_BINDING          0x8A3F
-#define GL_UNIFORM_BLOCK_DATA_SIZE        0x8A40
-#define GL_UNIFORM_BLOCK_NAME_LENGTH      0x8A41
-#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS  0x8A42
-#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43
-#define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44
-#define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45
-#define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46
-#define GL_INVALID_INDEX                  0xFFFFFFFFu
-#endif
-
-#ifndef GL_ARB_compatibility
-/* ARB_compatibility just defines tokens from core 3.0 */
-#endif
-
-#ifndef GL_ARB_copy_buffer
-#define GL_COPY_READ_BUFFER_BINDING       0x8F36
-#define GL_COPY_READ_BUFFER               GL_COPY_READ_BUFFER_BINDING
-#define GL_COPY_WRITE_BUFFER_BINDING      0x8F37
-#define GL_COPY_WRITE_BUFFER              GL_COPY_WRITE_BUFFER_BINDING
-#endif
-
-#ifndef GL_ARB_shader_texture_lod
-#endif
-
-#ifndef GL_ARB_depth_clamp
-#define GL_DEPTH_CLAMP                    0x864F
-#endif
-
-#ifndef GL_ARB_draw_elements_base_vertex
-#endif
-
-#ifndef GL_ARB_fragment_coord_conventions
-#endif
-
-#ifndef GL_ARB_provoking_vertex
-#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C
-#define GL_FIRST_VERTEX_CONVENTION        0x8E4D
-#define GL_LAST_VERTEX_CONVENTION         0x8E4E
-#define GL_PROVOKING_VERTEX               0x8E4F
-#endif
-
-#ifndef GL_ARB_seamless_cube_map
-#define GL_TEXTURE_CUBE_MAP_SEAMLESS      0x884F
-#endif
-
-#ifndef GL_ARB_sync
-#define GL_MAX_SERVER_WAIT_TIMEOUT        0x9111
-#define GL_OBJECT_TYPE                    0x9112
-#define GL_SYNC_CONDITION                 0x9113
-#define GL_SYNC_STATUS                    0x9114
-#define GL_SYNC_FLAGS                     0x9115
-#define GL_SYNC_FENCE                     0x9116
-#define GL_SYNC_GPU_COMMANDS_COMPLETE     0x9117
-#define GL_UNSIGNALED                     0x9118
-#define GL_SIGNALED                       0x9119
-#define GL_ALREADY_SIGNALED               0x911A
-#define GL_TIMEOUT_EXPIRED                0x911B
-#define GL_CONDITION_SATISFIED            0x911C
-#define GL_WAIT_FAILED                    0x911D
-#define GL_SYNC_FLUSH_COMMANDS_BIT        0x00000001
-#define GL_TIMEOUT_IGNORED                0xFFFFFFFFFFFFFFFFull
-#endif
-
-#ifndef GL_ARB_texture_multisample
-#define GL_SAMPLE_POSITION                0x8E50
-#define GL_SAMPLE_MASK                    0x8E51
-#define GL_SAMPLE_MASK_VALUE              0x8E52
-#define GL_MAX_SAMPLE_MASK_WORDS          0x8E59
-#define GL_TEXTURE_2D_MULTISAMPLE         0x9100
-#define GL_PROXY_TEXTURE_2D_MULTISAMPLE   0x9101
-#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY   0x9102
-#define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103
-#define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104
-#define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105
-#define GL_TEXTURE_SAMPLES                0x9106
-#define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107
-#define GL_SAMPLER_2D_MULTISAMPLE         0x9108
-#define GL_INT_SAMPLER_2D_MULTISAMPLE     0x9109
-#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A
-#define GL_SAMPLER_2D_MULTISAMPLE_ARRAY   0x910B
-#define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C
-#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D
-#define GL_MAX_COLOR_TEXTURE_SAMPLES      0x910E
-#define GL_MAX_DEPTH_TEXTURE_SAMPLES      0x910F
-#define GL_MAX_INTEGER_SAMPLES            0x9110
-#endif
-
-#ifndef GL_ARB_vertex_array_bgra
-/* reuse GL_BGRA */
-#endif
-
-#ifndef GL_ARB_draw_buffers_blend
-#endif
-
-#ifndef GL_ARB_sample_shading
-#define GL_SAMPLE_SHADING_ARB             0x8C36
-#define GL_MIN_SAMPLE_SHADING_VALUE_ARB   0x8C37
-#endif
-
-#ifndef GL_ARB_texture_cube_map_array
-#define GL_TEXTURE_CUBE_MAP_ARRAY_ARB     0x9009
-#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB 0x900A
-#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB 0x900B
-#define GL_SAMPLER_CUBE_MAP_ARRAY_ARB     0x900C
-#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB 0x900D
-#define GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900E
-#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900F
-#endif
-
-#ifndef GL_ARB_texture_gather
-#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5E
-#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5F
-#define GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB 0x8F9F
-#endif
-
-#ifndef GL_ARB_texture_query_lod
-#endif
-
-#ifndef GL_ARB_shading_language_include
-#define GL_SHADER_INCLUDE_ARB             0x8DAE
-#define GL_NAMED_STRING_LENGTH_ARB        0x8DE9
-#define GL_NAMED_STRING_TYPE_ARB          0x8DEA
-#endif
-
-#ifndef GL_ARB_texture_compression_bptc
-#define GL_COMPRESSED_RGBA_BPTC_UNORM_ARB 0x8E8C
-#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB 0x8E8D
-#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB 0x8E8E
-#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB 0x8E8F
-#endif
-
-#ifndef GL_ARB_blend_func_extended
-#define GL_SRC1_COLOR                     0x88F9
-/* reuse GL_SRC1_ALPHA */
-#define GL_ONE_MINUS_SRC1_COLOR           0x88FA
-#define GL_ONE_MINUS_SRC1_ALPHA           0x88FB
-#define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS   0x88FC
-#endif
-
-#ifndef GL_ARB_explicit_attrib_location
-#endif
-
-#ifndef GL_ARB_occlusion_query2
-#define GL_ANY_SAMPLES_PASSED             0x8C2F
-#endif
-
-#ifndef GL_ARB_sampler_objects
-#define GL_SAMPLER_BINDING                0x8919
-#endif
-
-#ifndef GL_ARB_shader_bit_encoding
-#endif
-
-#ifndef GL_ARB_texture_rgb10_a2ui
-#define GL_RGB10_A2UI                     0x906F
-#endif
-
-#ifndef GL_ARB_texture_swizzle
-#define GL_TEXTURE_SWIZZLE_R              0x8E42
-#define GL_TEXTURE_SWIZZLE_G              0x8E43
-#define GL_TEXTURE_SWIZZLE_B              0x8E44
-#define GL_TEXTURE_SWIZZLE_A              0x8E45
-#define GL_TEXTURE_SWIZZLE_RGBA           0x8E46
-#endif
-
-#ifndef GL_ARB_timer_query
-#define GL_TIME_ELAPSED                   0x88BF
-#define GL_TIMESTAMP                      0x8E28
-#endif
-
-#ifndef GL_ARB_vertex_type_2_10_10_10_rev
-/* reuse GL_UNSIGNED_INT_2_10_10_10_REV */
-#define GL_INT_2_10_10_10_REV             0x8D9F
-#endif
-
-#ifndef GL_ARB_draw_indirect
-#define GL_DRAW_INDIRECT_BUFFER           0x8F3F
-#define GL_DRAW_INDIRECT_BUFFER_BINDING   0x8F43
-#endif
-
-#ifndef GL_ARB_gpu_shader5
-#define GL_GEOMETRY_SHADER_INVOCATIONS    0x887F
-#define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A
-#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B
-#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C
-#define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D
-/* reuse GL_MAX_VERTEX_STREAMS */
-#endif
-
-#ifndef GL_ARB_gpu_shader_fp64
-/* reuse GL_DOUBLE */
-#define GL_DOUBLE_VEC2                    0x8FFC
-#define GL_DOUBLE_VEC3                    0x8FFD
-#define GL_DOUBLE_VEC4                    0x8FFE
-#define GL_DOUBLE_MAT2                    0x8F46
-#define GL_DOUBLE_MAT3                    0x8F47
-#define GL_DOUBLE_MAT4                    0x8F48
-#define GL_DOUBLE_MAT2x3                  0x8F49
-#define GL_DOUBLE_MAT2x4                  0x8F4A
-#define GL_DOUBLE_MAT3x2                  0x8F4B
-#define GL_DOUBLE_MAT3x4                  0x8F4C
-#define GL_DOUBLE_MAT4x2                  0x8F4D
-#define GL_DOUBLE_MAT4x3                  0x8F4E
-#endif
-
-#ifndef GL_ARB_shader_subroutine
-#define GL_ACTIVE_SUBROUTINES             0x8DE5
-#define GL_ACTIVE_SUBROUTINE_UNIFORMS     0x8DE6
-#define GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8E47
-#define GL_ACTIVE_SUBROUTINE_MAX_LENGTH   0x8E48
-#define GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8E49
-#define GL_MAX_SUBROUTINES                0x8DE7
-#define GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8DE8
-#define GL_NUM_COMPATIBLE_SUBROUTINES     0x8E4A
-#define GL_COMPATIBLE_SUBROUTINES         0x8E4B
-/* reuse GL_UNIFORM_SIZE */
-/* reuse GL_UNIFORM_NAME_LENGTH */
-#endif
-
-#ifndef GL_ARB_tessellation_shader
-#define GL_PATCHES                        0x000E
-#define GL_PATCH_VERTICES                 0x8E72
-#define GL_PATCH_DEFAULT_INNER_LEVEL      0x8E73
-#define GL_PATCH_DEFAULT_OUTER_LEVEL      0x8E74
-#define GL_TESS_CONTROL_OUTPUT_VERTICES   0x8E75
-#define GL_TESS_GEN_MODE                  0x8E76
-#define GL_TESS_GEN_SPACING               0x8E77
-#define GL_TESS_GEN_VERTEX_ORDER          0x8E78
-#define GL_TESS_GEN_POINT_MODE            0x8E79
-/* reuse GL_TRIANGLES */
-/* reuse GL_QUADS */
-#define GL_ISOLINES                       0x8E7A
-/* reuse GL_EQUAL */
-#define GL_FRACTIONAL_ODD                 0x8E7B
-#define GL_FRACTIONAL_EVEN                0x8E7C
-/* reuse GL_CCW */
-/* reuse GL_CW */
-#define GL_MAX_PATCH_VERTICES             0x8E7D
-#define GL_MAX_TESS_GEN_LEVEL             0x8E7E
-#define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E7F
-#define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E80
-#define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8E81
-#define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8E82
-#define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS 0x8E83
-#define GL_MAX_TESS_PATCH_COMPONENTS      0x8E84
-#define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS 0x8E85
-#define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS 0x8E86
-#define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS 0x8E89
-#define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS 0x8E8A
-#define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS 0x886C
-#define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS 0x886D
-#define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E1E
-#define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E1F
-#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84F0
-#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84F1
-#define GL_TESS_EVALUATION_SHADER         0x8E87
-#define GL_TESS_CONTROL_SHADER            0x8E88
-#endif
-
-#ifndef GL_ARB_texture_buffer_object_rgb32
-/* reuse GL_RGB32F */
-/* reuse GL_RGB32UI */
-/* reuse GL_RGB32I */
-#endif
-
-#ifndef GL_ARB_transform_feedback2
-#define GL_TRANSFORM_FEEDBACK             0x8E22
-#define GL_TRANSFORM_FEEDBACK_PAUSED      0x8E23
-#define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED GL_TRANSFORM_FEEDBACK_PAUSED
-#define GL_TRANSFORM_FEEDBACK_ACTIVE      0x8E24
-#define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE GL_TRANSFORM_FEEDBACK_ACTIVE
-#define GL_TRANSFORM_FEEDBACK_BINDING     0x8E25
-#endif
-
-#ifndef GL_ARB_transform_feedback3
-#define GL_MAX_TRANSFORM_FEEDBACK_BUFFERS 0x8E70
-#define GL_MAX_VERTEX_STREAMS             0x8E71
-#endif
-
-#ifndef GL_ARB_ES2_compatibility
-#define GL_FIXED                          0x140C
-#define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
-#define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
-#define GL_LOW_FLOAT                      0x8DF0
-#define GL_MEDIUM_FLOAT                   0x8DF1
-#define GL_HIGH_FLOAT                     0x8DF2
-#define GL_LOW_INT                        0x8DF3
-#define GL_MEDIUM_INT                     0x8DF4
-#define GL_HIGH_INT                       0x8DF5
-#define GL_SHADER_COMPILER                0x8DFA
-#define GL_SHADER_BINARY_FORMATS          0x8DF8
-#define GL_NUM_SHADER_BINARY_FORMATS      0x8DF9
-#define GL_MAX_VERTEX_UNIFORM_VECTORS     0x8DFB
-#define GL_MAX_VARYING_VECTORS            0x8DFC
-#define GL_MAX_FRAGMENT_UNIFORM_VECTORS   0x8DFD
-#define GL_RGB565                         0x8D62
-#endif
-
-#ifndef GL_ARB_get_program_binary
-#define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257
-#define GL_PROGRAM_BINARY_LENGTH          0x8741
-#define GL_NUM_PROGRAM_BINARY_FORMATS     0x87FE
-#define GL_PROGRAM_BINARY_FORMATS         0x87FF
-#endif
-
-#ifndef GL_ARB_separate_shader_objects
-#define GL_VERTEX_SHADER_BIT              0x00000001
-#define GL_FRAGMENT_SHADER_BIT            0x00000002
-#define GL_GEOMETRY_SHADER_BIT            0x00000004
-#define GL_TESS_CONTROL_SHADER_BIT        0x00000008
-#define GL_TESS_EVALUATION_SHADER_BIT     0x00000010
-#define GL_ALL_SHADER_BITS                0xFFFFFFFF
-#define GL_PROGRAM_SEPARABLE              0x8258
-#define GL_ACTIVE_PROGRAM                 0x8259
-#define GL_PROGRAM_PIPELINE_BINDING       0x825A
-#endif
-
-#ifndef GL_ARB_shader_precision
-#endif
-
-#ifndef GL_ARB_vertex_attrib_64bit
-/* reuse GL_RGB32I */
-/* reuse GL_DOUBLE_VEC2 */
-/* reuse GL_DOUBLE_VEC3 */
-/* reuse GL_DOUBLE_VEC4 */
-/* reuse GL_DOUBLE_MAT2 */
-/* reuse GL_DOUBLE_MAT3 */
-/* reuse GL_DOUBLE_MAT4 */
-/* reuse GL_DOUBLE_MAT2x3 */
-/* reuse GL_DOUBLE_MAT2x4 */
-/* reuse GL_DOUBLE_MAT3x2 */
-/* reuse GL_DOUBLE_MAT3x4 */
-/* reuse GL_DOUBLE_MAT4x2 */
-/* reuse GL_DOUBLE_MAT4x3 */
-#endif
-
-#ifndef GL_ARB_viewport_array
-/* reuse GL_SCISSOR_BOX */
-/* reuse GL_VIEWPORT */
-/* reuse GL_DEPTH_RANGE */
-/* reuse GL_SCISSOR_TEST */
-#define GL_MAX_VIEWPORTS                  0x825B
-#define GL_VIEWPORT_SUBPIXEL_BITS         0x825C
-#define GL_VIEWPORT_BOUNDS_RANGE          0x825D
-#define GL_LAYER_PROVOKING_VERTEX         0x825E
-#define GL_VIEWPORT_INDEX_PROVOKING_VERTEX 0x825F
-#define GL_UNDEFINED_VERTEX               0x8260
-/* reuse GL_FIRST_VERTEX_CONVENTION */
-/* reuse GL_LAST_VERTEX_CONVENTION */
-/* reuse GL_PROVOKING_VERTEX */
-#endif
-
-#ifndef GL_ARB_cl_event
-#define GL_SYNC_CL_EVENT_ARB              0x8240
-#define GL_SYNC_CL_EVENT_COMPLETE_ARB     0x8241
-#endif
-
-#ifndef GL_ARB_debug_output
-#define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB   0x8242
-#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243
-#define GL_DEBUG_CALLBACK_FUNCTION_ARB    0x8244
-#define GL_DEBUG_CALLBACK_USER_PARAM_ARB  0x8245
-#define GL_DEBUG_SOURCE_API_ARB           0x8246
-#define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247
-#define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248
-#define GL_DEBUG_SOURCE_THIRD_PARTY_ARB   0x8249
-#define GL_DEBUG_SOURCE_APPLICATION_ARB   0x824A
-#define GL_DEBUG_SOURCE_OTHER_ARB         0x824B
-#define GL_DEBUG_TYPE_ERROR_ARB           0x824C
-#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D
-#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E
-#define GL_DEBUG_TYPE_PORTABILITY_ARB     0x824F
-#define GL_DEBUG_TYPE_PERFORMANCE_ARB     0x8250
-#define GL_DEBUG_TYPE_OTHER_ARB           0x8251
-#define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB   0x9143
-#define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB  0x9144
-#define GL_DEBUG_LOGGED_MESSAGES_ARB      0x9145
-#define GL_DEBUG_SEVERITY_HIGH_ARB        0x9146
-#define GL_DEBUG_SEVERITY_MEDIUM_ARB      0x9147
-#define GL_DEBUG_SEVERITY_LOW_ARB         0x9148
-#endif
-
-#ifndef GL_ARB_robustness
-/* reuse GL_NO_ERROR */
-#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB 0x00000004
-#define GL_LOSE_CONTEXT_ON_RESET_ARB      0x8252
-#define GL_GUILTY_CONTEXT_RESET_ARB       0x8253
-#define GL_INNOCENT_CONTEXT_RESET_ARB     0x8254
-#define GL_UNKNOWN_CONTEXT_RESET_ARB      0x8255
-#define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
-#define GL_NO_RESET_NOTIFICATION_ARB      0x8261
-#endif
-
-#ifndef GL_ARB_shader_stencil_export
-#endif
-
-#ifndef GL_ARB_base_instance
-#endif
-
-#ifndef GL_ARB_shading_language_420pack
-#endif
-
-#ifndef GL_ARB_transform_feedback_instanced
-#endif
-
-#ifndef GL_ARB_compressed_texture_pixel_storage
-#define GL_UNPACK_COMPRESSED_BLOCK_WIDTH  0x9127
-#define GL_UNPACK_COMPRESSED_BLOCK_HEIGHT 0x9128
-#define GL_UNPACK_COMPRESSED_BLOCK_DEPTH  0x9129
-#define GL_UNPACK_COMPRESSED_BLOCK_SIZE   0x912A
-#define GL_PACK_COMPRESSED_BLOCK_WIDTH    0x912B
-#define GL_PACK_COMPRESSED_BLOCK_HEIGHT   0x912C
-#define GL_PACK_COMPRESSED_BLOCK_DEPTH    0x912D
-#define GL_PACK_COMPRESSED_BLOCK_SIZE     0x912E
-#endif
-
-#ifndef GL_ARB_conservative_depth
-#endif
-
-#ifndef GL_ARB_internalformat_query
-#define GL_NUM_SAMPLE_COUNTS              0x9380
-#endif
-
-#ifndef GL_ARB_map_buffer_alignment
-#define GL_MIN_MAP_BUFFER_ALIGNMENT       0x90BC
-#endif
-
-#ifndef GL_ARB_shader_atomic_counters
-#define GL_ATOMIC_COUNTER_BUFFER          0x92C0
-#define GL_ATOMIC_COUNTER_BUFFER_BINDING  0x92C1
-#define GL_ATOMIC_COUNTER_BUFFER_START    0x92C2
-#define GL_ATOMIC_COUNTER_BUFFER_SIZE     0x92C3
-#define GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE 0x92C4
-#define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS 0x92C5
-#define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES 0x92C6
-#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER 0x92C7
-#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER 0x92C8
-#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER 0x92C9
-#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER 0x92CA
-#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER 0x92CB
-#define GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS 0x92CC
-#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS 0x92CD
-#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS 0x92CE
-#define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS 0x92CF
-#define GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS 0x92D0
-#define GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS 0x92D1
-#define GL_MAX_VERTEX_ATOMIC_COUNTERS     0x92D2
-#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS 0x92D3
-#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS 0x92D4
-#define GL_MAX_GEOMETRY_ATOMIC_COUNTERS   0x92D5
-#define GL_MAX_FRAGMENT_ATOMIC_COUNTERS   0x92D6
-#define GL_MAX_COMBINED_ATOMIC_COUNTERS   0x92D7
-#define GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE 0x92D8
-#define GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS 0x92DC
-#define GL_ACTIVE_ATOMIC_COUNTER_BUFFERS  0x92D9
-#define GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX 0x92DA
-#define GL_UNSIGNED_INT_ATOMIC_COUNTER    0x92DB
-#endif
-
-#ifndef GL_ARB_shader_image_load_store
-#define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT 0x00000001
-#define GL_ELEMENT_ARRAY_BARRIER_BIT      0x00000002
-#define GL_UNIFORM_BARRIER_BIT            0x00000004
-#define GL_TEXTURE_FETCH_BARRIER_BIT      0x00000008
-#define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT 0x00000020
-#define GL_COMMAND_BARRIER_BIT            0x00000040
-#define GL_PIXEL_BUFFER_BARRIER_BIT       0x00000080
-#define GL_TEXTURE_UPDATE_BARRIER_BIT     0x00000100
-#define GL_BUFFER_UPDATE_BARRIER_BIT      0x00000200
-#define GL_FRAMEBUFFER_BARRIER_BIT        0x00000400
-#define GL_TRANSFORM_FEEDBACK_BARRIER_BIT 0x00000800
-#define GL_ATOMIC_COUNTER_BARRIER_BIT     0x00001000
-#define GL_ALL_BARRIER_BITS               0xFFFFFFFF
-#define GL_MAX_IMAGE_UNITS                0x8F38
-#define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS 0x8F39
-#define GL_IMAGE_BINDING_NAME             0x8F3A
-#define GL_IMAGE_BINDING_LEVEL            0x8F3B
-#define GL_IMAGE_BINDING_LAYERED          0x8F3C
-#define GL_IMAGE_BINDING_LAYER            0x8F3D
-#define GL_IMAGE_BINDING_ACCESS           0x8F3E
-#define GL_IMAGE_1D                       0x904C
-#define GL_IMAGE_2D                       0x904D
-#define GL_IMAGE_3D                       0x904E
-#define GL_IMAGE_2D_RECT                  0x904F
-#define GL_IMAGE_CUBE                     0x9050
-#define GL_IMAGE_BUFFER                   0x9051
-#define GL_IMAGE_1D_ARRAY                 0x9052
-#define GL_IMAGE_2D_ARRAY                 0x9053
-#define GL_IMAGE_CUBE_MAP_ARRAY           0x9054
-#define GL_IMAGE_2D_MULTISAMPLE           0x9055
-#define GL_IMAGE_2D_MULTISAMPLE_ARRAY     0x9056
-#define GL_INT_IMAGE_1D                   0x9057
-#define GL_INT_IMAGE_2D                   0x9058
-#define GL_INT_IMAGE_3D                   0x9059
-#define GL_INT_IMAGE_2D_RECT              0x905A
-#define GL_INT_IMAGE_CUBE                 0x905B
-#define GL_INT_IMAGE_BUFFER               0x905C
-#define GL_INT_IMAGE_1D_ARRAY             0x905D
-#define GL_INT_IMAGE_2D_ARRAY             0x905E
-#define GL_INT_IMAGE_CUBE_MAP_ARRAY       0x905F
-#define GL_INT_IMAGE_2D_MULTISAMPLE       0x9060
-#define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x9061
-#define GL_UNSIGNED_INT_IMAGE_1D          0x9062
-#define GL_UNSIGNED_INT_IMAGE_2D          0x9063
-#define GL_UNSIGNED_INT_IMAGE_3D          0x9064
-#define GL_UNSIGNED_INT_IMAGE_2D_RECT     0x9065
-#define GL_UNSIGNED_INT_IMAGE_CUBE        0x9066
-#define GL_UNSIGNED_INT_IMAGE_BUFFER      0x9067
-#define GL_UNSIGNED_INT_IMAGE_1D_ARRAY    0x9068
-#define GL_UNSIGNED_INT_IMAGE_2D_ARRAY    0x9069
-#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY 0x906A
-#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE 0x906B
-#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x906C
-#define GL_MAX_IMAGE_SAMPLES              0x906D
-#define GL_IMAGE_BINDING_FORMAT           0x906E
-#define GL_IMAGE_FORMAT_COMPATIBILITY_TYPE 0x90C7
-#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE 0x90C8
-#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS 0x90C9
-#define GL_MAX_VERTEX_IMAGE_UNIFORMS      0x90CA
-#define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS 0x90CB
-#define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS 0x90CC
-#define GL_MAX_GEOMETRY_IMAGE_UNIFORMS    0x90CD
-#define GL_MAX_FRAGMENT_IMAGE_UNIFORMS    0x90CE
-#define GL_MAX_COMBINED_IMAGE_UNIFORMS    0x90CF
-#endif
-
-#ifndef GL_ARB_shading_language_packing
-#endif
-
-#ifndef GL_ARB_texture_storage
-#define GL_TEXTURE_IMMUTABLE_FORMAT       0x912F
-#endif
-
-#ifndef GL_KHR_texture_compression_astc_ldr
-#define GL_COMPRESSED_RGBA_ASTC_4x4_KHR   0x93B0
-#define GL_COMPRESSED_RGBA_ASTC_5x4_KHR   0x93B1
-#define GL_COMPRESSED_RGBA_ASTC_5x5_KHR   0x93B2
-#define GL_COMPRESSED_RGBA_ASTC_6x5_KHR   0x93B3
-#define GL_COMPRESSED_RGBA_ASTC_6x6_KHR   0x93B4
-#define GL_COMPRESSED_RGBA_ASTC_8x5_KHR   0x93B5
-#define GL_COMPRESSED_RGBA_ASTC_8x6_KHR   0x93B6
-#define GL_COMPRESSED_RGBA_ASTC_8x8_KHR   0x93B7
-#define GL_COMPRESSED_RGBA_ASTC_10x5_KHR  0x93B8
-#define GL_COMPRESSED_RGBA_ASTC_10x6_KHR  0x93B9
-#define GL_COMPRESSED_RGBA_ASTC_10x8_KHR  0x93BA
-#define GL_COMPRESSED_RGBA_ASTC_10x10_KHR 0x93BB
-#define GL_COMPRESSED_RGBA_ASTC_12x10_KHR 0x93BC
-#define GL_COMPRESSED_RGBA_ASTC_12x12_KHR 0x93BD
-#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR 0x93D0
-#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR 0x93D1
-#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR 0x93D2
-#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR 0x93D3
-#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR 0x93D4
-#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR 0x93D5
-#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR 0x93D6
-#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR 0x93D7
-#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR 0x93D8
-#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR 0x93D9
-#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR 0x93DA
-#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR 0x93DB
-#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR 0x93DC
-#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR 0x93DD
-#endif
-
-#ifndef GL_KHR_debug
-#define GL_DEBUG_OUTPUT_SYNCHRONOUS       0x8242
-#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH 0x8243
-#define GL_DEBUG_CALLBACK_FUNCTION        0x8244
-#define GL_DEBUG_CALLBACK_USER_PARAM      0x8245
-#define GL_DEBUG_SOURCE_API               0x8246
-#define GL_DEBUG_SOURCE_WINDOW_SYSTEM     0x8247
-#define GL_DEBUG_SOURCE_SHADER_COMPILER   0x8248
-#define GL_DEBUG_SOURCE_THIRD_PARTY       0x8249
-#define GL_DEBUG_SOURCE_APPLICATION       0x824A
-#define GL_DEBUG_SOURCE_OTHER             0x824B
-#define GL_DEBUG_TYPE_ERROR               0x824C
-#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824D
-#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR  0x824E
-#define GL_DEBUG_TYPE_PORTABILITY         0x824F
-#define GL_DEBUG_TYPE_PERFORMANCE         0x8250
-#define GL_DEBUG_TYPE_OTHER               0x8251
-#define GL_DEBUG_TYPE_MARKER              0x8268
-#define GL_DEBUG_TYPE_PUSH_GROUP          0x8269
-#define GL_DEBUG_TYPE_POP_GROUP           0x826A
-#define GL_DEBUG_SEVERITY_NOTIFICATION    0x826B
-#define GL_MAX_DEBUG_GROUP_STACK_DEPTH    0x826C
-#define GL_DEBUG_GROUP_STACK_DEPTH        0x826D
-#define GL_BUFFER                         0x82E0
-#define GL_SHADER                         0x82E1
-#define GL_PROGRAM                        0x82E2
-#define GL_QUERY                          0x82E3
-#define GL_PROGRAM_PIPELINE               0x82E4
-#define GL_SAMPLER                        0x82E6
-#define GL_DISPLAY_LIST                   0x82E7
-/* DISPLAY_LIST used in compatibility profile only */
-#define GL_MAX_LABEL_LENGTH               0x82E8
-#define GL_MAX_DEBUG_MESSAGE_LENGTH       0x9143
-#define GL_MAX_DEBUG_LOGGED_MESSAGES      0x9144
-#define GL_DEBUG_LOGGED_MESSAGES          0x9145
-#define GL_DEBUG_SEVERITY_HIGH            0x9146
-#define GL_DEBUG_SEVERITY_MEDIUM          0x9147
-#define GL_DEBUG_SEVERITY_LOW             0x9148
-#define GL_DEBUG_OUTPUT                   0x92E0
-#define GL_CONTEXT_FLAG_DEBUG_BIT         0x00000002
-/* reuse GL_STACK_UNDERFLOW */
-/* reuse GL_STACK_OVERFLOW */
-#endif
-
-#ifndef GL_ARB_arrays_of_arrays
-#endif
-
-#ifndef GL_ARB_clear_buffer_object
-#endif
-
-#ifndef GL_ARB_compute_shader
-#define GL_COMPUTE_SHADER                 0x91B9
-#define GL_MAX_COMPUTE_UNIFORM_BLOCKS     0x91BB
-#define GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS 0x91BC
-#define GL_MAX_COMPUTE_IMAGE_UNIFORMS     0x91BD
-#define GL_MAX_COMPUTE_SHARED_MEMORY_SIZE 0x8262
-#define GL_MAX_COMPUTE_UNIFORM_COMPONENTS 0x8263
-#define GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS 0x8264
-#define GL_MAX_COMPUTE_ATOMIC_COUNTERS    0x8265
-#define GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS 0x8266
-#define GL_MAX_COMPUTE_LOCAL_INVOCATIONS  0x90EB
-#define GL_MAX_COMPUTE_WORK_GROUP_COUNT   0x91BE
-#define GL_MAX_COMPUTE_WORK_GROUP_SIZE    0x91BF
-#define GL_COMPUTE_LOCAL_WORK_SIZE        0x8267
-#define GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER 0x90EC
-#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER 0x90ED
-#define GL_DISPATCH_INDIRECT_BUFFER       0x90EE
-#define GL_DISPATCH_INDIRECT_BUFFER_BINDING 0x90EF
-#define GL_COMPUTE_SHADER_BIT             0x00000020
-#endif
-
-#ifndef GL_ARB_copy_image
-#endif
-
-#ifndef GL_ARB_texture_view
-#define GL_TEXTURE_VIEW_MIN_LEVEL         0x82DB
-#define GL_TEXTURE_VIEW_NUM_LEVELS        0x82DC
-#define GL_TEXTURE_VIEW_MIN_LAYER         0x82DD
-#define GL_TEXTURE_VIEW_NUM_LAYERS        0x82DE
-#define GL_TEXTURE_IMMUTABLE_LEVELS       0x82DF
-#endif
-
-#ifndef GL_ARB_vertex_attrib_binding
-#define GL_VERTEX_ATTRIB_BINDING          0x82D4
-#define GL_VERTEX_ATTRIB_RELATIVE_OFFSET  0x82D5
-#define GL_VERTEX_BINDING_DIVISOR         0x82D6
-#define GL_VERTEX_BINDING_OFFSET          0x82D7
-#define GL_VERTEX_BINDING_STRIDE          0x82D8
-#define GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D9
-#define GL_MAX_VERTEX_ATTRIB_BINDINGS     0x82DA
-#endif
-
-#ifndef GL_ARB_robustness_isolation
-#endif
-
-#ifndef GL_ARB_ES3_compatibility
-#define GL_COMPRESSED_RGB8_ETC2           0x9274
-#define GL_COMPRESSED_SRGB8_ETC2          0x9275
-#define GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9276
-#define GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9277
-#define GL_COMPRESSED_RGBA8_ETC2_EAC      0x9278
-#define GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC 0x9279
-#define GL_COMPRESSED_R11_EAC             0x9270
-#define GL_COMPRESSED_SIGNED_R11_EAC      0x9271
-#define GL_COMPRESSED_RG11_EAC            0x9272
-#define GL_COMPRESSED_SIGNED_RG11_EAC     0x9273
-#define GL_PRIMITIVE_RESTART_FIXED_INDEX  0x8D69
-#define GL_ANY_SAMPLES_PASSED_CONSERVATIVE 0x8D6A
-#define GL_MAX_ELEMENT_INDEX              0x8D6B
-#endif
-
-#ifndef GL_ARB_explicit_uniform_location
-#define GL_MAX_UNIFORM_LOCATIONS          0x826E
-#endif
-
-#ifndef GL_ARB_fragment_layer_viewport
-#endif
-
-#ifndef GL_ARB_framebuffer_no_attachments
-#define GL_FRAMEBUFFER_DEFAULT_WIDTH      0x9310
-#define GL_FRAMEBUFFER_DEFAULT_HEIGHT     0x9311
-#define GL_FRAMEBUFFER_DEFAULT_LAYERS     0x9312
-#define GL_FRAMEBUFFER_DEFAULT_SAMPLES    0x9313
-#define GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS 0x9314
-#define GL_MAX_FRAMEBUFFER_WIDTH          0x9315
-#define GL_MAX_FRAMEBUFFER_HEIGHT         0x9316
-#define GL_MAX_FRAMEBUFFER_LAYERS         0x9317
-#define GL_MAX_FRAMEBUFFER_SAMPLES        0x9318
-#endif
-
-#ifndef GL_ARB_internalformat_query2
-/* reuse GL_IMAGE_FORMAT_COMPATIBILITY_TYPE */
-/* reuse GL_NUM_SAMPLE_COUNTS */
-/* reuse GL_RENDERBUFFER */
-/* reuse GL_SAMPLES */
-/* reuse GL_TEXTURE_1D */
-/* reuse GL_TEXTURE_1D_ARRAY */
-/* reuse GL_TEXTURE_2D */
-/* reuse GL_TEXTURE_2D_ARRAY */
-/* reuse GL_TEXTURE_3D */
-/* reuse GL_TEXTURE_CUBE_MAP */
-/* reuse GL_TEXTURE_CUBE_MAP_ARRAY */
-/* reuse GL_TEXTURE_RECTANGLE */
-/* reuse GL_TEXTURE_BUFFER */
-/* reuse GL_TEXTURE_2D_MULTISAMPLE */
-/* reuse GL_TEXTURE_2D_MULTISAMPLE_ARRAY */
-/* reuse GL_TEXTURE_COMPRESSED */
-#define GL_INTERNALFORMAT_SUPPORTED       0x826F
-#define GL_INTERNALFORMAT_PREFERRED       0x8270
-#define GL_INTERNALFORMAT_RED_SIZE        0x8271
-#define GL_INTERNALFORMAT_GREEN_SIZE      0x8272
-#define GL_INTERNALFORMAT_BLUE_SIZE       0x8273
-#define GL_INTERNALFORMAT_ALPHA_SIZE      0x8274
-#define GL_INTERNALFORMAT_DEPTH_SIZE      0x8275
-#define GL_INTERNALFORMAT_STENCIL_SIZE    0x8276
-#define GL_INTERNALFORMAT_SHARED_SIZE     0x8277
-#define GL_INTERNALFORMAT_RED_TYPE        0x8278
-#define GL_INTERNALFORMAT_GREEN_TYPE      0x8279
-#define GL_INTERNALFORMAT_BLUE_TYPE       0x827A
-#define GL_INTERNALFORMAT_ALPHA_TYPE      0x827B
-#define GL_INTERNALFORMAT_DEPTH_TYPE      0x827C
-#define GL_INTERNALFORMAT_STENCIL_TYPE    0x827D
-#define GL_MAX_WIDTH                      0x827E
-#define GL_MAX_HEIGHT                     0x827F
-#define GL_MAX_DEPTH                      0x8280
-#define GL_MAX_LAYERS                     0x8281
-#define GL_MAX_COMBINED_DIMENSIONS        0x8282
-#define GL_COLOR_COMPONENTS               0x8283
-#define GL_DEPTH_COMPONENTS               0x8284
-#define GL_STENCIL_COMPONENTS             0x8285
-#define GL_COLOR_RENDERABLE               0x8286
-#define GL_DEPTH_RENDERABLE               0x8287
-#define GL_STENCIL_RENDERABLE             0x8288
-#define GL_FRAMEBUFFER_RENDERABLE         0x8289
-#define GL_FRAMEBUFFER_RENDERABLE_LAYERED 0x828A
-#define GL_FRAMEBUFFER_BLEND              0x828B
-#define GL_READ_PIXELS                    0x828C
-#define GL_READ_PIXELS_FORMAT             0x828D
-#define GL_READ_PIXELS_TYPE               0x828E
-#define GL_TEXTURE_IMAGE_FORMAT           0x828F
-#define GL_TEXTURE_IMAGE_TYPE             0x8290
-#define GL_GET_TEXTURE_IMAGE_FORMAT       0x8291
-#define GL_GET_TEXTURE_IMAGE_TYPE         0x8292
-#define GL_MIPMAP                         0x8293
-#define GL_MANUAL_GENERATE_MIPMAP         0x8294
-#define GL_AUTO_GENERATE_MIPMAP           0x8295
-#define GL_COLOR_ENCODING                 0x8296
-#define GL_SRGB_READ                      0x8297
-#define GL_SRGB_WRITE                     0x8298
-#define GL_SRGB_DECODE_ARB                0x8299
-#define GL_FILTER                         0x829A
-#define GL_VERTEX_TEXTURE                 0x829B
-#define GL_TESS_CONTROL_TEXTURE           0x829C
-#define GL_TESS_EVALUATION_TEXTURE        0x829D
-#define GL_GEOMETRY_TEXTURE               0x829E
-#define GL_FRAGMENT_TEXTURE               0x829F
-#define GL_COMPUTE_TEXTURE                0x82A0
-#define GL_TEXTURE_SHADOW                 0x82A1
-#define GL_TEXTURE_GATHER                 0x82A2
-#define GL_TEXTURE_GATHER_SHADOW          0x82A3
-#define GL_SHADER_IMAGE_LOAD              0x82A4
-#define GL_SHADER_IMAGE_STORE             0x82A5
-#define GL_SHADER_IMAGE_ATOMIC            0x82A6
-#define GL_IMAGE_TEXEL_SIZE               0x82A7
-#define GL_IMAGE_COMPATIBILITY_CLASS      0x82A8
-#define GL_IMAGE_PIXEL_FORMAT             0x82A9
-#define GL_IMAGE_PIXEL_TYPE               0x82AA
-#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST 0x82AC
-#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST 0x82AD
-#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE 0x82AE
-#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE 0x82AF
-#define GL_TEXTURE_COMPRESSED_BLOCK_WIDTH 0x82B1
-#define GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT 0x82B2
-#define GL_TEXTURE_COMPRESSED_BLOCK_SIZE  0x82B3
-#define GL_CLEAR_BUFFER                   0x82B4
-#define GL_TEXTURE_VIEW                   0x82B5
-#define GL_VIEW_COMPATIBILITY_CLASS       0x82B6
-#define GL_FULL_SUPPORT                   0x82B7
-#define GL_CAVEAT_SUPPORT                 0x82B8
-#define GL_IMAGE_CLASS_4_X_32             0x82B9
-#define GL_IMAGE_CLASS_2_X_32             0x82BA
-#define GL_IMAGE_CLASS_1_X_32             0x82BB
-#define GL_IMAGE_CLASS_4_X_16             0x82BC
-#define GL_IMAGE_CLASS_2_X_16             0x82BD
-#define GL_IMAGE_CLASS_1_X_16             0x82BE
-#define GL_IMAGE_CLASS_4_X_8              0x82BF
-#define GL_IMAGE_CLASS_2_X_8              0x82C0
-#define GL_IMAGE_CLASS_1_X_8              0x82C1
-#define GL_IMAGE_CLASS_11_11_10           0x82C2
-#define GL_IMAGE_CLASS_10_10_10_2         0x82C3
-#define GL_VIEW_CLASS_128_BITS            0x82C4
-#define GL_VIEW_CLASS_96_BITS             0x82C5
-#define GL_VIEW_CLASS_64_BITS             0x82C6
-#define GL_VIEW_CLASS_48_BITS             0x82C7
-#define GL_VIEW_CLASS_32_BITS             0x82C8
-#define GL_VIEW_CLASS_24_BITS             0x82C9
-#define GL_VIEW_CLASS_16_BITS             0x82CA
-#define GL_VIEW_CLASS_8_BITS              0x82CB
-#define GL_VIEW_CLASS_S3TC_DXT1_RGB       0x82CC
-#define GL_VIEW_CLASS_S3TC_DXT1_RGBA      0x82CD
-#define GL_VIEW_CLASS_S3TC_DXT3_RGBA      0x82CE
-#define GL_VIEW_CLASS_S3TC_DXT5_RGBA      0x82CF
-#define GL_VIEW_CLASS_RGTC1_RED           0x82D0
-#define GL_VIEW_CLASS_RGTC2_RG            0x82D1
-#define GL_VIEW_CLASS_BPTC_UNORM          0x82D2
-#define GL_VIEW_CLASS_BPTC_FLOAT          0x82D3
-#endif
-
-#ifndef GL_ARB_invalidate_subdata
-#endif
-
-#ifndef GL_ARB_multi_draw_indirect
-#endif
-
-#ifndef GL_ARB_program_interface_query
-#define GL_UNIFORM                        0x92E1
-#define GL_UNIFORM_BLOCK                  0x92E2
-#define GL_PROGRAM_INPUT                  0x92E3
-#define GL_PROGRAM_OUTPUT                 0x92E4
-#define GL_BUFFER_VARIABLE                0x92E5
-#define GL_SHADER_STORAGE_BLOCK           0x92E6
-/* reuse GL_ATOMIC_COUNTER_BUFFER */
-#define GL_VERTEX_SUBROUTINE              0x92E8
-#define GL_TESS_CONTROL_SUBROUTINE        0x92E9
-#define GL_TESS_EVALUATION_SUBROUTINE     0x92EA
-#define GL_GEOMETRY_SUBROUTINE            0x92EB
-#define GL_FRAGMENT_SUBROUTINE            0x92EC
-#define GL_COMPUTE_SUBROUTINE             0x92ED
-#define GL_VERTEX_SUBROUTINE_UNIFORM      0x92EE
-#define GL_TESS_CONTROL_SUBROUTINE_UNIFORM 0x92EF
-#define GL_TESS_EVALUATION_SUBROUTINE_UNIFORM 0x92F0
-#define GL_GEOMETRY_SUBROUTINE_UNIFORM    0x92F1
-#define GL_FRAGMENT_SUBROUTINE_UNIFORM    0x92F2
-#define GL_COMPUTE_SUBROUTINE_UNIFORM     0x92F3
-#define GL_TRANSFORM_FEEDBACK_VARYING     0x92F4
-#define GL_ACTIVE_RESOURCES               0x92F5
-#define GL_MAX_NAME_LENGTH                0x92F6
-#define GL_MAX_NUM_ACTIVE_VARIABLES       0x92F7
-#define GL_MAX_NUM_COMPATIBLE_SUBROUTINES 0x92F8
-#define GL_NAME_LENGTH                    0x92F9
-#define GL_TYPE                           0x92FA
-#define GL_ARRAY_SIZE                     0x92FB
-#define GL_OFFSET                         0x92FC
-#define GL_BLOCK_INDEX                    0x92FD
-#define GL_ARRAY_STRIDE                   0x92FE
-#define GL_MATRIX_STRIDE                  0x92FF
-#define GL_IS_ROW_MAJOR                   0x9300
-#define GL_ATOMIC_COUNTER_BUFFER_INDEX    0x9301
-#define GL_BUFFER_BINDING                 0x9302
-#define GL_BUFFER_DATA_SIZE               0x9303
-#define GL_NUM_ACTIVE_VARIABLES           0x9304
-#define GL_ACTIVE_VARIABLES               0x9305
-#define GL_REFERENCED_BY_VERTEX_SHADER    0x9306
-#define GL_REFERENCED_BY_TESS_CONTROL_SHADER 0x9307
-#define GL_REFERENCED_BY_TESS_EVALUATION_SHADER 0x9308
-#define GL_REFERENCED_BY_GEOMETRY_SHADER  0x9309
-#define GL_REFERENCED_BY_FRAGMENT_SHADER  0x930A
-#define GL_REFERENCED_BY_COMPUTE_SHADER   0x930B
-#define GL_TOP_LEVEL_ARRAY_SIZE           0x930C
-#define GL_TOP_LEVEL_ARRAY_STRIDE         0x930D
-#define GL_LOCATION                       0x930E
-#define GL_LOCATION_INDEX                 0x930F
-#define GL_IS_PER_PATCH                   0x92E7
-/* reuse GL_NUM_COMPATIBLE_SUBROUTINES */
-/* reuse GL_COMPATIBLE_SUBROUTINES */
-#endif
-
-#ifndef GL_ARB_robust_buffer_access_behavior
-#endif
-
-#ifndef GL_ARB_shader_image_size
-#endif
-
-#ifndef GL_ARB_shader_storage_buffer_object
-#define GL_SHADER_STORAGE_BUFFER          0x90D2
-#define GL_SHADER_STORAGE_BUFFER_BINDING  0x90D3
-#define GL_SHADER_STORAGE_BUFFER_START    0x90D4
-#define GL_SHADER_STORAGE_BUFFER_SIZE     0x90D5
-#define GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS 0x90D6
-#define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS 0x90D7
-#define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS 0x90D8
-#define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS 0x90D9
-#define GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS 0x90DA
-#define GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS 0x90DB
-#define GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS 0x90DC
-#define GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS 0x90DD
-#define GL_MAX_SHADER_STORAGE_BLOCK_SIZE  0x90DE
-#define GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT 0x90DF
-#define GL_SHADER_STORAGE_BARRIER_BIT     0x2000
-#define GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS
-/* reuse GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS */
-#endif
-
-#ifndef GL_ARB_stencil_texturing
-#define GL_DEPTH_STENCIL_TEXTURE_MODE     0x90EA
-#endif
-
-#ifndef GL_ARB_texture_buffer_range
-#define GL_TEXTURE_BUFFER_OFFSET          0x919D
-#define GL_TEXTURE_BUFFER_SIZE            0x919E
-#define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT 0x919F
-#endif
-
-#ifndef GL_ARB_texture_query_levels
-#endif
-
-#ifndef GL_ARB_texture_storage_multisample
-#endif
-
-#ifndef GL_EXT_abgr
-#define GL_ABGR_EXT                       0x8000
-#endif
-
-#ifndef GL_EXT_blend_color
-#define GL_CONSTANT_COLOR_EXT             0x8001
-#define GL_ONE_MINUS_CONSTANT_COLOR_EXT   0x8002
-#define GL_CONSTANT_ALPHA_EXT             0x8003
-#define GL_ONE_MINUS_CONSTANT_ALPHA_EXT   0x8004
-#define GL_BLEND_COLOR_EXT                0x8005
-#endif
-
-#ifndef GL_EXT_polygon_offset
-#define GL_POLYGON_OFFSET_EXT             0x8037
-#define GL_POLYGON_OFFSET_FACTOR_EXT      0x8038
-#define GL_POLYGON_OFFSET_BIAS_EXT        0x8039
-#endif
-
-#ifndef GL_EXT_texture
-#define GL_ALPHA4_EXT                     0x803B
-#define GL_ALPHA8_EXT                     0x803C
-#define GL_ALPHA12_EXT                    0x803D
-#define GL_ALPHA16_EXT                    0x803E
-#define GL_LUMINANCE4_EXT                 0x803F
-#define GL_LUMINANCE8_EXT                 0x8040
-#define GL_LUMINANCE12_EXT                0x8041
-#define GL_LUMINANCE16_EXT                0x8042
-#define GL_LUMINANCE4_ALPHA4_EXT          0x8043
-#define GL_LUMINANCE6_ALPHA2_EXT          0x8044
-#define GL_LUMINANCE8_ALPHA8_EXT          0x8045
-#define GL_LUMINANCE12_ALPHA4_EXT         0x8046
-#define GL_LUMINANCE12_ALPHA12_EXT        0x8047
-#define GL_LUMINANCE16_ALPHA16_EXT        0x8048
-#define GL_INTENSITY_EXT                  0x8049
-#define GL_INTENSITY4_EXT                 0x804A
-#define GL_INTENSITY8_EXT                 0x804B
-#define GL_INTENSITY12_EXT                0x804C
-#define GL_INTENSITY16_EXT                0x804D
-#define GL_RGB2_EXT                       0x804E
-#define GL_RGB4_EXT                       0x804F
-#define GL_RGB5_EXT                       0x8050
-#define GL_RGB8_EXT                       0x8051
-#define GL_RGB10_EXT                      0x8052
-#define GL_RGB12_EXT                      0x8053
-#define GL_RGB16_EXT                      0x8054
-#define GL_RGBA2_EXT                      0x8055
-#define GL_RGBA4_EXT                      0x8056
-#define GL_RGB5_A1_EXT                    0x8057
-#define GL_RGBA8_EXT                      0x8058
-#define GL_RGB10_A2_EXT                   0x8059
-#define GL_RGBA12_EXT                     0x805A
-#define GL_RGBA16_EXT                     0x805B
-#define GL_TEXTURE_RED_SIZE_EXT           0x805C
-#define GL_TEXTURE_GREEN_SIZE_EXT         0x805D
-#define GL_TEXTURE_BLUE_SIZE_EXT          0x805E
-#define GL_TEXTURE_ALPHA_SIZE_EXT         0x805F
-#define GL_TEXTURE_LUMINANCE_SIZE_EXT     0x8060
-#define GL_TEXTURE_INTENSITY_SIZE_EXT     0x8061
-#define GL_REPLACE_EXT                    0x8062
-#define GL_PROXY_TEXTURE_1D_EXT           0x8063
-#define GL_PROXY_TEXTURE_2D_EXT           0x8064
-#define GL_TEXTURE_TOO_LARGE_EXT          0x8065
-#endif
-
-#ifndef GL_EXT_texture3D
-#define GL_PACK_SKIP_IMAGES_EXT           0x806B
-#define GL_PACK_IMAGE_HEIGHT_EXT          0x806C
-#define GL_UNPACK_SKIP_IMAGES_EXT         0x806D
-#define GL_UNPACK_IMAGE_HEIGHT_EXT        0x806E
-#define GL_TEXTURE_3D_EXT                 0x806F
-#define GL_PROXY_TEXTURE_3D_EXT           0x8070
-#define GL_TEXTURE_DEPTH_EXT              0x8071
-#define GL_TEXTURE_WRAP_R_EXT             0x8072
-#define GL_MAX_3D_TEXTURE_SIZE_EXT        0x8073
-#endif
-
-#ifndef GL_SGIS_texture_filter4
-#define GL_FILTER4_SGIS                   0x8146
-#define GL_TEXTURE_FILTER4_SIZE_SGIS      0x8147
-#endif
-
-#ifndef GL_EXT_subtexture
-#endif
-
-#ifndef GL_EXT_copy_texture
-#endif
-
-#ifndef GL_EXT_histogram
-#define GL_HISTOGRAM_EXT                  0x8024
-#define GL_PROXY_HISTOGRAM_EXT            0x8025
-#define GL_HISTOGRAM_WIDTH_EXT            0x8026
-#define GL_HISTOGRAM_FORMAT_EXT           0x8027
-#define GL_HISTOGRAM_RED_SIZE_EXT         0x8028
-#define GL_HISTOGRAM_GREEN_SIZE_EXT       0x8029
-#define GL_HISTOGRAM_BLUE_SIZE_EXT        0x802A
-#define GL_HISTOGRAM_ALPHA_SIZE_EXT       0x802B
-#define GL_HISTOGRAM_LUMINANCE_SIZE_EXT   0x802C
-#define GL_HISTOGRAM_SINK_EXT             0x802D
-#define GL_MINMAX_EXT                     0x802E
-#define GL_MINMAX_FORMAT_EXT              0x802F
-#define GL_MINMAX_SINK_EXT                0x8030
-#define GL_TABLE_TOO_LARGE_EXT            0x8031
-#endif
-
-#ifndef GL_EXT_convolution
-#define GL_CONVOLUTION_1D_EXT             0x8010
-#define GL_CONVOLUTION_2D_EXT             0x8011
-#define GL_SEPARABLE_2D_EXT               0x8012
-#define GL_CONVOLUTION_BORDER_MODE_EXT    0x8013
-#define GL_CONVOLUTION_FILTER_SCALE_EXT   0x8014
-#define GL_CONVOLUTION_FILTER_BIAS_EXT    0x8015
-#define GL_REDUCE_EXT                     0x8016
-#define GL_CONVOLUTION_FORMAT_EXT         0x8017
-#define GL_CONVOLUTION_WIDTH_EXT          0x8018
-#define GL_CONVOLUTION_HEIGHT_EXT         0x8019
-#define GL_MAX_CONVOLUTION_WIDTH_EXT      0x801A
-#define GL_MAX_CONVOLUTION_HEIGHT_EXT     0x801B
-#define GL_POST_CONVOLUTION_RED_SCALE_EXT 0x801C
-#define GL_POST_CONVOLUTION_GREEN_SCALE_EXT 0x801D
-#define GL_POST_CONVOLUTION_BLUE_SCALE_EXT 0x801E
-#define GL_POST_CONVOLUTION_ALPHA_SCALE_EXT 0x801F
-#define GL_POST_CONVOLUTION_RED_BIAS_EXT  0x8020
-#define GL_POST_CONVOLUTION_GREEN_BIAS_EXT 0x8021
-#define GL_POST_CONVOLUTION_BLUE_BIAS_EXT 0x8022
-#define GL_POST_CONVOLUTION_ALPHA_BIAS_EXT 0x8023
-#endif
-
-#ifndef GL_SGI_color_matrix
-#define GL_COLOR_MATRIX_SGI               0x80B1
-#define GL_COLOR_MATRIX_STACK_DEPTH_SGI   0x80B2
-#define GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B3
-#define GL_POST_COLOR_MATRIX_RED_SCALE_SGI 0x80B4
-#define GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI 0x80B5
-#define GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI 0x80B6
-#define GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI 0x80B7
-#define GL_POST_COLOR_MATRIX_RED_BIAS_SGI 0x80B8
-#define GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI 0x80B9
-#define GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI 0x80BA
-#define GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI 0x80BB
-#endif
-
-#ifndef GL_SGI_color_table
-#define GL_COLOR_TABLE_SGI                0x80D0
-#define GL_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D1
-#define GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D2
-#define GL_PROXY_COLOR_TABLE_SGI          0x80D3
-#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D4
-#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D5
-#define GL_COLOR_TABLE_SCALE_SGI          0x80D6
-#define GL_COLOR_TABLE_BIAS_SGI           0x80D7
-#define GL_COLOR_TABLE_FORMAT_SGI         0x80D8
-#define GL_COLOR_TABLE_WIDTH_SGI          0x80D9
-#define GL_COLOR_TABLE_RED_SIZE_SGI       0x80DA
-#define GL_COLOR_TABLE_GREEN_SIZE_SGI     0x80DB
-#define GL_COLOR_TABLE_BLUE_SIZE_SGI      0x80DC
-#define GL_COLOR_TABLE_ALPHA_SIZE_SGI     0x80DD
-#define GL_COLOR_TABLE_LUMINANCE_SIZE_SGI 0x80DE
-#define GL_COLOR_TABLE_INTENSITY_SIZE_SGI 0x80DF
-#endif
-
-#ifndef GL_SGIS_pixel_texture
-#define GL_PIXEL_TEXTURE_SGIS             0x8353
-#define GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS 0x8354
-#define GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS 0x8355
-#define GL_PIXEL_GROUP_COLOR_SGIS         0x8356
-#endif
-
-#ifndef GL_SGIX_pixel_texture
-#define GL_PIXEL_TEX_GEN_SGIX             0x8139
-#define GL_PIXEL_TEX_GEN_MODE_SGIX        0x832B
-#endif
-
-#ifndef GL_SGIS_texture4D
-#define GL_PACK_SKIP_VOLUMES_SGIS         0x8130
-#define GL_PACK_IMAGE_DEPTH_SGIS          0x8131
-#define GL_UNPACK_SKIP_VOLUMES_SGIS       0x8132
-#define GL_UNPACK_IMAGE_DEPTH_SGIS        0x8133
-#define GL_TEXTURE_4D_SGIS                0x8134
-#define GL_PROXY_TEXTURE_4D_SGIS          0x8135
-#define GL_TEXTURE_4DSIZE_SGIS            0x8136
-#define GL_TEXTURE_WRAP_Q_SGIS            0x8137
-#define GL_MAX_4D_TEXTURE_SIZE_SGIS       0x8138
-#define GL_TEXTURE_4D_BINDING_SGIS        0x814F
-#endif
-
-#ifndef GL_SGI_texture_color_table
-#define GL_TEXTURE_COLOR_TABLE_SGI        0x80BC
-#define GL_PROXY_TEXTURE_COLOR_TABLE_SGI  0x80BD
-#endif
-
-#ifndef GL_EXT_cmyka
-#define GL_CMYK_EXT                       0x800C
-#define GL_CMYKA_EXT                      0x800D
-#define GL_PACK_CMYK_HINT_EXT             0x800E
-#define GL_UNPACK_CMYK_HINT_EXT           0x800F
-#endif
-
-#ifndef GL_EXT_texture_object
-#define GL_TEXTURE_PRIORITY_EXT           0x8066
-#define GL_TEXTURE_RESIDENT_EXT           0x8067
-#define GL_TEXTURE_1D_BINDING_EXT         0x8068
-#define GL_TEXTURE_2D_BINDING_EXT         0x8069
-#define GL_TEXTURE_3D_BINDING_EXT         0x806A
-#endif
-
-#ifndef GL_SGIS_detail_texture
-#define GL_DETAIL_TEXTURE_2D_SGIS         0x8095
-#define GL_DETAIL_TEXTURE_2D_BINDING_SGIS 0x8096
-#define GL_LINEAR_DETAIL_SGIS             0x8097
-#define GL_LINEAR_DETAIL_ALPHA_SGIS       0x8098
-#define GL_LINEAR_DETAIL_COLOR_SGIS       0x8099
-#define GL_DETAIL_TEXTURE_LEVEL_SGIS      0x809A
-#define GL_DETAIL_TEXTURE_MODE_SGIS       0x809B
-#define GL_DETAIL_TEXTURE_FUNC_POINTS_SGIS 0x809C
-#endif
-
-#ifndef GL_SGIS_sharpen_texture
-#define GL_LINEAR_SHARPEN_SGIS            0x80AD
-#define GL_LINEAR_SHARPEN_ALPHA_SGIS      0x80AE
-#define GL_LINEAR_SHARPEN_COLOR_SGIS      0x80AF
-#define GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS 0x80B0
-#endif
-
-#ifndef GL_EXT_packed_pixels
-#define GL_UNSIGNED_BYTE_3_3_2_EXT        0x8032
-#define GL_UNSIGNED_SHORT_4_4_4_4_EXT     0x8033
-#define GL_UNSIGNED_SHORT_5_5_5_1_EXT     0x8034
-#define GL_UNSIGNED_INT_8_8_8_8_EXT       0x8035
-#define GL_UNSIGNED_INT_10_10_10_2_EXT    0x8036
-#endif
-
-#ifndef GL_SGIS_texture_lod
-#define GL_TEXTURE_MIN_LOD_SGIS           0x813A
-#define GL_TEXTURE_MAX_LOD_SGIS           0x813B
-#define GL_TEXTURE_BASE_LEVEL_SGIS        0x813C
-#define GL_TEXTURE_MAX_LEVEL_SGIS         0x813D
-#endif
-
-#ifndef GL_SGIS_multisample
-#define GL_MULTISAMPLE_SGIS               0x809D
-#define GL_SAMPLE_ALPHA_TO_MASK_SGIS      0x809E
-#define GL_SAMPLE_ALPHA_TO_ONE_SGIS       0x809F
-#define GL_SAMPLE_MASK_SGIS               0x80A0
-#define GL_1PASS_SGIS                     0x80A1
-#define GL_2PASS_0_SGIS                   0x80A2
-#define GL_2PASS_1_SGIS                   0x80A3
-#define GL_4PASS_0_SGIS                   0x80A4
-#define GL_4PASS_1_SGIS                   0x80A5
-#define GL_4PASS_2_SGIS                   0x80A6
-#define GL_4PASS_3_SGIS                   0x80A7
-#define GL_SAMPLE_BUFFERS_SGIS            0x80A8
-#define GL_SAMPLES_SGIS                   0x80A9
-#define GL_SAMPLE_MASK_VALUE_SGIS         0x80AA
-#define GL_SAMPLE_MASK_INVERT_SGIS        0x80AB
-#define GL_SAMPLE_PATTERN_SGIS            0x80AC
-#endif
-
-#ifndef GL_EXT_rescale_normal
-#define GL_RESCALE_NORMAL_EXT             0x803A
-#endif
-
-#ifndef GL_EXT_vertex_array
-#define GL_VERTEX_ARRAY_EXT               0x8074
-#define GL_NORMAL_ARRAY_EXT               0x8075
-#define GL_COLOR_ARRAY_EXT                0x8076
-#define GL_INDEX_ARRAY_EXT                0x8077
-#define GL_TEXTURE_COORD_ARRAY_EXT        0x8078
-#define GL_EDGE_FLAG_ARRAY_EXT            0x8079
-#define GL_VERTEX_ARRAY_SIZE_EXT          0x807A
-#define GL_VERTEX_ARRAY_TYPE_EXT          0x807B
-#define GL_VERTEX_ARRAY_STRIDE_EXT        0x807C
-#define GL_VERTEX_ARRAY_COUNT_EXT         0x807D
-#define GL_NORMAL_ARRAY_TYPE_EXT          0x807E
-#define GL_NORMAL_ARRAY_STRIDE_EXT        0x807F
-#define GL_NORMAL_ARRAY_COUNT_EXT         0x8080
-#define GL_COLOR_ARRAY_SIZE_EXT           0x8081
-#define GL_COLOR_ARRAY_TYPE_EXT           0x8082
-#define GL_COLOR_ARRAY_STRIDE_EXT         0x8083
-#define GL_COLOR_ARRAY_COUNT_EXT          0x8084
-#define GL_INDEX_ARRAY_TYPE_EXT           0x8085
-#define GL_INDEX_ARRAY_STRIDE_EXT         0x8086
-#define GL_INDEX_ARRAY_COUNT_EXT          0x8087
-#define GL_TEXTURE_COORD_ARRAY_SIZE_EXT   0x8088
-#define GL_TEXTURE_COORD_ARRAY_TYPE_EXT   0x8089
-#define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A
-#define GL_TEXTURE_COORD_ARRAY_COUNT_EXT  0x808B
-#define GL_EDGE_FLAG_ARRAY_STRIDE_EXT     0x808C
-#define GL_EDGE_FLAG_ARRAY_COUNT_EXT      0x808D
-#define GL_VERTEX_ARRAY_POINTER_EXT       0x808E
-#define GL_NORMAL_ARRAY_POINTER_EXT       0x808F
-#define GL_COLOR_ARRAY_POINTER_EXT        0x8090
-#define GL_INDEX_ARRAY_POINTER_EXT        0x8091
-#define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092
-#define GL_EDGE_FLAG_ARRAY_POINTER_EXT    0x8093
-#endif
-
-#ifndef GL_EXT_misc_attribute
-#endif
-
-#ifndef GL_SGIS_generate_mipmap
-#define GL_GENERATE_MIPMAP_SGIS           0x8191
-#define GL_GENERATE_MIPMAP_HINT_SGIS      0x8192
-#endif
-
-#ifndef GL_SGIX_clipmap
-#define GL_LINEAR_CLIPMAP_LINEAR_SGIX     0x8170
-#define GL_TEXTURE_CLIPMAP_CENTER_SGIX    0x8171
-#define GL_TEXTURE_CLIPMAP_FRAME_SGIX     0x8172
-#define GL_TEXTURE_CLIPMAP_OFFSET_SGIX    0x8173
-#define GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8174
-#define GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX 0x8175
-#define GL_TEXTURE_CLIPMAP_DEPTH_SGIX     0x8176
-#define GL_MAX_CLIPMAP_DEPTH_SGIX         0x8177
-#define GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8178
-#define GL_NEAREST_CLIPMAP_NEAREST_SGIX   0x844D
-#define GL_NEAREST_CLIPMAP_LINEAR_SGIX    0x844E
-#define GL_LINEAR_CLIPMAP_NEAREST_SGIX    0x844F
-#endif
-
-#ifndef GL_SGIX_shadow
-#define GL_TEXTURE_COMPARE_SGIX           0x819A
-#define GL_TEXTURE_COMPARE_OPERATOR_SGIX  0x819B
-#define GL_TEXTURE_LEQUAL_R_SGIX          0x819C
-#define GL_TEXTURE_GEQUAL_R_SGIX          0x819D
-#endif
-
-#ifndef GL_SGIS_texture_edge_clamp
-#define GL_CLAMP_TO_EDGE_SGIS             0x812F
-#endif
-
-#ifndef GL_SGIS_texture_border_clamp
-#define GL_CLAMP_TO_BORDER_SGIS           0x812D
-#endif
-
-#ifndef GL_EXT_blend_minmax
-#define GL_FUNC_ADD_EXT                   0x8006
-#define GL_MIN_EXT                        0x8007
-#define GL_MAX_EXT                        0x8008
-#define GL_BLEND_EQUATION_EXT             0x8009
-#endif
-
-#ifndef GL_EXT_blend_subtract
-#define GL_FUNC_SUBTRACT_EXT              0x800A
-#define GL_FUNC_REVERSE_SUBTRACT_EXT      0x800B
-#endif
-
-#ifndef GL_EXT_blend_logic_op
-#endif
-
-#ifndef GL_SGIX_interlace
-#define GL_INTERLACE_SGIX                 0x8094
-#endif
-
-#ifndef GL_SGIX_pixel_tiles
-#define GL_PIXEL_TILE_BEST_ALIGNMENT_SGIX 0x813E
-#define GL_PIXEL_TILE_CACHE_INCREMENT_SGIX 0x813F
-#define GL_PIXEL_TILE_WIDTH_SGIX          0x8140
-#define GL_PIXEL_TILE_HEIGHT_SGIX         0x8141
-#define GL_PIXEL_TILE_GRID_WIDTH_SGIX     0x8142
-#define GL_PIXEL_TILE_GRID_HEIGHT_SGIX    0x8143
-#define GL_PIXEL_TILE_GRID_DEPTH_SGIX     0x8144
-#define GL_PIXEL_TILE_CACHE_SIZE_SGIX     0x8145
-#endif
-
-#ifndef GL_SGIS_texture_select
-#define GL_DUAL_ALPHA4_SGIS               0x8110
-#define GL_DUAL_ALPHA8_SGIS               0x8111
-#define GL_DUAL_ALPHA12_SGIS              0x8112
-#define GL_DUAL_ALPHA16_SGIS              0x8113
-#define GL_DUAL_LUMINANCE4_SGIS           0x8114
-#define GL_DUAL_LUMINANCE8_SGIS           0x8115
-#define GL_DUAL_LUMINANCE12_SGIS          0x8116
-#define GL_DUAL_LUMINANCE16_SGIS          0x8117
-#define GL_DUAL_INTENSITY4_SGIS           0x8118
-#define GL_DUAL_INTENSITY8_SGIS           0x8119
-#define GL_DUAL_INTENSITY12_SGIS          0x811A
-#define GL_DUAL_INTENSITY16_SGIS          0x811B
-#define GL_DUAL_LUMINANCE_ALPHA4_SGIS     0x811C
-#define GL_DUAL_LUMINANCE_ALPHA8_SGIS     0x811D
-#define GL_QUAD_ALPHA4_SGIS               0x811E
-#define GL_QUAD_ALPHA8_SGIS               0x811F
-#define GL_QUAD_LUMINANCE4_SGIS           0x8120
-#define GL_QUAD_LUMINANCE8_SGIS           0x8121
-#define GL_QUAD_INTENSITY4_SGIS           0x8122
-#define GL_QUAD_INTENSITY8_SGIS           0x8123
-#define GL_DUAL_TEXTURE_SELECT_SGIS       0x8124
-#define GL_QUAD_TEXTURE_SELECT_SGIS       0x8125
-#endif
-
-#ifndef GL_SGIX_sprite
-#define GL_SPRITE_SGIX                    0x8148
-#define GL_SPRITE_MODE_SGIX               0x8149
-#define GL_SPRITE_AXIS_SGIX               0x814A
-#define GL_SPRITE_TRANSLATION_SGIX        0x814B
-#define GL_SPRITE_AXIAL_SGIX              0x814C
-#define GL_SPRITE_OBJECT_ALIGNED_SGIX     0x814D
-#define GL_SPRITE_EYE_ALIGNED_SGIX        0x814E
-#endif
-
-#ifndef GL_SGIX_texture_multi_buffer
-#define GL_TEXTURE_MULTI_BUFFER_HINT_SGIX 0x812E
-#endif
-
-#ifndef GL_EXT_point_parameters
-#define GL_POINT_SIZE_MIN_EXT             0x8126
-#define GL_POINT_SIZE_MAX_EXT             0x8127
-#define GL_POINT_FADE_THRESHOLD_SIZE_EXT  0x8128
-#define GL_DISTANCE_ATTENUATION_EXT       0x8129
-#endif
-
-#ifndef GL_SGIS_point_parameters
-#define GL_POINT_SIZE_MIN_SGIS            0x8126
-#define GL_POINT_SIZE_MAX_SGIS            0x8127
-#define GL_POINT_FADE_THRESHOLD_SIZE_SGIS 0x8128
-#define GL_DISTANCE_ATTENUATION_SGIS      0x8129
-#endif
-
-#ifndef GL_SGIX_instruments
-#define GL_INSTRUMENT_BUFFER_POINTER_SGIX 0x8180
-#define GL_INSTRUMENT_MEASUREMENTS_SGIX   0x8181
-#endif
-
-#ifndef GL_SGIX_texture_scale_bias
-#define GL_POST_TEXTURE_FILTER_BIAS_SGIX  0x8179
-#define GL_POST_TEXTURE_FILTER_SCALE_SGIX 0x817A
-#define GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX 0x817B
-#define GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX 0x817C
-#endif
-
-#ifndef GL_SGIX_framezoom
-#define GL_FRAMEZOOM_SGIX                 0x818B
-#define GL_FRAMEZOOM_FACTOR_SGIX          0x818C
-#define GL_MAX_FRAMEZOOM_FACTOR_SGIX      0x818D
-#endif
-
-#ifndef GL_SGIX_tag_sample_buffer
-#endif
-
-#ifndef GL_FfdMaskSGIX
-#define GL_TEXTURE_DEFORMATION_BIT_SGIX   0x00000001
-#define GL_GEOMETRY_DEFORMATION_BIT_SGIX  0x00000002
-#endif
-
-#ifndef GL_SGIX_polynomial_ffd
-#define GL_GEOMETRY_DEFORMATION_SGIX      0x8194
-#define GL_TEXTURE_DEFORMATION_SGIX       0x8195
-#define GL_DEFORMATIONS_MASK_SGIX         0x8196
-#define GL_MAX_DEFORMATION_ORDER_SGIX     0x8197
-#endif
-
-#ifndef GL_SGIX_reference_plane
-#define GL_REFERENCE_PLANE_SGIX           0x817D
-#define GL_REFERENCE_PLANE_EQUATION_SGIX  0x817E
-#endif
-
-#ifndef GL_SGIX_flush_raster
-#endif
-
-#ifndef GL_SGIX_depth_texture
-#define GL_DEPTH_COMPONENT16_SGIX         0x81A5
-#define GL_DEPTH_COMPONENT24_SGIX         0x81A6
-#define GL_DEPTH_COMPONENT32_SGIX         0x81A7
-#endif
-
-#ifndef GL_SGIS_fog_function
-#define GL_FOG_FUNC_SGIS                  0x812A
-#define GL_FOG_FUNC_POINTS_SGIS           0x812B
-#define GL_MAX_FOG_FUNC_POINTS_SGIS       0x812C
-#endif
-
-#ifndef GL_SGIX_fog_offset
-#define GL_FOG_OFFSET_SGIX                0x8198
-#define GL_FOG_OFFSET_VALUE_SGIX          0x8199
-#endif
-
-#ifndef GL_HP_image_transform
-#define GL_IMAGE_SCALE_X_HP               0x8155
-#define GL_IMAGE_SCALE_Y_HP               0x8156
-#define GL_IMAGE_TRANSLATE_X_HP           0x8157
-#define GL_IMAGE_TRANSLATE_Y_HP           0x8158
-#define GL_IMAGE_ROTATE_ANGLE_HP          0x8159
-#define GL_IMAGE_ROTATE_ORIGIN_X_HP       0x815A
-#define GL_IMAGE_ROTATE_ORIGIN_Y_HP       0x815B
-#define GL_IMAGE_MAG_FILTER_HP            0x815C
-#define GL_IMAGE_MIN_FILTER_HP            0x815D
-#define GL_IMAGE_CUBIC_WEIGHT_HP          0x815E
-#define GL_CUBIC_HP                       0x815F
-#define GL_AVERAGE_HP                     0x8160
-#define GL_IMAGE_TRANSFORM_2D_HP          0x8161
-#define GL_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP 0x8162
-#define GL_PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP 0x8163
-#endif
-
-#ifndef GL_HP_convolution_border_modes
-#define GL_IGNORE_BORDER_HP               0x8150
-#define GL_CONSTANT_BORDER_HP             0x8151
-#define GL_REPLICATE_BORDER_HP            0x8153
-#define GL_CONVOLUTION_BORDER_COLOR_HP    0x8154
-#endif
-
-#ifndef GL_INGR_palette_buffer
-#endif
-
-#ifndef GL_SGIX_texture_add_env
-#define GL_TEXTURE_ENV_BIAS_SGIX          0x80BE
-#endif
-
-#ifndef GL_EXT_color_subtable
-#endif
-
-#ifndef GL_PGI_vertex_hints
-#define GL_VERTEX_DATA_HINT_PGI           0x1A22A
-#define GL_VERTEX_CONSISTENT_HINT_PGI     0x1A22B
-#define GL_MATERIAL_SIDE_HINT_PGI         0x1A22C
-#define GL_MAX_VERTEX_HINT_PGI            0x1A22D
-#define GL_COLOR3_BIT_PGI                 0x00010000
-#define GL_COLOR4_BIT_PGI                 0x00020000
-#define GL_EDGEFLAG_BIT_PGI               0x00040000
-#define GL_INDEX_BIT_PGI                  0x00080000
-#define GL_MAT_AMBIENT_BIT_PGI            0x00100000
-#define GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI 0x00200000
-#define GL_MAT_DIFFUSE_BIT_PGI            0x00400000
-#define GL_MAT_EMISSION_BIT_PGI           0x00800000
-#define GL_MAT_COLOR_INDEXES_BIT_PGI      0x01000000
-#define GL_MAT_SHININESS_BIT_PGI          0x02000000
-#define GL_MAT_SPECULAR_BIT_PGI           0x04000000
-#define GL_NORMAL_BIT_PGI                 0x08000000
-#define GL_TEXCOORD1_BIT_PGI              0x10000000
-#define GL_TEXCOORD2_BIT_PGI              0x20000000
-#define GL_TEXCOORD3_BIT_PGI              0x40000000
-#define GL_TEXCOORD4_BIT_PGI              0x80000000
-#define GL_VERTEX23_BIT_PGI               0x00000004
-#define GL_VERTEX4_BIT_PGI                0x00000008
-#endif
-
-#ifndef GL_PGI_misc_hints
-#define GL_PREFER_DOUBLEBUFFER_HINT_PGI   0x1A1F8
-#define GL_CONSERVE_MEMORY_HINT_PGI       0x1A1FD
-#define GL_RECLAIM_MEMORY_HINT_PGI        0x1A1FE
-#define GL_NATIVE_GRAPHICS_HANDLE_PGI     0x1A202
-#define GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI 0x1A203
-#define GL_NATIVE_GRAPHICS_END_HINT_PGI   0x1A204
-#define GL_ALWAYS_FAST_HINT_PGI           0x1A20C
-#define GL_ALWAYS_SOFT_HINT_PGI           0x1A20D
-#define GL_ALLOW_DRAW_OBJ_HINT_PGI        0x1A20E
-#define GL_ALLOW_DRAW_WIN_HINT_PGI        0x1A20F
-#define GL_ALLOW_DRAW_FRG_HINT_PGI        0x1A210
-#define GL_ALLOW_DRAW_MEM_HINT_PGI        0x1A211
-#define GL_STRICT_DEPTHFUNC_HINT_PGI      0x1A216
-#define GL_STRICT_LIGHTING_HINT_PGI       0x1A217
-#define GL_STRICT_SCISSOR_HINT_PGI        0x1A218
-#define GL_FULL_STIPPLE_HINT_PGI          0x1A219
-#define GL_CLIP_NEAR_HINT_PGI             0x1A220
-#define GL_CLIP_FAR_HINT_PGI              0x1A221
-#define GL_WIDE_LINE_HINT_PGI             0x1A222
-#define GL_BACK_NORMALS_HINT_PGI          0x1A223
-#endif
-
-#ifndef GL_EXT_paletted_texture
-#define GL_COLOR_INDEX1_EXT               0x80E2
-#define GL_COLOR_INDEX2_EXT               0x80E3
-#define GL_COLOR_INDEX4_EXT               0x80E4
-#define GL_COLOR_INDEX8_EXT               0x80E5
-#define GL_COLOR_INDEX12_EXT              0x80E6
-#define GL_COLOR_INDEX16_EXT              0x80E7
-#define GL_TEXTURE_INDEX_SIZE_EXT         0x80ED
-#endif
-
-#ifndef GL_EXT_clip_volume_hint
-#define GL_CLIP_VOLUME_CLIPPING_HINT_EXT  0x80F0
-#endif
-
-#ifndef GL_SGIX_list_priority
-#define GL_LIST_PRIORITY_SGIX             0x8182
-#endif
-
-#ifndef GL_SGIX_ir_instrument1
-#define GL_IR_INSTRUMENT1_SGIX            0x817F
-#endif
-
-#ifndef GL_SGIX_calligraphic_fragment
-#define GL_CALLIGRAPHIC_FRAGMENT_SGIX     0x8183
-#endif
-
-#ifndef GL_SGIX_texture_lod_bias
-#define GL_TEXTURE_LOD_BIAS_S_SGIX        0x818E
-#define GL_TEXTURE_LOD_BIAS_T_SGIX        0x818F
-#define GL_TEXTURE_LOD_BIAS_R_SGIX        0x8190
-#endif
-
-#ifndef GL_SGIX_shadow_ambient
-#define GL_SHADOW_AMBIENT_SGIX            0x80BF
-#endif
-
-#ifndef GL_EXT_index_texture
-#endif
-
-#ifndef GL_EXT_index_material
-#define GL_INDEX_MATERIAL_EXT             0x81B8
-#define GL_INDEX_MATERIAL_PARAMETER_EXT   0x81B9
-#define GL_INDEX_MATERIAL_FACE_EXT        0x81BA
-#endif
-
-#ifndef GL_EXT_index_func
-#define GL_INDEX_TEST_EXT                 0x81B5
-#define GL_INDEX_TEST_FUNC_EXT            0x81B6
-#define GL_INDEX_TEST_REF_EXT             0x81B7
-#endif
-
-#ifndef GL_EXT_index_array_formats
-#define GL_IUI_V2F_EXT                    0x81AD
-#define GL_IUI_V3F_EXT                    0x81AE
-#define GL_IUI_N3F_V2F_EXT                0x81AF
-#define GL_IUI_N3F_V3F_EXT                0x81B0
-#define GL_T2F_IUI_V2F_EXT                0x81B1
-#define GL_T2F_IUI_V3F_EXT                0x81B2
-#define GL_T2F_IUI_N3F_V2F_EXT            0x81B3
-#define GL_T2F_IUI_N3F_V3F_EXT            0x81B4
-#endif
-
-#ifndef GL_EXT_compiled_vertex_array
-#define GL_ARRAY_ELEMENT_LOCK_FIRST_EXT   0x81A8
-#define GL_ARRAY_ELEMENT_LOCK_COUNT_EXT   0x81A9
-#endif
-
-#ifndef GL_EXT_cull_vertex
-#define GL_CULL_VERTEX_EXT                0x81AA
-#define GL_CULL_VERTEX_EYE_POSITION_EXT   0x81AB
-#define GL_CULL_VERTEX_OBJECT_POSITION_EXT 0x81AC
-#endif
-
-#ifndef GL_SGIX_ycrcb
-#define GL_YCRCB_422_SGIX                 0x81BB
-#define GL_YCRCB_444_SGIX                 0x81BC
-#endif
-
-#ifndef GL_SGIX_fragment_lighting
-#define GL_FRAGMENT_LIGHTING_SGIX         0x8400
-#define GL_FRAGMENT_COLOR_MATERIAL_SGIX   0x8401
-#define GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX 0x8402
-#define GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX 0x8403
-#define GL_MAX_FRAGMENT_LIGHTS_SGIX       0x8404
-#define GL_MAX_ACTIVE_LIGHTS_SGIX         0x8405
-#define GL_CURRENT_RASTER_NORMAL_SGIX     0x8406
-#define GL_LIGHT_ENV_MODE_SGIX            0x8407
-#define GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX 0x8408
-#define GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX 0x8409
-#define GL_FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX 0x840A
-#define GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX 0x840B
-#define GL_FRAGMENT_LIGHT0_SGIX           0x840C
-#define GL_FRAGMENT_LIGHT1_SGIX           0x840D
-#define GL_FRAGMENT_LIGHT2_SGIX           0x840E
-#define GL_FRAGMENT_LIGHT3_SGIX           0x840F
-#define GL_FRAGMENT_LIGHT4_SGIX           0x8410
-#define GL_FRAGMENT_LIGHT5_SGIX           0x8411
-#define GL_FRAGMENT_LIGHT6_SGIX           0x8412
-#define GL_FRAGMENT_LIGHT7_SGIX           0x8413
-#endif
-
-#ifndef GL_IBM_rasterpos_clip
-#define GL_RASTER_POSITION_UNCLIPPED_IBM  0x19262
-#endif
-
-#ifndef GL_HP_texture_lighting
-#define GL_TEXTURE_LIGHTING_MODE_HP       0x8167
-#define GL_TEXTURE_POST_SPECULAR_HP       0x8168
-#define GL_TEXTURE_PRE_SPECULAR_HP        0x8169
-#endif
-
-#ifndef GL_EXT_draw_range_elements
-#define GL_MAX_ELEMENTS_VERTICES_EXT      0x80E8
-#define GL_MAX_ELEMENTS_INDICES_EXT       0x80E9
-#endif
-
-#ifndef GL_WIN_phong_shading
-#define GL_PHONG_WIN                      0x80EA
-#define GL_PHONG_HINT_WIN                 0x80EB
-#endif
-
-#ifndef GL_WIN_specular_fog
-#define GL_FOG_SPECULAR_TEXTURE_WIN       0x80EC
-#endif
-
-#ifndef GL_EXT_light_texture
-#define GL_FRAGMENT_MATERIAL_EXT          0x8349
-#define GL_FRAGMENT_NORMAL_EXT            0x834A
-#define GL_FRAGMENT_COLOR_EXT             0x834C
-#define GL_ATTENUATION_EXT                0x834D
-#define GL_SHADOW_ATTENUATION_EXT         0x834E
-#define GL_TEXTURE_APPLICATION_MODE_EXT   0x834F
-#define GL_TEXTURE_LIGHT_EXT              0x8350
-#define GL_TEXTURE_MATERIAL_FACE_EXT      0x8351
-#define GL_TEXTURE_MATERIAL_PARAMETER_EXT 0x8352
-/* reuse GL_FRAGMENT_DEPTH_EXT */
-#endif
-
-#ifndef GL_SGIX_blend_alpha_minmax
-#define GL_ALPHA_MIN_SGIX                 0x8320
-#define GL_ALPHA_MAX_SGIX                 0x8321
-#endif
-
-#ifndef GL_SGIX_impact_pixel_texture
-#define GL_PIXEL_TEX_GEN_Q_CEILING_SGIX   0x8184
-#define GL_PIXEL_TEX_GEN_Q_ROUND_SGIX     0x8185
-#define GL_PIXEL_TEX_GEN_Q_FLOOR_SGIX     0x8186
-#define GL_PIXEL_TEX_GEN_ALPHA_REPLACE_SGIX 0x8187
-#define GL_PIXEL_TEX_GEN_ALPHA_NO_REPLACE_SGIX 0x8188
-#define GL_PIXEL_TEX_GEN_ALPHA_LS_SGIX    0x8189
-#define GL_PIXEL_TEX_GEN_ALPHA_MS_SGIX    0x818A
-#endif
-
-#ifndef GL_EXT_bgra
-#define GL_BGR_EXT                        0x80E0
-#define GL_BGRA_EXT                       0x80E1
-#endif
-
-#ifndef GL_SGIX_async
-#define GL_ASYNC_MARKER_SGIX              0x8329
-#endif
-
-#ifndef GL_SGIX_async_pixel
-#define GL_ASYNC_TEX_IMAGE_SGIX           0x835C
-#define GL_ASYNC_DRAW_PIXELS_SGIX         0x835D
-#define GL_ASYNC_READ_PIXELS_SGIX         0x835E
-#define GL_MAX_ASYNC_TEX_IMAGE_SGIX       0x835F
-#define GL_MAX_ASYNC_DRAW_PIXELS_SGIX     0x8360
-#define GL_MAX_ASYNC_READ_PIXELS_SGIX     0x8361
-#endif
-
-#ifndef GL_SGIX_async_histogram
-#define GL_ASYNC_HISTOGRAM_SGIX           0x832C
-#define GL_MAX_ASYNC_HISTOGRAM_SGIX       0x832D
-#endif
-
-#ifndef GL_INTEL_texture_scissor
-#endif
-
-#ifndef GL_INTEL_parallel_arrays
-#define GL_PARALLEL_ARRAYS_INTEL          0x83F4
-#define GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL 0x83F5
-#define GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL 0x83F6
-#define GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL 0x83F7
-#define GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL 0x83F8
-#endif
-
-#ifndef GL_HP_occlusion_test
-#define GL_OCCLUSION_TEST_HP              0x8165
-#define GL_OCCLUSION_TEST_RESULT_HP       0x8166
-#endif
-
-#ifndef GL_EXT_pixel_transform
-#define GL_PIXEL_TRANSFORM_2D_EXT         0x8330
-#define GL_PIXEL_MAG_FILTER_EXT           0x8331
-#define GL_PIXEL_MIN_FILTER_EXT           0x8332
-#define GL_PIXEL_CUBIC_WEIGHT_EXT         0x8333
-#define GL_CUBIC_EXT                      0x8334
-#define GL_AVERAGE_EXT                    0x8335
-#define GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8336
-#define GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8337
-#define GL_PIXEL_TRANSFORM_2D_MATRIX_EXT  0x8338
-#endif
-
-#ifndef GL_EXT_pixel_transform_color_table
-#endif
-
-#ifndef GL_EXT_shared_texture_palette
-#define GL_SHARED_TEXTURE_PALETTE_EXT     0x81FB
-#endif
-
-#ifndef GL_EXT_separate_specular_color
-#define GL_LIGHT_MODEL_COLOR_CONTROL_EXT  0x81F8
-#define GL_SINGLE_COLOR_EXT               0x81F9
-#define GL_SEPARATE_SPECULAR_COLOR_EXT    0x81FA
-#endif
-
-#ifndef GL_EXT_secondary_color
-#define GL_COLOR_SUM_EXT                  0x8458
-#define GL_CURRENT_SECONDARY_COLOR_EXT    0x8459
-#define GL_SECONDARY_COLOR_ARRAY_SIZE_EXT 0x845A
-#define GL_SECONDARY_COLOR_ARRAY_TYPE_EXT 0x845B
-#define GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT 0x845C
-#define GL_SECONDARY_COLOR_ARRAY_POINTER_EXT 0x845D
-#define GL_SECONDARY_COLOR_ARRAY_EXT      0x845E
-#endif
-
-#ifndef GL_EXT_texture_perturb_normal
-#define GL_PERTURB_EXT                    0x85AE
-#define GL_TEXTURE_NORMAL_EXT             0x85AF
-#endif
-
-#ifndef GL_EXT_multi_draw_arrays
-#endif
-
-#ifndef GL_EXT_fog_coord
-#define GL_FOG_COORDINATE_SOURCE_EXT      0x8450
-#define GL_FOG_COORDINATE_EXT             0x8451
-#define GL_FRAGMENT_DEPTH_EXT             0x8452
-#define GL_CURRENT_FOG_COORDINATE_EXT     0x8453
-#define GL_FOG_COORDINATE_ARRAY_TYPE_EXT  0x8454
-#define GL_FOG_COORDINATE_ARRAY_STRIDE_EXT 0x8455
-#define GL_FOG_COORDINATE_ARRAY_POINTER_EXT 0x8456
-#define GL_FOG_COORDINATE_ARRAY_EXT       0x8457
-#endif
-
-#ifndef GL_REND_screen_coordinates
-#define GL_SCREEN_COORDINATES_REND        0x8490
-#define GL_INVERTED_SCREEN_W_REND         0x8491
-#endif
-
-#ifndef GL_EXT_coordinate_frame
-#define GL_TANGENT_ARRAY_EXT              0x8439
-#define GL_BINORMAL_ARRAY_EXT             0x843A
-#define GL_CURRENT_TANGENT_EXT            0x843B
-#define GL_CURRENT_BINORMAL_EXT           0x843C
-#define GL_TANGENT_ARRAY_TYPE_EXT         0x843E
-#define GL_TANGENT_ARRAY_STRIDE_EXT       0x843F
-#define GL_BINORMAL_ARRAY_TYPE_EXT        0x8440
-#define GL_BINORMAL_ARRAY_STRIDE_EXT      0x8441
-#define GL_TANGENT_ARRAY_POINTER_EXT      0x8442
-#define GL_BINORMAL_ARRAY_POINTER_EXT     0x8443
-#define GL_MAP1_TANGENT_EXT               0x8444
-#define GL_MAP2_TANGENT_EXT               0x8445
-#define GL_MAP1_BINORMAL_EXT              0x8446
-#define GL_MAP2_BINORMAL_EXT              0x8447
-#endif
-
-#ifndef GL_EXT_texture_env_combine
-#define GL_COMBINE_EXT                    0x8570
-#define GL_COMBINE_RGB_EXT                0x8571
-#define GL_COMBINE_ALPHA_EXT              0x8572
-#define GL_RGB_SCALE_EXT                  0x8573
-#define GL_ADD_SIGNED_EXT                 0x8574
-#define GL_INTERPOLATE_EXT                0x8575
-#define GL_CONSTANT_EXT                   0x8576
-#define GL_PRIMARY_COLOR_EXT              0x8577
-#define GL_PREVIOUS_EXT                   0x8578
-#define GL_SOURCE0_RGB_EXT                0x8580
-#define GL_SOURCE1_RGB_EXT                0x8581
-#define GL_SOURCE2_RGB_EXT                0x8582
-#define GL_SOURCE0_ALPHA_EXT              0x8588
-#define GL_SOURCE1_ALPHA_EXT              0x8589
-#define GL_SOURCE2_ALPHA_EXT              0x858A
-#define GL_OPERAND0_RGB_EXT               0x8590
-#define GL_OPERAND1_RGB_EXT               0x8591
-#define GL_OPERAND2_RGB_EXT               0x8592
-#define GL_OPERAND0_ALPHA_EXT             0x8598
-#define GL_OPERAND1_ALPHA_EXT             0x8599
-#define GL_OPERAND2_ALPHA_EXT             0x859A
-#endif
-
-#ifndef GL_APPLE_specular_vector
-#define GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE 0x85B0
-#endif
-
-#ifndef GL_APPLE_transform_hint
-#define GL_TRANSFORM_HINT_APPLE           0x85B1
-#endif
-
-#ifndef GL_SGIX_fog_scale
-#define GL_FOG_SCALE_SGIX                 0x81FC
-#define GL_FOG_SCALE_VALUE_SGIX           0x81FD
-#endif
-
-#ifndef GL_SUNX_constant_data
-#define GL_UNPACK_CONSTANT_DATA_SUNX      0x81D5
-#define GL_TEXTURE_CONSTANT_DATA_SUNX     0x81D6
-#endif
-
-#ifndef GL_SUN_global_alpha
-#define GL_GLOBAL_ALPHA_SUN               0x81D9
-#define GL_GLOBAL_ALPHA_FACTOR_SUN        0x81DA
-#endif
-
-#ifndef GL_SUN_triangle_list
-#define GL_RESTART_SUN                    0x0001
-#define GL_REPLACE_MIDDLE_SUN             0x0002
-#define GL_REPLACE_OLDEST_SUN             0x0003
-#define GL_TRIANGLE_LIST_SUN              0x81D7
-#define GL_REPLACEMENT_CODE_SUN           0x81D8
-#define GL_REPLACEMENT_CODE_ARRAY_SUN     0x85C0
-#define GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN 0x85C1
-#define GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN 0x85C2
-#define GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN 0x85C3
-#define GL_R1UI_V3F_SUN                   0x85C4
-#define GL_R1UI_C4UB_V3F_SUN              0x85C5
-#define GL_R1UI_C3F_V3F_SUN               0x85C6
-#define GL_R1UI_N3F_V3F_SUN               0x85C7
-#define GL_R1UI_C4F_N3F_V3F_SUN           0x85C8
-#define GL_R1UI_T2F_V3F_SUN               0x85C9
-#define GL_R1UI_T2F_N3F_V3F_SUN           0x85CA
-#define GL_R1UI_T2F_C4F_N3F_V3F_SUN       0x85CB
-#endif
-
-#ifndef GL_SUN_vertex
-#endif
-
-#ifndef GL_EXT_blend_func_separate
-#define GL_BLEND_DST_RGB_EXT              0x80C8
-#define GL_BLEND_SRC_RGB_EXT              0x80C9
-#define GL_BLEND_DST_ALPHA_EXT            0x80CA
-#define GL_BLEND_SRC_ALPHA_EXT            0x80CB
-#endif
-
-#ifndef GL_INGR_color_clamp
-#define GL_RED_MIN_CLAMP_INGR             0x8560
-#define GL_GREEN_MIN_CLAMP_INGR           0x8561
-#define GL_BLUE_MIN_CLAMP_INGR            0x8562
-#define GL_ALPHA_MIN_CLAMP_INGR           0x8563
-#define GL_RED_MAX_CLAMP_INGR             0x8564
-#define GL_GREEN_MAX_CLAMP_INGR           0x8565
-#define GL_BLUE_MAX_CLAMP_INGR            0x8566
-#define GL_ALPHA_MAX_CLAMP_INGR           0x8567
-#endif
-
-#ifndef GL_INGR_interlace_read
-#define GL_INTERLACE_READ_INGR            0x8568
-#endif
-
-#ifndef GL_EXT_stencil_wrap
-#define GL_INCR_WRAP_EXT                  0x8507
-#define GL_DECR_WRAP_EXT                  0x8508
-#endif
-
-#ifndef GL_EXT_422_pixels
-#define GL_422_EXT                        0x80CC
-#define GL_422_REV_EXT                    0x80CD
-#define GL_422_AVERAGE_EXT                0x80CE
-#define GL_422_REV_AVERAGE_EXT            0x80CF
-#endif
-
-#ifndef GL_NV_texgen_reflection
-#define GL_NORMAL_MAP_NV                  0x8511
-#define GL_REFLECTION_MAP_NV              0x8512
-#endif
-
-#ifndef GL_EXT_texture_cube_map
-#define GL_NORMAL_MAP_EXT                 0x8511
-#define GL_REFLECTION_MAP_EXT             0x8512
-#define GL_TEXTURE_CUBE_MAP_EXT           0x8513
-#define GL_TEXTURE_BINDING_CUBE_MAP_EXT   0x8514
-#define GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT 0x8515
-#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT 0x8516
-#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT 0x8517
-#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT 0x8518
-#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT 0x8519
-#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT 0x851A
-#define GL_PROXY_TEXTURE_CUBE_MAP_EXT     0x851B
-#define GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT  0x851C
-#endif
-
-#ifndef GL_SUN_convolution_border_modes
-#define GL_WRAP_BORDER_SUN                0x81D4
-#endif
-
-#ifndef GL_EXT_texture_env_add
-#endif
-
-#ifndef GL_EXT_texture_lod_bias
-#define GL_MAX_TEXTURE_LOD_BIAS_EXT       0x84FD
-#define GL_TEXTURE_FILTER_CONTROL_EXT     0x8500
-#define GL_TEXTURE_LOD_BIAS_EXT           0x8501
-#endif
-
-#ifndef GL_EXT_texture_filter_anisotropic
-#define GL_TEXTURE_MAX_ANISOTROPY_EXT     0x84FE
-#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
-#endif
-
-#ifndef GL_EXT_vertex_weighting
-#define GL_MODELVIEW0_STACK_DEPTH_EXT     GL_MODELVIEW_STACK_DEPTH
-#define GL_MODELVIEW1_STACK_DEPTH_EXT     0x8502
-#define GL_MODELVIEW0_MATRIX_EXT          GL_MODELVIEW_MATRIX
-#define GL_MODELVIEW1_MATRIX_EXT          0x8506
-#define GL_VERTEX_WEIGHTING_EXT           0x8509
-#define GL_MODELVIEW0_EXT                 GL_MODELVIEW
-#define GL_MODELVIEW1_EXT                 0x850A
-#define GL_CURRENT_VERTEX_WEIGHT_EXT      0x850B
-#define GL_VERTEX_WEIGHT_ARRAY_EXT        0x850C
-#define GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT   0x850D
-#define GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT   0x850E
-#define GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT 0x850F
-#define GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT 0x8510
-#endif
-
-#ifndef GL_NV_light_max_exponent
-#define GL_MAX_SHININESS_NV               0x8504
-#define GL_MAX_SPOT_EXPONENT_NV           0x8505
-#endif
-
-#ifndef GL_NV_vertex_array_range
-#define GL_VERTEX_ARRAY_RANGE_NV          0x851D
-#define GL_VERTEX_ARRAY_RANGE_LENGTH_NV   0x851E
-#define GL_VERTEX_ARRAY_RANGE_VALID_NV    0x851F
-#define GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV 0x8520
-#define GL_VERTEX_ARRAY_RANGE_POINTER_NV  0x8521
-#endif
-
-#ifndef GL_NV_register_combiners
-#define GL_REGISTER_COMBINERS_NV          0x8522
-#define GL_VARIABLE_A_NV                  0x8523
-#define GL_VARIABLE_B_NV                  0x8524
-#define GL_VARIABLE_C_NV                  0x8525
-#define GL_VARIABLE_D_NV                  0x8526
-#define GL_VARIABLE_E_NV                  0x8527
-#define GL_VARIABLE_F_NV                  0x8528
-#define GL_VARIABLE_G_NV                  0x8529
-#define GL_CONSTANT_COLOR0_NV             0x852A
-#define GL_CONSTANT_COLOR1_NV             0x852B
-#define GL_PRIMARY_COLOR_NV               0x852C
-#define GL_SECONDARY_COLOR_NV             0x852D
-#define GL_SPARE0_NV                      0x852E
-#define GL_SPARE1_NV                      0x852F
-#define GL_DISCARD_NV                     0x8530
-#define GL_E_TIMES_F_NV                   0x8531
-#define GL_SPARE0_PLUS_SECONDARY_COLOR_NV 0x8532
-#define GL_UNSIGNED_IDENTITY_NV           0x8536
-#define GL_UNSIGNED_INVERT_NV             0x8537
-#define GL_EXPAND_NORMAL_NV               0x8538
-#define GL_EXPAND_NEGATE_NV               0x8539
-#define GL_HALF_BIAS_NORMAL_NV            0x853A
-#define GL_HALF_BIAS_NEGATE_NV            0x853B
-#define GL_SIGNED_IDENTITY_NV             0x853C
-#define GL_SIGNED_NEGATE_NV               0x853D
-#define GL_SCALE_BY_TWO_NV                0x853E
-#define GL_SCALE_BY_FOUR_NV               0x853F
-#define GL_SCALE_BY_ONE_HALF_NV           0x8540
-#define GL_BIAS_BY_NEGATIVE_ONE_HALF_NV   0x8541
-#define GL_COMBINER_INPUT_NV              0x8542
-#define GL_COMBINER_MAPPING_NV            0x8543
-#define GL_COMBINER_COMPONENT_USAGE_NV    0x8544
-#define GL_COMBINER_AB_DOT_PRODUCT_NV     0x8545
-#define GL_COMBINER_CD_DOT_PRODUCT_NV     0x8546
-#define GL_COMBINER_MUX_SUM_NV            0x8547
-#define GL_COMBINER_SCALE_NV              0x8548
-#define GL_COMBINER_BIAS_NV               0x8549
-#define GL_COMBINER_AB_OUTPUT_NV          0x854A
-#define GL_COMBINER_CD_OUTPUT_NV          0x854B
-#define GL_COMBINER_SUM_OUTPUT_NV         0x854C
-#define GL_MAX_GENERAL_COMBINERS_NV       0x854D
-#define GL_NUM_GENERAL_COMBINERS_NV       0x854E
-#define GL_COLOR_SUM_CLAMP_NV             0x854F
-#define GL_COMBINER0_NV                   0x8550
-#define GL_COMBINER1_NV                   0x8551
-#define GL_COMBINER2_NV                   0x8552
-#define GL_COMBINER3_NV                   0x8553
-#define GL_COMBINER4_NV                   0x8554
-#define GL_COMBINER5_NV                   0x8555
-#define GL_COMBINER6_NV                   0x8556
-#define GL_COMBINER7_NV                   0x8557
-/* reuse GL_TEXTURE0_ARB */
-/* reuse GL_TEXTURE1_ARB */
-/* reuse GL_ZERO */
-/* reuse GL_NONE */
-/* reuse GL_FOG */
-#endif
-
-#ifndef GL_NV_fog_distance
-#define GL_FOG_DISTANCE_MODE_NV           0x855A
-#define GL_EYE_RADIAL_NV                  0x855B
-#define GL_EYE_PLANE_ABSOLUTE_NV          0x855C
-/* reuse GL_EYE_PLANE */
-#endif
-
-#ifndef GL_NV_texgen_emboss
-#define GL_EMBOSS_LIGHT_NV                0x855D
-#define GL_EMBOSS_CONSTANT_NV             0x855E
-#define GL_EMBOSS_MAP_NV                  0x855F
-#endif
-
-#ifndef GL_NV_blend_square
-#endif
-
-#ifndef GL_NV_texture_env_combine4
-#define GL_COMBINE4_NV                    0x8503
-#define GL_SOURCE3_RGB_NV                 0x8583
-#define GL_SOURCE3_ALPHA_NV               0x858B
-#define GL_OPERAND3_RGB_NV                0x8593
-#define GL_OPERAND3_ALPHA_NV              0x859B
-#endif
-
-#ifndef GL_MESA_resize_buffers
-#endif
-
-#ifndef GL_MESA_window_pos
-#endif
-
-#ifndef GL_EXT_texture_compression_s3tc
-#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT   0x83F0
-#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT  0x83F1
-#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT  0x83F2
-#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT  0x83F3
-#endif
-
-#ifndef GL_IBM_cull_vertex
-#define GL_CULL_VERTEX_IBM                103050
-#endif
-
-#ifndef GL_IBM_multimode_draw_arrays
-#endif
-
-#ifndef GL_IBM_vertex_array_lists
-#define GL_VERTEX_ARRAY_LIST_IBM          103070
-#define GL_NORMAL_ARRAY_LIST_IBM          103071
-#define GL_COLOR_ARRAY_LIST_IBM           103072
-#define GL_INDEX_ARRAY_LIST_IBM           103073
-#define GL_TEXTURE_COORD_ARRAY_LIST_IBM   103074
-#define GL_EDGE_FLAG_ARRAY_LIST_IBM       103075
-#define GL_FOG_COORDINATE_ARRAY_LIST_IBM  103076
-#define GL_SECONDARY_COLOR_ARRAY_LIST_IBM 103077
-#define GL_VERTEX_ARRAY_LIST_STRIDE_IBM   103080
-#define GL_NORMAL_ARRAY_LIST_STRIDE_IBM   103081
-#define GL_COLOR_ARRAY_LIST_STRIDE_IBM    103082
-#define GL_INDEX_ARRAY_LIST_STRIDE_IBM    103083
-#define GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM 103084
-#define GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM 103085
-#define GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM 103086
-#define GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM 103087
-#endif
-
-#ifndef GL_SGIX_subsample
-#define GL_PACK_SUBSAMPLE_RATE_SGIX       0x85A0
-#define GL_UNPACK_SUBSAMPLE_RATE_SGIX     0x85A1
-#define GL_PIXEL_SUBSAMPLE_4444_SGIX      0x85A2
-#define GL_PIXEL_SUBSAMPLE_2424_SGIX      0x85A3
-#define GL_PIXEL_SUBSAMPLE_4242_SGIX      0x85A4
-#endif
-
-#ifndef GL_SGIX_ycrcb_subsample
-#endif
-
-#ifndef GL_SGIX_ycrcba
-#define GL_YCRCB_SGIX                     0x8318
-#define GL_YCRCBA_SGIX                    0x8319
-#endif
-
-#ifndef GL_SGI_depth_pass_instrument
-#define GL_DEPTH_PASS_INSTRUMENT_SGIX     0x8310
-#define GL_DEPTH_PASS_INSTRUMENT_COUNTERS_SGIX 0x8311
-#define GL_DEPTH_PASS_INSTRUMENT_MAX_SGIX 0x8312
-#endif
-
-#ifndef GL_3DFX_texture_compression_FXT1
-#define GL_COMPRESSED_RGB_FXT1_3DFX       0x86B0
-#define GL_COMPRESSED_RGBA_FXT1_3DFX      0x86B1
-#endif
-
-#ifndef GL_3DFX_multisample
-#define GL_MULTISAMPLE_3DFX               0x86B2
-#define GL_SAMPLE_BUFFERS_3DFX            0x86B3
-#define GL_SAMPLES_3DFX                   0x86B4
-#define GL_MULTISAMPLE_BIT_3DFX           0x20000000
-#endif
-
-#ifndef GL_3DFX_tbuffer
-#endif
-
-#ifndef GL_EXT_multisample
-#define GL_MULTISAMPLE_EXT                0x809D
-#define GL_SAMPLE_ALPHA_TO_MASK_EXT       0x809E
-#define GL_SAMPLE_ALPHA_TO_ONE_EXT        0x809F
-#define GL_SAMPLE_MASK_EXT                0x80A0
-#define GL_1PASS_EXT                      0x80A1
-#define GL_2PASS_0_EXT                    0x80A2
-#define GL_2PASS_1_EXT                    0x80A3
-#define GL_4PASS_0_EXT                    0x80A4
-#define GL_4PASS_1_EXT                    0x80A5
-#define GL_4PASS_2_EXT                    0x80A6
-#define GL_4PASS_3_EXT                    0x80A7
-#define GL_SAMPLE_BUFFERS_EXT             0x80A8
-#define GL_SAMPLES_EXT                    0x80A9
-#define GL_SAMPLE_MASK_VALUE_EXT          0x80AA
-#define GL_SAMPLE_MASK_INVERT_EXT         0x80AB
-#define GL_SAMPLE_PATTERN_EXT             0x80AC
-#define GL_MULTISAMPLE_BIT_EXT            0x20000000
-#endif
-
-#ifndef GL_SGIX_vertex_preclip
-#define GL_VERTEX_PRECLIP_SGIX            0x83EE
-#define GL_VERTEX_PRECLIP_HINT_SGIX       0x83EF
-#endif
-
-#ifndef GL_SGIX_convolution_accuracy
-#define GL_CONVOLUTION_HINT_SGIX          0x8316
-#endif
-
-#ifndef GL_SGIX_resample
-#define GL_PACK_RESAMPLE_SGIX             0x842C
-#define GL_UNPACK_RESAMPLE_SGIX           0x842D
-#define GL_RESAMPLE_REPLICATE_SGIX        0x842E
-#define GL_RESAMPLE_ZERO_FILL_SGIX        0x842F
-#define GL_RESAMPLE_DECIMATE_SGIX         0x8430
-#endif
-
-#ifndef GL_SGIS_point_line_texgen
-#define GL_EYE_DISTANCE_TO_POINT_SGIS     0x81F0
-#define GL_OBJECT_DISTANCE_TO_POINT_SGIS  0x81F1
-#define GL_EYE_DISTANCE_TO_LINE_SGIS      0x81F2
-#define GL_OBJECT_DISTANCE_TO_LINE_SGIS   0x81F3
-#define GL_EYE_POINT_SGIS                 0x81F4
-#define GL_OBJECT_POINT_SGIS              0x81F5
-#define GL_EYE_LINE_SGIS                  0x81F6
-#define GL_OBJECT_LINE_SGIS               0x81F7
-#endif
-
-#ifndef GL_SGIS_texture_color_mask
-#define GL_TEXTURE_COLOR_WRITEMASK_SGIS   0x81EF
-#endif
-
-#ifndef GL_EXT_texture_env_dot3
-#define GL_DOT3_RGB_EXT                   0x8740
-#define GL_DOT3_RGBA_EXT                  0x8741
-#endif
-
-#ifndef GL_ATI_texture_mirror_once
-#define GL_MIRROR_CLAMP_ATI               0x8742
-#define GL_MIRROR_CLAMP_TO_EDGE_ATI       0x8743
-#endif
-
-#ifndef GL_NV_fence
-#define GL_ALL_COMPLETED_NV               0x84F2
-#define GL_FENCE_STATUS_NV                0x84F3
-#define GL_FENCE_CONDITION_NV             0x84F4
-#endif
-
-#ifndef GL_IBM_texture_mirrored_repeat
-#define GL_MIRRORED_REPEAT_IBM            0x8370
-#endif
-
-#ifndef GL_NV_evaluators
-#define GL_EVAL_2D_NV                     0x86C0
-#define GL_EVAL_TRIANGULAR_2D_NV          0x86C1
-#define GL_MAP_TESSELLATION_NV            0x86C2
-#define GL_MAP_ATTRIB_U_ORDER_NV          0x86C3
-#define GL_MAP_ATTRIB_V_ORDER_NV          0x86C4
-#define GL_EVAL_FRACTIONAL_TESSELLATION_NV 0x86C5
-#define GL_EVAL_VERTEX_ATTRIB0_NV         0x86C6
-#define GL_EVAL_VERTEX_ATTRIB1_NV         0x86C7
-#define GL_EVAL_VERTEX_ATTRIB2_NV         0x86C8
-#define GL_EVAL_VERTEX_ATTRIB3_NV         0x86C9
-#define GL_EVAL_VERTEX_ATTRIB4_NV         0x86CA
-#define GL_EVAL_VERTEX_ATTRIB5_NV         0x86CB
-#define GL_EVAL_VERTEX_ATTRIB6_NV         0x86CC
-#define GL_EVAL_VERTEX_ATTRIB7_NV         0x86CD
-#define GL_EVAL_VERTEX_ATTRIB8_NV         0x86CE
-#define GL_EVAL_VERTEX_ATTRIB9_NV         0x86CF
-#define GL_EVAL_VERTEX_ATTRIB10_NV        0x86D0
-#define GL_EVAL_VERTEX_ATTRIB11_NV        0x86D1
-#define GL_EVAL_VERTEX_ATTRIB12_NV        0x86D2
-#define GL_EVAL_VERTEX_ATTRIB13_NV        0x86D3
-#define GL_EVAL_VERTEX_ATTRIB14_NV        0x86D4
-#define GL_EVAL_VERTEX_ATTRIB15_NV        0x86D5
-#define GL_MAX_MAP_TESSELLATION_NV        0x86D6
-#define GL_MAX_RATIONAL_EVAL_ORDER_NV     0x86D7
-#endif
-
-#ifndef GL_NV_packed_depth_stencil
-#define GL_DEPTH_STENCIL_NV               0x84F9
-#define GL_UNSIGNED_INT_24_8_NV           0x84FA
-#endif
-
-#ifndef GL_NV_register_combiners2
-#define GL_PER_STAGE_CONSTANTS_NV         0x8535
-#endif
-
-#ifndef GL_NV_texture_compression_vtc
-#endif
-
-#ifndef GL_NV_texture_rectangle
-#define GL_TEXTURE_RECTANGLE_NV           0x84F5
-#define GL_TEXTURE_BINDING_RECTANGLE_NV   0x84F6
-#define GL_PROXY_TEXTURE_RECTANGLE_NV     0x84F7
-#define GL_MAX_RECTANGLE_TEXTURE_SIZE_NV  0x84F8
-#endif
-
-#ifndef GL_NV_texture_shader
-#define GL_OFFSET_TEXTURE_RECTANGLE_NV    0x864C
-#define GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV 0x864D
-#define GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV 0x864E
-#define GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV 0x86D9
-#define GL_UNSIGNED_INT_S8_S8_8_8_NV      0x86DA
-#define GL_UNSIGNED_INT_8_8_S8_S8_REV_NV  0x86DB
-#define GL_DSDT_MAG_INTENSITY_NV          0x86DC
-#define GL_SHADER_CONSISTENT_NV           0x86DD
-#define GL_TEXTURE_SHADER_NV              0x86DE
-#define GL_SHADER_OPERATION_NV            0x86DF
-#define GL_CULL_MODES_NV                  0x86E0
-#define GL_OFFSET_TEXTURE_MATRIX_NV       0x86E1
-#define GL_OFFSET_TEXTURE_SCALE_NV        0x86E2
-#define GL_OFFSET_TEXTURE_BIAS_NV         0x86E3
-#define GL_OFFSET_TEXTURE_2D_MATRIX_NV    GL_OFFSET_TEXTURE_MATRIX_NV
-#define GL_OFFSET_TEXTURE_2D_SCALE_NV     GL_OFFSET_TEXTURE_SCALE_NV
-#define GL_OFFSET_TEXTURE_2D_BIAS_NV      GL_OFFSET_TEXTURE_BIAS_NV
-#define GL_PREVIOUS_TEXTURE_INPUT_NV      0x86E4
-#define GL_CONST_EYE_NV                   0x86E5
-#define GL_PASS_THROUGH_NV                0x86E6
-#define GL_CULL_FRAGMENT_NV               0x86E7
-#define GL_OFFSET_TEXTURE_2D_NV           0x86E8
-#define GL_DEPENDENT_AR_TEXTURE_2D_NV     0x86E9
-#define GL_DEPENDENT_GB_TEXTURE_2D_NV     0x86EA
-#define GL_DOT_PRODUCT_NV                 0x86EC
-#define GL_DOT_PRODUCT_DEPTH_REPLACE_NV   0x86ED
-#define GL_DOT_PRODUCT_TEXTURE_2D_NV      0x86EE
-#define GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV 0x86F0
-#define GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV 0x86F1
-#define GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV 0x86F2
-#define GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV 0x86F3
-#define GL_HILO_NV                        0x86F4
-#define GL_DSDT_NV                        0x86F5
-#define GL_DSDT_MAG_NV                    0x86F6
-#define GL_DSDT_MAG_VIB_NV                0x86F7
-#define GL_HILO16_NV                      0x86F8
-#define GL_SIGNED_HILO_NV                 0x86F9
-#define GL_SIGNED_HILO16_NV               0x86FA
-#define GL_SIGNED_RGBA_NV                 0x86FB
-#define GL_SIGNED_RGBA8_NV                0x86FC
-#define GL_SIGNED_RGB_NV                  0x86FE
-#define GL_SIGNED_RGB8_NV                 0x86FF
-#define GL_SIGNED_LUMINANCE_NV            0x8701
-#define GL_SIGNED_LUMINANCE8_NV           0x8702
-#define GL_SIGNED_LUMINANCE_ALPHA_NV      0x8703
-#define GL_SIGNED_LUMINANCE8_ALPHA8_NV    0x8704
-#define GL_SIGNED_ALPHA_NV                0x8705
-#define GL_SIGNED_ALPHA8_NV               0x8706
-#define GL_SIGNED_INTENSITY_NV            0x8707
-#define GL_SIGNED_INTENSITY8_NV           0x8708
-#define GL_DSDT8_NV                       0x8709
-#define GL_DSDT8_MAG8_NV                  0x870A
-#define GL_DSDT8_MAG8_INTENSITY8_NV       0x870B
-#define GL_SIGNED_RGB_UNSIGNED_ALPHA_NV   0x870C
-#define GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV 0x870D
-#define GL_HI_SCALE_NV                    0x870E
-#define GL_LO_SCALE_NV                    0x870F
-#define GL_DS_SCALE_NV                    0x8710
-#define GL_DT_SCALE_NV                    0x8711
-#define GL_MAGNITUDE_SCALE_NV             0x8712
-#define GL_VIBRANCE_SCALE_NV              0x8713
-#define GL_HI_BIAS_NV                     0x8714
-#define GL_LO_BIAS_NV                     0x8715
-#define GL_DS_BIAS_NV                     0x8716
-#define GL_DT_BIAS_NV                     0x8717
-#define GL_MAGNITUDE_BIAS_NV              0x8718
-#define GL_VIBRANCE_BIAS_NV               0x8719
-#define GL_TEXTURE_BORDER_VALUES_NV       0x871A
-#define GL_TEXTURE_HI_SIZE_NV             0x871B
-#define GL_TEXTURE_LO_SIZE_NV             0x871C
-#define GL_TEXTURE_DS_SIZE_NV             0x871D
-#define GL_TEXTURE_DT_SIZE_NV             0x871E
-#define GL_TEXTURE_MAG_SIZE_NV            0x871F
-#endif
-
-#ifndef GL_NV_texture_shader2
-#define GL_DOT_PRODUCT_TEXTURE_3D_NV      0x86EF
-#endif
-
-#ifndef GL_NV_vertex_array_range2
-#define GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV 0x8533
-#endif
-
-#ifndef GL_NV_vertex_program
-#define GL_VERTEX_PROGRAM_NV              0x8620
-#define GL_VERTEX_STATE_PROGRAM_NV        0x8621
-#define GL_ATTRIB_ARRAY_SIZE_NV           0x8623
-#define GL_ATTRIB_ARRAY_STRIDE_NV         0x8624
-#define GL_ATTRIB_ARRAY_TYPE_NV           0x8625
-#define GL_CURRENT_ATTRIB_NV              0x8626
-#define GL_PROGRAM_LENGTH_NV              0x8627
-#define GL_PROGRAM_STRING_NV              0x8628
-#define GL_MODELVIEW_PROJECTION_NV        0x8629
-#define GL_IDENTITY_NV                    0x862A
-#define GL_INVERSE_NV                     0x862B
-#define GL_TRANSPOSE_NV                   0x862C
-#define GL_INVERSE_TRANSPOSE_NV           0x862D
-#define GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV 0x862E
-#define GL_MAX_TRACK_MATRICES_NV          0x862F
-#define GL_MATRIX0_NV                     0x8630
-#define GL_MATRIX1_NV                     0x8631
-#define GL_MATRIX2_NV                     0x8632
-#define GL_MATRIX3_NV                     0x8633
-#define GL_MATRIX4_NV                     0x8634
-#define GL_MATRIX5_NV                     0x8635
-#define GL_MATRIX6_NV                     0x8636
-#define GL_MATRIX7_NV                     0x8637
-#define GL_CURRENT_MATRIX_STACK_DEPTH_NV  0x8640
-#define GL_CURRENT_MATRIX_NV              0x8641
-#define GL_VERTEX_PROGRAM_POINT_SIZE_NV   0x8642
-#define GL_VERTEX_PROGRAM_TWO_SIDE_NV     0x8643
-#define GL_PROGRAM_PARAMETER_NV           0x8644
-#define GL_ATTRIB_ARRAY_POINTER_NV        0x8645
-#define GL_PROGRAM_TARGET_NV              0x8646
-#define GL_PROGRAM_RESIDENT_NV            0x8647
-#define GL_TRACK_MATRIX_NV                0x8648
-#define GL_TRACK_MATRIX_TRANSFORM_NV      0x8649
-#define GL_VERTEX_PROGRAM_BINDING_NV      0x864A
-#define GL_PROGRAM_ERROR_POSITION_NV      0x864B
-#define GL_VERTEX_ATTRIB_ARRAY0_NV        0x8650
-#define GL_VERTEX_ATTRIB_ARRAY1_NV        0x8651
-#define GL_VERTEX_ATTRIB_ARRAY2_NV        0x8652
-#define GL_VERTEX_ATTRIB_ARRAY3_NV        0x8653
-#define GL_VERTEX_ATTRIB_ARRAY4_NV        0x8654
-#define GL_VERTEX_ATTRIB_ARRAY5_NV        0x8655
-#define GL_VERTEX_ATTRIB_ARRAY6_NV        0x8656
-#define GL_VERTEX_ATTRIB_ARRAY7_NV        0x8657
-#define GL_VERTEX_ATTRIB_ARRAY8_NV        0x8658
-#define GL_VERTEX_ATTRIB_ARRAY9_NV        0x8659
-#define GL_VERTEX_ATTRIB_ARRAY10_NV       0x865A
-#define GL_VERTEX_ATTRIB_ARRAY11_NV       0x865B
-#define GL_VERTEX_ATTRIB_ARRAY12_NV       0x865C
-#define GL_VERTEX_ATTRIB_ARRAY13_NV       0x865D
-#define GL_VERTEX_ATTRIB_ARRAY14_NV       0x865E
-#define GL_VERTEX_ATTRIB_ARRAY15_NV       0x865F
-#define GL_MAP1_VERTEX_ATTRIB0_4_NV       0x8660
-#define GL_MAP1_VERTEX_ATTRIB1_4_NV       0x8661
-#define GL_MAP1_VERTEX_ATTRIB2_4_NV       0x8662
-#define GL_MAP1_VERTEX_ATTRIB3_4_NV       0x8663
-#define GL_MAP1_VERTEX_ATTRIB4_4_NV       0x8664
-#define GL_MAP1_VERTEX_ATTRIB5_4_NV       0x8665
-#define GL_MAP1_VERTEX_ATTRIB6_4_NV       0x8666
-#define GL_MAP1_VERTEX_ATTRIB7_4_NV       0x8667
-#define GL_MAP1_VERTEX_ATTRIB8_4_NV       0x8668
-#define GL_MAP1_VERTEX_ATTRIB9_4_NV       0x8669
-#define GL_MAP1_VERTEX_ATTRIB10_4_NV      0x866A
-#define GL_MAP1_VERTEX_ATTRIB11_4_NV      0x866B
-#define GL_MAP1_VERTEX_ATTRIB12_4_NV      0x866C
-#define GL_MAP1_VERTEX_ATTRIB13_4_NV      0x866D
-#define GL_MAP1_VERTEX_ATTRIB14_4_NV      0x866E
-#define GL_MAP1_VERTEX_ATTRIB15_4_NV      0x866F
-#define GL_MAP2_VERTEX_ATTRIB0_4_NV       0x8670
-#define GL_MAP2_VERTEX_ATTRIB1_4_NV       0x8671
-#define GL_MAP2_VERTEX_ATTRIB2_4_NV       0x8672
-#define GL_MAP2_VERTEX_ATTRIB3_4_NV       0x8673
-#define GL_MAP2_VERTEX_ATTRIB4_4_NV       0x8674
-#define GL_MAP2_VERTEX_ATTRIB5_4_NV       0x8675
-#define GL_MAP2_VERTEX_ATTRIB6_4_NV       0x8676
-#define GL_MAP2_VERTEX_ATTRIB7_4_NV       0x8677
-#define GL_MAP2_VERTEX_ATTRIB8_4_NV       0x8678
-#define GL_MAP2_VERTEX_ATTRIB9_4_NV       0x8679
-#define GL_MAP2_VERTEX_ATTRIB10_4_NV      0x867A
-#define GL_MAP2_VERTEX_ATTRIB11_4_NV      0x867B
-#define GL_MAP2_VERTEX_ATTRIB12_4_NV      0x867C
-#define GL_MAP2_VERTEX_ATTRIB13_4_NV      0x867D
-#define GL_MAP2_VERTEX_ATTRIB14_4_NV      0x867E
-#define GL_MAP2_VERTEX_ATTRIB15_4_NV      0x867F
-#endif
-
-#ifndef GL_SGIX_texture_coordinate_clamp
-#define GL_TEXTURE_MAX_CLAMP_S_SGIX       0x8369
-#define GL_TEXTURE_MAX_CLAMP_T_SGIX       0x836A
-#define GL_TEXTURE_MAX_CLAMP_R_SGIX       0x836B
-#endif
-
-#ifndef GL_SGIX_scalebias_hint
-#define GL_SCALEBIAS_HINT_SGIX            0x8322
-#endif
-
-#ifndef GL_OML_interlace
-#define GL_INTERLACE_OML                  0x8980
-#define GL_INTERLACE_READ_OML             0x8981
-#endif
-
-#ifndef GL_OML_subsample
-#define GL_FORMAT_SUBSAMPLE_24_24_OML     0x8982
-#define GL_FORMAT_SUBSAMPLE_244_244_OML   0x8983
-#endif
-
-#ifndef GL_OML_resample
-#define GL_PACK_RESAMPLE_OML              0x8984
-#define GL_UNPACK_RESAMPLE_OML            0x8985
-#define GL_RESAMPLE_REPLICATE_OML         0x8986
-#define GL_RESAMPLE_ZERO_FILL_OML         0x8987
-#define GL_RESAMPLE_AVERAGE_OML           0x8988
-#define GL_RESAMPLE_DECIMATE_OML          0x8989
-#endif
-
-#ifndef GL_NV_copy_depth_to_color
-#define GL_DEPTH_STENCIL_TO_RGBA_NV       0x886E
-#define GL_DEPTH_STENCIL_TO_BGRA_NV       0x886F
-#endif
-
-#ifndef GL_ATI_envmap_bumpmap
-#define GL_BUMP_ROT_MATRIX_ATI            0x8775
-#define GL_BUMP_ROT_MATRIX_SIZE_ATI       0x8776
-#define GL_BUMP_NUM_TEX_UNITS_ATI         0x8777
-#define GL_BUMP_TEX_UNITS_ATI             0x8778
-#define GL_DUDV_ATI                       0x8779
-#define GL_DU8DV8_ATI                     0x877A
-#define GL_BUMP_ENVMAP_ATI                0x877B
-#define GL_BUMP_TARGET_ATI                0x877C
-#endif
-
-#ifndef GL_ATI_fragment_shader
-#define GL_FRAGMENT_SHADER_ATI            0x8920
-#define GL_REG_0_ATI                      0x8921
-#define GL_REG_1_ATI                      0x8922
-#define GL_REG_2_ATI                      0x8923
-#define GL_REG_3_ATI                      0x8924
-#define GL_REG_4_ATI                      0x8925
-#define GL_REG_5_ATI                      0x8926
-#define GL_REG_6_ATI                      0x8927
-#define GL_REG_7_ATI                      0x8928
-#define GL_REG_8_ATI                      0x8929
-#define GL_REG_9_ATI                      0x892A
-#define GL_REG_10_ATI                     0x892B
-#define GL_REG_11_ATI                     0x892C
-#define GL_REG_12_ATI                     0x892D
-#define GL_REG_13_ATI                     0x892E
-#define GL_REG_14_ATI                     0x892F
-#define GL_REG_15_ATI                     0x8930
-#define GL_REG_16_ATI                     0x8931
-#define GL_REG_17_ATI                     0x8932
-#define GL_REG_18_ATI                     0x8933
-#define GL_REG_19_ATI                     0x8934
-#define GL_REG_20_ATI                     0x8935
-#define GL_REG_21_ATI                     0x8936
-#define GL_REG_22_ATI                     0x8937
-#define GL_REG_23_ATI                     0x8938
-#define GL_REG_24_ATI                     0x8939
-#define GL_REG_25_ATI                     0x893A
-#define GL_REG_26_ATI                     0x893B
-#define GL_REG_27_ATI                     0x893C
-#define GL_REG_28_ATI                     0x893D
-#define GL_REG_29_ATI                     0x893E
-#define GL_REG_30_ATI                     0x893F
-#define GL_REG_31_ATI                     0x8940
-#define GL_CON_0_ATI                      0x8941
-#define GL_CON_1_ATI                      0x8942
-#define GL_CON_2_ATI                      0x8943
-#define GL_CON_3_ATI                      0x8944
-#define GL_CON_4_ATI                      0x8945
-#define GL_CON_5_ATI                      0x8946
-#define GL_CON_6_ATI                      0x8947
-#define GL_CON_7_ATI                      0x8948
-#define GL_CON_8_ATI                      0x8949
-#define GL_CON_9_ATI                      0x894A
-#define GL_CON_10_ATI                     0x894B
-#define GL_CON_11_ATI                     0x894C
-#define GL_CON_12_ATI                     0x894D
-#define GL_CON_13_ATI                     0x894E
-#define GL_CON_14_ATI                     0x894F
-#define GL_CON_15_ATI                     0x8950
-#define GL_CON_16_ATI                     0x8951
-#define GL_CON_17_ATI                     0x8952
-#define GL_CON_18_ATI                     0x8953
-#define GL_CON_19_ATI                     0x8954
-#define GL_CON_20_ATI                     0x8955
-#define GL_CON_21_ATI                     0x8956
-#define GL_CON_22_ATI                     0x8957
-#define GL_CON_23_ATI                     0x8958
-#define GL_CON_24_ATI                     0x8959
-#define GL_CON_25_ATI                     0x895A
-#define GL_CON_26_ATI                     0x895B
-#define GL_CON_27_ATI                     0x895C
-#define GL_CON_28_ATI                     0x895D
-#define GL_CON_29_ATI                     0x895E
-#define GL_CON_30_ATI                     0x895F
-#define GL_CON_31_ATI                     0x8960
-#define GL_MOV_ATI                        0x8961
-#define GL_ADD_ATI                        0x8963
-#define GL_MUL_ATI                        0x8964
-#define GL_SUB_ATI                        0x8965
-#define GL_DOT3_ATI                       0x8966
-#define GL_DOT4_ATI                       0x8967
-#define GL_MAD_ATI                        0x8968
-#define GL_LERP_ATI                       0x8969
-#define GL_CND_ATI                        0x896A
-#define GL_CND0_ATI                       0x896B
-#define GL_DOT2_ADD_ATI                   0x896C
-#define GL_SECONDARY_INTERPOLATOR_ATI     0x896D
-#define GL_NUM_FRAGMENT_REGISTERS_ATI     0x896E
-#define GL_NUM_FRAGMENT_CONSTANTS_ATI     0x896F
-#define GL_NUM_PASSES_ATI                 0x8970
-#define GL_NUM_INSTRUCTIONS_PER_PASS_ATI  0x8971
-#define GL_NUM_INSTRUCTIONS_TOTAL_ATI     0x8972
-#define GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI 0x8973
-#define GL_NUM_LOOPBACK_COMPONENTS_ATI    0x8974
-#define GL_COLOR_ALPHA_PAIRING_ATI        0x8975
-#define GL_SWIZZLE_STR_ATI                0x8976
-#define GL_SWIZZLE_STQ_ATI                0x8977
-#define GL_SWIZZLE_STR_DR_ATI             0x8978
-#define GL_SWIZZLE_STQ_DQ_ATI             0x8979
-#define GL_SWIZZLE_STRQ_ATI               0x897A
-#define GL_SWIZZLE_STRQ_DQ_ATI            0x897B
-#define GL_RED_BIT_ATI                    0x00000001
-#define GL_GREEN_BIT_ATI                  0x00000002
-#define GL_BLUE_BIT_ATI                   0x00000004
-#define GL_2X_BIT_ATI                     0x00000001
-#define GL_4X_BIT_ATI                     0x00000002
-#define GL_8X_BIT_ATI                     0x00000004
-#define GL_HALF_BIT_ATI                   0x00000008
-#define GL_QUARTER_BIT_ATI                0x00000010
-#define GL_EIGHTH_BIT_ATI                 0x00000020
-#define GL_SATURATE_BIT_ATI               0x00000040
-#define GL_COMP_BIT_ATI                   0x00000002
-#define GL_NEGATE_BIT_ATI                 0x00000004
-#define GL_BIAS_BIT_ATI                   0x00000008
-#endif
-
-#ifndef GL_ATI_pn_triangles
-#define GL_PN_TRIANGLES_ATI               0x87F0
-#define GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F1
-#define GL_PN_TRIANGLES_POINT_MODE_ATI    0x87F2
-#define GL_PN_TRIANGLES_NORMAL_MODE_ATI   0x87F3
-#define GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F4
-#define GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI 0x87F5
-#define GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI 0x87F6
-#define GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI 0x87F7
-#define GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI 0x87F8
-#endif
-
-#ifndef GL_ATI_vertex_array_object
-#define GL_STATIC_ATI                     0x8760
-#define GL_DYNAMIC_ATI                    0x8761
-#define GL_PRESERVE_ATI                   0x8762
-#define GL_DISCARD_ATI                    0x8763
-#define GL_OBJECT_BUFFER_SIZE_ATI         0x8764
-#define GL_OBJECT_BUFFER_USAGE_ATI        0x8765
-#define GL_ARRAY_OBJECT_BUFFER_ATI        0x8766
-#define GL_ARRAY_OBJECT_OFFSET_ATI        0x8767
-#endif
-
-#ifndef GL_EXT_vertex_shader
-#define GL_VERTEX_SHADER_EXT              0x8780
-#define GL_VERTEX_SHADER_BINDING_EXT      0x8781
-#define GL_OP_INDEX_EXT                   0x8782
-#define GL_OP_NEGATE_EXT                  0x8783
-#define GL_OP_DOT3_EXT                    0x8784
-#define GL_OP_DOT4_EXT                    0x8785
-#define GL_OP_MUL_EXT                     0x8786
-#define GL_OP_ADD_EXT                     0x8787
-#define GL_OP_MADD_EXT                    0x8788
-#define GL_OP_FRAC_EXT                    0x8789
-#define GL_OP_MAX_EXT                     0x878A
-#define GL_OP_MIN_EXT                     0x878B
-#define GL_OP_SET_GE_EXT                  0x878C
-#define GL_OP_SET_LT_EXT                  0x878D
-#define GL_OP_CLAMP_EXT                   0x878E
-#define GL_OP_FLOOR_EXT                   0x878F
-#define GL_OP_ROUND_EXT                   0x8790
-#define GL_OP_EXP_BASE_2_EXT              0x8791
-#define GL_OP_LOG_BASE_2_EXT              0x8792
-#define GL_OP_POWER_EXT                   0x8793
-#define GL_OP_RECIP_EXT                   0x8794
-#define GL_OP_RECIP_SQRT_EXT              0x8795
-#define GL_OP_SUB_EXT                     0x8796
-#define GL_OP_CROSS_PRODUCT_EXT           0x8797
-#define GL_OP_MULTIPLY_MATRIX_EXT         0x8798
-#define GL_OP_MOV_EXT                     0x8799
-#define GL_OUTPUT_VERTEX_EXT              0x879A
-#define GL_OUTPUT_COLOR0_EXT              0x879B
-#define GL_OUTPUT_COLOR1_EXT              0x879C
-#define GL_OUTPUT_TEXTURE_COORD0_EXT      0x879D
-#define GL_OUTPUT_TEXTURE_COORD1_EXT      0x879E
-#define GL_OUTPUT_TEXTURE_COORD2_EXT      0x879F
-#define GL_OUTPUT_TEXTURE_COORD3_EXT      0x87A0
-#define GL_OUTPUT_TEXTURE_COORD4_EXT      0x87A1
-#define GL_OUTPUT_TEXTURE_COORD5_EXT      0x87A2
-#define GL_OUTPUT_TEXTURE_COORD6_EXT      0x87A3
-#define GL_OUTPUT_TEXTURE_COORD7_EXT      0x87A4
-#define GL_OUTPUT_TEXTURE_COORD8_EXT      0x87A5
-#define GL_OUTPUT_TEXTURE_COORD9_EXT      0x87A6
-#define GL_OUTPUT_TEXTURE_COORD10_EXT     0x87A7
-#define GL_OUTPUT_TEXTURE_COORD11_EXT     0x87A8
-#define GL_OUTPUT_TEXTURE_COORD12_EXT     0x87A9
-#define GL_OUTPUT_TEXTURE_COORD13_EXT     0x87AA
-#define GL_OUTPUT_TEXTURE_COORD14_EXT     0x87AB
-#define GL_OUTPUT_TEXTURE_COORD15_EXT     0x87AC
-#define GL_OUTPUT_TEXTURE_COORD16_EXT     0x87AD
-#define GL_OUTPUT_TEXTURE_COORD17_EXT     0x87AE
-#define GL_OUTPUT_TEXTURE_COORD18_EXT     0x87AF
-#define GL_OUTPUT_TEXTURE_COORD19_EXT     0x87B0
-#define GL_OUTPUT_TEXTURE_COORD20_EXT     0x87B1
-#define GL_OUTPUT_TEXTURE_COORD21_EXT     0x87B2
-#define GL_OUTPUT_TEXTURE_COORD22_EXT     0x87B3
-#define GL_OUTPUT_TEXTURE_COORD23_EXT     0x87B4
-#define GL_OUTPUT_TEXTURE_COORD24_EXT     0x87B5
-#define GL_OUTPUT_TEXTURE_COORD25_EXT     0x87B6
-#define GL_OUTPUT_TEXTURE_COORD26_EXT     0x87B7
-#define GL_OUTPUT_TEXTURE_COORD27_EXT     0x87B8
-#define GL_OUTPUT_TEXTURE_COORD28_EXT     0x87B9
-#define GL_OUTPUT_TEXTURE_COORD29_EXT     0x87BA
-#define GL_OUTPUT_TEXTURE_COORD30_EXT     0x87BB
-#define GL_OUTPUT_TEXTURE_COORD31_EXT     0x87BC
-#define GL_OUTPUT_FOG_EXT                 0x87BD
-#define GL_SCALAR_EXT                     0x87BE
-#define GL_VECTOR_EXT                     0x87BF
-#define GL_MATRIX_EXT                     0x87C0
-#define GL_VARIANT_EXT                    0x87C1
-#define GL_INVARIANT_EXT                  0x87C2
-#define GL_LOCAL_CONSTANT_EXT             0x87C3
-#define GL_LOCAL_EXT                      0x87C4
-#define GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87C5
-#define GL_MAX_VERTEX_SHADER_VARIANTS_EXT 0x87C6
-#define GL_MAX_VERTEX_SHADER_INVARIANTS_EXT 0x87C7
-#define GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87C8
-#define GL_MAX_VERTEX_SHADER_LOCALS_EXT   0x87C9
-#define GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87CA
-#define GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT 0x87CB
-#define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87CC
-#define GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT 0x87CD
-#define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT 0x87CE
-#define GL_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87CF
-#define GL_VERTEX_SHADER_VARIANTS_EXT     0x87D0
-#define GL_VERTEX_SHADER_INVARIANTS_EXT   0x87D1
-#define GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87D2
-#define GL_VERTEX_SHADER_LOCALS_EXT       0x87D3
-#define GL_VERTEX_SHADER_OPTIMIZED_EXT    0x87D4
-#define GL_X_EXT                          0x87D5
-#define GL_Y_EXT                          0x87D6
-#define GL_Z_EXT                          0x87D7
-#define GL_W_EXT                          0x87D8
-#define GL_NEGATIVE_X_EXT                 0x87D9
-#define GL_NEGATIVE_Y_EXT                 0x87DA
-#define GL_NEGATIVE_Z_EXT                 0x87DB
-#define GL_NEGATIVE_W_EXT                 0x87DC
-#define GL_ZERO_EXT                       0x87DD
-#define GL_ONE_EXT                        0x87DE
-#define GL_NEGATIVE_ONE_EXT               0x87DF
-#define GL_NORMALIZED_RANGE_EXT           0x87E0
-#define GL_FULL_RANGE_EXT                 0x87E1
-#define GL_CURRENT_VERTEX_EXT             0x87E2
-#define GL_MVP_MATRIX_EXT                 0x87E3
-#define GL_VARIANT_VALUE_EXT              0x87E4
-#define GL_VARIANT_DATATYPE_EXT           0x87E5
-#define GL_VARIANT_ARRAY_STRIDE_EXT       0x87E6
-#define GL_VARIANT_ARRAY_TYPE_EXT         0x87E7
-#define GL_VARIANT_ARRAY_EXT              0x87E8
-#define GL_VARIANT_ARRAY_POINTER_EXT      0x87E9
-#define GL_INVARIANT_VALUE_EXT            0x87EA
-#define GL_INVARIANT_DATATYPE_EXT         0x87EB
-#define GL_LOCAL_CONSTANT_VALUE_EXT       0x87EC
-#define GL_LOCAL_CONSTANT_DATATYPE_EXT    0x87ED
-#endif
-
-#ifndef GL_ATI_vertex_streams
-#define GL_MAX_VERTEX_STREAMS_ATI         0x876B
-#define GL_VERTEX_STREAM0_ATI             0x876C
-#define GL_VERTEX_STREAM1_ATI             0x876D
-#define GL_VERTEX_STREAM2_ATI             0x876E
-#define GL_VERTEX_STREAM3_ATI             0x876F
-#define GL_VERTEX_STREAM4_ATI             0x8770
-#define GL_VERTEX_STREAM5_ATI             0x8771
-#define GL_VERTEX_STREAM6_ATI             0x8772
-#define GL_VERTEX_STREAM7_ATI             0x8773
-#define GL_VERTEX_SOURCE_ATI              0x8774
-#endif
-
-#ifndef GL_ATI_element_array
-#define GL_ELEMENT_ARRAY_ATI              0x8768
-#define GL_ELEMENT_ARRAY_TYPE_ATI         0x8769
-#define GL_ELEMENT_ARRAY_POINTER_ATI      0x876A
-#endif
-
-#ifndef GL_SUN_mesh_array
-#define GL_QUAD_MESH_SUN                  0x8614
-#define GL_TRIANGLE_MESH_SUN              0x8615
-#endif
-
-#ifndef GL_SUN_slice_accum
-#define GL_SLICE_ACCUM_SUN                0x85CC
-#endif
-
-#ifndef GL_NV_multisample_filter_hint
-#define GL_MULTISAMPLE_FILTER_HINT_NV     0x8534
-#endif
-
-#ifndef GL_NV_depth_clamp
-#define GL_DEPTH_CLAMP_NV                 0x864F
-#endif
-
-#ifndef GL_NV_occlusion_query
-#define GL_PIXEL_COUNTER_BITS_NV          0x8864
-#define GL_CURRENT_OCCLUSION_QUERY_ID_NV  0x8865
-#define GL_PIXEL_COUNT_NV                 0x8866
-#define GL_PIXEL_COUNT_AVAILABLE_NV       0x8867
-#endif
-
-#ifndef GL_NV_point_sprite
-#define GL_POINT_SPRITE_NV                0x8861
-#define GL_COORD_REPLACE_NV               0x8862
-#define GL_POINT_SPRITE_R_MODE_NV         0x8863
-#endif
-
-#ifndef GL_NV_texture_shader3
-#define GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV 0x8850
-#define GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV 0x8851
-#define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8852
-#define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV 0x8853
-#define GL_OFFSET_HILO_TEXTURE_2D_NV      0x8854
-#define GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV 0x8855
-#define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV 0x8856
-#define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8857
-#define GL_DEPENDENT_HILO_TEXTURE_2D_NV   0x8858
-#define GL_DEPENDENT_RGB_TEXTURE_3D_NV    0x8859
-#define GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV 0x885A
-#define GL_DOT_PRODUCT_PASS_THROUGH_NV    0x885B
-#define GL_DOT_PRODUCT_TEXTURE_1D_NV      0x885C
-#define GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV 0x885D
-#define GL_HILO8_NV                       0x885E
-#define GL_SIGNED_HILO8_NV                0x885F
-#define GL_FORCE_BLUE_TO_ONE_NV           0x8860
-#endif
-
-#ifndef GL_NV_vertex_program1_1
-#endif
-
-#ifndef GL_EXT_shadow_funcs
-#endif
-
-#ifndef GL_EXT_stencil_two_side
-#define GL_STENCIL_TEST_TWO_SIDE_EXT      0x8910
-#define GL_ACTIVE_STENCIL_FACE_EXT        0x8911
-#endif
-
-#ifndef GL_ATI_text_fragment_shader
-#define GL_TEXT_FRAGMENT_SHADER_ATI       0x8200
-#endif
-
-#ifndef GL_APPLE_client_storage
-#define GL_UNPACK_CLIENT_STORAGE_APPLE    0x85B2
-#endif
-
-#ifndef GL_APPLE_element_array
-#define GL_ELEMENT_ARRAY_APPLE            0x8A0C
-#define GL_ELEMENT_ARRAY_TYPE_APPLE       0x8A0D
-#define GL_ELEMENT_ARRAY_POINTER_APPLE    0x8A0E
-#endif
-
-#ifndef GL_APPLE_fence
-#define GL_DRAW_PIXELS_APPLE              0x8A0A
-#define GL_FENCE_APPLE                    0x8A0B
-#endif
-
-#ifndef GL_APPLE_vertex_array_object
-#define GL_VERTEX_ARRAY_BINDING_APPLE     0x85B5
-#endif
-
-#ifndef GL_APPLE_vertex_array_range
-#define GL_VERTEX_ARRAY_RANGE_APPLE       0x851D
-#define GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE 0x851E
-#define GL_VERTEX_ARRAY_STORAGE_HINT_APPLE 0x851F
-#define GL_VERTEX_ARRAY_RANGE_POINTER_APPLE 0x8521
-#define GL_STORAGE_CLIENT_APPLE           0x85B4
-#define GL_STORAGE_CACHED_APPLE           0x85BE
-#define GL_STORAGE_SHARED_APPLE           0x85BF
-#endif
-
-#ifndef GL_APPLE_ycbcr_422
-#define GL_YCBCR_422_APPLE                0x85B9
-#define GL_UNSIGNED_SHORT_8_8_APPLE       0x85BA
-#define GL_UNSIGNED_SHORT_8_8_REV_APPLE   0x85BB
-#endif
-
-#ifndef GL_S3_s3tc
-#define GL_RGB_S3TC                       0x83A0
-#define GL_RGB4_S3TC                      0x83A1
-#define GL_RGBA_S3TC                      0x83A2
-#define GL_RGBA4_S3TC                     0x83A3
-#define GL_RGBA_DXT5_S3TC                 0x83A4
-#define GL_RGBA4_DXT5_S3TC                0x83A5
-#endif
-
-#ifndef GL_ATI_draw_buffers
-#define GL_MAX_DRAW_BUFFERS_ATI           0x8824
-#define GL_DRAW_BUFFER0_ATI               0x8825
-#define GL_DRAW_BUFFER1_ATI               0x8826
-#define GL_DRAW_BUFFER2_ATI               0x8827
-#define GL_DRAW_BUFFER3_ATI               0x8828
-#define GL_DRAW_BUFFER4_ATI               0x8829
-#define GL_DRAW_BUFFER5_ATI               0x882A
-#define GL_DRAW_BUFFER6_ATI               0x882B
-#define GL_DRAW_BUFFER7_ATI               0x882C
-#define GL_DRAW_BUFFER8_ATI               0x882D
-#define GL_DRAW_BUFFER9_ATI               0x882E
-#define GL_DRAW_BUFFER10_ATI              0x882F
-#define GL_DRAW_BUFFER11_ATI              0x8830
-#define GL_DRAW_BUFFER12_ATI              0x8831
-#define GL_DRAW_BUFFER13_ATI              0x8832
-#define GL_DRAW_BUFFER14_ATI              0x8833
-#define GL_DRAW_BUFFER15_ATI              0x8834
-#endif
-
-#ifndef GL_ATI_pixel_format_float
-#define GL_RGBA_FLOAT_MODE_ATI            0x8820
-#define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835
-#endif
-
-#ifndef GL_ATI_texture_env_combine3
-#define GL_MODULATE_ADD_ATI               0x8744
-#define GL_MODULATE_SIGNED_ADD_ATI        0x8745
-#define GL_MODULATE_SUBTRACT_ATI          0x8746
-#endif
-
-#ifndef GL_ATI_texture_float
-#define GL_RGBA_FLOAT32_ATI               0x8814
-#define GL_RGB_FLOAT32_ATI                0x8815
-#define GL_ALPHA_FLOAT32_ATI              0x8816
-#define GL_INTENSITY_FLOAT32_ATI          0x8817
-#define GL_LUMINANCE_FLOAT32_ATI          0x8818
-#define GL_LUMINANCE_ALPHA_FLOAT32_ATI    0x8819
-#define GL_RGBA_FLOAT16_ATI               0x881A
-#define GL_RGB_FLOAT16_ATI                0x881B
-#define GL_ALPHA_FLOAT16_ATI              0x881C
-#define GL_INTENSITY_FLOAT16_ATI          0x881D
-#define GL_LUMINANCE_FLOAT16_ATI          0x881E
-#define GL_LUMINANCE_ALPHA_FLOAT16_ATI    0x881F
-#endif
-
-#ifndef GL_NV_float_buffer
-#define GL_FLOAT_R_NV                     0x8880
-#define GL_FLOAT_RG_NV                    0x8881
-#define GL_FLOAT_RGB_NV                   0x8882
-#define GL_FLOAT_RGBA_NV                  0x8883
-#define GL_FLOAT_R16_NV                   0x8884
-#define GL_FLOAT_R32_NV                   0x8885
-#define GL_FLOAT_RG16_NV                  0x8886
-#define GL_FLOAT_RG32_NV                  0x8887
-#define GL_FLOAT_RGB16_NV                 0x8888
-#define GL_FLOAT_RGB32_NV                 0x8889
-#define GL_FLOAT_RGBA16_NV                0x888A
-#define GL_FLOAT_RGBA32_NV                0x888B
-#define GL_TEXTURE_FLOAT_COMPONENTS_NV    0x888C
-#define GL_FLOAT_CLEAR_COLOR_VALUE_NV     0x888D
-#define GL_FLOAT_RGBA_MODE_NV             0x888E
-#endif
-
-#ifndef GL_NV_fragment_program
-#define GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV 0x8868
-#define GL_FRAGMENT_PROGRAM_NV            0x8870
-#define GL_MAX_TEXTURE_COORDS_NV          0x8871
-#define GL_MAX_TEXTURE_IMAGE_UNITS_NV     0x8872
-#define GL_FRAGMENT_PROGRAM_BINDING_NV    0x8873
-#define GL_PROGRAM_ERROR_STRING_NV        0x8874
-#endif
-
-#ifndef GL_NV_half_float
-#define GL_HALF_FLOAT_NV                  0x140B
-#endif
-
-#ifndef GL_NV_pixel_data_range
-#define GL_WRITE_PIXEL_DATA_RANGE_NV      0x8878
-#define GL_READ_PIXEL_DATA_RANGE_NV       0x8879
-#define GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV 0x887A
-#define GL_READ_PIXEL_DATA_RANGE_LENGTH_NV 0x887B
-#define GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV 0x887C
-#define GL_READ_PIXEL_DATA_RANGE_POINTER_NV 0x887D
-#endif
-
-#ifndef GL_NV_primitive_restart
-#define GL_PRIMITIVE_RESTART_NV           0x8558
-#define GL_PRIMITIVE_RESTART_INDEX_NV     0x8559
-#endif
-
-#ifndef GL_NV_texture_expand_normal
-#define GL_TEXTURE_UNSIGNED_REMAP_MODE_NV 0x888F
-#endif
-
-#ifndef GL_NV_vertex_program2
-#endif
-
-#ifndef GL_ATI_map_object_buffer
-#endif
-
-#ifndef GL_ATI_separate_stencil
-#define GL_STENCIL_BACK_FUNC_ATI          0x8800
-#define GL_STENCIL_BACK_FAIL_ATI          0x8801
-#define GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI 0x8802
-#define GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI 0x8803
-#endif
-
-#ifndef GL_ATI_vertex_attrib_array_object
-#endif
-
-#ifndef GL_OES_byte_coordinates
-#endif
-
-#ifndef GL_OES_fixed_point
-#define GL_FIXED_OES                      0x140C
-#endif
-
-#ifndef GL_OES_single_precision
-#endif
-
-#ifndef GL_OES_compressed_paletted_texture
-#define GL_PALETTE4_RGB8_OES              0x8B90
-#define GL_PALETTE4_RGBA8_OES             0x8B91
-#define GL_PALETTE4_R5_G6_B5_OES          0x8B92
-#define GL_PALETTE4_RGBA4_OES             0x8B93
-#define GL_PALETTE4_RGB5_A1_OES           0x8B94
-#define GL_PALETTE8_RGB8_OES              0x8B95
-#define GL_PALETTE8_RGBA8_OES             0x8B96
-#define GL_PALETTE8_R5_G6_B5_OES          0x8B97
-#define GL_PALETTE8_RGBA4_OES             0x8B98
-#define GL_PALETTE8_RGB5_A1_OES           0x8B99
-#endif
-
-#ifndef GL_OES_read_format
-#define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES 0x8B9A
-#define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B
-#endif
-
-#ifndef GL_OES_query_matrix
-#endif
-
-#ifndef GL_EXT_depth_bounds_test
-#define GL_DEPTH_BOUNDS_TEST_EXT          0x8890
-#define GL_DEPTH_BOUNDS_EXT               0x8891
-#endif
-
-#ifndef GL_EXT_texture_mirror_clamp
-#define GL_MIRROR_CLAMP_EXT               0x8742
-#define GL_MIRROR_CLAMP_TO_EDGE_EXT       0x8743
-#define GL_MIRROR_CLAMP_TO_BORDER_EXT     0x8912
-#endif
-
-#ifndef GL_EXT_blend_equation_separate
-#define GL_BLEND_EQUATION_RGB_EXT         0x8009
-#define GL_BLEND_EQUATION_ALPHA_EXT       0x883D
-#endif
-
-#ifndef GL_MESA_pack_invert
-#define GL_PACK_INVERT_MESA               0x8758
-#endif
-
-#ifndef GL_MESA_ycbcr_texture
-#define GL_UNSIGNED_SHORT_8_8_MESA        0x85BA
-#define GL_UNSIGNED_SHORT_8_8_REV_MESA    0x85BB
-#define GL_YCBCR_MESA                     0x8757
-#endif
-
-#ifndef GL_EXT_pixel_buffer_object
-#define GL_PIXEL_PACK_BUFFER_EXT          0x88EB
-#define GL_PIXEL_UNPACK_BUFFER_EXT        0x88EC
-#define GL_PIXEL_PACK_BUFFER_BINDING_EXT  0x88ED
-#define GL_PIXEL_UNPACK_BUFFER_BINDING_EXT 0x88EF
-#endif
-
-#ifndef GL_NV_fragment_program_option
-#endif
-
-#ifndef GL_NV_fragment_program2
-#define GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV 0x88F4
-#define GL_MAX_PROGRAM_CALL_DEPTH_NV      0x88F5
-#define GL_MAX_PROGRAM_IF_DEPTH_NV        0x88F6
-#define GL_MAX_PROGRAM_LOOP_DEPTH_NV      0x88F7
-#define GL_MAX_PROGRAM_LOOP_COUNT_NV      0x88F8
-#endif
-
-#ifndef GL_NV_vertex_program2_option
-/* reuse GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV */
-/* reuse GL_MAX_PROGRAM_CALL_DEPTH_NV */
-#endif
-
-#ifndef GL_NV_vertex_program3
-/* reuse GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB */
-#endif
-
-#ifndef GL_EXT_framebuffer_object
-#define GL_INVALID_FRAMEBUFFER_OPERATION_EXT 0x0506
-#define GL_MAX_RENDERBUFFER_SIZE_EXT      0x84E8
-#define GL_FRAMEBUFFER_BINDING_EXT        0x8CA6
-#define GL_RENDERBUFFER_BINDING_EXT       0x8CA7
-#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT 0x8CD0
-#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT 0x8CD1
-#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT 0x8CD2
-#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT 0x8CD3
-#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT 0x8CD4
-#define GL_FRAMEBUFFER_COMPLETE_EXT       0x8CD5
-#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT 0x8CD6
-#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT 0x8CD7
-#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT 0x8CD9
-#define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT 0x8CDA
-#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT 0x8CDB
-#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT 0x8CDC
-#define GL_FRAMEBUFFER_UNSUPPORTED_EXT    0x8CDD
-#define GL_MAX_COLOR_ATTACHMENTS_EXT      0x8CDF
-#define GL_COLOR_ATTACHMENT0_EXT          0x8CE0
-#define GL_COLOR_ATTACHMENT1_EXT          0x8CE1
-#define GL_COLOR_ATTACHMENT2_EXT          0x8CE2
-#define GL_COLOR_ATTACHMENT3_EXT          0x8CE3
-#define GL_COLOR_ATTACHMENT4_EXT          0x8CE4
-#define GL_COLOR_ATTACHMENT5_EXT          0x8CE5
-#define GL_COLOR_ATTACHMENT6_EXT          0x8CE6
-#define GL_COLOR_ATTACHMENT7_EXT          0x8CE7
-#define GL_COLOR_ATTACHMENT8_EXT          0x8CE8
-#define GL_COLOR_ATTACHMENT9_EXT          0x8CE9
-#define GL_COLOR_ATTACHMENT10_EXT         0x8CEA
-#define GL_COLOR_ATTACHMENT11_EXT         0x8CEB
-#define GL_COLOR_ATTACHMENT12_EXT         0x8CEC
-#define GL_COLOR_ATTACHMENT13_EXT         0x8CED
-#define GL_COLOR_ATTACHMENT14_EXT         0x8CEE
-#define GL_COLOR_ATTACHMENT15_EXT         0x8CEF
-#define GL_DEPTH_ATTACHMENT_EXT           0x8D00
-#define GL_STENCIL_ATTACHMENT_EXT         0x8D20
-#define GL_FRAMEBUFFER_EXT                0x8D40
-#define GL_RENDERBUFFER_EXT               0x8D41
-#define GL_RENDERBUFFER_WIDTH_EXT         0x8D42
-#define GL_RENDERBUFFER_HEIGHT_EXT        0x8D43
-#define GL_RENDERBUFFER_INTERNAL_FORMAT_EXT 0x8D44
-#define GL_STENCIL_INDEX1_EXT             0x8D46
-#define GL_STENCIL_INDEX4_EXT             0x8D47
-#define GL_STENCIL_INDEX8_EXT             0x8D48
-#define GL_STENCIL_INDEX16_EXT            0x8D49
-#define GL_RENDERBUFFER_RED_SIZE_EXT      0x8D50
-#define GL_RENDERBUFFER_GREEN_SIZE_EXT    0x8D51
-#define GL_RENDERBUFFER_BLUE_SIZE_EXT     0x8D52
-#define GL_RENDERBUFFER_ALPHA_SIZE_EXT    0x8D53
-#define GL_RENDERBUFFER_DEPTH_SIZE_EXT    0x8D54
-#define GL_RENDERBUFFER_STENCIL_SIZE_EXT  0x8D55
-#endif
-
-#ifndef GL_GREMEDY_string_marker
-#endif
-
-#ifndef GL_EXT_packed_depth_stencil
-#define GL_DEPTH_STENCIL_EXT              0x84F9
-#define GL_UNSIGNED_INT_24_8_EXT          0x84FA
-#define GL_DEPTH24_STENCIL8_EXT           0x88F0
-#define GL_TEXTURE_STENCIL_SIZE_EXT       0x88F1
-#endif
-
-#ifndef GL_EXT_stencil_clear_tag
-#define GL_STENCIL_TAG_BITS_EXT           0x88F2
-#define GL_STENCIL_CLEAR_TAG_VALUE_EXT    0x88F3
-#endif
-
-#ifndef GL_EXT_texture_sRGB
-#define GL_SRGB_EXT                       0x8C40
-#define GL_SRGB8_EXT                      0x8C41
-#define GL_SRGB_ALPHA_EXT                 0x8C42
-#define GL_SRGB8_ALPHA8_EXT               0x8C43
-#define GL_SLUMINANCE_ALPHA_EXT           0x8C44
-#define GL_SLUMINANCE8_ALPHA8_EXT         0x8C45
-#define GL_SLUMINANCE_EXT                 0x8C46
-#define GL_SLUMINANCE8_EXT                0x8C47
-#define GL_COMPRESSED_SRGB_EXT            0x8C48
-#define GL_COMPRESSED_SRGB_ALPHA_EXT      0x8C49
-#define GL_COMPRESSED_SLUMINANCE_EXT      0x8C4A
-#define GL_COMPRESSED_SLUMINANCE_ALPHA_EXT 0x8C4B
-#define GL_COMPRESSED_SRGB_S3TC_DXT1_EXT  0x8C4C
-#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT 0x8C4D
-#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT 0x8C4E
-#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT 0x8C4F
-#endif
-
-#ifndef GL_EXT_framebuffer_blit
-#define GL_READ_FRAMEBUFFER_EXT           0x8CA8
-#define GL_DRAW_FRAMEBUFFER_EXT           0x8CA9
-#define GL_DRAW_FRAMEBUFFER_BINDING_EXT   GL_FRAMEBUFFER_BINDING_EXT
-#define GL_READ_FRAMEBUFFER_BINDING_EXT   0x8CAA
-#endif
-
-#ifndef GL_EXT_framebuffer_multisample
-#define GL_RENDERBUFFER_SAMPLES_EXT       0x8CAB
-#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT 0x8D56
-#define GL_MAX_SAMPLES_EXT                0x8D57
-#endif
-
-#ifndef GL_MESAX_texture_stack
-#define GL_TEXTURE_1D_STACK_MESAX         0x8759
-#define GL_TEXTURE_2D_STACK_MESAX         0x875A
-#define GL_PROXY_TEXTURE_1D_STACK_MESAX   0x875B
-#define GL_PROXY_TEXTURE_2D_STACK_MESAX   0x875C
-#define GL_TEXTURE_1D_STACK_BINDING_MESAX 0x875D
-#define GL_TEXTURE_2D_STACK_BINDING_MESAX 0x875E
-#endif
-
-#ifndef GL_EXT_timer_query
-#define GL_TIME_ELAPSED_EXT               0x88BF
-#endif
-
-#ifndef GL_EXT_gpu_program_parameters
-#endif
-
-#ifndef GL_APPLE_flush_buffer_range
-#define GL_BUFFER_SERIALIZED_MODIFY_APPLE 0x8A12
-#define GL_BUFFER_FLUSHING_UNMAP_APPLE    0x8A13
-#endif
-
-#ifndef GL_NV_gpu_program4
-#define GL_MIN_PROGRAM_TEXEL_OFFSET_NV    0x8904
-#define GL_MAX_PROGRAM_TEXEL_OFFSET_NV    0x8905
-#define GL_PROGRAM_ATTRIB_COMPONENTS_NV   0x8906
-#define GL_PROGRAM_RESULT_COMPONENTS_NV   0x8907
-#define GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV 0x8908
-#define GL_MAX_PROGRAM_RESULT_COMPONENTS_NV 0x8909
-#define GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV 0x8DA5
-#define GL_MAX_PROGRAM_GENERIC_RESULTS_NV 0x8DA6
-#endif
-
-#ifndef GL_NV_geometry_program4
-#define GL_LINES_ADJACENCY_EXT            0x000A
-#define GL_LINE_STRIP_ADJACENCY_EXT       0x000B
-#define GL_TRIANGLES_ADJACENCY_EXT        0x000C
-#define GL_TRIANGLE_STRIP_ADJACENCY_EXT   0x000D
-#define GL_GEOMETRY_PROGRAM_NV            0x8C26
-#define GL_MAX_PROGRAM_OUTPUT_VERTICES_NV 0x8C27
-#define GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV 0x8C28
-#define GL_GEOMETRY_VERTICES_OUT_EXT      0x8DDA
-#define GL_GEOMETRY_INPUT_TYPE_EXT        0x8DDB
-#define GL_GEOMETRY_OUTPUT_TYPE_EXT       0x8DDC
-#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT 0x8C29
-#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT 0x8DA7
-#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT 0x8DA8
-#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT 0x8DA9
-#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT 0x8CD4
-#define GL_PROGRAM_POINT_SIZE_EXT         0x8642
-#endif
-
-#ifndef GL_EXT_geometry_shader4
-#define GL_GEOMETRY_SHADER_EXT            0x8DD9
-/* reuse GL_GEOMETRY_VERTICES_OUT_EXT */
-/* reuse GL_GEOMETRY_INPUT_TYPE_EXT */
-/* reuse GL_GEOMETRY_OUTPUT_TYPE_EXT */
-/* reuse GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT */
-#define GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT 0x8DDD
-#define GL_MAX_VERTEX_VARYING_COMPONENTS_EXT 0x8DDE
-#define GL_MAX_VARYING_COMPONENTS_EXT     0x8B4B
-#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT 0x8DDF
-#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT 0x8DE0
-#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT 0x8DE1
-/* reuse GL_LINES_ADJACENCY_EXT */
-/* reuse GL_LINE_STRIP_ADJACENCY_EXT */
-/* reuse GL_TRIANGLES_ADJACENCY_EXT */
-/* reuse GL_TRIANGLE_STRIP_ADJACENCY_EXT */
-/* reuse GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT */
-/* reuse GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT */
-/* reuse GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT */
-/* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT */
-/* reuse GL_PROGRAM_POINT_SIZE_EXT */
-#endif
-
-#ifndef GL_NV_vertex_program4
-#define GL_VERTEX_ATTRIB_ARRAY_INTEGER_NV 0x88FD
-#endif
-
-#ifndef GL_EXT_gpu_shader4
-#define GL_SAMPLER_1D_ARRAY_EXT           0x8DC0
-#define GL_SAMPLER_2D_ARRAY_EXT           0x8DC1
-#define GL_SAMPLER_BUFFER_EXT             0x8DC2
-#define GL_SAMPLER_1D_ARRAY_SHADOW_EXT    0x8DC3
-#define GL_SAMPLER_2D_ARRAY_SHADOW_EXT    0x8DC4
-#define GL_SAMPLER_CUBE_SHADOW_EXT        0x8DC5
-#define GL_UNSIGNED_INT_VEC2_EXT          0x8DC6
-#define GL_UNSIGNED_INT_VEC3_EXT          0x8DC7
-#define GL_UNSIGNED_INT_VEC4_EXT          0x8DC8
-#define GL_INT_SAMPLER_1D_EXT             0x8DC9
-#define GL_INT_SAMPLER_2D_EXT             0x8DCA
-#define GL_INT_SAMPLER_3D_EXT             0x8DCB
-#define GL_INT_SAMPLER_CUBE_EXT           0x8DCC
-#define GL_INT_SAMPLER_2D_RECT_EXT        0x8DCD
-#define GL_INT_SAMPLER_1D_ARRAY_EXT       0x8DCE
-#define GL_INT_SAMPLER_2D_ARRAY_EXT       0x8DCF
-#define GL_INT_SAMPLER_BUFFER_EXT         0x8DD0
-#define GL_UNSIGNED_INT_SAMPLER_1D_EXT    0x8DD1
-#define GL_UNSIGNED_INT_SAMPLER_2D_EXT    0x8DD2
-#define GL_UNSIGNED_INT_SAMPLER_3D_EXT    0x8DD3
-#define GL_UNSIGNED_INT_SAMPLER_CUBE_EXT  0x8DD4
-#define GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT 0x8DD5
-#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT 0x8DD6
-#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT 0x8DD7
-#define GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT 0x8DD8
-#endif
-
-#ifndef GL_EXT_draw_instanced
-#endif
-
-#ifndef GL_EXT_packed_float
-#define GL_R11F_G11F_B10F_EXT             0x8C3A
-#define GL_UNSIGNED_INT_10F_11F_11F_REV_EXT 0x8C3B
-#define GL_RGBA_SIGNED_COMPONENTS_EXT     0x8C3C
-#endif
-
-#ifndef GL_EXT_texture_array
-#define GL_TEXTURE_1D_ARRAY_EXT           0x8C18
-#define GL_PROXY_TEXTURE_1D_ARRAY_EXT     0x8C19
-#define GL_TEXTURE_2D_ARRAY_EXT           0x8C1A
-#define GL_PROXY_TEXTURE_2D_ARRAY_EXT     0x8C1B
-#define GL_TEXTURE_BINDING_1D_ARRAY_EXT   0x8C1C
-#define GL_TEXTURE_BINDING_2D_ARRAY_EXT   0x8C1D
-#define GL_MAX_ARRAY_TEXTURE_LAYERS_EXT   0x88FF
-#define GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT 0x884E
-/* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT */
-#endif
-
-#ifndef GL_EXT_texture_buffer_object
-#define GL_TEXTURE_BUFFER_EXT             0x8C2A
-#define GL_MAX_TEXTURE_BUFFER_SIZE_EXT    0x8C2B
-#define GL_TEXTURE_BINDING_BUFFER_EXT     0x8C2C
-#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT 0x8C2D
-#define GL_TEXTURE_BUFFER_FORMAT_EXT      0x8C2E
-#endif
-
-#ifndef GL_EXT_texture_compression_latc
-#define GL_COMPRESSED_LUMINANCE_LATC1_EXT 0x8C70
-#define GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT 0x8C71
-#define GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT 0x8C72
-#define GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT 0x8C73
-#endif
-
-#ifndef GL_EXT_texture_compression_rgtc
-#define GL_COMPRESSED_RED_RGTC1_EXT       0x8DBB
-#define GL_COMPRESSED_SIGNED_RED_RGTC1_EXT 0x8DBC
-#define GL_COMPRESSED_RED_GREEN_RGTC2_EXT 0x8DBD
-#define GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT 0x8DBE
-#endif
-
-#ifndef GL_EXT_texture_shared_exponent
-#define GL_RGB9_E5_EXT                    0x8C3D
-#define GL_UNSIGNED_INT_5_9_9_9_REV_EXT   0x8C3E
-#define GL_TEXTURE_SHARED_SIZE_EXT        0x8C3F
-#endif
-
-#ifndef GL_NV_depth_buffer_float
-#define GL_DEPTH_COMPONENT32F_NV          0x8DAB
-#define GL_DEPTH32F_STENCIL8_NV           0x8DAC
-#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV 0x8DAD
-#define GL_DEPTH_BUFFER_FLOAT_MODE_NV     0x8DAF
-#endif
-
-#ifndef GL_NV_fragment_program4
-#endif
-
-#ifndef GL_NV_framebuffer_multisample_coverage
-#define GL_RENDERBUFFER_COVERAGE_SAMPLES_NV 0x8CAB
-#define GL_RENDERBUFFER_COLOR_SAMPLES_NV  0x8E10
-#define GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV 0x8E11
-#define GL_MULTISAMPLE_COVERAGE_MODES_NV  0x8E12
-#endif
-
-#ifndef GL_EXT_framebuffer_sRGB
-#define GL_FRAMEBUFFER_SRGB_EXT           0x8DB9
-#define GL_FRAMEBUFFER_SRGB_CAPABLE_EXT   0x8DBA
-#endif
-
-#ifndef GL_NV_geometry_shader4
-#endif
-
-#ifndef GL_NV_parameter_buffer_object
-#define GL_MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV 0x8DA0
-#define GL_MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV 0x8DA1
-#define GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV 0x8DA2
-#define GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV 0x8DA3
-#define GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV 0x8DA4
-#endif
-
-#ifndef GL_EXT_draw_buffers2
-#endif
-
-#ifndef GL_NV_transform_feedback
-#define GL_BACK_PRIMARY_COLOR_NV          0x8C77
-#define GL_BACK_SECONDARY_COLOR_NV        0x8C78
-#define GL_TEXTURE_COORD_NV               0x8C79
-#define GL_CLIP_DISTANCE_NV               0x8C7A
-#define GL_VERTEX_ID_NV                   0x8C7B
-#define GL_PRIMITIVE_ID_NV                0x8C7C
-#define GL_GENERIC_ATTRIB_NV              0x8C7D
-#define GL_TRANSFORM_FEEDBACK_ATTRIBS_NV  0x8C7E
-#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV 0x8C7F
-#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV 0x8C80
-#define GL_ACTIVE_VARYINGS_NV             0x8C81
-#define GL_ACTIVE_VARYING_MAX_LENGTH_NV   0x8C82
-#define GL_TRANSFORM_FEEDBACK_VARYINGS_NV 0x8C83
-#define GL_TRANSFORM_FEEDBACK_BUFFER_START_NV 0x8C84
-#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV 0x8C85
-#define GL_TRANSFORM_FEEDBACK_RECORD_NV   0x8C86
-#define GL_PRIMITIVES_GENERATED_NV        0x8C87
-#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV 0x8C88
-#define GL_RASTERIZER_DISCARD_NV          0x8C89
-#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV 0x8C8A
-#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV 0x8C8B
-#define GL_INTERLEAVED_ATTRIBS_NV         0x8C8C
-#define GL_SEPARATE_ATTRIBS_NV            0x8C8D
-#define GL_TRANSFORM_FEEDBACK_BUFFER_NV   0x8C8E
-#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV 0x8C8F
-#define GL_LAYER_NV                       0x8DAA
-#define GL_NEXT_BUFFER_NV                 -2
-#define GL_SKIP_COMPONENTS4_NV            -3
-#define GL_SKIP_COMPONENTS3_NV            -4
-#define GL_SKIP_COMPONENTS2_NV            -5
-#define GL_SKIP_COMPONENTS1_NV            -6
-#endif
-
-#ifndef GL_EXT_bindable_uniform
-#define GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT 0x8DE2
-#define GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT 0x8DE3
-#define GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT 0x8DE4
-#define GL_MAX_BINDABLE_UNIFORM_SIZE_EXT  0x8DED
-#define GL_UNIFORM_BUFFER_EXT             0x8DEE
-#define GL_UNIFORM_BUFFER_BINDING_EXT     0x8DEF
-#endif
-
-#ifndef GL_EXT_texture_integer
-#define GL_RGBA32UI_EXT                   0x8D70
-#define GL_RGB32UI_EXT                    0x8D71
-#define GL_ALPHA32UI_EXT                  0x8D72
-#define GL_INTENSITY32UI_EXT              0x8D73
-#define GL_LUMINANCE32UI_EXT              0x8D74
-#define GL_LUMINANCE_ALPHA32UI_EXT        0x8D75
-#define GL_RGBA16UI_EXT                   0x8D76
-#define GL_RGB16UI_EXT                    0x8D77
-#define GL_ALPHA16UI_EXT                  0x8D78
-#define GL_INTENSITY16UI_EXT              0x8D79
-#define GL_LUMINANCE16UI_EXT              0x8D7A
-#define GL_LUMINANCE_ALPHA16UI_EXT        0x8D7B
-#define GL_RGBA8UI_EXT                    0x8D7C
-#define GL_RGB8UI_EXT                     0x8D7D
-#define GL_ALPHA8UI_EXT                   0x8D7E
-#define GL_INTENSITY8UI_EXT               0x8D7F
-#define GL_LUMINANCE8UI_EXT               0x8D80
-#define GL_LUMINANCE_ALPHA8UI_EXT         0x8D81
-#define GL_RGBA32I_EXT                    0x8D82
-#define GL_RGB32I_EXT                     0x8D83
-#define GL_ALPHA32I_EXT                   0x8D84
-#define GL_INTENSITY32I_EXT               0x8D85
-#define GL_LUMINANCE32I_EXT               0x8D86
-#define GL_LUMINANCE_ALPHA32I_EXT         0x8D87
-#define GL_RGBA16I_EXT                    0x8D88
-#define GL_RGB16I_EXT                     0x8D89
-#define GL_ALPHA16I_EXT                   0x8D8A
-#define GL_INTENSITY16I_EXT               0x8D8B
-#define GL_LUMINANCE16I_EXT               0x8D8C
-#define GL_LUMINANCE_ALPHA16I_EXT         0x8D8D
-#define GL_RGBA8I_EXT                     0x8D8E
-#define GL_RGB8I_EXT                      0x8D8F
-#define GL_ALPHA8I_EXT                    0x8D90
-#define GL_INTENSITY8I_EXT                0x8D91
-#define GL_LUMINANCE8I_EXT                0x8D92
-#define GL_LUMINANCE_ALPHA8I_EXT          0x8D93
-#define GL_RED_INTEGER_EXT                0x8D94
-#define GL_GREEN_INTEGER_EXT              0x8D95
-#define GL_BLUE_INTEGER_EXT               0x8D96
-#define GL_ALPHA_INTEGER_EXT              0x8D97
-#define GL_RGB_INTEGER_EXT                0x8D98
-#define GL_RGBA_INTEGER_EXT               0x8D99
-#define GL_BGR_INTEGER_EXT                0x8D9A
-#define GL_BGRA_INTEGER_EXT               0x8D9B
-#define GL_LUMINANCE_INTEGER_EXT          0x8D9C
-#define GL_LUMINANCE_ALPHA_INTEGER_EXT    0x8D9D
-#define GL_RGBA_INTEGER_MODE_EXT          0x8D9E
-#endif
-
-#ifndef GL_GREMEDY_frame_terminator
-#endif
-
-#ifndef GL_NV_conditional_render
-#define GL_QUERY_WAIT_NV                  0x8E13
-#define GL_QUERY_NO_WAIT_NV               0x8E14
-#define GL_QUERY_BY_REGION_WAIT_NV        0x8E15
-#define GL_QUERY_BY_REGION_NO_WAIT_NV     0x8E16
-#endif
-
-#ifndef GL_NV_present_video
-#define GL_FRAME_NV                       0x8E26
-#define GL_FIELDS_NV                      0x8E27
-#define GL_CURRENT_TIME_NV                0x8E28
-#define GL_NUM_FILL_STREAMS_NV            0x8E29
-#define GL_PRESENT_TIME_NV                0x8E2A
-#define GL_PRESENT_DURATION_NV            0x8E2B
-#endif
-
-#ifndef GL_EXT_transform_feedback
-#define GL_TRANSFORM_FEEDBACK_BUFFER_EXT  0x8C8E
-#define GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT 0x8C84
-#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT 0x8C85
-#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT 0x8C8F
-#define GL_INTERLEAVED_ATTRIBS_EXT        0x8C8C
-#define GL_SEPARATE_ATTRIBS_EXT           0x8C8D
-#define GL_PRIMITIVES_GENERATED_EXT       0x8C87
-#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT 0x8C88
-#define GL_RASTERIZER_DISCARD_EXT         0x8C89
-#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT 0x8C8A
-#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT 0x8C8B
-#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT 0x8C80
-#define GL_TRANSFORM_FEEDBACK_VARYINGS_EXT 0x8C83
-#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT 0x8C7F
-#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT 0x8C76
-#endif
-
-#ifndef GL_EXT_direct_state_access
-#define GL_PROGRAM_MATRIX_EXT             0x8E2D
-#define GL_TRANSPOSE_PROGRAM_MATRIX_EXT   0x8E2E
-#define GL_PROGRAM_MATRIX_STACK_DEPTH_EXT 0x8E2F
-#endif
-
-#ifndef GL_EXT_vertex_array_bgra
-/* reuse GL_BGRA */
-#endif
-
-#ifndef GL_EXT_texture_swizzle
-#define GL_TEXTURE_SWIZZLE_R_EXT          0x8E42
-#define GL_TEXTURE_SWIZZLE_G_EXT          0x8E43
-#define GL_TEXTURE_SWIZZLE_B_EXT          0x8E44
-#define GL_TEXTURE_SWIZZLE_A_EXT          0x8E45
-#define GL_TEXTURE_SWIZZLE_RGBA_EXT       0x8E46
-#endif
-
-#ifndef GL_NV_explicit_multisample
-#define GL_SAMPLE_POSITION_NV             0x8E50
-#define GL_SAMPLE_MASK_NV                 0x8E51
-#define GL_SAMPLE_MASK_VALUE_NV           0x8E52
-#define GL_TEXTURE_BINDING_RENDERBUFFER_NV 0x8E53
-#define GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV 0x8E54
-#define GL_TEXTURE_RENDERBUFFER_NV        0x8E55
-#define GL_SAMPLER_RENDERBUFFER_NV        0x8E56
-#define GL_INT_SAMPLER_RENDERBUFFER_NV    0x8E57
-#define GL_UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV 0x8E58
-#define GL_MAX_SAMPLE_MASK_WORDS_NV       0x8E59
-#endif
-
-#ifndef GL_NV_transform_feedback2
-#define GL_TRANSFORM_FEEDBACK_NV          0x8E22
-#define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV 0x8E23
-#define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV 0x8E24
-#define GL_TRANSFORM_FEEDBACK_BINDING_NV  0x8E25
-#endif
-
-#ifndef GL_ATI_meminfo
-#define GL_VBO_FREE_MEMORY_ATI            0x87FB
-#define GL_TEXTURE_FREE_MEMORY_ATI        0x87FC
-#define GL_RENDERBUFFER_FREE_MEMORY_ATI   0x87FD
-#endif
-
-#ifndef GL_AMD_performance_monitor
-#define GL_COUNTER_TYPE_AMD               0x8BC0
-#define GL_COUNTER_RANGE_AMD              0x8BC1
-#define GL_UNSIGNED_INT64_AMD             0x8BC2
-#define GL_PERCENTAGE_AMD                 0x8BC3
-#define GL_PERFMON_RESULT_AVAILABLE_AMD   0x8BC4
-#define GL_PERFMON_RESULT_SIZE_AMD        0x8BC5
-#define GL_PERFMON_RESULT_AMD             0x8BC6
-#endif
-
-#ifndef GL_AMD_texture_texture4
-#endif
-
-#ifndef GL_AMD_vertex_shader_tesselator
-#define GL_SAMPLER_BUFFER_AMD             0x9001
-#define GL_INT_SAMPLER_BUFFER_AMD         0x9002
-#define GL_UNSIGNED_INT_SAMPLER_BUFFER_AMD 0x9003
-#define GL_TESSELLATION_MODE_AMD          0x9004
-#define GL_TESSELLATION_FACTOR_AMD        0x9005
-#define GL_DISCRETE_AMD                   0x9006
-#define GL_CONTINUOUS_AMD                 0x9007
-#endif
-
-#ifndef GL_EXT_provoking_vertex
-#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT 0x8E4C
-#define GL_FIRST_VERTEX_CONVENTION_EXT    0x8E4D
-#define GL_LAST_VERTEX_CONVENTION_EXT     0x8E4E
-#define GL_PROVOKING_VERTEX_EXT           0x8E4F
-#endif
-
-#ifndef GL_EXT_texture_snorm
-#define GL_ALPHA_SNORM                    0x9010
-#define GL_LUMINANCE_SNORM                0x9011
-#define GL_LUMINANCE_ALPHA_SNORM          0x9012
-#define GL_INTENSITY_SNORM                0x9013
-#define GL_ALPHA8_SNORM                   0x9014
-#define GL_LUMINANCE8_SNORM               0x9015
-#define GL_LUMINANCE8_ALPHA8_SNORM        0x9016
-#define GL_INTENSITY8_SNORM               0x9017
-#define GL_ALPHA16_SNORM                  0x9018
-#define GL_LUMINANCE16_SNORM              0x9019
-#define GL_LUMINANCE16_ALPHA16_SNORM      0x901A
-#define GL_INTENSITY16_SNORM              0x901B
-/* reuse GL_RED_SNORM */
-/* reuse GL_RG_SNORM */
-/* reuse GL_RGB_SNORM */
-/* reuse GL_RGBA_SNORM */
-/* reuse GL_R8_SNORM */
-/* reuse GL_RG8_SNORM */
-/* reuse GL_RGB8_SNORM */
-/* reuse GL_RGBA8_SNORM */
-/* reuse GL_R16_SNORM */
-/* reuse GL_RG16_SNORM */
-/* reuse GL_RGB16_SNORM */
-/* reuse GL_RGBA16_SNORM */
-/* reuse GL_SIGNED_NORMALIZED */
-#endif
-
-#ifndef GL_AMD_draw_buffers_blend
-#endif
-
-#ifndef GL_APPLE_texture_range
-#define GL_TEXTURE_RANGE_LENGTH_APPLE     0x85B7
-#define GL_TEXTURE_RANGE_POINTER_APPLE    0x85B8
-#define GL_TEXTURE_STORAGE_HINT_APPLE     0x85BC
-#define GL_STORAGE_PRIVATE_APPLE          0x85BD
-/* reuse GL_STORAGE_CACHED_APPLE */
-/* reuse GL_STORAGE_SHARED_APPLE */
-#endif
-
-#ifndef GL_APPLE_float_pixels
-#define GL_HALF_APPLE                     0x140B
-#define GL_RGBA_FLOAT32_APPLE             0x8814
-#define GL_RGB_FLOAT32_APPLE              0x8815
-#define GL_ALPHA_FLOAT32_APPLE            0x8816
-#define GL_INTENSITY_FLOAT32_APPLE        0x8817
-#define GL_LUMINANCE_FLOAT32_APPLE        0x8818
-#define GL_LUMINANCE_ALPHA_FLOAT32_APPLE  0x8819
-#define GL_RGBA_FLOAT16_APPLE             0x881A
-#define GL_RGB_FLOAT16_APPLE              0x881B
-#define GL_ALPHA_FLOAT16_APPLE            0x881C
-#define GL_INTENSITY_FLOAT16_APPLE        0x881D
-#define GL_LUMINANCE_FLOAT16_APPLE        0x881E
-#define GL_LUMINANCE_ALPHA_FLOAT16_APPLE  0x881F
-#define GL_COLOR_FLOAT_APPLE              0x8A0F
-#endif
-
-#ifndef GL_APPLE_vertex_program_evaluators
-#define GL_VERTEX_ATTRIB_MAP1_APPLE       0x8A00
-#define GL_VERTEX_ATTRIB_MAP2_APPLE       0x8A01
-#define GL_VERTEX_ATTRIB_MAP1_SIZE_APPLE  0x8A02
-#define GL_VERTEX_ATTRIB_MAP1_COEFF_APPLE 0x8A03
-#define GL_VERTEX_ATTRIB_MAP1_ORDER_APPLE 0x8A04
-#define GL_VERTEX_ATTRIB_MAP1_DOMAIN_APPLE 0x8A05
-#define GL_VERTEX_ATTRIB_MAP2_SIZE_APPLE  0x8A06
-#define GL_VERTEX_ATTRIB_MAP2_COEFF_APPLE 0x8A07
-#define GL_VERTEX_ATTRIB_MAP2_ORDER_APPLE 0x8A08
-#define GL_VERTEX_ATTRIB_MAP2_DOMAIN_APPLE 0x8A09
-#endif
-
-#ifndef GL_APPLE_aux_depth_stencil
-#define GL_AUX_DEPTH_STENCIL_APPLE        0x8A14
-#endif
-
-#ifndef GL_APPLE_object_purgeable
-#define GL_BUFFER_OBJECT_APPLE            0x85B3
-#define GL_RELEASED_APPLE                 0x8A19
-#define GL_VOLATILE_APPLE                 0x8A1A
-#define GL_RETAINED_APPLE                 0x8A1B
-#define GL_UNDEFINED_APPLE                0x8A1C
-#define GL_PURGEABLE_APPLE                0x8A1D
-#endif
-
-#ifndef GL_APPLE_row_bytes
-#define GL_PACK_ROW_BYTES_APPLE           0x8A15
-#define GL_UNPACK_ROW_BYTES_APPLE         0x8A16
-#endif
-
-#ifndef GL_APPLE_rgb_422
-#define GL_RGB_422_APPLE                  0x8A1F
-/* reuse GL_UNSIGNED_SHORT_8_8_APPLE */
-/* reuse GL_UNSIGNED_SHORT_8_8_REV_APPLE */
-#endif
-
-#ifndef GL_NV_video_capture
-#define GL_VIDEO_BUFFER_NV                0x9020
-#define GL_VIDEO_BUFFER_BINDING_NV        0x9021
-#define GL_FIELD_UPPER_NV                 0x9022
-#define GL_FIELD_LOWER_NV                 0x9023
-#define GL_NUM_VIDEO_CAPTURE_STREAMS_NV   0x9024
-#define GL_NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV 0x9025
-#define GL_VIDEO_CAPTURE_TO_422_SUPPORTED_NV 0x9026
-#define GL_LAST_VIDEO_CAPTURE_STATUS_NV   0x9027
-#define GL_VIDEO_BUFFER_PITCH_NV          0x9028
-#define GL_VIDEO_COLOR_CONVERSION_MATRIX_NV 0x9029
-#define GL_VIDEO_COLOR_CONVERSION_MAX_NV  0x902A
-#define GL_VIDEO_COLOR_CONVERSION_MIN_NV  0x902B
-#define GL_VIDEO_COLOR_CONVERSION_OFFSET_NV 0x902C
-#define GL_VIDEO_BUFFER_INTERNAL_FORMAT_NV 0x902D
-#define GL_PARTIAL_SUCCESS_NV             0x902E
-#define GL_SUCCESS_NV                     0x902F
-#define GL_FAILURE_NV                     0x9030
-#define GL_YCBYCR8_422_NV                 0x9031
-#define GL_YCBAYCR8A_4224_NV              0x9032
-#define GL_Z6Y10Z6CB10Z6Y10Z6CR10_422_NV  0x9033
-#define GL_Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV 0x9034
-#define GL_Z4Y12Z4CB12Z4Y12Z4CR12_422_NV  0x9035
-#define GL_Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV 0x9036
-#define GL_Z4Y12Z4CB12Z4CR12_444_NV       0x9037
-#define GL_VIDEO_CAPTURE_FRAME_WIDTH_NV   0x9038
-#define GL_VIDEO_CAPTURE_FRAME_HEIGHT_NV  0x9039
-#define GL_VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV 0x903A
-#define GL_VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV 0x903B
-#define GL_VIDEO_CAPTURE_SURFACE_ORIGIN_NV 0x903C
-#endif
-
-#ifndef GL_NV_copy_image
-#endif
-
-#ifndef GL_EXT_separate_shader_objects
-#define GL_ACTIVE_PROGRAM_EXT             0x8B8D
-#endif
-
-#ifndef GL_NV_parameter_buffer_object2
-#endif
-
-#ifndef GL_NV_shader_buffer_load
-#define GL_BUFFER_GPU_ADDRESS_NV          0x8F1D
-#define GL_GPU_ADDRESS_NV                 0x8F34
-#define GL_MAX_SHADER_BUFFER_ADDRESS_NV   0x8F35
-#endif
-
-#ifndef GL_NV_vertex_buffer_unified_memory
-#define GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV 0x8F1E
-#define GL_ELEMENT_ARRAY_UNIFIED_NV       0x8F1F
-#define GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV 0x8F20
-#define GL_VERTEX_ARRAY_ADDRESS_NV        0x8F21
-#define GL_NORMAL_ARRAY_ADDRESS_NV        0x8F22
-#define GL_COLOR_ARRAY_ADDRESS_NV         0x8F23
-#define GL_INDEX_ARRAY_ADDRESS_NV         0x8F24
-#define GL_TEXTURE_COORD_ARRAY_ADDRESS_NV 0x8F25
-#define GL_EDGE_FLAG_ARRAY_ADDRESS_NV     0x8F26
-#define GL_SECONDARY_COLOR_ARRAY_ADDRESS_NV 0x8F27
-#define GL_FOG_COORD_ARRAY_ADDRESS_NV     0x8F28
-#define GL_ELEMENT_ARRAY_ADDRESS_NV       0x8F29
-#define GL_VERTEX_ATTRIB_ARRAY_LENGTH_NV  0x8F2A
-#define GL_VERTEX_ARRAY_LENGTH_NV         0x8F2B
-#define GL_NORMAL_ARRAY_LENGTH_NV         0x8F2C
-#define GL_COLOR_ARRAY_LENGTH_NV          0x8F2D
-#define GL_INDEX_ARRAY_LENGTH_NV          0x8F2E
-#define GL_TEXTURE_COORD_ARRAY_LENGTH_NV  0x8F2F
-#define GL_EDGE_FLAG_ARRAY_LENGTH_NV      0x8F30
-#define GL_SECONDARY_COLOR_ARRAY_LENGTH_NV 0x8F31
-#define GL_FOG_COORD_ARRAY_LENGTH_NV      0x8F32
-#define GL_ELEMENT_ARRAY_LENGTH_NV        0x8F33
-#define GL_DRAW_INDIRECT_UNIFIED_NV       0x8F40
-#define GL_DRAW_INDIRECT_ADDRESS_NV       0x8F41
-#define GL_DRAW_INDIRECT_LENGTH_NV        0x8F42
-#endif
-
-#ifndef GL_NV_texture_barrier
-#endif
-
-#ifndef GL_AMD_shader_stencil_export
-#endif
-
-#ifndef GL_AMD_seamless_cubemap_per_texture
-/* reuse GL_TEXTURE_CUBE_MAP_SEAMLESS */
-#endif
-
-#ifndef GL_AMD_conservative_depth
-#endif
-
-#ifndef GL_EXT_shader_image_load_store
-#define GL_MAX_IMAGE_UNITS_EXT            0x8F38
-#define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT 0x8F39
-#define GL_IMAGE_BINDING_NAME_EXT         0x8F3A
-#define GL_IMAGE_BINDING_LEVEL_EXT        0x8F3B
-#define GL_IMAGE_BINDING_LAYERED_EXT      0x8F3C
-#define GL_IMAGE_BINDING_LAYER_EXT        0x8F3D
-#define GL_IMAGE_BINDING_ACCESS_EXT       0x8F3E
-#define GL_IMAGE_1D_EXT                   0x904C
-#define GL_IMAGE_2D_EXT                   0x904D
-#define GL_IMAGE_3D_EXT                   0x904E
-#define GL_IMAGE_2D_RECT_EXT              0x904F
-#define GL_IMAGE_CUBE_EXT                 0x9050
-#define GL_IMAGE_BUFFER_EXT               0x9051
-#define GL_IMAGE_1D_ARRAY_EXT             0x9052
-#define GL_IMAGE_2D_ARRAY_EXT             0x9053
-#define GL_IMAGE_CUBE_MAP_ARRAY_EXT       0x9054
-#define GL_IMAGE_2D_MULTISAMPLE_EXT       0x9055
-#define GL_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x9056
-#define GL_INT_IMAGE_1D_EXT               0x9057
-#define GL_INT_IMAGE_2D_EXT               0x9058
-#define GL_INT_IMAGE_3D_EXT               0x9059
-#define GL_INT_IMAGE_2D_RECT_EXT          0x905A
-#define GL_INT_IMAGE_CUBE_EXT             0x905B
-#define GL_INT_IMAGE_BUFFER_EXT           0x905C
-#define GL_INT_IMAGE_1D_ARRAY_EXT         0x905D
-#define GL_INT_IMAGE_2D_ARRAY_EXT         0x905E
-#define GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT   0x905F
-#define GL_INT_IMAGE_2D_MULTISAMPLE_EXT   0x9060
-#define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x9061
-#define GL_UNSIGNED_INT_IMAGE_1D_EXT      0x9062
-#define GL_UNSIGNED_INT_IMAGE_2D_EXT      0x9063
-#define GL_UNSIGNED_INT_IMAGE_3D_EXT      0x9064
-#define GL_UNSIGNED_INT_IMAGE_2D_RECT_EXT 0x9065
-#define GL_UNSIGNED_INT_IMAGE_CUBE_EXT    0x9066
-#define GL_UNSIGNED_INT_IMAGE_BUFFER_EXT  0x9067
-#define GL_UNSIGNED_INT_IMAGE_1D_ARRAY_EXT 0x9068
-#define GL_UNSIGNED_INT_IMAGE_2D_ARRAY_EXT 0x9069
-#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT 0x906A
-#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_EXT 0x906B
-#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x906C
-#define GL_MAX_IMAGE_SAMPLES_EXT          0x906D
-#define GL_IMAGE_BINDING_FORMAT_EXT       0x906E
-#define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT_EXT 0x00000001
-#define GL_ELEMENT_ARRAY_BARRIER_BIT_EXT  0x00000002
-#define GL_UNIFORM_BARRIER_BIT_EXT        0x00000004
-#define GL_TEXTURE_FETCH_BARRIER_BIT_EXT  0x00000008
-#define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT_EXT 0x00000020
-#define GL_COMMAND_BARRIER_BIT_EXT        0x00000040
-#define GL_PIXEL_BUFFER_BARRIER_BIT_EXT   0x00000080
-#define GL_TEXTURE_UPDATE_BARRIER_BIT_EXT 0x00000100
-#define GL_BUFFER_UPDATE_BARRIER_BIT_EXT  0x00000200
-#define GL_FRAMEBUFFER_BARRIER_BIT_EXT    0x00000400
-#define GL_TRANSFORM_FEEDBACK_BARRIER_BIT_EXT 0x00000800
-#define GL_ATOMIC_COUNTER_BARRIER_BIT_EXT 0x00001000
-#define GL_ALL_BARRIER_BITS_EXT           0xFFFFFFFF
-#endif
-
-#ifndef GL_EXT_vertex_attrib_64bit
-/* reuse GL_DOUBLE */
-#define GL_DOUBLE_VEC2_EXT                0x8FFC
-#define GL_DOUBLE_VEC3_EXT                0x8FFD
-#define GL_DOUBLE_VEC4_EXT                0x8FFE
-#define GL_DOUBLE_MAT2_EXT                0x8F46
-#define GL_DOUBLE_MAT3_EXT                0x8F47
-#define GL_DOUBLE_MAT4_EXT                0x8F48
-#define GL_DOUBLE_MAT2x3_EXT              0x8F49
-#define GL_DOUBLE_MAT2x4_EXT              0x8F4A
-#define GL_DOUBLE_MAT3x2_EXT              0x8F4B
-#define GL_DOUBLE_MAT3x4_EXT              0x8F4C
-#define GL_DOUBLE_MAT4x2_EXT              0x8F4D
-#define GL_DOUBLE_MAT4x3_EXT              0x8F4E
-#endif
-
-#ifndef GL_NV_gpu_program5
-#define GL_MAX_GEOMETRY_PROGRAM_INVOCATIONS_NV 0x8E5A
-#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_NV 0x8E5B
-#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_NV 0x8E5C
-#define GL_FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV 0x8E5D
-#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_NV 0x8E5E
-#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_NV 0x8E5F
-#define GL_MAX_PROGRAM_SUBROUTINE_PARAMETERS_NV 0x8F44
-#define GL_MAX_PROGRAM_SUBROUTINE_NUM_NV  0x8F45
-#endif
-
-#ifndef GL_NV_gpu_shader5
-#define GL_INT64_NV                       0x140E
-#define GL_UNSIGNED_INT64_NV              0x140F
-#define GL_INT8_NV                        0x8FE0
-#define GL_INT8_VEC2_NV                   0x8FE1
-#define GL_INT8_VEC3_NV                   0x8FE2
-#define GL_INT8_VEC4_NV                   0x8FE3
-#define GL_INT16_NV                       0x8FE4
-#define GL_INT16_VEC2_NV                  0x8FE5
-#define GL_INT16_VEC3_NV                  0x8FE6
-#define GL_INT16_VEC4_NV                  0x8FE7
-#define GL_INT64_VEC2_NV                  0x8FE9
-#define GL_INT64_VEC3_NV                  0x8FEA
-#define GL_INT64_VEC4_NV                  0x8FEB
-#define GL_UNSIGNED_INT8_NV               0x8FEC
-#define GL_UNSIGNED_INT8_VEC2_NV          0x8FED
-#define GL_UNSIGNED_INT8_VEC3_NV          0x8FEE
-#define GL_UNSIGNED_INT8_VEC4_NV          0x8FEF
-#define GL_UNSIGNED_INT16_NV              0x8FF0
-#define GL_UNSIGNED_INT16_VEC2_NV         0x8FF1
-#define GL_UNSIGNED_INT16_VEC3_NV         0x8FF2
-#define GL_UNSIGNED_INT16_VEC4_NV         0x8FF3
-#define GL_UNSIGNED_INT64_VEC2_NV         0x8FF5
-#define GL_UNSIGNED_INT64_VEC3_NV         0x8FF6
-#define GL_UNSIGNED_INT64_VEC4_NV         0x8FF7
-#define GL_FLOAT16_NV                     0x8FF8
-#define GL_FLOAT16_VEC2_NV                0x8FF9
-#define GL_FLOAT16_VEC3_NV                0x8FFA
-#define GL_FLOAT16_VEC4_NV                0x8FFB
-/* reuse GL_PATCHES */
-#endif
-
-#ifndef GL_NV_shader_buffer_store
-#define GL_SHADER_GLOBAL_ACCESS_BARRIER_BIT_NV 0x00000010
-/* reuse GL_READ_WRITE */
-/* reuse GL_WRITE_ONLY */
-#endif
-
-#ifndef GL_NV_tessellation_program5
-#define GL_MAX_PROGRAM_PATCH_ATTRIBS_NV   0x86D8
-#define GL_TESS_CONTROL_PROGRAM_NV        0x891E
-#define GL_TESS_EVALUATION_PROGRAM_NV     0x891F
-#define GL_TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV 0x8C74
-#define GL_TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV 0x8C75
-#endif
-
-#ifndef GL_NV_vertex_attrib_integer_64bit
-/* reuse GL_INT64_NV */
-/* reuse GL_UNSIGNED_INT64_NV */
-#endif
-
-#ifndef GL_NV_multisample_coverage
-#define GL_COVERAGE_SAMPLES_NV            0x80A9
-#define GL_COLOR_SAMPLES_NV               0x8E20
-#endif
-
-#ifndef GL_AMD_name_gen_delete
-#define GL_DATA_BUFFER_AMD                0x9151
-#define GL_PERFORMANCE_MONITOR_AMD        0x9152
-#define GL_QUERY_OBJECT_AMD               0x9153
-#define GL_VERTEX_ARRAY_OBJECT_AMD        0x9154
-#define GL_SAMPLER_OBJECT_AMD             0x9155
-#endif
-
-#ifndef GL_AMD_debug_output
-#define GL_MAX_DEBUG_MESSAGE_LENGTH_AMD   0x9143
-#define GL_MAX_DEBUG_LOGGED_MESSAGES_AMD  0x9144
-#define GL_DEBUG_LOGGED_MESSAGES_AMD      0x9145
-#define GL_DEBUG_SEVERITY_HIGH_AMD        0x9146
-#define GL_DEBUG_SEVERITY_MEDIUM_AMD      0x9147
-#define GL_DEBUG_SEVERITY_LOW_AMD         0x9148
-#define GL_DEBUG_CATEGORY_API_ERROR_AMD   0x9149
-#define GL_DEBUG_CATEGORY_WINDOW_SYSTEM_AMD 0x914A
-#define GL_DEBUG_CATEGORY_DEPRECATION_AMD 0x914B
-#define GL_DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD 0x914C
-#define GL_DEBUG_CATEGORY_PERFORMANCE_AMD 0x914D
-#define GL_DEBUG_CATEGORY_SHADER_COMPILER_AMD 0x914E
-#define GL_DEBUG_CATEGORY_APPLICATION_AMD 0x914F
-#define GL_DEBUG_CATEGORY_OTHER_AMD       0x9150
-#endif
-
-#ifndef GL_NV_vdpau_interop
-#define GL_SURFACE_STATE_NV               0x86EB
-#define GL_SURFACE_REGISTERED_NV          0x86FD
-#define GL_SURFACE_MAPPED_NV              0x8700
-#define GL_WRITE_DISCARD_NV               0x88BE
-#endif
-
-#ifndef GL_AMD_transform_feedback3_lines_triangles
-#endif
-
-#ifndef GL_AMD_depth_clamp_separate
-#define GL_DEPTH_CLAMP_NEAR_AMD           0x901E
-#define GL_DEPTH_CLAMP_FAR_AMD            0x901F
-#endif
-
-#ifndef GL_EXT_texture_sRGB_decode
-#define GL_TEXTURE_SRGB_DECODE_EXT        0x8A48
-#define GL_DECODE_EXT                     0x8A49
-#define GL_SKIP_DECODE_EXT                0x8A4A
-#endif
-
-#ifndef GL_NV_texture_multisample
-#define GL_TEXTURE_COVERAGE_SAMPLES_NV    0x9045
-#define GL_TEXTURE_COLOR_SAMPLES_NV       0x9046
-#endif
-
-#ifndef GL_AMD_blend_minmax_factor
-#define GL_FACTOR_MIN_AMD                 0x901C
-#define GL_FACTOR_MAX_AMD                 0x901D
-#endif
-
-#ifndef GL_AMD_sample_positions
-#define GL_SUBSAMPLE_DISTANCE_AMD         0x883F
-#endif
-
-#ifndef GL_EXT_x11_sync_object
-#define GL_SYNC_X11_FENCE_EXT             0x90E1
-#endif
-
-#ifndef GL_AMD_multi_draw_indirect
-#endif
-
-#ifndef GL_EXT_framebuffer_multisample_blit_scaled
-#define GL_SCALED_RESOLVE_FASTEST_EXT     0x90BA
-#define GL_SCALED_RESOLVE_NICEST_EXT      0x90BB
-#endif
-
-#ifndef GL_NV_path_rendering
-#define GL_PATH_FORMAT_SVG_NV             0x9070
-#define GL_PATH_FORMAT_PS_NV              0x9071
-#define GL_STANDARD_FONT_NAME_NV          0x9072
-#define GL_SYSTEM_FONT_NAME_NV            0x9073
-#define GL_FILE_NAME_NV                   0x9074
-#define GL_PATH_STROKE_WIDTH_NV           0x9075
-#define GL_PATH_END_CAPS_NV               0x9076
-#define GL_PATH_INITIAL_END_CAP_NV        0x9077
-#define GL_PATH_TERMINAL_END_CAP_NV       0x9078
-#define GL_PATH_JOIN_STYLE_NV             0x9079
-#define GL_PATH_MITER_LIMIT_NV            0x907A
-#define GL_PATH_DASH_CAPS_NV              0x907B
-#define GL_PATH_INITIAL_DASH_CAP_NV       0x907C
-#define GL_PATH_TERMINAL_DASH_CAP_NV      0x907D
-#define GL_PATH_DASH_OFFSET_NV            0x907E
-#define GL_PATH_CLIENT_LENGTH_NV          0x907F
-#define GL_PATH_FILL_MODE_NV              0x9080
-#define GL_PATH_FILL_MASK_NV              0x9081
-#define GL_PATH_FILL_COVER_MODE_NV        0x9082
-#define GL_PATH_STROKE_COVER_MODE_NV      0x9083
-#define GL_PATH_STROKE_MASK_NV            0x9084
-#define GL_COUNT_UP_NV                    0x9088
-#define GL_COUNT_DOWN_NV                  0x9089
-#define GL_PATH_OBJECT_BOUNDING_BOX_NV    0x908A
-#define GL_CONVEX_HULL_NV                 0x908B
-#define GL_BOUNDING_BOX_NV                0x908D
-#define GL_TRANSLATE_X_NV                 0x908E
-#define GL_TRANSLATE_Y_NV                 0x908F
-#define GL_TRANSLATE_2D_NV                0x9090
-#define GL_TRANSLATE_3D_NV                0x9091
-#define GL_AFFINE_2D_NV                   0x9092
-#define GL_AFFINE_3D_NV                   0x9094
-#define GL_TRANSPOSE_AFFINE_2D_NV         0x9096
-#define GL_TRANSPOSE_AFFINE_3D_NV         0x9098
-#define GL_UTF8_NV                        0x909A
-#define GL_UTF16_NV                       0x909B
-#define GL_BOUNDING_BOX_OF_BOUNDING_BOXES_NV 0x909C
-#define GL_PATH_COMMAND_COUNT_NV          0x909D
-#define GL_PATH_COORD_COUNT_NV            0x909E
-#define GL_PATH_DASH_ARRAY_COUNT_NV       0x909F
-#define GL_PATH_COMPUTED_LENGTH_NV        0x90A0
-#define GL_PATH_FILL_BOUNDING_BOX_NV      0x90A1
-#define GL_PATH_STROKE_BOUNDING_BOX_NV    0x90A2
-#define GL_SQUARE_NV                      0x90A3
-#define GL_ROUND_NV                       0x90A4
-#define GL_TRIANGULAR_NV                  0x90A5
-#define GL_BEVEL_NV                       0x90A6
-#define GL_MITER_REVERT_NV                0x90A7
-#define GL_MITER_TRUNCATE_NV              0x90A8
-#define GL_SKIP_MISSING_GLYPH_NV          0x90A9
-#define GL_USE_MISSING_GLYPH_NV           0x90AA
-#define GL_PATH_ERROR_POSITION_NV         0x90AB
-#define GL_PATH_FOG_GEN_MODE_NV           0x90AC
-#define GL_ACCUM_ADJACENT_PAIRS_NV        0x90AD
-#define GL_ADJACENT_PAIRS_NV              0x90AE
-#define GL_FIRST_TO_REST_NV               0x90AF
-#define GL_PATH_GEN_MODE_NV               0x90B0
-#define GL_PATH_GEN_COEFF_NV              0x90B1
-#define GL_PATH_GEN_COLOR_FORMAT_NV       0x90B2
-#define GL_PATH_GEN_COMPONENTS_NV         0x90B3
-#define GL_PATH_STENCIL_FUNC_NV           0x90B7
-#define GL_PATH_STENCIL_REF_NV            0x90B8
-#define GL_PATH_STENCIL_VALUE_MASK_NV     0x90B9
-#define GL_PATH_STENCIL_DEPTH_OFFSET_FACTOR_NV 0x90BD
-#define GL_PATH_STENCIL_DEPTH_OFFSET_UNITS_NV 0x90BE
-#define GL_PATH_COVER_DEPTH_FUNC_NV       0x90BF
-#define GL_PATH_DASH_OFFSET_RESET_NV      0x90B4
-#define GL_MOVE_TO_RESETS_NV              0x90B5
-#define GL_MOVE_TO_CONTINUES_NV           0x90B6
-#define GL_CLOSE_PATH_NV                  0x00
-#define GL_MOVE_TO_NV                     0x02
-#define GL_RELATIVE_MOVE_TO_NV            0x03
-#define GL_LINE_TO_NV                     0x04
-#define GL_RELATIVE_LINE_TO_NV            0x05
-#define GL_HORIZONTAL_LINE_TO_NV          0x06
-#define GL_RELATIVE_HORIZONTAL_LINE_TO_NV 0x07
-#define GL_VERTICAL_LINE_TO_NV            0x08
-#define GL_RELATIVE_VERTICAL_LINE_TO_NV   0x09
-#define GL_QUADRATIC_CURVE_TO_NV          0x0A
-#define GL_RELATIVE_QUADRATIC_CURVE_TO_NV 0x0B
-#define GL_CUBIC_CURVE_TO_NV              0x0C
-#define GL_RELATIVE_CUBIC_CURVE_TO_NV     0x0D
-#define GL_SMOOTH_QUADRATIC_CURVE_TO_NV   0x0E
-#define GL_RELATIVE_SMOOTH_QUADRATIC_CURVE_TO_NV 0x0F
-#define GL_SMOOTH_CUBIC_CURVE_TO_NV       0x10
-#define GL_RELATIVE_SMOOTH_CUBIC_CURVE_TO_NV 0x11
-#define GL_SMALL_CCW_ARC_TO_NV            0x12
-#define GL_RELATIVE_SMALL_CCW_ARC_TO_NV   0x13
-#define GL_SMALL_CW_ARC_TO_NV             0x14
-#define GL_RELATIVE_SMALL_CW_ARC_TO_NV    0x15
-#define GL_LARGE_CCW_ARC_TO_NV            0x16
-#define GL_RELATIVE_LARGE_CCW_ARC_TO_NV   0x17
-#define GL_LARGE_CW_ARC_TO_NV             0x18
-#define GL_RELATIVE_LARGE_CW_ARC_TO_NV    0x19
-#define GL_RESTART_PATH_NV                0xF0
-#define GL_DUP_FIRST_CUBIC_CURVE_TO_NV    0xF2
-#define GL_DUP_LAST_CUBIC_CURVE_TO_NV     0xF4
-#define GL_RECT_NV                        0xF6
-#define GL_CIRCULAR_CCW_ARC_TO_NV         0xF8
-#define GL_CIRCULAR_CW_ARC_TO_NV          0xFA
-#define GL_CIRCULAR_TANGENT_ARC_TO_NV     0xFC
-#define GL_ARC_TO_NV                      0xFE
-#define GL_RELATIVE_ARC_TO_NV             0xFF
-#define GL_BOLD_BIT_NV                    0x01
-#define GL_ITALIC_BIT_NV                  0x02
-#define GL_GLYPH_WIDTH_BIT_NV             0x01
-#define GL_GLYPH_HEIGHT_BIT_NV            0x02
-#define GL_GLYPH_HORIZONTAL_BEARING_X_BIT_NV 0x04
-#define GL_GLYPH_HORIZONTAL_BEARING_Y_BIT_NV 0x08
-#define GL_GLYPH_HORIZONTAL_BEARING_ADVANCE_BIT_NV 0x10
-#define GL_GLYPH_VERTICAL_BEARING_X_BIT_NV 0x20
-#define GL_GLYPH_VERTICAL_BEARING_Y_BIT_NV 0x40
-#define GL_GLYPH_VERTICAL_BEARING_ADVANCE_BIT_NV 0x80
-#define GL_GLYPH_HAS_KERNING_BIT_NV       0x100
-#define GL_FONT_X_MIN_BOUNDS_BIT_NV       0x00010000
-#define GL_FONT_Y_MIN_BOUNDS_BIT_NV       0x00020000
-#define GL_FONT_X_MAX_BOUNDS_BIT_NV       0x00040000
-#define GL_FONT_Y_MAX_BOUNDS_BIT_NV       0x00080000
-#define GL_FONT_UNITS_PER_EM_BIT_NV       0x00100000
-#define GL_FONT_ASCENDER_BIT_NV           0x00200000
-#define GL_FONT_DESCENDER_BIT_NV          0x00400000
-#define GL_FONT_HEIGHT_BIT_NV             0x00800000
-#define GL_FONT_MAX_ADVANCE_WIDTH_BIT_NV  0x01000000
-#define GL_FONT_MAX_ADVANCE_HEIGHT_BIT_NV 0x02000000
-#define GL_FONT_UNDERLINE_POSITION_BIT_NV 0x04000000
-#define GL_FONT_UNDERLINE_THICKNESS_BIT_NV 0x08000000
-#define GL_FONT_HAS_KERNING_BIT_NV        0x10000000
-/* reuse GL_PRIMARY_COLOR */
-/* reuse GL_PRIMARY_COLOR_NV */
-/* reuse GL_SECONDARY_COLOR_NV */
-#endif
-
-#ifndef GL_AMD_pinned_memory
-#define GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD 0x9160
-#endif
-
-#ifndef GL_AMD_stencil_operation_extended
-#define GL_SET_AMD                        0x874A
-#define GL_REPLACE_VALUE_AMD              0x874B
-#define GL_STENCIL_OP_VALUE_AMD           0x874C
-#define GL_STENCIL_BACK_OP_VALUE_AMD      0x874D
-#endif
-
-#ifndef GL_AMD_vertex_shader_viewport_index
-#endif
-
-#ifndef GL_AMD_vertex_shader_layer
-#endif
-
-#ifndef GL_NV_bindless_texture
-#endif
-
-#ifndef GL_NV_shader_atomic_float
-#endif
-
-#ifndef GL_AMD_query_buffer_object
-#define GL_QUERY_BUFFER_AMD               0x9192
-#define GL_QUERY_BUFFER_BINDING_AMD       0x9193
-#define GL_QUERY_RESULT_NO_WAIT_AMD       0x9194
-#endif
-
-#ifndef GL_NV_compute_program5
-#define GL_COMPUTE_PROGRAM_NV             0x90FB
-#define GL_COMPUTE_PROGRAM_PARAMETER_BUFFER_NV 0x90FC
-#endif
-
-#ifndef GL_NV_shader_storage_buffer_object
-#endif
-
-#ifndef GL_NV_shader_atomic_counters
-#endif
-
-#ifndef GL_NV_deep_texture3D
-#define GL_MAX_DEEP_3D_TEXTURE_WIDTH_HEIGHT_NV 0x90D0
-#define GL_MAX_DEEP_3D_TEXTURE_DEPTH_NV   0x90D1
-#endif
-
-#ifndef GL_NVX_conditional_render
-#endif
-
-#ifndef GL_AMD_sparse_texture
-#define GL_VIRTUAL_PAGE_SIZE_X_AMD        0x9195
-#define GL_VIRTUAL_PAGE_SIZE_Y_AMD        0x9196
-#define GL_VIRTUAL_PAGE_SIZE_Z_AMD        0x9197
-#define GL_MAX_SPARSE_TEXTURE_SIZE_AMD    0x9198
-#define GL_MAX_SPARSE_3D_TEXTURE_SIZE_AMD 0x9199
-#define GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS 0x919A
-#define GL_MIN_SPARSE_LEVEL_AMD           0x919B
-#define GL_MIN_LOD_WARNING_AMD            0x919C
-#define GL_TEXTURE_STORAGE_SPARSE_BIT_AMD 0x00000001
-#endif
-
-#ifndef GL_AMD_shader_trinary_minmax
-#endif
-
-#ifndef GL_INTEL_map_texture
-#define GL_TEXTURE_MEMORY_LAYOUT_INTEL    0x83FF
-#define GL_LAYOUT_DEFAULT_INTEL           0
-#define GL_LAYOUT_LINEAR_INTEL            1
-#define GL_LAYOUT_LINEAR_CPU_CACHED_INTEL 2
-#endif
-
-#ifndef GL_NV_draw_texture
-#endif
-
-
-/*************************************************************/
-
-#include <stddef.h>
-#ifndef GL_VERSION_2_0
-/* GL type for program/shader text */
-typedef char GLchar;
-#endif
-
-#ifndef GL_VERSION_1_5
-/* GL types for handling large vertex buffer objects */
-typedef ptrdiff_t GLintptr;
-typedef ptrdiff_t GLsizeiptr;
-#endif
-
-#ifndef GL_ARB_vertex_buffer_object
-/* GL types for handling large vertex buffer objects */
-typedef ptrdiff_t GLintptrARB;
-typedef ptrdiff_t GLsizeiptrARB;
-#endif
-
-#ifndef GL_ARB_shader_objects
-/* GL types for program/shader text and shader object handles */
-typedef char GLcharARB;
-#ifndef __APPLE__
-typedef unsigned int GLhandleARB;
-#endif // __APPLE__
-#endif
-
-/* GL type for "half" precision (s10e5) float data in host memory */
-#ifndef GL_ARB_half_float_pixel
-typedef unsigned short GLhalfARB;
-#endif
-
-#ifndef GL_NV_half_float
-typedef unsigned short GLhalfNV;
-#endif
-
-#ifndef GLEXT_64_TYPES_DEFINED
-/* This code block is duplicated in glxext.h, so must be protected */
-#define GLEXT_64_TYPES_DEFINED
-/* Define int32_t, int64_t, and uint64_t types for UST/MSC */
-/* (as used in the GL_EXT_timer_query extension). */
-#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
-#include <inttypes.h>
-#elif defined(__sun__) || defined(__digital__)
-#include <inttypes.h>
-#if defined(__STDC__)
-#if defined(__arch64__) || defined(_LP64)
-typedef long int int64_t;
-typedef unsigned long int uint64_t;
-#else
-typedef long long int int64_t;
-typedef unsigned long long int uint64_t;
-#endif /* __arch64__ */
-#endif /* __STDC__ */
-#elif defined( __VMS ) || defined(__sgi)
-#include <inttypes.h>
-#elif defined(__SCO__) || defined(__USLC__)
-#include <stdint.h>
-#elif defined(__UNIXOS2__) || defined(__SOL64__)
-typedef long int int32_t;
-typedef long long int int64_t;
-typedef unsigned long long int uint64_t;
-#elif defined(_WIN32) && defined(__GNUC__)
-#include <stdint.h>
-#elif defined(_WIN32)
-typedef __int32 int32_t;
-typedef __int64 int64_t;
-typedef unsigned __int64 uint64_t;
-#else
-/* Fallback if nothing above works */
-#include <inttypes.h>
-#endif
-#endif
-
-#ifndef GL_EXT_timer_query
-typedef int64_t GLint64EXT;
-typedef uint64_t GLuint64EXT;
-#endif
-
-#ifndef GL_ARB_sync
-typedef int64_t GLint64;
-typedef uint64_t GLuint64;
-typedef struct __GLsync *GLsync;
-#endif
-
-#ifndef GL_ARB_cl_event
-/* These incomplete types let us declare types compatible with OpenCL's cl_context and cl_event */
-struct _cl_context;
-struct _cl_event;
-#endif
-
-#ifndef GL_ARB_debug_output
-typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam);
-#endif
-
-#ifndef GL_AMD_debug_output
-typedef void (APIENTRY *GLDEBUGPROCAMD)(GLuint id,GLenum category,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam);
-#endif
-
-#ifndef GL_KHR_debug
-typedef void (APIENTRY *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam);
-#endif
-
-#ifndef GL_NV_vdpau_interop
-typedef GLintptr GLvdpauSurfaceNV;
-#endif
-
-#ifndef GL_OES_fixed_point
-/* GLint must be 32 bits, a relatively safe assumption on modern CPUs */
-typedef GLint GLfixed;
-#endif
-
-#ifndef GL_VERSION_1_2
-#define GL_VERSION_1_2 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBlendColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
-GLAPI void APIENTRY glBlendEquation (GLenum mode);
-GLAPI void APIENTRY glDrawRangeElements (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
-GLAPI void APIENTRY glTexImage3D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void APIENTRY glTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void APIENTRY glCopyTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
-GLAPI void APIENTRY glColorTable (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
-GLAPI void APIENTRY glColorTableParameterfv (GLenum target, GLenum pname, const GLfloat *params);
-GLAPI void APIENTRY glColorTableParameteriv (GLenum target, GLenum pname, const GLint *params);
-GLAPI void APIENTRY glCopyColorTable (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
-GLAPI void APIENTRY glGetColorTable (GLenum target, GLenum format, GLenum type, GLvoid *table);
-GLAPI void APIENTRY glGetColorTableParameterfv (GLenum target, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetColorTableParameteriv (GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glColorSubTable (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data);
-GLAPI void APIENTRY glCopyColorSubTable (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
-GLAPI void APIENTRY glConvolutionFilter1D (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
-GLAPI void APIENTRY glConvolutionFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
-GLAPI void APIENTRY glConvolutionParameterf (GLenum target, GLenum pname, GLfloat params);
-GLAPI void APIENTRY glConvolutionParameterfv (GLenum target, GLenum pname, const GLfloat *params);
-GLAPI void APIENTRY glConvolutionParameteri (GLenum target, GLenum pname, GLint params);
-GLAPI void APIENTRY glConvolutionParameteriv (GLenum target, GLenum pname, const GLint *params);
-GLAPI void APIENTRY glCopyConvolutionFilter1D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
-GLAPI void APIENTRY glCopyConvolutionFilter2D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
-GLAPI void APIENTRY glGetConvolutionFilter (GLenum target, GLenum format, GLenum type, GLvoid *image);
-GLAPI void APIENTRY glGetConvolutionParameterfv (GLenum target, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetConvolutionParameteriv (GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetSeparableFilter (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
-GLAPI void APIENTRY glSeparableFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
-GLAPI void APIENTRY glGetHistogram (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
-GLAPI void APIENTRY glGetHistogramParameterfv (GLenum target, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetHistogramParameteriv (GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetMinmax (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
-GLAPI void APIENTRY glGetMinmaxParameterfv (GLenum target, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetMinmaxParameteriv (GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glHistogram (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
-GLAPI void APIENTRY glMinmax (GLenum target, GLenum internalformat, GLboolean sink);
-GLAPI void APIENTRY glResetHistogram (GLenum target);
-GLAPI void APIENTRY glResetMinmax (GLenum target);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
-typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
-typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
-typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
-typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
-typedef void (APIENTRYP PFNGLCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
-typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
-typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
-typedef void (APIENTRYP PFNGLCOPYCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
-typedef void (APIENTRYP PFNGLGETCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table);
-typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data);
-typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
-typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
-typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
-typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat params);
-typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
-typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIPROC) (GLenum target, GLenum pname, GLint params);
-typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
-typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
-typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
-typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image);
-typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
-typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
-typedef void (APIENTRYP PFNGLGETHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
-typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
-typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLHISTOGRAMPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
-typedef void (APIENTRYP PFNGLMINMAXPROC) (GLenum target, GLenum internalformat, GLboolean sink);
-typedef void (APIENTRYP PFNGLRESETHISTOGRAMPROC) (GLenum target);
-typedef void (APIENTRYP PFNGLRESETMINMAXPROC) (GLenum target);
-#endif
-
-#ifndef GL_VERSION_1_3
-#define GL_VERSION_1_3 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glActiveTexture (GLenum texture);
-GLAPI void APIENTRY glSampleCoverage (GLfloat value, GLboolean invert);
-GLAPI void APIENTRY glCompressedTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
-GLAPI void APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
-GLAPI void APIENTRY glCompressedTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
-GLAPI void APIENTRY glCompressedTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data);
-GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
-GLAPI void APIENTRY glCompressedTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
-GLAPI void APIENTRY glGetCompressedTexImage (GLenum target, GLint level, GLvoid *img);
-GLAPI void APIENTRY glClientActiveTexture (GLenum texture);
-GLAPI void APIENTRY glMultiTexCoord1d (GLenum target, GLdouble s);
-GLAPI void APIENTRY glMultiTexCoord1dv (GLenum target, const GLdouble *v);
-GLAPI void APIENTRY glMultiTexCoord1f (GLenum target, GLfloat s);
-GLAPI void APIENTRY glMultiTexCoord1fv (GLenum target, const GLfloat *v);
-GLAPI void APIENTRY glMultiTexCoord1i (GLenum target, GLint s);
-GLAPI void APIENTRY glMultiTexCoord1iv (GLenum target, const GLint *v);
-GLAPI void APIENTRY glMultiTexCoord1s (GLenum target, GLshort s);
-GLAPI void APIENTRY glMultiTexCoord1sv (GLenum target, const GLshort *v);
-GLAPI void APIENTRY glMultiTexCoord2d (GLenum target, GLdouble s, GLdouble t);
-GLAPI void APIENTRY glMultiTexCoord2dv (GLenum target, const GLdouble *v);
-GLAPI void APIENTRY glMultiTexCoord2f (GLenum target, GLfloat s, GLfloat t);
-GLAPI void APIENTRY glMultiTexCoord2fv (GLenum target, const GLfloat *v);
-GLAPI void APIENTRY glMultiTexCoord2i (GLenum target, GLint s, GLint t);
-GLAPI void APIENTRY glMultiTexCoord2iv (GLenum target, const GLint *v);
-GLAPI void APIENTRY glMultiTexCoord2s (GLenum target, GLshort s, GLshort t);
-GLAPI void APIENTRY glMultiTexCoord2sv (GLenum target, const GLshort *v);
-GLAPI void APIENTRY glMultiTexCoord3d (GLenum target, GLdouble s, GLdouble t, GLdouble r);
-GLAPI void APIENTRY glMultiTexCoord3dv (GLenum target, const GLdouble *v);
-GLAPI void APIENTRY glMultiTexCoord3f (GLenum target, GLfloat s, GLfloat t, GLfloat r);
-GLAPI void APIENTRY glMultiTexCoord3fv (GLenum target, const GLfloat *v);
-GLAPI void APIENTRY glMultiTexCoord3i (GLenum target, GLint s, GLint t, GLint r);
-GLAPI void APIENTRY glMultiTexCoord3iv (GLenum target, const GLint *v);
-GLAPI void APIENTRY glMultiTexCoord3s (GLenum target, GLshort s, GLshort t, GLshort r);
-GLAPI void APIENTRY glMultiTexCoord3sv (GLenum target, const GLshort *v);
-GLAPI void APIENTRY glMultiTexCoord4d (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
-GLAPI void APIENTRY glMultiTexCoord4dv (GLenum target, const GLdouble *v);
-GLAPI void APIENTRY glMultiTexCoord4f (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
-GLAPI void APIENTRY glMultiTexCoord4fv (GLenum target, const GLfloat *v);
-GLAPI void APIENTRY glMultiTexCoord4i (GLenum target, GLint s, GLint t, GLint r, GLint q);
-GLAPI void APIENTRY glMultiTexCoord4iv (GLenum target, const GLint *v);
-GLAPI void APIENTRY glMultiTexCoord4s (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
-GLAPI void APIENTRY glMultiTexCoord4sv (GLenum target, const GLshort *v);
-GLAPI void APIENTRY glLoadTransposeMatrixf (const GLfloat *m);
-GLAPI void APIENTRY glLoadTransposeMatrixd (const GLdouble *m);
-GLAPI void APIENTRY glMultTransposeMatrixf (const GLfloat *m);
-GLAPI void APIENTRY glMultTransposeMatrixd (const GLdouble *m);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
-typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLfloat value, GLboolean invert);
-typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
-typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
-typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
-typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data);
-typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
-typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
-typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, GLvoid *img);
-typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD1DPROC) (GLenum target, GLdouble s);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVPROC) (GLenum target, const GLdouble *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD1FPROC) (GLenum target, GLfloat s);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVPROC) (GLenum target, const GLfloat *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD1IPROC) (GLenum target, GLint s);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVPROC) (GLenum target, const GLint *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD1SPROC) (GLenum target, GLshort s);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVPROC) (GLenum target, const GLshort *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD2DPROC) (GLenum target, GLdouble s, GLdouble t);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVPROC) (GLenum target, const GLdouble *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s, GLint t);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVPROC) (GLenum target, const GLint *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD2SPROC) (GLenum target, GLshort s, GLshort t);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVPROC) (GLenum target, const GLshort *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD3DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVPROC) (GLenum target, const GLdouble *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD3FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVPROC) (GLenum target, const GLfloat *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s, GLint t, GLint r);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVPROC) (GLenum target, const GLint *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD3SPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVPROC) (GLenum target, const GLshort *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD4DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVPROC) (GLenum target, const GLdouble *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD4FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVPROC) (GLenum target, const GLfloat *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVPROC) (GLenum target, const GLint *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD4SPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVPROC) (GLenum target, const GLshort *v);
-typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat *m);
-typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble *m);
-typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat *m);
-typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble *m);
-#endif
-
-#ifndef GL_VERSION_1_4
-#define GL_VERSION_1_4 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
-GLAPI void APIENTRY glMultiDrawArrays (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);
-GLAPI void APIENTRY glMultiDrawElements (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount);
-GLAPI void APIENTRY glPointParameterf (GLenum pname, GLfloat param);
-GLAPI void APIENTRY glPointParameterfv (GLenum pname, const GLfloat *params);
-GLAPI void APIENTRY glPointParameteri (GLenum pname, GLint param);
-GLAPI void APIENTRY glPointParameteriv (GLenum pname, const GLint *params);
-GLAPI void APIENTRY glFogCoordf (GLfloat coord);
-GLAPI void APIENTRY glFogCoordfv (const GLfloat *coord);
-GLAPI void APIENTRY glFogCoordd (GLdouble coord);
-GLAPI void APIENTRY glFogCoorddv (const GLdouble *coord);
-GLAPI void APIENTRY glFogCoordPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
-GLAPI void APIENTRY glSecondaryColor3b (GLbyte red, GLbyte green, GLbyte blue);
-GLAPI void APIENTRY glSecondaryColor3bv (const GLbyte *v);
-GLAPI void APIENTRY glSecondaryColor3d (GLdouble red, GLdouble green, GLdouble blue);
-GLAPI void APIENTRY glSecondaryColor3dv (const GLdouble *v);
-GLAPI void APIENTRY glSecondaryColor3f (GLfloat red, GLfloat green, GLfloat blue);
-GLAPI void APIENTRY glSecondaryColor3fv (const GLfloat *v);
-GLAPI void APIENTRY glSecondaryColor3i (GLint red, GLint green, GLint blue);
-GLAPI void APIENTRY glSecondaryColor3iv (const GLint *v);
-GLAPI void APIENTRY glSecondaryColor3s (GLshort red, GLshort green, GLshort blue);
-GLAPI void APIENTRY glSecondaryColor3sv (const GLshort *v);
-GLAPI void APIENTRY glSecondaryColor3ub (GLubyte red, GLubyte green, GLubyte blue);
-GLAPI void APIENTRY glSecondaryColor3ubv (const GLubyte *v);
-GLAPI void APIENTRY glSecondaryColor3ui (GLuint red, GLuint green, GLuint blue);
-GLAPI void APIENTRY glSecondaryColor3uiv (const GLuint *v);
-GLAPI void APIENTRY glSecondaryColor3us (GLushort red, GLushort green, GLushort blue);
-GLAPI void APIENTRY glSecondaryColor3usv (const GLushort *v);
-GLAPI void APIENTRY glSecondaryColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-GLAPI void APIENTRY glWindowPos2d (GLdouble x, GLdouble y);
-GLAPI void APIENTRY glWindowPos2dv (const GLdouble *v);
-GLAPI void APIENTRY glWindowPos2f (GLfloat x, GLfloat y);
-GLAPI void APIENTRY glWindowPos2fv (const GLfloat *v);
-GLAPI void APIENTRY glWindowPos2i (GLint x, GLint y);
-GLAPI void APIENTRY glWindowPos2iv (const GLint *v);
-GLAPI void APIENTRY glWindowPos2s (GLshort x, GLshort y);
-GLAPI void APIENTRY glWindowPos2sv (const GLshort *v);
-GLAPI void APIENTRY glWindowPos3d (GLdouble x, GLdouble y, GLdouble z);
-GLAPI void APIENTRY glWindowPos3dv (const GLdouble *v);
-GLAPI void APIENTRY glWindowPos3f (GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glWindowPos3fv (const GLfloat *v);
-GLAPI void APIENTRY glWindowPos3i (GLint x, GLint y, GLint z);
-GLAPI void APIENTRY glWindowPos3iv (const GLint *v);
-GLAPI void APIENTRY glWindowPos3s (GLshort x, GLshort y, GLshort z);
-GLAPI void APIENTRY glWindowPos3sv (const GLshort *v);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
-typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);
-typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount);
-typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param);
-typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params);
-typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param);
-typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params);
-typedef void (APIENTRYP PFNGLFOGCOORDFPROC) (GLfloat coord);
-typedef void (APIENTRYP PFNGLFOGCOORDFVPROC) (const GLfloat *coord);
-typedef void (APIENTRYP PFNGLFOGCOORDDPROC) (GLdouble coord);
-typedef void (APIENTRYP PFNGLFOGCOORDDVPROC) (const GLdouble *coord);
-typedef void (APIENTRYP PFNGLFOGCOORDPOINTERPROC) (GLenum type, GLsizei stride, const GLvoid *pointer);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte *v);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVPROC) (const GLdouble *v);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FPROC) (GLfloat red, GLfloat green, GLfloat blue);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVPROC) (const GLfloat *v);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IPROC) (GLint red, GLint green, GLint blue);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVPROC) (const GLint *v);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SPROC) (GLshort red, GLshort green, GLshort blue);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVPROC) (const GLshort *v);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBPROC) (GLubyte red, GLubyte green, GLubyte blue);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVPROC) (const GLubyte *v);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIPROC) (GLuint red, GLuint green, GLuint blue);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVPROC) (const GLuint *v);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USPROC) (GLushort red, GLushort green, GLushort blue);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVPROC) (const GLushort *v);
-typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-typedef void (APIENTRYP PFNGLWINDOWPOS2DPROC) (GLdouble x, GLdouble y);
-typedef void (APIENTRYP PFNGLWINDOWPOS2DVPROC) (const GLdouble *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS2FPROC) (GLfloat x, GLfloat y);
-typedef void (APIENTRYP PFNGLWINDOWPOS2FVPROC) (const GLfloat *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS2IPROC) (GLint x, GLint y);
-typedef void (APIENTRYP PFNGLWINDOWPOS2IVPROC) (const GLint *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS2SPROC) (GLshort x, GLshort y);
-typedef void (APIENTRYP PFNGLWINDOWPOS2SVPROC) (const GLshort *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS3DPROC) (GLdouble x, GLdouble y, GLdouble z);
-typedef void (APIENTRYP PFNGLWINDOWPOS3DVPROC) (const GLdouble *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS3FPROC) (GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLWINDOWPOS3FVPROC) (const GLfloat *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z);
-typedef void (APIENTRYP PFNGLWINDOWPOS3IVPROC) (const GLint *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS3SPROC) (GLshort x, GLshort y, GLshort z);
-typedef void (APIENTRYP PFNGLWINDOWPOS3SVPROC) (const GLshort *v);
-#endif
-
-#ifndef GL_VERSION_1_5
-#define GL_VERSION_1_5 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glGenQueries (GLsizei n, GLuint *ids);
-GLAPI void APIENTRY glDeleteQueries (GLsizei n, const GLuint *ids);
-GLAPI GLboolean APIENTRY glIsQuery (GLuint id);
-GLAPI void APIENTRY glBeginQuery (GLenum target, GLuint id);
-GLAPI void APIENTRY glEndQuery (GLenum target);
-GLAPI void APIENTRY glGetQueryiv (GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetQueryObjectiv (GLuint id, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetQueryObjectuiv (GLuint id, GLenum pname, GLuint *params);
-GLAPI void APIENTRY glBindBuffer (GLenum target, GLuint buffer);
-GLAPI void APIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers);
-GLAPI void APIENTRY glGenBuffers (GLsizei n, GLuint *buffers);
-GLAPI GLboolean APIENTRY glIsBuffer (GLuint buffer);
-GLAPI void APIENTRY glBufferData (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage);
-GLAPI void APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data);
-GLAPI void APIENTRY glGetBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data);
-GLAPI GLvoid* APIENTRY glMapBuffer (GLenum target, GLenum access);
-GLAPI GLboolean APIENTRY glUnmapBuffer (GLenum target);
-GLAPI void APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetBufferPointerv (GLenum target, GLenum pname, GLvoid* *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLGENQUERIESPROC) (GLsizei n, GLuint *ids);
-typedef void (APIENTRYP PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint *ids);
-typedef GLboolean (APIENTRYP PFNGLISQUERYPROC) (GLuint id);
-typedef void (APIENTRYP PFNGLBEGINQUERYPROC) (GLenum target, GLuint id);
-typedef void (APIENTRYP PFNGLENDQUERYPROC) (GLenum target);
-typedef void (APIENTRYP PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint *params);
-typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer);
-typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers);
-typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers);
-typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer);
-typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage);
-typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data);
-typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data);
-typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target, GLenum access);
-typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC) (GLenum target);
-typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, GLvoid* *params);
-#endif
-
-#ifndef GL_VERSION_2_0
-#define GL_VERSION_2_0 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha);
-GLAPI void APIENTRY glDrawBuffers (GLsizei n, const GLenum *bufs);
-GLAPI void APIENTRY glStencilOpSeparate (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
-GLAPI void APIENTRY glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask);
-GLAPI void APIENTRY glStencilMaskSeparate (GLenum face, GLuint mask);
-GLAPI void APIENTRY glAttachShader (GLuint program, GLuint shader);
-GLAPI void APIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar *name);
-GLAPI void APIENTRY glCompileShader (GLuint shader);
-GLAPI GLuint APIENTRY glCreateProgram (void);
-GLAPI GLuint APIENTRY glCreateShader (GLenum type);
-GLAPI void APIENTRY glDeleteProgram (GLuint program);
-GLAPI void APIENTRY glDeleteShader (GLuint shader);
-GLAPI void APIENTRY glDetachShader (GLuint program, GLuint shader);
-GLAPI void APIENTRY glDisableVertexAttribArray (GLuint index);
-GLAPI void APIENTRY glEnableVertexAttribArray (GLuint index);
-GLAPI void APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
-GLAPI void APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
-GLAPI void APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj);
-GLAPI GLint APIENTRY glGetAttribLocation (GLuint program, const GLchar *name);
-GLAPI void APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
-GLAPI void APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
-GLAPI void APIENTRY glGetShaderSource (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
-GLAPI GLint APIENTRY glGetUniformLocation (GLuint program, const GLchar *name);
-GLAPI void APIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat *params);
-GLAPI void APIENTRY glGetUniformiv (GLuint program, GLint location, GLint *params);
-GLAPI void APIENTRY glGetVertexAttribdv (GLuint index, GLenum pname, GLdouble *params);
-GLAPI void APIENTRY glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid* *pointer);
-GLAPI GLboolean APIENTRY glIsProgram (GLuint program);
-GLAPI GLboolean APIENTRY glIsShader (GLuint shader);
-GLAPI void APIENTRY glLinkProgram (GLuint program);
-GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar* const *string, const GLint *length);
-GLAPI void APIENTRY glUseProgram (GLuint program);
-GLAPI void APIENTRY glUniform1f (GLint location, GLfloat v0);
-GLAPI void APIENTRY glUniform2f (GLint location, GLfloat v0, GLfloat v1);
-GLAPI void APIENTRY glUniform3f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
-GLAPI void APIENTRY glUniform4f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
-GLAPI void APIENTRY glUniform1i (GLint location, GLint v0);
-GLAPI void APIENTRY glUniform2i (GLint location, GLint v0, GLint v1);
-GLAPI void APIENTRY glUniform3i (GLint location, GLint v0, GLint v1, GLint v2);
-GLAPI void APIENTRY glUniform4i (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
-GLAPI void APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat *value);
-GLAPI void APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat *value);
-GLAPI void APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat *value);
-GLAPI void APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat *value);
-GLAPI void APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint *value);
-GLAPI void APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint *value);
-GLAPI void APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint *value);
-GLAPI void APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint *value);
-GLAPI void APIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glValidateProgram (GLuint program);
-GLAPI void APIENTRY glVertexAttrib1d (GLuint index, GLdouble x);
-GLAPI void APIENTRY glVertexAttrib1dv (GLuint index, const GLdouble *v);
-GLAPI void APIENTRY glVertexAttrib1f (GLuint index, GLfloat x);
-GLAPI void APIENTRY glVertexAttrib1fv (GLuint index, const GLfloat *v);
-GLAPI void APIENTRY glVertexAttrib1s (GLuint index, GLshort x);
-GLAPI void APIENTRY glVertexAttrib1sv (GLuint index, const GLshort *v);
-GLAPI void APIENTRY glVertexAttrib2d (GLuint index, GLdouble x, GLdouble y);
-GLAPI void APIENTRY glVertexAttrib2dv (GLuint index, const GLdouble *v);
-GLAPI void APIENTRY glVertexAttrib2f (GLuint index, GLfloat x, GLfloat y);
-GLAPI void APIENTRY glVertexAttrib2fv (GLuint index, const GLfloat *v);
-GLAPI void APIENTRY glVertexAttrib2s (GLuint index, GLshort x, GLshort y);
-GLAPI void APIENTRY glVertexAttrib2sv (GLuint index, const GLshort *v);
-GLAPI void APIENTRY glVertexAttrib3d (GLuint index, GLdouble x, GLdouble y, GLdouble z);
-GLAPI void APIENTRY glVertexAttrib3dv (GLuint index, const GLdouble *v);
-GLAPI void APIENTRY glVertexAttrib3f (GLuint index, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glVertexAttrib3fv (GLuint index, const GLfloat *v);
-GLAPI void APIENTRY glVertexAttrib3s (GLuint index, GLshort x, GLshort y, GLshort z);
-GLAPI void APIENTRY glVertexAttrib3sv (GLuint index, const GLshort *v);
-GLAPI void APIENTRY glVertexAttrib4Nbv (GLuint index, const GLbyte *v);
-GLAPI void APIENTRY glVertexAttrib4Niv (GLuint index, const GLint *v);
-GLAPI void APIENTRY glVertexAttrib4Nsv (GLuint index, const GLshort *v);
-GLAPI void APIENTRY glVertexAttrib4Nub (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
-GLAPI void APIENTRY glVertexAttrib4Nubv (GLuint index, const GLubyte *v);
-GLAPI void APIENTRY glVertexAttrib4Nuiv (GLuint index, const GLuint *v);
-GLAPI void APIENTRY glVertexAttrib4Nusv (GLuint index, const GLushort *v);
-GLAPI void APIENTRY glVertexAttrib4bv (GLuint index, const GLbyte *v);
-GLAPI void APIENTRY glVertexAttrib4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-GLAPI void APIENTRY glVertexAttrib4dv (GLuint index, const GLdouble *v);
-GLAPI void APIENTRY glVertexAttrib4f (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-GLAPI void APIENTRY glVertexAttrib4fv (GLuint index, const GLfloat *v);
-GLAPI void APIENTRY glVertexAttrib4iv (GLuint index, const GLint *v);
-GLAPI void APIENTRY glVertexAttrib4s (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
-GLAPI void APIENTRY glVertexAttrib4sv (GLuint index, const GLshort *v);
-GLAPI void APIENTRY glVertexAttrib4ubv (GLuint index, const GLubyte *v);
-GLAPI void APIENTRY glVertexAttrib4uiv (GLuint index, const GLuint *v);
-GLAPI void APIENTRY glVertexAttrib4usv (GLuint index, const GLushort *v);
-GLAPI void APIENTRY glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha);
-typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs);
-typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
-typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum face, GLenum func, GLint ref, GLuint mask);
-typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask);
-typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
-typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name);
-typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader);
-typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void);
-typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type);
-typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
-typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader);
-typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
-typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
-typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
-typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
-typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
-typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj);
-typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
-typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
-typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
-typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
-typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name);
-typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params);
-typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble *params);
-typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, GLvoid* *pointer);
-typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program);
-typedef GLboolean (APIENTRYP PFNGLISSHADERPROC) (GLuint shader);
-typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program);
-typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar* const *string, const GLint *length);
-typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program);
-typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
-typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1);
-typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
-typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
-typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
-typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1);
-typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2);
-typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
-typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value);
-typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value);
-typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value);
-typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value);
-typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value);
-typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value);
-typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value);
-typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value);
-typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
-#endif
-
-#ifndef GL_VERSION_2_1
-#define GL_VERSION_2_1 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glUniformMatrix2x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glUniformMatrix3x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glUniformMatrix2x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glUniformMatrix4x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glUniformMatrix3x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glUniformMatrix4x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-#endif
-
-#ifndef GL_VERSION_3_0
-#define GL_VERSION_3_0 1
-/* OpenGL 3.0 also reuses entry points from these extensions: */
-/* ARB_framebuffer_object */
-/* ARB_map_buffer_range */
-/* ARB_vertex_array_object */
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glColorMaski (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
-GLAPI void APIENTRY glGetBooleani_v (GLenum target, GLuint index, GLboolean *data);
-GLAPI void APIENTRY glGetIntegeri_v (GLenum target, GLuint index, GLint *data);
-GLAPI void APIENTRY glEnablei (GLenum target, GLuint index);
-GLAPI void APIENTRY glDisablei (GLenum target, GLuint index);
-GLAPI GLboolean APIENTRY glIsEnabledi (GLenum target, GLuint index);
-GLAPI void APIENTRY glBeginTransformFeedback (GLenum primitiveMode);
-GLAPI void APIENTRY glEndTransformFeedback (void);
-GLAPI void APIENTRY glBindBufferRange (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
-GLAPI void APIENTRY glBindBufferBase (GLenum target, GLuint index, GLuint buffer);
-GLAPI void APIENTRY glTransformFeedbackVaryings (GLuint program, GLsizei count, const GLchar* const *varyings, GLenum bufferMode);
-GLAPI void APIENTRY glGetTransformFeedbackVarying (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
-GLAPI void APIENTRY glClampColor (GLenum target, GLenum clamp);
-GLAPI void APIENTRY glBeginConditionalRender (GLuint id, GLenum mode);
-GLAPI void APIENTRY glEndConditionalRender (void);
-GLAPI void APIENTRY glVertexAttribIPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-GLAPI void APIENTRY glGetVertexAttribIiv (GLuint index, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetVertexAttribIuiv (GLuint index, GLenum pname, GLuint *params);
-GLAPI void APIENTRY glVertexAttribI1i (GLuint index, GLint x);
-GLAPI void APIENTRY glVertexAttribI2i (GLuint index, GLint x, GLint y);
-GLAPI void APIENTRY glVertexAttribI3i (GLuint index, GLint x, GLint y, GLint z);
-GLAPI void APIENTRY glVertexAttribI4i (GLuint index, GLint x, GLint y, GLint z, GLint w);
-GLAPI void APIENTRY glVertexAttribI1ui (GLuint index, GLuint x);
-GLAPI void APIENTRY glVertexAttribI2ui (GLuint index, GLuint x, GLuint y);
-GLAPI void APIENTRY glVertexAttribI3ui (GLuint index, GLuint x, GLuint y, GLuint z);
-GLAPI void APIENTRY glVertexAttribI4ui (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
-GLAPI void APIENTRY glVertexAttribI1iv (GLuint index, const GLint *v);
-GLAPI void APIENTRY glVertexAttribI2iv (GLuint index, const GLint *v);
-GLAPI void APIENTRY glVertexAttribI3iv (GLuint index, const GLint *v);
-GLAPI void APIENTRY glVertexAttribI4iv (GLuint index, const GLint *v);
-GLAPI void APIENTRY glVertexAttribI1uiv (GLuint index, const GLuint *v);
-GLAPI void APIENTRY glVertexAttribI2uiv (GLuint index, const GLuint *v);
-GLAPI void APIENTRY glVertexAttribI3uiv (GLuint index, const GLuint *v);
-GLAPI void APIENTRY glVertexAttribI4uiv (GLuint index, const GLuint *v);
-GLAPI void APIENTRY glVertexAttribI4bv (GLuint index, const GLbyte *v);
-GLAPI void APIENTRY glVertexAttribI4sv (GLuint index, const GLshort *v);
-GLAPI void APIENTRY glVertexAttribI4ubv (GLuint index, const GLubyte *v);
-GLAPI void APIENTRY glVertexAttribI4usv (GLuint index, const GLushort *v);
-GLAPI void APIENTRY glGetUniformuiv (GLuint program, GLint location, GLuint *params);
-GLAPI void APIENTRY glBindFragDataLocation (GLuint program, GLuint color, const GLchar *name);
-GLAPI GLint APIENTRY glGetFragDataLocation (GLuint program, const GLchar *name);
-GLAPI void APIENTRY glUniform1ui (GLint location, GLuint v0);
-GLAPI void APIENTRY glUniform2ui (GLint location, GLuint v0, GLuint v1);
-GLAPI void APIENTRY glUniform3ui (GLint location, GLuint v0, GLuint v1, GLuint v2);
-GLAPI void APIENTRY glUniform4ui (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
-GLAPI void APIENTRY glUniform1uiv (GLint location, GLsizei count, const GLuint *value);
-GLAPI void APIENTRY glUniform2uiv (GLint location, GLsizei count, const GLuint *value);
-GLAPI void APIENTRY glUniform3uiv (GLint location, GLsizei count, const GLuint *value);
-GLAPI void APIENTRY glUniform4uiv (GLint location, GLsizei count, const GLuint *value);
-GLAPI void APIENTRY glTexParameterIiv (GLenum target, GLenum pname, const GLint *params);
-GLAPI void APIENTRY glTexParameterIuiv (GLenum target, GLenum pname, const GLuint *params);
-GLAPI void APIENTRY glGetTexParameterIiv (GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetTexParameterIuiv (GLenum target, GLenum pname, GLuint *params);
-GLAPI void APIENTRY glClearBufferiv (GLenum buffer, GLint drawbuffer, const GLint *value);
-GLAPI void APIENTRY glClearBufferuiv (GLenum buffer, GLint drawbuffer, const GLuint *value);
-GLAPI void APIENTRY glClearBufferfv (GLenum buffer, GLint drawbuffer, const GLfloat *value);
-GLAPI void APIENTRY glClearBufferfi (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
-GLAPI const GLubyte * APIENTRY glGetStringi (GLenum name, GLuint index);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLCOLORMASKIPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
-typedef void (APIENTRYP PFNGLGETBOOLEANI_VPROC) (GLenum target, GLuint index, GLboolean *data);
-typedef void (APIENTRYP PFNGLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint *data);
-typedef void (APIENTRYP PFNGLENABLEIPROC) (GLenum target, GLuint index);
-typedef void (APIENTRYP PFNGLDISABLEIPROC) (GLenum target, GLuint index);
-typedef GLboolean (APIENTRYP PFNGLISENABLEDIPROC) (GLenum target, GLuint index);
-typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKPROC) (GLenum primitiveMode);
-typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKPROC) (void);
-typedef void (APIENTRYP PFNGLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
-typedef void (APIENTRYP PFNGLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer);
-typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint program, GLsizei count, const GLchar* const *varyings, GLenum bufferMode);
-typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
-typedef void (APIENTRYP PFNGLCLAMPCOLORPROC) (GLenum target, GLenum clamp);
-typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERPROC) (GLuint id, GLenum mode);
-typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERPROC) (void);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVPROC) (GLuint index, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint index, GLenum pname, GLuint *params);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IPROC) (GLuint index, GLint x);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IPROC) (GLuint index, GLint x, GLint y);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IPROC) (GLuint index, GLint x, GLint y, GLint z);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIPROC) (GLuint index, GLuint x);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIPROC) (GLuint index, GLuint x, GLuint y);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVPROC) (GLuint index, const GLint *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVPROC) (GLuint index, const GLint *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVPROC) (GLuint index, const GLint *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVPROC) (GLuint index, const GLint *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVPROC) (GLuint index, const GLuint *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVPROC) (GLuint index, const GLuint *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVPROC) (GLuint index, const GLuint *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVPROC) (GLuint index, const GLuint *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVPROC) (GLuint index, const GLbyte *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVPROC) (GLuint index, const GLshort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVPROC) (GLuint index, const GLubyte *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVPROC) (GLuint index, const GLushort *v);
-typedef void (APIENTRYP PFNGLGETUNIFORMUIVPROC) (GLuint program, GLint location, GLuint *params);
-typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONPROC) (GLuint program, GLuint color, const GLchar *name);
-typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONPROC) (GLuint program, const GLchar *name);
-typedef void (APIENTRYP PFNGLUNIFORM1UIPROC) (GLint location, GLuint v0);
-typedef void (APIENTRYP PFNGLUNIFORM2UIPROC) (GLint location, GLuint v0, GLuint v1);
-typedef void (APIENTRYP PFNGLUNIFORM3UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2);
-typedef void (APIENTRYP PFNGLUNIFORM4UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
-typedef void (APIENTRYP PFNGLUNIFORM1UIVPROC) (GLint location, GLsizei count, const GLuint *value);
-typedef void (APIENTRYP PFNGLUNIFORM2UIVPROC) (GLint location, GLsizei count, const GLuint *value);
-typedef void (APIENTRYP PFNGLUNIFORM3UIVPROC) (GLint location, GLsizei count, const GLuint *value);
-typedef void (APIENTRYP PFNGLUNIFORM4UIVPROC) (GLint location, GLsizei count, const GLuint *value);
-typedef void (APIENTRYP PFNGLTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, const GLint *params);
-typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, const GLuint *params);
-typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, GLuint *params);
-typedef void (APIENTRYP PFNGLCLEARBUFFERIVPROC) (GLenum buffer, GLint drawbuffer, const GLint *value);
-typedef void (APIENTRYP PFNGLCLEARBUFFERUIVPROC) (GLenum buffer, GLint drawbuffer, const GLuint *value);
-typedef void (APIENTRYP PFNGLCLEARBUFFERFVPROC) (GLenum buffer, GLint drawbuffer, const GLfloat *value);
-typedef void (APIENTRYP PFNGLCLEARBUFFERFIPROC) (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
-typedef const GLubyte * (APIENTRYP PFNGLGETSTRINGIPROC) (GLenum name, GLuint index);
-#endif
-
-#ifndef GL_VERSION_3_1
-#define GL_VERSION_3_1 1
-/* OpenGL 3.1 also reuses entry points from these extensions: */
-/* ARB_copy_buffer */
-/* ARB_uniform_buffer_object */
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glDrawArraysInstanced (GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
-GLAPI void APIENTRY glDrawElementsInstanced (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount);
-GLAPI void APIENTRY glTexBuffer (GLenum target, GLenum internalformat, GLuint buffer);
-GLAPI void APIENTRY glPrimitiveRestartIndex (GLuint index);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
-typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount);
-typedef void (APIENTRYP PFNGLTEXBUFFERPROC) (GLenum target, GLenum internalformat, GLuint buffer);
-typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXPROC) (GLuint index);
-#endif
-
-#ifndef GL_VERSION_3_2
-#define GL_VERSION_3_2 1
-/* OpenGL 3.2 also reuses entry points from these extensions: */
-/* ARB_draw_elements_base_vertex */
-/* ARB_provoking_vertex */
-/* ARB_sync */
-/* ARB_texture_multisample */
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glGetInteger64i_v (GLenum target, GLuint index, GLint64 *data);
-GLAPI void APIENTRY glGetBufferParameteri64v (GLenum target, GLenum pname, GLint64 *params);
-GLAPI void APIENTRY glFramebufferTexture (GLenum target, GLenum attachment, GLuint texture, GLint level);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLGETINTEGER64I_VPROC) (GLenum target, GLuint index, GLint64 *data);
-typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERI64VPROC) (GLenum target, GLenum pname, GLint64 *params);
-typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
-#endif
-
-#ifndef GL_VERSION_3_3
-#define GL_VERSION_3_3 1
-/* OpenGL 3.3 also reuses entry points from these extensions: */
-/* ARB_blend_func_extended */
-/* ARB_sampler_objects */
-/* ARB_explicit_attrib_location, but it has none */
-/* ARB_occlusion_query2 (no entry points) */
-/* ARB_shader_bit_encoding (no entry points) */
-/* ARB_texture_rgb10_a2ui (no entry points) */
-/* ARB_texture_swizzle (no entry points) */
-/* ARB_timer_query */
-/* ARB_vertex_type_2_10_10_10_rev */
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glVertexAttribDivisor (GLuint index, GLuint divisor);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORPROC) (GLuint index, GLuint divisor);
-#endif
-
-#ifndef GL_VERSION_4_0
-#define GL_VERSION_4_0 1
-/* OpenGL 4.0 also reuses entry points from these extensions: */
-/* ARB_texture_query_lod (no entry points) */
-/* ARB_draw_indirect */
-/* ARB_gpu_shader5 (no entry points) */
-/* ARB_gpu_shader_fp64 */
-/* ARB_shader_subroutine */
-/* ARB_tessellation_shader */
-/* ARB_texture_buffer_object_rgb32 (no entry points) */
-/* ARB_texture_cube_map_array (no entry points) */
-/* ARB_texture_gather (no entry points) */
-/* ARB_transform_feedback2 */
-/* ARB_transform_feedback3 */
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glMinSampleShading (GLfloat value);
-GLAPI void APIENTRY glBlendEquationi (GLuint buf, GLenum mode);
-GLAPI void APIENTRY glBlendEquationSeparatei (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
-GLAPI void APIENTRY glBlendFunci (GLuint buf, GLenum src, GLenum dst);
-GLAPI void APIENTRY glBlendFuncSeparatei (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLMINSAMPLESHADINGPROC) (GLfloat value);
-typedef void (APIENTRYP PFNGLBLENDEQUATIONIPROC) (GLuint buf, GLenum mode);
-typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
-typedef void (APIENTRYP PFNGLBLENDFUNCIPROC) (GLuint buf, GLenum src, GLenum dst);
-typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
-#endif
-
-#ifndef GL_VERSION_4_1
-#define GL_VERSION_4_1 1
-/* OpenGL 4.1 reuses entry points from these extensions: */
-/* ARB_ES2_compatibility */
-/* ARB_get_program_binary */
-/* ARB_separate_shader_objects */
-/* ARB_shader_precision (no entry points) */
-/* ARB_vertex_attrib_64bit */
-/* ARB_viewport_array */
-#endif
-
-#ifndef GL_VERSION_4_2
-#define GL_VERSION_4_2 1
-/* OpenGL 4.2 reuses entry points from these extensions: */
-/* ARB_base_instance */
-/* ARB_shading_language_420pack (no entry points) */
-/* ARB_transform_feedback_instanced */
-/* ARB_compressed_texture_pixel_storage (no entry points) */
-/* ARB_conservative_depth (no entry points) */
-/* ARB_internalformat_query */
-/* ARB_map_buffer_alignment (no entry points) */
-/* ARB_shader_atomic_counters */
-/* ARB_shader_image_load_store */
-/* ARB_shading_language_packing (no entry points) */
-/* ARB_texture_storage */
-#endif
-
-#ifndef GL_VERSION_4_3
-#define GL_VERSION_4_3 1
-/* OpenGL 4.3 reuses entry points from these extensions: */
-/* ARB_arrays_of_arrays (no entry points, GLSL only) */
-/* ARB_fragment_layer_viewport (no entry points, GLSL only) */
-/* ARB_shader_image_size (no entry points, GLSL only) */
-/* ARB_ES3_compatibility (no entry points) */
-/* ARB_clear_buffer_object */
-/* ARB_compute_shader */
-/* ARB_copy_image */
-/* KHR_debug (includes ARB_debug_output commands promoted to KHR without suffixes) */
-/* ARB_explicit_uniform_location (no entry points) */
-/* ARB_framebuffer_no_attachments */
-/* ARB_internalformat_query2 */
-/* ARB_invalidate_subdata */
-/* ARB_multi_draw_indirect */
-/* ARB_program_interface_query */
-/* ARB_robust_buffer_access_behavior (no entry points) */
-/* ARB_shader_storage_buffer_object */
-/* ARB_stencil_texturing (no entry points) */
-/* ARB_texture_buffer_range */
-/* ARB_texture_query_levels (no entry points) */
-/* ARB_texture_storage_multisample */
-/* ARB_texture_view */
-/* ARB_vertex_attrib_binding */
-#endif
-
-#ifndef GL_ARB_multitexture
-#define GL_ARB_multitexture 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glActiveTextureARB (GLenum texture);
-GLAPI void APIENTRY glClientActiveTextureARB (GLenum texture);
-GLAPI void APIENTRY glMultiTexCoord1dARB (GLenum target, GLdouble s);
-GLAPI void APIENTRY glMultiTexCoord1dvARB (GLenum target, const GLdouble *v);
-GLAPI void APIENTRY glMultiTexCoord1fARB (GLenum target, GLfloat s);
-GLAPI void APIENTRY glMultiTexCoord1fvARB (GLenum target, const GLfloat *v);
-GLAPI void APIENTRY glMultiTexCoord1iARB (GLenum target, GLint s);
-GLAPI void APIENTRY glMultiTexCoord1ivARB (GLenum target, const GLint *v);
-GLAPI void APIENTRY glMultiTexCoord1sARB (GLenum target, GLshort s);
-GLAPI void APIENTRY glMultiTexCoord1svARB (GLenum target, const GLshort *v);
-GLAPI void APIENTRY glMultiTexCoord2dARB (GLenum target, GLdouble s, GLdouble t);
-GLAPI void APIENTRY glMultiTexCoord2dvARB (GLenum target, const GLdouble *v);
-GLAPI void APIENTRY glMultiTexCoord2fARB (GLenum target, GLfloat s, GLfloat t);
-GLAPI void APIENTRY glMultiTexCoord2fvARB (GLenum target, const GLfloat *v);
-GLAPI void APIENTRY glMultiTexCoord2iARB (GLenum target, GLint s, GLint t);
-GLAPI void APIENTRY glMultiTexCoord2ivARB (GLenum target, const GLint *v);
-GLAPI void APIENTRY glMultiTexCoord2sARB (GLenum target, GLshort s, GLshort t);
-GLAPI void APIENTRY glMultiTexCoord2svARB (GLenum target, const GLshort *v);
-GLAPI void APIENTRY glMultiTexCoord3dARB (GLenum target, GLdouble s, GLdouble t, GLdouble r);
-GLAPI void APIENTRY glMultiTexCoord3dvARB (GLenum target, const GLdouble *v);
-GLAPI void APIENTRY glMultiTexCoord3fARB (GLenum target, GLfloat s, GLfloat t, GLfloat r);
-GLAPI void APIENTRY glMultiTexCoord3fvARB (GLenum target, const GLfloat *v);
-GLAPI void APIENTRY glMultiTexCoord3iARB (GLenum target, GLint s, GLint t, GLint r);
-GLAPI void APIENTRY glMultiTexCoord3ivARB (GLenum target, const GLint *v);
-GLAPI void APIENTRY glMultiTexCoord3sARB (GLenum target, GLshort s, GLshort t, GLshort r);
-GLAPI void APIENTRY glMultiTexCoord3svARB (GLenum target, const GLshort *v);
-GLAPI void APIENTRY glMultiTexCoord4dARB (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
-GLAPI void APIENTRY glMultiTexCoord4dvARB (GLenum target, const GLdouble *v);
-GLAPI void APIENTRY glMultiTexCoord4fARB (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
-GLAPI void APIENTRY glMultiTexCoord4fvARB (GLenum target, const GLfloat *v);
-GLAPI void APIENTRY glMultiTexCoord4iARB (GLenum target, GLint s, GLint t, GLint r, GLint q);
-GLAPI void APIENTRY glMultiTexCoord4ivARB (GLenum target, const GLint *v);
-GLAPI void APIENTRY glMultiTexCoord4sARB (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
-GLAPI void APIENTRY glMultiTexCoord4svARB (GLenum target, const GLshort *v);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLACTIVETEXTUREARBPROC) (GLenum texture);
-typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v);
-#endif
-
-#ifndef GL_ARB_transpose_matrix
-#define GL_ARB_transpose_matrix 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glLoadTransposeMatrixfARB (const GLfloat *m);
-GLAPI void APIENTRY glLoadTransposeMatrixdARB (const GLdouble *m);
-GLAPI void APIENTRY glMultTransposeMatrixfARB (const GLfloat *m);
-GLAPI void APIENTRY glMultTransposeMatrixdARB (const GLdouble *m);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFARBPROC) (const GLfloat *m);
-typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDARBPROC) (const GLdouble *m);
-typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFARBPROC) (const GLfloat *m);
-typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDARBPROC) (const GLdouble *m);
-#endif
-
-#ifndef GL_ARB_multisample
-#define GL_ARB_multisample 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glSampleCoverageARB (GLfloat value, GLboolean invert);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLSAMPLECOVERAGEARBPROC) (GLfloat value, GLboolean invert);
-#endif
-
-#ifndef GL_ARB_texture_env_add
-#define GL_ARB_texture_env_add 1
-#endif
-
-#ifndef GL_ARB_texture_cube_map
-#define GL_ARB_texture_cube_map 1
-#endif
-
-#ifndef GL_ARB_texture_compression
-#define GL_ARB_texture_compression 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glCompressedTexImage3DARB (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
-GLAPI void APIENTRY glCompressedTexImage2DARB (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
-GLAPI void APIENTRY glCompressedTexImage1DARB (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
-GLAPI void APIENTRY glCompressedTexSubImage3DARB (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data);
-GLAPI void APIENTRY glCompressedTexSubImage2DARB (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
-GLAPI void APIENTRY glCompressedTexSubImage1DARB (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
-GLAPI void APIENTRY glGetCompressedTexImageARB (GLenum target, GLint level, GLvoid *img);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
-typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
-typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
-typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data);
-typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
-typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
-typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint level, GLvoid *img);
-#endif
-
-#ifndef GL_ARB_texture_border_clamp
-#define GL_ARB_texture_border_clamp 1
-#endif
-
-#ifndef GL_ARB_point_parameters
-#define GL_ARB_point_parameters 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glPointParameterfARB (GLenum pname, GLfloat param);
-GLAPI void APIENTRY glPointParameterfvARB (GLenum pname, const GLfloat *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLPOINTPARAMETERFARBPROC) (GLenum pname, GLfloat param);
-typedef void (APIENTRYP PFNGLPOINTPARAMETERFVARBPROC) (GLenum pname, const GLfloat *params);
-#endif
-
-#ifndef GL_ARB_vertex_blend
-#define GL_ARB_vertex_blend 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glWeightbvARB (GLint size, const GLbyte *weights);
-GLAPI void APIENTRY glWeightsvARB (GLint size, const GLshort *weights);
-GLAPI void APIENTRY glWeightivARB (GLint size, const GLint *weights);
-GLAPI void APIENTRY glWeightfvARB (GLint size, const GLfloat *weights);
-GLAPI void APIENTRY glWeightdvARB (GLint size, const GLdouble *weights);
-GLAPI void APIENTRY glWeightubvARB (GLint size, const GLubyte *weights);
-GLAPI void APIENTRY glWeightusvARB (GLint size, const GLushort *weights);
-GLAPI void APIENTRY glWeightuivARB (GLint size, const GLuint *weights);
-GLAPI void APIENTRY glWeightPointerARB (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-GLAPI void APIENTRY glVertexBlendARB (GLint count);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLWEIGHTBVARBPROC) (GLint size, const GLbyte *weights);
-typedef void (APIENTRYP PFNGLWEIGHTSVARBPROC) (GLint size, const GLshort *weights);
-typedef void (APIENTRYP PFNGLWEIGHTIVARBPROC) (GLint size, const GLint *weights);
-typedef void (APIENTRYP PFNGLWEIGHTFVARBPROC) (GLint size, const GLfloat *weights);
-typedef void (APIENTRYP PFNGLWEIGHTDVARBPROC) (GLint size, const GLdouble *weights);
-typedef void (APIENTRYP PFNGLWEIGHTUBVARBPROC) (GLint size, const GLubyte *weights);
-typedef void (APIENTRYP PFNGLWEIGHTUSVARBPROC) (GLint size, const GLushort *weights);
-typedef void (APIENTRYP PFNGLWEIGHTUIVARBPROC) (GLint size, const GLuint *weights);
-typedef void (APIENTRYP PFNGLWEIGHTPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-typedef void (APIENTRYP PFNGLVERTEXBLENDARBPROC) (GLint count);
-#endif
-
-#ifndef GL_ARB_matrix_palette
-#define GL_ARB_matrix_palette 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glCurrentPaletteMatrixARB (GLint index);
-GLAPI void APIENTRY glMatrixIndexubvARB (GLint size, const GLubyte *indices);
-GLAPI void APIENTRY glMatrixIndexusvARB (GLint size, const GLushort *indices);
-GLAPI void APIENTRY glMatrixIndexuivARB (GLint size, const GLuint *indices);
-GLAPI void APIENTRY glMatrixIndexPointerARB (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLCURRENTPALETTEMATRIXARBPROC) (GLint index);
-typedef void (APIENTRYP PFNGLMATRIXINDEXUBVARBPROC) (GLint size, const GLubyte *indices);
-typedef void (APIENTRYP PFNGLMATRIXINDEXUSVARBPROC) (GLint size, const GLushort *indices);
-typedef void (APIENTRYP PFNGLMATRIXINDEXUIVARBPROC) (GLint size, const GLuint *indices);
-typedef void (APIENTRYP PFNGLMATRIXINDEXPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-#endif
-
-#ifndef GL_ARB_texture_env_combine
-#define GL_ARB_texture_env_combine 1
-#endif
-
-#ifndef GL_ARB_texture_env_crossbar
-#define GL_ARB_texture_env_crossbar 1
-#endif
-
-#ifndef GL_ARB_texture_env_dot3
-#define GL_ARB_texture_env_dot3 1
-#endif
-
-#ifndef GL_ARB_texture_mirrored_repeat
-#define GL_ARB_texture_mirrored_repeat 1
-#endif
-
-#ifndef GL_ARB_depth_texture
-#define GL_ARB_depth_texture 1
-#endif
-
-#ifndef GL_ARB_shadow
-#define GL_ARB_shadow 1
-#endif
-
-#ifndef GL_ARB_shadow_ambient
-#define GL_ARB_shadow_ambient 1
-#endif
-
-#ifndef GL_ARB_window_pos
-#define GL_ARB_window_pos 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glWindowPos2dARB (GLdouble x, GLdouble y);
-GLAPI void APIENTRY glWindowPos2dvARB (const GLdouble *v);
-GLAPI void APIENTRY glWindowPos2fARB (GLfloat x, GLfloat y);
-GLAPI void APIENTRY glWindowPos2fvARB (const GLfloat *v);
-GLAPI void APIENTRY glWindowPos2iARB (GLint x, GLint y);
-GLAPI void APIENTRY glWindowPos2ivARB (const GLint *v);
-GLAPI void APIENTRY glWindowPos2sARB (GLshort x, GLshort y);
-GLAPI void APIENTRY glWindowPos2svARB (const GLshort *v);
-GLAPI void APIENTRY glWindowPos3dARB (GLdouble x, GLdouble y, GLdouble z);
-GLAPI void APIENTRY glWindowPos3dvARB (const GLdouble *v);
-GLAPI void APIENTRY glWindowPos3fARB (GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glWindowPos3fvARB (const GLfloat *v);
-GLAPI void APIENTRY glWindowPos3iARB (GLint x, GLint y, GLint z);
-GLAPI void APIENTRY glWindowPos3ivARB (const GLint *v);
-GLAPI void APIENTRY glWindowPos3sARB (GLshort x, GLshort y, GLshort z);
-GLAPI void APIENTRY glWindowPos3svARB (const GLshort *v);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLWINDOWPOS2DARBPROC) (GLdouble x, GLdouble y);
-typedef void (APIENTRYP PFNGLWINDOWPOS2DVARBPROC) (const GLdouble *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS2FARBPROC) (GLfloat x, GLfloat y);
-typedef void (APIENTRYP PFNGLWINDOWPOS2FVARBPROC) (const GLfloat *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS2IARBPROC) (GLint x, GLint y);
-typedef void (APIENTRYP PFNGLWINDOWPOS2IVARBPROC) (const GLint *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS2SARBPROC) (GLshort x, GLshort y);
-typedef void (APIENTRYP PFNGLWINDOWPOS2SVARBPROC) (const GLshort *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS3DARBPROC) (GLdouble x, GLdouble y, GLdouble z);
-typedef void (APIENTRYP PFNGLWINDOWPOS3DVARBPROC) (const GLdouble *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS3FARBPROC) (GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLWINDOWPOS3FVARBPROC) (const GLfloat *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS3IARBPROC) (GLint x, GLint y, GLint z);
-typedef void (APIENTRYP PFNGLWINDOWPOS3IVARBPROC) (const GLint *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS3SARBPROC) (GLshort x, GLshort y, GLshort z);
-typedef void (APIENTRYP PFNGLWINDOWPOS3SVARBPROC) (const GLshort *v);
-#endif
-
-#ifndef GL_ARB_vertex_program
-#define GL_ARB_vertex_program 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glVertexAttrib1dARB (GLuint index, GLdouble x);
-GLAPI void APIENTRY glVertexAttrib1dvARB (GLuint index, const GLdouble *v);
-GLAPI void APIENTRY glVertexAttrib1fARB (GLuint index, GLfloat x);
-GLAPI void APIENTRY glVertexAttrib1fvARB (GLuint index, const GLfloat *v);
-GLAPI void APIENTRY glVertexAttrib1sARB (GLuint index, GLshort x);
-GLAPI void APIENTRY glVertexAttrib1svARB (GLuint index, const GLshort *v);
-GLAPI void APIENTRY glVertexAttrib2dARB (GLuint index, GLdouble x, GLdouble y);
-GLAPI void APIENTRY glVertexAttrib2dvARB (GLuint index, const GLdouble *v);
-GLAPI void APIENTRY glVertexAttrib2fARB (GLuint index, GLfloat x, GLfloat y);
-GLAPI void APIENTRY glVertexAttrib2fvARB (GLuint index, const GLfloat *v);
-GLAPI void APIENTRY glVertexAttrib2sARB (GLuint index, GLshort x, GLshort y);
-GLAPI void APIENTRY glVertexAttrib2svARB (GLuint index, const GLshort *v);
-GLAPI void APIENTRY glVertexAttrib3dARB (GLuint index, GLdouble x, GLdouble y, GLdouble z);
-GLAPI void APIENTRY glVertexAttrib3dvARB (GLuint index, const GLdouble *v);
-GLAPI void APIENTRY glVertexAttrib3fARB (GLuint index, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glVertexAttrib3fvARB (GLuint index, const GLfloat *v);
-GLAPI void APIENTRY glVertexAttrib3sARB (GLuint index, GLshort x, GLshort y, GLshort z);
-GLAPI void APIENTRY glVertexAttrib3svARB (GLuint index, const GLshort *v);
-GLAPI void APIENTRY glVertexAttrib4NbvARB (GLuint index, const GLbyte *v);
-GLAPI void APIENTRY glVertexAttrib4NivARB (GLuint index, const GLint *v);
-GLAPI void APIENTRY glVertexAttrib4NsvARB (GLuint index, const GLshort *v);
-GLAPI void APIENTRY glVertexAttrib4NubARB (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
-GLAPI void APIENTRY glVertexAttrib4NubvARB (GLuint index, const GLubyte *v);
-GLAPI void APIENTRY glVertexAttrib4NuivARB (GLuint index, const GLuint *v);
-GLAPI void APIENTRY glVertexAttrib4NusvARB (GLuint index, const GLushort *v);
-GLAPI void APIENTRY glVertexAttrib4bvARB (GLuint index, const GLbyte *v);
-GLAPI void APIENTRY glVertexAttrib4dARB (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-GLAPI void APIENTRY glVertexAttrib4dvARB (GLuint index, const GLdouble *v);
-GLAPI void APIENTRY glVertexAttrib4fARB (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-GLAPI void APIENTRY glVertexAttrib4fvARB (GLuint index, const GLfloat *v);
-GLAPI void APIENTRY glVertexAttrib4ivARB (GLuint index, const GLint *v);
-GLAPI void APIENTRY glVertexAttrib4sARB (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
-GLAPI void APIENTRY glVertexAttrib4svARB (GLuint index, const GLshort *v);
-GLAPI void APIENTRY glVertexAttrib4ubvARB (GLuint index, const GLubyte *v);
-GLAPI void APIENTRY glVertexAttrib4uivARB (GLuint index, const GLuint *v);
-GLAPI void APIENTRY glVertexAttrib4usvARB (GLuint index, const GLushort *v);
-GLAPI void APIENTRY glVertexAttribPointerARB (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
-GLAPI void APIENTRY glEnableVertexAttribArrayARB (GLuint index);
-GLAPI void APIENTRY glDisableVertexAttribArrayARB (GLuint index);
-GLAPI void APIENTRY glProgramStringARB (GLenum target, GLenum format, GLsizei len, const GLvoid *string);
-GLAPI void APIENTRY glBindProgramARB (GLenum target, GLuint program);
-GLAPI void APIENTRY glDeleteProgramsARB (GLsizei n, const GLuint *programs);
-GLAPI void APIENTRY glGenProgramsARB (GLsizei n, GLuint *programs);
-GLAPI void APIENTRY glProgramEnvParameter4dARB (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-GLAPI void APIENTRY glProgramEnvParameter4dvARB (GLenum target, GLuint index, const GLdouble *params);
-GLAPI void APIENTRY glProgramEnvParameter4fARB (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-GLAPI void APIENTRY glProgramEnvParameter4fvARB (GLenum target, GLuint index, const GLfloat *params);
-GLAPI void APIENTRY glProgramLocalParameter4dARB (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-GLAPI void APIENTRY glProgramLocalParameter4dvARB (GLenum target, GLuint index, const GLdouble *params);
-GLAPI void APIENTRY glProgramLocalParameter4fARB (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-GLAPI void APIENTRY glProgramLocalParameter4fvARB (GLenum target, GLuint index, const GLfloat *params);
-GLAPI void APIENTRY glGetProgramEnvParameterdvARB (GLenum target, GLuint index, GLdouble *params);
-GLAPI void APIENTRY glGetProgramEnvParameterfvARB (GLenum target, GLuint index, GLfloat *params);
-GLAPI void APIENTRY glGetProgramLocalParameterdvARB (GLenum target, GLuint index, GLdouble *params);
-GLAPI void APIENTRY glGetProgramLocalParameterfvARB (GLenum target, GLuint index, GLfloat *params);
-GLAPI void APIENTRY glGetProgramivARB (GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetProgramStringARB (GLenum target, GLenum pname, GLvoid *string);
-GLAPI void APIENTRY glGetVertexAttribdvARB (GLuint index, GLenum pname, GLdouble *params);
-GLAPI void APIENTRY glGetVertexAttribfvARB (GLuint index, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetVertexAttribivARB (GLuint index, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetVertexAttribPointervARB (GLuint index, GLenum pname, GLvoid* *pointer);
-GLAPI GLboolean APIENTRY glIsProgramARB (GLuint program);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLVERTEXATTRIB1DARBPROC) (GLuint index, GLdouble x);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVARBPROC) (GLuint index, const GLdouble *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB1FARBPROC) (GLuint index, GLfloat x);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVARBPROC) (GLuint index, const GLfloat *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB1SARBPROC) (GLuint index, GLshort x);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVARBPROC) (GLuint index, const GLshort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB2DARBPROC) (GLuint index, GLdouble x, GLdouble y);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVARBPROC) (GLuint index, const GLdouble *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB2FARBPROC) (GLuint index, GLfloat x, GLfloat y);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVARBPROC) (GLuint index, const GLfloat *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB2SARBPROC) (GLuint index, GLshort x, GLshort y);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVARBPROC) (GLuint index, const GLshort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB3DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVARBPROC) (GLuint index, const GLdouble *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB3FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVARBPROC) (GLuint index, const GLfloat *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB3SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVARBPROC) (GLuint index, const GLshort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVARBPROC) (GLuint index, const GLbyte *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVARBPROC) (GLuint index, const GLint *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVARBPROC) (GLuint index, const GLshort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBARBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVARBPROC) (GLuint index, const GLubyte *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVARBPROC) (GLuint index, const GLuint *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVARBPROC) (GLuint index, const GLushort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVARBPROC) (GLuint index, const GLbyte *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVARBPROC) (GLuint index, const GLdouble *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVARBPROC) (GLuint index, const GLfloat *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVARBPROC) (GLuint index, const GLint *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVARBPROC) (GLuint index, const GLshort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVARBPROC) (GLuint index, const GLubyte *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVARBPROC) (GLuint index, const GLuint *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVARBPROC) (GLuint index, const GLushort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERARBPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
-typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYARBPROC) (GLuint index);
-typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYARBPROC) (GLuint index);
-typedef void (APIENTRYP PFNGLPROGRAMSTRINGARBPROC) (GLenum target, GLenum format, GLsizei len, const GLvoid *string);
-typedef void (APIENTRYP PFNGLBINDPROGRAMARBPROC) (GLenum target, GLuint program);
-typedef void (APIENTRYP PFNGLDELETEPROGRAMSARBPROC) (GLsizei n, const GLuint *programs);
-typedef void (APIENTRYP PFNGLGENPROGRAMSARBPROC) (GLsizei n, GLuint *programs);
-typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params);
-typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params);
-typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params);
-typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params);
-typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params);
-typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params);
-typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETPROGRAMIVARBPROC) (GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETPROGRAMSTRINGARBPROC) (GLenum target, GLenum pname, GLvoid *string);
-typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVARBPROC) (GLuint index, GLenum pname, GLdouble *params);
-typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVARBPROC) (GLuint index, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVARBPROC) (GLuint index, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVARBPROC) (GLuint index, GLenum pname, GLvoid* *pointer);
-typedef GLboolean (APIENTRYP PFNGLISPROGRAMARBPROC) (GLuint program);
-#endif
-
-#ifndef GL_ARB_fragment_program
-#define GL_ARB_fragment_program 1
-/* All ARB_fragment_program entry points are shared with ARB_vertex_program. */
-#endif
-
-#ifndef GL_ARB_vertex_buffer_object
-#define GL_ARB_vertex_buffer_object 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBindBufferARB (GLenum target, GLuint buffer);
-GLAPI void APIENTRY glDeleteBuffersARB (GLsizei n, const GLuint *buffers);
-GLAPI void APIENTRY glGenBuffersARB (GLsizei n, GLuint *buffers);
-GLAPI GLboolean APIENTRY glIsBufferARB (GLuint buffer);
-GLAPI void APIENTRY glBufferDataARB (GLenum target, GLsizeiptrARB size, const GLvoid *data, GLenum usage);
-GLAPI void APIENTRY glBufferSubDataARB (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid *data);
-GLAPI void APIENTRY glGetBufferSubDataARB (GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid *data);
-GLAPI GLvoid* APIENTRY glMapBufferARB (GLenum target, GLenum access);
-GLAPI GLboolean APIENTRY glUnmapBufferARB (GLenum target);
-GLAPI void APIENTRY glGetBufferParameterivARB (GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetBufferPointervARB (GLenum target, GLenum pname, GLvoid* *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBINDBUFFERARBPROC) (GLenum target, GLuint buffer);
-typedef void (APIENTRYP PFNGLDELETEBUFFERSARBPROC) (GLsizei n, const GLuint *buffers);
-typedef void (APIENTRYP PFNGLGENBUFFERSARBPROC) (GLsizei n, GLuint *buffers);
-typedef GLboolean (APIENTRYP PFNGLISBUFFERARBPROC) (GLuint buffer);
-typedef void (APIENTRYP PFNGLBUFFERDATAARBPROC) (GLenum target, GLsizeiptrARB size, const GLvoid *data, GLenum usage);
-typedef void (APIENTRYP PFNGLBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid *data);
-typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid *data);
-typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access);
-typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERARBPROC) (GLenum target);
-typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVARBPROC) (GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVARBPROC) (GLenum target, GLenum pname, GLvoid* *params);
-#endif
-
-#ifndef GL_ARB_occlusion_query
-#define GL_ARB_occlusion_query 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glGenQueriesARB (GLsizei n, GLuint *ids);
-GLAPI void APIENTRY glDeleteQueriesARB (GLsizei n, const GLuint *ids);
-GLAPI GLboolean APIENTRY glIsQueryARB (GLuint id);
-GLAPI void APIENTRY glBeginQueryARB (GLenum target, GLuint id);
-GLAPI void APIENTRY glEndQueryARB (GLenum target);
-GLAPI void APIENTRY glGetQueryivARB (GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetQueryObjectivARB (GLuint id, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetQueryObjectuivARB (GLuint id, GLenum pname, GLuint *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLGENQUERIESARBPROC) (GLsizei n, GLuint *ids);
-typedef void (APIENTRYP PFNGLDELETEQUERIESARBPROC) (GLsizei n, const GLuint *ids);
-typedef GLboolean (APIENTRYP PFNGLISQUERYARBPROC) (GLuint id);
-typedef void (APIENTRYP PFNGLBEGINQUERYARBPROC) (GLenum target, GLuint id);
-typedef void (APIENTRYP PFNGLENDQUERYARBPROC) (GLenum target);
-typedef void (APIENTRYP PFNGLGETQUERYIVARBPROC) (GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVARBPROC) (GLuint id, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVARBPROC) (GLuint id, GLenum pname, GLuint *params);
-#endif
-
-#ifndef GL_ARB_shader_objects
-#define GL_ARB_shader_objects 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glDeleteObjectARB (GLhandleARB obj);
-GLAPI GLhandleARB APIENTRY glGetHandleARB (GLenum pname);
-GLAPI void APIENTRY glDetachObjectARB (GLhandleARB containerObj, GLhandleARB attachedObj);
-GLAPI GLhandleARB APIENTRY glCreateShaderObjectARB (GLenum shaderType);
-GLAPI void APIENTRY glShaderSourceARB (GLhandleARB shaderObj, GLsizei count, const GLcharARB* *string, const GLint *length);
-GLAPI void APIENTRY glCompileShaderARB (GLhandleARB shaderObj);
-GLAPI GLhandleARB APIENTRY glCreateProgramObjectARB (void);
-GLAPI void APIENTRY glAttachObjectARB (GLhandleARB containerObj, GLhandleARB obj);
-GLAPI void APIENTRY glLinkProgramARB (GLhandleARB programObj);
-GLAPI void APIENTRY glUseProgramObjectARB (GLhandleARB programObj);
-GLAPI void APIENTRY glValidateProgramARB (GLhandleARB programObj);
-GLAPI void APIENTRY glUniform1fARB (GLint location, GLfloat v0);
-GLAPI void APIENTRY glUniform2fARB (GLint location, GLfloat v0, GLfloat v1);
-GLAPI void APIENTRY glUniform3fARB (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
-GLAPI void APIENTRY glUniform4fARB (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
-GLAPI void APIENTRY glUniform1iARB (GLint location, GLint v0);
-GLAPI void APIENTRY glUniform2iARB (GLint location, GLint v0, GLint v1);
-GLAPI void APIENTRY glUniform3iARB (GLint location, GLint v0, GLint v1, GLint v2);
-GLAPI void APIENTRY glUniform4iARB (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
-GLAPI void APIENTRY glUniform1fvARB (GLint location, GLsizei count, const GLfloat *value);
-GLAPI void APIENTRY glUniform2fvARB (GLint location, GLsizei count, const GLfloat *value);
-GLAPI void APIENTRY glUniform3fvARB (GLint location, GLsizei count, const GLfloat *value);
-GLAPI void APIENTRY glUniform4fvARB (GLint location, GLsizei count, const GLfloat *value);
-GLAPI void APIENTRY glUniform1ivARB (GLint location, GLsizei count, const GLint *value);
-GLAPI void APIENTRY glUniform2ivARB (GLint location, GLsizei count, const GLint *value);
-GLAPI void APIENTRY glUniform3ivARB (GLint location, GLsizei count, const GLint *value);
-GLAPI void APIENTRY glUniform4ivARB (GLint location, GLsizei count, const GLint *value);
-GLAPI void APIENTRY glUniformMatrix2fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glUniformMatrix3fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glUniformMatrix4fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glGetObjectParameterfvARB (GLhandleARB obj, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetObjectParameterivARB (GLhandleARB obj, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetInfoLogARB (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog);
-GLAPI void APIENTRY glGetAttachedObjectsARB (GLhandleARB containerObj, GLsizei maxCount, GLsizei *count, GLhandleARB *obj);
-GLAPI GLint APIENTRY glGetUniformLocationARB (GLhandleARB programObj, const GLcharARB *name);
-GLAPI void APIENTRY glGetActiveUniformARB (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
-GLAPI void APIENTRY glGetUniformfvARB (GLhandleARB programObj, GLint location, GLfloat *params);
-GLAPI void APIENTRY glGetUniformivARB (GLhandleARB programObj, GLint location, GLint *params);
-GLAPI void APIENTRY glGetShaderSourceARB (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLDELETEOBJECTARBPROC) (GLhandleARB obj);
-typedef GLhandleARB (APIENTRYP PFNGLGETHANDLEARBPROC) (GLenum pname);
-typedef void (APIENTRYP PFNGLDETACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB attachedObj);
-typedef GLhandleARB (APIENTRYP PFNGLCREATESHADEROBJECTARBPROC) (GLenum shaderType);
-typedef void (APIENTRYP PFNGLSHADERSOURCEARBPROC) (GLhandleARB shaderObj, GLsizei count, const GLcharARB* *string, const GLint *length);
-typedef void (APIENTRYP PFNGLCOMPILESHADERARBPROC) (GLhandleARB shaderObj);
-typedef GLhandleARB (APIENTRYP PFNGLCREATEPROGRAMOBJECTARBPROC) (void);
-typedef void (APIENTRYP PFNGLATTACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB obj);
-typedef void (APIENTRYP PFNGLLINKPROGRAMARBPROC) (GLhandleARB programObj);
-typedef void (APIENTRYP PFNGLUSEPROGRAMOBJECTARBPROC) (GLhandleARB programObj);
-typedef void (APIENTRYP PFNGLVALIDATEPROGRAMARBPROC) (GLhandleARB programObj);
-typedef void (APIENTRYP PFNGLUNIFORM1FARBPROC) (GLint location, GLfloat v0);
-typedef void (APIENTRYP PFNGLUNIFORM2FARBPROC) (GLint location, GLfloat v0, GLfloat v1);
-typedef void (APIENTRYP PFNGLUNIFORM3FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
-typedef void (APIENTRYP PFNGLUNIFORM4FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
-typedef void (APIENTRYP PFNGLUNIFORM1IARBPROC) (GLint location, GLint v0);
-typedef void (APIENTRYP PFNGLUNIFORM2IARBPROC) (GLint location, GLint v0, GLint v1);
-typedef void (APIENTRYP PFNGLUNIFORM3IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2);
-typedef void (APIENTRYP PFNGLUNIFORM4IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
-typedef void (APIENTRYP PFNGLUNIFORM1FVARBPROC) (GLint location, GLsizei count, const GLfloat *value);
-typedef void (APIENTRYP PFNGLUNIFORM2FVARBPROC) (GLint location, GLsizei count, const GLfloat *value);
-typedef void (APIENTRYP PFNGLUNIFORM3FVARBPROC) (GLint location, GLsizei count, const GLfloat *value);
-typedef void (APIENTRYP PFNGLUNIFORM4FVARBPROC) (GLint location, GLsizei count, const GLfloat *value);
-typedef void (APIENTRYP PFNGLUNIFORM1IVARBPROC) (GLint location, GLsizei count, const GLint *value);
-typedef void (APIENTRYP PFNGLUNIFORM2IVARBPROC) (GLint location, GLsizei count, const GLint *value);
-typedef void (APIENTRYP PFNGLUNIFORM3IVARBPROC) (GLint location, GLsizei count, const GLint *value);
-typedef void (APIENTRYP PFNGLUNIFORM4IVARBPROC) (GLint location, GLsizei count, const GLint *value);
-typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERFVARBPROC) (GLhandleARB obj, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERIVARBPROC) (GLhandleARB obj, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETINFOLOGARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog);
-typedef void (APIENTRYP PFNGLGETATTACHEDOBJECTSARBPROC) (GLhandleARB containerObj, GLsizei maxCount, GLsizei *count, GLhandleARB *obj);
-typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB *name);
-typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
-typedef void (APIENTRYP PFNGLGETUNIFORMFVARBPROC) (GLhandleARB programObj, GLint location, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETUNIFORMIVARBPROC) (GLhandleARB programObj, GLint location, GLint *params);
-typedef void (APIENTRYP PFNGLGETSHADERSOURCEARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source);
-#endif
-
-#ifndef GL_ARB_vertex_shader
-#define GL_ARB_vertex_shader 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBindAttribLocationARB (GLhandleARB programObj, GLuint index, const GLcharARB *name);
-GLAPI void APIENTRY glGetActiveAttribARB (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
-GLAPI GLint APIENTRY glGetAttribLocationARB (GLhandleARB programObj, const GLcharARB *name);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONARBPROC) (GLhandleARB programObj, GLuint index, const GLcharARB *name);
-typedef void (APIENTRYP PFNGLGETACTIVEATTRIBARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
-typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB *name);
-#endif
-
-#ifndef GL_ARB_fragment_shader
-#define GL_ARB_fragment_shader 1
-#endif
-
-#ifndef GL_ARB_shading_language_100
-#define GL_ARB_shading_language_100 1
-#endif
-
-#ifndef GL_ARB_texture_non_power_of_two
-#define GL_ARB_texture_non_power_of_two 1
-#endif
-
-#ifndef GL_ARB_point_sprite
-#define GL_ARB_point_sprite 1
-#endif
-
-#ifndef GL_ARB_fragment_program_shadow
-#define GL_ARB_fragment_program_shadow 1
-#endif
-
-#ifndef GL_ARB_draw_buffers
-#define GL_ARB_draw_buffers 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glDrawBuffersARB (GLsizei n, const GLenum *bufs);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLDRAWBUFFERSARBPROC) (GLsizei n, const GLenum *bufs);
-#endif
-
-#ifndef GL_ARB_texture_rectangle
-#define GL_ARB_texture_rectangle 1
-#endif
-
-#ifndef GL_ARB_color_buffer_float
-#define GL_ARB_color_buffer_float 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glClampColorARB (GLenum target, GLenum clamp);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLCLAMPCOLORARBPROC) (GLenum target, GLenum clamp);
-#endif
-
-#ifndef GL_ARB_half_float_pixel
-#define GL_ARB_half_float_pixel 1
-#endif
-
-#ifndef GL_ARB_texture_float
-#define GL_ARB_texture_float 1
-#endif
-
-#ifndef GL_ARB_pixel_buffer_object
-#define GL_ARB_pixel_buffer_object 1
-#endif
-
-#ifndef GL_ARB_depth_buffer_float
-#define GL_ARB_depth_buffer_float 1
-#endif
-
-#ifndef GL_ARB_draw_instanced
-#define GL_ARB_draw_instanced 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glDrawArraysInstancedARB (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
-GLAPI void APIENTRY glDrawElementsInstancedARB (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDARBPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
-typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDARBPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount);
-#endif
-
-#ifndef GL_ARB_framebuffer_object
-#define GL_ARB_framebuffer_object 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI GLboolean APIENTRY glIsRenderbuffer (GLuint renderbuffer);
-GLAPI void APIENTRY glBindRenderbuffer (GLenum target, GLuint renderbuffer);
-GLAPI void APIENTRY glDeleteRenderbuffers (GLsizei n, const GLuint *renderbuffers);
-GLAPI void APIENTRY glGenRenderbuffers (GLsizei n, GLuint *renderbuffers);
-GLAPI void APIENTRY glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
-GLAPI void APIENTRY glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint *params);
-GLAPI GLboolean APIENTRY glIsFramebuffer (GLuint framebuffer);
-GLAPI void APIENTRY glBindFramebuffer (GLenum target, GLuint framebuffer);
-GLAPI void APIENTRY glDeleteFramebuffers (GLsizei n, const GLuint *framebuffers);
-GLAPI void APIENTRY glGenFramebuffers (GLsizei n, GLuint *framebuffers);
-GLAPI GLenum APIENTRY glCheckFramebufferStatus (GLenum target);
-GLAPI void APIENTRY glFramebufferTexture1D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
-GLAPI void APIENTRY glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
-GLAPI void APIENTRY glFramebufferTexture3D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
-GLAPI void APIENTRY glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
-GLAPI void APIENTRY glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGenerateMipmap (GLenum target);
-GLAPI void APIENTRY glBlitFramebuffer (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
-GLAPI void APIENTRY glRenderbufferStorageMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
-GLAPI void APIENTRY glFramebufferTextureLayer (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer);
-typedef void (APIENTRYP PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer);
-typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint *renderbuffers);
-typedef void (APIENTRYP PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers);
-typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
-typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
-typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer);
-typedef void (APIENTRYP PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer);
-typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint *framebuffers);
-typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers);
-typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target);
-typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
-typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
-typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
-typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
-typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGENERATEMIPMAPPROC) (GLenum target);
-typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
-typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
-typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
-#endif
-
-#ifndef GL_ARB_framebuffer_sRGB
-#define GL_ARB_framebuffer_sRGB 1
-#endif
-
-#ifndef GL_ARB_geometry_shader4
-#define GL_ARB_geometry_shader4 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glProgramParameteriARB (GLuint program, GLenum pname, GLint value);
-GLAPI void APIENTRY glFramebufferTextureARB (GLenum target, GLenum attachment, GLuint texture, GLint level);
-GLAPI void APIENTRY glFramebufferTextureLayerARB (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
-GLAPI void APIENTRY glFramebufferTextureFaceARB (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIARBPROC) (GLuint program, GLenum pname, GLint value);
-typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
-typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
-typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREFACEARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
-#endif
-
-#ifndef GL_ARB_half_float_vertex
-#define GL_ARB_half_float_vertex 1
-#endif
-
-#ifndef GL_ARB_instanced_arrays
-#define GL_ARB_instanced_arrays 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glVertexAttribDivisorARB (GLuint index, GLuint divisor);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORARBPROC) (GLuint index, GLuint divisor);
-#endif
-
-#ifndef GL_ARB_map_buffer_range
-#define GL_ARB_map_buffer_range 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI GLvoid* APIENTRY glMapBufferRange (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
-GLAPI void APIENTRY glFlushMappedBufferRange (GLenum target, GLintptr offset, GLsizeiptr length);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
-typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length);
-#endif
-
-#ifndef GL_ARB_texture_buffer_object
-#define GL_ARB_texture_buffer_object 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glTexBufferARB (GLenum target, GLenum internalformat, GLuint buffer);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLTEXBUFFERARBPROC) (GLenum target, GLenum internalformat, GLuint buffer);
-#endif
-
-#ifndef GL_ARB_texture_compression_rgtc
-#define GL_ARB_texture_compression_rgtc 1
-#endif
-
-#ifndef GL_ARB_texture_rg
-#define GL_ARB_texture_rg 1
-#endif
-
-#ifndef GL_ARB_vertex_array_object
-#define GL_ARB_vertex_array_object 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBindVertexArray (GLuint array);
-GLAPI void APIENTRY glDeleteVertexArrays (GLsizei n, const GLuint *arrays);
-GLAPI void APIENTRY glGenVertexArrays (GLsizei n, GLuint *arrays);
-GLAPI GLboolean APIENTRY glIsVertexArray (GLuint array);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBINDVERTEXARRAYPROC) (GLuint array);
-typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint *arrays);
-typedef void (APIENTRYP PFNGLGENVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays);
-typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYPROC) (GLuint array);
-#endif
-
-#ifndef GL_ARB_uniform_buffer_object
-#define GL_ARB_uniform_buffer_object 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glGetUniformIndices (GLuint program, GLsizei uniformCount, const GLchar* const *uniformNames, GLuint *uniformIndices);
-GLAPI void APIENTRY glGetActiveUniformsiv (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetActiveUniformName (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
-GLAPI GLuint APIENTRY glGetUniformBlockIndex (GLuint program, const GLchar *uniformBlockName);
-GLAPI void APIENTRY glGetActiveUniformBlockiv (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetActiveUniformBlockName (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
-GLAPI void APIENTRY glUniformBlockBinding (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLGETUNIFORMINDICESPROC) (GLuint program, GLsizei uniformCount, const GLchar* const *uniformNames, GLuint *uniformIndices);
-typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMSIVPROC) (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMNAMEPROC) (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
-typedef GLuint (APIENTRYP PFNGLGETUNIFORMBLOCKINDEXPROC) (GLuint program, const GLchar *uniformBlockName);
-typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKIVPROC) (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
-typedef void (APIENTRYP PFNGLUNIFORMBLOCKBINDINGPROC) (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
-#endif
-
-#ifndef GL_ARB_compatibility
-#define GL_ARB_compatibility 1
-#endif
-
-#ifndef GL_ARB_copy_buffer
-#define GL_ARB_copy_buffer 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glCopyBufferSubData (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLCOPYBUFFERSUBDATAPROC) (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
-#endif
-
-#ifndef GL_ARB_shader_texture_lod
-#define GL_ARB_shader_texture_lod 1
-#endif
-
-#ifndef GL_ARB_depth_clamp
-#define GL_ARB_depth_clamp 1
-#endif
-
-#ifndef GL_ARB_draw_elements_base_vertex
-#define GL_ARB_draw_elements_base_vertex 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glDrawElementsBaseVertex (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex);
-GLAPI void APIENTRY glDrawRangeElementsBaseVertex (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex);
-GLAPI void APIENTRY glDrawElementsInstancedBaseVertex (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount, GLint basevertex);
-GLAPI void APIENTRY glMultiDrawElementsBaseVertex (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount, const GLint *basevertex);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex);
-typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex);
-typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount, GLint basevertex);
-typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount, const GLint *basevertex);
-#endif
-
-#ifndef GL_ARB_fragment_coord_conventions
-#define GL_ARB_fragment_coord_conventions 1
-#endif
-
-#ifndef GL_ARB_provoking_vertex
-#define GL_ARB_provoking_vertex 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glProvokingVertex (GLenum mode);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLPROVOKINGVERTEXPROC) (GLenum mode);
-#endif
-
-#ifndef GL_ARB_seamless_cube_map
-#define GL_ARB_seamless_cube_map 1
-#endif
-
-#ifndef GL_ARB_sync
-#define GL_ARB_sync 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI GLsync APIENTRY glFenceSync (GLenum condition, GLbitfield flags);
-GLAPI GLboolean APIENTRY glIsSync (GLsync sync);
-GLAPI void APIENTRY glDeleteSync (GLsync sync);
-GLAPI GLenum APIENTRY glClientWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
-GLAPI void APIENTRY glWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
-GLAPI void APIENTRY glGetInteger64v (GLenum pname, GLint64 *params);
-GLAPI void APIENTRY glGetSynciv (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef GLsync (APIENTRYP PFNGLFENCESYNCPROC) (GLenum condition, GLbitfield flags);
-typedef GLboolean (APIENTRYP PFNGLISSYNCPROC) (GLsync sync);
-typedef void (APIENTRYP PFNGLDELETESYNCPROC) (GLsync sync);
-typedef GLenum (APIENTRYP PFNGLCLIENTWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
-typedef void (APIENTRYP PFNGLWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
-typedef void (APIENTRYP PFNGLGETINTEGER64VPROC) (GLenum pname, GLint64 *params);
-typedef void (APIENTRYP PFNGLGETSYNCIVPROC) (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
-#endif
-
-#ifndef GL_ARB_texture_multisample
-#define GL_ARB_texture_multisample 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glTexImage2DMultisample (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
-GLAPI void APIENTRY glTexImage3DMultisample (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
-GLAPI void APIENTRY glGetMultisamplefv (GLenum pname, GLuint index, GLfloat *val);
-GLAPI void APIENTRY glSampleMaski (GLuint index, GLbitfield mask);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
-typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
-typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVPROC) (GLenum pname, GLuint index, GLfloat *val);
-typedef void (APIENTRYP PFNGLSAMPLEMASKIPROC) (GLuint index, GLbitfield mask);
-#endif
-
-#ifndef GL_ARB_vertex_array_bgra
-#define GL_ARB_vertex_array_bgra 1
-#endif
-
-#ifndef GL_ARB_draw_buffers_blend
-#define GL_ARB_draw_buffers_blend 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBlendEquationiARB (GLuint buf, GLenum mode);
-GLAPI void APIENTRY glBlendEquationSeparateiARB (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
-GLAPI void APIENTRY glBlendFunciARB (GLuint buf, GLenum src, GLenum dst);
-GLAPI void APIENTRY glBlendFuncSeparateiARB (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBLENDEQUATIONIARBPROC) (GLuint buf, GLenum mode);
-typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIARBPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
-typedef void (APIENTRYP PFNGLBLENDFUNCIARBPROC) (GLuint buf, GLenum src, GLenum dst);
-typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIARBPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
-#endif
-
-#ifndef GL_ARB_sample_shading
-#define GL_ARB_sample_shading 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glMinSampleShadingARB (GLfloat value);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLMINSAMPLESHADINGARBPROC) (GLfloat value);
-#endif
-
-#ifndef GL_ARB_texture_cube_map_array
-#define GL_ARB_texture_cube_map_array 1
-#endif
-
-#ifndef GL_ARB_texture_gather
-#define GL_ARB_texture_gather 1
-#endif
-
-#ifndef GL_ARB_texture_query_lod
-#define GL_ARB_texture_query_lod 1
-#endif
-
-#ifndef GL_ARB_shading_language_include
-#define GL_ARB_shading_language_include 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glNamedStringARB (GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string);
-GLAPI void APIENTRY glDeleteNamedStringARB (GLint namelen, const GLchar *name);
-GLAPI void APIENTRY glCompileShaderIncludeARB (GLuint shader, GLsizei count, const GLchar* *path, const GLint *length);
-GLAPI GLboolean APIENTRY glIsNamedStringARB (GLint namelen, const GLchar *name);
-GLAPI void APIENTRY glGetNamedStringARB (GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string);
-GLAPI void APIENTRY glGetNamedStringivARB (GLint namelen, const GLchar *name, GLenum pname, GLint *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLNAMEDSTRINGARBPROC) (GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string);
-typedef void (APIENTRYP PFNGLDELETENAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name);
-typedef void (APIENTRYP PFNGLCOMPILESHADERINCLUDEARBPROC) (GLuint shader, GLsizei count, const GLchar* *path, const GLint *length);
-typedef GLboolean (APIENTRYP PFNGLISNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name);
-typedef void (APIENTRYP PFNGLGETNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string);
-typedef void (APIENTRYP PFNGLGETNAMEDSTRINGIVARBPROC) (GLint namelen, const GLchar *name, GLenum pname, GLint *params);
-#endif
-
-#ifndef GL_ARB_texture_compression_bptc
-#define GL_ARB_texture_compression_bptc 1
-#endif
-
-#ifndef GL_ARB_blend_func_extended
-#define GL_ARB_blend_func_extended 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBindFragDataLocationIndexed (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
-GLAPI GLint APIENTRY glGetFragDataIndex (GLuint program, const GLchar *name);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONINDEXEDPROC) (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
-typedef GLint (APIENTRYP PFNGLGETFRAGDATAINDEXPROC) (GLuint program, const GLchar *name);
-#endif
-
-#ifndef GL_ARB_explicit_attrib_location
-#define GL_ARB_explicit_attrib_location 1
-#endif
-
-#ifndef GL_ARB_occlusion_query2
-#define GL_ARB_occlusion_query2 1
-#endif
-
-#ifndef GL_ARB_sampler_objects
-#define GL_ARB_sampler_objects 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glGenSamplers (GLsizei count, GLuint *samplers);
-GLAPI void APIENTRY glDeleteSamplers (GLsizei count, const GLuint *samplers);
-GLAPI GLboolean APIENTRY glIsSampler (GLuint sampler);
-GLAPI void APIENTRY glBindSampler (GLuint unit, GLuint sampler);
-GLAPI void APIENTRY glSamplerParameteri (GLuint sampler, GLenum pname, GLint param);
-GLAPI void APIENTRY glSamplerParameteriv (GLuint sampler, GLenum pname, const GLint *param);
-GLAPI void APIENTRY glSamplerParameterf (GLuint sampler, GLenum pname, GLfloat param);
-GLAPI void APIENTRY glSamplerParameterfv (GLuint sampler, GLenum pname, const GLfloat *param);
-GLAPI void APIENTRY glSamplerParameterIiv (GLuint sampler, GLenum pname, const GLint *param);
-GLAPI void APIENTRY glSamplerParameterIuiv (GLuint sampler, GLenum pname, const GLuint *param);
-GLAPI void APIENTRY glGetSamplerParameteriv (GLuint sampler, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetSamplerParameterIiv (GLuint sampler, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetSamplerParameterfv (GLuint sampler, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetSamplerParameterIuiv (GLuint sampler, GLenum pname, GLuint *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLGENSAMPLERSPROC) (GLsizei count, GLuint *samplers);
-typedef void (APIENTRYP PFNGLDELETESAMPLERSPROC) (GLsizei count, const GLuint *samplers);
-typedef GLboolean (APIENTRYP PFNGLISSAMPLERPROC) (GLuint sampler);
-typedef void (APIENTRYP PFNGLBINDSAMPLERPROC) (GLuint unit, GLuint sampler);
-typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIPROC) (GLuint sampler, GLenum pname, GLint param);
-typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, const GLint *param);
-typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFPROC) (GLuint sampler, GLenum pname, GLfloat param);
-typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, const GLfloat *param);
-typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, const GLint *param);
-typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, const GLuint *param);
-typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, GLuint *params);
-#endif
-
-#ifndef GL_ARB_shader_bit_encoding
-#define GL_ARB_shader_bit_encoding 1
-#endif
-
-#ifndef GL_ARB_texture_rgb10_a2ui
-#define GL_ARB_texture_rgb10_a2ui 1
-#endif
-
-#ifndef GL_ARB_texture_swizzle
-#define GL_ARB_texture_swizzle 1
-#endif
-
-#ifndef GL_ARB_timer_query
-#define GL_ARB_timer_query 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glQueryCounter (GLuint id, GLenum target);
-GLAPI void APIENTRY glGetQueryObjecti64v (GLuint id, GLenum pname, GLint64 *params);
-GLAPI void APIENTRY glGetQueryObjectui64v (GLuint id, GLenum pname, GLuint64 *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLQUERYCOUNTERPROC) (GLuint id, GLenum target);
-typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VPROC) (GLuint id, GLenum pname, GLint64 *params);
-typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VPROC) (GLuint id, GLenum pname, GLuint64 *params);
-#endif
-
-#ifndef GL_ARB_vertex_type_2_10_10_10_rev
-#define GL_ARB_vertex_type_2_10_10_10_rev 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glVertexP2ui (GLenum type, GLuint value);
-GLAPI void APIENTRY glVertexP2uiv (GLenum type, const GLuint *value);
-GLAPI void APIENTRY glVertexP3ui (GLenum type, GLuint value);
-GLAPI void APIENTRY glVertexP3uiv (GLenum type, const GLuint *value);
-GLAPI void APIENTRY glVertexP4ui (GLenum type, GLuint value);
-GLAPI void APIENTRY glVertexP4uiv (GLenum type, const GLuint *value);
-GLAPI void APIENTRY glTexCoordP1ui (GLenum type, GLuint coords);
-GLAPI void APIENTRY glTexCoordP1uiv (GLenum type, const GLuint *coords);
-GLAPI void APIENTRY glTexCoordP2ui (GLenum type, GLuint coords);
-GLAPI void APIENTRY glTexCoordP2uiv (GLenum type, const GLuint *coords);
-GLAPI void APIENTRY glTexCoordP3ui (GLenum type, GLuint coords);
-GLAPI void APIENTRY glTexCoordP3uiv (GLenum type, const GLuint *coords);
-GLAPI void APIENTRY glTexCoordP4ui (GLenum type, GLuint coords);
-GLAPI void APIENTRY glTexCoordP4uiv (GLenum type, const GLuint *coords);
-GLAPI void APIENTRY glMultiTexCoordP1ui (GLenum texture, GLenum type, GLuint coords);
-GLAPI void APIENTRY glMultiTexCoordP1uiv (GLenum texture, GLenum type, const GLuint *coords);
-GLAPI void APIENTRY glMultiTexCoordP2ui (GLenum texture, GLenum type, GLuint coords);
-GLAPI void APIENTRY glMultiTexCoordP2uiv (GLenum texture, GLenum type, const GLuint *coords);
-GLAPI void APIENTRY glMultiTexCoordP3ui (GLenum texture, GLenum type, GLuint coords);
-GLAPI void APIENTRY glMultiTexCoordP3uiv (GLenum texture, GLenum type, const GLuint *coords);
-GLAPI void APIENTRY glMultiTexCoordP4ui (GLenum texture, GLenum type, GLuint coords);
-GLAPI void APIENTRY glMultiTexCoordP4uiv (GLenum texture, GLenum type, const GLuint *coords);
-GLAPI void APIENTRY glNormalP3ui (GLenum type, GLuint coords);
-GLAPI void APIENTRY glNormalP3uiv (GLenum type, const GLuint *coords);
-GLAPI void APIENTRY glColorP3ui (GLenum type, GLuint color);
-GLAPI void APIENTRY glColorP3uiv (GLenum type, const GLuint *color);
-GLAPI void APIENTRY glColorP4ui (GLenum type, GLuint color);
-GLAPI void APIENTRY glColorP4uiv (GLenum type, const GLuint *color);
-GLAPI void APIENTRY glSecondaryColorP3ui (GLenum type, GLuint color);
-GLAPI void APIENTRY glSecondaryColorP3uiv (GLenum type, const GLuint *color);
-GLAPI void APIENTRY glVertexAttribP1ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
-GLAPI void APIENTRY glVertexAttribP1uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
-GLAPI void APIENTRY glVertexAttribP2ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
-GLAPI void APIENTRY glVertexAttribP2uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
-GLAPI void APIENTRY glVertexAttribP3ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
-GLAPI void APIENTRY glVertexAttribP3uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
-GLAPI void APIENTRY glVertexAttribP4ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
-GLAPI void APIENTRY glVertexAttribP4uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLVERTEXP2UIPROC) (GLenum type, GLuint value);
-typedef void (APIENTRYP PFNGLVERTEXP2UIVPROC) (GLenum type, const GLuint *value);
-typedef void (APIENTRYP PFNGLVERTEXP3UIPROC) (GLenum type, GLuint value);
-typedef void (APIENTRYP PFNGLVERTEXP3UIVPROC) (GLenum type, const GLuint *value);
-typedef void (APIENTRYP PFNGLVERTEXP4UIPROC) (GLenum type, GLuint value);
-typedef void (APIENTRYP PFNGLVERTEXP4UIVPROC) (GLenum type, const GLuint *value);
-typedef void (APIENTRYP PFNGLTEXCOORDP1UIPROC) (GLenum type, GLuint coords);
-typedef void (APIENTRYP PFNGLTEXCOORDP1UIVPROC) (GLenum type, const GLuint *coords);
-typedef void (APIENTRYP PFNGLTEXCOORDP2UIPROC) (GLenum type, GLuint coords);
-typedef void (APIENTRYP PFNGLTEXCOORDP2UIVPROC) (GLenum type, const GLuint *coords);
-typedef void (APIENTRYP PFNGLTEXCOORDP3UIPROC) (GLenum type, GLuint coords);
-typedef void (APIENTRYP PFNGLTEXCOORDP3UIVPROC) (GLenum type, const GLuint *coords);
-typedef void (APIENTRYP PFNGLTEXCOORDP4UIPROC) (GLenum type, GLuint coords);
-typedef void (APIENTRYP PFNGLTEXCOORDP4UIVPROC) (GLenum type, const GLuint *coords);
-typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIPROC) (GLenum texture, GLenum type, GLuint coords);
-typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
-typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIPROC) (GLenum texture, GLenum type, GLuint coords);
-typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
-typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIPROC) (GLenum texture, GLenum type, GLuint coords);
-typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
-typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIPROC) (GLenum texture, GLenum type, GLuint coords);
-typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
-typedef void (APIENTRYP PFNGLNORMALP3UIPROC) (GLenum type, GLuint coords);
-typedef void (APIENTRYP PFNGLNORMALP3UIVPROC) (GLenum type, const GLuint *coords);
-typedef void (APIENTRYP PFNGLCOLORP3UIPROC) (GLenum type, GLuint color);
-typedef void (APIENTRYP PFNGLCOLORP3UIVPROC) (GLenum type, const GLuint *color);
-typedef void (APIENTRYP PFNGLCOLORP4UIPROC) (GLenum type, GLuint color);
-typedef void (APIENTRYP PFNGLCOLORP4UIVPROC) (GLenum type, const GLuint *color);
-typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIPROC) (GLenum type, GLuint color);
-typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIVPROC) (GLenum type, const GLuint *color);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
-#endif
-
-#ifndef GL_ARB_draw_indirect
-#define GL_ARB_draw_indirect 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glDrawArraysIndirect (GLenum mode, const GLvoid *indirect);
-GLAPI void APIENTRY glDrawElementsIndirect (GLenum mode, GLenum type, const GLvoid *indirect);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLDRAWARRAYSINDIRECTPROC) (GLenum mode, const GLvoid *indirect);
-typedef void (APIENTRYP PFNGLDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const GLvoid *indirect);
-#endif
-
-#ifndef GL_ARB_gpu_shader5
-#define GL_ARB_gpu_shader5 1
-#endif
-
-#ifndef GL_ARB_gpu_shader_fp64
-#define GL_ARB_gpu_shader_fp64 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glUniform1d (GLint location, GLdouble x);
-GLAPI void APIENTRY glUniform2d (GLint location, GLdouble x, GLdouble y);
-GLAPI void APIENTRY glUniform3d (GLint location, GLdouble x, GLdouble y, GLdouble z);
-GLAPI void APIENTRY glUniform4d (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-GLAPI void APIENTRY glUniform1dv (GLint location, GLsizei count, const GLdouble *value);
-GLAPI void APIENTRY glUniform2dv (GLint location, GLsizei count, const GLdouble *value);
-GLAPI void APIENTRY glUniform3dv (GLint location, GLsizei count, const GLdouble *value);
-GLAPI void APIENTRY glUniform4dv (GLint location, GLsizei count, const GLdouble *value);
-GLAPI void APIENTRY glUniformMatrix2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glUniformMatrix3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glUniformMatrix4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glUniformMatrix2x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glUniformMatrix2x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glUniformMatrix3x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glUniformMatrix3x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glUniformMatrix4x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glUniformMatrix4x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glGetUniformdv (GLuint program, GLint location, GLdouble *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLUNIFORM1DPROC) (GLint location, GLdouble x);
-typedef void (APIENTRYP PFNGLUNIFORM2DPROC) (GLint location, GLdouble x, GLdouble y);
-typedef void (APIENTRYP PFNGLUNIFORM3DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z);
-typedef void (APIENTRYP PFNGLUNIFORM4DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-typedef void (APIENTRYP PFNGLUNIFORM1DVPROC) (GLint location, GLsizei count, const GLdouble *value);
-typedef void (APIENTRYP PFNGLUNIFORM2DVPROC) (GLint location, GLsizei count, const GLdouble *value);
-typedef void (APIENTRYP PFNGLUNIFORM3DVPROC) (GLint location, GLsizei count, const GLdouble *value);
-typedef void (APIENTRYP PFNGLUNIFORM4DVPROC) (GLint location, GLsizei count, const GLdouble *value);
-typedef void (APIENTRYP PFNGLUNIFORMMATRIX2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLUNIFORMMATRIX3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLUNIFORMMATRIX4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLGETUNIFORMDVPROC) (GLuint program, GLint location, GLdouble *params);
-#endif
-
-#ifndef GL_ARB_shader_subroutine
-#define GL_ARB_shader_subroutine 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI GLint APIENTRY glGetSubroutineUniformLocation (GLuint program, GLenum shadertype, const GLchar *name);
-GLAPI GLuint APIENTRY glGetSubroutineIndex (GLuint program, GLenum shadertype, const GLchar *name);
-GLAPI void APIENTRY glGetActiveSubroutineUniformiv (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);
-GLAPI void APIENTRY glGetActiveSubroutineUniformName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
-GLAPI void APIENTRY glGetActiveSubroutineName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
-GLAPI void APIENTRY glUniformSubroutinesuiv (GLenum shadertype, GLsizei count, const GLuint *indices);
-GLAPI void APIENTRY glGetUniformSubroutineuiv (GLenum shadertype, GLint location, GLuint *params);
-GLAPI void APIENTRY glGetProgramStageiv (GLuint program, GLenum shadertype, GLenum pname, GLint *values);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef GLint (APIENTRYP PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC) (GLuint program, GLenum shadertype, const GLchar *name);
-typedef GLuint (APIENTRYP PFNGLGETSUBROUTINEINDEXPROC) (GLuint program, GLenum shadertype, const GLchar *name);
-typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC) (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);
-typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
-typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINENAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
-typedef void (APIENTRYP PFNGLUNIFORMSUBROUTINESUIVPROC) (GLenum shadertype, GLsizei count, const GLuint *indices);
-typedef void (APIENTRYP PFNGLGETUNIFORMSUBROUTINEUIVPROC) (GLenum shadertype, GLint location, GLuint *params);
-typedef void (APIENTRYP PFNGLGETPROGRAMSTAGEIVPROC) (GLuint program, GLenum shadertype, GLenum pname, GLint *values);
-#endif
-
-#ifndef GL_ARB_tessellation_shader
-#define GL_ARB_tessellation_shader 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glPatchParameteri (GLenum pname, GLint value);
-GLAPI void APIENTRY glPatchParameterfv (GLenum pname, const GLfloat *values);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLPATCHPARAMETERIPROC) (GLenum pname, GLint value);
-typedef void (APIENTRYP PFNGLPATCHPARAMETERFVPROC) (GLenum pname, const GLfloat *values);
-#endif
-
-#ifndef GL_ARB_texture_buffer_object_rgb32
-#define GL_ARB_texture_buffer_object_rgb32 1
-#endif
-
-#ifndef GL_ARB_transform_feedback2
-#define GL_ARB_transform_feedback2 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBindTransformFeedback (GLenum target, GLuint id);
-GLAPI void APIENTRY glDeleteTransformFeedbacks (GLsizei n, const GLuint *ids);
-GLAPI void APIENTRY glGenTransformFeedbacks (GLsizei n, GLuint *ids);
-GLAPI GLboolean APIENTRY glIsTransformFeedback (GLuint id);
-GLAPI void APIENTRY glPauseTransformFeedback (void);
-GLAPI void APIENTRY glResumeTransformFeedback (void);
-GLAPI void APIENTRY glDrawTransformFeedback (GLenum mode, GLuint id);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKPROC) (GLenum target, GLuint id);
-typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSPROC) (GLsizei n, const GLuint *ids);
-typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint *ids);
-typedef GLboolean (APIENTRYP PFNGLISTRANSFORMFEEDBACKPROC) (GLuint id);
-typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKPROC) (void);
-typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKPROC) (void);
-typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKPROC) (GLenum mode, GLuint id);
-#endif
-
-#ifndef GL_ARB_transform_feedback3
-#define GL_ARB_transform_feedback3 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glDrawTransformFeedbackStream (GLenum mode, GLuint id, GLuint stream);
-GLAPI void APIENTRY glBeginQueryIndexed (GLenum target, GLuint index, GLuint id);
-GLAPI void APIENTRY glEndQueryIndexed (GLenum target, GLuint index);
-GLAPI void APIENTRY glGetQueryIndexediv (GLenum target, GLuint index, GLenum pname, GLint *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC) (GLenum mode, GLuint id, GLuint stream);
-typedef void (APIENTRYP PFNGLBEGINQUERYINDEXEDPROC) (GLenum target, GLuint index, GLuint id);
-typedef void (APIENTRYP PFNGLENDQUERYINDEXEDPROC) (GLenum target, GLuint index);
-typedef void (APIENTRYP PFNGLGETQUERYINDEXEDIVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params);
-#endif
-
-#ifndef GL_ARB_ES2_compatibility
-#define GL_ARB_ES2_compatibility 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glReleaseShaderCompiler (void);
-GLAPI void APIENTRY glShaderBinary (GLsizei count, const GLuint *shaders, GLenum binaryformat, const GLvoid *binary, GLsizei length);
-GLAPI void APIENTRY glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
-GLAPI void APIENTRY glDepthRangef (GLfloat n, GLfloat f);
-GLAPI void APIENTRY glClearDepthf (GLfloat d);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLRELEASESHADERCOMPILERPROC) (void);
-typedef void (APIENTRYP PFNGLSHADERBINARYPROC) (GLsizei count, const GLuint *shaders, GLenum binaryformat, const GLvoid *binary, GLsizei length);
-typedef void (APIENTRYP PFNGLGETSHADERPRECISIONFORMATPROC) (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
-typedef void (APIENTRYP PFNGLDEPTHRANGEFPROC) (GLfloat n, GLfloat f);
-typedef void (APIENTRYP PFNGLCLEARDEPTHFPROC) (GLfloat d);
-#endif
-
-#ifndef GL_ARB_get_program_binary
-#define GL_ARB_get_program_binary 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glGetProgramBinary (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary);
-GLAPI void APIENTRY glProgramBinary (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLsizei length);
-GLAPI void APIENTRY glProgramParameteri (GLuint program, GLenum pname, GLint value);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLGETPROGRAMBINARYPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary);
-typedef void (APIENTRYP PFNGLPROGRAMBINARYPROC) (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLsizei length);
-typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIPROC) (GLuint program, GLenum pname, GLint value);
-#endif
-
-#ifndef GL_ARB_separate_shader_objects
-#define GL_ARB_separate_shader_objects 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glUseProgramStages (GLuint pipeline, GLbitfield stages, GLuint program);
-GLAPI void APIENTRY glActiveShaderProgram (GLuint pipeline, GLuint program);
-GLAPI GLuint APIENTRY glCreateShaderProgramv (GLenum type, GLsizei count, const GLchar* const *strings);
-GLAPI void APIENTRY glBindProgramPipeline (GLuint pipeline);
-GLAPI void APIENTRY glDeleteProgramPipelines (GLsizei n, const GLuint *pipelines);
-GLAPI void APIENTRY glGenProgramPipelines (GLsizei n, GLuint *pipelines);
-GLAPI GLboolean APIENTRY glIsProgramPipeline (GLuint pipeline);
-GLAPI void APIENTRY glGetProgramPipelineiv (GLuint pipeline, GLenum pname, GLint *params);
-GLAPI void APIENTRY glProgramUniform1i (GLuint program, GLint location, GLint v0);
-GLAPI void APIENTRY glProgramUniform1iv (GLuint program, GLint location, GLsizei count, const GLint *value);
-GLAPI void APIENTRY glProgramUniform1f (GLuint program, GLint location, GLfloat v0);
-GLAPI void APIENTRY glProgramUniform1fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniform1d (GLuint program, GLint location, GLdouble v0);
-GLAPI void APIENTRY glProgramUniform1dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
-GLAPI void APIENTRY glProgramUniform1ui (GLuint program, GLint location, GLuint v0);
-GLAPI void APIENTRY glProgramUniform1uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
-GLAPI void APIENTRY glProgramUniform2i (GLuint program, GLint location, GLint v0, GLint v1);
-GLAPI void APIENTRY glProgramUniform2iv (GLuint program, GLint location, GLsizei count, const GLint *value);
-GLAPI void APIENTRY glProgramUniform2f (GLuint program, GLint location, GLfloat v0, GLfloat v1);
-GLAPI void APIENTRY glProgramUniform2fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniform2d (GLuint program, GLint location, GLdouble v0, GLdouble v1);
-GLAPI void APIENTRY glProgramUniform2dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
-GLAPI void APIENTRY glProgramUniform2ui (GLuint program, GLint location, GLuint v0, GLuint v1);
-GLAPI void APIENTRY glProgramUniform2uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
-GLAPI void APIENTRY glProgramUniform3i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
-GLAPI void APIENTRY glProgramUniform3iv (GLuint program, GLint location, GLsizei count, const GLint *value);
-GLAPI void APIENTRY glProgramUniform3f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
-GLAPI void APIENTRY glProgramUniform3fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniform3d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);
-GLAPI void APIENTRY glProgramUniform3dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
-GLAPI void APIENTRY glProgramUniform3ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
-GLAPI void APIENTRY glProgramUniform3uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
-GLAPI void APIENTRY glProgramUniform4i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
-GLAPI void APIENTRY glProgramUniform4iv (GLuint program, GLint location, GLsizei count, const GLint *value);
-GLAPI void APIENTRY glProgramUniform4f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
-GLAPI void APIENTRY glProgramUniform4fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniform4d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);
-GLAPI void APIENTRY glProgramUniform4dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
-GLAPI void APIENTRY glProgramUniform4ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
-GLAPI void APIENTRY glProgramUniform4uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
-GLAPI void APIENTRY glProgramUniformMatrix2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniformMatrix3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniformMatrix4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniformMatrix2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glProgramUniformMatrix3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glProgramUniformMatrix4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glProgramUniformMatrix2x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniformMatrix3x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniformMatrix2x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniformMatrix4x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniformMatrix3x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniformMatrix4x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniformMatrix2x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glProgramUniformMatrix3x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glProgramUniformMatrix2x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glProgramUniformMatrix4x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glProgramUniformMatrix3x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glProgramUniformMatrix4x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glValidateProgramPipeline (GLuint pipeline);
-GLAPI void APIENTRY glGetProgramPipelineInfoLog (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLUSEPROGRAMSTAGESPROC) (GLuint pipeline, GLbitfield stages, GLuint program);
-typedef void (APIENTRYP PFNGLACTIVESHADERPROGRAMPROC) (GLuint pipeline, GLuint program);
-typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMVPROC) (GLenum type, GLsizei count, const GLchar* const *strings);
-typedef void (APIENTRYP PFNGLBINDPROGRAMPIPELINEPROC) (GLuint pipeline);
-typedef void (APIENTRYP PFNGLDELETEPROGRAMPIPELINESPROC) (GLsizei n, const GLuint *pipelines);
-typedef void (APIENTRYP PFNGLGENPROGRAMPIPELINESPROC) (GLsizei n, GLuint *pipelines);
-typedef GLboolean (APIENTRYP PFNGLISPROGRAMPIPELINEPROC) (GLuint pipeline);
-typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEIVPROC) (GLuint pipeline, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IPROC) (GLuint program, GLint location, GLint v0);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FPROC) (GLuint program, GLint location, GLfloat v0);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DPROC) (GLuint program, GLint location, GLdouble v0);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIPROC) (GLuint program, GLint location, GLuint v0);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IPROC) (GLuint program, GLint location, GLint v0, GLint v1);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEPROC) (GLuint pipeline);
-typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGPROC) (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
-#endif
-
-#ifndef GL_ARB_vertex_attrib_64bit
-#define GL_ARB_vertex_attrib_64bit 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glVertexAttribL1d (GLuint index, GLdouble x);
-GLAPI void APIENTRY glVertexAttribL2d (GLuint index, GLdouble x, GLdouble y);
-GLAPI void APIENTRY glVertexAttribL3d (GLuint index, GLdouble x, GLdouble y, GLdouble z);
-GLAPI void APIENTRY glVertexAttribL4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-GLAPI void APIENTRY glVertexAttribL1dv (GLuint index, const GLdouble *v);
-GLAPI void APIENTRY glVertexAttribL2dv (GLuint index, const GLdouble *v);
-GLAPI void APIENTRY glVertexAttribL3dv (GLuint index, const GLdouble *v);
-GLAPI void APIENTRY glVertexAttribL4dv (GLuint index, const GLdouble *v);
-GLAPI void APIENTRY glVertexAttribLPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-GLAPI void APIENTRY glGetVertexAttribLdv (GLuint index, GLenum pname, GLdouble *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DPROC) (GLuint index, GLdouble x);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DPROC) (GLuint index, GLdouble x, GLdouble y);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DVPROC) (GLuint index, const GLdouble *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DVPROC) (GLuint index, const GLdouble *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DVPROC) (GLuint index, const GLdouble *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DVPROC) (GLuint index, const GLdouble *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBLPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLDVPROC) (GLuint index, GLenum pname, GLdouble *params);
-#endif
-
-#ifndef GL_ARB_viewport_array
-#define GL_ARB_viewport_array 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glViewportArrayv (GLuint first, GLsizei count, const GLfloat *v);
-GLAPI void APIENTRY glViewportIndexedf (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
-GLAPI void APIENTRY glViewportIndexedfv (GLuint index, const GLfloat *v);
-GLAPI void APIENTRY glScissorArrayv (GLuint first, GLsizei count, const GLint *v);
-GLAPI void APIENTRY glScissorIndexed (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
-GLAPI void APIENTRY glScissorIndexedv (GLuint index, const GLint *v);
-GLAPI void APIENTRY glDepthRangeArrayv (GLuint first, GLsizei count, const GLdouble *v);
-GLAPI void APIENTRY glDepthRangeIndexed (GLuint index, GLdouble n, GLdouble f);
-GLAPI void APIENTRY glGetFloati_v (GLenum target, GLuint index, GLfloat *data);
-GLAPI void APIENTRY glGetDoublei_v (GLenum target, GLuint index, GLdouble *data);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLVIEWPORTARRAYVPROC) (GLuint first, GLsizei count, const GLfloat *v);
-typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
-typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFVPROC) (GLuint index, const GLfloat *v);
-typedef void (APIENTRYP PFNGLSCISSORARRAYVPROC) (GLuint first, GLsizei count, const GLint *v);
-typedef void (APIENTRYP PFNGLSCISSORINDEXEDPROC) (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
-typedef void (APIENTRYP PFNGLSCISSORINDEXEDVPROC) (GLuint index, const GLint *v);
-typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYVPROC) (GLuint first, GLsizei count, const GLdouble *v);
-typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDPROC) (GLuint index, GLdouble n, GLdouble f);
-typedef void (APIENTRYP PFNGLGETFLOATI_VPROC) (GLenum target, GLuint index, GLfloat *data);
-typedef void (APIENTRYP PFNGLGETDOUBLEI_VPROC) (GLenum target, GLuint index, GLdouble *data);
-#endif
-
-#ifndef GL_ARB_cl_event
-#define GL_ARB_cl_event 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI GLsync APIENTRY glCreateSyncFromCLeventARB (struct _cl_context * context, struct _cl_event * event, GLbitfield flags);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef GLsync (APIENTRYP PFNGLCREATESYNCFROMCLEVENTARBPROC) (struct _cl_context * context, struct _cl_event * event, GLbitfield flags);
-#endif
-
-#ifndef GL_ARB_debug_output
-#define GL_ARB_debug_output 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glDebugMessageControlARB (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
-GLAPI void APIENTRY glDebugMessageInsertARB (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
-GLAPI void APIENTRY glDebugMessageCallbackARB (GLDEBUGPROCARB callback, const GLvoid *userParam);
-GLAPI GLuint APIENTRY glGetDebugMessageLogARB (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLARBPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
-typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTARBPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
-typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKARBPROC) (GLDEBUGPROCARB callback, const GLvoid *userParam);
-typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGARBPROC) (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
-#endif
-
-#ifndef GL_ARB_robustness
-#define GL_ARB_robustness 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI GLenum APIENTRY glGetGraphicsResetStatusARB (void);
-GLAPI void APIENTRY glGetnMapdvARB (GLenum target, GLenum query, GLsizei bufSize, GLdouble *v);
-GLAPI void APIENTRY glGetnMapfvARB (GLenum target, GLenum query, GLsizei bufSize, GLfloat *v);
-GLAPI void APIENTRY glGetnMapivARB (GLenum target, GLenum query, GLsizei bufSize, GLint *v);
-GLAPI void APIENTRY glGetnPixelMapfvARB (GLenum map, GLsizei bufSize, GLfloat *values);
-GLAPI void APIENTRY glGetnPixelMapuivARB (GLenum map, GLsizei bufSize, GLuint *values);
-GLAPI void APIENTRY glGetnPixelMapusvARB (GLenum map, GLsizei bufSize, GLushort *values);
-GLAPI void APIENTRY glGetnPolygonStippleARB (GLsizei bufSize, GLubyte *pattern);
-GLAPI void APIENTRY glGetnColorTableARB (GLenum target, GLenum format, GLenum type, GLsizei bufSize, GLvoid *table);
-GLAPI void APIENTRY glGetnConvolutionFilterARB (GLenum target, GLenum format, GLenum type, GLsizei bufSize, GLvoid *image);
-GLAPI void APIENTRY glGetnSeparableFilterARB (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, GLvoid *row, GLsizei columnBufSize, GLvoid *column, GLvoid *span);
-GLAPI void APIENTRY glGetnHistogramARB (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, GLvoid *values);
-GLAPI void APIENTRY glGetnMinmaxARB (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, GLvoid *values);
-GLAPI void APIENTRY glGetnTexImageARB (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, GLvoid *img);
-GLAPI void APIENTRY glReadnPixelsARB (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, GLvoid *data);
-GLAPI void APIENTRY glGetnCompressedTexImageARB (GLenum target, GLint lod, GLsizei bufSize, GLvoid *img);
-GLAPI void APIENTRY glGetnUniformfvARB (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
-GLAPI void APIENTRY glGetnUniformivARB (GLuint program, GLint location, GLsizei bufSize, GLint *params);
-GLAPI void APIENTRY glGetnUniformuivARB (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
-GLAPI void APIENTRY glGetnUniformdvARB (GLuint program, GLint location, GLsizei bufSize, GLdouble *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef GLenum (APIENTRYP PFNGLGETGRAPHICSRESETSTATUSARBPROC) (void);
-typedef void (APIENTRYP PFNGLGETNMAPDVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLdouble *v);
-typedef void (APIENTRYP PFNGLGETNMAPFVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLfloat *v);
-typedef void (APIENTRYP PFNGLGETNMAPIVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLint *v);
-typedef void (APIENTRYP PFNGLGETNPIXELMAPFVARBPROC) (GLenum map, GLsizei bufSize, GLfloat *values);
-typedef void (APIENTRYP PFNGLGETNPIXELMAPUIVARBPROC) (GLenum map, GLsizei bufSize, GLuint *values);
-typedef void (APIENTRYP PFNGLGETNPIXELMAPUSVARBPROC) (GLenum map, GLsizei bufSize, GLushort *values);
-typedef void (APIENTRYP PFNGLGETNPOLYGONSTIPPLEARBPROC) (GLsizei bufSize, GLubyte *pattern);
-typedef void (APIENTRYP PFNGLGETNCOLORTABLEARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, GLvoid *table);
-typedef void (APIENTRYP PFNGLGETNCONVOLUTIONFILTERARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, GLvoid *image);
-typedef void (APIENTRYP PFNGLGETNSEPARABLEFILTERARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, GLvoid *row, GLsizei columnBufSize, GLvoid *column, GLvoid *span);
-typedef void (APIENTRYP PFNGLGETNHISTOGRAMARBPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, GLvoid *values);
-typedef void (APIENTRYP PFNGLGETNMINMAXARBPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, GLvoid *values);
-typedef void (APIENTRYP PFNGLGETNTEXIMAGEARBPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, GLvoid *img);
-typedef void (APIENTRYP PFNGLREADNPIXELSARBPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, GLvoid *data);
-typedef void (APIENTRYP PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint lod, GLsizei bufSize, GLvoid *img);
-typedef void (APIENTRYP PFNGLGETNUNIFORMFVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETNUNIFORMIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
-typedef void (APIENTRYP PFNGLGETNUNIFORMUIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
-typedef void (APIENTRYP PFNGLGETNUNIFORMDVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLdouble *params);
-#endif
-
-#ifndef GL_ARB_shader_stencil_export
-#define GL_ARB_shader_stencil_export 1
-#endif
-
-#ifndef GL_ARB_base_instance
-#define GL_ARB_base_instance 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glDrawArraysInstancedBaseInstance (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance);
-GLAPI void APIENTRY glDrawElementsInstancedBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance);
-GLAPI void APIENTRY glDrawElementsInstancedBaseVertexBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance);
-typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance);
-typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);
-#endif
-
-#ifndef GL_ARB_shading_language_420pack
-#define GL_ARB_shading_language_420pack 1
-#endif
-
-#ifndef GL_ARB_transform_feedback_instanced
-#define GL_ARB_transform_feedback_instanced 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glDrawTransformFeedbackInstanced (GLenum mode, GLuint id, GLsizei instancecount);
-GLAPI void APIENTRY glDrawTransformFeedbackStreamInstanced (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC) (GLenum mode, GLuint id, GLsizei instancecount);
-typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC) (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount);
-#endif
-
-#ifndef GL_ARB_compressed_texture_pixel_storage
-#define GL_ARB_compressed_texture_pixel_storage 1
-#endif
-
-#ifndef GL_ARB_conservative_depth
-#define GL_ARB_conservative_depth 1
-#endif
-
-#ifndef GL_ARB_internalformat_query
-#define GL_ARB_internalformat_query 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glGetInternalformativ (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLGETINTERNALFORMATIVPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params);
-#endif
-
-#ifndef GL_ARB_map_buffer_alignment
-#define GL_ARB_map_buffer_alignment 1
-#endif
-
-#ifndef GL_ARB_shader_atomic_counters
-#define GL_ARB_shader_atomic_counters 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glGetActiveAtomicCounterBufferiv (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC) (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params);
-#endif
-
-#ifndef GL_ARB_shader_image_load_store
-#define GL_ARB_shader_image_load_store 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBindImageTexture (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format);
-GLAPI void APIENTRY glMemoryBarrier (GLbitfield barriers);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBINDIMAGETEXTUREPROC) (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format);
-typedef void (APIENTRYP PFNGLMEMORYBARRIERPROC) (GLbitfield barriers);
-#endif
-
-#ifndef GL_ARB_shading_language_packing
-#define GL_ARB_shading_language_packing 1
-#endif
-
-#ifndef GL_ARB_texture_storage
-#define GL_ARB_texture_storage 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glTexStorage1D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
-GLAPI void APIENTRY glTexStorage2D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
-GLAPI void APIENTRY glTexStorage3D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
-GLAPI void APIENTRY glTextureStorage1DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
-GLAPI void APIENTRY glTextureStorage2DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
-GLAPI void APIENTRY glTextureStorage3DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLTEXSTORAGE1DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
-typedef void (APIENTRYP PFNGLTEXSTORAGE2DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
-typedef void (APIENTRYP PFNGLTEXSTORAGE3DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
-typedef void (APIENTRYP PFNGLTEXTURESTORAGE1DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
-typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
-typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
-#endif
-
-#ifndef GL_KHR_texture_compression_astc_ldr
-#define GL_KHR_texture_compression_astc_ldr 1
-#endif
-
-#ifndef GL_KHR_debug
-#define GL_KHR_debug 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glDebugMessageControl (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
-GLAPI void APIENTRY glDebugMessageInsert (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
-GLAPI void APIENTRY glDebugMessageCallback (GLDEBUGPROC callback, const void *userParam);
-GLAPI GLuint APIENTRY glGetDebugMessageLog (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
-GLAPI void APIENTRY glPushDebugGroup (GLenum source, GLuint id, GLsizei length, const GLchar *message);
-GLAPI void APIENTRY glPopDebugGroup (void);
-GLAPI void APIENTRY glObjectLabel (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
-GLAPI void APIENTRY glGetObjectLabel (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
-GLAPI void APIENTRY glObjectPtrLabel (const void *ptr, GLsizei length, const GLchar *label);
-GLAPI void APIENTRY glGetObjectPtrLabel (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
-typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
-typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const void *userParam);
-typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGPROC) (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
-typedef void (APIENTRYP PFNGLPUSHDEBUGGROUPPROC) (GLenum source, GLuint id, GLsizei length, const GLchar *message);
-typedef void (APIENTRYP PFNGLPOPDEBUGGROUPPROC) (void);
-typedef void (APIENTRYP PFNGLOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
-typedef void (APIENTRYP PFNGLGETOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
-typedef void (APIENTRYP PFNGLOBJECTPTRLABELPROC) (const void *ptr, GLsizei length, const GLchar *label);
-typedef void (APIENTRYP PFNGLGETOBJECTPTRLABELPROC) (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
-#endif
-
-#ifndef GL_ARB_arrays_of_arrays
-#define GL_ARB_arrays_of_arrays 1
-#endif
-
-#ifndef GL_ARB_clear_buffer_object
-#define GL_ARB_clear_buffer_object 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glClearBufferData (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data);
-GLAPI void APIENTRY glClearBufferSubData (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
-GLAPI void APIENTRY glClearNamedBufferDataEXT (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data);
-GLAPI void APIENTRY glClearNamedBufferSubDataEXT (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, GLsizeiptr offset, GLsizeiptr size, const void *data);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLCLEARBUFFERDATAPROC) (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data);
-typedef void (APIENTRYP PFNGLCLEARBUFFERSUBDATAPROC) (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
-typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERDATAEXTPROC) (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data);
-typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, GLsizeiptr offset, GLsizeiptr size, const void *data);
-#endif
-
-#ifndef GL_ARB_compute_shader
-#define GL_ARB_compute_shader 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glDispatchCompute (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z);
-GLAPI void APIENTRY glDispatchComputeIndirect (GLintptr indirect);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEPROC) (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z);
-typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEINDIRECTPROC) (GLintptr indirect);
-#endif
-
-#ifndef GL_ARB_copy_image
-#define GL_ARB_copy_image 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glCopyImageSubData (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLCOPYIMAGESUBDATAPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
-#endif
-
-#ifndef GL_ARB_texture_view
-#define GL_ARB_texture_view 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glTextureView (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLTEXTUREVIEWPROC) (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
-#endif
-
-#ifndef GL_ARB_vertex_attrib_binding
-#define GL_ARB_vertex_attrib_binding 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBindVertexBuffer (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
-GLAPI void APIENTRY glVertexAttribFormat (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
-GLAPI void APIENTRY glVertexAttribIFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
-GLAPI void APIENTRY glVertexAttribLFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
-GLAPI void APIENTRY glVertexAttribBinding (GLuint attribindex, GLuint bindingindex);
-GLAPI void APIENTRY glVertexBindingDivisor (GLuint bindingindex, GLuint divisor);
-GLAPI void APIENTRY glVertexArrayBindVertexBufferEXT (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
-GLAPI void APIENTRY glVertexArrayVertexAttribFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
-GLAPI void APIENTRY glVertexArrayVertexAttribIFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
-GLAPI void APIENTRY glVertexArrayVertexAttribLFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
-GLAPI void APIENTRY glVertexArrayVertexAttribBindingEXT (GLuint vaobj, GLuint attribindex, GLuint bindingindex);
-GLAPI void APIENTRY glVertexArrayVertexBindingDivisorEXT (GLuint vaobj, GLuint bindingindex, GLuint divisor);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERPROC) (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBBINDINGPROC) (GLuint attribindex, GLuint bindingindex);
-typedef void (APIENTRYP PFNGLVERTEXBINDINGDIVISORPROC) (GLuint bindingindex, GLuint divisor);
-typedef void (APIENTRYP PFNGLVERTEXARRAYBINDVERTEXBUFFEREXTPROC) (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
-typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
-typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBIFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
-typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBLFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
-typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBBINDINGEXTPROC) (GLuint vaobj, GLuint attribindex, GLuint bindingindex);
-typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBINDINGDIVISOREXTPROC) (GLuint vaobj, GLuint bindingindex, GLuint divisor);
-#endif
-
-#ifndef GL_ARB_robustness_isolation
-#define GL_ARB_robustness_isolation 1
-#endif
-
-#ifndef GL_ARB_ES3_compatibility
-#define GL_ARB_ES3_compatibility 1
-#endif
-
-#ifndef GL_ARB_explicit_uniform_location
-#define GL_ARB_explicit_uniform_location 1
-#endif
-
-#ifndef GL_ARB_fragment_layer_viewport
-#define GL_ARB_fragment_layer_viewport 1
-#endif
-
-#ifndef GL_ARB_framebuffer_no_attachments
-#define GL_ARB_framebuffer_no_attachments 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glFramebufferParameteri (GLenum target, GLenum pname, GLint param);
-GLAPI void APIENTRY glGetFramebufferParameteriv (GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glNamedFramebufferParameteriEXT (GLuint framebuffer, GLenum pname, GLint param);
-GLAPI void APIENTRY glGetNamedFramebufferParameterivEXT (GLuint framebuffer, GLenum pname, GLint *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLFRAMEBUFFERPARAMETERIPROC) (GLenum target, GLenum pname, GLint param);
-typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERPARAMETERIEXTPROC) (GLuint framebuffer, GLenum pname, GLint param);
-typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum pname, GLint *params);
-#endif
-
-#ifndef GL_ARB_internalformat_query2
-#define GL_ARB_internalformat_query2 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glGetInternalformati64v (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLGETINTERNALFORMATI64VPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 *params);
-#endif
-
-#ifndef GL_ARB_invalidate_subdata
-#define GL_ARB_invalidate_subdata 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glInvalidateTexSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth);
-GLAPI void APIENTRY glInvalidateTexImage (GLuint texture, GLint level);
-GLAPI void APIENTRY glInvalidateBufferSubData (GLuint buffer, GLintptr offset, GLsizeiptr length);
-GLAPI void APIENTRY glInvalidateBufferData (GLuint buffer);
-GLAPI void APIENTRY glInvalidateFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments);
-GLAPI void APIENTRY glInvalidateSubFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLINVALIDATETEXSUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth);
-typedef void (APIENTRYP PFNGLINVALIDATETEXIMAGEPROC) (GLuint texture, GLint level);
-typedef void (APIENTRYP PFNGLINVALIDATEBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length);
-typedef void (APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC) (GLuint buffer);
-typedef void (APIENTRYP PFNGLINVALIDATEFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments);
-typedef void (APIENTRYP PFNGLINVALIDATESUBFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
-#endif
-
-#ifndef GL_ARB_multi_draw_indirect
-#define GL_ARB_multi_draw_indirect 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glMultiDrawArraysIndirect (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride);
-GLAPI void APIENTRY glMultiDrawElementsIndirect (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTPROC) (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride);
-typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride);
-#endif
-
-#ifndef GL_ARB_program_interface_query
-#define GL_ARB_program_interface_query 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glGetProgramInterfaceiv (GLuint program, GLenum programInterface, GLenum pname, GLint *params);
-GLAPI GLuint APIENTRY glGetProgramResourceIndex (GLuint program, GLenum programInterface, const GLchar *name);
-GLAPI void APIENTRY glGetProgramResourceName (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
-GLAPI void APIENTRY glGetProgramResourceiv (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params);
-GLAPI GLint APIENTRY glGetProgramResourceLocation (GLuint program, GLenum programInterface, const GLchar *name);
-GLAPI GLint APIENTRY glGetProgramResourceLocationIndex (GLuint program, GLenum programInterface, const GLchar *name);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLGETPROGRAMINTERFACEIVPROC) (GLuint program, GLenum programInterface, GLenum pname, GLint *params);
-typedef GLuint (APIENTRYP PFNGLGETPROGRAMRESOURCEINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name);
-typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCENAMEPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
-typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCEIVPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params);
-typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONPROC) (GLuint program, GLenum programInterface, const GLchar *name);
-typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name);
-#endif
-
-#ifndef GL_ARB_robust_buffer_access_behavior
-#define GL_ARB_robust_buffer_access_behavior 1
-#endif
-
-#ifndef GL_ARB_shader_image_size
-#define GL_ARB_shader_image_size 1
-#endif
-
-#ifndef GL_ARB_shader_storage_buffer_object
-#define GL_ARB_shader_storage_buffer_object 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glShaderStorageBlockBinding (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLSHADERSTORAGEBLOCKBINDINGPROC) (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding);
-#endif
-
-#ifndef GL_ARB_stencil_texturing
-#define GL_ARB_stencil_texturing 1
-#endif
-
-#ifndef GL_ARB_texture_buffer_range
-#define GL_ARB_texture_buffer_range 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glTexBufferRange (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
-GLAPI void APIENTRY glTextureBufferRangeEXT (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLTEXBUFFERRANGEPROC) (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
-typedef void (APIENTRYP PFNGLTEXTUREBUFFERRANGEEXTPROC) (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
-#endif
-
-#ifndef GL_ARB_texture_query_levels
-#define GL_ARB_texture_query_levels 1
-#endif
-
-#ifndef GL_ARB_texture_storage_multisample
-#define GL_ARB_texture_storage_multisample 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glTexStorage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
-GLAPI void APIENTRY glTexStorage3DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
-GLAPI void APIENTRY glTextureStorage2DMultisampleEXT (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
-GLAPI void APIENTRY glTextureStorage3DMultisampleEXT (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLTEXSTORAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
-typedef void (APIENTRYP PFNGLTEXSTORAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
-typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DMULTISAMPLEEXTPROC) (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
-typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DMULTISAMPLEEXTPROC) (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
-#endif
-
-#ifndef GL_EXT_abgr
-#define GL_EXT_abgr 1
-#endif
-
-#ifndef GL_EXT_blend_color
-#define GL_EXT_blend_color 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBlendColorEXT (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBLENDCOLOREXTPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
-#endif
-
-#ifndef GL_EXT_polygon_offset
-#define GL_EXT_polygon_offset 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glPolygonOffsetEXT (GLfloat factor, GLfloat bias);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLPOLYGONOFFSETEXTPROC) (GLfloat factor, GLfloat bias);
-#endif
-
-#ifndef GL_EXT_texture
-#define GL_EXT_texture 1
-#endif
-
-#ifndef GL_EXT_texture3D
-#define GL_EXT_texture3D 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glTexImage3DEXT (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void APIENTRY glTexSubImage3DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLTEXIMAGE3DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
-#endif
-
-#ifndef GL_SGIS_texture_filter4
-#define GL_SGIS_texture_filter4 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glGetTexFilterFuncSGIS (GLenum target, GLenum filter, GLfloat *weights);
-GLAPI void APIENTRY glTexFilterFuncSGIS (GLenum target, GLenum filter, GLsizei n, const GLfloat *weights);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLGETTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLfloat *weights);
-typedef void (APIENTRYP PFNGLTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLsizei n, const GLfloat *weights);
-#endif
-
-#ifndef GL_EXT_subtexture
-#define GL_EXT_subtexture 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glTexSubImage1DEXT (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void APIENTRY glTexSubImage2DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
-typedef void (APIENTRYP PFNGLTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
-#endif
-
-#ifndef GL_EXT_copy_texture
-#define GL_EXT_copy_texture 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glCopyTexImage1DEXT (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
-GLAPI void APIENTRY glCopyTexImage2DEXT (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
-GLAPI void APIENTRY glCopyTexSubImage1DEXT (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
-GLAPI void APIENTRY glCopyTexSubImage2DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
-GLAPI void APIENTRY glCopyTexSubImage3DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLCOPYTEXIMAGE1DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
-typedef void (APIENTRYP PFNGLCOPYTEXIMAGE2DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
-typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
-typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
-typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
-#endif
-
-#ifndef GL_EXT_histogram
-#define GL_EXT_histogram 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glGetHistogramEXT (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
-GLAPI void APIENTRY glGetHistogramParameterfvEXT (GLenum target, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetHistogramParameterivEXT (GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetMinmaxEXT (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
-GLAPI void APIENTRY glGetMinmaxParameterfvEXT (GLenum target, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetMinmaxParameterivEXT (GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glHistogramEXT (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
-GLAPI void APIENTRY glMinmaxEXT (GLenum target, GLenum internalformat, GLboolean sink);
-GLAPI void APIENTRY glResetHistogramEXT (GLenum target);
-GLAPI void APIENTRY glResetMinmaxEXT (GLenum target);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLGETHISTOGRAMEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
-typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETMINMAXEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
-typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLHISTOGRAMEXTPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
-typedef void (APIENTRYP PFNGLMINMAXEXTPROC) (GLenum target, GLenum internalformat, GLboolean sink);
-typedef void (APIENTRYP PFNGLRESETHISTOGRAMEXTPROC) (GLenum target);
-typedef void (APIENTRYP PFNGLRESETMINMAXEXTPROC) (GLenum target);
-#endif
-
-#ifndef GL_EXT_convolution
-#define GL_EXT_convolution 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glConvolutionFilter1DEXT (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
-GLAPI void APIENTRY glConvolutionFilter2DEXT (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
-GLAPI void APIENTRY glConvolutionParameterfEXT (GLenum target, GLenum pname, GLfloat params);
-GLAPI void APIENTRY glConvolutionParameterfvEXT (GLenum target, GLenum pname, const GLfloat *params);
-GLAPI void APIENTRY glConvolutionParameteriEXT (GLenum target, GLenum pname, GLint params);
-GLAPI void APIENTRY glConvolutionParameterivEXT (GLenum target, GLenum pname, const GLint *params);
-GLAPI void APIENTRY glCopyConvolutionFilter1DEXT (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
-GLAPI void APIENTRY glCopyConvolutionFilter2DEXT (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
-GLAPI void APIENTRY glGetConvolutionFilterEXT (GLenum target, GLenum format, GLenum type, GLvoid *image);
-GLAPI void APIENTRY glGetConvolutionParameterfvEXT (GLenum target, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetConvolutionParameterivEXT (GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetSeparableFilterEXT (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
-GLAPI void APIENTRY glSeparableFilter2DEXT (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
-typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
-typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat params);
-typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat *params);
-typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint params);
-typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params);
-typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
-typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
-typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image);
-typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETSEPARABLEFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
-typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
-#endif
-
-#ifndef GL_SGI_color_matrix
-#define GL_SGI_color_matrix 1
-#endif
-
-#ifndef GL_SGI_color_table
-#define GL_SGI_color_table 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glColorTableSGI (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
-GLAPI void APIENTRY glColorTableParameterfvSGI (GLenum target, GLenum pname, const GLfloat *params);
-GLAPI void APIENTRY glColorTableParameterivSGI (GLenum target, GLenum pname, const GLint *params);
-GLAPI void APIENTRY glCopyColorTableSGI (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
-GLAPI void APIENTRY glGetColorTableSGI (GLenum target, GLenum format, GLenum type, GLvoid *table);
-GLAPI void APIENTRY glGetColorTableParameterfvSGI (GLenum target, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetColorTableParameterivSGI (GLenum target, GLenum pname, GLint *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
-typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, const GLfloat *params);
-typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, const GLint *params);
-typedef void (APIENTRYP PFNGLCOPYCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
-typedef void (APIENTRYP PFNGLGETCOLORTABLESGIPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table);
-typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, GLint *params);
-#endif
-
-#ifndef GL_SGIX_pixel_texture
-#define GL_SGIX_pixel_texture 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glPixelTexGenSGIX (GLenum mode);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLPIXELTEXGENSGIXPROC) (GLenum mode);
-#endif
-
-#ifndef GL_SGIS_pixel_texture
-#define GL_SGIS_pixel_texture 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glPixelTexGenParameteriSGIS (GLenum pname, GLint param);
-GLAPI void APIENTRY glPixelTexGenParameterivSGIS (GLenum pname, const GLint *params);
-GLAPI void APIENTRY glPixelTexGenParameterfSGIS (GLenum pname, GLfloat param);
-GLAPI void APIENTRY glPixelTexGenParameterfvSGIS (GLenum pname, const GLfloat *params);
-GLAPI void APIENTRY glGetPixelTexGenParameterivSGIS (GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetPixelTexGenParameterfvSGIS (GLenum pname, GLfloat *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERISGISPROC) (GLenum pname, GLint param);
-typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, const GLint *params);
-typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERFSGISPROC) (GLenum pname, GLfloat param);
-typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, const GLfloat *params);
-typedef void (APIENTRYP PFNGLGETPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, GLfloat *params);
-#endif
-
-#ifndef GL_SGIS_texture4D
-#define GL_SGIS_texture4D 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glTexImage4DSGIS (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void APIENTRY glTexSubImage4DSGIS (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLenum format, GLenum type, const GLvoid *pixels);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLTEXIMAGE4DSGISPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-typedef void (APIENTRYP PFNGLTEXSUBIMAGE4DSGISPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLenum format, GLenum type, const GLvoid *pixels);
-#endif
-
-#ifndef GL_SGI_texture_color_table
-#define GL_SGI_texture_color_table 1
-#endif
-
-#ifndef GL_EXT_cmyka
-#define GL_EXT_cmyka 1
-#endif
-
-#ifndef GL_EXT_texture_object
-#define GL_EXT_texture_object 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI GLboolean APIENTRY glAreTexturesResidentEXT (GLsizei n, const GLuint *textures, GLboolean *residences);
-GLAPI void APIENTRY glBindTextureEXT (GLenum target, GLuint texture);
-GLAPI void APIENTRY glDeleteTexturesEXT (GLsizei n, const GLuint *textures);
-GLAPI void APIENTRY glGenTexturesEXT (GLsizei n, GLuint *textures);
-GLAPI GLboolean APIENTRY glIsTextureEXT (GLuint texture);
-GLAPI void APIENTRY glPrioritizeTexturesEXT (GLsizei n, const GLuint *textures, const GLclampf *priorities);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef GLboolean (APIENTRYP PFNGLARETEXTURESRESIDENTEXTPROC) (GLsizei n, const GLuint *textures, GLboolean *residences);
-typedef void (APIENTRYP PFNGLBINDTEXTUREEXTPROC) (GLenum target, GLuint texture);
-typedef void (APIENTRYP PFNGLDELETETEXTURESEXTPROC) (GLsizei n, const GLuint *textures);
-typedef void (APIENTRYP PFNGLGENTEXTURESEXTPROC) (GLsizei n, GLuint *textures);
-typedef GLboolean (APIENTRYP PFNGLISTEXTUREEXTPROC) (GLuint texture);
-typedef void (APIENTRYP PFNGLPRIORITIZETEXTURESEXTPROC) (GLsizei n, const GLuint *textures, const GLclampf *priorities);
-#endif
-
-#ifndef GL_SGIS_detail_texture
-#define GL_SGIS_detail_texture 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glDetailTexFuncSGIS (GLenum target, GLsizei n, const GLfloat *points);
-GLAPI void APIENTRY glGetDetailTexFuncSGIS (GLenum target, GLfloat *points);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLDETAILTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points);
-typedef void (APIENTRYP PFNGLGETDETAILTEXFUNCSGISPROC) (GLenum target, GLfloat *points);
-#endif
-
-#ifndef GL_SGIS_sharpen_texture
-#define GL_SGIS_sharpen_texture 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glSharpenTexFuncSGIS (GLenum target, GLsizei n, const GLfloat *points);
-GLAPI void APIENTRY glGetSharpenTexFuncSGIS (GLenum target, GLfloat *points);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLSHARPENTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points);
-typedef void (APIENTRYP PFNGLGETSHARPENTEXFUNCSGISPROC) (GLenum target, GLfloat *points);
-#endif
-
-#ifndef GL_EXT_packed_pixels
-#define GL_EXT_packed_pixels 1
-#endif
-
-#ifndef GL_SGIS_texture_lod
-#define GL_SGIS_texture_lod 1
-#endif
-
-#ifndef GL_SGIS_multisample
-#define GL_SGIS_multisample 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glSampleMaskSGIS (GLclampf value, GLboolean invert);
-GLAPI void APIENTRY glSamplePatternSGIS (GLenum pattern);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLSAMPLEMASKSGISPROC) (GLclampf value, GLboolean invert);
-typedef void (APIENTRYP PFNGLSAMPLEPATTERNSGISPROC) (GLenum pattern);
-#endif
-
-#ifndef GL_EXT_rescale_normal
-#define GL_EXT_rescale_normal 1
-#endif
-
-#ifndef GL_EXT_vertex_array
-#define GL_EXT_vertex_array 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glArrayElementEXT (GLint i);
-GLAPI void APIENTRY glColorPointerEXT (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
-GLAPI void APIENTRY glDrawArraysEXT (GLenum mode, GLint first, GLsizei count);
-GLAPI void APIENTRY glEdgeFlagPointerEXT (GLsizei stride, GLsizei count, const GLboolean *pointer);
-GLAPI void APIENTRY glGetPointervEXT (GLenum pname, GLvoid* *params);
-GLAPI void APIENTRY glIndexPointerEXT (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
-GLAPI void APIENTRY glNormalPointerEXT (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
-GLAPI void APIENTRY glTexCoordPointerEXT (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
-GLAPI void APIENTRY glVertexPointerEXT (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLARRAYELEMENTEXTPROC) (GLint i);
-typedef void (APIENTRYP PFNGLCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
-typedef void (APIENTRYP PFNGLDRAWARRAYSEXTPROC) (GLenum mode, GLint first, GLsizei count);
-typedef void (APIENTRYP PFNGLEDGEFLAGPOINTEREXTPROC) (GLsizei stride, GLsizei count, const GLboolean *pointer);
-typedef void (APIENTRYP PFNGLGETPOINTERVEXTPROC) (GLenum pname, GLvoid* *params);
-typedef void (APIENTRYP PFNGLINDEXPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
-typedef void (APIENTRYP PFNGLNORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
-typedef void (APIENTRYP PFNGLTEXCOORDPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
-typedef void (APIENTRYP PFNGLVERTEXPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
-#endif
-
-#ifndef GL_EXT_misc_attribute
-#define GL_EXT_misc_attribute 1
-#endif
-
-#ifndef GL_SGIS_generate_mipmap
-#define GL_SGIS_generate_mipmap 1
-#endif
-
-#ifndef GL_SGIX_clipmap
-#define GL_SGIX_clipmap 1
-#endif
-
-#ifndef GL_SGIX_shadow
-#define GL_SGIX_shadow 1
-#endif
-
-#ifndef GL_SGIS_texture_edge_clamp
-#define GL_SGIS_texture_edge_clamp 1
-#endif
-
-#ifndef GL_SGIS_texture_border_clamp
-#define GL_SGIS_texture_border_clamp 1
-#endif
-
-#ifndef GL_EXT_blend_minmax
-#define GL_EXT_blend_minmax 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBlendEquationEXT (GLenum mode);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBLENDEQUATIONEXTPROC) (GLenum mode);
-#endif
-
-#ifndef GL_EXT_blend_subtract
-#define GL_EXT_blend_subtract 1
-#endif
-
-#ifndef GL_EXT_blend_logic_op
-#define GL_EXT_blend_logic_op 1
-#endif
-
-#ifndef GL_SGIX_interlace
-#define GL_SGIX_interlace 1
-#endif
-
-#ifndef GL_SGIX_pixel_tiles
-#define GL_SGIX_pixel_tiles 1
-#endif
-
-#ifndef GL_SGIX_texture_select
-#define GL_SGIX_texture_select 1
-#endif
-
-#ifndef GL_SGIX_sprite
-#define GL_SGIX_sprite 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glSpriteParameterfSGIX (GLenum pname, GLfloat param);
-GLAPI void APIENTRY glSpriteParameterfvSGIX (GLenum pname, const GLfloat *params);
-GLAPI void APIENTRY glSpriteParameteriSGIX (GLenum pname, GLint param);
-GLAPI void APIENTRY glSpriteParameterivSGIX (GLenum pname, const GLint *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLSPRITEPARAMETERFSGIXPROC) (GLenum pname, GLfloat param);
-typedef void (APIENTRYP PFNGLSPRITEPARAMETERFVSGIXPROC) (GLenum pname, const GLfloat *params);
-typedef void (APIENTRYP PFNGLSPRITEPARAMETERISGIXPROC) (GLenum pname, GLint param);
-typedef void (APIENTRYP PFNGLSPRITEPARAMETERIVSGIXPROC) (GLenum pname, const GLint *params);
-#endif
-
-#ifndef GL_SGIX_texture_multi_buffer
-#define GL_SGIX_texture_multi_buffer 1
-#endif
-
-#ifndef GL_EXT_point_parameters
-#define GL_EXT_point_parameters 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glPointParameterfEXT (GLenum pname, GLfloat param);
-GLAPI void APIENTRY glPointParameterfvEXT (GLenum pname, const GLfloat *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLPOINTPARAMETERFEXTPROC) (GLenum pname, GLfloat param);
-typedef void (APIENTRYP PFNGLPOINTPARAMETERFVEXTPROC) (GLenum pname, const GLfloat *params);
-#endif
-
-#ifndef GL_SGIS_point_parameters
-#define GL_SGIS_point_parameters 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glPointParameterfSGIS (GLenum pname, GLfloat param);
-GLAPI void APIENTRY glPointParameterfvSGIS (GLenum pname, const GLfloat *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLPOINTPARAMETERFSGISPROC) (GLenum pname, GLfloat param);
-typedef void (APIENTRYP PFNGLPOINTPARAMETERFVSGISPROC) (GLenum pname, const GLfloat *params);
-#endif
-
-#ifndef GL_SGIX_instruments
-#define GL_SGIX_instruments 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI GLint APIENTRY glGetInstrumentsSGIX (void);
-GLAPI void APIENTRY glInstrumentsBufferSGIX (GLsizei size, GLint *buffer);
-GLAPI GLint APIENTRY glPollInstrumentsSGIX (GLint *marker_p);
-GLAPI void APIENTRY glReadInstrumentsSGIX (GLint marker);
-GLAPI void APIENTRY glStartInstrumentsSGIX (void);
-GLAPI void APIENTRY glStopInstrumentsSGIX (GLint marker);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef GLint (APIENTRYP PFNGLGETINSTRUMENTSSGIXPROC) (void);
-typedef void (APIENTRYP PFNGLINSTRUMENTSBUFFERSGIXPROC) (GLsizei size, GLint *buffer);
-typedef GLint (APIENTRYP PFNGLPOLLINSTRUMENTSSGIXPROC) (GLint *marker_p);
-typedef void (APIENTRYP PFNGLREADINSTRUMENTSSGIXPROC) (GLint marker);
-typedef void (APIENTRYP PFNGLSTARTINSTRUMENTSSGIXPROC) (void);
-typedef void (APIENTRYP PFNGLSTOPINSTRUMENTSSGIXPROC) (GLint marker);
-#endif
-
-#ifndef GL_SGIX_texture_scale_bias
-#define GL_SGIX_texture_scale_bias 1
-#endif
-
-#ifndef GL_SGIX_framezoom
-#define GL_SGIX_framezoom 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glFrameZoomSGIX (GLint factor);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLFRAMEZOOMSGIXPROC) (GLint factor);
-#endif
-
-#ifndef GL_SGIX_tag_sample_buffer
-#define GL_SGIX_tag_sample_buffer 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glTagSampleBufferSGIX (void);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLTAGSAMPLEBUFFERSGIXPROC) (void);
-#endif
-
-#ifndef GL_SGIX_polynomial_ffd
-#define GL_SGIX_polynomial_ffd 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glDeformationMap3dSGIX (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, GLdouble w1, GLdouble w2, GLint wstride, GLint worder, const GLdouble *points);
-GLAPI void APIENTRY glDeformationMap3fSGIX (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, GLfloat w1, GLfloat w2, GLint wstride, GLint worder, const GLfloat *points);
-GLAPI void APIENTRY glDeformSGIX (GLbitfield mask);
-GLAPI void APIENTRY glLoadIdentityDeformationMapSGIX (GLbitfield mask);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLDEFORMATIONMAP3DSGIXPROC) (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, GLdouble w1, GLdouble w2, GLint wstride, GLint worder, const GLdouble *points);
-typedef void (APIENTRYP PFNGLDEFORMATIONMAP3FSGIXPROC) (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, GLfloat w1, GLfloat w2, GLint wstride, GLint worder, const GLfloat *points);
-typedef void (APIENTRYP PFNGLDEFORMSGIXPROC) (GLbitfield mask);
-typedef void (APIENTRYP PFNGLLOADIDENTITYDEFORMATIONMAPSGIXPROC) (GLbitfield mask);
-#endif
-
-#ifndef GL_SGIX_reference_plane
-#define GL_SGIX_reference_plane 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glReferencePlaneSGIX (const GLdouble *equation);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLREFERENCEPLANESGIXPROC) (const GLdouble *equation);
-#endif
-
-#ifndef GL_SGIX_flush_raster
-#define GL_SGIX_flush_raster 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glFlushRasterSGIX (void);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLFLUSHRASTERSGIXPROC) (void);
-#endif
-
-#ifndef GL_SGIX_depth_texture
-#define GL_SGIX_depth_texture 1
-#endif
-
-#ifndef GL_SGIS_fog_function
-#define GL_SGIS_fog_function 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glFogFuncSGIS (GLsizei n, const GLfloat *points);
-GLAPI void APIENTRY glGetFogFuncSGIS (GLfloat *points);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLFOGFUNCSGISPROC) (GLsizei n, const GLfloat *points);
-typedef void (APIENTRYP PFNGLGETFOGFUNCSGISPROC) (GLfloat *points);
-#endif
-
-#ifndef GL_SGIX_fog_offset
-#define GL_SGIX_fog_offset 1
-#endif
-
-#ifndef GL_HP_image_transform
-#define GL_HP_image_transform 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glImageTransformParameteriHP (GLenum target, GLenum pname, GLint param);
-GLAPI void APIENTRY glImageTransformParameterfHP (GLenum target, GLenum pname, GLfloat param);
-GLAPI void APIENTRY glImageTransformParameterivHP (GLenum target, GLenum pname, const GLint *params);
-GLAPI void APIENTRY glImageTransformParameterfvHP (GLenum target, GLenum pname, const GLfloat *params);
-GLAPI void APIENTRY glGetImageTransformParameterivHP (GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetImageTransformParameterfvHP (GLenum target, GLenum pname, GLfloat *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERIHPPROC) (GLenum target, GLenum pname, GLint param);
-typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERFHPPROC) (GLenum target, GLenum pname, GLfloat param);
-typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, const GLint *params);
-typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, const GLfloat *params);
-typedef void (APIENTRYP PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, GLfloat *params);
-#endif
-
-#ifndef GL_HP_convolution_border_modes
-#define GL_HP_convolution_border_modes 1
-#endif
-
-#ifndef GL_SGIX_texture_add_env
-#define GL_SGIX_texture_add_env 1
-#endif
-
-#ifndef GL_EXT_color_subtable
-#define GL_EXT_color_subtable 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glColorSubTableEXT (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data);
-GLAPI void APIENTRY glCopyColorSubTableEXT (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data);
-typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
-#endif
-
-#ifndef GL_PGI_vertex_hints
-#define GL_PGI_vertex_hints 1
-#endif
-
-#ifndef GL_PGI_misc_hints
-#define GL_PGI_misc_hints 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glHintPGI (GLenum target, GLint mode);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLHINTPGIPROC) (GLenum target, GLint mode);
-#endif
-
-#ifndef GL_EXT_paletted_texture
-#define GL_EXT_paletted_texture 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glColorTableEXT (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
-GLAPI void APIENTRY glGetColorTableEXT (GLenum target, GLenum format, GLenum type, GLvoid *data);
-GLAPI void APIENTRY glGetColorTableParameterivEXT (GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetColorTableParameterfvEXT (GLenum target, GLenum pname, GLfloat *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLCOLORTABLEEXTPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
-typedef void (APIENTRYP PFNGLGETCOLORTABLEEXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *data);
-typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
-#endif
-
-#ifndef GL_EXT_clip_volume_hint
-#define GL_EXT_clip_volume_hint 1
-#endif
-
-#ifndef GL_SGIX_list_priority
-#define GL_SGIX_list_priority 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glGetListParameterfvSGIX (GLuint list, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetListParameterivSGIX (GLuint list, GLenum pname, GLint *params);
-GLAPI void APIENTRY glListParameterfSGIX (GLuint list, GLenum pname, GLfloat param);
-GLAPI void APIENTRY glListParameterfvSGIX (GLuint list, GLenum pname, const GLfloat *params);
-GLAPI void APIENTRY glListParameteriSGIX (GLuint list, GLenum pname, GLint param);
-GLAPI void APIENTRY glListParameterivSGIX (GLuint list, GLenum pname, const GLint *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLGETLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLLISTPARAMETERFSGIXPROC) (GLuint list, GLenum pname, GLfloat param);
-typedef void (APIENTRYP PFNGLLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, const GLfloat *params);
-typedef void (APIENTRYP PFNGLLISTPARAMETERISGIXPROC) (GLuint list, GLenum pname, GLint param);
-typedef void (APIENTRYP PFNGLLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, const GLint *params);
-#endif
-
-#ifndef GL_SGIX_ir_instrument1
-#define GL_SGIX_ir_instrument1 1
-#endif
-
-#ifndef GL_SGIX_calligraphic_fragment
-#define GL_SGIX_calligraphic_fragment 1
-#endif
-
-#ifndef GL_SGIX_texture_lod_bias
-#define GL_SGIX_texture_lod_bias 1
-#endif
-
-#ifndef GL_SGIX_shadow_ambient
-#define GL_SGIX_shadow_ambient 1
-#endif
-
-#ifndef GL_EXT_index_texture
-#define GL_EXT_index_texture 1
-#endif
-
-#ifndef GL_EXT_index_material
-#define GL_EXT_index_material 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glIndexMaterialEXT (GLenum face, GLenum mode);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLINDEXMATERIALEXTPROC) (GLenum face, GLenum mode);
-#endif
-
-#ifndef GL_EXT_index_func
-#define GL_EXT_index_func 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glIndexFuncEXT (GLenum func, GLclampf ref);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLINDEXFUNCEXTPROC) (GLenum func, GLclampf ref);
-#endif
-
-#ifndef GL_EXT_index_array_formats
-#define GL_EXT_index_array_formats 1
-#endif
-
-#ifndef GL_EXT_compiled_vertex_array
-#define GL_EXT_compiled_vertex_array 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glLockArraysEXT (GLint first, GLsizei count);
-GLAPI void APIENTRY glUnlockArraysEXT (void);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLLOCKARRAYSEXTPROC) (GLint first, GLsizei count);
-typedef void (APIENTRYP PFNGLUNLOCKARRAYSEXTPROC) (void);
-#endif
-
-#ifndef GL_EXT_cull_vertex
-#define GL_EXT_cull_vertex 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glCullParameterdvEXT (GLenum pname, GLdouble *params);
-GLAPI void APIENTRY glCullParameterfvEXT (GLenum pname, GLfloat *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLCULLPARAMETERDVEXTPROC) (GLenum pname, GLdouble *params);
-typedef void (APIENTRYP PFNGLCULLPARAMETERFVEXTPROC) (GLenum pname, GLfloat *params);
-#endif
-
-#ifndef GL_SGIX_ycrcb
-#define GL_SGIX_ycrcb 1
-#endif
-
-#ifndef GL_SGIX_fragment_lighting
-#define GL_SGIX_fragment_lighting 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glFragmentColorMaterialSGIX (GLenum face, GLenum mode);
-GLAPI void APIENTRY glFragmentLightfSGIX (GLenum light, GLenum pname, GLfloat param);
-GLAPI void APIENTRY glFragmentLightfvSGIX (GLenum light, GLenum pname, const GLfloat *params);
-GLAPI void APIENTRY glFragmentLightiSGIX (GLenum light, GLenum pname, GLint param);
-GLAPI void APIENTRY glFragmentLightivSGIX (GLenum light, GLenum pname, const GLint *params);
-GLAPI void APIENTRY glFragmentLightModelfSGIX (GLenum pname, GLfloat param);
-GLAPI void APIENTRY glFragmentLightModelfvSGIX (GLenum pname, const GLfloat *params);
-GLAPI void APIENTRY glFragmentLightModeliSGIX (GLenum pname, GLint param);
-GLAPI void APIENTRY glFragmentLightModelivSGIX (GLenum pname, const GLint *params);
-GLAPI void APIENTRY glFragmentMaterialfSGIX (GLenum face, GLenum pname, GLfloat param);
-GLAPI void APIENTRY glFragmentMaterialfvSGIX (GLenum face, GLenum pname, const GLfloat *params);
-GLAPI void APIENTRY glFragmentMaterialiSGIX (GLenum face, GLenum pname, GLint param);
-GLAPI void APIENTRY glFragmentMaterialivSGIX (GLenum face, GLenum pname, const GLint *params);
-GLAPI void APIENTRY glGetFragmentLightfvSGIX (GLenum light, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetFragmentLightivSGIX (GLenum light, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetFragmentMaterialfvSGIX (GLenum face, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetFragmentMaterialivSGIX (GLenum face, GLenum pname, GLint *params);
-GLAPI void APIENTRY glLightEnviSGIX (GLenum pname, GLint param);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLFRAGMENTCOLORMATERIALSGIXPROC) (GLenum face, GLenum mode);
-typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFSGIXPROC) (GLenum light, GLenum pname, GLfloat param);
-typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, const GLfloat *params);
-typedef void (APIENTRYP PFNGLFRAGMENTLIGHTISGIXPROC) (GLenum light, GLenum pname, GLint param);
-typedef void (APIENTRYP PFNGLFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, const GLint *params);
-typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELFSGIXPROC) (GLenum pname, GLfloat param);
-typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELFVSGIXPROC) (GLenum pname, const GLfloat *params);
-typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELISGIXPROC) (GLenum pname, GLint param);
-typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELIVSGIXPROC) (GLenum pname, const GLint *params);
-typedef void (APIENTRYP PFNGLFRAGMENTMATERIALFSGIXPROC) (GLenum face, GLenum pname, GLfloat param);
-typedef void (APIENTRYP PFNGLFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, const GLfloat *params);
-typedef void (APIENTRYP PFNGLFRAGMENTMATERIALISGIXPROC) (GLenum face, GLenum pname, GLint param);
-typedef void (APIENTRYP PFNGLFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, const GLint *params);
-typedef void (APIENTRYP PFNGLGETFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLLIGHTENVISGIXPROC) (GLenum pname, GLint param);
-#endif
-
-#ifndef GL_IBM_rasterpos_clip
-#define GL_IBM_rasterpos_clip 1
-#endif
-
-#ifndef GL_HP_texture_lighting
-#define GL_HP_texture_lighting 1
-#endif
-
-#ifndef GL_EXT_draw_range_elements
-#define GL_EXT_draw_range_elements 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glDrawRangeElementsEXT (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSEXTPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
-#endif
-
-#ifndef GL_WIN_phong_shading
-#define GL_WIN_phong_shading 1
-#endif
-
-#ifndef GL_WIN_specular_fog
-#define GL_WIN_specular_fog 1
-#endif
-
-#ifndef GL_EXT_light_texture
-#define GL_EXT_light_texture 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glApplyTextureEXT (GLenum mode);
-GLAPI void APIENTRY glTextureLightEXT (GLenum pname);
-GLAPI void APIENTRY glTextureMaterialEXT (GLenum face, GLenum mode);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLAPPLYTEXTUREEXTPROC) (GLenum mode);
-typedef void (APIENTRYP PFNGLTEXTURELIGHTEXTPROC) (GLenum pname);
-typedef void (APIENTRYP PFNGLTEXTUREMATERIALEXTPROC) (GLenum face, GLenum mode);
-#endif
-
-#ifndef GL_SGIX_blend_alpha_minmax
-#define GL_SGIX_blend_alpha_minmax 1
-#endif
-
-#ifndef GL_EXT_bgra
-#define GL_EXT_bgra 1
-#endif
-
-#ifndef GL_SGIX_async
-#define GL_SGIX_async 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glAsyncMarkerSGIX (GLuint marker);
-GLAPI GLint APIENTRY glFinishAsyncSGIX (GLuint *markerp);
-GLAPI GLint APIENTRY glPollAsyncSGIX (GLuint *markerp);
-GLAPI GLuint APIENTRY glGenAsyncMarkersSGIX (GLsizei range);
-GLAPI void APIENTRY glDeleteAsyncMarkersSGIX (GLuint marker, GLsizei range);
-GLAPI GLboolean APIENTRY glIsAsyncMarkerSGIX (GLuint marker);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLASYNCMARKERSGIXPROC) (GLuint marker);
-typedef GLint (APIENTRYP PFNGLFINISHASYNCSGIXPROC) (GLuint *markerp);
-typedef GLint (APIENTRYP PFNGLPOLLASYNCSGIXPROC) (GLuint *markerp);
-typedef GLuint (APIENTRYP PFNGLGENASYNCMARKERSSGIXPROC) (GLsizei range);
-typedef void (APIENTRYP PFNGLDELETEASYNCMARKERSSGIXPROC) (GLuint marker, GLsizei range);
-typedef GLboolean (APIENTRYP PFNGLISASYNCMARKERSGIXPROC) (GLuint marker);
-#endif
-
-#ifndef GL_SGIX_async_pixel
-#define GL_SGIX_async_pixel 1
-#endif
-
-#ifndef GL_SGIX_async_histogram
-#define GL_SGIX_async_histogram 1
-#endif
-
-#ifndef GL_INTEL_parallel_arrays
-#define GL_INTEL_parallel_arrays 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glVertexPointervINTEL (GLint size, GLenum type, const GLvoid* *pointer);
-GLAPI void APIENTRY glNormalPointervINTEL (GLenum type, const GLvoid* *pointer);
-GLAPI void APIENTRY glColorPointervINTEL (GLint size, GLenum type, const GLvoid* *pointer);
-GLAPI void APIENTRY glTexCoordPointervINTEL (GLint size, GLenum type, const GLvoid* *pointer);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLVERTEXPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer);
-typedef void (APIENTRYP PFNGLNORMALPOINTERVINTELPROC) (GLenum type, const GLvoid* *pointer);
-typedef void (APIENTRYP PFNGLCOLORPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer);
-typedef void (APIENTRYP PFNGLTEXCOORDPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer);
-#endif
-
-#ifndef GL_HP_occlusion_test
-#define GL_HP_occlusion_test 1
-#endif
-
-#ifndef GL_EXT_pixel_transform
-#define GL_EXT_pixel_transform 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glPixelTransformParameteriEXT (GLenum target, GLenum pname, GLint param);
-GLAPI void APIENTRY glPixelTransformParameterfEXT (GLenum target, GLenum pname, GLfloat param);
-GLAPI void APIENTRY glPixelTransformParameterivEXT (GLenum target, GLenum pname, const GLint *params);
-GLAPI void APIENTRY glPixelTransformParameterfvEXT (GLenum target, GLenum pname, const GLfloat *params);
-GLAPI void APIENTRY glGetPixelTransformParameterivEXT (GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetPixelTransformParameterfvEXT (GLenum target, GLenum pname, GLfloat *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint param);
-typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat param);
-typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params);
-typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat *params);
-typedef void (APIENTRYP PFNGLGETPIXELTRANSFORMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETPIXELTRANSFORMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
-#endif
-
-#ifndef GL_EXT_pixel_transform_color_table
-#define GL_EXT_pixel_transform_color_table 1
-#endif
-
-#ifndef GL_EXT_shared_texture_palette
-#define GL_EXT_shared_texture_palette 1
-#endif
-
-#ifndef GL_EXT_separate_specular_color
-#define GL_EXT_separate_specular_color 1
-#endif
-
-#ifndef GL_EXT_secondary_color
-#define GL_EXT_secondary_color 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glSecondaryColor3bEXT (GLbyte red, GLbyte green, GLbyte blue);
-GLAPI void APIENTRY glSecondaryColor3bvEXT (const GLbyte *v);
-GLAPI void APIENTRY glSecondaryColor3dEXT (GLdouble red, GLdouble green, GLdouble blue);
-GLAPI void APIENTRY glSecondaryColor3dvEXT (const GLdouble *v);
-GLAPI void APIENTRY glSecondaryColor3fEXT (GLfloat red, GLfloat green, GLfloat blue);
-GLAPI void APIENTRY glSecondaryColor3fvEXT (const GLfloat *v);
-GLAPI void APIENTRY glSecondaryColor3iEXT (GLint red, GLint green, GLint blue);
-GLAPI void APIENTRY glSecondaryColor3ivEXT (const GLint *v);
-GLAPI void APIENTRY glSecondaryColor3sEXT (GLshort red, GLshort green, GLshort blue);
-GLAPI void APIENTRY glSecondaryColor3svEXT (const GLshort *v);
-GLAPI void APIENTRY glSecondaryColor3ubEXT (GLubyte red, GLubyte green, GLubyte blue);
-GLAPI void APIENTRY glSecondaryColor3ubvEXT (const GLubyte *v);
-GLAPI void APIENTRY glSecondaryColor3uiEXT (GLuint red, GLuint green, GLuint blue);
-GLAPI void APIENTRY glSecondaryColor3uivEXT (const GLuint *v);
-GLAPI void APIENTRY glSecondaryColor3usEXT (GLushort red, GLushort green, GLushort blue);
-GLAPI void APIENTRY glSecondaryColor3usvEXT (const GLushort *v);
-GLAPI void APIENTRY glSecondaryColorPointerEXT (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BEXTPROC) (GLbyte red, GLbyte green, GLbyte blue);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVEXTPROC) (const GLbyte *v);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DEXTPROC) (GLdouble red, GLdouble green, GLdouble blue);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVEXTPROC) (const GLdouble *v);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FEXTPROC) (GLfloat red, GLfloat green, GLfloat blue);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVEXTPROC) (const GLfloat *v);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IEXTPROC) (GLint red, GLint green, GLint blue);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVEXTPROC) (const GLint *v);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SEXTPROC) (GLshort red, GLshort green, GLshort blue);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVEXTPROC) (const GLshort *v);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBEXTPROC) (GLubyte red, GLubyte green, GLubyte blue);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVEXTPROC) (const GLubyte *v);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIEXTPROC) (GLuint red, GLuint green, GLuint blue);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVEXTPROC) (const GLuint *v);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USEXTPROC) (GLushort red, GLushort green, GLushort blue);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVEXTPROC) (const GLushort *v);
-typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-#endif
-
-#ifndef GL_EXT_texture_perturb_normal
-#define GL_EXT_texture_perturb_normal 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glTextureNormalEXT (GLenum mode);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLTEXTURENORMALEXTPROC) (GLenum mode);
-#endif
-
-#ifndef GL_EXT_multi_draw_arrays
-#define GL_EXT_multi_draw_arrays 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glMultiDrawArraysEXT (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
-GLAPI void APIENTRY glMultiDrawElementsEXT (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
-typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
-#endif
-
-#ifndef GL_EXT_fog_coord
-#define GL_EXT_fog_coord 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glFogCoordfEXT (GLfloat coord);
-GLAPI void APIENTRY glFogCoordfvEXT (const GLfloat *coord);
-GLAPI void APIENTRY glFogCoorddEXT (GLdouble coord);
-GLAPI void APIENTRY glFogCoorddvEXT (const GLdouble *coord);
-GLAPI void APIENTRY glFogCoordPointerEXT (GLenum type, GLsizei stride, const GLvoid *pointer);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLFOGCOORDFEXTPROC) (GLfloat coord);
-typedef void (APIENTRYP PFNGLFOGCOORDFVEXTPROC) (const GLfloat *coord);
-typedef void (APIENTRYP PFNGLFOGCOORDDEXTPROC) (GLdouble coord);
-typedef void (APIENTRYP PFNGLFOGCOORDDVEXTPROC) (const GLdouble *coord);
-typedef void (APIENTRYP PFNGLFOGCOORDPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer);
-#endif
-
-#ifndef GL_REND_screen_coordinates
-#define GL_REND_screen_coordinates 1
-#endif
-
-#ifndef GL_EXT_coordinate_frame
-#define GL_EXT_coordinate_frame 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glTangent3bEXT (GLbyte tx, GLbyte ty, GLbyte tz);
-GLAPI void APIENTRY glTangent3bvEXT (const GLbyte *v);
-GLAPI void APIENTRY glTangent3dEXT (GLdouble tx, GLdouble ty, GLdouble tz);
-GLAPI void APIENTRY glTangent3dvEXT (const GLdouble *v);
-GLAPI void APIENTRY glTangent3fEXT (GLfloat tx, GLfloat ty, GLfloat tz);
-GLAPI void APIENTRY glTangent3fvEXT (const GLfloat *v);
-GLAPI void APIENTRY glTangent3iEXT (GLint tx, GLint ty, GLint tz);
-GLAPI void APIENTRY glTangent3ivEXT (const GLint *v);
-GLAPI void APIENTRY glTangent3sEXT (GLshort tx, GLshort ty, GLshort tz);
-GLAPI void APIENTRY glTangent3svEXT (const GLshort *v);
-GLAPI void APIENTRY glBinormal3bEXT (GLbyte bx, GLbyte by, GLbyte bz);
-GLAPI void APIENTRY glBinormal3bvEXT (const GLbyte *v);
-GLAPI void APIENTRY glBinormal3dEXT (GLdouble bx, GLdouble by, GLdouble bz);
-GLAPI void APIENTRY glBinormal3dvEXT (const GLdouble *v);
-GLAPI void APIENTRY glBinormal3fEXT (GLfloat bx, GLfloat by, GLfloat bz);
-GLAPI void APIENTRY glBinormal3fvEXT (const GLfloat *v);
-GLAPI void APIENTRY glBinormal3iEXT (GLint bx, GLint by, GLint bz);
-GLAPI void APIENTRY glBinormal3ivEXT (const GLint *v);
-GLAPI void APIENTRY glBinormal3sEXT (GLshort bx, GLshort by, GLshort bz);
-GLAPI void APIENTRY glBinormal3svEXT (const GLshort *v);
-GLAPI void APIENTRY glTangentPointerEXT (GLenum type, GLsizei stride, const GLvoid *pointer);
-GLAPI void APIENTRY glBinormalPointerEXT (GLenum type, GLsizei stride, const GLvoid *pointer);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLTANGENT3BEXTPROC) (GLbyte tx, GLbyte ty, GLbyte tz);
-typedef void (APIENTRYP PFNGLTANGENT3BVEXTPROC) (const GLbyte *v);
-typedef void (APIENTRYP PFNGLTANGENT3DEXTPROC) (GLdouble tx, GLdouble ty, GLdouble tz);
-typedef void (APIENTRYP PFNGLTANGENT3DVEXTPROC) (const GLdouble *v);
-typedef void (APIENTRYP PFNGLTANGENT3FEXTPROC) (GLfloat tx, GLfloat ty, GLfloat tz);
-typedef void (APIENTRYP PFNGLTANGENT3FVEXTPROC) (const GLfloat *v);
-typedef void (APIENTRYP PFNGLTANGENT3IEXTPROC) (GLint tx, GLint ty, GLint tz);
-typedef void (APIENTRYP PFNGLTANGENT3IVEXTPROC) (const GLint *v);
-typedef void (APIENTRYP PFNGLTANGENT3SEXTPROC) (GLshort tx, GLshort ty, GLshort tz);
-typedef void (APIENTRYP PFNGLTANGENT3SVEXTPROC) (const GLshort *v);
-typedef void (APIENTRYP PFNGLBINORMAL3BEXTPROC) (GLbyte bx, GLbyte by, GLbyte bz);
-typedef void (APIENTRYP PFNGLBINORMAL3BVEXTPROC) (const GLbyte *v);
-typedef void (APIENTRYP PFNGLBINORMAL3DEXTPROC) (GLdouble bx, GLdouble by, GLdouble bz);
-typedef void (APIENTRYP PFNGLBINORMAL3DVEXTPROC) (const GLdouble *v);
-typedef void (APIENTRYP PFNGLBINORMAL3FEXTPROC) (GLfloat bx, GLfloat by, GLfloat bz);
-typedef void (APIENTRYP PFNGLBINORMAL3FVEXTPROC) (const GLfloat *v);
-typedef void (APIENTRYP PFNGLBINORMAL3IEXTPROC) (GLint bx, GLint by, GLint bz);
-typedef void (APIENTRYP PFNGLBINORMAL3IVEXTPROC) (const GLint *v);
-typedef void (APIENTRYP PFNGLBINORMAL3SEXTPROC) (GLshort bx, GLshort by, GLshort bz);
-typedef void (APIENTRYP PFNGLBINORMAL3SVEXTPROC) (const GLshort *v);
-typedef void (APIENTRYP PFNGLTANGENTPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer);
-typedef void (APIENTRYP PFNGLBINORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer);
-#endif
-
-#ifndef GL_EXT_texture_env_combine
-#define GL_EXT_texture_env_combine 1
-#endif
-
-#ifndef GL_APPLE_specular_vector
-#define GL_APPLE_specular_vector 1
-#endif
-
-#ifndef GL_APPLE_transform_hint
-#define GL_APPLE_transform_hint 1
-#endif
-
-#ifndef GL_SGIX_fog_scale
-#define GL_SGIX_fog_scale 1
-#endif
-
-#ifndef GL_SUNX_constant_data
-#define GL_SUNX_constant_data 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glFinishTextureSUNX (void);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLFINISHTEXTURESUNXPROC) (void);
-#endif
-
-#ifndef GL_SUN_global_alpha
-#define GL_SUN_global_alpha 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glGlobalAlphaFactorbSUN (GLbyte factor);
-GLAPI void APIENTRY glGlobalAlphaFactorsSUN (GLshort factor);
-GLAPI void APIENTRY glGlobalAlphaFactoriSUN (GLint factor);
-GLAPI void APIENTRY glGlobalAlphaFactorfSUN (GLfloat factor);
-GLAPI void APIENTRY glGlobalAlphaFactordSUN (GLdouble factor);
-GLAPI void APIENTRY glGlobalAlphaFactorubSUN (GLubyte factor);
-GLAPI void APIENTRY glGlobalAlphaFactorusSUN (GLushort factor);
-GLAPI void APIENTRY glGlobalAlphaFactoruiSUN (GLuint factor);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORBSUNPROC) (GLbyte factor);
-typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORSSUNPROC) (GLshort factor);
-typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORISUNPROC) (GLint factor);
-typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORFSUNPROC) (GLfloat factor);
-typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORDSUNPROC) (GLdouble factor);
-typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUBSUNPROC) (GLubyte factor);
-typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUSSUNPROC) (GLushort factor);
-typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUISUNPROC) (GLuint factor);
-#endif
-
-#ifndef GL_SUN_triangle_list
-#define GL_SUN_triangle_list 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glReplacementCodeuiSUN (GLuint code);
-GLAPI void APIENTRY glReplacementCodeusSUN (GLushort code);
-GLAPI void APIENTRY glReplacementCodeubSUN (GLubyte code);
-GLAPI void APIENTRY glReplacementCodeuivSUN (const GLuint *code);
-GLAPI void APIENTRY glReplacementCodeusvSUN (const GLushort *code);
-GLAPI void APIENTRY glReplacementCodeubvSUN (const GLubyte *code);
-GLAPI void APIENTRY glReplacementCodePointerSUN (GLenum type, GLsizei stride, const GLvoid* *pointer);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLREPLACEMENTCODEUISUNPROC) (GLuint code);
-typedef void (APIENTRYP PFNGLREPLACEMENTCODEUSSUNPROC) (GLushort code);
-typedef void (APIENTRYP PFNGLREPLACEMENTCODEUBSUNPROC) (GLubyte code);
-typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVSUNPROC) (const GLuint *code);
-typedef void (APIENTRYP PFNGLREPLACEMENTCODEUSVSUNPROC) (const GLushort *code);
-typedef void (APIENTRYP PFNGLREPLACEMENTCODEUBVSUNPROC) (const GLubyte *code);
-typedef void (APIENTRYP PFNGLREPLACEMENTCODEPOINTERSUNPROC) (GLenum type, GLsizei stride, const GLvoid* *pointer);
-#endif
-
-#ifndef GL_SUN_vertex
-#define GL_SUN_vertex 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glColor4ubVertex2fSUN (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y);
-GLAPI void APIENTRY glColor4ubVertex2fvSUN (const GLubyte *c, const GLfloat *v);
-GLAPI void APIENTRY glColor4ubVertex3fSUN (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glColor4ubVertex3fvSUN (const GLubyte *c, const GLfloat *v);
-GLAPI void APIENTRY glColor3fVertex3fSUN (GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glColor3fVertex3fvSUN (const GLfloat *c, const GLfloat *v);
-GLAPI void APIENTRY glNormal3fVertex3fSUN (GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glNormal3fVertex3fvSUN (const GLfloat *n, const GLfloat *v);
-GLAPI void APIENTRY glColor4fNormal3fVertex3fSUN (GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glColor4fNormal3fVertex3fvSUN (const GLfloat *c, const GLfloat *n, const GLfloat *v);
-GLAPI void APIENTRY glTexCoord2fVertex3fSUN (GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glTexCoord2fVertex3fvSUN (const GLfloat *tc, const GLfloat *v);
-GLAPI void APIENTRY glTexCoord4fVertex4fSUN (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-GLAPI void APIENTRY glTexCoord4fVertex4fvSUN (const GLfloat *tc, const GLfloat *v);
-GLAPI void APIENTRY glTexCoord2fColor4ubVertex3fSUN (GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glTexCoord2fColor4ubVertex3fvSUN (const GLfloat *tc, const GLubyte *c, const GLfloat *v);
-GLAPI void APIENTRY glTexCoord2fColor3fVertex3fSUN (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glTexCoord2fColor3fVertex3fvSUN (const GLfloat *tc, const GLfloat *c, const GLfloat *v);
-GLAPI void APIENTRY glTexCoord2fNormal3fVertex3fSUN (GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glTexCoord2fNormal3fVertex3fvSUN (const GLfloat *tc, const GLfloat *n, const GLfloat *v);
-GLAPI void APIENTRY glTexCoord2fColor4fNormal3fVertex3fSUN (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glTexCoord2fColor4fNormal3fVertex3fvSUN (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
-GLAPI void APIENTRY glTexCoord4fColor4fNormal3fVertex4fSUN (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-GLAPI void APIENTRY glTexCoord4fColor4fNormal3fVertex4fvSUN (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
-GLAPI void APIENTRY glReplacementCodeuiVertex3fSUN (GLuint rc, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glReplacementCodeuiVertex3fvSUN (const GLuint *rc, const GLfloat *v);
-GLAPI void APIENTRY glReplacementCodeuiColor4ubVertex3fSUN (GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glReplacementCodeuiColor4ubVertex3fvSUN (const GLuint *rc, const GLubyte *c, const GLfloat *v);
-GLAPI void APIENTRY glReplacementCodeuiColor3fVertex3fSUN (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glReplacementCodeuiColor3fVertex3fvSUN (const GLuint *rc, const GLfloat *c, const GLfloat *v);
-GLAPI void APIENTRY glReplacementCodeuiNormal3fVertex3fSUN (GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glReplacementCodeuiNormal3fVertex3fvSUN (const GLuint *rc, const GLfloat *n, const GLfloat *v);
-GLAPI void APIENTRY glReplacementCodeuiColor4fNormal3fVertex3fSUN (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glReplacementCodeuiColor4fNormal3fVertex3fvSUN (const GLuint *rc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
-GLAPI void APIENTRY glReplacementCodeuiTexCoord2fVertex3fSUN (GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glReplacementCodeuiTexCoord2fVertex3fvSUN (const GLuint *rc, const GLfloat *tc, const GLfloat *v);
-GLAPI void APIENTRY glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN (GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN (const GLuint *rc, const GLfloat *tc, const GLfloat *n, const GLfloat *v);
-GLAPI void APIENTRY glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN (GLuint rc, GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN (const GLuint *rc, const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX2FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y);
-typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX2FVSUNPROC) (const GLubyte *c, const GLfloat *v);
-typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX3FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX3FVSUNPROC) (const GLubyte *c, const GLfloat *v);
-typedef void (APIENTRYP PFNGLCOLOR3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLCOLOR3FVERTEX3FVSUNPROC) (const GLfloat *c, const GLfloat *v);
-typedef void (APIENTRYP PFNGLNORMAL3FVERTEX3FSUNPROC) (GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *n, const GLfloat *v);
-typedef void (APIENTRYP PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *c, const GLfloat *n, const GLfloat *v);
-typedef void (APIENTRYP PFNGLTEXCOORD2FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLTEXCOORD2FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *v);
-typedef void (APIENTRYP PFNGLTEXCOORD4FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-typedef void (APIENTRYP PFNGLTEXCOORD4FVERTEX4FVSUNPROC) (const GLfloat *tc, const GLfloat *v);
-typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC) (const GLfloat *tc, const GLubyte *c, const GLfloat *v);
-typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *v);
-typedef void (APIENTRYP PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *n, const GLfloat *v);
-typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
-typedef void (APIENTRYP PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-typedef void (APIENTRYP PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
-typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC) (GLuint rc, GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *v);
-typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC) (GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC) (const GLuint *rc, const GLubyte *c, const GLfloat *v);
-typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *c, const GLfloat *v);
-typedef void (APIENTRYP PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *n, const GLfloat *v);
-typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
-typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *v);
-typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *n, const GLfloat *v);
-typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
-#endif
-
-#ifndef GL_EXT_blend_func_separate
-#define GL_EXT_blend_func_separate 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBlendFuncSeparateEXT (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEEXTPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
-#endif
-
-#ifndef GL_INGR_blend_func_separate
-#define GL_INGR_blend_func_separate 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBlendFuncSeparateINGR (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEINGRPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
-#endif
-
-#ifndef GL_INGR_color_clamp
-#define GL_INGR_color_clamp 1
-#endif
-
-#ifndef GL_INGR_interlace_read
-#define GL_INGR_interlace_read 1
-#endif
-
-#ifndef GL_EXT_stencil_wrap
-#define GL_EXT_stencil_wrap 1
-#endif
-
-#ifndef GL_EXT_422_pixels
-#define GL_EXT_422_pixels 1
-#endif
-
-#ifndef GL_NV_texgen_reflection
-#define GL_NV_texgen_reflection 1
-#endif
-
-#ifndef GL_SUN_convolution_border_modes
-#define GL_SUN_convolution_border_modes 1
-#endif
-
-#ifndef GL_EXT_texture_env_add
-#define GL_EXT_texture_env_add 1
-#endif
-
-#ifndef GL_EXT_texture_lod_bias
-#define GL_EXT_texture_lod_bias 1
-#endif
-
-#ifndef GL_EXT_texture_filter_anisotropic
-#define GL_EXT_texture_filter_anisotropic 1
-#endif
-
-#ifndef GL_EXT_vertex_weighting
-#define GL_EXT_vertex_weighting 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glVertexWeightfEXT (GLfloat weight);
-GLAPI void APIENTRY glVertexWeightfvEXT (const GLfloat *weight);
-GLAPI void APIENTRY glVertexWeightPointerEXT (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLVERTEXWEIGHTFEXTPROC) (GLfloat weight);
-typedef void (APIENTRYP PFNGLVERTEXWEIGHTFVEXTPROC) (const GLfloat *weight);
-typedef void (APIENTRYP PFNGLVERTEXWEIGHTPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-#endif
-
-#ifndef GL_NV_light_max_exponent
-#define GL_NV_light_max_exponent 1
-#endif
-
-#ifndef GL_NV_vertex_array_range
-#define GL_NV_vertex_array_range 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glFlushVertexArrayRangeNV (void);
-GLAPI void APIENTRY glVertexArrayRangeNV (GLsizei length, const GLvoid *pointer);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLFLUSHVERTEXARRAYRANGENVPROC) (void);
-typedef void (APIENTRYP PFNGLVERTEXARRAYRANGENVPROC) (GLsizei length, const GLvoid *pointer);
-#endif
-
-#ifndef GL_NV_register_combiners
-#define GL_NV_register_combiners 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glCombinerParameterfvNV (GLenum pname, const GLfloat *params);
-GLAPI void APIENTRY glCombinerParameterfNV (GLenum pname, GLfloat param);
-GLAPI void APIENTRY glCombinerParameterivNV (GLenum pname, const GLint *params);
-GLAPI void APIENTRY glCombinerParameteriNV (GLenum pname, GLint param);
-GLAPI void APIENTRY glCombinerInputNV (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
-GLAPI void APIENTRY glCombinerOutputNV (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum);
-GLAPI void APIENTRY glFinalCombinerInputNV (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
-GLAPI void APIENTRY glGetCombinerInputParameterfvNV (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetCombinerInputParameterivNV (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetCombinerOutputParameterfvNV (GLenum stage, GLenum portion, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetCombinerOutputParameterivNV (GLenum stage, GLenum portion, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetFinalCombinerInputParameterfvNV (GLenum variable, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetFinalCombinerInputParameterivNV (GLenum variable, GLenum pname, GLint *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLCOMBINERPARAMETERFVNVPROC) (GLenum pname, const GLfloat *params);
-typedef void (APIENTRYP PFNGLCOMBINERPARAMETERFNVPROC) (GLenum pname, GLfloat param);
-typedef void (APIENTRYP PFNGLCOMBINERPARAMETERIVNVPROC) (GLenum pname, const GLint *params);
-typedef void (APIENTRYP PFNGLCOMBINERPARAMETERINVPROC) (GLenum pname, GLint param);
-typedef void (APIENTRYP PFNGLCOMBINERINPUTNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
-typedef void (APIENTRYP PFNGLCOMBINEROUTPUTNVPROC) (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum);
-typedef void (APIENTRYP PFNGLFINALCOMBINERINPUTNVPROC) (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
-typedef void (APIENTRYP PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC) (GLenum variable, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC) (GLenum variable, GLenum pname, GLint *params);
-#endif
-
-#ifndef GL_NV_fog_distance
-#define GL_NV_fog_distance 1
-#endif
-
-#ifndef GL_NV_texgen_emboss
-#define GL_NV_texgen_emboss 1
-#endif
-
-#ifndef GL_NV_blend_square
-#define GL_NV_blend_square 1
-#endif
-
-#ifndef GL_NV_texture_env_combine4
-#define GL_NV_texture_env_combine4 1
-#endif
-
-#ifndef GL_MESA_resize_buffers
-#define GL_MESA_resize_buffers 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glResizeBuffersMESA (void);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLRESIZEBUFFERSMESAPROC) (void);
-#endif
-
-#ifndef GL_MESA_window_pos
-#define GL_MESA_window_pos 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glWindowPos2dMESA (GLdouble x, GLdouble y);
-GLAPI void APIENTRY glWindowPos2dvMESA (const GLdouble *v);
-GLAPI void APIENTRY glWindowPos2fMESA (GLfloat x, GLfloat y);
-GLAPI void APIENTRY glWindowPos2fvMESA (const GLfloat *v);
-GLAPI void APIENTRY glWindowPos2iMESA (GLint x, GLint y);
-GLAPI void APIENTRY glWindowPos2ivMESA (const GLint *v);
-GLAPI void APIENTRY glWindowPos2sMESA (GLshort x, GLshort y);
-GLAPI void APIENTRY glWindowPos2svMESA (const GLshort *v);
-GLAPI void APIENTRY glWindowPos3dMESA (GLdouble x, GLdouble y, GLdouble z);
-GLAPI void APIENTRY glWindowPos3dvMESA (const GLdouble *v);
-GLAPI void APIENTRY glWindowPos3fMESA (GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glWindowPos3fvMESA (const GLfloat *v);
-GLAPI void APIENTRY glWindowPos3iMESA (GLint x, GLint y, GLint z);
-GLAPI void APIENTRY glWindowPos3ivMESA (const GLint *v);
-GLAPI void APIENTRY glWindowPos3sMESA (GLshort x, GLshort y, GLshort z);
-GLAPI void APIENTRY glWindowPos3svMESA (const GLshort *v);
-GLAPI void APIENTRY glWindowPos4dMESA (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-GLAPI void APIENTRY glWindowPos4dvMESA (const GLdouble *v);
-GLAPI void APIENTRY glWindowPos4fMESA (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-GLAPI void APIENTRY glWindowPos4fvMESA (const GLfloat *v);
-GLAPI void APIENTRY glWindowPos4iMESA (GLint x, GLint y, GLint z, GLint w);
-GLAPI void APIENTRY glWindowPos4ivMESA (const GLint *v);
-GLAPI void APIENTRY glWindowPos4sMESA (GLshort x, GLshort y, GLshort z, GLshort w);
-GLAPI void APIENTRY glWindowPos4svMESA (const GLshort *v);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLWINDOWPOS2DMESAPROC) (GLdouble x, GLdouble y);
-typedef void (APIENTRYP PFNGLWINDOWPOS2DVMESAPROC) (const GLdouble *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS2FMESAPROC) (GLfloat x, GLfloat y);
-typedef void (APIENTRYP PFNGLWINDOWPOS2FVMESAPROC) (const GLfloat *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS2IMESAPROC) (GLint x, GLint y);
-typedef void (APIENTRYP PFNGLWINDOWPOS2IVMESAPROC) (const GLint *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS2SMESAPROC) (GLshort x, GLshort y);
-typedef void (APIENTRYP PFNGLWINDOWPOS2SVMESAPROC) (const GLshort *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS3DMESAPROC) (GLdouble x, GLdouble y, GLdouble z);
-typedef void (APIENTRYP PFNGLWINDOWPOS3DVMESAPROC) (const GLdouble *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS3FMESAPROC) (GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLWINDOWPOS3FVMESAPROC) (const GLfloat *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS3IMESAPROC) (GLint x, GLint y, GLint z);
-typedef void (APIENTRYP PFNGLWINDOWPOS3IVMESAPROC) (const GLint *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS3SMESAPROC) (GLshort x, GLshort y, GLshort z);
-typedef void (APIENTRYP PFNGLWINDOWPOS3SVMESAPROC) (const GLshort *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS4DMESAPROC) (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-typedef void (APIENTRYP PFNGLWINDOWPOS4DVMESAPROC) (const GLdouble *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS4FMESAPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-typedef void (APIENTRYP PFNGLWINDOWPOS4FVMESAPROC) (const GLfloat *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS4IMESAPROC) (GLint x, GLint y, GLint z, GLint w);
-typedef void (APIENTRYP PFNGLWINDOWPOS4IVMESAPROC) (const GLint *v);
-typedef void (APIENTRYP PFNGLWINDOWPOS4SMESAPROC) (GLshort x, GLshort y, GLshort z, GLshort w);
-typedef void (APIENTRYP PFNGLWINDOWPOS4SVMESAPROC) (const GLshort *v);
-#endif
-
-#ifndef GL_IBM_cull_vertex
-#define GL_IBM_cull_vertex 1
-#endif
-
-#ifndef GL_IBM_multimode_draw_arrays
-#define GL_IBM_multimode_draw_arrays 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glMultiModeDrawArraysIBM (const GLenum *mode, const GLint *first, const GLsizei *count, GLsizei primcount, GLint modestride);
-GLAPI void APIENTRY glMultiModeDrawElementsIBM (const GLenum *mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei primcount, GLint modestride);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLMULTIMODEDRAWARRAYSIBMPROC) (const GLenum *mode, const GLint *first, const GLsizei *count, GLsizei primcount, GLint modestride);
-typedef void (APIENTRYP PFNGLMULTIMODEDRAWELEMENTSIBMPROC) (const GLenum *mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei primcount, GLint modestride);
-#endif
-
-#ifndef GL_IBM_vertex_array_lists
-#define GL_IBM_vertex_array_lists 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glColorPointerListIBM (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
-GLAPI void APIENTRY glSecondaryColorPointerListIBM (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
-GLAPI void APIENTRY glEdgeFlagPointerListIBM (GLint stride, const GLboolean* *pointer, GLint ptrstride);
-GLAPI void APIENTRY glFogCoordPointerListIBM (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
-GLAPI void APIENTRY glIndexPointerListIBM (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
-GLAPI void APIENTRY glNormalPointerListIBM (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
-GLAPI void APIENTRY glTexCoordPointerListIBM (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
-GLAPI void APIENTRY glVertexPointerListIBM (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
-typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
-typedef void (APIENTRYP PFNGLEDGEFLAGPOINTERLISTIBMPROC) (GLint stride, const GLboolean* *pointer, GLint ptrstride);
-typedef void (APIENTRYP PFNGLFOGCOORDPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
-typedef void (APIENTRYP PFNGLINDEXPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
-typedef void (APIENTRYP PFNGLNORMALPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
-typedef void (APIENTRYP PFNGLTEXCOORDPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
-typedef void (APIENTRYP PFNGLVERTEXPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride);
-#endif
-
-#ifndef GL_SGIX_subsample
-#define GL_SGIX_subsample 1
-#endif
-
-#ifndef GL_SGIX_ycrcba
-#define GL_SGIX_ycrcba 1
-#endif
-
-#ifndef GL_SGIX_ycrcb_subsample
-#define GL_SGIX_ycrcb_subsample 1
-#endif
-
-#ifndef GL_SGIX_depth_pass_instrument
-#define GL_SGIX_depth_pass_instrument 1
-#endif
-
-#ifndef GL_3DFX_texture_compression_FXT1
-#define GL_3DFX_texture_compression_FXT1 1
-#endif
-
-#ifndef GL_3DFX_multisample
-#define GL_3DFX_multisample 1
-#endif
-
-#ifndef GL_3DFX_tbuffer
-#define GL_3DFX_tbuffer 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glTbufferMask3DFX (GLuint mask);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLTBUFFERMASK3DFXPROC) (GLuint mask);
-#endif
-
-#ifndef GL_EXT_multisample
-#define GL_EXT_multisample 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glSampleMaskEXT (GLclampf value, GLboolean invert);
-GLAPI void APIENTRY glSamplePatternEXT (GLenum pattern);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLSAMPLEMASKEXTPROC) (GLclampf value, GLboolean invert);
-typedef void (APIENTRYP PFNGLSAMPLEPATTERNEXTPROC) (GLenum pattern);
-#endif
-
-#ifndef GL_SGIX_vertex_preclip
-#define GL_SGIX_vertex_preclip 1
-#endif
-
-#ifndef GL_SGIX_convolution_accuracy
-#define GL_SGIX_convolution_accuracy 1
-#endif
-
-#ifndef GL_SGIX_resample
-#define GL_SGIX_resample 1
-#endif
-
-#ifndef GL_SGIS_point_line_texgen
-#define GL_SGIS_point_line_texgen 1
-#endif
-
-#ifndef GL_SGIS_texture_color_mask
-#define GL_SGIS_texture_color_mask 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glTextureColorMaskSGIS (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLTEXTURECOLORMASKSGISPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
-#endif
-
-#ifndef GL_SGIX_igloo_interface
-#define GL_SGIX_igloo_interface 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glIglooInterfaceSGIX (GLenum pname, const GLvoid *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLIGLOOINTERFACESGIXPROC) (GLenum pname, const GLvoid *params);
-#endif
-
-#ifndef GL_EXT_texture_env_dot3
-#define GL_EXT_texture_env_dot3 1
-#endif
-
-#ifndef GL_ATI_texture_mirror_once
-#define GL_ATI_texture_mirror_once 1
-#endif
-
-#ifndef GL_NV_fence
-#define GL_NV_fence 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glDeleteFencesNV (GLsizei n, const GLuint *fences);
-GLAPI void APIENTRY glGenFencesNV (GLsizei n, GLuint *fences);
-GLAPI GLboolean APIENTRY glIsFenceNV (GLuint fence);
-GLAPI GLboolean APIENTRY glTestFenceNV (GLuint fence);
-GLAPI void APIENTRY glGetFenceivNV (GLuint fence, GLenum pname, GLint *params);
-GLAPI void APIENTRY glFinishFenceNV (GLuint fence);
-GLAPI void APIENTRY glSetFenceNV (GLuint fence, GLenum condition);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences);
-typedef void (APIENTRYP PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences);
-typedef GLboolean (APIENTRYP PFNGLISFENCENVPROC) (GLuint fence);
-typedef GLboolean (APIENTRYP PFNGLTESTFENCENVPROC) (GLuint fence);
-typedef void (APIENTRYP PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLFINISHFENCENVPROC) (GLuint fence);
-typedef void (APIENTRYP PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition);
-#endif
-
-#ifndef GL_NV_evaluators
-#define GL_NV_evaluators 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glMapControlPointsNV (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const GLvoid *points);
-GLAPI void APIENTRY glMapParameterivNV (GLenum target, GLenum pname, const GLint *params);
-GLAPI void APIENTRY glMapParameterfvNV (GLenum target, GLenum pname, const GLfloat *params);
-GLAPI void APIENTRY glGetMapControlPointsNV (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, GLvoid *points);
-GLAPI void APIENTRY glGetMapParameterivNV (GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetMapParameterfvNV (GLenum target, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetMapAttribParameterivNV (GLenum target, GLuint index, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetMapAttribParameterfvNV (GLenum target, GLuint index, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glEvalMapsNV (GLenum target, GLenum mode);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const GLvoid *points);
-typedef void (APIENTRYP PFNGLMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, const GLint *params);
-typedef void (APIENTRYP PFNGLMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, const GLfloat *params);
-typedef void (APIENTRYP PFNGLGETMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, GLvoid *points);
-typedef void (APIENTRYP PFNGLGETMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETMAPATTRIBPARAMETERIVNVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETMAPATTRIBPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLEVALMAPSNVPROC) (GLenum target, GLenum mode);
-#endif
-
-#ifndef GL_NV_packed_depth_stencil
-#define GL_NV_packed_depth_stencil 1
-#endif
-
-#ifndef GL_NV_register_combiners2
-#define GL_NV_register_combiners2 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glCombinerStageParameterfvNV (GLenum stage, GLenum pname, const GLfloat *params);
-GLAPI void APIENTRY glGetCombinerStageParameterfvNV (GLenum stage, GLenum pname, GLfloat *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, const GLfloat *params);
-typedef void (APIENTRYP PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, GLfloat *params);
-#endif
-
-#ifndef GL_NV_texture_compression_vtc
-#define GL_NV_texture_compression_vtc 1
-#endif
-
-#ifndef GL_NV_texture_rectangle
-#define GL_NV_texture_rectangle 1
-#endif
-
-#ifndef GL_NV_texture_shader
-#define GL_NV_texture_shader 1
-#endif
-
-#ifndef GL_NV_texture_shader2
-#define GL_NV_texture_shader2 1
-#endif
-
-#ifndef GL_NV_vertex_array_range2
-#define GL_NV_vertex_array_range2 1
-#endif
-
-#ifndef GL_NV_vertex_program
-#define GL_NV_vertex_program 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI GLboolean APIENTRY glAreProgramsResidentNV (GLsizei n, const GLuint *programs, GLboolean *residences);
-GLAPI void APIENTRY glBindProgramNV (GLenum target, GLuint id);
-GLAPI void APIENTRY glDeleteProgramsNV (GLsizei n, const GLuint *programs);
-GLAPI void APIENTRY glExecuteProgramNV (GLenum target, GLuint id, const GLfloat *params);
-GLAPI void APIENTRY glGenProgramsNV (GLsizei n, GLuint *programs);
-GLAPI void APIENTRY glGetProgramParameterdvNV (GLenum target, GLuint index, GLenum pname, GLdouble *params);
-GLAPI void APIENTRY glGetProgramParameterfvNV (GLenum target, GLuint index, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetProgramivNV (GLuint id, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetProgramStringNV (GLuint id, GLenum pname, GLubyte *program);
-GLAPI void APIENTRY glGetTrackMatrixivNV (GLenum target, GLuint address, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetVertexAttribdvNV (GLuint index, GLenum pname, GLdouble *params);
-GLAPI void APIENTRY glGetVertexAttribfvNV (GLuint index, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetVertexAttribivNV (GLuint index, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetVertexAttribPointervNV (GLuint index, GLenum pname, GLvoid* *pointer);
-GLAPI GLboolean APIENTRY glIsProgramNV (GLuint id);
-GLAPI void APIENTRY glLoadProgramNV (GLenum target, GLuint id, GLsizei len, const GLubyte *program);
-GLAPI void APIENTRY glProgramParameter4dNV (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-GLAPI void APIENTRY glProgramParameter4dvNV (GLenum target, GLuint index, const GLdouble *v);
-GLAPI void APIENTRY glProgramParameter4fNV (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-GLAPI void APIENTRY glProgramParameter4fvNV (GLenum target, GLuint index, const GLfloat *v);
-GLAPI void APIENTRY glProgramParameters4dvNV (GLenum target, GLuint index, GLsizei count, const GLdouble *v);
-GLAPI void APIENTRY glProgramParameters4fvNV (GLenum target, GLuint index, GLsizei count, const GLfloat *v);
-GLAPI void APIENTRY glRequestResidentProgramsNV (GLsizei n, const GLuint *programs);
-GLAPI void APIENTRY glTrackMatrixNV (GLenum target, GLuint address, GLenum matrix, GLenum transform);
-GLAPI void APIENTRY glVertexAttribPointerNV (GLuint index, GLint fsize, GLenum type, GLsizei stride, const GLvoid *pointer);
-GLAPI void APIENTRY glVertexAttrib1dNV (GLuint index, GLdouble x);
-GLAPI void APIENTRY glVertexAttrib1dvNV (GLuint index, const GLdouble *v);
-GLAPI void APIENTRY glVertexAttrib1fNV (GLuint index, GLfloat x);
-GLAPI void APIENTRY glVertexAttrib1fvNV (GLuint index, const GLfloat *v);
-GLAPI void APIENTRY glVertexAttrib1sNV (GLuint index, GLshort x);
-GLAPI void APIENTRY glVertexAttrib1svNV (GLuint index, const GLshort *v);
-GLAPI void APIENTRY glVertexAttrib2dNV (GLuint index, GLdouble x, GLdouble y);
-GLAPI void APIENTRY glVertexAttrib2dvNV (GLuint index, const GLdouble *v);
-GLAPI void APIENTRY glVertexAttrib2fNV (GLuint index, GLfloat x, GLfloat y);
-GLAPI void APIENTRY glVertexAttrib2fvNV (GLuint index, const GLfloat *v);
-GLAPI void APIENTRY glVertexAttrib2sNV (GLuint index, GLshort x, GLshort y);
-GLAPI void APIENTRY glVertexAttrib2svNV (GLuint index, const GLshort *v);
-GLAPI void APIENTRY glVertexAttrib3dNV (GLuint index, GLdouble x, GLdouble y, GLdouble z);
-GLAPI void APIENTRY glVertexAttrib3dvNV (GLuint index, const GLdouble *v);
-GLAPI void APIENTRY glVertexAttrib3fNV (GLuint index, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glVertexAttrib3fvNV (GLuint index, const GLfloat *v);
-GLAPI void APIENTRY glVertexAttrib3sNV (GLuint index, GLshort x, GLshort y, GLshort z);
-GLAPI void APIENTRY glVertexAttrib3svNV (GLuint index, const GLshort *v);
-GLAPI void APIENTRY glVertexAttrib4dNV (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-GLAPI void APIENTRY glVertexAttrib4dvNV (GLuint index, const GLdouble *v);
-GLAPI void APIENTRY glVertexAttrib4fNV (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-GLAPI void APIENTRY glVertexAttrib4fvNV (GLuint index, const GLfloat *v);
-GLAPI void APIENTRY glVertexAttrib4sNV (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
-GLAPI void APIENTRY glVertexAttrib4svNV (GLuint index, const GLshort *v);
-GLAPI void APIENTRY glVertexAttrib4ubNV (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
-GLAPI void APIENTRY glVertexAttrib4ubvNV (GLuint index, const GLubyte *v);
-GLAPI void APIENTRY glVertexAttribs1dvNV (GLuint index, GLsizei count, const GLdouble *v);
-GLAPI void APIENTRY glVertexAttribs1fvNV (GLuint index, GLsizei count, const GLfloat *v);
-GLAPI void APIENTRY glVertexAttribs1svNV (GLuint index, GLsizei count, const GLshort *v);
-GLAPI void APIENTRY glVertexAttribs2dvNV (GLuint index, GLsizei count, const GLdouble *v);
-GLAPI void APIENTRY glVertexAttribs2fvNV (GLuint index, GLsizei count, const GLfloat *v);
-GLAPI void APIENTRY glVertexAttribs2svNV (GLuint index, GLsizei count, const GLshort *v);
-GLAPI void APIENTRY glVertexAttribs3dvNV (GLuint index, GLsizei count, const GLdouble *v);
-GLAPI void APIENTRY glVertexAttribs3fvNV (GLuint index, GLsizei count, const GLfloat *v);
-GLAPI void APIENTRY glVertexAttribs3svNV (GLuint index, GLsizei count, const GLshort *v);
-GLAPI void APIENTRY glVertexAttribs4dvNV (GLuint index, GLsizei count, const GLdouble *v);
-GLAPI void APIENTRY glVertexAttribs4fvNV (GLuint index, GLsizei count, const GLfloat *v);
-GLAPI void APIENTRY glVertexAttribs4svNV (GLuint index, GLsizei count, const GLshort *v);
-GLAPI void APIENTRY glVertexAttribs4ubvNV (GLuint index, GLsizei count, const GLubyte *v);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef GLboolean (APIENTRYP PFNGLAREPROGRAMSRESIDENTNVPROC) (GLsizei n, const GLuint *programs, GLboolean *residences);
-typedef void (APIENTRYP PFNGLBINDPROGRAMNVPROC) (GLenum target, GLuint id);
-typedef void (APIENTRYP PFNGLDELETEPROGRAMSNVPROC) (GLsizei n, const GLuint *programs);
-typedef void (APIENTRYP PFNGLEXECUTEPROGRAMNVPROC) (GLenum target, GLuint id, const GLfloat *params);
-typedef void (APIENTRYP PFNGLGENPROGRAMSNVPROC) (GLsizei n, GLuint *programs);
-typedef void (APIENTRYP PFNGLGETPROGRAMPARAMETERDVNVPROC) (GLenum target, GLuint index, GLenum pname, GLdouble *params);
-typedef void (APIENTRYP PFNGLGETPROGRAMPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETPROGRAMIVNVPROC) (GLuint id, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETPROGRAMSTRINGNVPROC) (GLuint id, GLenum pname, GLubyte *program);
-typedef void (APIENTRYP PFNGLGETTRACKMATRIXIVNVPROC) (GLenum target, GLuint address, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVNVPROC) (GLuint index, GLenum pname, GLdouble *params);
-typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVNVPROC) (GLuint index, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVNVPROC) (GLuint index, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVNVPROC) (GLuint index, GLenum pname, GLvoid* *pointer);
-typedef GLboolean (APIENTRYP PFNGLISPROGRAMNVPROC) (GLuint id);
-typedef void (APIENTRYP PFNGLLOADPROGRAMNVPROC) (GLenum target, GLuint id, GLsizei len, const GLubyte *program);
-typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4DNVPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4DVNVPROC) (GLenum target, GLuint index, const GLdouble *v);
-typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4FNVPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4FVNVPROC) (GLenum target, GLuint index, const GLfloat *v);
-typedef void (APIENTRYP PFNGLPROGRAMPARAMETERS4DVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLdouble *v);
-typedef void (APIENTRYP PFNGLPROGRAMPARAMETERS4FVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat *v);
-typedef void (APIENTRYP PFNGLREQUESTRESIDENTPROGRAMSNVPROC) (GLsizei n, const GLuint *programs);
-typedef void (APIENTRYP PFNGLTRACKMATRIXNVPROC) (GLenum target, GLuint address, GLenum matrix, GLenum transform);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERNVPROC) (GLuint index, GLint fsize, GLenum type, GLsizei stride, const GLvoid *pointer);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB1DNVPROC) (GLuint index, GLdouble x);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVNVPROC) (GLuint index, const GLdouble *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB1FNVPROC) (GLuint index, GLfloat x);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVNVPROC) (GLuint index, const GLfloat *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB1SNVPROC) (GLuint index, GLshort x);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVNVPROC) (GLuint index, const GLshort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB2DNVPROC) (GLuint index, GLdouble x, GLdouble y);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVNVPROC) (GLuint index, const GLdouble *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB2FNVPROC) (GLuint index, GLfloat x, GLfloat y);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVNVPROC) (GLuint index, const GLfloat *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB2SNVPROC) (GLuint index, GLshort x, GLshort y);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVNVPROC) (GLuint index, const GLshort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB3DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVNVPROC) (GLuint index, const GLdouble *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB3FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVNVPROC) (GLuint index, const GLfloat *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB3SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVNVPROC) (GLuint index, const GLshort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVNVPROC) (GLuint index, const GLdouble *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVNVPROC) (GLuint index, const GLfloat *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVNVPROC) (GLuint index, const GLshort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBNVPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVNVPROC) (GLuint index, const GLubyte *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBS1DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBS1FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBS1SVNVPROC) (GLuint index, GLsizei count, const GLshort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBS2DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBS2FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBS2SVNVPROC) (GLuint index, GLsizei count, const GLshort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBS3DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBS3FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBS3SVNVPROC) (GLuint index, GLsizei count, const GLshort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBS4DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBS4FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBS4SVNVPROC) (GLuint index, GLsizei count, const GLshort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBS4UBVNVPROC) (GLuint index, GLsizei count, const GLubyte *v);
-#endif
-
-#ifndef GL_SGIX_texture_coordinate_clamp
-#define GL_SGIX_texture_coordinate_clamp 1
-#endif
-
-#ifndef GL_SGIX_scalebias_hint
-#define GL_SGIX_scalebias_hint 1
-#endif
-
-#ifndef GL_OML_interlace
-#define GL_OML_interlace 1
-#endif
-
-#ifndef GL_OML_subsample
-#define GL_OML_subsample 1
-#endif
-
-#ifndef GL_OML_resample
-#define GL_OML_resample 1
-#endif
-
-#ifndef GL_NV_copy_depth_to_color
-#define GL_NV_copy_depth_to_color 1
-#endif
-
-#ifndef GL_ATI_envmap_bumpmap
-#define GL_ATI_envmap_bumpmap 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glTexBumpParameterivATI (GLenum pname, const GLint *param);
-GLAPI void APIENTRY glTexBumpParameterfvATI (GLenum pname, const GLfloat *param);
-GLAPI void APIENTRY glGetTexBumpParameterivATI (GLenum pname, GLint *param);
-GLAPI void APIENTRY glGetTexBumpParameterfvATI (GLenum pname, GLfloat *param);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLTEXBUMPPARAMETERIVATIPROC) (GLenum pname, const GLint *param);
-typedef void (APIENTRYP PFNGLTEXBUMPPARAMETERFVATIPROC) (GLenum pname, const GLfloat *param);
-typedef void (APIENTRYP PFNGLGETTEXBUMPPARAMETERIVATIPROC) (GLenum pname, GLint *param);
-typedef void (APIENTRYP PFNGLGETTEXBUMPPARAMETERFVATIPROC) (GLenum pname, GLfloat *param);
-#endif
-
-#ifndef GL_ATI_fragment_shader
-#define GL_ATI_fragment_shader 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI GLuint APIENTRY glGenFragmentShadersATI (GLuint range);
-GLAPI void APIENTRY glBindFragmentShaderATI (GLuint id);
-GLAPI void APIENTRY glDeleteFragmentShaderATI (GLuint id);
-GLAPI void APIENTRY glBeginFragmentShaderATI (void);
-GLAPI void APIENTRY glEndFragmentShaderATI (void);
-GLAPI void APIENTRY glPassTexCoordATI (GLuint dst, GLuint coord, GLenum swizzle);
-GLAPI void APIENTRY glSampleMapATI (GLuint dst, GLuint interp, GLenum swizzle);
-GLAPI void APIENTRY glColorFragmentOp1ATI (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
-GLAPI void APIENTRY glColorFragmentOp2ATI (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
-GLAPI void APIENTRY glColorFragmentOp3ATI (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
-GLAPI void APIENTRY glAlphaFragmentOp1ATI (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
-GLAPI void APIENTRY glAlphaFragmentOp2ATI (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
-GLAPI void APIENTRY glAlphaFragmentOp3ATI (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
-GLAPI void APIENTRY glSetFragmentShaderConstantATI (GLuint dst, const GLfloat *value);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef GLuint (APIENTRYP PFNGLGENFRAGMENTSHADERSATIPROC) (GLuint range);
-typedef void (APIENTRYP PFNGLBINDFRAGMENTSHADERATIPROC) (GLuint id);
-typedef void (APIENTRYP PFNGLDELETEFRAGMENTSHADERATIPROC) (GLuint id);
-typedef void (APIENTRYP PFNGLBEGINFRAGMENTSHADERATIPROC) (void);
-typedef void (APIENTRYP PFNGLENDFRAGMENTSHADERATIPROC) (void);
-typedef void (APIENTRYP PFNGLPASSTEXCOORDATIPROC) (GLuint dst, GLuint coord, GLenum swizzle);
-typedef void (APIENTRYP PFNGLSAMPLEMAPATIPROC) (GLuint dst, GLuint interp, GLenum swizzle);
-typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
-typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
-typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP3ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
-typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
-typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
-typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP3ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
-typedef void (APIENTRYP PFNGLSETFRAGMENTSHADERCONSTANTATIPROC) (GLuint dst, const GLfloat *value);
-#endif
-
-#ifndef GL_ATI_pn_triangles
-#define GL_ATI_pn_triangles 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glPNTrianglesiATI (GLenum pname, GLint param);
-GLAPI void APIENTRY glPNTrianglesfATI (GLenum pname, GLfloat param);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLPNTRIANGLESIATIPROC) (GLenum pname, GLint param);
-typedef void (APIENTRYP PFNGLPNTRIANGLESFATIPROC) (GLenum pname, GLfloat param);
-#endif
-
-#ifndef GL_ATI_vertex_array_object
-#define GL_ATI_vertex_array_object 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI GLuint APIENTRY glNewObjectBufferATI (GLsizei size, const GLvoid *pointer, GLenum usage);
-GLAPI GLboolean APIENTRY glIsObjectBufferATI (GLuint buffer);
-GLAPI void APIENTRY glUpdateObjectBufferATI (GLuint buffer, GLuint offset, GLsizei size, const GLvoid *pointer, GLenum preserve);
-GLAPI void APIENTRY glGetObjectBufferfvATI (GLuint buffer, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetObjectBufferivATI (GLuint buffer, GLenum pname, GLint *params);
-GLAPI void APIENTRY glFreeObjectBufferATI (GLuint buffer);
-GLAPI void APIENTRY glArrayObjectATI (GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset);
-GLAPI void APIENTRY glGetArrayObjectfvATI (GLenum array, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetArrayObjectivATI (GLenum array, GLenum pname, GLint *params);
-GLAPI void APIENTRY glVariantArrayObjectATI (GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset);
-GLAPI void APIENTRY glGetVariantArrayObjectfvATI (GLuint id, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetVariantArrayObjectivATI (GLuint id, GLenum pname, GLint *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef GLuint (APIENTRYP PFNGLNEWOBJECTBUFFERATIPROC) (GLsizei size, const GLvoid *pointer, GLenum usage);
-typedef GLboolean (APIENTRYP PFNGLISOBJECTBUFFERATIPROC) (GLuint buffer);
-typedef void (APIENTRYP PFNGLUPDATEOBJECTBUFFERATIPROC) (GLuint buffer, GLuint offset, GLsizei size, const GLvoid *pointer, GLenum preserve);
-typedef void (APIENTRYP PFNGLGETOBJECTBUFFERFVATIPROC) (GLuint buffer, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETOBJECTBUFFERIVATIPROC) (GLuint buffer, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLFREEOBJECTBUFFERATIPROC) (GLuint buffer);
-typedef void (APIENTRYP PFNGLARRAYOBJECTATIPROC) (GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset);
-typedef void (APIENTRYP PFNGLGETARRAYOBJECTFVATIPROC) (GLenum array, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETARRAYOBJECTIVATIPROC) (GLenum array, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLVARIANTARRAYOBJECTATIPROC) (GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset);
-typedef void (APIENTRYP PFNGLGETVARIANTARRAYOBJECTFVATIPROC) (GLuint id, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETVARIANTARRAYOBJECTIVATIPROC) (GLuint id, GLenum pname, GLint *params);
-#endif
-
-#ifndef GL_EXT_vertex_shader
-#define GL_EXT_vertex_shader 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBeginVertexShaderEXT (void);
-GLAPI void APIENTRY glEndVertexShaderEXT (void);
-GLAPI void APIENTRY glBindVertexShaderEXT (GLuint id);
-GLAPI GLuint APIENTRY glGenVertexShadersEXT (GLuint range);
-GLAPI void APIENTRY glDeleteVertexShaderEXT (GLuint id);
-GLAPI void APIENTRY glShaderOp1EXT (GLenum op, GLuint res, GLuint arg1);
-GLAPI void APIENTRY glShaderOp2EXT (GLenum op, GLuint res, GLuint arg1, GLuint arg2);
-GLAPI void APIENTRY glShaderOp3EXT (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3);
-GLAPI void APIENTRY glSwizzleEXT (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW);
-GLAPI void APIENTRY glWriteMaskEXT (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW);
-GLAPI void APIENTRY glInsertComponentEXT (GLuint res, GLuint src, GLuint num);
-GLAPI void APIENTRY glExtractComponentEXT (GLuint res, GLuint src, GLuint num);
-GLAPI GLuint APIENTRY glGenSymbolsEXT (GLenum datatype, GLenum storagetype, GLenum range, GLuint components);
-GLAPI void APIENTRY glSetInvariantEXT (GLuint id, GLenum type, const GLvoid *addr);
-GLAPI void APIENTRY glSetLocalConstantEXT (GLuint id, GLenum type, const GLvoid *addr);
-GLAPI void APIENTRY glVariantbvEXT (GLuint id, const GLbyte *addr);
-GLAPI void APIENTRY glVariantsvEXT (GLuint id, const GLshort *addr);
-GLAPI void APIENTRY glVariantivEXT (GLuint id, const GLint *addr);
-GLAPI void APIENTRY glVariantfvEXT (GLuint id, const GLfloat *addr);
-GLAPI void APIENTRY glVariantdvEXT (GLuint id, const GLdouble *addr);
-GLAPI void APIENTRY glVariantubvEXT (GLuint id, const GLubyte *addr);
-GLAPI void APIENTRY glVariantusvEXT (GLuint id, const GLushort *addr);
-GLAPI void APIENTRY glVariantuivEXT (GLuint id, const GLuint *addr);
-GLAPI void APIENTRY glVariantPointerEXT (GLuint id, GLenum type, GLuint stride, const GLvoid *addr);
-GLAPI void APIENTRY glEnableVariantClientStateEXT (GLuint id);
-GLAPI void APIENTRY glDisableVariantClientStateEXT (GLuint id);
-GLAPI GLuint APIENTRY glBindLightParameterEXT (GLenum light, GLenum value);
-GLAPI GLuint APIENTRY glBindMaterialParameterEXT (GLenum face, GLenum value);
-GLAPI GLuint APIENTRY glBindTexGenParameterEXT (GLenum unit, GLenum coord, GLenum value);
-GLAPI GLuint APIENTRY glBindTextureUnitParameterEXT (GLenum unit, GLenum value);
-GLAPI GLuint APIENTRY glBindParameterEXT (GLenum value);
-GLAPI GLboolean APIENTRY glIsVariantEnabledEXT (GLuint id, GLenum cap);
-GLAPI void APIENTRY glGetVariantBooleanvEXT (GLuint id, GLenum value, GLboolean *data);
-GLAPI void APIENTRY glGetVariantIntegervEXT (GLuint id, GLenum value, GLint *data);
-GLAPI void APIENTRY glGetVariantFloatvEXT (GLuint id, GLenum value, GLfloat *data);
-GLAPI void APIENTRY glGetVariantPointervEXT (GLuint id, GLenum value, GLvoid* *data);
-GLAPI void APIENTRY glGetInvariantBooleanvEXT (GLuint id, GLenum value, GLboolean *data);
-GLAPI void APIENTRY glGetInvariantIntegervEXT (GLuint id, GLenum value, GLint *data);
-GLAPI void APIENTRY glGetInvariantFloatvEXT (GLuint id, GLenum value, GLfloat *data);
-GLAPI void APIENTRY glGetLocalConstantBooleanvEXT (GLuint id, GLenum value, GLboolean *data);
-GLAPI void APIENTRY glGetLocalConstantIntegervEXT (GLuint id, GLenum value, GLint *data);
-GLAPI void APIENTRY glGetLocalConstantFloatvEXT (GLuint id, GLenum value, GLfloat *data);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBEGINVERTEXSHADEREXTPROC) (void);
-typedef void (APIENTRYP PFNGLENDVERTEXSHADEREXTPROC) (void);
-typedef void (APIENTRYP PFNGLBINDVERTEXSHADEREXTPROC) (GLuint id);
-typedef GLuint (APIENTRYP PFNGLGENVERTEXSHADERSEXTPROC) (GLuint range);
-typedef void (APIENTRYP PFNGLDELETEVERTEXSHADEREXTPROC) (GLuint id);
-typedef void (APIENTRYP PFNGLSHADEROP1EXTPROC) (GLenum op, GLuint res, GLuint arg1);
-typedef void (APIENTRYP PFNGLSHADEROP2EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2);
-typedef void (APIENTRYP PFNGLSHADEROP3EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3);
-typedef void (APIENTRYP PFNGLSWIZZLEEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW);
-typedef void (APIENTRYP PFNGLWRITEMASKEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW);
-typedef void (APIENTRYP PFNGLINSERTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num);
-typedef void (APIENTRYP PFNGLEXTRACTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num);
-typedef GLuint (APIENTRYP PFNGLGENSYMBOLSEXTPROC) (GLenum datatype, GLenum storagetype, GLenum range, GLuint components);
-typedef void (APIENTRYP PFNGLSETINVARIANTEXTPROC) (GLuint id, GLenum type, const GLvoid *addr);
-typedef void (APIENTRYP PFNGLSETLOCALCONSTANTEXTPROC) (GLuint id, GLenum type, const GLvoid *addr);
-typedef void (APIENTRYP PFNGLVARIANTBVEXTPROC) (GLuint id, const GLbyte *addr);
-typedef void (APIENTRYP PFNGLVARIANTSVEXTPROC) (GLuint id, const GLshort *addr);
-typedef void (APIENTRYP PFNGLVARIANTIVEXTPROC) (GLuint id, const GLint *addr);
-typedef void (APIENTRYP PFNGLVARIANTFVEXTPROC) (GLuint id, const GLfloat *addr);
-typedef void (APIENTRYP PFNGLVARIANTDVEXTPROC) (GLuint id, const GLdouble *addr);
-typedef void (APIENTRYP PFNGLVARIANTUBVEXTPROC) (GLuint id, const GLubyte *addr);
-typedef void (APIENTRYP PFNGLVARIANTUSVEXTPROC) (GLuint id, const GLushort *addr);
-typedef void (APIENTRYP PFNGLVARIANTUIVEXTPROC) (GLuint id, const GLuint *addr);
-typedef void (APIENTRYP PFNGLVARIANTPOINTEREXTPROC) (GLuint id, GLenum type, GLuint stride, const GLvoid *addr);
-typedef void (APIENTRYP PFNGLENABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id);
-typedef void (APIENTRYP PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id);
-typedef GLuint (APIENTRYP PFNGLBINDLIGHTPARAMETEREXTPROC) (GLenum light, GLenum value);
-typedef GLuint (APIENTRYP PFNGLBINDMATERIALPARAMETEREXTPROC) (GLenum face, GLenum value);
-typedef GLuint (APIENTRYP PFNGLBINDTEXGENPARAMETEREXTPROC) (GLenum unit, GLenum coord, GLenum value);
-typedef GLuint (APIENTRYP PFNGLBINDTEXTUREUNITPARAMETEREXTPROC) (GLenum unit, GLenum value);
-typedef GLuint (APIENTRYP PFNGLBINDPARAMETEREXTPROC) (GLenum value);
-typedef GLboolean (APIENTRYP PFNGLISVARIANTENABLEDEXTPROC) (GLuint id, GLenum cap);
-typedef void (APIENTRYP PFNGLGETVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data);
-typedef void (APIENTRYP PFNGLGETVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data);
-typedef void (APIENTRYP PFNGLGETVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data);
-typedef void (APIENTRYP PFNGLGETVARIANTPOINTERVEXTPROC) (GLuint id, GLenum value, GLvoid* *data);
-typedef void (APIENTRYP PFNGLGETINVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data);
-typedef void (APIENTRYP PFNGLGETINVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data);
-typedef void (APIENTRYP PFNGLGETINVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data);
-typedef void (APIENTRYP PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data);
-typedef void (APIENTRYP PFNGLGETLOCALCONSTANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data);
-typedef void (APIENTRYP PFNGLGETLOCALCONSTANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data);
-#endif
-
-#ifndef GL_ATI_vertex_streams
-#define GL_ATI_vertex_streams 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glVertexStream1sATI (GLenum stream, GLshort x);
-GLAPI void APIENTRY glVertexStream1svATI (GLenum stream, const GLshort *coords);
-GLAPI void APIENTRY glVertexStream1iATI (GLenum stream, GLint x);
-GLAPI void APIENTRY glVertexStream1ivATI (GLenum stream, const GLint *coords);
-GLAPI void APIENTRY glVertexStream1fATI (GLenum stream, GLfloat x);
-GLAPI void APIENTRY glVertexStream1fvATI (GLenum stream, const GLfloat *coords);
-GLAPI void APIENTRY glVertexStream1dATI (GLenum stream, GLdouble x);
-GLAPI void APIENTRY glVertexStream1dvATI (GLenum stream, const GLdouble *coords);
-GLAPI void APIENTRY glVertexStream2sATI (GLenum stream, GLshort x, GLshort y);
-GLAPI void APIENTRY glVertexStream2svATI (GLenum stream, const GLshort *coords);
-GLAPI void APIENTRY glVertexStream2iATI (GLenum stream, GLint x, GLint y);
-GLAPI void APIENTRY glVertexStream2ivATI (GLenum stream, const GLint *coords);
-GLAPI void APIENTRY glVertexStream2fATI (GLenum stream, GLfloat x, GLfloat y);
-GLAPI void APIENTRY glVertexStream2fvATI (GLenum stream, const GLfloat *coords);
-GLAPI void APIENTRY glVertexStream2dATI (GLenum stream, GLdouble x, GLdouble y);
-GLAPI void APIENTRY glVertexStream2dvATI (GLenum stream, const GLdouble *coords);
-GLAPI void APIENTRY glVertexStream3sATI (GLenum stream, GLshort x, GLshort y, GLshort z);
-GLAPI void APIENTRY glVertexStream3svATI (GLenum stream, const GLshort *coords);
-GLAPI void APIENTRY glVertexStream3iATI (GLenum stream, GLint x, GLint y, GLint z);
-GLAPI void APIENTRY glVertexStream3ivATI (GLenum stream, const GLint *coords);
-GLAPI void APIENTRY glVertexStream3fATI (GLenum stream, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glVertexStream3fvATI (GLenum stream, const GLfloat *coords);
-GLAPI void APIENTRY glVertexStream3dATI (GLenum stream, GLdouble x, GLdouble y, GLdouble z);
-GLAPI void APIENTRY glVertexStream3dvATI (GLenum stream, const GLdouble *coords);
-GLAPI void APIENTRY glVertexStream4sATI (GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w);
-GLAPI void APIENTRY glVertexStream4svATI (GLenum stream, const GLshort *coords);
-GLAPI void APIENTRY glVertexStream4iATI (GLenum stream, GLint x, GLint y, GLint z, GLint w);
-GLAPI void APIENTRY glVertexStream4ivATI (GLenum stream, const GLint *coords);
-GLAPI void APIENTRY glVertexStream4fATI (GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-GLAPI void APIENTRY glVertexStream4fvATI (GLenum stream, const GLfloat *coords);
-GLAPI void APIENTRY glVertexStream4dATI (GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-GLAPI void APIENTRY glVertexStream4dvATI (GLenum stream, const GLdouble *coords);
-GLAPI void APIENTRY glNormalStream3bATI (GLenum stream, GLbyte nx, GLbyte ny, GLbyte nz);
-GLAPI void APIENTRY glNormalStream3bvATI (GLenum stream, const GLbyte *coords);
-GLAPI void APIENTRY glNormalStream3sATI (GLenum stream, GLshort nx, GLshort ny, GLshort nz);
-GLAPI void APIENTRY glNormalStream3svATI (GLenum stream, const GLshort *coords);
-GLAPI void APIENTRY glNormalStream3iATI (GLenum stream, GLint nx, GLint ny, GLint nz);
-GLAPI void APIENTRY glNormalStream3ivATI (GLenum stream, const GLint *coords);
-GLAPI void APIENTRY glNormalStream3fATI (GLenum stream, GLfloat nx, GLfloat ny, GLfloat nz);
-GLAPI void APIENTRY glNormalStream3fvATI (GLenum stream, const GLfloat *coords);
-GLAPI void APIENTRY glNormalStream3dATI (GLenum stream, GLdouble nx, GLdouble ny, GLdouble nz);
-GLAPI void APIENTRY glNormalStream3dvATI (GLenum stream, const GLdouble *coords);
-GLAPI void APIENTRY glClientActiveVertexStreamATI (GLenum stream);
-GLAPI void APIENTRY glVertexBlendEnviATI (GLenum pname, GLint param);
-GLAPI void APIENTRY glVertexBlendEnvfATI (GLenum pname, GLfloat param);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLVERTEXSTREAM1SATIPROC) (GLenum stream, GLshort x);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM1SVATIPROC) (GLenum stream, const GLshort *coords);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM1IATIPROC) (GLenum stream, GLint x);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM1IVATIPROC) (GLenum stream, const GLint *coords);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM1FATIPROC) (GLenum stream, GLfloat x);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM1FVATIPROC) (GLenum stream, const GLfloat *coords);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM1DATIPROC) (GLenum stream, GLdouble x);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM1DVATIPROC) (GLenum stream, const GLdouble *coords);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM2SATIPROC) (GLenum stream, GLshort x, GLshort y);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM2SVATIPROC) (GLenum stream, const GLshort *coords);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM2IATIPROC) (GLenum stream, GLint x, GLint y);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM2IVATIPROC) (GLenum stream, const GLint *coords);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM2FATIPROC) (GLenum stream, GLfloat x, GLfloat y);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM2FVATIPROC) (GLenum stream, const GLfloat *coords);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM2DATIPROC) (GLenum stream, GLdouble x, GLdouble y);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM2DVATIPROC) (GLenum stream, const GLdouble *coords);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM3SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM3SVATIPROC) (GLenum stream, const GLshort *coords);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM3IATIPROC) (GLenum stream, GLint x, GLint y, GLint z);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM3IVATIPROC) (GLenum stream, const GLint *coords);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM3FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM3FVATIPROC) (GLenum stream, const GLfloat *coords);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM3DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM3DVATIPROC) (GLenum stream, const GLdouble *coords);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM4SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM4SVATIPROC) (GLenum stream, const GLshort *coords);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM4IATIPROC) (GLenum stream, GLint x, GLint y, GLint z, GLint w);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM4IVATIPROC) (GLenum stream, const GLint *coords);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM4FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM4FVATIPROC) (GLenum stream, const GLfloat *coords);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM4DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-typedef void (APIENTRYP PFNGLVERTEXSTREAM4DVATIPROC) (GLenum stream, const GLdouble *coords);
-typedef void (APIENTRYP PFNGLNORMALSTREAM3BATIPROC) (GLenum stream, GLbyte nx, GLbyte ny, GLbyte nz);
-typedef void (APIENTRYP PFNGLNORMALSTREAM3BVATIPROC) (GLenum stream, const GLbyte *coords);
-typedef void (APIENTRYP PFNGLNORMALSTREAM3SATIPROC) (GLenum stream, GLshort nx, GLshort ny, GLshort nz);
-typedef void (APIENTRYP PFNGLNORMALSTREAM3SVATIPROC) (GLenum stream, const GLshort *coords);
-typedef void (APIENTRYP PFNGLNORMALSTREAM3IATIPROC) (GLenum stream, GLint nx, GLint ny, GLint nz);
-typedef void (APIENTRYP PFNGLNORMALSTREAM3IVATIPROC) (GLenum stream, const GLint *coords);
-typedef void (APIENTRYP PFNGLNORMALSTREAM3FATIPROC) (GLenum stream, GLfloat nx, GLfloat ny, GLfloat nz);
-typedef void (APIENTRYP PFNGLNORMALSTREAM3FVATIPROC) (GLenum stream, const GLfloat *coords);
-typedef void (APIENTRYP PFNGLNORMALSTREAM3DATIPROC) (GLenum stream, GLdouble nx, GLdouble ny, GLdouble nz);
-typedef void (APIENTRYP PFNGLNORMALSTREAM3DVATIPROC) (GLenum stream, const GLdouble *coords);
-typedef void (APIENTRYP PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC) (GLenum stream);
-typedef void (APIENTRYP PFNGLVERTEXBLENDENVIATIPROC) (GLenum pname, GLint param);
-typedef void (APIENTRYP PFNGLVERTEXBLENDENVFATIPROC) (GLenum pname, GLfloat param);
-#endif
-
-#ifndef GL_ATI_element_array
-#define GL_ATI_element_array 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glElementPointerATI (GLenum type, const GLvoid *pointer);
-GLAPI void APIENTRY glDrawElementArrayATI (GLenum mode, GLsizei count);
-GLAPI void APIENTRY glDrawRangeElementArrayATI (GLenum mode, GLuint start, GLuint end, GLsizei count);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLELEMENTPOINTERATIPROC) (GLenum type, const GLvoid *pointer);
-typedef void (APIENTRYP PFNGLDRAWELEMENTARRAYATIPROC) (GLenum mode, GLsizei count);
-typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTARRAYATIPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count);
-#endif
-
-#ifndef GL_SUN_mesh_array
-#define GL_SUN_mesh_array 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glDrawMeshArraysSUN (GLenum mode, GLint first, GLsizei count, GLsizei width);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLDRAWMESHARRAYSSUNPROC) (GLenum mode, GLint first, GLsizei count, GLsizei width);
-#endif
-
-#ifndef GL_SUN_slice_accum
-#define GL_SUN_slice_accum 1
-#endif
-
-#ifndef GL_NV_multisample_filter_hint
-#define GL_NV_multisample_filter_hint 1
-#endif
-
-#ifndef GL_NV_depth_clamp
-#define GL_NV_depth_clamp 1
-#endif
-
-#ifndef GL_NV_occlusion_query
-#define GL_NV_occlusion_query 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glGenOcclusionQueriesNV (GLsizei n, GLuint *ids);
-GLAPI void APIENTRY glDeleteOcclusionQueriesNV (GLsizei n, const GLuint *ids);
-GLAPI GLboolean APIENTRY glIsOcclusionQueryNV (GLuint id);
-GLAPI void APIENTRY glBeginOcclusionQueryNV (GLuint id);
-GLAPI void APIENTRY glEndOcclusionQueryNV (void);
-GLAPI void APIENTRY glGetOcclusionQueryivNV (GLuint id, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetOcclusionQueryuivNV (GLuint id, GLenum pname, GLuint *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLGENOCCLUSIONQUERIESNVPROC) (GLsizei n, GLuint *ids);
-typedef void (APIENTRYP PFNGLDELETEOCCLUSIONQUERIESNVPROC) (GLsizei n, const GLuint *ids);
-typedef GLboolean (APIENTRYP PFNGLISOCCLUSIONQUERYNVPROC) (GLuint id);
-typedef void (APIENTRYP PFNGLBEGINOCCLUSIONQUERYNVPROC) (GLuint id);
-typedef void (APIENTRYP PFNGLENDOCCLUSIONQUERYNVPROC) (void);
-typedef void (APIENTRYP PFNGLGETOCCLUSIONQUERYIVNVPROC) (GLuint id, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETOCCLUSIONQUERYUIVNVPROC) (GLuint id, GLenum pname, GLuint *params);
-#endif
-
-#ifndef GL_NV_point_sprite
-#define GL_NV_point_sprite 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glPointParameteriNV (GLenum pname, GLint param);
-GLAPI void APIENTRY glPointParameterivNV (GLenum pname, const GLint *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLPOINTPARAMETERINVPROC) (GLenum pname, GLint param);
-typedef void (APIENTRYP PFNGLPOINTPARAMETERIVNVPROC) (GLenum pname, const GLint *params);
-#endif
-
-#ifndef GL_NV_texture_shader3
-#define GL_NV_texture_shader3 1
-#endif
-
-#ifndef GL_NV_vertex_program1_1
-#define GL_NV_vertex_program1_1 1
-#endif
-
-#ifndef GL_EXT_shadow_funcs
-#define GL_EXT_shadow_funcs 1
-#endif
-
-#ifndef GL_EXT_stencil_two_side
-#define GL_EXT_stencil_two_side 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glActiveStencilFaceEXT (GLenum face);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLACTIVESTENCILFACEEXTPROC) (GLenum face);
-#endif
-
-#ifndef GL_ATI_text_fragment_shader
-#define GL_ATI_text_fragment_shader 1
-#endif
-
-#ifndef GL_APPLE_client_storage
-#define GL_APPLE_client_storage 1
-#endif
-
-#ifndef GL_APPLE_element_array
-#define GL_APPLE_element_array 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glElementPointerAPPLE (GLenum type, const GLvoid *pointer);
-GLAPI void APIENTRY glDrawElementArrayAPPLE (GLenum mode, GLint first, GLsizei count);
-GLAPI void APIENTRY glDrawRangeElementArrayAPPLE (GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count);
-GLAPI void APIENTRY glMultiDrawElementArrayAPPLE (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
-GLAPI void APIENTRY glMultiDrawRangeElementArrayAPPLE (GLenum mode, GLuint start, GLuint end, const GLint *first, const GLsizei *count, GLsizei primcount);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLELEMENTPOINTERAPPLEPROC) (GLenum type, const GLvoid *pointer);
-typedef void (APIENTRYP PFNGLDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, GLint first, GLsizei count);
-typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count);
-typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
-typedef void (APIENTRYP PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, const GLint *first, const GLsizei *count, GLsizei primcount);
-#endif
-
-#ifndef GL_APPLE_fence
-#define GL_APPLE_fence 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glGenFencesAPPLE (GLsizei n, GLuint *fences);
-GLAPI void APIENTRY glDeleteFencesAPPLE (GLsizei n, const GLuint *fences);
-GLAPI void APIENTRY glSetFenceAPPLE (GLuint fence);
-GLAPI GLboolean APIENTRY glIsFenceAPPLE (GLuint fence);
-GLAPI GLboolean APIENTRY glTestFenceAPPLE (GLuint fence);
-GLAPI void APIENTRY glFinishFenceAPPLE (GLuint fence);
-GLAPI GLboolean APIENTRY glTestObjectAPPLE (GLenum object, GLuint name);
-GLAPI void APIENTRY glFinishObjectAPPLE (GLenum object, GLint name);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLGENFENCESAPPLEPROC) (GLsizei n, GLuint *fences);
-typedef void (APIENTRYP PFNGLDELETEFENCESAPPLEPROC) (GLsizei n, const GLuint *fences);
-typedef void (APIENTRYP PFNGLSETFENCEAPPLEPROC) (GLuint fence);
-typedef GLboolean (APIENTRYP PFNGLISFENCEAPPLEPROC) (GLuint fence);
-typedef GLboolean (APIENTRYP PFNGLTESTFENCEAPPLEPROC) (GLuint fence);
-typedef void (APIENTRYP PFNGLFINISHFENCEAPPLEPROC) (GLuint fence);
-typedef GLboolean (APIENTRYP PFNGLTESTOBJECTAPPLEPROC) (GLenum object, GLuint name);
-typedef void (APIENTRYP PFNGLFINISHOBJECTAPPLEPROC) (GLenum object, GLint name);
-#endif
-
-#ifndef GL_APPLE_vertex_array_object
-#define GL_APPLE_vertex_array_object 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBindVertexArrayAPPLE (GLuint array);
-GLAPI void APIENTRY glDeleteVertexArraysAPPLE (GLsizei n, const GLuint *arrays);
-GLAPI void APIENTRY glGenVertexArraysAPPLE (GLsizei n, GLuint *arrays);
-GLAPI GLboolean APIENTRY glIsVertexArrayAPPLE (GLuint array);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBINDVERTEXARRAYAPPLEPROC) (GLuint array);
-typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSAPPLEPROC) (GLsizei n, const GLuint *arrays);
-typedef void (APIENTRYP PFNGLGENVERTEXARRAYSAPPLEPROC) (GLsizei n, GLuint *arrays);
-typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYAPPLEPROC) (GLuint array);
-#endif
-
-#ifndef GL_APPLE_vertex_array_range
-#define GL_APPLE_vertex_array_range 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glVertexArrayRangeAPPLE (GLsizei length, GLvoid *pointer);
-GLAPI void APIENTRY glFlushVertexArrayRangeAPPLE (GLsizei length, GLvoid *pointer);
-GLAPI void APIENTRY glVertexArrayParameteriAPPLE (GLenum pname, GLint param);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, GLvoid *pointer);
-typedef void (APIENTRYP PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, GLvoid *pointer);
-typedef void (APIENTRYP PFNGLVERTEXARRAYPARAMETERIAPPLEPROC) (GLenum pname, GLint param);
-#endif
-
-#ifndef GL_APPLE_ycbcr_422
-#define GL_APPLE_ycbcr_422 1
-#endif
-
-#ifndef GL_S3_s3tc
-#define GL_S3_s3tc 1
-#endif
-
-#ifndef GL_ATI_draw_buffers
-#define GL_ATI_draw_buffers 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glDrawBuffersATI (GLsizei n, const GLenum *bufs);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLDRAWBUFFERSATIPROC) (GLsizei n, const GLenum *bufs);
-#endif
-
-#ifndef GL_ATI_pixel_format_float
-#define GL_ATI_pixel_format_float 1
-/* This is really a WGL extension, but defines some associated GL enums.
- * ATI does not export "GL_ATI_pixel_format_float" in the GL_EXTENSIONS string.
- */
-#endif
-
-#ifndef GL_ATI_texture_env_combine3
-#define GL_ATI_texture_env_combine3 1
-#endif
-
-#ifndef GL_ATI_texture_float
-#define GL_ATI_texture_float 1
-#endif
-
-#ifndef GL_NV_float_buffer
-#define GL_NV_float_buffer 1
-#endif
-
-#ifndef GL_NV_fragment_program
-#define GL_NV_fragment_program 1
-/* Some NV_fragment_program entry points are shared with ARB_vertex_program. */
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glProgramNamedParameter4fNV (GLuint id, GLsizei len, const GLubyte *name, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-GLAPI void APIENTRY glProgramNamedParameter4fvNV (GLuint id, GLsizei len, const GLubyte *name, const GLfloat *v);
-GLAPI void APIENTRY glProgramNamedParameter4dNV (GLuint id, GLsizei len, const GLubyte *name, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-GLAPI void APIENTRY glProgramNamedParameter4dvNV (GLuint id, GLsizei len, const GLubyte *name, const GLdouble *v);
-GLAPI void APIENTRY glGetProgramNamedParameterfvNV (GLuint id, GLsizei len, const GLubyte *name, GLfloat *params);
-GLAPI void APIENTRY glGetProgramNamedParameterdvNV (GLuint id, GLsizei len, const GLubyte *name, GLdouble *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4FNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, const GLfloat *v);
-typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4DNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, const GLdouble *v);
-typedef void (APIENTRYP PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLdouble *params);
-#endif
-
-#ifndef GL_NV_half_float
-#define GL_NV_half_float 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glVertex2hNV (GLhalfNV x, GLhalfNV y);
-GLAPI void APIENTRY glVertex2hvNV (const GLhalfNV *v);
-GLAPI void APIENTRY glVertex3hNV (GLhalfNV x, GLhalfNV y, GLhalfNV z);
-GLAPI void APIENTRY glVertex3hvNV (const GLhalfNV *v);
-GLAPI void APIENTRY glVertex4hNV (GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w);
-GLAPI void APIENTRY glVertex4hvNV (const GLhalfNV *v);
-GLAPI void APIENTRY glNormal3hNV (GLhalfNV nx, GLhalfNV ny, GLhalfNV nz);
-GLAPI void APIENTRY glNormal3hvNV (const GLhalfNV *v);
-GLAPI void APIENTRY glColor3hNV (GLhalfNV red, GLhalfNV green, GLhalfNV blue);
-GLAPI void APIENTRY glColor3hvNV (const GLhalfNV *v);
-GLAPI void APIENTRY glColor4hNV (GLhalfNV red, GLhalfNV green, GLhalfNV blue, GLhalfNV alpha);
-GLAPI void APIENTRY glColor4hvNV (const GLhalfNV *v);
-GLAPI void APIENTRY glTexCoord1hNV (GLhalfNV s);
-GLAPI void APIENTRY glTexCoord1hvNV (const GLhalfNV *v);
-GLAPI void APIENTRY glTexCoord2hNV (GLhalfNV s, GLhalfNV t);
-GLAPI void APIENTRY glTexCoord2hvNV (const GLhalfNV *v);
-GLAPI void APIENTRY glTexCoord3hNV (GLhalfNV s, GLhalfNV t, GLhalfNV r);
-GLAPI void APIENTRY glTexCoord3hvNV (const GLhalfNV *v);
-GLAPI void APIENTRY glTexCoord4hNV (GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q);
-GLAPI void APIENTRY glTexCoord4hvNV (const GLhalfNV *v);
-GLAPI void APIENTRY glMultiTexCoord1hNV (GLenum target, GLhalfNV s);
-GLAPI void APIENTRY glMultiTexCoord1hvNV (GLenum target, const GLhalfNV *v);
-GLAPI void APIENTRY glMultiTexCoord2hNV (GLenum target, GLhalfNV s, GLhalfNV t);
-GLAPI void APIENTRY glMultiTexCoord2hvNV (GLenum target, const GLhalfNV *v);
-GLAPI void APIENTRY glMultiTexCoord3hNV (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r);
-GLAPI void APIENTRY glMultiTexCoord3hvNV (GLenum target, const GLhalfNV *v);
-GLAPI void APIENTRY glMultiTexCoord4hNV (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q);
-GLAPI void APIENTRY glMultiTexCoord4hvNV (GLenum target, const GLhalfNV *v);
-GLAPI void APIENTRY glFogCoordhNV (GLhalfNV fog);
-GLAPI void APIENTRY glFogCoordhvNV (const GLhalfNV *fog);
-GLAPI void APIENTRY glSecondaryColor3hNV (GLhalfNV red, GLhalfNV green, GLhalfNV blue);
-GLAPI void APIENTRY glSecondaryColor3hvNV (const GLhalfNV *v);
-GLAPI void APIENTRY glVertexWeighthNV (GLhalfNV weight);
-GLAPI void APIENTRY glVertexWeighthvNV (const GLhalfNV *weight);
-GLAPI void APIENTRY glVertexAttrib1hNV (GLuint index, GLhalfNV x);
-GLAPI void APIENTRY glVertexAttrib1hvNV (GLuint index, const GLhalfNV *v);
-GLAPI void APIENTRY glVertexAttrib2hNV (GLuint index, GLhalfNV x, GLhalfNV y);
-GLAPI void APIENTRY glVertexAttrib2hvNV (GLuint index, const GLhalfNV *v);
-GLAPI void APIENTRY glVertexAttrib3hNV (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z);
-GLAPI void APIENTRY glVertexAttrib3hvNV (GLuint index, const GLhalfNV *v);
-GLAPI void APIENTRY glVertexAttrib4hNV (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w);
-GLAPI void APIENTRY glVertexAttrib4hvNV (GLuint index, const GLhalfNV *v);
-GLAPI void APIENTRY glVertexAttribs1hvNV (GLuint index, GLsizei n, const GLhalfNV *v);
-GLAPI void APIENTRY glVertexAttribs2hvNV (GLuint index, GLsizei n, const GLhalfNV *v);
-GLAPI void APIENTRY glVertexAttribs3hvNV (GLuint index, GLsizei n, const GLhalfNV *v);
-GLAPI void APIENTRY glVertexAttribs4hvNV (GLuint index, GLsizei n, const GLhalfNV *v);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLVERTEX2HNVPROC) (GLhalfNV x, GLhalfNV y);
-typedef void (APIENTRYP PFNGLVERTEX2HVNVPROC) (const GLhalfNV *v);
-typedef void (APIENTRYP PFNGLVERTEX3HNVPROC) (GLhalfNV x, GLhalfNV y, GLhalfNV z);
-typedef void (APIENTRYP PFNGLVERTEX3HVNVPROC) (const GLhalfNV *v);
-typedef void (APIENTRYP PFNGLVERTEX4HNVPROC) (GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w);
-typedef void (APIENTRYP PFNGLVERTEX4HVNVPROC) (const GLhalfNV *v);
-typedef void (APIENTRYP PFNGLNORMAL3HNVPROC) (GLhalfNV nx, GLhalfNV ny, GLhalfNV nz);
-typedef void (APIENTRYP PFNGLNORMAL3HVNVPROC) (const GLhalfNV *v);
-typedef void (APIENTRYP PFNGLCOLOR3HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue);
-typedef void (APIENTRYP PFNGLCOLOR3HVNVPROC) (const GLhalfNV *v);
-typedef void (APIENTRYP PFNGLCOLOR4HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue, GLhalfNV alpha);
-typedef void (APIENTRYP PFNGLCOLOR4HVNVPROC) (const GLhalfNV *v);
-typedef void (APIENTRYP PFNGLTEXCOORD1HNVPROC) (GLhalfNV s);
-typedef void (APIENTRYP PFNGLTEXCOORD1HVNVPROC) (const GLhalfNV *v);
-typedef void (APIENTRYP PFNGLTEXCOORD2HNVPROC) (GLhalfNV s, GLhalfNV t);
-typedef void (APIENTRYP PFNGLTEXCOORD2HVNVPROC) (const GLhalfNV *v);
-typedef void (APIENTRYP PFNGLTEXCOORD3HNVPROC) (GLhalfNV s, GLhalfNV t, GLhalfNV r);
-typedef void (APIENTRYP PFNGLTEXCOORD3HVNVPROC) (const GLhalfNV *v);
-typedef void (APIENTRYP PFNGLTEXCOORD4HNVPROC) (GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q);
-typedef void (APIENTRYP PFNGLTEXCOORD4HVNVPROC) (const GLhalfNV *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD1HNVPROC) (GLenum target, GLhalfNV s);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD1HVNVPROC) (GLenum target, const GLhalfNV *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD2HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD2HVNVPROC) (GLenum target, const GLhalfNV *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD3HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD3HVNVPROC) (GLenum target, const GLhalfNV *v);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD4HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD4HVNVPROC) (GLenum target, const GLhalfNV *v);
-typedef void (APIENTRYP PFNGLFOGCOORDHNVPROC) (GLhalfNV fog);
-typedef void (APIENTRYP PFNGLFOGCOORDHVNVPROC) (const GLhalfNV *fog);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue);
-typedef void (APIENTRYP PFNGLSECONDARYCOLOR3HVNVPROC) (const GLhalfNV *v);
-typedef void (APIENTRYP PFNGLVERTEXWEIGHTHNVPROC) (GLhalfNV weight);
-typedef void (APIENTRYP PFNGLVERTEXWEIGHTHVNVPROC) (const GLhalfNV *weight);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB1HNVPROC) (GLuint index, GLhalfNV x);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB1HVNVPROC) (GLuint index, const GLhalfNV *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB2HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB2HVNVPROC) (GLuint index, const GLhalfNV *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB3HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB3HVNVPROC) (GLuint index, const GLhalfNV *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w);
-typedef void (APIENTRYP PFNGLVERTEXATTRIB4HVNVPROC) (GLuint index, const GLhalfNV *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBS1HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBS2HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBS3HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBS4HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v);
-#endif
-
-#ifndef GL_NV_pixel_data_range
-#define GL_NV_pixel_data_range 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glPixelDataRangeNV (GLenum target, GLsizei length, const GLvoid *pointer);
-GLAPI void APIENTRY glFlushPixelDataRangeNV (GLenum target);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLPIXELDATARANGENVPROC) (GLenum target, GLsizei length, const GLvoid *pointer);
-typedef void (APIENTRYP PFNGLFLUSHPIXELDATARANGENVPROC) (GLenum target);
-#endif
-
-#ifndef GL_NV_primitive_restart
-#define GL_NV_primitive_restart 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glPrimitiveRestartNV (void);
-GLAPI void APIENTRY glPrimitiveRestartIndexNV (GLuint index);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLPRIMITIVERESTARTNVPROC) (void);
-typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXNVPROC) (GLuint index);
-#endif
-
-#ifndef GL_NV_texture_expand_normal
-#define GL_NV_texture_expand_normal 1
-#endif
-
-#ifndef GL_NV_vertex_program2
-#define GL_NV_vertex_program2 1
-#endif
-
-#ifndef GL_ATI_map_object_buffer
-#define GL_ATI_map_object_buffer 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI GLvoid* APIENTRY glMapObjectBufferATI (GLuint buffer);
-GLAPI void APIENTRY glUnmapObjectBufferATI (GLuint buffer);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef GLvoid* (APIENTRYP PFNGLMAPOBJECTBUFFERATIPROC) (GLuint buffer);
-typedef void (APIENTRYP PFNGLUNMAPOBJECTBUFFERATIPROC) (GLuint buffer);
-#endif
-
-#ifndef GL_ATI_separate_stencil
-#define GL_ATI_separate_stencil 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glStencilOpSeparateATI (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
-GLAPI void APIENTRY glStencilFuncSeparateATI (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEATIPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
-typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEATIPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask);
-#endif
-
-#ifndef GL_ATI_vertex_attrib_array_object
-#define GL_ATI_vertex_attrib_array_object 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glVertexAttribArrayObjectATI (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset);
-GLAPI void APIENTRY glGetVertexAttribArrayObjectfvATI (GLuint index, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetVertexAttribArrayObjectivATI (GLuint index, GLenum pname, GLint *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLVERTEXATTRIBARRAYOBJECTATIPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset);
-typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC) (GLuint index, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC) (GLuint index, GLenum pname, GLint *params);
-#endif
-
-#ifndef GL_OES_byte_coordinates
-#define GL_OES_byte_coordinates 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glMultiTexCoord1bOES (GLenum texture, GLbyte s);
-GLAPI void APIENTRY glMultiTexCoord1bvOES (GLenum texture, const GLbyte *coords);
-GLAPI void APIENTRY glMultiTexCoord2bOES (GLenum texture, GLbyte s, GLbyte t);
-GLAPI void APIENTRY glMultiTexCoord2bvOES (GLenum texture, const GLbyte *coords);
-GLAPI void APIENTRY glMultiTexCoord3bOES (GLenum texture, GLbyte s, GLbyte t, GLbyte r);
-GLAPI void APIENTRY glMultiTexCoord3bvOES (GLenum texture, const GLbyte *coords);
-GLAPI void APIENTRY glMultiTexCoord4bOES (GLenum texture, GLbyte s, GLbyte t, GLbyte r, GLbyte q);
-GLAPI void APIENTRY glMultiTexCoord4bvOES (GLenum texture, const GLbyte *coords);
-GLAPI void APIENTRY glTexCoord1bOES (GLbyte s);
-GLAPI void APIENTRY glTexCoord1bvOES (const GLbyte *coords);
-GLAPI void APIENTRY glTexCoord2bOES (GLbyte s, GLbyte t);
-GLAPI void APIENTRY glTexCoord2bvOES (const GLbyte *coords);
-GLAPI void APIENTRY glTexCoord3bOES (GLbyte s, GLbyte t, GLbyte r);
-GLAPI void APIENTRY glTexCoord3bvOES (const GLbyte *coords);
-GLAPI void APIENTRY glTexCoord4bOES (GLbyte s, GLbyte t, GLbyte r, GLbyte q);
-GLAPI void APIENTRY glTexCoord4bvOES (const GLbyte *coords);
-GLAPI void APIENTRY glVertex2bOES (GLbyte x);
-GLAPI void APIENTRY glVertex2bvOES (const GLbyte *coords);
-GLAPI void APIENTRY glVertex3bOES (GLbyte x, GLbyte y);
-GLAPI void APIENTRY glVertex3bvOES (const GLbyte *coords);
-GLAPI void APIENTRY glVertex4bOES (GLbyte x, GLbyte y, GLbyte z);
-GLAPI void APIENTRY glVertex4bvOES (const GLbyte *coords);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLMULTITEXCOORD1BOESPROC) (GLenum texture, GLbyte s);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD1BVOESPROC) (GLenum texture, const GLbyte *coords);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD2BOESPROC) (GLenum texture, GLbyte s, GLbyte t);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD2BVOESPROC) (GLenum texture, const GLbyte *coords);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD3BOESPROC) (GLenum texture, GLbyte s, GLbyte t, GLbyte r);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD3BVOESPROC) (GLenum texture, const GLbyte *coords);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD4BOESPROC) (GLenum texture, GLbyte s, GLbyte t, GLbyte r, GLbyte q);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD4BVOESPROC) (GLenum texture, const GLbyte *coords);
-typedef void (APIENTRYP PFNGLTEXCOORD1BOESPROC) (GLbyte s);
-typedef void (APIENTRYP PFNGLTEXCOORD1BVOESPROC) (const GLbyte *coords);
-typedef void (APIENTRYP PFNGLTEXCOORD2BOESPROC) (GLbyte s, GLbyte t);
-typedef void (APIENTRYP PFNGLTEXCOORD2BVOESPROC) (const GLbyte *coords);
-typedef void (APIENTRYP PFNGLTEXCOORD3BOESPROC) (GLbyte s, GLbyte t, GLbyte r);
-typedef void (APIENTRYP PFNGLTEXCOORD3BVOESPROC) (const GLbyte *coords);
-typedef void (APIENTRYP PFNGLTEXCOORD4BOESPROC) (GLbyte s, GLbyte t, GLbyte r, GLbyte q);
-typedef void (APIENTRYP PFNGLTEXCOORD4BVOESPROC) (const GLbyte *coords);
-typedef void (APIENTRYP PFNGLVERTEX2BOESPROC) (GLbyte x);
-typedef void (APIENTRYP PFNGLVERTEX2BVOESPROC) (const GLbyte *coords);
-typedef void (APIENTRYP PFNGLVERTEX3BOESPROC) (GLbyte x, GLbyte y);
-typedef void (APIENTRYP PFNGLVERTEX3BVOESPROC) (const GLbyte *coords);
-typedef void (APIENTRYP PFNGLVERTEX4BOESPROC) (GLbyte x, GLbyte y, GLbyte z);
-typedef void (APIENTRYP PFNGLVERTEX4BVOESPROC) (const GLbyte *coords);
-#endif
-
-#ifndef GL_OES_fixed_point
-#define GL_OES_fixed_point 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glAccumxOES (GLenum op, GLfixed value);
-GLAPI void APIENTRY glAlphaFuncxOES (GLenum func, GLfixed ref);
-GLAPI void APIENTRY glBitmapxOES (GLsizei width, GLsizei height, GLfixed xorig, GLfixed yorig, GLfixed xmove, GLfixed ymove, const GLubyte *bitmap);
-GLAPI void APIENTRY glBlendColorxOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
-GLAPI void APIENTRY glClearAccumxOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
-GLAPI void APIENTRY glClearColorxOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
-GLAPI void APIENTRY glClearDepthxOES (GLfixed depth);
-GLAPI void APIENTRY glClipPlanexOES (GLenum plane, const GLfixed *equation);
-GLAPI void APIENTRY glColor3xOES (GLfixed red, GLfixed green, GLfixed blue);
-GLAPI void APIENTRY glColor4xOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
-GLAPI void APIENTRY glColor3xvOES (const GLfixed *components);
-GLAPI void APIENTRY glColor4xvOES (const GLfixed *components);
-GLAPI void APIENTRY glConvolutionParameterxOES (GLenum target, GLenum pname, GLfixed param);
-GLAPI void APIENTRY glConvolutionParameterxvOES (GLenum target, GLenum pname, const GLfixed *params);
-GLAPI void APIENTRY glDepthRangexOES (GLfixed n, GLfixed f);
-GLAPI void APIENTRY glEvalCoord1xOES (GLfixed u);
-GLAPI void APIENTRY glEvalCoord2xOES (GLfixed u, GLfixed v);
-GLAPI void APIENTRY glEvalCoord1xvOES (const GLfixed *coords);
-GLAPI void APIENTRY glEvalCoord2xvOES (const GLfixed *coords);
-GLAPI void APIENTRY glFeedbackBufferxOES (GLsizei n, GLenum type, const GLfixed *buffer);
-GLAPI void APIENTRY glFogxOES (GLenum pname, GLfixed param);
-GLAPI void APIENTRY glFogxvOES (GLenum pname, const GLfixed *param);
-GLAPI void APIENTRY glFrustumxOES (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f);
-GLAPI void APIENTRY glGetClipPlanexOES (GLenum plane, GLfixed *equation);
-GLAPI void APIENTRY glGetConvolutionParameterxvOES (GLenum target, GLenum pname, GLfixed *params);
-GLAPI void APIENTRY glGetFixedvOES (GLenum pname, GLfixed *params);
-GLAPI void APIENTRY glGetHistogramParameterxvOES (GLenum target, GLenum pname, GLfixed *params);
-GLAPI void APIENTRY glGetLightxOES (GLenum light, GLenum pname, GLfixed *params);
-GLAPI void APIENTRY glGetMapxvOES (GLenum target, GLenum query, GLfixed *v);
-GLAPI void APIENTRY glGetMaterialxOES (GLenum face, GLenum pname, GLfixed param);
-GLAPI void APIENTRY glGetPixelMapxv (GLenum map, GLint size, GLfixed *values);
-GLAPI void APIENTRY glGetTexEnvxvOES (GLenum target, GLenum pname, GLfixed *params);
-GLAPI void APIENTRY glGetTexGenxvOES (GLenum coord, GLenum pname, GLfixed *params);
-GLAPI void APIENTRY glGetTexLevelParameterxvOES (GLenum target, GLint level, GLenum pname, GLfixed *params);
-GLAPI void APIENTRY glGetTexParameterxvOES (GLenum target, GLenum pname, GLfixed *params);
-GLAPI void APIENTRY glIndexxOES (GLfixed component);
-GLAPI void APIENTRY glIndexxvOES (const GLfixed *component);
-GLAPI void APIENTRY glLightModelxOES (GLenum pname, GLfixed param);
-GLAPI void APIENTRY glLightModelxvOES (GLenum pname, const GLfixed *param);
-GLAPI void APIENTRY glLightxOES (GLenum light, GLenum pname, GLfixed param);
-GLAPI void APIENTRY glLightxvOES (GLenum light, GLenum pname, const GLfixed *params);
-GLAPI void APIENTRY glLineWidthxOES (GLfixed width);
-GLAPI void APIENTRY glLoadMatrixxOES (const GLfixed *m);
-GLAPI void APIENTRY glLoadTransposeMatrixxOES (const GLfixed *m);
-GLAPI void APIENTRY glMap1xOES (GLenum target, GLfixed u1, GLfixed u2, GLint stride, GLint order, GLfixed points);
-GLAPI void APIENTRY glMap2xOES (GLenum target, GLfixed u1, GLfixed u2, GLint ustride, GLint uorder, GLfixed v1, GLfixed v2, GLint vstride, GLint vorder, GLfixed points);
-GLAPI void APIENTRY glMapGrid1xOES (GLint n, GLfixed u1, GLfixed u2);
-GLAPI void APIENTRY glMapGrid2xOES (GLint n, GLfixed u1, GLfixed u2, GLfixed v1, GLfixed v2);
-GLAPI void APIENTRY glMaterialxOES (GLenum face, GLenum pname, GLfixed param);
-GLAPI void APIENTRY glMaterialxvOES (GLenum face, GLenum pname, const GLfixed *param);
-GLAPI void APIENTRY glMultMatrixxOES (const GLfixed *m);
-GLAPI void APIENTRY glMultTransposeMatrixxOES (const GLfixed *m);
-GLAPI void APIENTRY glMultiTexCoord1xOES (GLenum texture, GLfixed s);
-GLAPI void APIENTRY glMultiTexCoord2xOES (GLenum texture, GLfixed s, GLfixed t);
-GLAPI void APIENTRY glMultiTexCoord3xOES (GLenum texture, GLfixed s, GLfixed t, GLfixed r);
-GLAPI void APIENTRY glMultiTexCoord4xOES (GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
-GLAPI void APIENTRY glMultiTexCoord1xvOES (GLenum texture, const GLfixed *coords);
-GLAPI void APIENTRY glMultiTexCoord2xvOES (GLenum texture, const GLfixed *coords);
-GLAPI void APIENTRY glMultiTexCoord3xvOES (GLenum texture, const GLfixed *coords);
-GLAPI void APIENTRY glMultiTexCoord4xvOES (GLenum texture, const GLfixed *coords);
-GLAPI void APIENTRY glNormal3xOES (GLfixed nx, GLfixed ny, GLfixed nz);
-GLAPI void APIENTRY glNormal3xvOES (const GLfixed *coords);
-GLAPI void APIENTRY glOrthoxOES (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f);
-GLAPI void APIENTRY glPassThroughxOES (GLfixed token);
-GLAPI void APIENTRY glPixelMapx (GLenum map, GLint size, const GLfixed *values);
-GLAPI void APIENTRY glPixelStorex (GLenum pname, GLfixed param);
-GLAPI void APIENTRY glPixelTransferxOES (GLenum pname, GLfixed param);
-GLAPI void APIENTRY glPixelZoomxOES (GLfixed xfactor, GLfixed yfactor);
-GLAPI void APIENTRY glPointParameterxvOES (GLenum pname, const GLfixed *params);
-GLAPI void APIENTRY glPointSizexOES (GLfixed size);
-GLAPI void APIENTRY glPolygonOffsetxOES (GLfixed factor, GLfixed units);
-GLAPI void APIENTRY glPrioritizeTexturesxOES (GLsizei n, const GLuint *textures, const GLfixed *priorities);
-GLAPI void APIENTRY glRasterPos2xOES (GLfixed x, GLfixed y);
-GLAPI void APIENTRY glRasterPos3xOES (GLfixed x, GLfixed y, GLfixed z);
-GLAPI void APIENTRY glRasterPos4xOES (GLfixed x, GLfixed y, GLfixed z, GLfixed w);
-GLAPI void APIENTRY glRasterPos2xvOES (const GLfixed *coords);
-GLAPI void APIENTRY glRasterPos3xvOES (const GLfixed *coords);
-GLAPI void APIENTRY glRasterPos4xvOES (const GLfixed *coords);
-GLAPI void APIENTRY glRectxOES (GLfixed x1, GLfixed y1, GLfixed x2, GLfixed y2);
-GLAPI void APIENTRY glRectxvOES (const GLfixed *v1, const GLfixed *v2);
-GLAPI void APIENTRY glRotatexOES (GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
-GLAPI void APIENTRY glSampleCoverageOES (GLfixed value, GLboolean invert);
-GLAPI void APIENTRY glScalexOES (GLfixed x, GLfixed y, GLfixed z);
-GLAPI void APIENTRY glTexCoord1xOES (GLfixed s);
-GLAPI void APIENTRY glTexCoord2xOES (GLfixed s, GLfixed t);
-GLAPI void APIENTRY glTexCoord3xOES (GLfixed s, GLfixed t, GLfixed r);
-GLAPI void APIENTRY glTexCoord4xOES (GLfixed s, GLfixed t, GLfixed r, GLfixed q);
-GLAPI void APIENTRY glTexCoord1xvOES (const GLfixed *coords);
-GLAPI void APIENTRY glTexCoord2xvOES (const GLfixed *coords);
-GLAPI void APIENTRY glTexCoord3xvOES (const GLfixed *coords);
-GLAPI void APIENTRY glTexCoord4xvOES (const GLfixed *coords);
-GLAPI void APIENTRY glTexEnvxOES (GLenum target, GLenum pname, GLfixed param);
-GLAPI void APIENTRY glTexEnvxvOES (GLenum target, GLenum pname, const GLfixed *params);
-GLAPI void APIENTRY glTexGenxOES (GLenum coord, GLenum pname, GLfixed param);
-GLAPI void APIENTRY glTexGenxvOES (GLenum coord, GLenum pname, const GLfixed *params);
-GLAPI void APIENTRY glTexParameterxOES (GLenum target, GLenum pname, GLfixed param);
-GLAPI void APIENTRY glTexParameterxvOES (GLenum target, GLenum pname, const GLfixed *params);
-GLAPI void APIENTRY glTranslatexOES (GLfixed x, GLfixed y, GLfixed z);
-GLAPI void APIENTRY glVertex2xOES (GLfixed x);
-GLAPI void APIENTRY glVertex3xOES (GLfixed x, GLfixed y);
-GLAPI void APIENTRY glVertex4xOES (GLfixed x, GLfixed y, GLfixed z);
-GLAPI void APIENTRY glVertex2xvOES (const GLfixed *coords);
-GLAPI void APIENTRY glVertex3xvOES (const GLfixed *coords);
-GLAPI void APIENTRY glVertex4xvOES (const GLfixed *coords);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLACCUMXOESPROC) (GLenum op, GLfixed value);
-typedef void (APIENTRYP PFNGLALPHAFUNCXOESPROC) (GLenum func, GLfixed ref);
-typedef void (APIENTRYP PFNGLBITMAPXOESPROC) (GLsizei width, GLsizei height, GLfixed xorig, GLfixed yorig, GLfixed xmove, GLfixed ymove, const GLubyte *bitmap);
-typedef void (APIENTRYP PFNGLBLENDCOLORXOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
-typedef void (APIENTRYP PFNGLCLEARACCUMXOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
-typedef void (APIENTRYP PFNGLCLEARCOLORXOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
-typedef void (APIENTRYP PFNGLCLEARDEPTHXOESPROC) (GLfixed depth);
-typedef void (APIENTRYP PFNGLCLIPPLANEXOESPROC) (GLenum plane, const GLfixed *equation);
-typedef void (APIENTRYP PFNGLCOLOR3XOESPROC) (GLfixed red, GLfixed green, GLfixed blue);
-typedef void (APIENTRYP PFNGLCOLOR4XOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
-typedef void (APIENTRYP PFNGLCOLOR3XVOESPROC) (const GLfixed *components);
-typedef void (APIENTRYP PFNGLCOLOR4XVOESPROC) (const GLfixed *components);
-typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERXOESPROC) (GLenum target, GLenum pname, GLfixed param);
-typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERXVOESPROC) (GLenum target, GLenum pname, const GLfixed *params);
-typedef void (APIENTRYP PFNGLDEPTHRANGEXOESPROC) (GLfixed n, GLfixed f);
-typedef void (APIENTRYP PFNGLEVALCOORD1XOESPROC) (GLfixed u);
-typedef void (APIENTRYP PFNGLEVALCOORD2XOESPROC) (GLfixed u, GLfixed v);
-typedef void (APIENTRYP PFNGLEVALCOORD1XVOESPROC) (const GLfixed *coords);
-typedef void (APIENTRYP PFNGLEVALCOORD2XVOESPROC) (const GLfixed *coords);
-typedef void (APIENTRYP PFNGLFEEDBACKBUFFERXOESPROC) (GLsizei n, GLenum type, const GLfixed *buffer);
-typedef void (APIENTRYP PFNGLFOGXOESPROC) (GLenum pname, GLfixed param);
-typedef void (APIENTRYP PFNGLFOGXVOESPROC) (GLenum pname, const GLfixed *param);
-typedef void (APIENTRYP PFNGLFRUSTUMXOESPROC) (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f);
-typedef void (APIENTRYP PFNGLGETCLIPPLANEXOESPROC) (GLenum plane, GLfixed *equation);
-typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERXVOESPROC) (GLenum target, GLenum pname, GLfixed *params);
-typedef void (APIENTRYP PFNGLGETFIXEDVOESPROC) (GLenum pname, GLfixed *params);
-typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERXVOESPROC) (GLenum target, GLenum pname, GLfixed *params);
-typedef void (APIENTRYP PFNGLGETLIGHTXOESPROC) (GLenum light, GLenum pname, GLfixed *params);
-typedef void (APIENTRYP PFNGLGETMAPXVOESPROC) (GLenum target, GLenum query, GLfixed *v);
-typedef void (APIENTRYP PFNGLGETMATERIALXOESPROC) (GLenum face, GLenum pname, GLfixed param);
-typedef void (APIENTRYP PFNGLGETPIXELMAPXVPROC) (GLenum map, GLint size, GLfixed *values);
-typedef void (APIENTRYP PFNGLGETTEXENVXVOESPROC) (GLenum target, GLenum pname, GLfixed *params);
-typedef void (APIENTRYP PFNGLGETTEXGENXVOESPROC) (GLenum coord, GLenum pname, GLfixed *params);
-typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERXVOESPROC) (GLenum target, GLint level, GLenum pname, GLfixed *params);
-typedef void (APIENTRYP PFNGLGETTEXPARAMETERXVOESPROC) (GLenum target, GLenum pname, GLfixed *params);
-typedef void (APIENTRYP PFNGLINDEXXOESPROC) (GLfixed component);
-typedef void (APIENTRYP PFNGLINDEXXVOESPROC) (const GLfixed *component);
-typedef void (APIENTRYP PFNGLLIGHTMODELXOESPROC) (GLenum pname, GLfixed param);
-typedef void (APIENTRYP PFNGLLIGHTMODELXVOESPROC) (GLenum pname, const GLfixed *param);
-typedef void (APIENTRYP PFNGLLIGHTXOESPROC) (GLenum light, GLenum pname, GLfixed param);
-typedef void (APIENTRYP PFNGLLIGHTXVOESPROC) (GLenum light, GLenum pname, const GLfixed *params);
-typedef void (APIENTRYP PFNGLLINEWIDTHXOESPROC) (GLfixed width);
-typedef void (APIENTRYP PFNGLLOADMATRIXXOESPROC) (const GLfixed *m);
-typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXXOESPROC) (const GLfixed *m);
-typedef void (APIENTRYP PFNGLMAP1XOESPROC) (GLenum target, GLfixed u1, GLfixed u2, GLint stride, GLint order, GLfixed points);
-typedef void (APIENTRYP PFNGLMAP2XOESPROC) (GLenum target, GLfixed u1, GLfixed u2, GLint ustride, GLint uorder, GLfixed v1, GLfixed v2, GLint vstride, GLint vorder, GLfixed points);
-typedef void (APIENTRYP PFNGLMAPGRID1XOESPROC) (GLint n, GLfixed u1, GLfixed u2);
-typedef void (APIENTRYP PFNGLMAPGRID2XOESPROC) (GLint n, GLfixed u1, GLfixed u2, GLfixed v1, GLfixed v2);
-typedef void (APIENTRYP PFNGLMATERIALXOESPROC) (GLenum face, GLenum pname, GLfixed param);
-typedef void (APIENTRYP PFNGLMATERIALXVOESPROC) (GLenum face, GLenum pname, const GLfixed *param);
-typedef void (APIENTRYP PFNGLMULTMATRIXXOESPROC) (const GLfixed *m);
-typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXXOESPROC) (const GLfixed *m);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD1XOESPROC) (GLenum texture, GLfixed s);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD2XOESPROC) (GLenum texture, GLfixed s, GLfixed t);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD3XOESPROC) (GLenum texture, GLfixed s, GLfixed t, GLfixed r);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD4XOESPROC) (GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD1XVOESPROC) (GLenum texture, const GLfixed *coords);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD2XVOESPROC) (GLenum texture, const GLfixed *coords);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD3XVOESPROC) (GLenum texture, const GLfixed *coords);
-typedef void (APIENTRYP PFNGLMULTITEXCOORD4XVOESPROC) (GLenum texture, const GLfixed *coords);
-typedef void (APIENTRYP PFNGLNORMAL3XOESPROC) (GLfixed nx, GLfixed ny, GLfixed nz);
-typedef void (APIENTRYP PFNGLNORMAL3XVOESPROC) (const GLfixed *coords);
-typedef void (APIENTRYP PFNGLORTHOXOESPROC) (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f);
-typedef void (APIENTRYP PFNGLPASSTHROUGHXOESPROC) (GLfixed token);
-typedef void (APIENTRYP PFNGLPIXELMAPXPROC) (GLenum map, GLint size, const GLfixed *values);
-typedef void (APIENTRYP PFNGLPIXELSTOREXPROC) (GLenum pname, GLfixed param);
-typedef void (APIENTRYP PFNGLPIXELTRANSFERXOESPROC) (GLenum pname, GLfixed param);
-typedef void (APIENTRYP PFNGLPIXELZOOMXOESPROC) (GLfixed xfactor, GLfixed yfactor);
-typedef void (APIENTRYP PFNGLPOINTPARAMETERXVOESPROC) (GLenum pname, const GLfixed *params);
-typedef void (APIENTRYP PFNGLPOINTSIZEXOESPROC) (GLfixed size);
-typedef void (APIENTRYP PFNGLPOLYGONOFFSETXOESPROC) (GLfixed factor, GLfixed units);
-typedef void (APIENTRYP PFNGLPRIORITIZETEXTURESXOESPROC) (GLsizei n, const GLuint *textures, const GLfixed *priorities);
-typedef void (APIENTRYP PFNGLRASTERPOS2XOESPROC) (GLfixed x, GLfixed y);
-typedef void (APIENTRYP PFNGLRASTERPOS3XOESPROC) (GLfixed x, GLfixed y, GLfixed z);
-typedef void (APIENTRYP PFNGLRASTERPOS4XOESPROC) (GLfixed x, GLfixed y, GLfixed z, GLfixed w);
-typedef void (APIENTRYP PFNGLRASTERPOS2XVOESPROC) (const GLfixed *coords);
-typedef void (APIENTRYP PFNGLRASTERPOS3XVOESPROC) (const GLfixed *coords);
-typedef void (APIENTRYP PFNGLRASTERPOS4XVOESPROC) (const GLfixed *coords);
-typedef void (APIENTRYP PFNGLRECTXOESPROC) (GLfixed x1, GLfixed y1, GLfixed x2, GLfixed y2);
-typedef void (APIENTRYP PFNGLRECTXVOESPROC) (const GLfixed *v1, const GLfixed *v2);
-typedef void (APIENTRYP PFNGLROTATEXOESPROC) (GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
-typedef void (APIENTRYP PFNGLSAMPLECOVERAGEOESPROC) (GLfixed value, GLboolean invert);
-typedef void (APIENTRYP PFNGLSCALEXOESPROC) (GLfixed x, GLfixed y, GLfixed z);
-typedef void (APIENTRYP PFNGLTEXCOORD1XOESPROC) (GLfixed s);
-typedef void (APIENTRYP PFNGLTEXCOORD2XOESPROC) (GLfixed s, GLfixed t);
-typedef void (APIENTRYP PFNGLTEXCOORD3XOESPROC) (GLfixed s, GLfixed t, GLfixed r);
-typedef void (APIENTRYP PFNGLTEXCOORD4XOESPROC) (GLfixed s, GLfixed t, GLfixed r, GLfixed q);
-typedef void (APIENTRYP PFNGLTEXCOORD1XVOESPROC) (const GLfixed *coords);
-typedef void (APIENTRYP PFNGLTEXCOORD2XVOESPROC) (const GLfixed *coords);
-typedef void (APIENTRYP PFNGLTEXCOORD3XVOESPROC) (const GLfixed *coords);
-typedef void (APIENTRYP PFNGLTEXCOORD4XVOESPROC) (const GLfixed *coords);
-typedef void (APIENTRYP PFNGLTEXENVXOESPROC) (GLenum target, GLenum pname, GLfixed param);
-typedef void (APIENTRYP PFNGLTEXENVXVOESPROC) (GLenum target, GLenum pname, const GLfixed *params);
-typedef void (APIENTRYP PFNGLTEXGENXOESPROC) (GLenum coord, GLenum pname, GLfixed param);
-typedef void (APIENTRYP PFNGLTEXGENXVOESPROC) (GLenum coord, GLenum pname, const GLfixed *params);
-typedef void (APIENTRYP PFNGLTEXPARAMETERXOESPROC) (GLenum target, GLenum pname, GLfixed param);
-typedef void (APIENTRYP PFNGLTEXPARAMETERXVOESPROC) (GLenum target, GLenum pname, const GLfixed *params);
-typedef void (APIENTRYP PFNGLTRANSLATEXOESPROC) (GLfixed x, GLfixed y, GLfixed z);
-typedef void (APIENTRYP PFNGLVERTEX2XOESPROC) (GLfixed x);
-typedef void (APIENTRYP PFNGLVERTEX3XOESPROC) (GLfixed x, GLfixed y);
-typedef void (APIENTRYP PFNGLVERTEX4XOESPROC) (GLfixed x, GLfixed y, GLfixed z);
-typedef void (APIENTRYP PFNGLVERTEX2XVOESPROC) (const GLfixed *coords);
-typedef void (APIENTRYP PFNGLVERTEX3XVOESPROC) (const GLfixed *coords);
-typedef void (APIENTRYP PFNGLVERTEX4XVOESPROC) (const GLfixed *coords);
-#endif
-
-#ifndef GL_OES_single_precision
-#define GL_OES_single_precision 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glDepthRangefOES (GLclampf n, GLclampf f);
-GLAPI void APIENTRY glFrustumfOES (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f);
-GLAPI void APIENTRY glOrthofOES (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f);
-GLAPI void APIENTRY glClipPlanefOES (GLenum plane, const GLfloat *equation);
-GLAPI void APIENTRY glClearDepthfOES (GLclampd depth);
-GLAPI void APIENTRY glGetClipPlanefOES (GLenum plane, GLfloat *equation);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLDEPTHRANGEFOESPROC) (GLclampf n, GLclampf f);
-typedef void (APIENTRYP PFNGLFRUSTUMFOESPROC) (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f);
-typedef void (APIENTRYP PFNGLORTHOFOESPROC) (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f);
-typedef void (APIENTRYP PFNGLCLIPPLANEFOESPROC) (GLenum plane, const GLfloat *equation);
-typedef void (APIENTRYP PFNGLCLEARDEPTHFOESPROC) (GLclampd depth);
-typedef void (APIENTRYP PFNGLGETCLIPPLANEFOESPROC) (GLenum plane, GLfloat *equation);
-#endif
-
-#ifndef GL_OES_compressed_paletted_texture
-#define GL_OES_compressed_paletted_texture 1
-#endif
-
-#ifndef GL_OES_read_format
-#define GL_OES_read_format 1
-#endif
-
-#ifndef GL_OES_query_matrix
-#define GL_OES_query_matrix 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI GLbitfield APIENTRY glQueryMatrixxOES (const GLfixed *mantissa, const GLint *exponent);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef GLbitfield (APIENTRYP PFNGLQUERYMATRIXXOESPROC) (const GLfixed *mantissa, const GLint *exponent);
-#endif
-
-#ifndef GL_EXT_depth_bounds_test
-#define GL_EXT_depth_bounds_test 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glDepthBoundsEXT (GLclampd zmin, GLclampd zmax);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLDEPTHBOUNDSEXTPROC) (GLclampd zmin, GLclampd zmax);
-#endif
-
-#ifndef GL_EXT_texture_mirror_clamp
-#define GL_EXT_texture_mirror_clamp 1
-#endif
-
-#ifndef GL_EXT_blend_equation_separate
-#define GL_EXT_blend_equation_separate 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBlendEquationSeparateEXT (GLenum modeRGB, GLenum modeAlpha);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEEXTPROC) (GLenum modeRGB, GLenum modeAlpha);
-#endif
-
-#ifndef GL_MESA_pack_invert
-#define GL_MESA_pack_invert 1
-#endif
-
-#ifndef GL_MESA_ycbcr_texture
-#define GL_MESA_ycbcr_texture 1
-#endif
-
-#ifndef GL_EXT_pixel_buffer_object
-#define GL_EXT_pixel_buffer_object 1
-#endif
-
-#ifndef GL_NV_fragment_program_option
-#define GL_NV_fragment_program_option 1
-#endif
-
-#ifndef GL_NV_fragment_program2
-#define GL_NV_fragment_program2 1
-#endif
-
-#ifndef GL_NV_vertex_program2_option
-#define GL_NV_vertex_program2_option 1
-#endif
-
-#ifndef GL_NV_vertex_program3
-#define GL_NV_vertex_program3 1
-#endif
-
-#ifndef GL_EXT_framebuffer_object
-#define GL_EXT_framebuffer_object 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI GLboolean APIENTRY glIsRenderbufferEXT (GLuint renderbuffer);
-GLAPI void APIENTRY glBindRenderbufferEXT (GLenum target, GLuint renderbuffer);
-GLAPI void APIENTRY glDeleteRenderbuffersEXT (GLsizei n, const GLuint *renderbuffers);
-GLAPI void APIENTRY glGenRenderbuffersEXT (GLsizei n, GLuint *renderbuffers);
-GLAPI void APIENTRY glRenderbufferStorageEXT (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
-GLAPI void APIENTRY glGetRenderbufferParameterivEXT (GLenum target, GLenum pname, GLint *params);
-GLAPI GLboolean APIENTRY glIsFramebufferEXT (GLuint framebuffer);
-GLAPI void APIENTRY glBindFramebufferEXT (GLenum target, GLuint framebuffer);
-GLAPI void APIENTRY glDeleteFramebuffersEXT (GLsizei n, const GLuint *framebuffers);
-GLAPI void APIENTRY glGenFramebuffersEXT (GLsizei n, GLuint *framebuffers);
-GLAPI GLenum APIENTRY glCheckFramebufferStatusEXT (GLenum target);
-GLAPI void APIENTRY glFramebufferTexture1DEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
-GLAPI void APIENTRY glFramebufferTexture2DEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
-GLAPI void APIENTRY glFramebufferTexture3DEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
-GLAPI void APIENTRY glFramebufferRenderbufferEXT (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
-GLAPI void APIENTRY glGetFramebufferAttachmentParameterivEXT (GLenum target, GLenum attachment, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGenerateMipmapEXT (GLenum target);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFEREXTPROC) (GLuint renderbuffer);
-typedef void (APIENTRYP PFNGLBINDRENDERBUFFEREXTPROC) (GLenum target, GLuint renderbuffer);
-typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSEXTPROC) (GLsizei n, const GLuint *renderbuffers);
-typedef void (APIENTRYP PFNGLGENRENDERBUFFERSEXTPROC) (GLsizei n, GLuint *renderbuffers);
-typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
-typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
-typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFEREXTPROC) (GLuint framebuffer);
-typedef void (APIENTRYP PFNGLBINDFRAMEBUFFEREXTPROC) (GLenum target, GLuint framebuffer);
-typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSEXTPROC) (GLsizei n, const GLuint *framebuffers);
-typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSEXTPROC) (GLsizei n, GLuint *framebuffers);
-typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC) (GLenum target);
-typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
-typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
-typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
-typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
-typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGENERATEMIPMAPEXTPROC) (GLenum target);
-#endif
-
-#ifndef GL_GREMEDY_string_marker
-#define GL_GREMEDY_string_marker 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glStringMarkerGREMEDY (GLsizei len, const GLvoid *string);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLSTRINGMARKERGREMEDYPROC) (GLsizei len, const GLvoid *string);
-#endif
-
-#ifndef GL_EXT_packed_depth_stencil
-#define GL_EXT_packed_depth_stencil 1
-#endif
-
-#ifndef GL_EXT_stencil_clear_tag
-#define GL_EXT_stencil_clear_tag 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glStencilClearTagEXT (GLsizei stencilTagBits, GLuint stencilClearTag);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLSTENCILCLEARTAGEXTPROC) (GLsizei stencilTagBits, GLuint stencilClearTag);
-#endif
-
-#ifndef GL_EXT_texture_sRGB
-#define GL_EXT_texture_sRGB 1
-#endif
-
-#ifndef GL_EXT_framebuffer_blit
-#define GL_EXT_framebuffer_blit 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBlitFramebufferEXT (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBLITFRAMEBUFFEREXTPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
-#endif
-
-#ifndef GL_EXT_framebuffer_multisample
-#define GL_EXT_framebuffer_multisample 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glRenderbufferStorageMultisampleEXT (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
-#endif
-
-#ifndef GL_MESAX_texture_stack
-#define GL_MESAX_texture_stack 1
-#endif
-
-#ifndef GL_EXT_timer_query
-#define GL_EXT_timer_query 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glGetQueryObjecti64vEXT (GLuint id, GLenum pname, GLint64EXT *params);
-GLAPI void APIENTRY glGetQueryObjectui64vEXT (GLuint id, GLenum pname, GLuint64EXT *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VEXTPROC) (GLuint id, GLenum pname, GLint64EXT *params);
-typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VEXTPROC) (GLuint id, GLenum pname, GLuint64EXT *params);
-#endif
-
-#ifndef GL_EXT_gpu_program_parameters
-#define GL_EXT_gpu_program_parameters 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glProgramEnvParameters4fvEXT (GLenum target, GLuint index, GLsizei count, const GLfloat *params);
-GLAPI void APIENTRY glProgramLocalParameters4fvEXT (GLenum target, GLuint index, GLsizei count, const GLfloat *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERS4FVEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat *params);
-typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat *params);
-#endif
-
-#ifndef GL_APPLE_flush_buffer_range
-#define GL_APPLE_flush_buffer_range 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBufferParameteriAPPLE (GLenum target, GLenum pname, GLint param);
-GLAPI void APIENTRY glFlushMappedBufferRangeAPPLE (GLenum target, GLintptr offset, GLsizeiptr size);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBUFFERPARAMETERIAPPLEPROC) (GLenum target, GLenum pname, GLint param);
-typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC) (GLenum target, GLintptr offset, GLsizeiptr size);
-#endif
-
-#ifndef GL_NV_gpu_program4
-#define GL_NV_gpu_program4 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glProgramLocalParameterI4iNV (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
-GLAPI void APIENTRY glProgramLocalParameterI4ivNV (GLenum target, GLuint index, const GLint *params);
-GLAPI void APIENTRY glProgramLocalParametersI4ivNV (GLenum target, GLuint index, GLsizei count, const GLint *params);
-GLAPI void APIENTRY glProgramLocalParameterI4uiNV (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
-GLAPI void APIENTRY glProgramLocalParameterI4uivNV (GLenum target, GLuint index, const GLuint *params);
-GLAPI void APIENTRY glProgramLocalParametersI4uivNV (GLenum target, GLuint index, GLsizei count, const GLuint *params);
-GLAPI void APIENTRY glProgramEnvParameterI4iNV (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
-GLAPI void APIENTRY glProgramEnvParameterI4ivNV (GLenum target, GLuint index, const GLint *params);
-GLAPI void APIENTRY glProgramEnvParametersI4ivNV (GLenum target, GLuint index, GLsizei count, const GLint *params);
-GLAPI void APIENTRY glProgramEnvParameterI4uiNV (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
-GLAPI void APIENTRY glProgramEnvParameterI4uivNV (GLenum target, GLuint index, const GLuint *params);
-GLAPI void APIENTRY glProgramEnvParametersI4uivNV (GLenum target, GLuint index, GLsizei count, const GLuint *params);
-GLAPI void APIENTRY glGetProgramLocalParameterIivNV (GLenum target, GLuint index, GLint *params);
-GLAPI void APIENTRY glGetProgramLocalParameterIuivNV (GLenum target, GLuint index, GLuint *params);
-GLAPI void APIENTRY glGetProgramEnvParameterIivNV (GLenum target, GLuint index, GLint *params);
-GLAPI void APIENTRY glGetProgramEnvParameterIuivNV (GLenum target, GLuint index, GLuint *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4INVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
-typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4IVNVPROC) (GLenum target, GLuint index, const GLint *params);
-typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERSI4IVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint *params);
-typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4UINVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
-typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4UIVNVPROC) (GLenum target, GLuint index, const GLuint *params);
-typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERSI4UIVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint *params);
-typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4INVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
-typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4IVNVPROC) (GLenum target, GLuint index, const GLint *params);
-typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERSI4IVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint *params);
-typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4UINVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
-typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4UIVNVPROC) (GLenum target, GLuint index, const GLuint *params);
-typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERSI4UIVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint *params);
-typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERIIVNVPROC) (GLenum target, GLuint index, GLint *params);
-typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERIUIVNVPROC) (GLenum target, GLuint index, GLuint *params);
-typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERIIVNVPROC) (GLenum target, GLuint index, GLint *params);
-typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERIUIVNVPROC) (GLenum target, GLuint index, GLuint *params);
-#endif
-
-#ifndef GL_NV_geometry_program4
-#define GL_NV_geometry_program4 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glProgramVertexLimitNV (GLenum target, GLint limit);
-GLAPI void APIENTRY glFramebufferTextureEXT (GLenum target, GLenum attachment, GLuint texture, GLint level);
-GLAPI void APIENTRY glFramebufferTextureLayerEXT (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
-GLAPI void APIENTRY glFramebufferTextureFaceEXT (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLPROGRAMVERTEXLIMITNVPROC) (GLenum target, GLint limit);
-typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
-typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYEREXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
-typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREFACEEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
-#endif
-
-#ifndef GL_EXT_geometry_shader4
-#define GL_EXT_geometry_shader4 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glProgramParameteriEXT (GLuint program, GLenum pname, GLint value);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIEXTPROC) (GLuint program, GLenum pname, GLint value);
-#endif
-
-#ifndef GL_NV_vertex_program4
-#define GL_NV_vertex_program4 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glVertexAttribI1iEXT (GLuint index, GLint x);
-GLAPI void APIENTRY glVertexAttribI2iEXT (GLuint index, GLint x, GLint y);
-GLAPI void APIENTRY glVertexAttribI3iEXT (GLuint index, GLint x, GLint y, GLint z);
-GLAPI void APIENTRY glVertexAttribI4iEXT (GLuint index, GLint x, GLint y, GLint z, GLint w);
-GLAPI void APIENTRY glVertexAttribI1uiEXT (GLuint index, GLuint x);
-GLAPI void APIENTRY glVertexAttribI2uiEXT (GLuint index, GLuint x, GLuint y);
-GLAPI void APIENTRY glVertexAttribI3uiEXT (GLuint index, GLuint x, GLuint y, GLuint z);
-GLAPI void APIENTRY glVertexAttribI4uiEXT (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
-GLAPI void APIENTRY glVertexAttribI1ivEXT (GLuint index, const GLint *v);
-GLAPI void APIENTRY glVertexAttribI2ivEXT (GLuint index, const GLint *v);
-GLAPI void APIENTRY glVertexAttribI3ivEXT (GLuint index, const GLint *v);
-GLAPI void APIENTRY glVertexAttribI4ivEXT (GLuint index, const GLint *v);
-GLAPI void APIENTRY glVertexAttribI1uivEXT (GLuint index, const GLuint *v);
-GLAPI void APIENTRY glVertexAttribI2uivEXT (GLuint index, const GLuint *v);
-GLAPI void APIENTRY glVertexAttribI3uivEXT (GLuint index, const GLuint *v);
-GLAPI void APIENTRY glVertexAttribI4uivEXT (GLuint index, const GLuint *v);
-GLAPI void APIENTRY glVertexAttribI4bvEXT (GLuint index, const GLbyte *v);
-GLAPI void APIENTRY glVertexAttribI4svEXT (GLuint index, const GLshort *v);
-GLAPI void APIENTRY glVertexAttribI4ubvEXT (GLuint index, const GLubyte *v);
-GLAPI void APIENTRY glVertexAttribI4usvEXT (GLuint index, const GLushort *v);
-GLAPI void APIENTRY glVertexAttribIPointerEXT (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-GLAPI void APIENTRY glGetVertexAttribIivEXT (GLuint index, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetVertexAttribIuivEXT (GLuint index, GLenum pname, GLuint *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IEXTPROC) (GLuint index, GLint x);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IEXTPROC) (GLuint index, GLint x, GLint y);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IEXTPROC) (GLuint index, GLint x, GLint y, GLint z);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IEXTPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIEXTPROC) (GLuint index, GLuint x);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIEXTPROC) (GLuint index, GLuint x, GLuint y);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVEXTPROC) (GLuint index, const GLint *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVEXTPROC) (GLuint index, const GLint *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVEXTPROC) (GLuint index, const GLint *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVEXTPROC) (GLuint index, const GLint *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVEXTPROC) (GLuint index, const GLuint *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVEXTPROC) (GLuint index, const GLuint *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVEXTPROC) (GLuint index, const GLuint *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVEXTPROC) (GLuint index, const GLuint *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVEXTPROC) (GLuint index, const GLbyte *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVEXTPROC) (GLuint index, const GLshort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVEXTPROC) (GLuint index, const GLubyte *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVEXTPROC) (GLuint index, const GLushort *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTEREXTPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVEXTPROC) (GLuint index, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVEXTPROC) (GLuint index, GLenum pname, GLuint *params);
-#endif
-
-#ifndef GL_EXT_gpu_shader4
-#define GL_EXT_gpu_shader4 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glGetUniformuivEXT (GLuint program, GLint location, GLuint *params);
-GLAPI void APIENTRY glBindFragDataLocationEXT (GLuint program, GLuint color, const GLchar *name);
-GLAPI GLint APIENTRY glGetFragDataLocationEXT (GLuint program, const GLchar *name);
-GLAPI void APIENTRY glUniform1uiEXT (GLint location, GLuint v0);
-GLAPI void APIENTRY glUniform2uiEXT (GLint location, GLuint v0, GLuint v1);
-GLAPI void APIENTRY glUniform3uiEXT (GLint location, GLuint v0, GLuint v1, GLuint v2);
-GLAPI void APIENTRY glUniform4uiEXT (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
-GLAPI void APIENTRY glUniform1uivEXT (GLint location, GLsizei count, const GLuint *value);
-GLAPI void APIENTRY glUniform2uivEXT (GLint location, GLsizei count, const GLuint *value);
-GLAPI void APIENTRY glUniform3uivEXT (GLint location, GLsizei count, const GLuint *value);
-GLAPI void APIENTRY glUniform4uivEXT (GLint location, GLsizei count, const GLuint *value);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLGETUNIFORMUIVEXTPROC) (GLuint program, GLint location, GLuint *params);
-typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONEXTPROC) (GLuint program, GLuint color, const GLchar *name);
-typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONEXTPROC) (GLuint program, const GLchar *name);
-typedef void (APIENTRYP PFNGLUNIFORM1UIEXTPROC) (GLint location, GLuint v0);
-typedef void (APIENTRYP PFNGLUNIFORM2UIEXTPROC) (GLint location, GLuint v0, GLuint v1);
-typedef void (APIENTRYP PFNGLUNIFORM3UIEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2);
-typedef void (APIENTRYP PFNGLUNIFORM4UIEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
-typedef void (APIENTRYP PFNGLUNIFORM1UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value);
-typedef void (APIENTRYP PFNGLUNIFORM2UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value);
-typedef void (APIENTRYP PFNGLUNIFORM3UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value);
-typedef void (APIENTRYP PFNGLUNIFORM4UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value);
-#endif
-
-#ifndef GL_EXT_draw_instanced
-#define GL_EXT_draw_instanced 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glDrawArraysInstancedEXT (GLenum mode, GLint start, GLsizei count, GLsizei primcount);
-GLAPI void APIENTRY glDrawElementsInstancedEXT (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDEXTPROC) (GLenum mode, GLint start, GLsizei count, GLsizei primcount);
-typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDEXTPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount);
-#endif
-
-#ifndef GL_EXT_packed_float
-#define GL_EXT_packed_float 1
-#endif
-
-#ifndef GL_EXT_texture_array
-#define GL_EXT_texture_array 1
-#endif
-
-#ifndef GL_EXT_texture_buffer_object
-#define GL_EXT_texture_buffer_object 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glTexBufferEXT (GLenum target, GLenum internalformat, GLuint buffer);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLTEXBUFFEREXTPROC) (GLenum target, GLenum internalformat, GLuint buffer);
-#endif
-
-#ifndef GL_EXT_texture_compression_latc
-#define GL_EXT_texture_compression_latc 1
-#endif
-
-#ifndef GL_EXT_texture_compression_rgtc
-#define GL_EXT_texture_compression_rgtc 1
-#endif
-
-#ifndef GL_EXT_texture_shared_exponent
-#define GL_EXT_texture_shared_exponent 1
-#endif
-
-#ifndef GL_NV_depth_buffer_float
-#define GL_NV_depth_buffer_float 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glDepthRangedNV (GLdouble zNear, GLdouble zFar);
-GLAPI void APIENTRY glClearDepthdNV (GLdouble depth);
-GLAPI void APIENTRY glDepthBoundsdNV (GLdouble zmin, GLdouble zmax);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLDEPTHRANGEDNVPROC) (GLdouble zNear, GLdouble zFar);
-typedef void (APIENTRYP PFNGLCLEARDEPTHDNVPROC) (GLdouble depth);
-typedef void (APIENTRYP PFNGLDEPTHBOUNDSDNVPROC) (GLdouble zmin, GLdouble zmax);
-#endif
-
-#ifndef GL_NV_fragment_program4
-#define GL_NV_fragment_program4 1
-#endif
-
-#ifndef GL_NV_framebuffer_multisample_coverage
-#define GL_NV_framebuffer_multisample_coverage 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glRenderbufferStorageMultisampleCoverageNV (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height);
-#endif
-
-#ifndef GL_EXT_framebuffer_sRGB
-#define GL_EXT_framebuffer_sRGB 1
-#endif
-
-#ifndef GL_NV_geometry_shader4
-#define GL_NV_geometry_shader4 1
-#endif
-
-#ifndef GL_NV_parameter_buffer_object
-#define GL_NV_parameter_buffer_object 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glProgramBufferParametersfvNV (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLfloat *params);
-GLAPI void APIENTRY glProgramBufferParametersIivNV (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLint *params);
-GLAPI void APIENTRY glProgramBufferParametersIuivNV (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLuint *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSFVNVPROC) (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLfloat *params);
-typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSIIVNVPROC) (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLint *params);
-typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSIUIVNVPROC) (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLuint *params);
-#endif
-
-#ifndef GL_EXT_draw_buffers2
-#define GL_EXT_draw_buffers2 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glColorMaskIndexedEXT (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
-GLAPI void APIENTRY glGetBooleanIndexedvEXT (GLenum target, GLuint index, GLboolean *data);
-GLAPI void APIENTRY glGetIntegerIndexedvEXT (GLenum target, GLuint index, GLint *data);
-GLAPI void APIENTRY glEnableIndexedEXT (GLenum target, GLuint index);
-GLAPI void APIENTRY glDisableIndexedEXT (GLenum target, GLuint index);
-GLAPI GLboolean APIENTRY glIsEnabledIndexedEXT (GLenum target, GLuint index);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLCOLORMASKINDEXEDEXTPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
-typedef void (APIENTRYP PFNGLGETBOOLEANINDEXEDVEXTPROC) (GLenum target, GLuint index, GLboolean *data);
-typedef void (APIENTRYP PFNGLGETINTEGERINDEXEDVEXTPROC) (GLenum target, GLuint index, GLint *data);
-typedef void (APIENTRYP PFNGLENABLEINDEXEDEXTPROC) (GLenum target, GLuint index);
-typedef void (APIENTRYP PFNGLDISABLEINDEXEDEXTPROC) (GLenum target, GLuint index);
-typedef GLboolean (APIENTRYP PFNGLISENABLEDINDEXEDEXTPROC) (GLenum target, GLuint index);
-#endif
-
-#ifndef GL_NV_transform_feedback
-#define GL_NV_transform_feedback 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBeginTransformFeedbackNV (GLenum primitiveMode);
-GLAPI void APIENTRY glEndTransformFeedbackNV (void);
-GLAPI void APIENTRY glTransformFeedbackAttribsNV (GLuint count, const GLint *attribs, GLenum bufferMode);
-GLAPI void APIENTRY glBindBufferRangeNV (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
-GLAPI void APIENTRY glBindBufferOffsetNV (GLenum target, GLuint index, GLuint buffer, GLintptr offset);
-GLAPI void APIENTRY glBindBufferBaseNV (GLenum target, GLuint index, GLuint buffer);
-GLAPI void APIENTRY glTransformFeedbackVaryingsNV (GLuint program, GLsizei count, const GLint *locations, GLenum bufferMode);
-GLAPI void APIENTRY glActiveVaryingNV (GLuint program, const GLchar *name);
-GLAPI GLint APIENTRY glGetVaryingLocationNV (GLuint program, const GLchar *name);
-GLAPI void APIENTRY glGetActiveVaryingNV (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
-GLAPI void APIENTRY glGetTransformFeedbackVaryingNV (GLuint program, GLuint index, GLint *location);
-GLAPI void APIENTRY glTransformFeedbackStreamAttribsNV (GLsizei count, const GLint *attribs, GLsizei nbuffers, const GLint *bufstreams, GLenum bufferMode);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKNVPROC) (GLenum primitiveMode);
-typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKNVPROC) (void);
-typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKATTRIBSNVPROC) (GLuint count, const GLint *attribs, GLenum bufferMode);
-typedef void (APIENTRYP PFNGLBINDBUFFERRANGENVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
-typedef void (APIENTRYP PFNGLBINDBUFFEROFFSETNVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset);
-typedef void (APIENTRYP PFNGLBINDBUFFERBASENVPROC) (GLenum target, GLuint index, GLuint buffer);
-typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSNVPROC) (GLuint program, GLsizei count, const GLint *locations, GLenum bufferMode);
-typedef void (APIENTRYP PFNGLACTIVEVARYINGNVPROC) (GLuint program, const GLchar *name);
-typedef GLint (APIENTRYP PFNGLGETVARYINGLOCATIONNVPROC) (GLuint program, const GLchar *name);
-typedef void (APIENTRYP PFNGLGETACTIVEVARYINGNVPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
-typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGNVPROC) (GLuint program, GLuint index, GLint *location);
-typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKSTREAMATTRIBSNVPROC) (GLsizei count, const GLint *attribs, GLsizei nbuffers, const GLint *bufstreams, GLenum bufferMode);
-#endif
-
-#ifndef GL_EXT_bindable_uniform
-#define GL_EXT_bindable_uniform 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glUniformBufferEXT (GLuint program, GLint location, GLuint buffer);
-GLAPI GLint APIENTRY glGetUniformBufferSizeEXT (GLuint program, GLint location);
-GLAPI GLintptr APIENTRY glGetUniformOffsetEXT (GLuint program, GLint location);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLUNIFORMBUFFEREXTPROC) (GLuint program, GLint location, GLuint buffer);
-typedef GLint (APIENTRYP PFNGLGETUNIFORMBUFFERSIZEEXTPROC) (GLuint program, GLint location);
-typedef GLintptr (APIENTRYP PFNGLGETUNIFORMOFFSETEXTPROC) (GLuint program, GLint location);
-#endif
-
-#ifndef GL_EXT_texture_integer
-#define GL_EXT_texture_integer 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glTexParameterIivEXT (GLenum target, GLenum pname, const GLint *params);
-GLAPI void APIENTRY glTexParameterIuivEXT (GLenum target, GLenum pname, const GLuint *params);
-GLAPI void APIENTRY glGetTexParameterIivEXT (GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetTexParameterIuivEXT (GLenum target, GLenum pname, GLuint *params);
-GLAPI void APIENTRY glClearColorIiEXT (GLint red, GLint green, GLint blue, GLint alpha);
-GLAPI void APIENTRY glClearColorIuiEXT (GLuint red, GLuint green, GLuint blue, GLuint alpha);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, const GLint *params);
-typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, const GLuint *params);
-typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, GLuint *params);
-typedef void (APIENTRYP PFNGLCLEARCOLORIIEXTPROC) (GLint red, GLint green, GLint blue, GLint alpha);
-typedef void (APIENTRYP PFNGLCLEARCOLORIUIEXTPROC) (GLuint red, GLuint green, GLuint blue, GLuint alpha);
-#endif
-
-#ifndef GL_GREMEDY_frame_terminator
-#define GL_GREMEDY_frame_terminator 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glFrameTerminatorGREMEDY (void);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLFRAMETERMINATORGREMEDYPROC) (void);
-#endif
-
-#ifndef GL_NV_conditional_render
-#define GL_NV_conditional_render 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBeginConditionalRenderNV (GLuint id, GLenum mode);
-GLAPI void APIENTRY glEndConditionalRenderNV (void);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERNVPROC) (GLuint id, GLenum mode);
-typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERNVPROC) (void);
-#endif
-
-#ifndef GL_NV_present_video
-#define GL_NV_present_video 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glPresentFrameKeyedNV (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLuint key0, GLenum target1, GLuint fill1, GLuint key1);
-GLAPI void APIENTRY glPresentFrameDualFillNV (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLenum target1, GLuint fill1, GLenum target2, GLuint fill2, GLenum target3, GLuint fill3);
-GLAPI void APIENTRY glGetVideoivNV (GLuint video_slot, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetVideouivNV (GLuint video_slot, GLenum pname, GLuint *params);
-GLAPI void APIENTRY glGetVideoi64vNV (GLuint video_slot, GLenum pname, GLint64EXT *params);
-GLAPI void APIENTRY glGetVideoui64vNV (GLuint video_slot, GLenum pname, GLuint64EXT *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLPRESENTFRAMEKEYEDNVPROC) (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLuint key0, GLenum target1, GLuint fill1, GLuint key1);
-typedef void (APIENTRYP PFNGLPRESENTFRAMEDUALFILLNVPROC) (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLenum target1, GLuint fill1, GLenum target2, GLuint fill2, GLenum target3, GLuint fill3);
-typedef void (APIENTRYP PFNGLGETVIDEOIVNVPROC) (GLuint video_slot, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETVIDEOUIVNVPROC) (GLuint video_slot, GLenum pname, GLuint *params);
-typedef void (APIENTRYP PFNGLGETVIDEOI64VNVPROC) (GLuint video_slot, GLenum pname, GLint64EXT *params);
-typedef void (APIENTRYP PFNGLGETVIDEOUI64VNVPROC) (GLuint video_slot, GLenum pname, GLuint64EXT *params);
-#endif
-
-#ifndef GL_EXT_transform_feedback
-#define GL_EXT_transform_feedback 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBeginTransformFeedbackEXT (GLenum primitiveMode);
-GLAPI void APIENTRY glEndTransformFeedbackEXT (void);
-GLAPI void APIENTRY glBindBufferRangeEXT (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
-GLAPI void APIENTRY glBindBufferOffsetEXT (GLenum target, GLuint index, GLuint buffer, GLintptr offset);
-GLAPI void APIENTRY glBindBufferBaseEXT (GLenum target, GLuint index, GLuint buffer);
-GLAPI void APIENTRY glTransformFeedbackVaryingsEXT (GLuint program, GLsizei count, const GLchar* *varyings, GLenum bufferMode);
-GLAPI void APIENTRY glGetTransformFeedbackVaryingEXT (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKEXTPROC) (GLenum primitiveMode);
-typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKEXTPROC) (void);
-typedef void (APIENTRYP PFNGLBINDBUFFERRANGEEXTPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
-typedef void (APIENTRYP PFNGLBINDBUFFEROFFSETEXTPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset);
-typedef void (APIENTRYP PFNGLBINDBUFFERBASEEXTPROC) (GLenum target, GLuint index, GLuint buffer);
-typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSEXTPROC) (GLuint program, GLsizei count, const GLchar* *varyings, GLenum bufferMode);
-typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGEXTPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
-#endif
-
-#ifndef GL_EXT_direct_state_access
-#define GL_EXT_direct_state_access 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glClientAttribDefaultEXT (GLbitfield mask);
-GLAPI void APIENTRY glPushClientAttribDefaultEXT (GLbitfield mask);
-GLAPI void APIENTRY glMatrixLoadfEXT (GLenum mode, const GLfloat *m);
-GLAPI void APIENTRY glMatrixLoaddEXT (GLenum mode, const GLdouble *m);
-GLAPI void APIENTRY glMatrixMultfEXT (GLenum mode, const GLfloat *m);
-GLAPI void APIENTRY glMatrixMultdEXT (GLenum mode, const GLdouble *m);
-GLAPI void APIENTRY glMatrixLoadIdentityEXT (GLenum mode);
-GLAPI void APIENTRY glMatrixRotatefEXT (GLenum mode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glMatrixRotatedEXT (GLenum mode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
-GLAPI void APIENTRY glMatrixScalefEXT (GLenum mode, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glMatrixScaledEXT (GLenum mode, GLdouble x, GLdouble y, GLdouble z);
-GLAPI void APIENTRY glMatrixTranslatefEXT (GLenum mode, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void APIENTRY glMatrixTranslatedEXT (GLenum mode, GLdouble x, GLdouble y, GLdouble z);
-GLAPI void APIENTRY glMatrixFrustumEXT (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
-GLAPI void APIENTRY glMatrixOrthoEXT (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
-GLAPI void APIENTRY glMatrixPopEXT (GLenum mode);
-GLAPI void APIENTRY glMatrixPushEXT (GLenum mode);
-GLAPI void APIENTRY glMatrixLoadTransposefEXT (GLenum mode, const GLfloat *m);
-GLAPI void APIENTRY glMatrixLoadTransposedEXT (GLenum mode, const GLdouble *m);
-GLAPI void APIENTRY glMatrixMultTransposefEXT (GLenum mode, const GLfloat *m);
-GLAPI void APIENTRY glMatrixMultTransposedEXT (GLenum mode, const GLdouble *m);
-GLAPI void APIENTRY glTextureParameterfEXT (GLuint texture, GLenum target, GLenum pname, GLfloat param);
-GLAPI void APIENTRY glTextureParameterfvEXT (GLuint texture, GLenum target, GLenum pname, const GLfloat *params);
-GLAPI void APIENTRY glTextureParameteriEXT (GLuint texture, GLenum target, GLenum pname, GLint param);
-GLAPI void APIENTRY glTextureParameterivEXT (GLuint texture, GLenum target, GLenum pname, const GLint *params);
-GLAPI void APIENTRY glTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void APIENTRY glTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void APIENTRY glTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void APIENTRY glTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void APIENTRY glCopyTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
-GLAPI void APIENTRY glCopyTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
-GLAPI void APIENTRY glCopyTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
-GLAPI void APIENTRY glCopyTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
-GLAPI void APIENTRY glGetTextureImageEXT (GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
-GLAPI void APIENTRY glGetTextureParameterfvEXT (GLuint texture, GLenum target, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetTextureParameterivEXT (GLuint texture, GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetTextureLevelParameterfvEXT (GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetTextureLevelParameterivEXT (GLuint texture, GLenum target, GLint level, GLenum pname, GLint *params);
-GLAPI void APIENTRY glTextureImage3DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void APIENTRY glTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void APIENTRY glCopyTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
-GLAPI void APIENTRY glMultiTexParameterfEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat param);
-GLAPI void APIENTRY glMultiTexParameterfvEXT (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params);
-GLAPI void APIENTRY glMultiTexParameteriEXT (GLenum texunit, GLenum target, GLenum pname, GLint param);
-GLAPI void APIENTRY glMultiTexParameterivEXT (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
-GLAPI void APIENTRY glMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void APIENTRY glMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void APIENTRY glMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void APIENTRY glMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void APIENTRY glCopyMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
-GLAPI void APIENTRY glCopyMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
-GLAPI void APIENTRY glCopyMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
-GLAPI void APIENTRY glCopyMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
-GLAPI void APIENTRY glGetMultiTexImageEXT (GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
-GLAPI void APIENTRY glGetMultiTexParameterfvEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetMultiTexParameterivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetMultiTexLevelParameterfvEXT (GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetMultiTexLevelParameterivEXT (GLenum texunit, GLenum target, GLint level, GLenum pname, GLint *params);
-GLAPI void APIENTRY glMultiTexImage3DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void APIENTRY glMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void APIENTRY glCopyMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
-GLAPI void APIENTRY glBindMultiTextureEXT (GLenum texunit, GLenum target, GLuint texture);
-GLAPI void APIENTRY glEnableClientStateIndexedEXT (GLenum array, GLuint index);
-GLAPI void APIENTRY glDisableClientStateIndexedEXT (GLenum array, GLuint index);
-GLAPI void APIENTRY glMultiTexCoordPointerEXT (GLenum texunit, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-GLAPI void APIENTRY glMultiTexEnvfEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat param);
-GLAPI void APIENTRY glMultiTexEnvfvEXT (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params);
-GLAPI void APIENTRY glMultiTexEnviEXT (GLenum texunit, GLenum target, GLenum pname, GLint param);
-GLAPI void APIENTRY glMultiTexEnvivEXT (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
-GLAPI void APIENTRY glMultiTexGendEXT (GLenum texunit, GLenum coord, GLenum pname, GLdouble param);
-GLAPI void APIENTRY glMultiTexGendvEXT (GLenum texunit, GLenum coord, GLenum pname, const GLdouble *params);
-GLAPI void APIENTRY glMultiTexGenfEXT (GLenum texunit, GLenum coord, GLenum pname, GLfloat param);
-GLAPI void APIENTRY glMultiTexGenfvEXT (GLenum texunit, GLenum coord, GLenum pname, const GLfloat *params);
-GLAPI void APIENTRY glMultiTexGeniEXT (GLenum texunit, GLenum coord, GLenum pname, GLint param);
-GLAPI void APIENTRY glMultiTexGenivEXT (GLenum texunit, GLenum coord, GLenum pname, const GLint *params);
-GLAPI void APIENTRY glGetMultiTexEnvfvEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetMultiTexEnvivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetMultiTexGendvEXT (GLenum texunit, GLenum coord, GLenum pname, GLdouble *params);
-GLAPI void APIENTRY glGetMultiTexGenfvEXT (GLenum texunit, GLenum coord, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetMultiTexGenivEXT (GLenum texunit, GLenum coord, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetFloatIndexedvEXT (GLenum target, GLuint index, GLfloat *data);
-GLAPI void APIENTRY glGetDoubleIndexedvEXT (GLenum target, GLuint index, GLdouble *data);
-GLAPI void APIENTRY glGetPointerIndexedvEXT (GLenum target, GLuint index, GLvoid* *data);
-GLAPI void APIENTRY glCompressedTextureImage3DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *bits);
-GLAPI void APIENTRY glCompressedTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *bits);
-GLAPI void APIENTRY glCompressedTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *bits);
-GLAPI void APIENTRY glCompressedTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *bits);
-GLAPI void APIENTRY glCompressedTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *bits);
-GLAPI void APIENTRY glCompressedTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *bits);
-GLAPI void APIENTRY glGetCompressedTextureImageEXT (GLuint texture, GLenum target, GLint lod, GLvoid *img);
-GLAPI void APIENTRY glCompressedMultiTexImage3DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *bits);
-GLAPI void APIENTRY glCompressedMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *bits);
-GLAPI void APIENTRY glCompressedMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *bits);
-GLAPI void APIENTRY glCompressedMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *bits);
-GLAPI void APIENTRY glCompressedMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *bits);
-GLAPI void APIENTRY glCompressedMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *bits);
-GLAPI void APIENTRY glGetCompressedMultiTexImageEXT (GLenum texunit, GLenum target, GLint lod, GLvoid *img);
-GLAPI void APIENTRY glNamedProgramStringEXT (GLuint program, GLenum target, GLenum format, GLsizei len, const GLvoid *string);
-GLAPI void APIENTRY glNamedProgramLocalParameter4dEXT (GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-GLAPI void APIENTRY glNamedProgramLocalParameter4dvEXT (GLuint program, GLenum target, GLuint index, const GLdouble *params);
-GLAPI void APIENTRY glNamedProgramLocalParameter4fEXT (GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-GLAPI void APIENTRY glNamedProgramLocalParameter4fvEXT (GLuint program, GLenum target, GLuint index, const GLfloat *params);
-GLAPI void APIENTRY glGetNamedProgramLocalParameterdvEXT (GLuint program, GLenum target, GLuint index, GLdouble *params);
-GLAPI void APIENTRY glGetNamedProgramLocalParameterfvEXT (GLuint program, GLenum target, GLuint index, GLfloat *params);
-GLAPI void APIENTRY glGetNamedProgramivEXT (GLuint program, GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetNamedProgramStringEXT (GLuint program, GLenum target, GLenum pname, GLvoid *string);
-GLAPI void APIENTRY glNamedProgramLocalParameters4fvEXT (GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat *params);
-GLAPI void APIENTRY glNamedProgramLocalParameterI4iEXT (GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
-GLAPI void APIENTRY glNamedProgramLocalParameterI4ivEXT (GLuint program, GLenum target, GLuint index, const GLint *params);
-GLAPI void APIENTRY glNamedProgramLocalParametersI4ivEXT (GLuint program, GLenum target, GLuint index, GLsizei count, const GLint *params);
-GLAPI void APIENTRY glNamedProgramLocalParameterI4uiEXT (GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
-GLAPI void APIENTRY glNamedProgramLocalParameterI4uivEXT (GLuint program, GLenum target, GLuint index, const GLuint *params);
-GLAPI void APIENTRY glNamedProgramLocalParametersI4uivEXT (GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint *params);
-GLAPI void APIENTRY glGetNamedProgramLocalParameterIivEXT (GLuint program, GLenum target, GLuint index, GLint *params);
-GLAPI void APIENTRY glGetNamedProgramLocalParameterIuivEXT (GLuint program, GLenum target, GLuint index, GLuint *params);
-GLAPI void APIENTRY glTextureParameterIivEXT (GLuint texture, GLenum target, GLenum pname, const GLint *params);
-GLAPI void APIENTRY glTextureParameterIuivEXT (GLuint texture, GLenum target, GLenum pname, const GLuint *params);
-GLAPI void APIENTRY glGetTextureParameterIivEXT (GLuint texture, GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetTextureParameterIuivEXT (GLuint texture, GLenum target, GLenum pname, GLuint *params);
-GLAPI void APIENTRY glMultiTexParameterIivEXT (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
-GLAPI void APIENTRY glMultiTexParameterIuivEXT (GLenum texunit, GLenum target, GLenum pname, const GLuint *params);
-GLAPI void APIENTRY glGetMultiTexParameterIivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetMultiTexParameterIuivEXT (GLenum texunit, GLenum target, GLenum pname, GLuint *params);
-GLAPI void APIENTRY glProgramUniform1fEXT (GLuint program, GLint location, GLfloat v0);
-GLAPI void APIENTRY glProgramUniform2fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1);
-GLAPI void APIENTRY glProgramUniform3fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
-GLAPI void APIENTRY glProgramUniform4fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
-GLAPI void APIENTRY glProgramUniform1iEXT (GLuint program, GLint location, GLint v0);
-GLAPI void APIENTRY glProgramUniform2iEXT (GLuint program, GLint location, GLint v0, GLint v1);
-GLAPI void APIENTRY glProgramUniform3iEXT (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
-GLAPI void APIENTRY glProgramUniform4iEXT (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
-GLAPI void APIENTRY glProgramUniform1fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniform2fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniform3fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniform4fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniform1ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
-GLAPI void APIENTRY glProgramUniform2ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
-GLAPI void APIENTRY glProgramUniform3ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
-GLAPI void APIENTRY glProgramUniform4ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
-GLAPI void APIENTRY glProgramUniformMatrix2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniformMatrix3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniformMatrix4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniformMatrix2x3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniformMatrix3x2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniformMatrix2x4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniformMatrix4x2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniformMatrix3x4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniformMatrix4x3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void APIENTRY glProgramUniform1uiEXT (GLuint program, GLint location, GLuint v0);
-GLAPI void APIENTRY glProgramUniform2uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1);
-GLAPI void APIENTRY glProgramUniform3uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
-GLAPI void APIENTRY glProgramUniform4uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
-GLAPI void APIENTRY glProgramUniform1uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
-GLAPI void APIENTRY glProgramUniform2uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
-GLAPI void APIENTRY glProgramUniform3uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
-GLAPI void APIENTRY glProgramUniform4uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
-GLAPI void APIENTRY glNamedBufferDataEXT (GLuint buffer, GLsizeiptr size, const GLvoid *data, GLenum usage);
-GLAPI void APIENTRY glNamedBufferSubDataEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, const GLvoid *data);
-GLAPI GLvoid* APIENTRY glMapNamedBufferEXT (GLuint buffer, GLenum access);
-GLAPI GLboolean APIENTRY glUnmapNamedBufferEXT (GLuint buffer);
-GLAPI GLvoid* APIENTRY glMapNamedBufferRangeEXT (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access);
-GLAPI void APIENTRY glFlushMappedNamedBufferRangeEXT (GLuint buffer, GLintptr offset, GLsizeiptr length);
-GLAPI void APIENTRY glNamedCopyBufferSubDataEXT (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
-GLAPI void APIENTRY glGetNamedBufferParameterivEXT (GLuint buffer, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetNamedBufferPointervEXT (GLuint buffer, GLenum pname, GLvoid* *params);
-GLAPI void APIENTRY glGetNamedBufferSubDataEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, GLvoid *data);
-GLAPI void APIENTRY glTextureBufferEXT (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer);
-GLAPI void APIENTRY glMultiTexBufferEXT (GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer);
-GLAPI void APIENTRY glNamedRenderbufferStorageEXT (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height);
-GLAPI void APIENTRY glGetNamedRenderbufferParameterivEXT (GLuint renderbuffer, GLenum pname, GLint *params);
-GLAPI GLenum APIENTRY glCheckNamedFramebufferStatusEXT (GLuint framebuffer, GLenum target);
-GLAPI void APIENTRY glNamedFramebufferTexture1DEXT (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
-GLAPI void APIENTRY glNamedFramebufferTexture2DEXT (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
-GLAPI void APIENTRY glNamedFramebufferTexture3DEXT (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
-GLAPI void APIENTRY glNamedFramebufferRenderbufferEXT (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
-GLAPI void APIENTRY glGetNamedFramebufferAttachmentParameterivEXT (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGenerateTextureMipmapEXT (GLuint texture, GLenum target);
-GLAPI void APIENTRY glGenerateMultiTexMipmapEXT (GLenum texunit, GLenum target);
-GLAPI void APIENTRY glFramebufferDrawBufferEXT (GLuint framebuffer, GLenum mode);
-GLAPI void APIENTRY glFramebufferDrawBuffersEXT (GLuint framebuffer, GLsizei n, const GLenum *bufs);
-GLAPI void APIENTRY glFramebufferReadBufferEXT (GLuint framebuffer, GLenum mode);
-GLAPI void APIENTRY glGetFramebufferParameterivEXT (GLuint framebuffer, GLenum pname, GLint *params);
-GLAPI void APIENTRY glNamedRenderbufferStorageMultisampleEXT (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
-GLAPI void APIENTRY glNamedRenderbufferStorageMultisampleCoverageEXT (GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height);
-GLAPI void APIENTRY glNamedFramebufferTextureEXT (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level);
-GLAPI void APIENTRY glNamedFramebufferTextureLayerEXT (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer);
-GLAPI void APIENTRY glNamedFramebufferTextureFaceEXT (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face);
-GLAPI void APIENTRY glTextureRenderbufferEXT (GLuint texture, GLenum target, GLuint renderbuffer);
-GLAPI void APIENTRY glMultiTexRenderbufferEXT (GLenum texunit, GLenum target, GLuint renderbuffer);
-GLAPI void APIENTRY glProgramUniform1dEXT (GLuint program, GLint location, GLdouble x);
-GLAPI void APIENTRY glProgramUniform2dEXT (GLuint program, GLint location, GLdouble x, GLdouble y);
-GLAPI void APIENTRY glProgramUniform3dEXT (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z);
-GLAPI void APIENTRY glProgramUniform4dEXT (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-GLAPI void APIENTRY glProgramUniform1dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value);
-GLAPI void APIENTRY glProgramUniform2dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value);
-GLAPI void APIENTRY glProgramUniform3dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value);
-GLAPI void APIENTRY glProgramUniform4dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value);
-GLAPI void APIENTRY glProgramUniformMatrix2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glProgramUniformMatrix3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glProgramUniformMatrix4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glProgramUniformMatrix2x3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glProgramUniformMatrix2x4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glProgramUniformMatrix3x2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glProgramUniformMatrix3x4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glProgramUniformMatrix4x2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-GLAPI void APIENTRY glProgramUniformMatrix4x3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask);
-typedef void (APIENTRYP PFNGLPUSHCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask);
-typedef void (APIENTRYP PFNGLMATRIXLOADFEXTPROC) (GLenum mode, const GLfloat *m);
-typedef void (APIENTRYP PFNGLMATRIXLOADDEXTPROC) (GLenum mode, const GLdouble *m);
-typedef void (APIENTRYP PFNGLMATRIXMULTFEXTPROC) (GLenum mode, const GLfloat *m);
-typedef void (APIENTRYP PFNGLMATRIXMULTDEXTPROC) (GLenum mode, const GLdouble *m);
-typedef void (APIENTRYP PFNGLMATRIXLOADIDENTITYEXTPROC) (GLenum mode);
-typedef void (APIENTRYP PFNGLMATRIXROTATEFEXTPROC) (GLenum mode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLMATRIXROTATEDEXTPROC) (GLenum mode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
-typedef void (APIENTRYP PFNGLMATRIXSCALEFEXTPROC) (GLenum mode, GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLMATRIXSCALEDEXTPROC) (GLenum mode, GLdouble x, GLdouble y, GLdouble z);
-typedef void (APIENTRYP PFNGLMATRIXTRANSLATEFEXTPROC) (GLenum mode, GLfloat x, GLfloat y, GLfloat z);
-typedef void (APIENTRYP PFNGLMATRIXTRANSLATEDEXTPROC) (GLenum mode, GLdouble x, GLdouble y, GLdouble z);
-typedef void (APIENTRYP PFNGLMATRIXFRUSTUMEXTPROC) (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
-typedef void (APIENTRYP PFNGLMATRIXORTHOEXTPROC) (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
-typedef void (APIENTRYP PFNGLMATRIXPOPEXTPROC) (GLenum mode);
-typedef void (APIENTRYP PFNGLMATRIXPUSHEXTPROC) (GLenum mode);
-typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSEFEXTPROC) (GLenum mode, const GLfloat *m);
-typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSEDEXTPROC) (GLenum mode, const GLdouble *m);
-typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSEFEXTPROC) (GLenum mode, const GLfloat *m);
-typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSEDEXTPROC) (GLenum mode, const GLdouble *m);
-typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat param);
-typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLfloat *params);
-typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint param);
-typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint *params);
-typedef void (APIENTRYP PFNGLTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-typedef void (APIENTRYP PFNGLTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
-typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
-typedef void (APIENTRYP PFNGLCOPYTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
-typedef void (APIENTRYP PFNGLCOPYTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
-typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
-typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
-typedef void (APIENTRYP PFNGLGETTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
-typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
-typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
-typedef void (APIENTRYP PFNGLMULTITEXPARAMETERFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param);
-typedef void (APIENTRYP PFNGLMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params);
-typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param);
-typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
-typedef void (APIENTRYP PFNGLMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-typedef void (APIENTRYP PFNGLMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
-typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
-typedef void (APIENTRYP PFNGLCOPYMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
-typedef void (APIENTRYP PFNGLCOPYMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
-typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
-typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
-typedef void (APIENTRYP PFNGLGETMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
-typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETMULTITEXLEVELPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETMULTITEXLEVELPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
-typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
-typedef void (APIENTRYP PFNGLBINDMULTITEXTUREEXTPROC) (GLenum texunit, GLenum target, GLuint texture);
-typedef void (APIENTRYP PFNGLENABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index);
-typedef void (APIENTRYP PFNGLDISABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index);
-typedef void (APIENTRYP PFNGLMULTITEXCOORDPOINTEREXTPROC) (GLenum texunit, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-typedef void (APIENTRYP PFNGLMULTITEXENVFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param);
-typedef void (APIENTRYP PFNGLMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params);
-typedef void (APIENTRYP PFNGLMULTITEXENVIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param);
-typedef void (APIENTRYP PFNGLMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
-typedef void (APIENTRYP PFNGLMULTITEXGENDEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble param);
-typedef void (APIENTRYP PFNGLMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLdouble *params);
-typedef void (APIENTRYP PFNGLMULTITEXGENFEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat param);
-typedef void (APIENTRYP PFNGLMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLfloat *params);
-typedef void (APIENTRYP PFNGLMULTITEXGENIEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint param);
-typedef void (APIENTRYP PFNGLMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLint *params);
-typedef void (APIENTRYP PFNGLGETMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble *params);
-typedef void (APIENTRYP PFNGLGETMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETFLOATINDEXEDVEXTPROC) (GLenum target, GLuint index, GLfloat *data);
-typedef void (APIENTRYP PFNGLGETDOUBLEINDEXEDVEXTPROC) (GLenum target, GLuint index, GLdouble *data);
-typedef void (APIENTRYP PFNGLGETPOINTERINDEXEDVEXTPROC) (GLenum target, GLuint index, GLvoid* *data);
-typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *bits);
-typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *bits);
-typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *bits);
-typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *bits);
-typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *bits);
-typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *bits);
-typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint lod, GLvoid *img);
-typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *bits);
-typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *bits);
-typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *bits);
-typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *bits);
-typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *bits);
-typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *bits);
-typedef void (APIENTRYP PFNGLGETCOMPRESSEDMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint lod, GLvoid *img);
-typedef void (APIENTRYP PFNGLNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum format, GLsizei len, const GLvoid *string);
-typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4DEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4DVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLdouble *params);
-typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4FEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4FVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLfloat *params);
-typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERDVEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble *params);
-typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERFVEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMIVEXTPROC) (GLuint program, GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum pname, GLvoid *string);
-typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat *params);
-typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4IEXTPROC) (GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
-typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLint *params);
-typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERSI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLint *params);
-typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
-typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLuint *params);
-typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERSI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint *params);
-typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERIIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLint *params);
-typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERIUIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint *params);
-typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint *params);
-typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLuint *params);
-typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLuint *params);
-typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params);
-typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLuint *params);
-typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLuint *params);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FEXTPROC) (GLuint program, GLint location, GLfloat v0);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IEXTPROC) (GLuint program, GLint location, GLint v0);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIEXTPROC) (GLuint program, GLint location, GLuint v0);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
-typedef void (APIENTRYP PFNGLNAMEDBUFFERDATAEXTPROC) (GLuint buffer, GLsizeiptr size, const GLvoid *data, GLenum usage);
-typedef void (APIENTRYP PFNGLNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, const GLvoid *data);
-typedef GLvoid* (APIENTRYP PFNGLMAPNAMEDBUFFEREXTPROC) (GLuint buffer, GLenum access);
-typedef GLboolean (APIENTRYP PFNGLUNMAPNAMEDBUFFEREXTPROC) (GLuint buffer);
-typedef GLvoid* (APIENTRYP PFNGLMAPNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access);
-typedef void (APIENTRYP PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length);
-typedef void (APIENTRYP PFNGLNAMEDCOPYBUFFERSUBDATAEXTPROC) (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
-typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERIVEXTPROC) (GLuint buffer, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPOINTERVEXTPROC) (GLuint buffer, GLenum pname, GLvoid* *params);
-typedef void (APIENTRYP PFNGLGETNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, GLvoid *data);
-typedef void (APIENTRYP PFNGLTEXTUREBUFFEREXTPROC) (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer);
-typedef void (APIENTRYP PFNGLMULTITEXBUFFEREXTPROC) (GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer);
-typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEEXTPROC) (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height);
-typedef void (APIENTRYP PFNGLGETNAMEDRENDERBUFFERPARAMETERIVEXTPROC) (GLuint renderbuffer, GLenum pname, GLint *params);
-typedef GLenum (APIENTRYP PFNGLCHECKNAMEDFRAMEBUFFERSTATUSEXTPROC) (GLuint framebuffer, GLenum target);
-typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE1DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
-typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE2DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
-typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE3DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
-typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERRENDERBUFFEREXTPROC) (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
-typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGENERATETEXTUREMIPMAPEXTPROC) (GLuint texture, GLenum target);
-typedef void (APIENTRYP PFNGLGENERATEMULTITEXMIPMAPEXTPROC) (GLenum texunit, GLenum target);
-typedef void (APIENTRYP PFNGLFRAMEBUFFERDRAWBUFFEREXTPROC) (GLuint framebuffer, GLenum mode);
-typedef void (APIENTRYP PFNGLFRAMEBUFFERDRAWBUFFERSEXTPROC) (GLuint framebuffer, GLsizei n, const GLenum *bufs);
-typedef void (APIENTRYP PFNGLFRAMEBUFFERREADBUFFEREXTPROC) (GLuint framebuffer, GLenum mode);
-typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
-typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXTPROC) (GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height);
-typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level);
-typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURELAYEREXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer);
-typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREFACEEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face);
-typedef void (APIENTRYP PFNGLTEXTURERENDERBUFFEREXTPROC) (GLuint texture, GLenum target, GLuint renderbuffer);
-typedef void (APIENTRYP PFNGLMULTITEXRENDERBUFFEREXTPROC) (GLenum texunit, GLenum target, GLuint renderbuffer);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DEXTPROC) (GLuint program, GLint location, GLdouble x);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
-#endif
-
-#ifndef GL_EXT_vertex_array_bgra
-#define GL_EXT_vertex_array_bgra 1
-#endif
-
-#ifndef GL_EXT_texture_swizzle
-#define GL_EXT_texture_swizzle 1
-#endif
-
-#ifndef GL_NV_explicit_multisample
-#define GL_NV_explicit_multisample 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glGetMultisamplefvNV (GLenum pname, GLuint index, GLfloat *val);
-GLAPI void APIENTRY glSampleMaskIndexedNV (GLuint index, GLbitfield mask);
-GLAPI void APIENTRY glTexRenderbufferNV (GLenum target, GLuint renderbuffer);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVNVPROC) (GLenum pname, GLuint index, GLfloat *val);
-typedef void (APIENTRYP PFNGLSAMPLEMASKINDEXEDNVPROC) (GLuint index, GLbitfield mask);
-typedef void (APIENTRYP PFNGLTEXRENDERBUFFERNVPROC) (GLenum target, GLuint renderbuffer);
-#endif
-
-#ifndef GL_NV_transform_feedback2
-#define GL_NV_transform_feedback2 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBindTransformFeedbackNV (GLenum target, GLuint id);
-GLAPI void APIENTRY glDeleteTransformFeedbacksNV (GLsizei n, const GLuint *ids);
-GLAPI void APIENTRY glGenTransformFeedbacksNV (GLsizei n, GLuint *ids);
-GLAPI GLboolean APIENTRY glIsTransformFeedbackNV (GLuint id);
-GLAPI void APIENTRY glPauseTransformFeedbackNV (void);
-GLAPI void APIENTRY glResumeTransformFeedbackNV (void);
-GLAPI void APIENTRY glDrawTransformFeedbackNV (GLenum mode, GLuint id);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKNVPROC) (GLenum target, GLuint id);
-typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSNVPROC) (GLsizei n, const GLuint *ids);
-typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSNVPROC) (GLsizei n, GLuint *ids);
-typedef GLboolean (APIENTRYP PFNGLISTRANSFORMFEEDBACKNVPROC) (GLuint id);
-typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKNVPROC) (void);
-typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKNVPROC) (void);
-typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKNVPROC) (GLenum mode, GLuint id);
-#endif
-
-#ifndef GL_ATI_meminfo
-#define GL_ATI_meminfo 1
-#endif
-
-#ifndef GL_AMD_performance_monitor
-#define GL_AMD_performance_monitor 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glGetPerfMonitorGroupsAMD (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
-GLAPI void APIENTRY glGetPerfMonitorCountersAMD (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
-GLAPI void APIENTRY glGetPerfMonitorGroupStringAMD (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
-GLAPI void APIENTRY glGetPerfMonitorCounterStringAMD (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
-GLAPI void APIENTRY glGetPerfMonitorCounterInfoAMD (GLuint group, GLuint counter, GLenum pname, GLvoid *data);
-GLAPI void APIENTRY glGenPerfMonitorsAMD (GLsizei n, GLuint *monitors);
-GLAPI void APIENTRY glDeletePerfMonitorsAMD (GLsizei n, GLuint *monitors);
-GLAPI void APIENTRY glSelectPerfMonitorCountersAMD (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList);
-GLAPI void APIENTRY glBeginPerfMonitorAMD (GLuint monitor);
-GLAPI void APIENTRY glEndPerfMonitorAMD (GLuint monitor);
-GLAPI void APIENTRY glGetPerfMonitorCounterDataAMD (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
-typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
-typedef void (APIENTRYP PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
-typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
-typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, GLvoid *data);
-typedef void (APIENTRYP PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
-typedef void (APIENTRYP PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
-typedef void (APIENTRYP PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList);
-typedef void (APIENTRYP PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor);
-typedef void (APIENTRYP PFNGLENDPERFMONITORAMDPROC) (GLuint monitor);
-typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
-#endif
-
-#ifndef GL_AMD_texture_texture4
-#define GL_AMD_texture_texture4 1
-#endif
-
-#ifndef GL_AMD_vertex_shader_tesselator
-#define GL_AMD_vertex_shader_tesselator 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glTessellationFactorAMD (GLfloat factor);
-GLAPI void APIENTRY glTessellationModeAMD (GLenum mode);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLTESSELLATIONFACTORAMDPROC) (GLfloat factor);
-typedef void (APIENTRYP PFNGLTESSELLATIONMODEAMDPROC) (GLenum mode);
-#endif
-
-#ifndef GL_EXT_provoking_vertex
-#define GL_EXT_provoking_vertex 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glProvokingVertexEXT (GLenum mode);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLPROVOKINGVERTEXEXTPROC) (GLenum mode);
-#endif
-
-#ifndef GL_EXT_texture_snorm
-#define GL_EXT_texture_snorm 1
-#endif
-
-#ifndef GL_AMD_draw_buffers_blend
-#define GL_AMD_draw_buffers_blend 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBlendFuncIndexedAMD (GLuint buf, GLenum src, GLenum dst);
-GLAPI void APIENTRY glBlendFuncSeparateIndexedAMD (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
-GLAPI void APIENTRY glBlendEquationIndexedAMD (GLuint buf, GLenum mode);
-GLAPI void APIENTRY glBlendEquationSeparateIndexedAMD (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBLENDFUNCINDEXEDAMDPROC) (GLuint buf, GLenum src, GLenum dst);
-typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
-typedef void (APIENTRYP PFNGLBLENDEQUATIONINDEXEDAMDPROC) (GLuint buf, GLenum mode);
-typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
-#endif
-
-#ifndef GL_APPLE_texture_range
-#define GL_APPLE_texture_range 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glTextureRangeAPPLE (GLenum target, GLsizei length, const GLvoid *pointer);
-GLAPI void APIENTRY glGetTexParameterPointervAPPLE (GLenum target, GLenum pname, GLvoid* *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLTEXTURERANGEAPPLEPROC) (GLenum target, GLsizei length, const GLvoid *pointer);
-typedef void (APIENTRYP PFNGLGETTEXPARAMETERPOINTERVAPPLEPROC) (GLenum target, GLenum pname, GLvoid* *params);
-#endif
-
-#ifndef GL_APPLE_float_pixels
-#define GL_APPLE_float_pixels 1
-#endif
-
-#ifndef GL_APPLE_vertex_program_evaluators
-#define GL_APPLE_vertex_program_evaluators 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glEnableVertexAttribAPPLE (GLuint index, GLenum pname);
-GLAPI void APIENTRY glDisableVertexAttribAPPLE (GLuint index, GLenum pname);
-GLAPI GLboolean APIENTRY glIsVertexAttribEnabledAPPLE (GLuint index, GLenum pname);
-GLAPI void APIENTRY glMapVertexAttrib1dAPPLE (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
-GLAPI void APIENTRY glMapVertexAttrib1fAPPLE (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
-GLAPI void APIENTRY glMapVertexAttrib2dAPPLE (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
-GLAPI void APIENTRY glMapVertexAttrib2fAPPLE (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBAPPLEPROC) (GLuint index, GLenum pname);
-typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBAPPLEPROC) (GLuint index, GLenum pname);
-typedef GLboolean (APIENTRYP PFNGLISVERTEXATTRIBENABLEDAPPLEPROC) (GLuint index, GLenum pname);
-typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB1DAPPLEPROC) (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
-typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB1FAPPLEPROC) (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
-typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB2DAPPLEPROC) (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
-typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB2FAPPLEPROC) (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
-#endif
-
-#ifndef GL_APPLE_aux_depth_stencil
-#define GL_APPLE_aux_depth_stencil 1
-#endif
-
-#ifndef GL_APPLE_object_purgeable
-#define GL_APPLE_object_purgeable 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI GLenum APIENTRY glObjectPurgeableAPPLE (GLenum objectType, GLuint name, GLenum option);
-GLAPI GLenum APIENTRY glObjectUnpurgeableAPPLE (GLenum objectType, GLuint name, GLenum option);
-GLAPI void APIENTRY glGetObjectParameterivAPPLE (GLenum objectType, GLuint name, GLenum pname, GLint *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef GLenum (APIENTRYP PFNGLOBJECTPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option);
-typedef GLenum (APIENTRYP PFNGLOBJECTUNPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option);
-typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERIVAPPLEPROC) (GLenum objectType, GLuint name, GLenum pname, GLint *params);
-#endif
-
-#ifndef GL_APPLE_row_bytes
-#define GL_APPLE_row_bytes 1
-#endif
-
-#ifndef GL_APPLE_rgb_422
-#define GL_APPLE_rgb_422 1
-#endif
-
-#ifndef GL_NV_video_capture
-#define GL_NV_video_capture 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBeginVideoCaptureNV (GLuint video_capture_slot);
-GLAPI void APIENTRY glBindVideoCaptureStreamBufferNV (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLintptrARB offset);
-GLAPI void APIENTRY glBindVideoCaptureStreamTextureNV (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLenum target, GLuint texture);
-GLAPI void APIENTRY glEndVideoCaptureNV (GLuint video_capture_slot);
-GLAPI void APIENTRY glGetVideoCaptureivNV (GLuint video_capture_slot, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetVideoCaptureStreamivNV (GLuint video_capture_slot, GLuint stream, GLenum pname, GLint *params);
-GLAPI void APIENTRY glGetVideoCaptureStreamfvNV (GLuint video_capture_slot, GLuint stream, GLenum pname, GLfloat *params);
-GLAPI void APIENTRY glGetVideoCaptureStreamdvNV (GLuint video_capture_slot, GLuint stream, GLenum pname, GLdouble *params);
-GLAPI GLenum APIENTRY glVideoCaptureNV (GLuint video_capture_slot, GLuint *sequence_num, GLuint64EXT *capture_time);
-GLAPI void APIENTRY glVideoCaptureStreamParameterivNV (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLint *params);
-GLAPI void APIENTRY glVideoCaptureStreamParameterfvNV (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLfloat *params);
-GLAPI void APIENTRY glVideoCaptureStreamParameterdvNV (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLdouble *params);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBEGINVIDEOCAPTURENVPROC) (GLuint video_capture_slot);
-typedef void (APIENTRYP PFNGLBINDVIDEOCAPTURESTREAMBUFFERNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLintptrARB offset);
-typedef void (APIENTRYP PFNGLBINDVIDEOCAPTURESTREAMTEXTURENVPROC) (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLenum target, GLuint texture);
-typedef void (APIENTRYP PFNGLENDVIDEOCAPTURENVPROC) (GLuint video_capture_slot);
-typedef void (APIENTRYP PFNGLGETVIDEOCAPTUREIVNVPROC) (GLuint video_capture_slot, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETVIDEOCAPTURESTREAMIVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLint *params);
-typedef void (APIENTRYP PFNGLGETVIDEOCAPTURESTREAMFVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLfloat *params);
-typedef void (APIENTRYP PFNGLGETVIDEOCAPTURESTREAMDVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLdouble *params);
-typedef GLenum (APIENTRYP PFNGLVIDEOCAPTURENVPROC) (GLuint video_capture_slot, GLuint *sequence_num, GLuint64EXT *capture_time);
-typedef void (APIENTRYP PFNGLVIDEOCAPTURESTREAMPARAMETERIVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLint *params);
-typedef void (APIENTRYP PFNGLVIDEOCAPTURESTREAMPARAMETERFVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLfloat *params);
-typedef void (APIENTRYP PFNGLVIDEOCAPTURESTREAMPARAMETERDVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLdouble *params);
-#endif
-
-#ifndef GL_NV_copy_image
-#define GL_NV_copy_image 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glCopyImageSubDataNV (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLCOPYIMAGESUBDATANVPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
-#endif
-
-#ifndef GL_EXT_separate_shader_objects
-#define GL_EXT_separate_shader_objects 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glUseShaderProgramEXT (GLenum type, GLuint program);
-GLAPI void APIENTRY glActiveProgramEXT (GLuint program);
-GLAPI GLuint APIENTRY glCreateShaderProgramEXT (GLenum type, const GLchar *string);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLUSESHADERPROGRAMEXTPROC) (GLenum type, GLuint program);
-typedef void (APIENTRYP PFNGLACTIVEPROGRAMEXTPROC) (GLuint program);
-typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMEXTPROC) (GLenum type, const GLchar *string);
-#endif
-
-#ifndef GL_NV_parameter_buffer_object2
-#define GL_NV_parameter_buffer_object2 1
-#endif
-
-#ifndef GL_NV_shader_buffer_load
-#define GL_NV_shader_buffer_load 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glMakeBufferResidentNV (GLenum target, GLenum access);
-GLAPI void APIENTRY glMakeBufferNonResidentNV (GLenum target);
-GLAPI GLboolean APIENTRY glIsBufferResidentNV (GLenum target);
-GLAPI void APIENTRY glMakeNamedBufferResidentNV (GLuint buffer, GLenum access);
-GLAPI void APIENTRY glMakeNamedBufferNonResidentNV (GLuint buffer);
-GLAPI GLboolean APIENTRY glIsNamedBufferResidentNV (GLuint buffer);
-GLAPI void APIENTRY glGetBufferParameterui64vNV (GLenum target, GLenum pname, GLuint64EXT *params);
-GLAPI void APIENTRY glGetNamedBufferParameterui64vNV (GLuint buffer, GLenum pname, GLuint64EXT *params);
-GLAPI void APIENTRY glGetIntegerui64vNV (GLenum value, GLuint64EXT *result);
-GLAPI void APIENTRY glUniformui64NV (GLint location, GLuint64EXT value);
-GLAPI void APIENTRY glUniformui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
-GLAPI void APIENTRY glGetUniformui64vNV (GLuint program, GLint location, GLuint64EXT *params);
-GLAPI void APIENTRY glProgramUniformui64NV (GLuint program, GLint location, GLuint64EXT value);
-GLAPI void APIENTRY glProgramUniformui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLMAKEBUFFERRESIDENTNVPROC) (GLenum target, GLenum access);
-typedef void (APIENTRYP PFNGLMAKEBUFFERNONRESIDENTNVPROC) (GLenum target);
-typedef GLboolean (APIENTRYP PFNGLISBUFFERRESIDENTNVPROC) (GLenum target);
-typedef void (APIENTRYP PFNGLMAKENAMEDBUFFERRESIDENTNVPROC) (GLuint buffer, GLenum access);
-typedef void (APIENTRYP PFNGLMAKENAMEDBUFFERNONRESIDENTNVPROC) (GLuint buffer);
-typedef GLboolean (APIENTRYP PFNGLISNAMEDBUFFERRESIDENTNVPROC) (GLuint buffer);
-typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERUI64VNVPROC) (GLenum target, GLenum pname, GLuint64EXT *params);
-typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERUI64VNVPROC) (GLuint buffer, GLenum pname, GLuint64EXT *params);
-typedef void (APIENTRYP PFNGLGETINTEGERUI64VNVPROC) (GLenum value, GLuint64EXT *result);
-typedef void (APIENTRYP PFNGLUNIFORMUI64NVPROC) (GLint location, GLuint64EXT value);
-typedef void (APIENTRYP PFNGLUNIFORMUI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
-typedef void (APIENTRYP PFNGLGETUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLuint64EXT *params);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMUI64NVPROC) (GLuint program, GLint location, GLuint64EXT value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
-#endif
-
-#ifndef GL_NV_vertex_buffer_unified_memory
-#define GL_NV_vertex_buffer_unified_memory 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBufferAddressRangeNV (GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length);
-GLAPI void APIENTRY glVertexFormatNV (GLint size, GLenum type, GLsizei stride);
-GLAPI void APIENTRY glNormalFormatNV (GLenum type, GLsizei stride);
-GLAPI void APIENTRY glColorFormatNV (GLint size, GLenum type, GLsizei stride);
-GLAPI void APIENTRY glIndexFormatNV (GLenum type, GLsizei stride);
-GLAPI void APIENTRY glTexCoordFormatNV (GLint size, GLenum type, GLsizei stride);
-GLAPI void APIENTRY glEdgeFlagFormatNV (GLsizei stride);
-GLAPI void APIENTRY glSecondaryColorFormatNV (GLint size, GLenum type, GLsizei stride);
-GLAPI void APIENTRY glFogCoordFormatNV (GLenum type, GLsizei stride);
-GLAPI void APIENTRY glVertexAttribFormatNV (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride);
-GLAPI void APIENTRY glVertexAttribIFormatNV (GLuint index, GLint size, GLenum type, GLsizei stride);
-GLAPI void APIENTRY glGetIntegerui64i_vNV (GLenum value, GLuint index, GLuint64EXT *result);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBUFFERADDRESSRANGENVPROC) (GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length);
-typedef void (APIENTRYP PFNGLVERTEXFORMATNVPROC) (GLint size, GLenum type, GLsizei stride);
-typedef void (APIENTRYP PFNGLNORMALFORMATNVPROC) (GLenum type, GLsizei stride);
-typedef void (APIENTRYP PFNGLCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride);
-typedef void (APIENTRYP PFNGLINDEXFORMATNVPROC) (GLenum type, GLsizei stride);
-typedef void (APIENTRYP PFNGLTEXCOORDFORMATNVPROC) (GLint size, GLenum type, GLsizei stride);
-typedef void (APIENTRYP PFNGLEDGEFLAGFORMATNVPROC) (GLsizei stride);
-typedef void (APIENTRYP PFNGLSECONDARYCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride);
-typedef void (APIENTRYP PFNGLFOGCOORDFORMATNVPROC) (GLenum type, GLsizei stride);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride);
-typedef void (APIENTRYP PFNGLGETINTEGERUI64I_VNVPROC) (GLenum value, GLuint index, GLuint64EXT *result);
-#endif
-
-#ifndef GL_NV_texture_barrier
-#define GL_NV_texture_barrier 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glTextureBarrierNV (void);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLTEXTUREBARRIERNVPROC) (void);
-#endif
-
-#ifndef GL_AMD_shader_stencil_export
-#define GL_AMD_shader_stencil_export 1
-#endif
-
-#ifndef GL_AMD_seamless_cubemap_per_texture
-#define GL_AMD_seamless_cubemap_per_texture 1
-#endif
-
-#ifndef GL_AMD_conservative_depth
-#define GL_AMD_conservative_depth 1
-#endif
-
-#ifndef GL_EXT_shader_image_load_store
-#define GL_EXT_shader_image_load_store 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBindImageTextureEXT (GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format);
-GLAPI void APIENTRY glMemoryBarrierEXT (GLbitfield barriers);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBINDIMAGETEXTUREEXTPROC) (GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format);
-typedef void (APIENTRYP PFNGLMEMORYBARRIEREXTPROC) (GLbitfield barriers);
-#endif
-
-#ifndef GL_EXT_vertex_attrib_64bit
-#define GL_EXT_vertex_attrib_64bit 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glVertexAttribL1dEXT (GLuint index, GLdouble x);
-GLAPI void APIENTRY glVertexAttribL2dEXT (GLuint index, GLdouble x, GLdouble y);
-GLAPI void APIENTRY glVertexAttribL3dEXT (GLuint index, GLdouble x, GLdouble y, GLdouble z);
-GLAPI void APIENTRY glVertexAttribL4dEXT (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-GLAPI void APIENTRY glVertexAttribL1dvEXT (GLuint index, const GLdouble *v);
-GLAPI void APIENTRY glVertexAttribL2dvEXT (GLuint index, const GLdouble *v);
-GLAPI void APIENTRY glVertexAttribL3dvEXT (GLuint index, const GLdouble *v);
-GLAPI void APIENTRY glVertexAttribL4dvEXT (GLuint index, const GLdouble *v);
-GLAPI void APIENTRY glVertexAttribLPointerEXT (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-GLAPI void APIENTRY glGetVertexAttribLdvEXT (GLuint index, GLenum pname, GLdouble *params);
-GLAPI void APIENTRY glVertexArrayVertexAttribLOffsetEXT (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DEXTPROC) (GLuint index, GLdouble x);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DEXTPROC) (GLuint index, GLdouble x, GLdouble y);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DEXTPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DEXTPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DVEXTPROC) (GLuint index, const GLdouble *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DVEXTPROC) (GLuint index, const GLdouble *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DVEXTPROC) (GLuint index, const GLdouble *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DVEXTPROC) (GLuint index, const GLdouble *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBLPOINTEREXTPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLDVEXTPROC) (GLuint index, GLenum pname, GLdouble *params);
-typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBLOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset);
-#endif
-
-#ifndef GL_NV_gpu_program5
-#define GL_NV_gpu_program5 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glProgramSubroutineParametersuivNV (GLenum target, GLsizei count, const GLuint *params);
-GLAPI void APIENTRY glGetProgramSubroutineParameteruivNV (GLenum target, GLuint index, GLuint *param);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLPROGRAMSUBROUTINEPARAMETERSUIVNVPROC) (GLenum target, GLsizei count, const GLuint *params);
-typedef void (APIENTRYP PFNGLGETPROGRAMSUBROUTINEPARAMETERUIVNVPROC) (GLenum target, GLuint index, GLuint *param);
-#endif
-
-#ifndef GL_NV_gpu_shader5
-#define GL_NV_gpu_shader5 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glUniform1i64NV (GLint location, GLint64EXT x);
-GLAPI void APIENTRY glUniform2i64NV (GLint location, GLint64EXT x, GLint64EXT y);
-GLAPI void APIENTRY glUniform3i64NV (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
-GLAPI void APIENTRY glUniform4i64NV (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
-GLAPI void APIENTRY glUniform1i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
-GLAPI void APIENTRY glUniform2i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
-GLAPI void APIENTRY glUniform3i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
-GLAPI void APIENTRY glUniform4i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
-GLAPI void APIENTRY glUniform1ui64NV (GLint location, GLuint64EXT x);
-GLAPI void APIENTRY glUniform2ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y);
-GLAPI void APIENTRY glUniform3ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
-GLAPI void APIENTRY glUniform4ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
-GLAPI void APIENTRY glUniform1ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
-GLAPI void APIENTRY glUniform2ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
-GLAPI void APIENTRY glUniform3ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
-GLAPI void APIENTRY glUniform4ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
-GLAPI void APIENTRY glGetUniformi64vNV (GLuint program, GLint location, GLint64EXT *params);
-GLAPI void APIENTRY glProgramUniform1i64NV (GLuint program, GLint location, GLint64EXT x);
-GLAPI void APIENTRY glProgramUniform2i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y);
-GLAPI void APIENTRY glProgramUniform3i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
-GLAPI void APIENTRY glProgramUniform4i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
-GLAPI void APIENTRY glProgramUniform1i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
-GLAPI void APIENTRY glProgramUniform2i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
-GLAPI void APIENTRY glProgramUniform3i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
-GLAPI void APIENTRY glProgramUniform4i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
-GLAPI void APIENTRY glProgramUniform1ui64NV (GLuint program, GLint location, GLuint64EXT x);
-GLAPI void APIENTRY glProgramUniform2ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y);
-GLAPI void APIENTRY glProgramUniform3ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
-GLAPI void APIENTRY glProgramUniform4ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
-GLAPI void APIENTRY glProgramUniform1ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
-GLAPI void APIENTRY glProgramUniform2ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
-GLAPI void APIENTRY glProgramUniform3ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
-GLAPI void APIENTRY glProgramUniform4ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLUNIFORM1I64NVPROC) (GLint location, GLint64EXT x);
-typedef void (APIENTRYP PFNGLUNIFORM2I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y);
-typedef void (APIENTRYP PFNGLUNIFORM3I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
-typedef void (APIENTRYP PFNGLUNIFORM4I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
-typedef void (APIENTRYP PFNGLUNIFORM1I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
-typedef void (APIENTRYP PFNGLUNIFORM2I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
-typedef void (APIENTRYP PFNGLUNIFORM3I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
-typedef void (APIENTRYP PFNGLUNIFORM4I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
-typedef void (APIENTRYP PFNGLUNIFORM1UI64NVPROC) (GLint location, GLuint64EXT x);
-typedef void (APIENTRYP PFNGLUNIFORM2UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y);
-typedef void (APIENTRYP PFNGLUNIFORM3UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
-typedef void (APIENTRYP PFNGLUNIFORM4UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
-typedef void (APIENTRYP PFNGLUNIFORM1UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
-typedef void (APIENTRYP PFNGLUNIFORM2UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
-typedef void (APIENTRYP PFNGLUNIFORM3UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
-typedef void (APIENTRYP PFNGLUNIFORM4UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
-typedef void (APIENTRYP PFNGLGETUNIFORMI64VNVPROC) (GLuint program, GLint location, GLint64EXT *params);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64NVPROC) (GLuint program, GLint location, GLint64EXT x);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
-#endif
-
-#ifndef GL_NV_shader_buffer_store
-#define GL_NV_shader_buffer_store 1
-#endif
-
-#ifndef GL_NV_tessellation_program5
-#define GL_NV_tessellation_program5 1
-#endif
-
-#ifndef GL_NV_vertex_attrib_integer_64bit
-#define GL_NV_vertex_attrib_integer_64bit 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glVertexAttribL1i64NV (GLuint index, GLint64EXT x);
-GLAPI void APIENTRY glVertexAttribL2i64NV (GLuint index, GLint64EXT x, GLint64EXT y);
-GLAPI void APIENTRY glVertexAttribL3i64NV (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z);
-GLAPI void APIENTRY glVertexAttribL4i64NV (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
-GLAPI void APIENTRY glVertexAttribL1i64vNV (GLuint index, const GLint64EXT *v);
-GLAPI void APIENTRY glVertexAttribL2i64vNV (GLuint index, const GLint64EXT *v);
-GLAPI void APIENTRY glVertexAttribL3i64vNV (GLuint index, const GLint64EXT *v);
-GLAPI void APIENTRY glVertexAttribL4i64vNV (GLuint index, const GLint64EXT *v);
-GLAPI void APIENTRY glVertexAttribL1ui64NV (GLuint index, GLuint64EXT x);
-GLAPI void APIENTRY glVertexAttribL2ui64NV (GLuint index, GLuint64EXT x, GLuint64EXT y);
-GLAPI void APIENTRY glVertexAttribL3ui64NV (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
-GLAPI void APIENTRY glVertexAttribL4ui64NV (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
-GLAPI void APIENTRY glVertexAttribL1ui64vNV (GLuint index, const GLuint64EXT *v);
-GLAPI void APIENTRY glVertexAttribL2ui64vNV (GLuint index, const GLuint64EXT *v);
-GLAPI void APIENTRY glVertexAttribL3ui64vNV (GLuint index, const GLuint64EXT *v);
-GLAPI void APIENTRY glVertexAttribL4ui64vNV (GLuint index, const GLuint64EXT *v);
-GLAPI void APIENTRY glGetVertexAttribLi64vNV (GLuint index, GLenum pname, GLint64EXT *params);
-GLAPI void APIENTRY glGetVertexAttribLui64vNV (GLuint index, GLenum pname, GLuint64EXT *params);
-GLAPI void APIENTRY glVertexAttribLFormatNV (GLuint index, GLint size, GLenum type, GLsizei stride);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL1I64NVPROC) (GLuint index, GLint64EXT x);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL2I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL3I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL4I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL1I64VNVPROC) (GLuint index, const GLint64EXT *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL2I64VNVPROC) (GLuint index, const GLint64EXT *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL3I64VNVPROC) (GLuint index, const GLint64EXT *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL4I64VNVPROC) (GLuint index, const GLint64EXT *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64NVPROC) (GLuint index, GLuint64EXT x);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL2UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL3UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL4UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64VNVPROC) (GLuint index, const GLuint64EXT *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL2UI64VNVPROC) (GLuint index, const GLuint64EXT *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL3UI64VNVPROC) (GLuint index, const GLuint64EXT *v);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBL4UI64VNVPROC) (GLuint index, const GLuint64EXT *v);
-typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLI64VNVPROC) (GLuint index, GLenum pname, GLint64EXT *params);
-typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLUI64VNVPROC) (GLuint index, GLenum pname, GLuint64EXT *params);
-typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride);
-#endif
-
-#ifndef GL_NV_multisample_coverage
-#define GL_NV_multisample_coverage 1
-#endif
-
-#ifndef GL_AMD_name_gen_delete
-#define GL_AMD_name_gen_delete 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glGenNamesAMD (GLenum identifier, GLuint num, GLuint *names);
-GLAPI void APIENTRY glDeleteNamesAMD (GLenum identifier, GLuint num, const GLuint *names);
-GLAPI GLboolean APIENTRY glIsNameAMD (GLenum identifier, GLuint name);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLGENNAMESAMDPROC) (GLenum identifier, GLuint num, GLuint *names);
-typedef void (APIENTRYP PFNGLDELETENAMESAMDPROC) (GLenum identifier, GLuint num, const GLuint *names);
-typedef GLboolean (APIENTRYP PFNGLISNAMEAMDPROC) (GLenum identifier, GLuint name);
-#endif
-
-#ifndef GL_AMD_debug_output
-#define GL_AMD_debug_output 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glDebugMessageEnableAMD (GLenum category, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
-GLAPI void APIENTRY glDebugMessageInsertAMD (GLenum category, GLenum severity, GLuint id, GLsizei length, const GLchar *buf);
-GLAPI void APIENTRY glDebugMessageCallbackAMD (GLDEBUGPROCAMD callback, GLvoid *userParam);
-GLAPI GLuint APIENTRY glGetDebugMessageLogAMD (GLuint count, GLsizei bufsize, GLenum *categories, GLuint *severities, GLuint *ids, GLsizei *lengths, GLchar *message);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLDEBUGMESSAGEENABLEAMDPROC) (GLenum category, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
-typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTAMDPROC) (GLenum category, GLenum severity, GLuint id, GLsizei length, const GLchar *buf);
-typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKAMDPROC) (GLDEBUGPROCAMD callback, GLvoid *userParam);
-typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGAMDPROC) (GLuint count, GLsizei bufsize, GLenum *categories, GLuint *severities, GLuint *ids, GLsizei *lengths, GLchar *message);
-#endif
-
-#ifndef GL_NV_vdpau_interop
-#define GL_NV_vdpau_interop 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glVDPAUInitNV (const GLvoid *vdpDevice, const GLvoid *getProcAddress);
-GLAPI void APIENTRY glVDPAUFiniNV (void);
-GLAPI GLvdpauSurfaceNV APIENTRY glVDPAURegisterVideoSurfaceNV (const GLvoid *vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames);
-GLAPI GLvdpauSurfaceNV APIENTRY glVDPAURegisterOutputSurfaceNV (GLvoid *vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames);
-GLAPI void APIENTRY glVDPAUIsSurfaceNV (GLvdpauSurfaceNV surface);
-GLAPI void APIENTRY glVDPAUUnregisterSurfaceNV (GLvdpauSurfaceNV surface);
-GLAPI void APIENTRY glVDPAUGetSurfaceivNV (GLvdpauSurfaceNV surface, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
-GLAPI void APIENTRY glVDPAUSurfaceAccessNV (GLvdpauSurfaceNV surface, GLenum access);
-GLAPI void APIENTRY glVDPAUMapSurfacesNV (GLsizei numSurfaces, const GLvdpauSurfaceNV *surfaces);
-GLAPI void APIENTRY glVDPAUUnmapSurfacesNV (GLsizei numSurface, const GLvdpauSurfaceNV *surfaces);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLVDPAUINITNVPROC) (const GLvoid *vdpDevice, const GLvoid *getProcAddress);
-typedef void (APIENTRYP PFNGLVDPAUFININVPROC) (void);
-typedef GLvdpauSurfaceNV (APIENTRYP PFNGLVDPAUREGISTERVIDEOSURFACENVPROC) (const GLvoid *vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames);
-typedef GLvdpauSurfaceNV (APIENTRYP PFNGLVDPAUREGISTEROUTPUTSURFACENVPROC) (GLvoid *vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames);
-typedef void (APIENTRYP PFNGLVDPAUISSURFACENVPROC) (GLvdpauSurfaceNV surface);
-typedef void (APIENTRYP PFNGLVDPAUUNREGISTERSURFACENVPROC) (GLvdpauSurfaceNV surface);
-typedef void (APIENTRYP PFNGLVDPAUGETSURFACEIVNVPROC) (GLvdpauSurfaceNV surface, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
-typedef void (APIENTRYP PFNGLVDPAUSURFACEACCESSNVPROC) (GLvdpauSurfaceNV surface, GLenum access);
-typedef void (APIENTRYP PFNGLVDPAUMAPSURFACESNVPROC) (GLsizei numSurfaces, const GLvdpauSurfaceNV *surfaces);
-typedef void (APIENTRYP PFNGLVDPAUUNMAPSURFACESNVPROC) (GLsizei numSurface, const GLvdpauSurfaceNV *surfaces);
-#endif
-
-#ifndef GL_AMD_transform_feedback3_lines_triangles
-#define GL_AMD_transform_feedback3_lines_triangles 1
-#endif
-
-#ifndef GL_AMD_depth_clamp_separate
-#define GL_AMD_depth_clamp_separate 1
-#endif
-
-#ifndef GL_EXT_texture_sRGB_decode
-#define GL_EXT_texture_sRGB_decode 1
-#endif
-
-#ifndef GL_NV_texture_multisample
-#define GL_NV_texture_multisample 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glTexImage2DMultisampleCoverageNV (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations);
-GLAPI void APIENTRY glTexImage3DMultisampleCoverageNV (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations);
-GLAPI void APIENTRY glTextureImage2DMultisampleNV (GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations);
-GLAPI void APIENTRY glTextureImage3DMultisampleNV (GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations);
-GLAPI void APIENTRY glTextureImage2DMultisampleCoverageNV (GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations);
-GLAPI void APIENTRY glTextureImage3DMultisampleCoverageNV (GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations);
-typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations);
-typedef void (APIENTRYP PFNGLTEXTUREIMAGE2DMULTISAMPLENVPROC) (GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations);
-typedef void (APIENTRYP PFNGLTEXTUREIMAGE3DMULTISAMPLENVPROC) (GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations);
-typedef void (APIENTRYP PFNGLTEXTUREIMAGE2DMULTISAMPLECOVERAGENVPROC) (GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations);
-typedef void (APIENTRYP PFNGLTEXTUREIMAGE3DMULTISAMPLECOVERAGENVPROC) (GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations);
-#endif
-
-#ifndef GL_AMD_blend_minmax_factor
-#define GL_AMD_blend_minmax_factor 1
-#endif
-
-#ifndef GL_AMD_sample_positions
-#define GL_AMD_sample_positions 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glSetMultisamplefvAMD (GLenum pname, GLuint index, const GLfloat *val);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLSETMULTISAMPLEFVAMDPROC) (GLenum pname, GLuint index, const GLfloat *val);
-#endif
-
-#ifndef GL_EXT_x11_sync_object
-#define GL_EXT_x11_sync_object 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI GLsync APIENTRY glImportSyncEXT (GLenum external_sync_type, GLintptr external_sync, GLbitfield flags);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef GLsync (APIENTRYP PFNGLIMPORTSYNCEXTPROC) (GLenum external_sync_type, GLintptr external_sync, GLbitfield flags);
-#endif
-
-#ifndef GL_AMD_multi_draw_indirect
-#define GL_AMD_multi_draw_indirect 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glMultiDrawArraysIndirectAMD (GLenum mode, const GLvoid *indirect, GLsizei primcount, GLsizei stride);
-GLAPI void APIENTRY glMultiDrawElementsIndirectAMD (GLenum mode, GLenum type, const GLvoid *indirect, GLsizei primcount, GLsizei stride);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTAMDPROC) (GLenum mode, const GLvoid *indirect, GLsizei primcount, GLsizei stride);
-typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTAMDPROC) (GLenum mode, GLenum type, const GLvoid *indirect, GLsizei primcount, GLsizei stride);
-#endif
-
-#ifndef GL_EXT_framebuffer_multisample_blit_scaled
-#define GL_EXT_framebuffer_multisample_blit_scaled 1
-#endif
-
-#ifndef GL_NV_path_rendering
-#define GL_NV_path_rendering 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI GLuint APIENTRY glGenPathsNV (GLsizei range);
-GLAPI void APIENTRY glDeletePathsNV (GLuint path, GLsizei range);
-GLAPI GLboolean APIENTRY glIsPathNV (GLuint path);
-GLAPI void APIENTRY glPathCommandsNV (GLuint path, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const GLvoid *coords);
-GLAPI void APIENTRY glPathCoordsNV (GLuint path, GLsizei numCoords, GLenum coordType, const GLvoid *coords);
-GLAPI void APIENTRY glPathSubCommandsNV (GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const GLvoid *coords);
-GLAPI void APIENTRY glPathSubCoordsNV (GLuint path, GLsizei coordStart, GLsizei numCoords, GLenum coordType, const GLvoid *coords);
-GLAPI void APIENTRY glPathStringNV (GLuint path, GLenum format, GLsizei length, const GLvoid *pathString);
-GLAPI void APIENTRY glPathGlyphsNV (GLuint firstPathName, GLenum fontTarget, const GLvoid *fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const GLvoid *charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
-GLAPI void APIENTRY glPathGlyphRangeNV (GLuint firstPathName, GLenum fontTarget, const GLvoid *fontName, GLbitfield fontStyle, GLuint firstGlyph, GLsizei numGlyphs, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
-GLAPI void APIENTRY glWeightPathsNV (GLuint resultPath, GLsizei numPaths, const GLuint *paths, const GLfloat *weights);
-GLAPI void APIENTRY glCopyPathNV (GLuint resultPath, GLuint srcPath);
-GLAPI void APIENTRY glInterpolatePathsNV (GLuint resultPath, GLuint pathA, GLuint pathB, GLfloat weight);
-GLAPI void APIENTRY glTransformPathNV (GLuint resultPath, GLuint srcPath, GLenum transformType, const GLfloat *transformValues);
-GLAPI void APIENTRY glPathParameterivNV (GLuint path, GLenum pname, const GLint *value);
-GLAPI void APIENTRY glPathParameteriNV (GLuint path, GLenum pname, GLint value);
-GLAPI void APIENTRY glPathParameterfvNV (GLuint path, GLenum pname, const GLfloat *value);
-GLAPI void APIENTRY glPathParameterfNV (GLuint path, GLenum pname, GLfloat value);
-GLAPI void APIENTRY glPathDashArrayNV (GLuint path, GLsizei dashCount, const GLfloat *dashArray);
-GLAPI void APIENTRY glPathStencilFuncNV (GLenum func, GLint ref, GLuint mask);
-GLAPI void APIENTRY glPathStencilDepthOffsetNV (GLfloat factor, GLfloat units);
-GLAPI void APIENTRY glStencilFillPathNV (GLuint path, GLenum fillMode, GLuint mask);
-GLAPI void APIENTRY glStencilStrokePathNV (GLuint path, GLint reference, GLuint mask);
-GLAPI void APIENTRY glStencilFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const GLvoid *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat *transformValues);
-GLAPI void APIENTRY glStencilStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const GLvoid *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum transformType, const GLfloat *transformValues);
-GLAPI void APIENTRY glPathCoverDepthFuncNV (GLenum func);
-GLAPI void APIENTRY glPathColorGenNV (GLenum color, GLenum genMode, GLenum colorFormat, const GLfloat *coeffs);
-GLAPI void APIENTRY glPathTexGenNV (GLenum texCoordSet, GLenum genMode, GLint components, const GLfloat *coeffs);
-GLAPI void APIENTRY glPathFogGenNV (GLenum genMode);
-GLAPI void APIENTRY glCoverFillPathNV (GLuint path, GLenum coverMode);
-GLAPI void APIENTRY glCoverStrokePathNV (GLuint path, GLenum coverMode);
-GLAPI void APIENTRY glCoverFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const GLvoid *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
-GLAPI void APIENTRY glCoverStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const GLvoid *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
-GLAPI void APIENTRY glGetPathParameterivNV (GLuint path, GLenum pname, GLint *value);
-GLAPI void APIENTRY glGetPathParameterfvNV (GLuint path, GLenum pname, GLfloat *value);
-GLAPI void APIENTRY glGetPathCommandsNV (GLuint path, GLubyte *commands);
-GLAPI void APIENTRY glGetPathCoordsNV (GLuint path, GLfloat *coords);
-GLAPI void APIENTRY glGetPathDashArrayNV (GLuint path, GLfloat *dashArray);
-GLAPI void APIENTRY glGetPathMetricsNV (GLbitfield metricQueryMask, GLsizei numPaths, GLenum pathNameType, const GLvoid *paths, GLuint pathBase, GLsizei stride, GLfloat *metrics);
-GLAPI void APIENTRY glGetPathMetricRangeNV (GLbitfield metricQueryMask, GLuint firstPathName, GLsizei numPaths, GLsizei stride, GLfloat *metrics);
-GLAPI void APIENTRY glGetPathSpacingNV (GLenum pathListMode, GLsizei numPaths, GLenum pathNameType, const GLvoid *paths, GLuint pathBase, GLfloat advanceScale, GLfloat kerningScale, GLenum transformType, GLfloat *returnedSpacing);
-GLAPI void APIENTRY glGetPathColorGenivNV (GLenum color, GLenum pname, GLint *value);
-GLAPI void APIENTRY glGetPathColorGenfvNV (GLenum color, GLenum pname, GLfloat *value);
-GLAPI void APIENTRY glGetPathTexGenivNV (GLenum texCoordSet, GLenum pname, GLint *value);
-GLAPI void APIENTRY glGetPathTexGenfvNV (GLenum texCoordSet, GLenum pname, GLfloat *value);
-GLAPI GLboolean APIENTRY glIsPointInFillPathNV (GLuint path, GLuint mask, GLfloat x, GLfloat y);
-GLAPI GLboolean APIENTRY glIsPointInStrokePathNV (GLuint path, GLfloat x, GLfloat y);
-GLAPI GLfloat APIENTRY glGetPathLengthNV (GLuint path, GLsizei startSegment, GLsizei numSegments);
-GLAPI GLboolean APIENTRY glPointAlongPathNV (GLuint path, GLsizei startSegment, GLsizei numSegments, GLfloat distance, GLfloat *x, GLfloat *y, GLfloat *tangentX, GLfloat *tangentY);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef GLuint (APIENTRYP PFNGLGENPATHSNVPROC) (GLsizei range);
-typedef void (APIENTRYP PFNGLDELETEPATHSNVPROC) (GLuint path, GLsizei range);
-typedef GLboolean (APIENTRYP PFNGLISPATHNVPROC) (GLuint path);
-typedef void (APIENTRYP PFNGLPATHCOMMANDSNVPROC) (GLuint path, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const GLvoid *coords);
-typedef void (APIENTRYP PFNGLPATHCOORDSNVPROC) (GLuint path, GLsizei numCoords, GLenum coordType, const GLvoid *coords);
-typedef void (APIENTRYP PFNGLPATHSUBCOMMANDSNVPROC) (GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const GLvoid *coords);
-typedef void (APIENTRYP PFNGLPATHSUBCOORDSNVPROC) (GLuint path, GLsizei coordStart, GLsizei numCoords, GLenum coordType, const GLvoid *coords);
-typedef void (APIENTRYP PFNGLPATHSTRINGNVPROC) (GLuint path, GLenum format, GLsizei length, const GLvoid *pathString);
-typedef void (APIENTRYP PFNGLPATHGLYPHSNVPROC) (GLuint firstPathName, GLenum fontTarget, const GLvoid *fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const GLvoid *charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
-typedef void (APIENTRYP PFNGLPATHGLYPHRANGENVPROC) (GLuint firstPathName, GLenum fontTarget, const GLvoid *fontName, GLbitfield fontStyle, GLuint firstGlyph, GLsizei numGlyphs, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
-typedef void (APIENTRYP PFNGLWEIGHTPATHSNVPROC) (GLuint resultPath, GLsizei numPaths, const GLuint *paths, const GLfloat *weights);
-typedef void (APIENTRYP PFNGLCOPYPATHNVPROC) (GLuint resultPath, GLuint srcPath);
-typedef void (APIENTRYP PFNGLINTERPOLATEPATHSNVPROC) (GLuint resultPath, GLuint pathA, GLuint pathB, GLfloat weight);
-typedef void (APIENTRYP PFNGLTRANSFORMPATHNVPROC) (GLuint resultPath, GLuint srcPath, GLenum transformType, const GLfloat *transformValues);
-typedef void (APIENTRYP PFNGLPATHPARAMETERIVNVPROC) (GLuint path, GLenum pname, const GLint *value);
-typedef void (APIENTRYP PFNGLPATHPARAMETERINVPROC) (GLuint path, GLenum pname, GLint value);
-typedef void (APIENTRYP PFNGLPATHPARAMETERFVNVPROC) (GLuint path, GLenum pname, const GLfloat *value);
-typedef void (APIENTRYP PFNGLPATHPARAMETERFNVPROC) (GLuint path, GLenum pname, GLfloat value);
-typedef void (APIENTRYP PFNGLPATHDASHARRAYNVPROC) (GLuint path, GLsizei dashCount, const GLfloat *dashArray);
-typedef void (APIENTRYP PFNGLPATHSTENCILFUNCNVPROC) (GLenum func, GLint ref, GLuint mask);
-typedef void (APIENTRYP PFNGLPATHSTENCILDEPTHOFFSETNVPROC) (GLfloat factor, GLfloat units);
-typedef void (APIENTRYP PFNGLSTENCILFILLPATHNVPROC) (GLuint path, GLenum fillMode, GLuint mask);
-typedef void (APIENTRYP PFNGLSTENCILSTROKEPATHNVPROC) (GLuint path, GLint reference, GLuint mask);
-typedef void (APIENTRYP PFNGLSTENCILFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const GLvoid *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat *transformValues);
-typedef void (APIENTRYP PFNGLSTENCILSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const GLvoid *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum transformType, const GLfloat *transformValues);
-typedef void (APIENTRYP PFNGLPATHCOVERDEPTHFUNCNVPROC) (GLenum func);
-typedef void (APIENTRYP PFNGLPATHCOLORGENNVPROC) (GLenum color, GLenum genMode, GLenum colorFormat, const GLfloat *coeffs);
-typedef void (APIENTRYP PFNGLPATHTEXGENNVPROC) (GLenum texCoordSet, GLenum genMode, GLint components, const GLfloat *coeffs);
-typedef void (APIENTRYP PFNGLPATHFOGGENNVPROC) (GLenum genMode);
-typedef void (APIENTRYP PFNGLCOVERFILLPATHNVPROC) (GLuint path, GLenum coverMode);
-typedef void (APIENTRYP PFNGLCOVERSTROKEPATHNVPROC) (GLuint path, GLenum coverMode);
-typedef void (APIENTRYP PFNGLCOVERFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const GLvoid *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
-typedef void (APIENTRYP PFNGLCOVERSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const GLvoid *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
-typedef void (APIENTRYP PFNGLGETPATHPARAMETERIVNVPROC) (GLuint path, GLenum pname, GLint *value);
-typedef void (APIENTRYP PFNGLGETPATHPARAMETERFVNVPROC) (GLuint path, GLenum pname, GLfloat *value);
-typedef void (APIENTRYP PFNGLGETPATHCOMMANDSNVPROC) (GLuint path, GLubyte *commands);
-typedef void (APIENTRYP PFNGLGETPATHCOORDSNVPROC) (GLuint path, GLfloat *coords);
-typedef void (APIENTRYP PFNGLGETPATHDASHARRAYNVPROC) (GLuint path, GLfloat *dashArray);
-typedef void (APIENTRYP PFNGLGETPATHMETRICSNVPROC) (GLbitfield metricQueryMask, GLsizei numPaths, GLenum pathNameType, const GLvoid *paths, GLuint pathBase, GLsizei stride, GLfloat *metrics);
-typedef void (APIENTRYP PFNGLGETPATHMETRICRANGENVPROC) (GLbitfield metricQueryMask, GLuint firstPathName, GLsizei numPaths, GLsizei stride, GLfloat *metrics);
-typedef void (APIENTRYP PFNGLGETPATHSPACINGNVPROC) (GLenum pathListMode, GLsizei numPaths, GLenum pathNameType, const GLvoid *paths, GLuint pathBase, GLfloat advanceScale, GLfloat kerningScale, GLenum transformType, GLfloat *returnedSpacing);
-typedef void (APIENTRYP PFNGLGETPATHCOLORGENIVNVPROC) (GLenum color, GLenum pname, GLint *value);
-typedef void (APIENTRYP PFNGLGETPATHCOLORGENFVNVPROC) (GLenum color, GLenum pname, GLfloat *value);
-typedef void (APIENTRYP PFNGLGETPATHTEXGENIVNVPROC) (GLenum texCoordSet, GLenum pname, GLint *value);
-typedef void (APIENTRYP PFNGLGETPATHTEXGENFVNVPROC) (GLenum texCoordSet, GLenum pname, GLfloat *value);
-typedef GLboolean (APIENTRYP PFNGLISPOINTINFILLPATHNVPROC) (GLuint path, GLuint mask, GLfloat x, GLfloat y);
-typedef GLboolean (APIENTRYP PFNGLISPOINTINSTROKEPATHNVPROC) (GLuint path, GLfloat x, GLfloat y);
-typedef GLfloat (APIENTRYP PFNGLGETPATHLENGTHNVPROC) (GLuint path, GLsizei startSegment, GLsizei numSegments);
-typedef GLboolean (APIENTRYP PFNGLPOINTALONGPATHNVPROC) (GLuint path, GLsizei startSegment, GLsizei numSegments, GLfloat distance, GLfloat *x, GLfloat *y, GLfloat *tangentX, GLfloat *tangentY);
-#endif
-
-#ifndef GL_AMD_pinned_memory
-#define GL_AMD_pinned_memory 1
-#endif
-
-#ifndef GL_AMD_stencil_operation_extended
-#define GL_AMD_stencil_operation_extended 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glStencilOpValueAMD (GLenum face, GLuint value);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLSTENCILOPVALUEAMDPROC) (GLenum face, GLuint value);
-#endif
-
-#ifndef GL_AMD_vertex_shader_viewport_index
-#define GL_AMD_vertex_shader_viewport_index 1
-#endif
-
-#ifndef GL_AMD_vertex_shader_layer
-#define GL_AMD_vertex_shader_layer 1
-#endif
-
-#ifndef GL_NV_bindless_texture
-#define GL_NV_bindless_texture 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI GLuint64 APIENTRY glGetTextureHandleNV (GLuint texture);
-GLAPI GLuint64 APIENTRY glGetTextureSamplerHandleNV (GLuint texture, GLuint sampler);
-GLAPI void APIENTRY glMakeTextureHandleResidentNV (GLuint64 handle);
-GLAPI void APIENTRY glMakeTextureHandleNonResidentNV (GLuint64 handle);
-GLAPI GLuint64 APIENTRY glGetImageHandleNV (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format);
-GLAPI void APIENTRY glMakeImageHandleResidentNV (GLuint64 handle, GLenum access);
-GLAPI void APIENTRY glMakeImageHandleNonResidentNV (GLuint64 handle);
-GLAPI void APIENTRY glUniformHandleui64NV (GLint location, GLuint64 value);
-GLAPI void APIENTRY glUniformHandleui64vNV (GLint location, GLsizei count, const GLuint64 *value);
-GLAPI void APIENTRY glProgramUniformHandleui64NV (GLuint program, GLint location, GLuint64 value);
-GLAPI void APIENTRY glProgramUniformHandleui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
-GLAPI GLboolean APIENTRY glIsTextureHandleResidentNV (GLuint64 handle);
-GLAPI GLboolean APIENTRY glIsImageHandleResidentNV (GLuint64 handle);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef GLuint64 (APIENTRYP PFNGLGETTEXTUREHANDLENVPROC) (GLuint texture);
-typedef GLuint64 (APIENTRYP PFNGLGETTEXTURESAMPLERHANDLENVPROC) (GLuint texture, GLuint sampler);
-typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLERESIDENTNVPROC) (GLuint64 handle);
-typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLENONRESIDENTNVPROC) (GLuint64 handle);
-typedef GLuint64 (APIENTRYP PFNGLGETIMAGEHANDLENVPROC) (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format);
-typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLERESIDENTNVPROC) (GLuint64 handle, GLenum access);
-typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLENONRESIDENTNVPROC) (GLuint64 handle);
-typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64NVPROC) (GLint location, GLuint64 value);
-typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64VNVPROC) (GLint location, GLsizei count, const GLuint64 *value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64NVPROC) (GLuint program, GLint location, GLuint64 value);
-typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
-typedef GLboolean (APIENTRYP PFNGLISTEXTUREHANDLERESIDENTNVPROC) (GLuint64 handle);
-typedef GLboolean (APIENTRYP PFNGLISIMAGEHANDLERESIDENTNVPROC) (GLuint64 handle);
-#endif
-
-#ifndef GL_NV_shader_atomic_float
-#define GL_NV_shader_atomic_float 1
-#endif
-
-#ifndef GL_AMD_query_buffer_object
-#define GL_AMD_query_buffer_object 1
-#endif
-
-#ifndef GL_NV_compute_program5
-#define GL_NV_compute_program5 1
-#endif
-
-#ifndef GL_NV_shader_storage_buffer_object
-#define GL_NV_shader_storage_buffer_object 1
-#endif
-
-#ifndef GL_NV_shader_atomic_counters
-#define GL_NV_shader_atomic_counters 1
-#endif
-
-#ifndef GL_NV_deep_texture3D
-#define GL_NV_deep_texture3D 1
-#endif
-
-#ifndef GL_NVX_conditional_render
-#define GL_NVX_conditional_render 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glBeginConditionalRenderNVX (GLuint id);
-GLAPI void APIENTRY glEndConditionalRenderNVX (void);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERNVXPROC) (GLuint id);
-typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERNVXPROC) (void);
-#endif
-
-#ifndef GL_AMD_sparse_texture
-#define GL_AMD_sparse_texture 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glTexStorageSparseAMD (GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags);
-GLAPI void APIENTRY glTextureStorageSparseAMD (GLuint texture, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLTEXSTORAGESPARSEAMDPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags);
-typedef void (APIENTRYP PFNGLTEXTURESTORAGESPARSEAMDPROC) (GLuint texture, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags);
-#endif
-
-#ifndef GL_AMD_shader_trinary_minmax
-#define GL_AMD_shader_trinary_minmax 1
-#endif
-
-#ifndef GL_INTEL_map_texture
-#define GL_INTEL_map_texture 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glSyncTextureINTEL (GLuint texture);
-GLAPI void APIENTRY glUnmapTexture2DINTEL (GLuint texture, GLint level);
-GLAPI GLvoid* APIENTRY glMapTexture2DINTEL (GLuint texture, GLint level, GLbitfield access, const GLint *stride, const GLenum *layout);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLSYNCTEXTUREINTELPROC) (GLuint texture);
-typedef void (APIENTRYP PFNGLUNMAPTEXTURE2DINTELPROC) (GLuint texture, GLint level);
-typedef GLvoid* (APIENTRYP PFNGLMAPTEXTURE2DINTELPROC) (GLuint texture, GLint level, GLbitfield access, const GLint *stride, const GLenum *layout);
-#endif
-
-#ifndef GL_NV_draw_texture
-#define GL_NV_draw_texture 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void APIENTRY glDrawTextureNV (GLuint texture, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (APIENTRYP PFNGLDRAWTEXTURENVPROC) (GLuint texture, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1);
-#endif
-
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/lib/third_party/tinyxml/CMakeLists.txt b/lib/third_party/tinyxml/CMakeLists.txt
deleted file mode 100644 (file)
index badc638..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-SET(tinyxml_LIBRARY_NAME cpPlugins_tinyxml)
-
-## ===============
-## = Source code =
-## ===============
-
-FILE(GLOB tinyxml_HEADERS "*.h")
-FILE(GLOB tinyxml_SOURCES "*.cpp")
-
-## =====================
-## = Compilation rules =
-## =====================
-
-ADD_LIBRARY(
-  ${tinyxml_LIBRARY_NAME}
-  SHARED
-  ${tinyxml_SOURCES}
-  )
-GENERATE_EXPORT_HEADER(
-  ${tinyxml_LIBRARY_NAME}
-  BASE_NAME ${tinyxml_LIBRARY_NAME}
-  EXPORT_MACRO_NAME ${tinyxml_LIBRARY_NAME}_EXPORT
-  EXPORT_FILE_NAME ${PROJECT_BINARY_DIR}/lib/third_party/tinyxml/${tinyxml_LIBRARY_NAME}_Export.h
-  STATIC_DEFINE ${tinyxml_LIBRARY_NAME}_BUILT_AS_STATIC
-  )
-## eof - $RCSfile$
diff --git a/lib/third_party/tinyxml/changes.txt b/lib/third_party/tinyxml/changes.txt
deleted file mode 100644 (file)
index 1ea21ad..0000000
+++ /dev/null
@@ -1,290 +0,0 @@
-Changes in version 1.0.1:
-- Fixed comment tags which were outputing as '<?--' instead of 
-  the correct '<!--'.
-- Implemented the Next and Prev methods of the TiXmlAttribute class.
-- Renamed 'LastAttribtute' to 'LastAttribute'
-- Fixed bad pointer to 'isspace' that could occur while parsing text.
-- Errors finding beginning and end of tags no longer throw it into an
-  infinite loop. (Hopefully.)
-
-Changes in version 1.0.2
-- Minor documentation fixes.
-
-Changes in version 1.0.3
-- After nodes are added to a document, they return a pointer
-  to the new node instead of a bool for success.
-- Elements can be constructed with a value, which is the
-  element name. Every element must have a value or it will be
-  invalid, but the code changes to enforce this are not fully
-  in place.
-
-Changes in version 1.1.0
-- Added the    TiXmlAttributeSet class to pull the attributes into
-  a seperate container.
-- Moved the doubly liked list out of XmlBase. Now XmlBase only
-  requires the Print() function and defines some utility functions.
-- Moved errors into a seperate file. (With the idea of internationalization
-  to the other latin-1 languages.)
-- Added the "NodeType"
-- Fixed white space parsing in text to conform with the standard. 
-  Basically, all white space becomes just one space.
-- Added the TiXmlDeclaration class to read xml declarations.
-
-Changes in version 1.2.0
-- Removed the factory. The factory was not really in the spirit 
-  of small and simple, confused the code, and was of limited value.
-- Added FirstChildElement and NextSiblingElement, because they
-  are such common functions.
-- Re-wrote the example to test and demonstrate more functionality.
-
-Changes in version 1.2.1
-- Fixed a bug where comments couldn't be inside elements.
-- Loading now clears out existing XML rather than appending.
-- Added the "Clear" method on a node to delete all its children.
-
-Changes in version 1.2.2
-- Fixed TiXmlAttribute::Previous actually returning "next." Thanks
-  to Rickard Troedsson for the bug fix.
-
-Changes in version 1.2.3
-- Added the TIXML prefix to the error strings to resolve conflicts
-  with #defines in OS headers. Thanks to Steve Lhomme.
-- Fixed a delete buf that should be a delete [] buf. 
-  Thanks to Ephi Sinowitz.
-
-Changes in version 1.2.4
-- ReplaceChild() was almost guarenteed to fail. Should be fixed,
-  thanks to Joe Smith. Joe also pointed out that the Print() functions
-  should take stream references: I agree, and would like to overload
-  the Print() method to take either format, but I don't want to do 
-  this in a dot release.
-- Some compilers seem to need an extra <ctype.h> include. Thanks
-  to Steve Lhomme for that.
-
-Changes in version 2.0.0 BETA
-- Made the ToXXX() casts safe if 'this' is null. 
-  When "LoadFile" is called with a filename, the value will correctly get set.
-  Thanks to Brian Yoder.
-- Fixed bug where isalpha() and isalnum() would get called with a negative value for 
-  high ascii numbers. Thanks to Alesky Aksenov.
-- Fixed some errors codes that were not getting set.
-- Made methods "const" that were not.
-- Added a switch to enable or disable the ignoring of white space. ( TiXmlDocument::SetIgnoreWhiteSpace() )
-- Greater standardization and code re-use in the parser.
-- Added a stream out operator.
-- Added a stream in operator.
-- Entity support, of predefined entites. &#x entities are untouched by input or output.
-- Improved text out formatting.
-- Fixed ReplaceChild bug, thanks to Tao Chen.
-
-Changes in version 2.0.1
-- Fixed hanging on loading a 0 length file. Thanks to Jeff Scozzafava.
-- Fixed crashing on InsertBeforeChild and InsertAfterChild. Also possibility of bad links being
-  created by same function. Thanks to Frank De prins.
-- Added missing licence text. Thanks to Lars Willemsens.
-- Added <ctype.h> include, at the suggestion of Steve Walters.
-
-Changes in version 2.1.0
-- Yves Berquin brings us the STL switch. The forum on SourceForge, and various emails to
-  me, have long debated all out STL vs. no STL at all. And now you can have it both ways.
-  TinyXml will compile either way.
-
-Changes in version 2.1.1
-- Compilation warnings.
-
-Changes in version 2.1.2
-- Uneeded code is not compiled in the STL case.
-- Changed headers so that STL can be turned on or off in tinyxml.h
-
-Changes in version 2.1.3
-- Fixed non-const reference in API; now uses a pointer.
-- Copy constructor of TiXmlString not checking for assignment to self.
-- Nimrod Cohen found a truly evil bug in the STL implementation that occurs
-  when a string is converted to a c_str and then assigned to self. Search for
-  STL_STRING_BUG for a full description. I'm asserting this is a Microsoft STL
-  bug, since &string and string.c_str() should never be the same. Nevertheless,
-  the code works around it.
-- Urivan Saaib pointed out a compiler conflict, where the C headers define
-  the isblank macro, which was wiping out the TiXmlString::isblank() method.
-  The method was unused and has been removed.
-
-Changes in version 2.1.4
-- Reworked the entity code. Entities were not correctly surving round trip input and output.
-  Will now automatically create entities for high ascii in output.
-
-Changes in version 2.1.5
-- Bug fix by kylotan : infinite loop on some input (tinyxmlparser.cpp rev 1.27)
-- Contributed by Ivica Aracic (bytelord) : 1 new VC++ project to compile versions as static libraries (tinyxml_lib.dsp), 
-  and an example usage in xmltest.dsp
-  (Patch request ID 678605)
-- A suggestion by Ronald Fenner Jr (dormlock) to add #include <istream> and <ostream> for Apple's Project Builder 
-  (Patch request ID 697642)
-- A patch from ohommes that allows to parse correctly dots in element names and attribute names
-  (Patch request 602600 and kylotan 701728)
-- A patch from  hermitgeek ( James ) and wasteland for improper error reporting
-- Reviewed by Lee, with the following changes:
-       - Got sick of fighting the STL/non-STL thing in the windows build. Broke
-         them out as seperate projects.
-       - I have too long not included the dsw. Added.
-       - TinyXmlText had a protected Print. Odd.
-       - Made LinkEndChild public, with docs and appropriate warnings.
-       - Updated the docs.
-
-2.2.0
-- Fixed an uninitialized pointer in the TiXmlAttributes
-- Fixed STL compilation problem in MinGW (and gcc 3?) - thanks Brian Yoder for finding this one
-- Fixed a syntax error in TiXmlDeclaration - thanks Brian Yoder
-- Fletcher Dunn proposed and submitted new error handling that tracked the row and column. Lee
-  modified it to not have performance impact.
-- General cleanup suggestions from Fletcher Dunn.
-- In error handling, general errors will no longer clear the error state of specific ones.
-- Fix error in documentation : comments starting with "<?--" instead of "<!--" (thanks ion_pulse)
-- Added the TiXmlHandle. An easy, safe way to browse XML DOMs with less code.
-- Added QueryAttribute calls which have better error messaging. (Proposed by Fletcher Dunn)
-- Nodes and attributes can now print themselves to strings. (Yves suggestion)
-- Fixed bug where entities with one character would confuse parser. (Thanks Roman)
-
-2.2.1
-- Additional testing (no more bugs found to be fixed in this release)
-- Significant performance improvement to the cursor code.
-
-2.3.0
-- User Data are now defined in TiXmlBase instead of TiXmlNode
-- Character Entities are now UCS-2
-- Character Entities can be decimal or hexadecimal
-- UTF-8 conversion.
-- Fixed many, many bugs.
-
-2.3.1
-- Fixed bug in handling nulls embedded in the input.
-- Make UTF-8 parser tolerant of bad text encoding.
-- Added encoding detection. 
-- Many fixes and input from John-Philip Leonard Johansson (JP) and Ellers, 
-  including UTF-8 feedback, bug reports, and patches. Thanks!
-- Added version # constants - a suggestion from JP and Ellers.
-- [ 979180 ] Missing ; in entity reference, fix from Rob Laveaux.
-- Copy constructors and assignment have been a long time coming. Thanks to
-  Fokke and JP.
-
-2.3.2
-- Made the IsAlpha and IsAlphaNum much more tolerant of non-UTF-8 encodings. Thanks
-  Volker Boerchers for finding the issue.
-- Ran the program though the magnificent Valgrind - http://valgrind.kde.org - to check
-  for memory errors. Fixed some minor issues.
-
-2.3.3
-- Fixed crash when test program was run from incorrect directory.
-- Fixed bug 1070717 - empty document not returned correctly - thanks Katsuhisa Yuasa.
-- Bug 1079301 resolved - deprecated stdlib calls. Thanks Adrian Boeing.
-- Bug 1035218 fixed - documentation errors. Xunji Luo
-- Other bug fixes have accumulated and been fixed on the way as well; my apologies to
-  authors not credited!
-- Big fix / addition is to correctly return const values. TinyXml could basically
-  remove const in a method like this: TiXmlElement* Foo() const, where the returned element
-  was a pointer to internal data. That is now: const TiXmlElement* Foo() const and
-  TiXmlElement* Foo().
-
-2.3.4
-- Fixed additional const errors, thanks Kent Gibson.
-- Correctly re-enable warnings after tinyxml header. Thanks Cory Nelson.
-- Variety of type cleanup and warning fixes. Thanks Warren Stevens.
-- Cleaned up unneeded constructor calls in TinyString - thanks to Geoff Carlton and
-  the discussion group on sourceforge.
-
-2.4.0
-- Improved string class, thanks Tyge Lovset (whose name gets mangled in English - sorry)
-- Type cast compiler warning, thanks Rob van den Bogaard
-- Added GetText() convenience function. Thanks Ilya Parniuk & Andrew Ellers for input.
-- Many thanks to marlonism for finding an infinite loop in bad xml.
-- A patch to cleanup warnings from Robert Gebis.
-- Added ValueStr() to get the value of a node as a string.
-- TiXmlText can now parse and output as CDATA
-- Additional string improvement from James (z2895)
-- Removed extraneous 'const', thanks David Aldrich
-- First pass at switching to the "safe" stdlib functions. Many people have suggested and
-  pushed on this, but Warren Stevens put together the first proposal.
-- TinyXml now will do EOL normalization before parsing, consistent with the W3C XML spec.
-- Documents loaded with the UTF-8 BOM will now save with the UTF-8 BOM. Good suggestion 
-  from 'instructor_'
-- Ellers submitted his very popular tutorials, which have been added to the distribution.
-
-2.4.1
-- Fixed CDATA output formatting
-- Fixed memory allocators in TinyString to work with overloaded new/delete
-
-2.4.2
-- solosnake pointed out that TIXML_LOG causes problems on an XBOX. The definition in the header
-  was superflous and was moved inside of DEBUG_PARSING
-
-2.4.3
-- Fixed a test bug that caused a crash in 'xmltest'. TinyXML was fine, but it isn't good
-  to ship with a broken test suite.
-- Started converting some functions to not cast between std::string and const char* 
-  quite as often.
-- Added FILE* versions of the document loads - good suggestion from Wade Brainerd
-- Empty documents might not always return the errors they should. [1398915] Thanks to igor v.
-- Added some asserts for multiply adding a node, regardng bug [1391937] suggested by Paco Arjonilla.
-
-2.4.4
-- Bug find thanks to andre-gross found a memory leak that occured when a document failed to load.
-- Bug find (and good analysis) by VirtualJim who found a case where attribute parsing 
-  should be throwing an error and wasn't.
-- Steve Hyatt suggested the QueryValueAttribute method, which is now implemented.
-- DavidA identified a chunk of dead code.
-- Andrew Baxter sent in some compiler warnings that were good clean up points.
-
-2.5
-- Added the Visit() API. Many thanks to both Andrew Ellerton and John-Philip for all their
-  work, code, suggestion, and just general pushing that it should be done.
-- Removed existing streaming code and use TiXmlPrinter instead.
-- [ tinyxml-Bugs-1527079 ] Compile error in tinystr.cpp fixed, thanks to Paul Suggs
-- [ tinyxml-Bugs-1522890 ] SaveFile has no error checks fixed, thanks to Ivan Dobrokotov
-- Ivan Dobrokotov also reported redundant memory allocation in the Attribute() method, which
-  upon investigation was a mess. The attribute should now be fixed for both const char* and 
-  std::string, and the return types match the input parameters.
-- Feature [ 1511105 ] Make TiXmlComment constructor accept a string / char*, implemented.
-  Thanks to Karl Itschen for the feedback.
-- [ 1480108 ] Stream parsing fails when CDATA contains tags was found by Tobias Grimm, who also
-  submitted a test case and patch. A significant bug in CDATA streaming (operator>>) has now
-  been fixed.
-
-2.5.2
-- Lieven, and others, pointed out a missing const-cast that upset the Open Watcom compiler.
-  Should now be fixed.
-- ErrorRow and ErrorCol should have been const, and weren't. Fixed thanks to Dmitry Polutov.
-
-2.5.3
-- zloe_zlo identified a missing string specialization for QueryValueAttribute() [ 1695429 ]. Worked
-  on this bug, but not sure how to fix it in a safe, cross-compiler way.
-- increased warning level to 4 and turned on detect 64 bit portability issues for VC2005.
-  May address [ 1677737 ] VS2005: /Wp64 warnings
-- grosheck identified several problems with the Document copy. Many thanks for [ 1660367 ]
-- Nice catch, and suggested fix, be Gilad Novik on the Printer dropping entities.
-  "[ 1600650 ] Bug when printing xml text" is now fixed.
-- A subtle fix from Nicos Gollan in the tinystring initializer: 
-  [ 1581449 ] Fix initialiser of TiXmlString::nullrep_
-- Great catch, although there isn't a submitter for the bug. [ 1475201 ] TinyXML parses entities in comments. 
-  Comments should not, in fact, parse entities. Fixed the code path and added tests.
-- We were not catching all the returns from ftell. Thanks to Bernard for catching that.
-  
-2.5.4
-- A TiXMLDocument can't be a sub-node. Block this from happening in the 'replace'. Thanks Noam.
-- [ 1714831 ] TiXmlBase::location is not copied by copy-ctors, fix reported and suggested by Nicola Civran.
-- Fixed possible memory overrun in the comment reading code - thanks gcarlton77
-
-2.5.5
-- Alex van der Wal spotted incorrect types (lf) being used in print and scan. robertnestor pointed out some problems with the simple solution. Types updated.
-- Johannes Hillert pointed out some bug typos.
-- Christian Mueller identified inconsistent error handling with Attributes.
-- olivier barthelemy also reported a problem with double truncation, also related to the %lf issue.
-- zaelsius came up with a great (and simple) suggestion to fix QueryValueAttribute truncating strings.
-- added some null pointer checks suggested by hansenk
-- Sami Väisänen found a (rare) buffer overrun that could occur in parsing.
-- vi tri filed a bug that led to a refactoring of the attribute setting mess (as well as adding a missing SetDoubleAttribute() )
-- removed TIXML_ERROR_OUT_OF_MEMORY. TinyXML does not systematically address OOO, and the notion it does is misleading.
-- vanneto, keithmarshall, others all reported the warning from IsWhiteSpace() usage. Cleaned this up - many thanks to everyone who reported this one.
-- tibur found a bug in end tag parsing
-
-
-
-
diff --git a/lib/third_party/tinyxml/readme.txt b/lib/third_party/tinyxml/readme.txt
deleted file mode 100644 (file)
index 89d9e8d..0000000
+++ /dev/null
@@ -1,530 +0,0 @@
-/** @mainpage
-
-<h1> TinyXML </h1>
-
-TinyXML is a simple, small, C++ XML parser that can be easily 
-integrated into other programs.
-
-<h2> What it does. </h2>
-       
-In brief, TinyXML parses an XML document, and builds from that a 
-Document Object Model (DOM) that can be read, modified, and saved.
-
-XML stands for "eXtensible Markup Language." It allows you to create 
-your own document markups. Where HTML does a very good job of marking 
-documents for browsers, XML allows you to define any kind of document 
-markup, for example a document that describes a "to do" list for an 
-organizer application. XML is a very structured and convenient format.
-All those random file formats created to store application data can 
-all be replaced with XML. One parser for everything.
-
-The best place for the complete, correct, and quite frankly hard to
-read spec is at <a href="http://www.w3.org/TR/2004/REC-xml-20040204/">
-http://www.w3.org/TR/2004/REC-xml-20040204/</a>. An intro to XML
-(that I really like) can be found at 
-<a href="http://skew.org/xml/tutorial/">http://skew.org/xml/tutorial</a>.
-
-There are different ways to access and interact with XML data.
-TinyXML uses a Document Object Model (DOM), meaning the XML data is parsed
-into a C++ objects that can be browsed and manipulated, and then 
-written to disk or another output stream. You can also construct an XML document 
-from scratch with C++ objects and write this to disk or another output
-stream.
-
-TinyXML is designed to be easy and fast to learn. It is two headers 
-and four cpp files. Simply add these to your project and off you go. 
-There is an example file - xmltest.cpp - to get you started. 
-
-TinyXML is released under the ZLib license, 
-so you can use it in open source or commercial code. The details
-of the license are at the top of every source file.
-
-TinyXML attempts to be a flexible parser, but with truly correct and
-compliant XML output. TinyXML should compile on any reasonably C++
-compliant system. It does not rely on exceptions or RTTI. It can be 
-compiled with or without STL support. TinyXML fully supports
-the UTF-8 encoding, and the first 64k character entities.
-
-
-<h2> What it doesn't do. </h2>
-
-TinyXML doesn't parse or use DTDs (Document Type Definitions) or XSLs
-(eXtensible Stylesheet Language.) There are other parsers out there 
-(check out www.sourceforge.org, search for XML) that are much more fully
-featured. But they are also much bigger, take longer to set up in
-your project, have a higher learning curve, and often have a more
-restrictive license. If you are working with browsers or have more
-complete XML needs, TinyXML is not the parser for you.
-
-The following DTD syntax will not parse at this time in TinyXML:
-
-@verbatim
-       <!DOCTYPE Archiv [
-        <!ELEMENT Comment (#PCDATA)>
-       ]>
-@endverbatim
-
-because TinyXML sees this as a !DOCTYPE node with an illegally 
-embedded !ELEMENT node. This may be addressed in the future.
-
-<h2> Tutorials. </h2>
-
-For the impatient, here is a tutorial to get you going. A great way to get started, 
-but it is worth your time to read this (very short) manual completely.
-
-- @subpage tutorial0
-
-<h2> Code Status.  </h2>
-
-TinyXML is mature, tested code. It is very stable. If you find
-bugs, please file a bug report on the sourceforge web site
-(www.sourceforge.net/projects/tinyxml). We'll get them straightened 
-out as soon as possible.
-
-There are some areas of improvement; please check sourceforge if you are
-interested in working on TinyXML.
-
-<h2> Related Projects </h2>
-
-TinyXML projects you may find useful! (Descriptions provided by the projects.)
-
-<ul>
-<li> <b>TinyXPath</b> (http://tinyxpath.sourceforge.net). TinyXPath is a small footprint 
-     XPath syntax decoder, written in C++.</li>
-<li> <b>TinyXML++</b> (http://code.google.com/p/ticpp/). TinyXML++ is a completely new 
-     interface to TinyXML that uses MANY of the C++ strengths. Templates, 
-        exceptions, and much better error handling.</li>
-</ul>
-
-<h2> Features </h2>
-
-<h3> Using STL </h3>
-
-TinyXML can be compiled to use or not use STL. When using STL, TinyXML
-uses the std::string class, and fully supports std::istream, std::ostream,
-operator<<, and operator>>. Many API methods have both 'const char*' and
-'const std::string&' forms.
-
-When STL support is compiled out, no STL files are included whatsoever. All
-the string classes are implemented by TinyXML itself. API methods
-all use the 'const char*' form for input.
-
-Use the compile time #define:
-
-       TIXML_USE_STL
-
-to compile one version or the other. This can be passed by the compiler,
-or set as the first line of "tinyxml.h".
-
-Note: If compiling the test code in Linux, setting the environment
-variable TINYXML_USE_STL=YES/NO will control STL compilation. In the
-Windows project file, STL and non STL targets are provided. In your project,
-It's probably easiest to add the line "#define TIXML_USE_STL" as the first
-line of tinyxml.h.
-
-<h3> UTF-8 </h3>
-
-TinyXML supports UTF-8 allowing to manipulate XML files in any language. TinyXML
-also supports "legacy mode" - the encoding used before UTF-8 support and
-probably best described as "extended ascii".
-
-Normally, TinyXML will try to detect the correct encoding and use it. However,
-by setting the value of TIXML_DEFAULT_ENCODING in the header file, TinyXML
-can be forced to always use one encoding.
-
-TinyXML will assume Legacy Mode until one of the following occurs:
-<ol>
-       <li> If the non-standard but common "UTF-8 lead bytes" (0xef 0xbb 0xbf)
-                begin the file or data stream, TinyXML will read it as UTF-8. </li>
-       <li> If the declaration tag is read, and it has an encoding="UTF-8", then
-                TinyXML will read it as UTF-8. </li>
-       <li> If the declaration tag is read, and it has no encoding specified, then TinyXML will 
-                read it as UTF-8. </li>
-       <li> If the declaration tag is read, and it has an encoding="something else", then TinyXML 
-                will read it as Legacy Mode. In legacy mode, TinyXML will work as it did before. It's 
-                not clear what that mode does exactly, but old content should keep working.</li>
-       <li> Until one of the above criteria is met, TinyXML runs in Legacy Mode.</li>
-</ol>
-
-What happens if the encoding is incorrectly set or detected? TinyXML will try
-to read and pass through text seen as improperly encoded. You may get some strange results or 
-mangled characters. You may want to force TinyXML to the correct mode.
-
-You may force TinyXML to Legacy Mode by using LoadFile( TIXML_ENCODING_LEGACY ) or
-LoadFile( filename, TIXML_ENCODING_LEGACY ). You may force it to use legacy mode all
-the time by setting TIXML_DEFAULT_ENCODING = TIXML_ENCODING_LEGACY. Likewise, you may 
-force it to TIXML_ENCODING_UTF8 with the same technique.
-
-For English users, using English XML, UTF-8 is the same as low-ASCII. You
-don't need to be aware of UTF-8 or change your code in any way. You can think
-of UTF-8 as a "superset" of ASCII.
-
-UTF-8 is not a double byte format - but it is a standard encoding of Unicode!
-TinyXML does not use or directly support wchar, TCHAR, or Microsoft's _UNICODE at this time. 
-It is common to see the term "Unicode" improperly refer to UTF-16, a wide byte encoding
-of unicode. This is a source of confusion.
-
-For "high-ascii" languages - everything not English, pretty much - TinyXML can
-handle all languages, at the same time, as long as the XML is encoded
-in UTF-8. That can be a little tricky, older programs and operating systems
-tend to use the "default" or "traditional" code page. Many apps (and almost all
-modern ones) can output UTF-8, but older or stubborn (or just broken) ones
-still output text in the default code page. 
-
-For example, Japanese systems traditionally use SHIFT-JIS encoding. 
-Text encoded as SHIFT-JIS can not be read by TinyXML. 
-A good text editor can import SHIFT-JIS and then save as UTF-8.
-
-The <a href="http://skew.org/xml/tutorial/">Skew.org link</a> does a great
-job covering the encoding issue.
-
-The test file "utf8test.xml" is an XML containing English, Spanish, Russian,
-and Simplified Chinese. (Hopefully they are translated correctly). The file
-"utf8test.gif" is a screen capture of the XML file, rendered in IE. Note that
-if you don't have the correct fonts (Simplified Chinese or Russian) on your
-system, you won't see output that matches the GIF file even if you can parse
-it correctly. Also note that (at least on my Windows machine) console output
-is in a Western code page, so that Print() or printf() cannot correctly display
-the file. This is not a bug in TinyXML - just an OS issue. No data is lost or 
-destroyed by TinyXML. The console just doesn't render UTF-8.
-
-
-<h3> Entities </h3>
-TinyXML recognizes the pre-defined "character entities", meaning special
-characters. Namely:
-
-@verbatim
-       &amp;   &
-       &lt;    <
-       &gt;    >
-       &quot;  "
-       &apos;  '
-@endverbatim
-
-These are recognized when the XML document is read, and translated to there
-UTF-8 equivalents. For instance, text with the XML of:
-
-@verbatim
-       Far &amp; Away
-@endverbatim
-
-will have the Value() of "Far & Away" when queried from the TiXmlText object,
-and will be written back to the XML stream/file as an ampersand. Older versions
-of TinyXML "preserved" character entities, but the newer versions will translate
-them into characters.
-
-Additionally, any character can be specified by its Unicode code point:
-The syntax "&#xA0;" or "&#160;" are both to the non-breaking space characher.
-
-<h3> Printing </h3>
-TinyXML can print output in several different ways that all have strengths and limitations.
-
-- Print( FILE* ). Output to a std-C stream, which includes all C files as well as stdout.
-       - "Pretty prints", but you don't have control over printing options.
-       - The output is streamed directly to the FILE object, so there is no memory overhead
-         in the TinyXML code.
-       - used by Print() and SaveFile()
-
-- operator<<. Output to a c++ stream.
-       - Integrates with standart C++ iostreams.
-       - Outputs in "network printing" mode without line breaks. Good for network transmission
-         and moving XML between C++ objects, but hard for a human to read.
-
-- TiXmlPrinter. Output to a std::string or memory buffer.
-       - API is less concise
-       - Future printing options will be put here.
-       - Printing may change slightly in future versions as it is refined and expanded.
-
-<h3> Streams </h3>
-With TIXML_USE_STL on TinyXML supports C++ streams (operator <<,>>) streams as well
-as C (FILE*) streams. There are some differences that you may need to be aware of.
-
-C style output:
-       - based on FILE*
-       - the Print() and SaveFile() methods
-
-       Generates formatted output, with plenty of white space, intended to be as 
-       human-readable as possible. They are very fast, and tolerant of ill formed 
-       XML documents. For example, an XML document that contains 2 root elements 
-       and 2 declarations, will still print.
-
-C style input:
-       - based on FILE*
-       - the Parse() and LoadFile() methods
-
-       A fast, tolerant read. Use whenever you don't need the C++ streams.
-
-C++ style output:
-       - based on std::ostream
-       - operator<<
-
-       Generates condensed output, intended for network transmission rather than
-       readability. Depending on your system's implementation of the ostream class,
-       these may be somewhat slower. (Or may not.) Not tolerant of ill formed XML:
-       a document should contain the correct one root element. Additional root level
-       elements will not be streamed out.
-
-C++ style input:
-       - based on std::istream
-       - operator>>
-
-       Reads XML from a stream, making it useful for network transmission. The tricky
-       part is knowing when the XML document is complete, since there will almost
-       certainly be other data in the stream. TinyXML will assume the XML data is
-       complete after it reads the root element. Put another way, documents that
-       are ill-constructed with more than one root element will not read correctly.
-       Also note that operator>> is somewhat slower than Parse, due to both 
-       implementation of the STL and limitations of TinyXML.
-
-<h3> White space </h3>
-The world simply does not agree on whether white space should be kept, or condensed.
-For example, pretend the '_' is a space, and look at "Hello____world". HTML, and 
-at least some XML parsers, will interpret this as "Hello_world". They condense white
-space. Some XML parsers do not, and will leave it as "Hello____world". (Remember
-to keep pretending the _ is a space.) Others suggest that __Hello___world__ should become
-Hello___world.
-
-It's an issue that hasn't been resolved to my satisfaction. TinyXML supports the
-first 2 approaches. Call TiXmlBase::SetCondenseWhiteSpace( bool ) to set the desired behavior.
-The default is to condense white space.
-
-If you change the default, you should call TiXmlBase::SetCondenseWhiteSpace( bool )
-before making any calls to Parse XML data, and I don't recommend changing it after
-it has been set.
-
-
-<h3> Handles </h3>
-
-Where browsing an XML document in a robust way, it is important to check
-for null returns from method calls. An error safe implementation can
-generate a lot of code like:
-
-@verbatim
-TiXmlElement* root = document.FirstChildElement( "Document" );
-if ( root )
-{
-       TiXmlElement* element = root->FirstChildElement( "Element" );
-       if ( element )
-       {
-               TiXmlElement* child = element->FirstChildElement( "Child" );
-               if ( child )
-               {
-                       TiXmlElement* child2 = child->NextSiblingElement( "Child" );
-                       if ( child2 )
-                       {
-                               // Finally do something useful.
-@endverbatim
-
-Handles have been introduced to clean this up. Using the TiXmlHandle class,
-the previous code reduces to:
-
-@verbatim
-TiXmlHandle docHandle( &document );
-TiXmlElement* child2 = docHandle.FirstChild( "Document" ).FirstChild( "Element" ).Child( "Child", 1 ).ToElement();
-if ( child2 )
-{
-       // do something useful
-@endverbatim
-
-Which is much easier to deal with. See TiXmlHandle for more information.
-
-
-<h3> Row and Column tracking </h3>
-Being able to track nodes and attributes back to their origin location
-in source files can be very important for some applications. Additionally,
-knowing where parsing errors occured in the original source can be very
-time saving.
-
-TinyXML can tracks the row and column origin of all nodes and attributes
-in a text file. The TiXmlBase::Row() and TiXmlBase::Column() methods return
-the origin of the node in the source text. The correct tabs can be 
-configured in TiXmlDocument::SetTabSize().
-
-
-<h2> Using and Installing </h2>
-
-To Compile and Run xmltest:
-
-A Linux Makefile and a Windows Visual C++ .dsw file is provided. 
-Simply compile and run. It will write the file demotest.xml to your 
-disk and generate output on the screen. It also tests walking the
-DOM by printing out the number of nodes found using different 
-techniques.
-
-The Linux makefile is very generic and runs on many systems - it 
-is currently tested on mingw and
-MacOSX. You do not need to run 'make depend'. The dependecies have been
-hard coded.
-
-<h3>Windows project file for VC6</h3>
-<ul>
-<li>tinyxml:           tinyxml library, non-STL </li>
-<li>tinyxmlSTL:                tinyxml library, STL </li>
-<li>tinyXmlTest:       test app, non-STL </li>
-<li>tinyXmlTestSTL: test app, STL </li>
-</ul>
-
-<h3>Makefile</h3>
-At the top of the makefile you can set:
-
-PROFILE, DEBUG, and TINYXML_USE_STL. Details (such that they are) are in
-the makefile.
-
-In the tinyxml directory, type "make clean" then "make". The executable
-file 'xmltest' will be created.
-
-
-
-<h3>To Use in an Application:</h3>
-
-Add tinyxml.cpp, tinyxml.h, tinyxmlerror.cpp, tinyxmlparser.cpp, tinystr.cpp, and tinystr.h to your
-project or make file. That's it! It should compile on any reasonably
-compliant C++ system. You do not need to enable exceptions or
-RTTI for TinyXML.
-
-
-<h2> How TinyXML works.  </h2>
-
-An example is probably the best way to go. Take:
-@verbatim
-       <?xml version="1.0" standalone=no>
-       <!-- Our to do list data -->
-       <ToDo>
-               <Item priority="1"> Go to the <bold>Toy store!</bold></Item>
-               <Item priority="2"> Do bills</Item>
-       </ToDo>
-@endverbatim
-
-Its not much of a To Do list, but it will do. To read this file 
-(say "demo.xml") you would create a document, and parse it in:
-@verbatim
-       TiXmlDocument doc( "demo.xml" );
-       doc.LoadFile();
-@endverbatim
-
-And its ready to go. Now lets look at some lines and how they 
-relate to the DOM.
-
-@verbatim
-<?xml version="1.0" standalone=no>
-@endverbatim
-
-       The first line is a declaration, and gets turned into the
-       TiXmlDeclaration class. It will be the first child of the
-       document node.
-       
-       This is the only directive/special tag parsed by TinyXML.
-       Generally directive tags are stored in TiXmlUnknown so the 
-       commands wont be lost when it is saved back to disk.
-
-@verbatim
-<!-- Our to do list data -->
-@endverbatim
-
-       A comment. Will become a TiXmlComment object.
-
-@verbatim
-<ToDo>
-@endverbatim
-
-       The "ToDo" tag defines a TiXmlElement object. This one does not have 
-       any attributes, but does contain 2 other elements.
-
-@verbatim
-<Item priority="1"> 
-@endverbatim
-
-       Creates another TiXmlElement which is a child of the "ToDo" element. 
-       This element has 1 attribute, with the name "priority" and the value 
-       "1".
-
-@verbatim
-Go to the
-@endverbatim 
-
-       A TiXmlText. This is a leaf node and cannot contain other nodes. 
-       It is a child of the "Item" TiXmlElement.
-
-@verbatim
-<bold>
-@endverbatim
-
-       
-       Another TiXmlElement, this one a child of the "Item" element.
-
-Etc.
-
-Looking at the entire object tree, you end up with:
-@verbatim
-TiXmlDocument                                  "demo.xml"
-       TiXmlDeclaration                        "version='1.0'" "standalone=no"
-       TiXmlComment                            " Our to do list data"
-       TiXmlElement                            "ToDo"
-               TiXmlElement                    "Item" Attribtutes: priority = 1
-                       TiXmlText                       "Go to the "
-                       TiXmlElement            "bold"
-                               TiXmlText               "Toy store!"
-               TiXmlElement                    "Item" Attributes: priority=2
-                       TiXmlText                       "Do bills"
-@endverbatim
-
-<h2> Documentation </h2>
-
-The documentation is build with Doxygen, using the 'dox' 
-configuration file.
-
-<h2> License </h2>
-
-TinyXML is released under the zlib license:
-
-This software is provided 'as-is', without any express or implied 
-warranty. In no event will the authors be held liable for any 
-damages arising from the use of this software.
-
-Permission is granted to anyone to use this software for any 
-purpose, including commercial applications, and to alter it and 
-redistribute it freely, subject to the following restrictions:
-
-1. The origin of this software must not be misrepresented; you must 
-not claim that you wrote the original software. If you use this 
-software in a product, an acknowledgment in the product documentation 
-would be appreciated but is not required.
-
-2. Altered source versions must be plainly marked as such, and 
-must not be misrepresented as being the original software.
-
-3. This notice may not be removed or altered from any source 
-distribution.
-
-<h2> References  </h2>
-
-The World Wide Web Consortium is the definitive standard body for 
-XML, and their web pages contain huge amounts of information. 
-
-The definitive spec: <a href="http://www.w3.org/TR/2004/REC-xml-20040204/">
-http://www.w3.org/TR/2004/REC-xml-20040204/</a>
-
-I also recommend "XML Pocket Reference" by Robert Eckstein and published by 
-OReilly...the book that got the whole thing started.
-
-<h2> Contributors, Contacts, and a Brief History </h2>
-
-Thanks very much to everyone who sends suggestions, bugs, ideas, and 
-encouragement. It all helps, and makes this project fun. A special thanks
-to the contributors on the web pages that keep it lively.
-
-So many people have sent in bugs and ideas, that rather than list here 
-we try to give credit due in the "changes.txt" file.
-
-TinyXML was originally written by Lee Thomason. (Often the "I" still
-in the documentation.) Lee reviews changes and releases new versions,
-with the help of Yves Berquin, Andrew Ellerton, and the tinyXml community.
-
-We appreciate your suggestions, and would love to know if you 
-use TinyXML. Hopefully you will enjoy it and find it useful. 
-Please post questions, comments, file bugs, or contact us at:
-
-www.sourceforge.net/projects/tinyxml
-
-Lee Thomason, Yves Berquin, Andrew Ellerton
-*/
diff --git a/lib/third_party/tinyxml/tinystr.cpp b/lib/third_party/tinyxml/tinystr.cpp
deleted file mode 100644 (file)
index 35be574..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-/*
-  www.sourceforge.net/projects/tinyxml
-  Original file by Yves Berquin.
-
-  This software is provided 'as-is', without any express or implied
-  warranty. In no event will the authors be held liable for any
-  damages arising from the use of this software.
-
-  Permission is granted to anyone to use this software for any
-  purpose, including commercial applications, and to alter it and
-  redistribute it freely, subject to the following restrictions:
-
-  1. The origin of this software must not be misrepresented; you must
-  not claim that you wrote the original software. If you use this
-  software in a product, an acknowledgment in the product documentation
-  would be appreciated but is not required.
-
-  2. Altered source versions must be plainly marked as such, and
-  must not be misrepresented as being the original software.
-
-  3. This notice may not be removed or altered from any source
-  distribution.
-*/
-
-/*
- * THIS FILE WAS ALTERED BY Tyge Løvset, 7. April 2005.
- */
-
-
-#ifndef TIXML_USE_STL
-
-#include "tinystr.h"
-
-// Error value for find primitive
-const TiXmlString::size_type TiXmlString::npos = static_cast< TiXmlString::size_type >(-1);
-
-
-// Null rep.
-TiXmlString::Rep TiXmlString::nullrep_ = { 0, 0, { '\0' } };
-
-
-void TiXmlString::reserve (size_type cap)
-{
-  if (cap > capacity())
-  {
-    TiXmlString tmp;
-    tmp.init(length(), cap);
-    memcpy(tmp.start(), data(), length());
-    swap(tmp);
-  }
-}
-
-
-TiXmlString& TiXmlString::assign(const char* str, size_type len)
-{
-  size_type cap = capacity();
-  if (len > cap || cap > 3*(len + 8))
-  {
-    TiXmlString tmp;
-    tmp.init(len);
-    memcpy(tmp.start(), str, len);
-    swap(tmp);
-  }
-  else
-  {
-    memmove(start(), str, len);
-    set_size(len);
-  }
-  return *this;
-}
-
-
-TiXmlString& TiXmlString::append(const char* str, size_type len)
-{
-  size_type newsize = length() + len;
-  if (newsize > capacity())
-  {
-    reserve (newsize + capacity());
-  }
-  memmove(finish(), str, len);
-  set_size(newsize);
-  return *this;
-}
-
-
-TiXmlString operator + (const TiXmlString & a, const TiXmlString & b)
-{
-  TiXmlString tmp;
-  tmp.reserve(a.length() + b.length());
-  tmp += a;
-  tmp += b;
-  return tmp;
-}
-
-TiXmlString operator + (const TiXmlString & a, const char* b)
-{
-  TiXmlString tmp;
-  TiXmlString::size_type b_len = static_cast<TiXmlString::size_type>( strlen(b) );
-  tmp.reserve(a.length() + b_len);
-  tmp += a;
-  tmp.append(b, b_len);
-  return tmp;
-}
-
-TiXmlString operator + (const char* a, const TiXmlString & b)
-{
-  TiXmlString tmp;
-  TiXmlString::size_type a_len = static_cast<TiXmlString::size_type>( strlen(a) );
-  tmp.reserve(a_len + b.length());
-  tmp.append(a, a_len);
-  tmp += b;
-  return tmp;
-}
-
-
-#endif  // TIXML_USE_STL
diff --git a/lib/third_party/tinyxml/tinystr.h b/lib/third_party/tinyxml/tinystr.h
deleted file mode 100644 (file)
index 5d03866..0000000
+++ /dev/null
@@ -1,320 +0,0 @@
-/*
-  www.sourceforge.net/projects/tinyxml
-  Original file by Yves Berquin.
-
-  This software is provided 'as-is', without any express or implied
-  warranty. In no event will the authors be held liable for any
-  damages arising from the use of this software.
-
-  Permission is granted to anyone to use this software for any
-  purpose, including commercial applications, and to alter it and
-  redistribute it freely, subject to the following restrictions:
-
-  1. The origin of this software must not be misrepresented; you must
-  not claim that you wrote the original software. If you use this
-  software in a product, an acknowledgment in the product documentation
-  would be appreciated but is not required.
-
-  2. Altered source versions must be plainly marked as such, and
-  must not be misrepresented as being the original software.
-
-  3. This notice may not be removed or altered from any source
-  distribution.
-*/
-
-/*
- * THIS FILE WAS ALTERED BY Tyge Lovset, 7. April 2005.
- *
- * - completely rewritten. compact, clean, and fast implementation.
- * - sizeof(TiXmlString) = pointer size (4 bytes on 32-bit systems)
- * - fixed reserve() to work as per specification.
- * - fixed buggy compares operator==(), operator<(), and operator>()
- * - fixed operator+=() to take a const ref argument, following spec.
- * - added "copy" constructor with length, and most compare operators.
- * - added swap(), clear(), size(), capacity(), operator+().
- */
-
-#ifndef TIXML_USE_STL
-
-#ifndef TIXML_STRING_INCLUDED
-#define TIXML_STRING_INCLUDED
-
-#include <assert.h>
-#include <string.h>
-#include <tinyxml/cpPlugins_tinyxml_Export.h>
-
-/*      The support for explicit isn't that universal, and it isn't really
-        required - it is used to check that the TiXmlString class isn't incorrectly
-        used. Be nice to old compilers and macro it here:
-*/
-#if defined(_MSC_VER) && (_MSC_VER >= 1200 )
-// Microsoft visual studio, version 6 and higher.
-#define TIXML_EXPLICIT explicit
-#elif defined(__GNUC__) && (__GNUC__ >= 3 )
-// GCC version 3 and higher.s
-#define TIXML_EXPLICIT explicit
-#else
-#define TIXML_EXPLICIT
-#endif
-
-
-/*
-  TiXmlString is an emulation of a subset of the std::string template.
-  Its purpose is to allow compiling TinyXML on compilers with no or poor STL support.
-  Only the member functions relevant to the TinyXML project have been implemented.
-  The buffer allocation is made by a simplistic power of 2 like mechanism : if we increase
-  a string and there's no more room, we allocate a buffer twice as big as we need.
-*/
-class cpPlugins_tinyxml_EXPORT TiXmlString
-{
-public :
-  // The size type used
-  typedef size_t size_type;
-
-  // Error value for find primitive
-  static const size_type npos; // = -1;
-
-
-  // TiXmlString empty constructor
-  TiXmlString () : rep_(&nullrep_)
-    {
-    }
-
-  // TiXmlString copy constructor
-  TiXmlString ( const TiXmlString & copy) : rep_(0)
-    {
-      init(copy.length());
-      memcpy(start(), copy.data(), length());
-    }
-
-  // TiXmlString constructor, based on a string
-  TIXML_EXPLICIT TiXmlString ( const char * copy) : rep_(0)
-    {
-      init( static_cast<size_type>( strlen(copy) ));
-      memcpy(start(), copy, length());
-    }
-
-  // TiXmlString constructor, based on a string
-  TIXML_EXPLICIT TiXmlString ( const char * str, size_type len) : rep_(0)
-    {
-      init(len);
-      memcpy(start(), str, len);
-    }
-
-  // TiXmlString destructor
-  ~TiXmlString ()
-    {
-      quit();
-    }
-
-  // = operator
-  TiXmlString& operator = (const char * copy)
-    {
-      return assign( copy, (size_type)strlen(copy));
-    }
-
-  // = operator
-  TiXmlString& operator = (const TiXmlString & copy)
-    {
-      return assign(copy.start(), copy.length());
-    }
-
-
-  // += operator. Maps to append
-  TiXmlString& operator += (const char * suffix)
-    {
-      return append(suffix, static_cast<size_type>( strlen(suffix) ));
-    }
-
-  // += operator. Maps to append
-  TiXmlString& operator += (char single)
-    {
-      return append(&single, 1);
-    }
-
-  // += operator. Maps to append
-  TiXmlString& operator += (const TiXmlString & suffix)
-    {
-      return append(suffix.data(), suffix.length());
-    }
-
-
-  // Convert a TiXmlString into a null-terminated char *
-  const char * c_str () const { return rep_->str; }
-
-  // Convert a TiXmlString into a char * (need not be null terminated).
-  const char * data () const { return rep_->str; }
-
-  // Return the length of a TiXmlString
-  size_type length () const { return rep_->size; }
-
-  // Alias for length()
-  size_type size () const { return rep_->size; }
-
-  // Checks if a TiXmlString is empty
-  bool empty () const { return rep_->size == 0; }
-
-  // Return capacity of string
-  size_type capacity () const { return rep_->capacity; }
-
-
-  // single char extraction
-  const char& at (size_type index) const
-    {
-      assert( index < length() );
-      return rep_->str[ index ];
-    }
-
-  // [] operator
-  char& operator [] (size_type index) const
-    {
-      assert( index < length() );
-      return rep_->str[ index ];
-    }
-
-  // find a char in a string. Return TiXmlString::npos if not found
-  size_type find (char lookup) const
-    {
-      return find(lookup, 0);
-    }
-
-  // find a char in a string from an offset. Return TiXmlString::npos if not found
-  size_type find (char tofind, size_type offset) const
-    {
-      if (offset >= length()) return npos;
-
-      for (const char* p = c_str() + offset; *p != '\0'; ++p)
-      {
-        if (*p == tofind) return static_cast< size_type >( p - c_str() );
-      }
-      return npos;
-    }
-
-  void clear ()
-    {
-      //Lee:
-      //The original was just too strange, though correct:
-      //      TiXmlString().swap(*this);
-      //Instead use the quit & re-init:
-      quit();
-      init(0,0);
-    }
-
-  /*      Function to reserve a big amount of data when we know we'll need it. Be aware that this
-          function DOES NOT clear the content of the TiXmlString if any exists.
-  */
-  void reserve (size_type cap);
-
-  TiXmlString& assign (const char* str, size_type len);
-
-  TiXmlString& append (const char* str, size_type len);
-
-  void swap (TiXmlString& other)
-    {
-      Rep* r = rep_;
-      rep_ = other.rep_;
-      other.rep_ = r;
-    }
-
-private:
-
-  void init(size_type sz) { init(sz, sz); }
-  void set_size(size_type sz) { rep_->str[ rep_->size = sz ] = '\0'; }
-  char* start() const { return rep_->str; }
-  char* finish() const { return rep_->str + rep_->size; }
-
-  struct Rep
-  {
-    size_type size, capacity;
-    char str[1];
-  };
-
-  void init(size_type sz, size_type cap)
-    {
-      if (cap)
-      {
-        // Lee: the original form:
-        //      rep_ = static_cast<Rep*>(operator new(sizeof(Rep) + cap));
-        // doesn't work in some cases of new being overloaded. Switching
-        // to the normal allocation, although use an 'int' for systems
-        // that are overly picky about structure alignment.
-        const size_type bytesNeeded = sizeof(Rep) + cap;
-        const size_type intsNeeded = ( bytesNeeded + sizeof(int) - 1 ) / sizeof( int );
-        rep_ = reinterpret_cast<Rep*>( new int[ intsNeeded ] );
-
-        rep_->str[ rep_->size = sz ] = '\0';
-        rep_->capacity = cap;
-      }
-      else
-      {
-        rep_ = &nullrep_;
-      }
-    }
-
-  void quit()
-    {
-      if (rep_ != &nullrep_)
-      {
-        // The rep_ is really an array of ints. (see the allocator, above).
-        // Cast it back before delete, so the compiler won't incorrectly call destructors.
-        delete [] ( reinterpret_cast<int*>( rep_ ) );
-      }
-    }
-
-  Rep * rep_;
-  static Rep nullrep_;
-
-} ;
-
-
-inline bool operator == (const TiXmlString & a, const TiXmlString & b)
-{
-  return    ( a.length() == b.length() )                          // optimization on some platforms
-    && ( strcmp(a.c_str(), b.c_str()) == 0 );        // actual compare
-}
-inline bool operator < (const TiXmlString & a, const TiXmlString & b)
-{
-  return strcmp(a.c_str(), b.c_str()) < 0;
-}
-
-inline bool operator != (const TiXmlString & a, const TiXmlString & b) { return !(a == b); }
-inline bool operator >  (const TiXmlString & a, const TiXmlString & b) { return b < a; }
-inline bool operator <= (const TiXmlString & a, const TiXmlString & b) { return !(b < a); }
-inline bool operator >= (const TiXmlString & a, const TiXmlString & b) { return !(a < b); }
-
-inline bool operator == (const TiXmlString & a, const char* b) { return strcmp(a.c_str(), b) == 0; }
-inline bool operator == (const char* a, const TiXmlString & b) { return b == a; }
-inline bool operator != (const TiXmlString & a, const char* b) { return !(a == b); }
-inline bool operator != (const char* a, const TiXmlString & b) { return !(b == a); }
-
-TiXmlString operator + (const TiXmlString & a, const TiXmlString & b);
-TiXmlString operator + (const TiXmlString & a, const char* b);
-TiXmlString operator + (const char* a, const TiXmlString & b);
-
-
-/*
-  TiXmlOutStream is an emulation of std::ostream. It is based on TiXmlString.
-  Only the operators that we need for TinyXML have been developped.
-*/
-class TiXmlOutStream : public TiXmlString
-{
-public :
-
-  // TiXmlOutStream << operator.
-  TiXmlOutStream & operator << (const TiXmlString & in)
-    {
-      *this += in;
-      return *this;
-    }
-
-  // TiXmlOutStream << operator.
-  TiXmlOutStream & operator << (const char * in)
-    {
-      *this += in;
-      return *this;
-    }
-
-} ;
-
-#endif  // TIXML_STRING_INCLUDED
-#endif  // TIXML_USE_STL
diff --git a/lib/third_party/tinyxml/tinyxml.cpp b/lib/third_party/tinyxml/tinyxml.cpp
deleted file mode 100644 (file)
index f345990..0000000
+++ /dev/null
@@ -1,1838 +0,0 @@
-/*
-  www.sourceforge.net/projects/tinyxml
-  Original code (2.0 and earlier )copyright (c) 2000-2006 Lee Thomason (www.grinninglizard.com)
-
-  This software is provided 'as-is', without any express or implied
-  warranty. In no event will the authors be held liable for any
-  damages arising from the use of this software.
-
-  Permission is granted to anyone to use this software for any
-  purpose, including commercial applications, and to alter it and
-  redistribute it freely, subject to the following restrictions:
-
-  1. The origin of this software must not be misrepresented; you must
-  not claim that you wrote the original software. If you use this
-  software in a product, an acknowledgment in the product documentation
-  would be appreciated but is not required.
-
-  2. Altered source versions must be plainly marked as such, and
-  must not be misrepresented as being the original software.
-
-  3. This notice may not be removed or altered from any source
-  distribution.
-*/
-
-#include <ctype.h>
-
-#ifdef TIXML_USE_STL
-#include <sstream>
-#include <iostream>
-#endif
-
-#include "tinyxml.h"
-
-FILE* TiXmlFOpen( const char* filename, const char* mode );
-
-bool TiXmlBase::condenseWhiteSpace = true;
-
-// Microsoft compiler security
-FILE* TiXmlFOpen( const char* filename, const char* mode )
-{
-#if defined(_MSC_VER) && (_MSC_VER >= 1400 )
-  FILE* fp = 0;
-  errno_t err = fopen_s( &fp, filename, mode );
-  if ( !err && fp )
-    return fp;
-  return 0;
-#else
-  return fopen( filename, mode );
-#endif
-}
-
-void TiXmlBase::EncodeString( const TIXML_STRING& str, TIXML_STRING* outString )
-{
-  int i=0;
-
-  while( i<(int)str.length() )
-  {
-    unsigned char c = (unsigned char) str[i];
-
-    if (    c == '&'
-            && i < ( (int)str.length() - 2 )
-            && str[i+1] == '#'
-            && str[i+2] == 'x' )
-    {
-      // Hexadecimal character reference.
-      // Pass through unchanged.
-      // &#xA9;       -- copyright symbol, for example.
-      //
-      // The -1 is a bug fix from Rob Laveaux. It keeps
-      // an overflow from happening if there is no ';'.
-      // There are actually 2 ways to exit this loop -
-      // while fails (error case) and break (semicolon found).
-      // However, there is no mechanism (currently) for
-      // this function to return an error.
-      while ( i<(int)str.length()-1 )
-      {
-        outString->append( str.c_str() + i, 1 );
-        ++i;
-        if ( str[i] == ';' )
-          break;
-      }
-    }
-    else if ( c == '&' )
-    {
-      outString->append( entity[0].str, entity[0].strLength );
-      ++i;
-    }
-    else if ( c == '<' )
-    {
-      outString->append( entity[1].str, entity[1].strLength );
-      ++i;
-    }
-    else if ( c == '>' )
-    {
-      outString->append( entity[2].str, entity[2].strLength );
-      ++i;
-    }
-    else if ( c == '\"' )
-    {
-      outString->append( entity[3].str, entity[3].strLength );
-      ++i;
-    }
-    else if ( c == '\'' )
-    {
-      outString->append( entity[4].str, entity[4].strLength );
-      ++i;
-    }
-    else if ( c < 32 )
-    {
-      // Easy pass at non-alpha/numeric/symbol
-      // Below 32 is symbolic.
-      char buf[ 32 ];
-
-#if defined(TIXML_SNPRINTF)
-      TIXML_SNPRINTF( buf, sizeof(buf), "&#x%02X;", (unsigned) ( c & 0xff ) );
-#else
-      sprintf( buf, "&#x%02X;", (unsigned) ( c & 0xff ) );
-#endif
-
-      //*ME:  warning C4267: convert 'size_t' to 'int'
-          //*ME:  Int-Cast to make compiler happy ...
-          outString->append( buf, (int)strlen( buf ) );
-      ++i;
-    }
-    else
-    {
-      //char realc = (char) c;
-      //outString->append( &realc, 1 );
-      *outString += (char) c; // somewhat more efficient function call.
-      ++i;
-    }
-  }
-}
-
-
-TiXmlNode::TiXmlNode( NodeType _type ) : TiXmlBase()
-{
-  parent = 0;
-  type = _type;
-  firstChild = 0;
-  lastChild = 0;
-  prev = 0;
-  next = 0;
-}
-
-
-TiXmlNode::~TiXmlNode()
-{
-  TiXmlNode* node = firstChild;
-  TiXmlNode* temp = 0;
-
-  while ( node )
-  {
-    temp = node;
-    node = node->next;
-    delete temp;
-  }
-}
-
-
-void TiXmlNode::CopyTo( TiXmlNode* target ) const
-{
-  target->SetValue (value.c_str() );
-  target->userData = userData;
-  target->location = location;
-}
-
-
-void TiXmlNode::Clear()
-{
-  TiXmlNode* node = firstChild;
-  TiXmlNode* temp = 0;
-
-  while ( node )
-  {
-    temp = node;
-    node = node->next;
-    delete temp;
-  }
-
-  firstChild = 0;
-  lastChild = 0;
-}
-
-
-TiXmlNode* TiXmlNode::LinkEndChild( TiXmlNode* node )
-{
-  assert( node->parent == 0 || node->parent == this );
-  assert( node->GetDocument() == 0 || node->GetDocument() == this->GetDocument() );
-
-  if ( node->Type() == TiXmlNode::TINYXML_DOCUMENT )
-  {
-    delete node;
-    if ( GetDocument() ) GetDocument()->SetError( TIXML_ERROR_DOCUMENT_TOP_ONLY, 0, 0, TIXML_ENCODING_UNKNOWN );
-    return 0;
-  }
-
-  node->parent = this;
-
-  node->prev = lastChild;
-  node->next = 0;
-
-  if ( lastChild )
-    lastChild->next = node;
-  else
-    firstChild = node;                      // it was an empty list.
-
-  lastChild = node;
-  return node;
-}
-
-
-TiXmlNode* TiXmlNode::InsertEndChild( const TiXmlNode& addThis )
-{
-  if ( addThis.Type() == TiXmlNode::TINYXML_DOCUMENT )
-  {
-    if ( GetDocument() ) GetDocument()->SetError( TIXML_ERROR_DOCUMENT_TOP_ONLY, 0, 0, TIXML_ENCODING_UNKNOWN );
-    return 0;
-  }
-  TiXmlNode* node = addThis.Clone();
-  if ( !node )
-    return 0;
-
-  return LinkEndChild( node );
-}
-
-
-TiXmlNode* TiXmlNode::InsertBeforeChild( TiXmlNode* beforeThis, const TiXmlNode& addThis )
-{
-  if ( !beforeThis || beforeThis->parent != this ) {
-    return 0;
-  }
-  if ( addThis.Type() == TiXmlNode::TINYXML_DOCUMENT )
-  {
-    if ( GetDocument() ) GetDocument()->SetError( TIXML_ERROR_DOCUMENT_TOP_ONLY, 0, 0, TIXML_ENCODING_UNKNOWN );
-    return 0;
-  }
-
-  TiXmlNode* node = addThis.Clone();
-  if ( !node )
-    return 0;
-  node->parent = this;
-
-  node->next = beforeThis;
-  node->prev = beforeThis->prev;
-  if ( beforeThis->prev )
-  {
-    beforeThis->prev->next = node;
-  }
-  else
-  {
-    assert( firstChild == beforeThis );
-    firstChild = node;
-  }
-  beforeThis->prev = node;
-  return node;
-}
-
-
-TiXmlNode* TiXmlNode::InsertAfterChild( TiXmlNode* afterThis, const TiXmlNode& addThis )
-{
-  if ( !afterThis || afterThis->parent != this ) {
-    return 0;
-  }
-  if ( addThis.Type() == TiXmlNode::TINYXML_DOCUMENT )
-  {
-    if ( GetDocument() ) GetDocument()->SetError( TIXML_ERROR_DOCUMENT_TOP_ONLY, 0, 0, TIXML_ENCODING_UNKNOWN );
-    return 0;
-  }
-
-  TiXmlNode* node = addThis.Clone();
-  if ( !node )
-    return 0;
-  node->parent = this;
-
-  node->prev = afterThis;
-  node->next = afterThis->next;
-  if ( afterThis->next )
-  {
-    afterThis->next->prev = node;
-  }
-  else
-  {
-    assert( lastChild == afterThis );
-    lastChild = node;
-  }
-  afterThis->next = node;
-  return node;
-}
-
-
-TiXmlNode* TiXmlNode::ReplaceChild( TiXmlNode* replaceThis, const TiXmlNode& withThis )
-{
-  if ( !replaceThis )
-    return 0;
-
-  if ( replaceThis->parent != this )
-    return 0;
-
-  if ( withThis.ToDocument() ) {
-    // A document can never be a child.     Thanks to Noam.
-    TiXmlDocument* document = GetDocument();
-    if ( document )
-      document->SetError( TIXML_ERROR_DOCUMENT_TOP_ONLY, 0, 0, TIXML_ENCODING_UNKNOWN );
-    return 0;
-  }
-
-  TiXmlNode* node = withThis.Clone();
-  if ( !node )
-    return 0;
-
-  node->next = replaceThis->next;
-  node->prev = replaceThis->prev;
-
-  if ( replaceThis->next )
-    replaceThis->next->prev = node;
-  else
-    lastChild = node;
-
-  if ( replaceThis->prev )
-    replaceThis->prev->next = node;
-  else
-    firstChild = node;
-
-  delete replaceThis;
-  node->parent = this;
-  return node;
-}
-
-
-bool TiXmlNode::RemoveChild( TiXmlNode* removeThis )
-{
-  if ( !removeThis ) {
-    return false;
-  }
-
-  if ( removeThis->parent != this )
-  {
-    assert( 0 );
-    return false;
-  }
-
-  if ( removeThis->next )
-    removeThis->next->prev = removeThis->prev;
-  else
-    lastChild = removeThis->prev;
-
-  if ( removeThis->prev )
-    removeThis->prev->next = removeThis->next;
-  else
-    firstChild = removeThis->next;
-
-  delete removeThis;
-  return true;
-}
-
-const TiXmlNode* TiXmlNode::FirstChild( const char * _value ) const
-{
-  const TiXmlNode* node;
-  for ( node = firstChild; node; node = node->next )
-  {
-    if ( strcmp( node->Value(), _value ) == 0 )
-      return node;
-  }
-  return 0;
-}
-
-
-const TiXmlNode* TiXmlNode::LastChild( const char * _value ) const
-{
-  const TiXmlNode* node;
-  for ( node = lastChild; node; node = node->prev )
-  {
-    if ( strcmp( node->Value(), _value ) == 0 )
-      return node;
-  }
-  return 0;
-}
-
-
-const TiXmlNode* TiXmlNode::IterateChildren( const TiXmlNode* previous ) const
-{
-  if ( !previous )
-  {
-    return FirstChild();
-  }
-  else
-  {
-    assert( previous->parent == this );
-    return previous->NextSibling();
-  }
-}
-
-
-const TiXmlNode* TiXmlNode::IterateChildren( const char * val, const TiXmlNode* previous ) const
-{
-  if ( !previous )
-  {
-    return FirstChild( val );
-  }
-  else
-  {
-    assert( previous->parent == this );
-    return previous->NextSibling( val );
-  }
-}
-
-
-const TiXmlNode* TiXmlNode::NextSibling( const char * _value ) const
-{
-  const TiXmlNode* node;
-  for ( node = next; node; node = node->next )
-  {
-    if ( strcmp( node->Value(), _value ) == 0 )
-      return node;
-  }
-  return 0;
-}
-
-
-const TiXmlNode* TiXmlNode::PreviousSibling( const char * _value ) const
-{
-  const TiXmlNode* node;
-  for ( node = prev; node; node = node->prev )
-  {
-    if ( strcmp( node->Value(), _value ) == 0 )
-      return node;
-  }
-  return 0;
-}
-
-
-void TiXmlElement::RemoveAttribute( const char * name )
-{
-#ifdef TIXML_USE_STL
-  TIXML_STRING str( name );
-  TiXmlAttribute* node = attributeSet.Find( str );
-#else
-  TiXmlAttribute* node = attributeSet.Find( name );
-#endif
-  if ( node )
-  {
-    attributeSet.Remove( node );
-    delete node;
-  }
-}
-
-const TiXmlElement* TiXmlNode::FirstChildElement() const
-{
-  const TiXmlNode* node;
-
-  for (   node = FirstChild();
-          node;
-          node = node->NextSibling() )
-  {
-    if ( node->ToElement() )
-      return node->ToElement();
-  }
-  return 0;
-}
-
-
-const TiXmlElement* TiXmlNode::FirstChildElement( const char * _value ) const
-{
-  const TiXmlNode* node;
-
-  for (   node = FirstChild( _value );
-          node;
-          node = node->NextSibling( _value ) )
-  {
-    if ( node->ToElement() )
-      return node->ToElement();
-  }
-  return 0;
-}
-
-
-const TiXmlElement* TiXmlNode::NextSiblingElement() const
-{
-  const TiXmlNode* node;
-
-  for (   node = NextSibling();
-          node;
-          node = node->NextSibling() )
-  {
-    if ( node->ToElement() )
-      return node->ToElement();
-  }
-  return 0;
-}
-
-
-const TiXmlElement* TiXmlNode::NextSiblingElement( const char * _value ) const
-{
-  const TiXmlNode* node;
-
-  for (   node = NextSibling( _value );
-          node;
-          node = node->NextSibling( _value ) )
-  {
-    if ( node->ToElement() )
-      return node->ToElement();
-  }
-  return 0;
-}
-
-
-const TiXmlDocument* TiXmlNode::GetDocument() const
-{
-  const TiXmlNode* node;
-
-  for( node = this; node; node = node->parent )
-  {
-    if ( node->ToDocument() )
-      return node->ToDocument();
-  }
-  return 0;
-}
-
-
-TiXmlElement::TiXmlElement (const char * _value)
-  : TiXmlNode( TiXmlNode::TINYXML_ELEMENT )
-{
-  firstChild = lastChild = 0;
-  value = _value;
-}
-
-
-#ifdef TIXML_USE_STL
-TiXmlElement::TiXmlElement( const std::string& _value )
-  : TiXmlNode( TiXmlNode::TINYXML_ELEMENT )
-{
-  firstChild = lastChild = 0;
-  value = _value;
-}
-#endif
-
-
-TiXmlElement::TiXmlElement( const TiXmlElement& copy)
-  : TiXmlNode( TiXmlNode::TINYXML_ELEMENT )
-{
-  firstChild = lastChild = 0;
-  copy.CopyTo( this );
-}
-
-
-void TiXmlElement::operator=( const TiXmlElement& base )
-{
-  ClearThis();
-  base.CopyTo( this );
-}
-
-
-TiXmlElement::~TiXmlElement()
-{
-  ClearThis();
-}
-
-
-void TiXmlElement::ClearThis()
-{
-  Clear();
-  while( attributeSet.First() )
-  {
-    TiXmlAttribute* node = attributeSet.First();
-    attributeSet.Remove( node );
-    delete node;
-  }
-}
-
-
-const char* TiXmlElement::Attribute( const char* name ) const
-{
-  const TiXmlAttribute* node = attributeSet.Find( name );
-  if ( node )
-    return node->Value();
-  return 0;
-}
-
-
-#ifdef TIXML_USE_STL
-const std::string* TiXmlElement::Attribute( const std::string& name ) const
-{
-  const TiXmlAttribute* attrib = attributeSet.Find( name );
-  if ( attrib )
-    return &attrib->ValueStr();
-  return 0;
-}
-#endif
-
-
-const char* TiXmlElement::Attribute( const char* name, int* i ) const
-{
-  const TiXmlAttribute* attrib = attributeSet.Find( name );
-  const char* result = 0;
-
-  if ( attrib ) {
-    result = attrib->Value();
-    if ( i ) {
-      attrib->QueryIntValue( i );
-    }
-  }
-  return result;
-}
-
-
-#ifdef TIXML_USE_STL
-const std::string* TiXmlElement::Attribute( const std::string& name, int* i ) const
-{
-  const TiXmlAttribute* attrib = attributeSet.Find( name );
-  const std::string* result = 0;
-
-  if ( attrib ) {
-    result = &attrib->ValueStr();
-    if ( i ) {
-      attrib->QueryIntValue( i );
-    }
-  }
-  return result;
-}
-#endif
-
-
-const char* TiXmlElement::Attribute( const char* name, double* d ) const
-{
-  const TiXmlAttribute* attrib = attributeSet.Find( name );
-  const char* result = 0;
-
-  if ( attrib ) {
-    result = attrib->Value();
-    if ( d ) {
-      attrib->QueryDoubleValue( d );
-    }
-  }
-  return result;
-}
-
-
-#ifdef TIXML_USE_STL
-const std::string* TiXmlElement::Attribute( const std::string& name, double* d ) const
-{
-  const TiXmlAttribute* attrib = attributeSet.Find( name );
-  const std::string* result = 0;
-
-  if ( attrib ) {
-    result = &attrib->ValueStr();
-    if ( d ) {
-      attrib->QueryDoubleValue( d );
-    }
-  }
-  return result;
-}
-#endif
-
-
-int TiXmlElement::QueryIntAttribute( const char* name, int* ival ) const
-{
-  const TiXmlAttribute* attrib = attributeSet.Find( name );
-  if ( !attrib )
-    return TIXML_NO_ATTRIBUTE;
-  return attrib->QueryIntValue( ival );
-}
-
-
-#ifdef TIXML_USE_STL
-int TiXmlElement::QueryIntAttribute( const std::string& name, int* ival ) const
-{
-  const TiXmlAttribute* attrib = attributeSet.Find( name );
-  if ( !attrib )
-    return TIXML_NO_ATTRIBUTE;
-  return attrib->QueryIntValue( ival );
-}
-#endif
-
-
-int TiXmlElement::QueryDoubleAttribute( const char* name, double* dval ) const
-{
-  const TiXmlAttribute* attrib = attributeSet.Find( name );
-  if ( !attrib )
-    return TIXML_NO_ATTRIBUTE;
-  return attrib->QueryDoubleValue( dval );
-}
-
-
-#ifdef TIXML_USE_STL
-int TiXmlElement::QueryDoubleAttribute( const std::string& name, double* dval ) const
-{
-  const TiXmlAttribute* attrib = attributeSet.Find( name );
-  if ( !attrib )
-    return TIXML_NO_ATTRIBUTE;
-  return attrib->QueryDoubleValue( dval );
-}
-#endif
-
-
-void TiXmlElement::SetAttribute( const char * name, int val )
-{
-  TiXmlAttribute* attrib = attributeSet.FindOrCreate( name );
-  if ( attrib ) {
-    attrib->SetIntValue( val );
-  }
-}
-
-
-#ifdef TIXML_USE_STL
-void TiXmlElement::SetAttribute( const std::string& name, int val )
-{
-  TiXmlAttribute* attrib = attributeSet.FindOrCreate( name );
-  if ( attrib ) {
-    attrib->SetIntValue( val );
-  }
-}
-#endif
-
-
-void TiXmlElement::SetDoubleAttribute( const char * name, double val )
-{
-  TiXmlAttribute* attrib = attributeSet.FindOrCreate( name );
-  if ( attrib ) {
-    attrib->SetDoubleValue( val );
-  }
-}
-
-
-#ifdef TIXML_USE_STL
-void TiXmlElement::SetDoubleAttribute( const std::string& name, double val )
-{
-  TiXmlAttribute* attrib = attributeSet.FindOrCreate( name );
-  if ( attrib ) {
-    attrib->SetDoubleValue( val );
-  }
-}
-#endif
-
-
-void TiXmlElement::SetAttribute( const char * cname, const char * cvalue )
-{
-  TiXmlAttribute* attrib = attributeSet.FindOrCreate( cname );
-  if ( attrib ) {
-    attrib->SetValue( cvalue );
-  }
-}
-
-
-#ifdef TIXML_USE_STL
-void TiXmlElement::SetAttribute( const std::string& _name, const std::string& _value )
-{
-  TiXmlAttribute* attrib = attributeSet.FindOrCreate( _name );
-  if ( attrib ) {
-    attrib->SetValue( _value );
-  }
-}
-#endif
-
-
-void TiXmlElement::Print( FILE* cfile, int depth ) const
-{
-  int i;
-  assert( cfile );
-  for ( i=0; i<depth; i++ ) {
-    fprintf( cfile, "    " );
-  }
-
-  fprintf( cfile, "<%s", value.c_str() );
-
-  const TiXmlAttribute* attrib;
-  for ( attrib = attributeSet.First(); attrib; attrib = attrib->Next() )
-  {
-    fprintf( cfile, " " );
-    attrib->Print( cfile, depth );
-  }
-
-  // There are 3 different formatting approaches:
-  // 1) An element without children is printed as a <foo /> node
-  // 2) An element with only a text child is printed as <foo> text </foo>
-  // 3) An element with children is printed on multiple lines.
-  TiXmlNode* node;
-  if ( !firstChild )
-  {
-    fprintf( cfile, " />" );
-  }
-  else if ( firstChild == lastChild && firstChild->ToText() )
-  {
-    fprintf( cfile, ">" );
-    firstChild->Print( cfile, depth + 1 );
-    fprintf( cfile, "</%s>", value.c_str() );
-  }
-  else
-  {
-    fprintf( cfile, ">" );
-
-    for ( node = firstChild; node; node=node->NextSibling() )
-    {
-      if ( !node->ToText() )
-      {
-        fprintf( cfile, "\n" );
-      }
-      node->Print( cfile, depth+1 );
-    }
-    fprintf( cfile, "\n" );
-    for( i=0; i<depth; ++i ) {
-      fprintf( cfile, "    " );
-    }
-    fprintf( cfile, "</%s>", value.c_str() );
-  }
-}
-
-
-void TiXmlElement::CopyTo( TiXmlElement* target ) const
-{
-  // superclass:
-  TiXmlNode::CopyTo( target );
-
-  // Element class:
-  // Clone the attributes, then clone the children.
-  const TiXmlAttribute* attribute = 0;
-  for(    attribute = attributeSet.First();
-          attribute;
-          attribute = attribute->Next() )
-  {
-    target->SetAttribute( attribute->Name(), attribute->Value() );
-  }
-
-  TiXmlNode* node = 0;
-  for ( node = firstChild; node; node = node->NextSibling() )
-  {
-    target->LinkEndChild( node->Clone() );
-  }
-}
-
-bool TiXmlElement::Accept( TiXmlVisitor* visitor ) const
-{
-  if ( visitor->VisitEnter( *this, attributeSet.First() ) )
-  {
-    for ( const TiXmlNode* node=FirstChild(); node; node=node->NextSibling() )
-    {
-      if ( !node->Accept( visitor ) )
-        break;
-    }
-  }
-  return visitor->VisitExit( *this );
-}
-
-
-TiXmlNode* TiXmlElement::Clone() const
-{
-  TiXmlElement* clone = new TiXmlElement( Value() );
-  if ( !clone )
-    return 0;
-
-  CopyTo( clone );
-  return clone;
-}
-
-
-const char* TiXmlElement::GetText() const
-{
-  const TiXmlNode* child = this->FirstChild();
-  if ( child ) {
-    const TiXmlText* childText = child->ToText();
-    if ( childText ) {
-      return childText->Value();
-    }
-  }
-  return 0;
-}
-
-
-TiXmlDocument::TiXmlDocument() : TiXmlNode( TiXmlNode::TINYXML_DOCUMENT )
-{
-  tabsize = 4;
-  useMicrosoftBOM = false;
-  ClearError();
-}
-
-TiXmlDocument::TiXmlDocument( const char * documentName ) : TiXmlNode( TiXmlNode::TINYXML_DOCUMENT )
-{
-  tabsize = 4;
-  useMicrosoftBOM = false;
-  value = documentName;
-  ClearError();
-}
-
-
-#ifdef TIXML_USE_STL
-TiXmlDocument::TiXmlDocument( const std::string& documentName ) : TiXmlNode( TiXmlNode::TINYXML_DOCUMENT )
-{
-  tabsize = 4;
-  useMicrosoftBOM = false;
-  value = documentName;
-  ClearError();
-}
-#endif
-
-
-TiXmlDocument::TiXmlDocument( const TiXmlDocument& copy ) : TiXmlNode( TiXmlNode::TINYXML_DOCUMENT )
-{
-  copy.CopyTo( this );
-}
-
-
-void TiXmlDocument::operator=( const TiXmlDocument& copy )
-{
-  Clear();
-  copy.CopyTo( this );
-}
-
-
-bool TiXmlDocument::LoadFile( TiXmlEncoding encoding )
-{
-  return LoadFile( Value(), encoding );
-}
-
-
-bool TiXmlDocument::SaveFile() const
-{
-  return SaveFile( Value() );
-}
-
-bool TiXmlDocument::LoadFile( const char* _filename, TiXmlEncoding encoding )
-{
-  TIXML_STRING filename( _filename );
-  value = filename;
-
-  // reading in binary mode so that tinyxml can normalize the EOL
-  FILE* file = TiXmlFOpen( value.c_str (), "rb" );
-
-  if ( file )
-  {
-    bool result = LoadFile( file, encoding );
-    fclose( file );
-    return result;
-  }
-  else
-  {
-    SetError( TIXML_ERROR_OPENING_FILE, 0, 0, TIXML_ENCODING_UNKNOWN );
-    return false;
-  }
-}
-
-bool TiXmlDocument::LoadFile( FILE* file, TiXmlEncoding encoding )
-{
-  if ( !file )
-  {
-    SetError( TIXML_ERROR_OPENING_FILE, 0, 0, TIXML_ENCODING_UNKNOWN );
-    return false;
-  }
-
-  // Delete the existing data:
-  Clear();
-  location.Clear();
-
-  // Get the file size, so we can pre-allocate the string. HUGE speed impact.
-  long length = 0;
-  fseek( file, 0, SEEK_END );
-  length = ftell( file );
-  fseek( file, 0, SEEK_SET );
-
-  // Strange case, but good to handle up front.
-  if ( length <= 0 )
-  {
-    SetError( TIXML_ERROR_DOCUMENT_EMPTY, 0, 0, TIXML_ENCODING_UNKNOWN );
-    return false;
-  }
-
-  // Subtle bug here. TinyXml did use fgets. But from the XML spec:
-  // 2.11 End-of-Line Handling
-  // <snip>
-  // <quote>
-  // ...the XML processor MUST behave as if it normalized all line breaks in external
-  // parsed entities (including the document entity) on input, before parsing, by translating
-  // both the two-character sequence #xD #xA and any #xD that is not followed by #xA to
-  // a single #xA character.
-  // </quote>
-  //
-  // It is not clear fgets does that, and certainly isn't clear it works cross platform.
-  // Generally, you expect fgets to translate from the convention of the OS to the c/unix
-  // convention, and not work generally.
-
-  /*
-    while( fgets( buf, sizeof(buf), file ) )
-    {
-    data += buf;
-    }
-  */
-
-  char* buf = new char[ length+1 ];
-  buf[0] = 0;
-
-  if ( fread( buf, length, 1, file ) != 1 ) {
-    delete [] buf;
-    SetError( TIXML_ERROR_OPENING_FILE, 0, 0, TIXML_ENCODING_UNKNOWN );
-    return false;
-  }
-
-  // Process the buffer in place to normalize new lines. (See comment above.)
-  // Copies from the 'p' to 'q' pointer, where p can advance faster if
-  // a newline-carriage return is hit.
-  //
-  // Wikipedia:
-  // Systems based on ASCII or a compatible character set use either LF  (Line feed, '\n', 0x0A, 10 in decimal) or
-  // CR (Carriage return, '\r', 0x0D, 13 in decimal) individually, or CR followed by LF (CR+LF, 0x0D 0x0A)...
-  //              * LF:    Multics, Unix and Unix-like systems (GNU/Linux, AIX, Xenix, Mac OS X, FreeBSD, etc.), BeOS, Amiga, RISC OS, and others
-  //          * CR+LF: DEC RT-11 and most other early non-Unix, non-IBM OSes, CP/M, MP/M, DOS, OS/2, Microsoft Windows, Symbian OS
-  //          * CR:    Commodore 8-bit machines, Apple II family, Mac OS up to version 9 and OS-9
-
-  const char* p = buf;    // the read head
-  char* q = buf;                  // the write head
-  const char CR = 0x0d;
-  const char LF = 0x0a;
-
-  buf[length] = 0;
-  while( *p ) {
-    assert( p < (buf+length) );
-    assert( q <= (buf+length) );
-    assert( q <= p );
-
-    if ( *p == CR ) {
-      *q++ = LF;
-      p++;
-      if ( *p == LF ) {               // check for CR+LF (and skip LF)
-        p++;
-      }
-    }
-    else {
-      *q++ = *p++;
-    }
-  }
-  assert( q <= (buf+length) );
-  *q = 0;
-
-  Parse( buf, 0, encoding );
-
-  delete [] buf;
-  return !Error();
-}
-
-
-bool TiXmlDocument::SaveFile( const char * filename ) const
-{
-  // The old c stuff lives on...
-  FILE* fp = TiXmlFOpen( filename, "w" );
-  if ( fp )
-  {
-    bool result = SaveFile( fp );
-    fclose( fp );
-    return result;
-  }
-  return false;
-}
-
-
-bool TiXmlDocument::SaveFile( FILE* fp ) const
-{
-  if ( useMicrosoftBOM )
-  {
-    const unsigned char TIXML_UTF_LEAD_0 = 0xefU;
-    const unsigned char TIXML_UTF_LEAD_1 = 0xbbU;
-    const unsigned char TIXML_UTF_LEAD_2 = 0xbfU;
-
-    fputc( TIXML_UTF_LEAD_0, fp );
-    fputc( TIXML_UTF_LEAD_1, fp );
-    fputc( TIXML_UTF_LEAD_2, fp );
-  }
-  Print( fp, 0 );
-  return (ferror(fp) == 0);
-}
-
-
-void TiXmlDocument::CopyTo( TiXmlDocument* target ) const
-{
-  TiXmlNode::CopyTo( target );
-
-  target->error = error;
-  target->errorId = errorId;
-  target->errorDesc = errorDesc;
-  target->tabsize = tabsize;
-  target->errorLocation = errorLocation;
-  target->useMicrosoftBOM = useMicrosoftBOM;
-
-  TiXmlNode* node = 0;
-  for ( node = firstChild; node; node = node->NextSibling() )
-  {
-    target->LinkEndChild( node->Clone() );
-  }
-}
-
-
-TiXmlNode* TiXmlDocument::Clone() const
-{
-  TiXmlDocument* clone = new TiXmlDocument();
-  if ( !clone )
-    return 0;
-
-  CopyTo( clone );
-  return clone;
-}
-
-
-void TiXmlDocument::Print( FILE* cfile, int depth ) const
-{
-  assert( cfile );
-  for ( const TiXmlNode* node=FirstChild(); node; node=node->NextSibling() )
-  {
-    node->Print( cfile, depth );
-    fprintf( cfile, "\n" );
-  }
-}
-
-
-bool TiXmlDocument::Accept( TiXmlVisitor* visitor ) const
-{
-  if ( visitor->VisitEnter( *this ) )
-  {
-    for ( const TiXmlNode* node=FirstChild(); node; node=node->NextSibling() )
-    {
-      if ( !node->Accept( visitor ) )
-        break;
-    }
-  }
-  return visitor->VisitExit( *this );
-}
-
-
-const TiXmlAttribute* TiXmlAttribute::Next() const
-{
-  // We are using knowledge of the sentinel. The sentinel
-  // have a value or name.
-  if ( next->value.empty() && next->name.empty() )
-    return 0;
-  return next;
-}
-
-/*
-  TiXmlAttribute* TiXmlAttribute::Next()
-  {
-  // We are using knowledge of the sentinel. The sentinel
-  // have a value or name.
-  if ( next->value.empty() && next->name.empty() )
-  return 0;
-  return next;
-  }
-*/
-
-const TiXmlAttribute* TiXmlAttribute::Previous() const
-{
-  // We are using knowledge of the sentinel. The sentinel
-  // have a value or name.
-  if ( prev->value.empty() && prev->name.empty() )
-    return 0;
-  return prev;
-}
-
-/*
-  TiXmlAttribute* TiXmlAttribute::Previous()
-  {
-  // We are using knowledge of the sentinel. The sentinel
-  // have a value or name.
-  if ( prev->value.empty() && prev->name.empty() )
-  return 0;
-  return prev;
-  }
-*/
-
-void TiXmlAttribute::Print( FILE* cfile, int /*depth*/, TIXML_STRING* str ) const
-{
-  TIXML_STRING n, v;
-
-  EncodeString( name, &n );
-  EncodeString( value, &v );
-
-  if (value.find ('\"') == TIXML_STRING::npos) {
-    if ( cfile ) {
-      fprintf (cfile, "%s=\"%s\"", n.c_str(), v.c_str() );
-    }
-    if ( str ) {
-      (*str) += n; (*str) += "=\""; (*str) += v; (*str) += "\"";
-    }
-  }
-  else {
-    if ( cfile ) {
-      fprintf (cfile, "%s='%s'", n.c_str(), v.c_str() );
-    }
-    if ( str ) {
-      (*str) += n; (*str) += "='"; (*str) += v; (*str) += "'";
-    }
-  }
-}
-
-
-int TiXmlAttribute::QueryIntValue( int* ival ) const
-{
-  if ( TIXML_SSCANF( value.c_str(), "%d", ival ) == 1 )
-    return TIXML_SUCCESS;
-  return TIXML_WRONG_TYPE;
-}
-
-int TiXmlAttribute::QueryDoubleValue( double* dval ) const
-{
-  if ( TIXML_SSCANF( value.c_str(), "%lf", dval ) == 1 )
-    return TIXML_SUCCESS;
-  return TIXML_WRONG_TYPE;
-}
-
-void TiXmlAttribute::SetIntValue( int _value )
-{
-  char buf [64];
-#if defined(TIXML_SNPRINTF)
-  TIXML_SNPRINTF(buf, sizeof(buf), "%d", _value);
-#else
-  sprintf (buf, "%d", _value);
-#endif
-  SetValue (buf);
-}
-
-void TiXmlAttribute::SetDoubleValue( double _value )
-{
-  char buf [256];
-#if defined(TIXML_SNPRINTF)
-  TIXML_SNPRINTF( buf, sizeof(buf), "%g", _value);
-#else
-  sprintf (buf, "%g", _value);
-#endif
-  SetValue (buf);
-}
-
-int TiXmlAttribute::IntValue() const
-{
-  return atoi (value.c_str ());
-}
-
-double  TiXmlAttribute::DoubleValue() const
-{
-  return atof (value.c_str ());
-}
-
-
-TiXmlComment::TiXmlComment( const TiXmlComment& copy ) : TiXmlNode( TiXmlNode::TINYXML_COMMENT )
-{
-  copy.CopyTo( this );
-}
-
-
-void TiXmlComment::operator=( const TiXmlComment& base )
-{
-  Clear();
-  base.CopyTo( this );
-}
-
-
-void TiXmlComment::Print( FILE* cfile, int depth ) const
-{
-  assert( cfile );
-  for ( int i=0; i<depth; i++ )
-  {
-    fprintf( cfile,  "    " );
-  }
-  fprintf( cfile, "<!--%s-->", value.c_str() );
-}
-
-
-void TiXmlComment::CopyTo( TiXmlComment* target ) const
-{
-  TiXmlNode::CopyTo( target );
-}
-
-
-bool TiXmlComment::Accept( TiXmlVisitor* visitor ) const
-{
-  return visitor->Visit( *this );
-}
-
-
-TiXmlNode* TiXmlComment::Clone() const
-{
-  TiXmlComment* clone = new TiXmlComment();
-
-  if ( !clone )
-    return 0;
-
-  CopyTo( clone );
-  return clone;
-}
-
-
-void TiXmlText::Print( FILE* cfile, int depth ) const
-{
-  assert( cfile );
-  if ( cdata )
-  {
-    int i;
-    fprintf( cfile, "\n" );
-    for ( i=0; i<depth; i++ ) {
-      fprintf( cfile, "    " );
-    }
-    fprintf( cfile, "<![CDATA[%s]]>\n", value.c_str() );    // unformatted output
-  }
-  else
-  {
-    TIXML_STRING buffer;
-    EncodeString( value, &buffer );
-    fprintf( cfile, "%s", buffer.c_str() );
-  }
-}
-
-
-void TiXmlText::CopyTo( TiXmlText* target ) const
-{
-  TiXmlNode::CopyTo( target );
-  target->cdata = cdata;
-}
-
-
-bool TiXmlText::Accept( TiXmlVisitor* visitor ) const
-{
-  return visitor->Visit( *this );
-}
-
-
-TiXmlNode* TiXmlText::Clone() const
-{
-  TiXmlText* clone = 0;
-  clone = new TiXmlText( "" );
-
-  if ( !clone )
-    return 0;
-
-  CopyTo( clone );
-  return clone;
-}
-
-
-TiXmlDeclaration::TiXmlDeclaration( const char * _version,
-                                    const char * _encoding,
-                                    const char * _standalone )
-  : TiXmlNode( TiXmlNode::TINYXML_DECLARATION )
-{
-  version = _version;
-  encoding = _encoding;
-  standalone = _standalone;
-}
-
-
-#ifdef TIXML_USE_STL
-TiXmlDeclaration::TiXmlDeclaration(     const std::string& _version,
-                                        const std::string& _encoding,
-                                        const std::string& _standalone )
-  : TiXmlNode( TiXmlNode::TINYXML_DECLARATION )
-{
-  version = _version;
-  encoding = _encoding;
-  standalone = _standalone;
-}
-#endif
-
-
-TiXmlDeclaration::TiXmlDeclaration( const TiXmlDeclaration& copy )
-  : TiXmlNode( TiXmlNode::TINYXML_DECLARATION )
-{
-  copy.CopyTo( this );
-}
-
-
-void TiXmlDeclaration::operator=( const TiXmlDeclaration& copy )
-{
-  Clear();
-  copy.CopyTo( this );
-}
-
-
-void TiXmlDeclaration::Print( FILE* cfile, int /*depth*/, TIXML_STRING* str ) const
-{
-  if ( cfile ) fprintf( cfile, "<?xml " );
-  if ( str )       (*str) += "<?xml ";
-
-  if ( !version.empty() ) {
-    if ( cfile ) fprintf (cfile, "version=\"%s\" ", version.c_str ());
-    if ( str ) { (*str) += "version=\""; (*str) += version; (*str) += "\" "; }
-  }
-  if ( !encoding.empty() ) {
-    if ( cfile ) fprintf (cfile, "encoding=\"%s\" ", encoding.c_str ());
-    if ( str ) { (*str) += "encoding=\""; (*str) += encoding; (*str) += "\" "; }
-  }
-  if ( !standalone.empty() ) {
-    if ( cfile ) fprintf (cfile, "standalone=\"%s\" ", standalone.c_str ());
-    if ( str ) { (*str) += "standalone=\""; (*str) += standalone; (*str) += "\" "; }
-  }
-  if ( cfile ) fprintf( cfile, "?>" );
-  if ( str )       (*str) += "?>";
-}
-
-
-void TiXmlDeclaration::CopyTo( TiXmlDeclaration* target ) const
-{
-  TiXmlNode::CopyTo( target );
-
-  target->version = version;
-  target->encoding = encoding;
-  target->standalone = standalone;
-}
-
-
-bool TiXmlDeclaration::Accept( TiXmlVisitor* visitor ) const
-{
-  return visitor->Visit( *this );
-}
-
-
-TiXmlNode* TiXmlDeclaration::Clone() const
-{
-  TiXmlDeclaration* clone = new TiXmlDeclaration();
-
-  if ( !clone )
-    return 0;
-
-  CopyTo( clone );
-  return clone;
-}
-
-
-void TiXmlUnknown::Print( FILE* cfile, int depth ) const
-{
-  for ( int i=0; i<depth; i++ )
-    fprintf( cfile, "    " );
-  fprintf( cfile, "<%s>", value.c_str() );
-}
-
-
-void TiXmlUnknown::CopyTo( TiXmlUnknown* target ) const
-{
-  TiXmlNode::CopyTo( target );
-}
-
-
-bool TiXmlUnknown::Accept( TiXmlVisitor* visitor ) const
-{
-  return visitor->Visit( *this );
-}
-
-
-TiXmlNode* TiXmlUnknown::Clone() const
-{
-  TiXmlUnknown* clone = new TiXmlUnknown();
-
-  if ( !clone )
-    return 0;
-
-  CopyTo( clone );
-  return clone;
-}
-
-
-TiXmlAttributeSet::TiXmlAttributeSet()
-{
-  sentinel.next = &sentinel;
-  sentinel.prev = &sentinel;
-}
-
-
-TiXmlAttributeSet::~TiXmlAttributeSet()
-{
-  assert( sentinel.next == &sentinel );
-  assert( sentinel.prev == &sentinel );
-}
-
-
-void TiXmlAttributeSet::Add( TiXmlAttribute* addMe )
-{
-#ifdef TIXML_USE_STL
-  assert( !Find( TIXML_STRING( addMe->Name() ) ) );       // Shouldn't be multiply adding to the set.
-#else
-  assert( !Find( addMe->Name() ) );       // Shouldn't be multiply adding to the set.
-#endif
-
-  addMe->next = &sentinel;
-  addMe->prev = sentinel.prev;
-
-  sentinel.prev->next = addMe;
-  sentinel.prev      = addMe;
-}
-
-void TiXmlAttributeSet::Remove( TiXmlAttribute* removeMe )
-{
-  TiXmlAttribute* node;
-
-  for( node = sentinel.next; node != &sentinel; node = node->next )
-  {
-    if ( node == removeMe )
-    {
-      node->prev->next = node->next;
-      node->next->prev = node->prev;
-      node->next = 0;
-      node->prev = 0;
-      return;
-    }
-  }
-  assert( 0 );            // we tried to remove a non-linked attribute.
-}
-
-
-#ifdef TIXML_USE_STL
-TiXmlAttribute* TiXmlAttributeSet::Find( const std::string& name ) const
-{
-  for( TiXmlAttribute* node = sentinel.next; node != &sentinel; node = node->next )
-  {
-    if ( node->name == name )
-      return node;
-  }
-  return 0;
-}
-
-TiXmlAttribute* TiXmlAttributeSet::FindOrCreate( const std::string& _name )
-{
-  TiXmlAttribute* attrib = Find( _name );
-  if ( !attrib ) {
-    attrib = new TiXmlAttribute();
-    Add( attrib );
-    attrib->SetName( _name );
-  }
-  return attrib;
-}
-#endif
-
-
-TiXmlAttribute* TiXmlAttributeSet::Find( const char* name ) const
-{
-  for( TiXmlAttribute* node = sentinel.next; node != &sentinel; node = node->next )
-  {
-    if ( strcmp( node->name.c_str(), name ) == 0 )
-      return node;
-  }
-  return 0;
-}
-
-
-TiXmlAttribute* TiXmlAttributeSet::FindOrCreate( const char* _name )
-{
-  TiXmlAttribute* attrib = Find( _name );
-  if ( !attrib ) {
-    attrib = new TiXmlAttribute();
-    Add( attrib );
-    attrib->SetName( _name );
-  }
-  return attrib;
-}
-
-
-#ifdef TIXML_USE_STL
-std::istream& operator>> (std::istream & in, TiXmlNode & base)
-{
-  TIXML_STRING tag;
-  tag.reserve( 8 * 1000 );
-  base.StreamIn( &in, &tag );
-
-  base.Parse( tag.c_str(), 0, TIXML_DEFAULT_ENCODING );
-  return in;
-}
-#endif
-
-
-#ifdef TIXML_USE_STL
-std::ostream& operator<< (std::ostream & out, const TiXmlNode & base)
-{
-  TiXmlPrinter printer;
-  printer.SetStreamPrinting();
-  base.Accept( &printer );
-  out << printer.Str();
-
-  return out;
-}
-
-
-std::string& operator<< (std::string& out, const TiXmlNode& base )
-{
-  TiXmlPrinter printer;
-  printer.SetStreamPrinting();
-  base.Accept( &printer );
-  out.append( printer.Str() );
-
-  return out;
-}
-#endif
-
-
-TiXmlHandle TiXmlHandle::FirstChild() const
-{
-  if ( node )
-  {
-    TiXmlNode* child = node->FirstChild();
-    if ( child )
-      return TiXmlHandle( child );
-  }
-  return TiXmlHandle( 0 );
-}
-
-
-TiXmlHandle TiXmlHandle::FirstChild( const char * value ) const
-{
-  if ( node )
-  {
-    TiXmlNode* child = node->FirstChild( value );
-    if ( child )
-      return TiXmlHandle( child );
-  }
-  return TiXmlHandle( 0 );
-}
-
-
-TiXmlHandle TiXmlHandle::FirstChildElement() const
-{
-  if ( node )
-  {
-    TiXmlElement* child = node->FirstChildElement();
-    if ( child )
-      return TiXmlHandle( child );
-  }
-  return TiXmlHandle( 0 );
-}
-
-
-TiXmlHandle TiXmlHandle::FirstChildElement( const char * value ) const
-{
-  if ( node )
-  {
-    TiXmlElement* child = node->FirstChildElement( value );
-    if ( child )
-      return TiXmlHandle( child );
-  }
-  return TiXmlHandle( 0 );
-}
-
-
-TiXmlHandle TiXmlHandle::Child( int count ) const
-{
-  if ( node )
-  {
-    int i;
-    TiXmlNode* child = node->FirstChild();
-    for (   i=0;
-            child && i<count;
-            child = child->NextSibling(), ++i )
-    {
-      // nothing
-    }
-    if ( child )
-      return TiXmlHandle( child );
-  }
-  return TiXmlHandle( 0 );
-}
-
-
-TiXmlHandle TiXmlHandle::Child( const char* value, int count ) const
-{
-  if ( node )
-  {
-    int i;
-    TiXmlNode* child = node->FirstChild( value );
-    for (   i=0;
-            child && i<count;
-            child = child->NextSibling( value ), ++i )
-    {
-      // nothing
-    }
-    if ( child )
-      return TiXmlHandle( child );
-  }
-  return TiXmlHandle( 0 );
-}
-
-
-TiXmlHandle TiXmlHandle::ChildElement( int count ) const
-{
-  if ( node )
-  {
-    int i;
-    TiXmlElement* child = node->FirstChildElement();
-    for (   i=0;
-            child && i<count;
-            child = child->NextSiblingElement(), ++i )
-    {
-      // nothing
-    }
-    if ( child )
-      return TiXmlHandle( child );
-  }
-  return TiXmlHandle( 0 );
-}
-
-
-TiXmlHandle TiXmlHandle::ChildElement( const char* value, int count ) const
-{
-  if ( node )
-  {
-    int i;
-    TiXmlElement* child = node->FirstChildElement( value );
-    for (   i=0;
-            child && i<count;
-            child = child->NextSiblingElement( value ), ++i )
-    {
-      // nothing
-    }
-    if ( child )
-      return TiXmlHandle( child );
-  }
-  return TiXmlHandle( 0 );
-}
-
-
-bool TiXmlPrinter::VisitEnter( const TiXmlDocument& )
-{
-  return true;
-}
-
-bool TiXmlPrinter::VisitExit( const TiXmlDocument& )
-{
-  return true;
-}
-
-bool TiXmlPrinter::VisitEnter( const TiXmlElement& element, const TiXmlAttribute* firstAttribute )
-{
-  DoIndent();
-  buffer += "<";
-  buffer += element.Value();
-
-  for( const TiXmlAttribute* attrib = firstAttribute; attrib; attrib = attrib->Next() )
-  {
-    buffer += " ";
-    attrib->Print( 0, 0, &buffer );
-  }
-
-  if ( !element.FirstChild() )
-  {
-    buffer += " />";
-    DoLineBreak();
-  }
-  else
-  {
-    buffer += ">";
-    if (    element.FirstChild()->ToText()
-            && element.LastChild() == element.FirstChild()
-            && element.FirstChild()->ToText()->CDATA() == false )
-    {
-      simpleTextPrint = true;
-      // no DoLineBreak()!
-    }
-    else
-    {
-      DoLineBreak();
-    }
-  }
-  ++depth;
-  return true;
-}
-
-
-bool TiXmlPrinter::VisitExit( const TiXmlElement& element )
-{
-  --depth;
-  if ( !element.FirstChild() )
-  {
-    // nothing.
-  }
-  else
-  {
-    if ( simpleTextPrint )
-    {
-      simpleTextPrint = false;
-    }
-    else
-    {
-      DoIndent();
-    }
-    buffer += "</";
-    buffer += element.Value();
-    buffer += ">";
-    DoLineBreak();
-  }
-  return true;
-}
-
-
-bool TiXmlPrinter::Visit( const TiXmlText& text )
-{
-  if ( text.CDATA() )
-  {
-    DoIndent();
-    buffer += "<![CDATA[";
-    buffer += text.Value();
-    buffer += "]]>";
-    DoLineBreak();
-  }
-  else if ( simpleTextPrint )
-  {
-    TIXML_STRING str;
-    TiXmlBase::EncodeString( text.ValueTStr(), &str );
-    buffer += str;
-  }
-  else
-  {
-    DoIndent();
-    TIXML_STRING str;
-    TiXmlBase::EncodeString( text.ValueTStr(), &str );
-    buffer += str;
-    DoLineBreak();
-  }
-  return true;
-}
-
-
-bool TiXmlPrinter::Visit( const TiXmlDeclaration& declaration )
-{
-  DoIndent();
-  declaration.Print( 0, 0, &buffer );
-  DoLineBreak();
-  return true;
-}
-
-
-bool TiXmlPrinter::Visit( const TiXmlComment& comment )
-{
-  DoIndent();
-  buffer += "<!--";
-  buffer += comment.Value();
-  buffer += "-->";
-  DoLineBreak();
-  return true;
-}
-
-
-bool TiXmlPrinter::Visit( const TiXmlUnknown& unknown )
-{
-  DoIndent();
-  buffer += "<";
-  buffer += unknown.Value();
-  buffer += ">";
-  DoLineBreak();
-  return true;
-}
diff --git a/lib/third_party/tinyxml/tinyxml.h b/lib/third_party/tinyxml/tinyxml.h
deleted file mode 100644 (file)
index d8ad8e3..0000000
+++ /dev/null
@@ -1,1800 +0,0 @@
-/*
-  www.sourceforge.net/projects/tinyxml
-  Original code (2.0 and earlier )copyright (c) 2000-2006 Lee Thomason (www.grinninglizard.com)
-
-  This software is provided 'as-is', without any express or implied
-  warranty. In no event will the authors be held liable for any
-  damages arising from the use of this software.
-
-  Permission is granted to anyone to use this software for any
-  purpose, including commercial applications, and to alter it and
-  redistribute it freely, subject to the following restrictions:
-
-  1. The origin of this software must not be misrepresented; you must
-  not claim that you wrote the original software. If you use this
-  software in a product, an acknowledgment in the product documentation
-  would be appreciated but is not required.
-
-  2. Altered source versions must be plainly marked as such, and
-  must not be misrepresented as being the original software.
-
-  3. This notice may not be removed or altered from any source
-  distribution.
-*/
-
-
-#ifndef TINYXML_INCLUDED
-#define TINYXML_INCLUDED
-
-#ifdef _MSC_VER
-#pragma warning( push )
-#pragma warning( disable : 4530 )
-#pragma warning( disable : 4786 )
-#endif
-
-#include <ctype.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <assert.h>
-
-// Help out windows:
-#if defined( _DEBUG ) && !defined( DEBUG )
-#define DEBUG
-#endif
-
-#ifdef TIXML_USE_STL
-#include <string>
-#include <iostream>
-#include <sstream>
-#define TIXML_STRING            std::string
-#else
-#include "tinystr.h"
-#define TIXML_STRING            TiXmlString
-#endif
-
-#include <tinyxml/cpPlugins_tinyxml_Export.h>
-
-// Deprecated library function hell. Compilers want to use the
-// new safe versions. This probably doesn't fully address the problem,
-// but it gets closer. There are too many compilers for me to fully
-// test. If you get compilation troubles, undefine TIXML_SAFE
-#define TIXML_SAFE
-
-#ifdef TIXML_SAFE
-#if defined(_MSC_VER) && (_MSC_VER >= 1400 )
-// Microsoft visual studio, version 2005 and higher.
-#define TIXML_SNPRINTF _snprintf_s
-#define TIXML_SSCANF   sscanf_s
-#elif defined(_MSC_VER) && (_MSC_VER >= 1200 )
-// Microsoft visual studio, version 6 and higher.
-//#pragma message( "Using _sn* functions." )
-#define TIXML_SNPRINTF _snprintf
-#define TIXML_SSCANF   sscanf
-#elif defined(__GNUC__) && (__GNUC__ >= 3 )
-// GCC version 3 and higher.s
-//#warning( "Using sn* functions." )
-#define TIXML_SNPRINTF snprintf
-#define TIXML_SSCANF   sscanf
-#else
-#define TIXML_SNPRINTF snprintf
-#define TIXML_SSCANF   sscanf
-#endif
-#endif
-
-class TiXmlDocument;
-class TiXmlElement;
-class TiXmlComment;
-class TiXmlUnknown;
-class TiXmlAttribute;
-class TiXmlText;
-class TiXmlDeclaration;
-class TiXmlParsingData;
-
-const int TIXML_MAJOR_VERSION = 2;
-const int TIXML_MINOR_VERSION = 6;
-const int TIXML_PATCH_VERSION = 1;
-
-/*      Internal structure for tracking location of items
-        in the XML file.
-*/
-struct cpPlugins_tinyxml_EXPORT TiXmlCursor
-{
-  TiXmlCursor()           { Clear(); }
-  void Clear()            { row = col = -1; }
-
-  int row;        // 0 based.
-  int col;        // 0 based.
-};
-
-
-/**
-   Implements the interface to the "Visitor pattern" (see the Accept() method.)
-   If you call the Accept() method, it requires being passed a TiXmlVisitor
-   class to handle callbacks. For nodes that contain other nodes (Document, Element)
-   you will get called with a VisitEnter/VisitExit pair. Nodes that are always leaves
-   are simply called with Visit().
-
-   If you return 'true' from a Visit method, recursive parsing will continue. If you return
-   false, <b>no children of this node or its sibilings</b> will be Visited.
-
-   All flavors of Visit methods have a default implementation that returns 'true' (continue
-   visiting). You need to only override methods that are interesting to you.
-
-   Generally Accept() is called on the TiXmlDocument, although all nodes suppert Visiting.
-
-   You should never change the document from a callback.
-
-   @sa TiXmlNode::Accept()
-*/
-class TiXmlVisitor
-{
-public:
-  virtual ~TiXmlVisitor() {}
-
-  /// Visit a document.
-  virtual bool VisitEnter( const TiXmlDocument& /*doc*/ )                 { return true; }
-  /// Visit a document.
-  virtual bool VisitExit( const TiXmlDocument& /*doc*/ )                  { return true; }
-
-  /// Visit an element.
-  virtual bool VisitEnter( const TiXmlElement& /*element*/, const TiXmlAttribute* /*firstAttribute*/ )    { return true; }
-  /// Visit an element.
-  virtual bool VisitExit( const TiXmlElement& /*element*/ )               { return true; }
-
-  /// Visit a declaration
-  virtual bool Visit( const TiXmlDeclaration& /*declaration*/ )   { return true; }
-  /// Visit a text node
-  virtual bool Visit( const TiXmlText& /*text*/ )                                 { return true; }
-  /// Visit a comment node
-  virtual bool Visit( const TiXmlComment& /*comment*/ )                   { return true; }
-  /// Visit an unknow node
-  virtual bool Visit( const TiXmlUnknown& /*unknown*/ )                   { return true; }
-};
-
-// Only used by Attribute::Query functions
-enum
-{
-  TIXML_SUCCESS,
-  TIXML_NO_ATTRIBUTE,
-  TIXML_WRONG_TYPE
-};
-
-
-// Used by the parsing routines.
-enum TiXmlEncoding
-{
-  TIXML_ENCODING_UNKNOWN,
-  TIXML_ENCODING_UTF8,
-  TIXML_ENCODING_LEGACY
-};
-
-const TiXmlEncoding TIXML_DEFAULT_ENCODING = TIXML_ENCODING_UNKNOWN;
-
-/** TiXmlBase is a base class for every class in TinyXml.
-    It does little except to establish that TinyXml classes
-    can be printed and provide some utility functions.
-
-    In XML, the document and elements can contain
-    other elements and other types of nodes.
-
-    @verbatim
-    A Document can contain: Element (container or leaf)
-    Comment (leaf)
-    Unknown (leaf)
-    Declaration( leaf )
-
-    An Element can contain: Element (container or leaf)
-    Text    (leaf)
-    Attributes (not on tree)
-    Comment (leaf)
-    Unknown (leaf)
-
-    A Decleration contains: Attributes (not on tree)
-    @endverbatim
-*/
-class cpPlugins_tinyxml_EXPORT TiXmlBase
-{
-  friend class TiXmlNode;
-  friend class TiXmlElement;
-  friend class TiXmlDocument;
-
-public:
-  TiXmlBase()     :       userData(0)             {}
-  virtual ~TiXmlBase()                    {}
-
-  /**     All TinyXml classes can print themselves to a filestream
-          or the string class (TiXmlString in non-STL mode, std::string
-          in STL mode.) Either or both cfile and str can be null.
-
-          This is a formatted print, and will insert
-          tabs and newlines.
-
-          (For an unformatted stream, use the << operator.)
-  */
-  virtual void Print( FILE* cfile, int depth ) const = 0;
-
-  /**     The world does not agree on whether white space should be kept or
-          not. In order to make everyone happy, these global, static functions
-          are provided to set whether or not TinyXml will condense all white space
-          into a single space or not. The default is to condense. Note changing this
-          value is not thread safe.
-  */
-  static void SetCondenseWhiteSpace( bool condense )              { condenseWhiteSpace = condense; }
-
-  /// Return the current white space setting.
-  static bool IsWhiteSpaceCondensed()                                             { return condenseWhiteSpace; }
-
-  /** Return the position, in the original source file, of this node or attribute.
-      The row and column are 1-based. (That is the first row and first column is
-      1,1). If the returns values are 0 or less, then the parser does not have
-      a row and column value.
-
-      Generally, the row and column value will be set when the TiXmlDocument::Load(),
-      TiXmlDocument::LoadFile(), or any TiXmlNode::Parse() is called. It will NOT be set
-      when the DOM was created from operator>>.
-
-      The values reflect the initial load. Once the DOM is modified programmatically
-      (by adding or changing nodes and attributes) the new values will NOT update to
-      reflect changes in the document.
-
-      There is a minor performance cost to computing the row and column. Computation
-      can be disabled if TiXmlDocument::SetTabSize() is called with 0 as the value.
-
-      @sa TiXmlDocument::SetTabSize()
-  */
-  int Row() const                 { return location.row + 1; }
-  int Column() const              { return location.col + 1; }    ///< See Row()
-
-  void  SetUserData( void* user )                 { userData = user; }    ///< Set a pointer to arbitrary user data.
-  void* GetUserData()                                             { return userData; }    ///< Get a pointer to arbitrary user data.
-  const void* GetUserData() const                 { return userData; }    ///< Get a pointer to arbitrary user data.
-
-  // Table that returs, for a given lead byte, the total number of bytes
-  // in the UTF-8 sequence.
-  static const int utf8ByteTable[256];
-
-  virtual const char* Parse(      const char* p,
-                                  TiXmlParsingData* data,
-                                  TiXmlEncoding encoding /*= TIXML_ENCODING_UNKNOWN */ ) = 0;
-
-  /** Expands entities in a string. Note this should not contian the tag's '<', '>', etc,
-      or they will be transformed into entities!
-  */
-  static void EncodeString( const TIXML_STRING& str, TIXML_STRING* out );
-
-  enum
-  {
-    TIXML_NO_ERROR = 0,
-    TIXML_ERROR,
-    TIXML_ERROR_OPENING_FILE,
-    TIXML_ERROR_PARSING_ELEMENT,
-    TIXML_ERROR_FAILED_TO_READ_ELEMENT_NAME,
-    TIXML_ERROR_READING_ELEMENT_VALUE,
-    TIXML_ERROR_READING_ATTRIBUTES,
-    TIXML_ERROR_PARSING_EMPTY,
-    TIXML_ERROR_READING_END_TAG,
-    TIXML_ERROR_PARSING_UNKNOWN,
-    TIXML_ERROR_PARSING_COMMENT,
-    TIXML_ERROR_PARSING_DECLARATION,
-    TIXML_ERROR_DOCUMENT_EMPTY,
-    TIXML_ERROR_EMBEDDED_NULL,
-    TIXML_ERROR_PARSING_CDATA,
-    TIXML_ERROR_DOCUMENT_TOP_ONLY,
-
-    TIXML_ERROR_STRING_COUNT
-  };
-
-protected:
-
-  static const char* SkipWhiteSpace( const char*, TiXmlEncoding encoding );
-
-  inline static bool IsWhiteSpace( char c )
-    {
-      return ( isspace( (unsigned char) c ) || c == '\n' || c == '\r' );
-    }
-  inline static bool IsWhiteSpace( int c )
-    {
-      if ( c < 256 )
-        return IsWhiteSpace( (char) c );
-      return false;   // Again, only truly correct for English/Latin...but usually works.
-    }
-
-#ifdef TIXML_USE_STL
-  static bool     StreamWhiteSpace( std::istream * in, TIXML_STRING * tag );
-  static bool StreamTo( std::istream * in, int character, TIXML_STRING * tag );
-#endif
-
-  /*      Reads an XML name into the string provided. Returns
-          a pointer just past the last character of the name,
-          or 0 if the function has an error.
-  */
-  static const char* ReadName( const char* p, TIXML_STRING* name, TiXmlEncoding encoding );
-
-  /*      Reads text. Returns a pointer past the given end tag.
-          Wickedly complex options, but it keeps the (sensitive) code in one place.
-  */
-  static const char* ReadText(    const char* in,                         // where to start
-                                  TIXML_STRING* text,                     // the string read
-                                  bool ignoreWhiteSpace,          // whether to keep the white space
-                                  const char* endTag,                     // what ends this text
-                                  bool ignoreCase,                        // whether to ignore case in the end tag
-                                  TiXmlEncoding encoding );       // the current encoding
-
-  // If an entity has been found, transform it into a character.
-  static const char* GetEntity( const char* in, char* value, int* length, TiXmlEncoding encoding );
-
-  // Get a character, while interpreting entities.
-  // The length can be from 0 to 4 bytes.
-  inline static const char* GetChar( const char* p, char* _value, int* length, TiXmlEncoding encoding )
-    {
-      assert( p );
-      if ( encoding == TIXML_ENCODING_UTF8 )
-      {
-        *length = utf8ByteTable[ *((const unsigned char*)p) ];
-        assert( *length >= 0 && *length < 5 );
-      }
-      else
-      {
-        *length = 1;
-      }
-
-      if ( *length == 1 )
-      {
-        if ( *p == '&' )
-          return GetEntity( p, _value, length, encoding );
-        *_value = *p;
-        return p+1;
-      }
-      else if ( *length )
-      {
-        //strncpy( _value, p, *length );        // lots of compilers don't like this function (unsafe),
-        // and the null terminator isn't needed
-        for( int i=0; p[i] && i<*length; ++i ) {
-          _value[i] = p[i];
-        }
-        return p + (*length);
-      }
-      else
-      {
-        // Not valid text.
-        return 0;
-      }
-    }
-
-  // Return true if the next characters in the stream are any of the endTag sequences.
-  // Ignore case only works for english, and should only be relied on when comparing
-  // to English words: StringEqual( p, "version", true ) is fine.
-  static bool StringEqual(        const char* p,
-                                  const char* endTag,
-                                  bool ignoreCase,
-                                  TiXmlEncoding encoding );
-
-  static const char* errorString[ TIXML_ERROR_STRING_COUNT ];
-
-  TiXmlCursor location;
-
-  /// Field containing a generic user pointer
-  void*                   userData;
-
-  // None of these methods are reliable for any language except English.
-  // Good for approximation, not great for accuracy.
-  static int IsAlpha( unsigned char anyByte, TiXmlEncoding encoding );
-  static int IsAlphaNum( unsigned char anyByte, TiXmlEncoding encoding );
-  inline static int ToLower( int v, TiXmlEncoding encoding )
-    {
-      if ( encoding == TIXML_ENCODING_UTF8 )
-      {
-        if ( v < 128 ) return tolower( v );
-        return v;
-      }
-      else
-      {
-        return tolower( v );
-      }
-    }
-  static void ConvertUTF32ToUTF8( unsigned long input, char* output, int* length );
-
-private:
-  TiXmlBase( const TiXmlBase& );                          // not implemented.
-  void operator=( const TiXmlBase& base );        // not allowed.
-
-  struct Entity
-  {
-    const char*     str;
-    unsigned int    strLength;
-    char                chr;
-  };
-  enum
-  {
-    NUM_ENTITY = 5,
-    MAX_ENTITY_LENGTH = 6
-
-  };
-  static Entity entity[ NUM_ENTITY ];
-  static bool condenseWhiteSpace;
-};
-
-
-/** The parent class for everything in the Document Object Model.
-    (Except for attributes).
-    Nodes have siblings, a parent, and children. A node can be
-    in a document, or stand on its own. The type of a TiXmlNode
-    can be queried, and it can be cast to its more defined type.
-*/
-class cpPlugins_tinyxml_EXPORT TiXmlNode : public TiXmlBase
-{
-  friend class TiXmlDocument;
-  friend class TiXmlElement;
-
-public:
-#ifdef TIXML_USE_STL
-
-  /** An input stream operator, for every class. Tolerant of newlines and
-      formatting, but doesn't expect them.
-  */
-  friend std::istream& operator >> (std::istream& in, TiXmlNode& base);
-
-  /** An output stream operator, for every class. Note that this outputs
-      without any newlines or formatting, as opposed to Print(), which
-      includes tabs and new lines.
-
-      The operator<< and operator>> are not completely symmetric. Writing
-      a node to a stream is very well defined. You'll get a nice stream
-      of output, without any extra whitespace or newlines.
-
-      But reading is not as well defined. (As it always is.) If you create
-      a TiXmlElement (for example) and read that from an input stream,
-      the text needs to define an element or junk will result. This is
-      true of all input streams, but it's worth keeping in mind.
-
-      A TiXmlDocument will read nodes until it reads a root element, and
-      all the children of that root element.
-  */
-  friend std::ostream& operator<< (std::ostream& out, const TiXmlNode& base);
-
-  /// Appends the XML node or attribute to a std::string.
-  friend std::string& operator<< (std::string& out, const TiXmlNode& base );
-
-#endif
-
-  /** The types of XML nodes supported by TinyXml. (All the
-      unsupported types are picked up by UNKNOWN.)
-  */
-  enum NodeType
-  {
-    TINYXML_DOCUMENT,
-    TINYXML_ELEMENT,
-    TINYXML_COMMENT,
-    TINYXML_UNKNOWN,
-    TINYXML_TEXT,
-    TINYXML_DECLARATION,
-    TINYXML_TYPECOUNT
-  };
-
-  virtual ~TiXmlNode();
-
-  /** The meaning of 'value' changes for the specific type of
-      TiXmlNode.
-      @verbatim
-      Document:       filename of the xml file
-      Element:        name of the element
-      Comment:        the comment text
-      Unknown:        the tag contents
-      Text:           the text string
-      @endverbatim
-
-      The subclasses will wrap this function.
-  */
-  const char *Value() const { return value.c_str (); }
-
-#ifdef TIXML_USE_STL
-  /** Return Value() as a std::string. If you only use STL,
-      this is more efficient than calling Value().
-      Only available in STL mode.
-  */
-  const std::string& ValueStr() const { return value; }
-#endif
-
-  const TIXML_STRING& ValueTStr() const { return value; }
-
-  /** Changes the value of the node. Defined as:
-      @verbatim
-      Document:       filename of the xml file
-      Element:        name of the element
-      Comment:        the comment text
-      Unknown:        the tag contents
-      Text:           the text string
-      @endverbatim
-  */
-  void SetValue(const char * _value) { value = _value;}
-
-#ifdef TIXML_USE_STL
-  /// STL std::string form.
-  void SetValue( const std::string& _value )      { value = _value; }
-#endif
-
-  /// Delete all the children of this node. Does not affect 'this'.
-  void Clear();
-
-  /// One step up the DOM.
-  TiXmlNode* Parent()                                                     { return parent; }
-  const TiXmlNode* Parent() const                         { return parent; }
-
-  const TiXmlNode* FirstChild()   const           { return firstChild; }  ///< The first child of this node. Will be null if there are no children.
-  TiXmlNode* FirstChild()                                         { return firstChild; }
-  const TiXmlNode* FirstChild( const char * value ) const;                        ///< The first child of this node with the matching 'value'. Will be null if none found.
-  /// The first child of this node with the matching 'value'. Will be null if none found.
-  TiXmlNode* FirstChild( const char * _value ) {
-    // Call through to the const version - safe since nothing is changed. Exiting syntax: cast this to a const (always safe)
-    // call the method, cast the return back to non-const.
-    return const_cast< TiXmlNode* > ((const_cast< const TiXmlNode* >(this))->FirstChild( _value ));
-  }
-  const TiXmlNode* LastChild() const      { return lastChild; }           /// The last child of this node. Will be null if there are no children.
-  TiXmlNode* LastChild()  { return lastChild; }
-
-  const TiXmlNode* LastChild( const char * value ) const;                 /// The last child of this node matching 'value'. Will be null if there are no children.
-  TiXmlNode* LastChild( const char * _value ) {
-    return const_cast< TiXmlNode* > ((const_cast< const TiXmlNode* >(this))->LastChild( _value ));
-  }
-
-#ifdef TIXML_USE_STL
-  const TiXmlNode* FirstChild( const std::string& _value ) const  {       return FirstChild (_value.c_str ());    }       ///< STL std::string form.
-  TiXmlNode* FirstChild( const std::string& _value )                              {       return FirstChild (_value.c_str ());    }       ///< STL std::string form.
-  const TiXmlNode* LastChild( const std::string& _value ) const   {       return LastChild (_value.c_str ());     }       ///< STL std::string form.
-  TiXmlNode* LastChild( const std::string& _value )                               {       return LastChild (_value.c_str ());     }       ///< STL std::string form.
-#endif
-
-  /** An alternate way to walk the children of a node.
-      One way to iterate over nodes is:
-      @verbatim
-      for( child = parent->FirstChild(); child; child = child->NextSibling() )
-      @endverbatim
-
-      IterateChildren does the same thing with the syntax:
-      @verbatim
-      child = 0;
-      while( child = parent->IterateChildren( child ) )
-      @endverbatim
-
-      IterateChildren takes the previous child as input and finds
-      the next one. If the previous child is null, it returns the
-      first. IterateChildren will return null when done.
-  */
-  const TiXmlNode* IterateChildren( const TiXmlNode* previous ) const;
-  TiXmlNode* IterateChildren( const TiXmlNode* previous ) {
-    return const_cast< TiXmlNode* >( (const_cast< const TiXmlNode* >(this))->IterateChildren( previous ) );
-  }
-
-  /// This flavor of IterateChildren searches for children with a particular 'value'
-  const TiXmlNode* IterateChildren( const char * value, const TiXmlNode* previous ) const;
-  TiXmlNode* IterateChildren( const char * _value, const TiXmlNode* previous ) {
-    return const_cast< TiXmlNode* >( (const_cast< const TiXmlNode* >(this))->IterateChildren( _value, previous ) );
-  }
-
-#ifdef TIXML_USE_STL
-  const TiXmlNode* IterateChildren( const std::string& _value, const TiXmlNode* previous ) const  {       return IterateChildren (_value.c_str (), previous);     }       ///< STL std::string form.
-  TiXmlNode* IterateChildren( const std::string& _value, const TiXmlNode* previous ) {    return IterateChildren (_value.c_str (), previous);     }       ///< STL std::string form.
-#endif
-
-  /** Add a new node related to this. Adds a child past the LastChild.
-      Returns a pointer to the new object or NULL if an error occured.
-  */
-  TiXmlNode* InsertEndChild( const TiXmlNode& addThis );
-
-
-  /** Add a new node related to this. Adds a child past the LastChild.
-
-  NOTE: the node to be added is passed by pointer, and will be
-  henceforth owned (and deleted) by tinyXml. This method is efficient
-  and avoids an extra copy, but should be used with care as it
-  uses a different memory model than the other insert functions.
-
-  @sa InsertEndChild
-  */
-  TiXmlNode* LinkEndChild( TiXmlNode* addThis );
-
-  /** Add a new node related to this. Adds a child before the specified child.
-      Returns a pointer to the new object or NULL if an error occured.
-  */
-  TiXmlNode* InsertBeforeChild( TiXmlNode* beforeThis, const TiXmlNode& addThis );
-
-  /** Add a new node related to this. Adds a child after the specified child.
-      Returns a pointer to the new object or NULL if an error occured.
-  */
-  TiXmlNode* InsertAfterChild(  TiXmlNode* afterThis, const TiXmlNode& addThis );
-
-  /** Replace a child of this node.
-      Returns a pointer to the new object or NULL if an error occured.
-  */
-  TiXmlNode* ReplaceChild( TiXmlNode* replaceThis, const TiXmlNode& withThis );
-
-  /// Delete a child of this node.
-  bool RemoveChild( TiXmlNode* removeThis );
-
-  /// Navigate to a sibling node.
-  const TiXmlNode* PreviousSibling() const                        { return prev; }
-  TiXmlNode* PreviousSibling()                                            { return prev; }
-
-  /// Navigate to a sibling node.
-  const TiXmlNode* PreviousSibling( const char * ) const;
-  TiXmlNode* PreviousSibling( const char *_prev ) {
-    return const_cast< TiXmlNode* >( (const_cast< const TiXmlNode* >(this))->PreviousSibling( _prev ) );
-  }
-
-#ifdef TIXML_USE_STL
-  const TiXmlNode* PreviousSibling( const std::string& _value ) const     {       return PreviousSibling (_value.c_str ());       }       ///< STL std::string form.
-  TiXmlNode* PreviousSibling( const std::string& _value )                         {       return PreviousSibling (_value.c_str ());       }       ///< STL std::string form.
-  const TiXmlNode* NextSibling( const std::string& _value) const          {       return NextSibling (_value.c_str ());   }       ///< STL std::string form.
-  TiXmlNode* NextSibling( const std::string& _value)                                      {       return NextSibling (_value.c_str ());   }       ///< STL std::string form.
-#endif
-
-  /// Navigate to a sibling node.
-  const TiXmlNode* NextSibling() const                            { return next; }
-  TiXmlNode* NextSibling()                                                        { return next; }
-
-  /// Navigate to a sibling node with the given 'value'.
-  const TiXmlNode* NextSibling( const char * ) const;
-  TiXmlNode* NextSibling( const char* _next ) {
-    return const_cast< TiXmlNode* >( (const_cast< const TiXmlNode* >(this))->NextSibling( _next ) );
-  }
-
-  /** Convenience function to get through elements.
-      Calls NextSibling and ToElement. Will skip all non-Element
-      nodes. Returns 0 if there is not another element.
-  */
-  const TiXmlElement* NextSiblingElement() const;
-  TiXmlElement* NextSiblingElement() {
-    return const_cast< TiXmlElement* >( (const_cast< const TiXmlNode* >(this))->NextSiblingElement() );
-  }
-
-  /** Convenience function to get through elements.
-      Calls NextSibling and ToElement. Will skip all non-Element
-      nodes. Returns 0 if there is not another element.
-  */
-  const TiXmlElement* NextSiblingElement( const char * ) const;
-  TiXmlElement* NextSiblingElement( const char *_next ) {
-    return const_cast< TiXmlElement* >( (const_cast< const TiXmlNode* >(this))->NextSiblingElement( _next ) );
-  }
-
-#ifdef TIXML_USE_STL
-  const TiXmlElement* NextSiblingElement( const std::string& _value) const        {       return NextSiblingElement (_value.c_str ());    }       ///< STL std::string form.
-  TiXmlElement* NextSiblingElement( const std::string& _value)                            {       return NextSiblingElement (_value.c_str ());    }       ///< STL std::string form.
-#endif
-
-  /// Convenience function to get through elements.
-  const TiXmlElement* FirstChildElement() const;
-  TiXmlElement* FirstChildElement() {
-    return const_cast< TiXmlElement* >( (const_cast< const TiXmlNode* >(this))->FirstChildElement() );
-  }
-
-  /// Convenience function to get through elements.
-  const TiXmlElement* FirstChildElement( const char * _value ) const;
-  TiXmlElement* FirstChildElement( const char * _value ) {
-    return const_cast< TiXmlElement* >( (const_cast< const TiXmlNode* >(this))->FirstChildElement( _value ) );
-  }
-
-#ifdef TIXML_USE_STL
-  const TiXmlElement* FirstChildElement( const std::string& _value ) const        {       return FirstChildElement (_value.c_str ());     }       ///< STL std::string form.
-  TiXmlElement* FirstChildElement( const std::string& _value )                            {       return FirstChildElement (_value.c_str ());     }       ///< STL std::string form.
-#endif
-
-  /** Query the type (as an enumerated value, above) of this node.
-      The possible types are: DOCUMENT, ELEMENT, COMMENT,
-      UNKNOWN, TEXT, and DECLARATION.
-  */
-  int Type() const        { return type; }
-
-  /** Return a pointer to the Document this node lives in.
-      Returns null if not in a document.
-  */
-  const TiXmlDocument* GetDocument() const;
-  TiXmlDocument* GetDocument() {
-    return const_cast< TiXmlDocument* >( (const_cast< const TiXmlNode* >(this))->GetDocument() );
-  }
-
-  /// Returns true if this node has no children.
-  bool NoChildren() const                                         { return !firstChild; }
-
-  virtual const TiXmlDocument*    ToDocument()    const { return 0; } ///< Cast to a more defined type. Will return null if not of the requested type.
-  virtual const TiXmlElement*     ToElement()     const { return 0; } ///< Cast to a more defined type. Will return null if not of the requested type.
-  virtual const TiXmlComment*     ToComment()     const { return 0; } ///< Cast to a more defined type. Will return null if not of the requested type.
-  virtual const TiXmlUnknown*     ToUnknown()     const { return 0; } ///< Cast to a more defined type. Will return null if not of the requested type.
-  virtual const TiXmlText*        ToText()        const { return 0; } ///< Cast to a more defined type. Will return null if not of the requested type.
-  virtual const TiXmlDeclaration* ToDeclaration() const { return 0; } ///< Cast to a more defined type. Will return null if not of the requested type.
-
-  virtual TiXmlDocument*          ToDocument()    { return 0; } ///< Cast to a more defined type. Will return null if not of the requested type.
-  virtual TiXmlElement*           ToElement()         { return 0; } ///< Cast to a more defined type. Will return null if not of the requested type.
-  virtual TiXmlComment*           ToComment()     { return 0; } ///< Cast to a more defined type. Will return null if not of the requested type.
-  virtual TiXmlUnknown*           ToUnknown()         { return 0; } ///< Cast to a more defined type. Will return null if not of the requested type.
-  virtual TiXmlText*                  ToText()        { return 0; } ///< Cast to a more defined type. Will return null if not of the requested type.
-  virtual TiXmlDeclaration*       ToDeclaration() { return 0; } ///< Cast to a more defined type. Will return null if not of the requested type.
-
-  /** Create an exact duplicate of this node and return it. The memory must be deleted
-      by the caller.
-  */
-  virtual TiXmlNode* Clone() const = 0;
-
-  /** Accept a hierchical visit the nodes in the TinyXML DOM. Every node in the
-      XML tree will be conditionally visited and the host will be called back
-      via the TiXmlVisitor interface.
-
-      This is essentially a SAX interface for TinyXML. (Note however it doesn't re-parse
-      the XML for the callbacks, so the performance of TinyXML is unchanged by using this
-      interface versus any other.)
-
-      The interface has been based on ideas from:
-
-      - http://www.saxproject.org/
-      - http://c2.com/cgi/wiki?HierarchicalVisitorPattern
-
-      Which are both good references for "visiting".
-
-      An example of using Accept():
-      @verbatim
-      TiXmlPrinter printer;
-      tinyxmlDoc.Accept( &printer );
-      const char* xmlcstr = printer.CStr();
-      @endverbatim
-  */
-  virtual bool Accept( TiXmlVisitor* visitor ) const = 0;
-
-protected:
-  TiXmlNode( NodeType _type );
-
-  // Copy to the allocated object. Shared functionality between Clone, Copy constructor,
-  // and the assignment operator.
-  void CopyTo( TiXmlNode* target ) const;
-
-#ifdef TIXML_USE_STL
-  // The real work of the input operator.
-  virtual void StreamIn( std::istream* in, TIXML_STRING* tag ) = 0;
-#endif
-
-  // Figure out what is at *p, and parse it. Returns null if it is not an xml node.
-  TiXmlNode* Identify( const char* start, TiXmlEncoding encoding );
-
-  TiXmlNode*              parent;
-  NodeType                type;
-
-  TiXmlNode*              firstChild;
-  TiXmlNode*              lastChild;
-
-  TIXML_STRING    value;
-
-  TiXmlNode*              prev;
-  TiXmlNode*              next;
-
-private:
-  TiXmlNode( const TiXmlNode& );                          // not implemented.
-  void operator=( const TiXmlNode& base );        // not allowed.
-};
-
-
-/** An attribute is a name-value pair. Elements have an arbitrary
-    number of attributes, each with a unique name.
-
-    @note The attributes are not TiXmlNodes, since they are not
-    part of the tinyXML document object model. There are other
-    suggested ways to look at this problem.
-*/
-class cpPlugins_tinyxml_EXPORT TiXmlAttribute : public TiXmlBase
-{
-  friend class TiXmlAttributeSet;
-
-public:
-  /// Construct an empty attribute.
-  TiXmlAttribute() : TiXmlBase()
-    {
-      document = 0;
-      prev = next = 0;
-    }
-
-#ifdef TIXML_USE_STL
-  /// std::string constructor.
-  TiXmlAttribute( const std::string& _name, const std::string& _value )
-    {
-      name = _name;
-      value = _value;
-      document = 0;
-      prev = next = 0;
-    }
-#endif
-
-  /// Construct an attribute with a name and value.
-  TiXmlAttribute( const char * _name, const char * _value )
-    {
-      name = _name;
-      value = _value;
-      document = 0;
-      prev = next = 0;
-    }
-
-  const char*             Name()  const           { return name.c_str(); }                ///< Return the name of this attribute.
-  const char*             Value() const           { return value.c_str(); }               ///< Return the value of this attribute.
-#ifdef TIXML_USE_STL
-  const std::string& ValueStr() const     { return value; }                               ///< Return the value of this attribute.
-#endif
-  int                             IntValue() const;                                                                       ///< Return the value of this attribute, converted to an integer.
-  double                  DoubleValue() const;                                                            ///< Return the value of this attribute, converted to a double.
-
-  // Get the tinyxml string representation
-  const TIXML_STRING& NameTStr() const { return name; }
-
-  /** QueryIntValue examines the value string. It is an alternative to the
-      IntValue() method with richer error checking.
-      If the value is an integer, it is stored in 'value' and
-      the call returns TIXML_SUCCESS. If it is not
-      an integer, it returns TIXML_WRONG_TYPE.
-
-      A specialized but useful call. Note that for success it returns 0,
-      which is the opposite of almost all other TinyXml calls.
-  */
-  int QueryIntValue( int* _value ) const;
-  /// QueryDoubleValue examines the value string. See QueryIntValue().
-  int QueryDoubleValue( double* _value ) const;
-
-  void SetName( const char* _name )       { name = _name; }                               ///< Set the name of this attribute.
-  void SetValue( const char* _value )     { value = _value; }                             ///< Set the value.
-
-  void SetIntValue( int _value );                                                                         ///< Set the value from an integer.
-  void SetDoubleValue( double _value );                                                           ///< Set the value from a double.
-
-#ifdef TIXML_USE_STL
-  /// STL std::string form.
-  void SetName( const std::string& _name )        { name = _name; }
-  /// STL std::string form.
-  void SetValue( const std::string& _value )      { value = _value; }
-#endif
-
-  /// Get the next sibling attribute in the DOM. Returns null at end.
-  const TiXmlAttribute* Next() const;
-  TiXmlAttribute* Next() {
-    return const_cast< TiXmlAttribute* >( (const_cast< const TiXmlAttribute* >(this))->Next() );
-  }
-
-  /// Get the previous sibling attribute in the DOM. Returns null at beginning.
-  const TiXmlAttribute* Previous() const;
-  TiXmlAttribute* Previous() {
-    return const_cast< TiXmlAttribute* >( (const_cast< const TiXmlAttribute* >(this))->Previous() );
-  }
-
-  bool operator==( const TiXmlAttribute& rhs ) const { return rhs.name == name; }
-  bool operator<( const TiXmlAttribute& rhs )      const { return name < rhs.name; }
-  bool operator>( const TiXmlAttribute& rhs )  const { return name > rhs.name; }
-
-  /*      Attribute parsing starts: first letter of the name
-          returns: the next char after the value end quote
-  */
-  virtual const char* Parse( const char* p, TiXmlParsingData* data, TiXmlEncoding encoding );
-
-  // Prints this Attribute to a FILE stream.
-  virtual void Print( FILE* cfile, int depth ) const {
-    Print( cfile, depth, 0 );
-  }
-  void Print( FILE* cfile, int depth, TIXML_STRING* str ) const;
-
-  // [internal use]
-  // Set the document pointer so the attribute can report errors.
-  void SetDocument( TiXmlDocument* doc )  { document = doc; }
-
-private:
-  TiXmlAttribute( const TiXmlAttribute& );                                // not implemented.
-  void operator=( const TiXmlAttribute& base );   // not allowed.
-
-  TiXmlDocument*  document;       // A pointer back to a document, for error reporting.
-  TIXML_STRING name;
-  TIXML_STRING value;
-  TiXmlAttribute* prev;
-  TiXmlAttribute* next;
-};
-
-
-/*      A class used to manage a group of attributes.
-        It is only used internally, both by the ELEMENT and the DECLARATION.
-
-        The set can be changed transparent to the Element and Declaration
-        classes that use it, but NOT transparent to the Attribute
-        which has to implement a next() and previous() method. Which makes
-        it a bit problematic and prevents the use of STL.
-
-        This version is implemented with circular lists because:
-        - I like circular lists
-        - it demonstrates some independence from the (typical) doubly linked list.
-*/
-class cpPlugins_tinyxml_EXPORT TiXmlAttributeSet
-{
-public:
-  TiXmlAttributeSet();
-  ~TiXmlAttributeSet();
-
-  void Add( TiXmlAttribute* attribute );
-  void Remove( TiXmlAttribute* attribute );
-
-  const TiXmlAttribute* First()   const   { return ( sentinel.next == &sentinel ) ? 0 : sentinel.next; }
-  TiXmlAttribute* First()                                 { return ( sentinel.next == &sentinel ) ? 0 : sentinel.next; }
-  const TiXmlAttribute* Last() const              { return ( sentinel.prev == &sentinel ) ? 0 : sentinel.prev; }
-  TiXmlAttribute* Last()                                  { return ( sentinel.prev == &sentinel ) ? 0 : sentinel.prev; }
-
-  TiXmlAttribute* Find( const char* _name ) const;
-  TiXmlAttribute* FindOrCreate( const char* _name );
-
-#       ifdef TIXML_USE_STL
-  TiXmlAttribute* Find( const std::string& _name ) const;
-  TiXmlAttribute* FindOrCreate( const std::string& _name );
-#       endif
-
-
-private:
-  //*ME:  Because of hidden/disabled copy-construktor in TiXmlAttribute (sentinel-element),
-          //*ME:  this class must be also use a hidden/disabled copy-constructor !!!
-    TiXmlAttributeSet( const TiXmlAttributeSet& );  // not allowed
-  void operator=( const TiXmlAttributeSet& );     // not allowed (as TiXmlAttribute)
-
-  TiXmlAttribute sentinel;
-};
-
-
-/** The element is a container class. It has a value, the element name,
-    and can contain other elements, text, comments, and unknowns.
-    Elements also contain an arbitrary number of attributes.
-*/
-class cpPlugins_tinyxml_EXPORT TiXmlElement : public TiXmlNode
-{
-public:
-  /// Construct an element.
-  TiXmlElement (const char * in_value);
-
-#ifdef TIXML_USE_STL
-  /// std::string constructor.
-  TiXmlElement( const std::string& _value );
-#endif
-
-  TiXmlElement( const TiXmlElement& );
-
-  void operator=( const TiXmlElement& base );
-
-  virtual ~TiXmlElement();
-
-  /** Given an attribute name, Attribute() returns the value
-      for the attribute of that name, or null if none exists.
-  */
-  const char* Attribute( const char* name ) const;
-
-  /** Given an attribute name, Attribute() returns the value
-      for the attribute of that name, or null if none exists.
-      If the attribute exists and can be converted to an integer,
-      the integer value will be put in the return 'i', if 'i'
-      is non-null.
-  */
-  const char* Attribute( const char* name, int* i ) const;
-
-  /** Given an attribute name, Attribute() returns the value
-      for the attribute of that name, or null if none exists.
-      If the attribute exists and can be converted to an double,
-      the double value will be put in the return 'd', if 'd'
-      is non-null.
-  */
-  const char* Attribute( const char* name, double* d ) const;
-
-  /** QueryIntAttribute examines the attribute - it is an alternative to the
-      Attribute() method with richer error checking.
-      If the attribute is an integer, it is stored in 'value' and
-      the call returns TIXML_SUCCESS. If it is not
-      an integer, it returns TIXML_WRONG_TYPE. If the attribute
-      does not exist, then TIXML_NO_ATTRIBUTE is returned.
-  */
-  int QueryIntAttribute( const char* name, int* _value ) const;
-  /// QueryDoubleAttribute examines the attribute - see QueryIntAttribute().
-  int QueryDoubleAttribute( const char* name, double* _value ) const;
-  /// QueryFloatAttribute examines the attribute - see QueryIntAttribute().
-  int QueryFloatAttribute( const char* name, float* _value ) const {
-    double d;
-    int result = QueryDoubleAttribute( name, &d );
-    if ( result == TIXML_SUCCESS ) {
-      *_value = (float)d;
-    }
-    return result;
-  }
-
-#ifdef TIXML_USE_STL
-  /// QueryStringAttribute examines the attribute - see QueryIntAttribute().
-  int QueryStringAttribute( const char* name, std::string* _value ) const {
-    const char* cstr = Attribute( name );
-    if ( cstr ) {
-      *_value = std::string( cstr );
-      return TIXML_SUCCESS;
-    }
-    return TIXML_NO_ATTRIBUTE;
-  }
-
-  /** Template form of the attribute query which will try to read the
-      attribute into the specified type. Very easy, very powerful, but
-      be careful to make sure to call this with the correct type.
-
-      NOTE: This method doesn't work correctly for 'string' types that contain spaces.
-
-      @return TIXML_SUCCESS, TIXML_WRONG_TYPE, or TIXML_NO_ATTRIBUTE
-  */
-  template< typename T > int QueryValueAttribute( const std::string& name, T* outValue ) const
-    {
-      const TiXmlAttribute* node = attributeSet.Find( name );
-      if ( !node )
-        return TIXML_NO_ATTRIBUTE;
-
-      std::stringstream sstream( node->ValueStr() );
-      sstream >> *outValue;
-      if ( !sstream.fail() )
-        return TIXML_SUCCESS;
-      return TIXML_WRONG_TYPE;
-    }
-
-  int QueryValueAttribute( const std::string& name, std::string* outValue ) const
-    {
-      const TiXmlAttribute* node = attributeSet.Find( name );
-      if ( !node )
-        return TIXML_NO_ATTRIBUTE;
-      *outValue = node->ValueStr();
-      return TIXML_SUCCESS;
-    }
-#endif
-
-  /** Sets an attribute of name to a given value. The attribute
-      will be created if it does not exist, or changed if it does.
-  */
-  void SetAttribute( const char* name, const char * _value );
-
-#ifdef TIXML_USE_STL
-  const std::string* Attribute( const std::string& name ) const;
-  const std::string* Attribute( const std::string& name, int* i ) const;
-  const std::string* Attribute( const std::string& name, double* d ) const;
-  int QueryIntAttribute( const std::string& name, int* _value ) const;
-  int QueryDoubleAttribute( const std::string& name, double* _value ) const;
-
-  /// STL std::string form.
-  void SetAttribute( const std::string& name, const std::string& _value );
-  ///< STL std::string form.
-  void SetAttribute( const std::string& name, int _value );
-  ///< STL std::string form.
-  void SetDoubleAttribute( const std::string& name, double value );
-#endif
-
-  /** Sets an attribute of name to a given value. The attribute
-      will be created if it does not exist, or changed if it does.
-  */
-  void SetAttribute( const char * name, int value );
-
-  /** Sets an attribute of name to a given value. The attribute
-      will be created if it does not exist, or changed if it does.
-  */
-  void SetDoubleAttribute( const char * name, double value );
-
-  /** Deletes an attribute with the given name.
-   */
-  void RemoveAttribute( const char * name );
-#ifdef TIXML_USE_STL
-  void RemoveAttribute( const std::string& name ) {       RemoveAttribute (name.c_str ());        }       ///< STL std::string form.
-#endif
-
-  const TiXmlAttribute* FirstAttribute() const    { return attributeSet.First(); }                ///< Access the first attribute in this element.
-  TiXmlAttribute* FirstAttribute()                                { return attributeSet.First(); }
-  const TiXmlAttribute* LastAttribute()   const   { return attributeSet.Last(); }         ///< Access the last attribute in this element.
-  TiXmlAttribute* LastAttribute()                                 { return attributeSet.Last(); }
-
-  /** Convenience function for easy access to the text inside an element. Although easy
-      and concise, GetText() is limited compared to getting the TiXmlText child
-      and accessing it directly.
-
-      If the first child of 'this' is a TiXmlText, the GetText()
-      returns the character string of the Text node, else null is returned.
-
-      This is a convenient method for getting the text of simple contained text:
-      @verbatim
-      <foo>This is text</foo>
-      const char* str = fooElement->GetText();
-      @endverbatim
-
-      'str' will be a pointer to "This is text".
-
-      Note that this function can be misleading. If the element foo was created from
-      this XML:
-      @verbatim
-      <foo><b>This is text</b></foo>
-      @endverbatim
-
-      then the value of str would be null. The first child node isn't a text node, it is
-      another element. From this XML:
-      @verbatim
-      <foo>This is <b>text</b></foo>
-      @endverbatim
-      GetText() will return "This is ".
-
-      WARNING: GetText() accesses a child node - don't become confused with the
-      similarly named TiXmlHandle::Text() and TiXmlNode::ToText() which are
-      safe type casts on the referenced node.
-  */
-  const char* GetText() const;
-
-  /// Creates a new Element and returns it - the returned element is a copy.
-  virtual TiXmlNode* Clone() const;
-  // Print the Element to a FILE stream.
-  virtual void Print( FILE* cfile, int depth ) const;
-
-  /*      Attribtue parsing starts: next char past '<'
-          returns: next char past '>'
-  */
-  virtual const char* Parse( const char* p, TiXmlParsingData* data, TiXmlEncoding encoding );
-
-  virtual const TiXmlElement*     ToElement()     const { return this; } ///< Cast to a more defined type. Will return null not of the requested type.
-  virtual TiXmlElement*           ToElement()               { return this; } ///< Cast to a more defined type. Will return null not of the requested type.
-
-  /** Walk the XML tree visiting this node and all of its children.
-   */
-  virtual bool Accept( TiXmlVisitor* visitor ) const;
-
-protected:
-
-  void CopyTo( TiXmlElement* target ) const;
-  void ClearThis();       // like clear, but initializes 'this' object as well
-
-  // Used to be public [internal use]
-#ifdef TIXML_USE_STL
-  virtual void StreamIn( std::istream * in, TIXML_STRING * tag );
-#endif
-  /*      [internal use]
-          Reads the "value" of the element -- another element, or text.
-          This should terminate with the current end tag.
-  */
-  const char* ReadValue( const char* in, TiXmlParsingData* prevData, TiXmlEncoding encoding );
-
-private:
-  TiXmlAttributeSet attributeSet;
-};
-
-
-/**     An XML comment.
- */
-class TiXmlComment : public TiXmlNode
-{
-public:
-  /// Constructs an empty comment.
-  TiXmlComment() : TiXmlNode( TiXmlNode::TINYXML_COMMENT ) {}
-  /// Construct a comment from text.
-  TiXmlComment( const char* _value ) : TiXmlNode( TiXmlNode::TINYXML_COMMENT ) {
-    SetValue( _value );
-  }
-  TiXmlComment( const TiXmlComment& );
-  void operator=( const TiXmlComment& base );
-
-  virtual ~TiXmlComment() {}
-
-  /// Returns a copy of this Comment.
-  virtual TiXmlNode* Clone() const;
-  // Write this Comment to a FILE stream.
-  virtual void Print( FILE* cfile, int depth ) const;
-
-  /*      Attribtue parsing starts: at the ! of the !--
-          returns: next char past '>'
-  */
-  virtual const char* Parse( const char* p, TiXmlParsingData* data, TiXmlEncoding encoding );
-
-  virtual const TiXmlComment*  ToComment() const { return this; } ///< Cast to a more defined type. Will return null not of the requested type.
-  virtual TiXmlComment*  ToComment() { return this; } ///< Cast to a more defined type. Will return null not of the requested type.
-
-  /** Walk the XML tree visiting this node and all of its children.
-   */
-  virtual bool Accept( TiXmlVisitor* visitor ) const;
-
-protected:
-  void CopyTo( TiXmlComment* target ) const;
-
-  // used to be public
-#ifdef TIXML_USE_STL
-  virtual void StreamIn( std::istream * in, TIXML_STRING * tag );
-#endif
-  //      virtual void StreamOut( TIXML_OSTREAM * out ) const;
-
-private:
-
-};
-
-
-/** XML text. A text node can have 2 ways to output the next. "normal" output
-    and CDATA. It will default to the mode it was parsed from the XML file and
-    you generally want to leave it alone, but you can change the output mode with
-    SetCDATA() and query it with CDATA().
-*/
-class TiXmlText : public TiXmlNode
-{
-  friend class TiXmlElement;
-public:
-  /** Constructor for text element. By default, it is treated as
-      normal, encoded text. If you want it be output as a CDATA text
-      element, set the parameter _cdata to 'true'
-  */
-  TiXmlText (const char * initValue ) : TiXmlNode (TiXmlNode::TINYXML_TEXT)
-    {
-      SetValue( initValue );
-      cdata = false;
-    }
-  virtual ~TiXmlText() {}
-
-#ifdef TIXML_USE_STL
-  /// Constructor.
-  TiXmlText( const std::string& initValue ) : TiXmlNode (TiXmlNode::TINYXML_TEXT)
-    {
-      SetValue( initValue );
-      cdata = false;
-    }
-#endif
-
-  TiXmlText( const TiXmlText& copy ) : TiXmlNode( TiXmlNode::TINYXML_TEXT )       { copy.CopyTo( this ); }
-  void operator=( const TiXmlText& base )                                                         { base.CopyTo( this ); }
-
-  // Write this text object to a FILE stream.
-  virtual void Print( FILE* cfile, int depth ) const;
-
-  /// Queries whether this represents text using a CDATA section.
-  bool CDATA() const                              { return cdata; }
-  /// Turns on or off a CDATA representation of text.
-  void SetCDATA( bool _cdata )    { cdata = _cdata; }
-
-  virtual const char* Parse( const char* p, TiXmlParsingData* data, TiXmlEncoding encoding );
-
-  virtual const TiXmlText* ToText() const { return this; } ///< Cast to a more defined type. Will return null not of the requested type.
-  virtual TiXmlText*       ToText()       { return this; } ///< Cast to a more defined type. Will return null not of the requested type.
-
-  /** Walk the XML tree visiting this node and all of its children.
-   */
-  virtual bool Accept( TiXmlVisitor* content ) const;
-
-protected :
-  ///  [internal use] Creates a new Element and returns it.
-  virtual TiXmlNode* Clone() const;
-  void CopyTo( TiXmlText* target ) const;
-
-  bool Blank() const;     // returns true if all white space and new lines
-  // [internal use]
-#ifdef TIXML_USE_STL
-  virtual void StreamIn( std::istream * in, TIXML_STRING * tag );
-#endif
-
-private:
-  bool cdata;                     // true if this should be input and output as a CDATA style text element
-};
-
-
-/** In correct XML the declaration is the first entry in the file.
-    @verbatim
-    <?xml version="1.0" standalone="yes"?>
-    @endverbatim
-
-    TinyXml will happily read or write files without a declaration,
-    however. There are 3 possible attributes to the declaration:
-    version, encoding, and standalone.
-
-    Note: In this version of the code, the attributes are
-    handled as special cases, not generic attributes, simply
-    because there can only be at most 3 and they are always the same.
-*/
-class cpPlugins_tinyxml_EXPORT TiXmlDeclaration : public TiXmlNode
-{
-public:
-  /// Construct an empty declaration.
-  TiXmlDeclaration()   : TiXmlNode( TiXmlNode::TINYXML_DECLARATION ) {}
-
-#ifdef TIXML_USE_STL
-  /// Constructor.
-  TiXmlDeclaration(       const std::string& _version,
-                          const std::string& _encoding,
-                          const std::string& _standalone );
-#endif
-
-  /// Construct.
-  TiXmlDeclaration(       const char* _version,
-                          const char* _encoding,
-                          const char* _standalone );
-
-  TiXmlDeclaration( const TiXmlDeclaration& copy );
-  void operator=( const TiXmlDeclaration& copy );
-
-  virtual ~TiXmlDeclaration()     {}
-
-  /// Version. Will return an empty string if none was found.
-  const char *Version() const                     { return version.c_str (); }
-  /// Encoding. Will return an empty string if none was found.
-  const char *Encoding() const            { return encoding.c_str (); }
-  /// Is this a standalone document?
-  const char *Standalone() const          { return standalone.c_str (); }
-
-  /// Creates a copy of this Declaration and returns it.
-  virtual TiXmlNode* Clone() const;
-  // Print this declaration to a FILE stream.
-  virtual void Print( FILE* cfile, int depth, TIXML_STRING* str ) const;
-  virtual void Print( FILE* cfile, int depth ) const {
-    Print( cfile, depth, 0 );
-  }
-
-  virtual const char* Parse( const char* p, TiXmlParsingData* data, TiXmlEncoding encoding );
-
-  virtual const TiXmlDeclaration* ToDeclaration() const { return this; } ///< Cast to a more defined type. Will return null not of the requested type.
-  virtual TiXmlDeclaration*       ToDeclaration()       { return this; } ///< Cast to a more defined type. Will return null not of the requested type.
-
-  /** Walk the XML tree visiting this node and all of its children.
-   */
-  virtual bool Accept( TiXmlVisitor* visitor ) const;
-
-protected:
-  void CopyTo( TiXmlDeclaration* target ) const;
-  // used to be public
-#ifdef TIXML_USE_STL
-  virtual void StreamIn( std::istream * in, TIXML_STRING * tag );
-#endif
-
-private:
-
-  TIXML_STRING version;
-  TIXML_STRING encoding;
-  TIXML_STRING standalone;
-};
-
-
-/** Any tag that tinyXml doesn't recognize is saved as an
-    unknown. It is a tag of text, but should not be modified.
-    It will be written back to the XML, unchanged, when the file
-    is saved.
-
-    DTD tags get thrown into TiXmlUnknowns.
-*/
-class TiXmlUnknown : public TiXmlNode
-{
-public:
-  TiXmlUnknown() : TiXmlNode( TiXmlNode::TINYXML_UNKNOWN )        {}
-  virtual ~TiXmlUnknown() {}
-
-  TiXmlUnknown( const TiXmlUnknown& copy ) : TiXmlNode( TiXmlNode::TINYXML_UNKNOWN )              { copy.CopyTo( this ); }
-  void operator=( const TiXmlUnknown& copy )                                                                              { copy.CopyTo( this ); }
-
-  /// Creates a copy of this Unknown and returns it.
-  virtual TiXmlNode* Clone() const;
-  // Print this Unknown to a FILE stream.
-  virtual void Print( FILE* cfile, int depth ) const;
-
-  virtual const char* Parse( const char* p, TiXmlParsingData* data, TiXmlEncoding encoding );
-
-  virtual const TiXmlUnknown*     ToUnknown()     const { return this; } ///< Cast to a more defined type. Will return null not of the requested type.
-  virtual TiXmlUnknown*           ToUnknown()         { return this; } ///< Cast to a more defined type. Will return null not of the requested type.
-
-  /** Walk the XML tree visiting this node and all of its children.
-   */
-  virtual bool Accept( TiXmlVisitor* content ) const;
-
-protected:
-  void CopyTo( TiXmlUnknown* target ) const;
-
-#ifdef TIXML_USE_STL
-  virtual void StreamIn( std::istream * in, TIXML_STRING * tag );
-#endif
-
-private:
-
-};
-
-
-/** Always the top level node. A document binds together all the
-    XML pieces. It can be saved, loaded, and printed to the screen.
-    The 'value' of a document node is the xml file name.
-*/
-class cpPlugins_tinyxml_EXPORT TiXmlDocument : public TiXmlNode
-{
-public:
-  /// Create an empty document, that has no name.
-  TiXmlDocument();
-  /// Create a document with a name. The name of the document is also the filename of the xml.
-  TiXmlDocument( const char * documentName );
-
-#ifdef TIXML_USE_STL
-  /// Constructor.
-  TiXmlDocument( const std::string& documentName );
-#endif
-
-  TiXmlDocument( const TiXmlDocument& copy );
-  void operator=( const TiXmlDocument& copy );
-
-  virtual ~TiXmlDocument() {}
-
-  /** Load a file using the current document value.
-      Returns true if successful. Will delete any existing
-      document data before loading.
-  */
-  bool LoadFile( TiXmlEncoding encoding = TIXML_DEFAULT_ENCODING );
-  /// Save a file using the current document value. Returns true if successful.
-  bool SaveFile() const;
-  /// Load a file using the given filename. Returns true if successful.
-  bool LoadFile( const char * filename, TiXmlEncoding encoding = TIXML_DEFAULT_ENCODING );
-  /// Save a file using the given filename. Returns true if successful.
-  bool SaveFile( const char * filename ) const;
-  /** Load a file using the given FILE*. Returns true if successful. Note that this method
-      doesn't stream - the entire object pointed at by the FILE*
-      will be interpreted as an XML file. TinyXML doesn't stream in XML from the current
-      file location. Streaming may be added in the future.
-  */
-  bool LoadFile( FILE*, TiXmlEncoding encoding = TIXML_DEFAULT_ENCODING );
-  /// Save a file using the given FILE*. Returns true if successful.
-  bool SaveFile( FILE* ) const;
-
-#ifdef TIXML_USE_STL
-  bool LoadFile( const std::string& filename, TiXmlEncoding encoding = TIXML_DEFAULT_ENCODING )                   ///< STL std::string version.
-    {
-      return LoadFile( filename.c_str(), encoding );
-    }
-  bool SaveFile( const std::string& filename ) const              ///< STL std::string version.
-    {
-      return SaveFile( filename.c_str() );
-    }
-#endif
-
-  /** Parse the given null terminated block of xml data. Passing in an encoding to this
-      method (either TIXML_ENCODING_LEGACY or TIXML_ENCODING_UTF8 will force TinyXml
-      to use that encoding, regardless of what TinyXml might otherwise try to detect.
-  */
-  virtual const char* Parse( const char* p, TiXmlParsingData* data = 0, TiXmlEncoding encoding = TIXML_DEFAULT_ENCODING );
-
-  /** Get the root element -- the only top level element -- of the document.
-      In well formed XML, there should only be one. TinyXml is tolerant of
-      multiple elements at the document level.
-  */
-  const TiXmlElement* RootElement() const         { return FirstChildElement(); }
-  TiXmlElement* RootElement()                                     { return FirstChildElement(); }
-
-  /** If an error occurs, Error will be set to true. Also,
-      - The ErrorId() will contain the integer identifier of the error (not generally useful)
-      - The ErrorDesc() method will return the name of the error. (very useful)
-      - The ErrorRow() and ErrorCol() will return the location of the error (if known)
-  */
-  bool Error() const                                              { return error; }
-
-  /// Contains a textual (english) description of the error if one occurs.
-  const char * ErrorDesc() const  { return errorDesc.c_str (); }
-
-  /** Generally, you probably want the error string ( ErrorDesc() ). But if you
-      prefer the ErrorId, this function will fetch it.
-  */
-  int ErrorId()   const                           { return errorId; }
-
-  /** Returns the location (if known) of the error. The first column is column 1,
-      and the first row is row 1. A value of 0 means the row and column wasn't applicable
-      (memory errors, for example, have no row/column) or the parser lost the error. (An
-      error in the error reporting, in that case.)
-
-      @sa SetTabSize, Row, Column
-  */
-  int ErrorRow() const    { return errorLocation.row+1; }
-  int ErrorCol() const    { return errorLocation.col+1; } ///< The column where the error occured. See ErrorRow()
-
-  /** SetTabSize() allows the error reporting functions (ErrorRow() and ErrorCol())
-      to report the correct values for row and column. It does not change the output
-      or input in any way.
-
-      By calling this method, with a tab size
-      greater than 0, the row and column of each node and attribute is stored
-      when the file is loaded. Very useful for tracking the DOM back in to
-      the source file.
-
-      The tab size is required for calculating the location of nodes. If not
-      set, the default of 4 is used. The tabsize is set per document. Setting
-      the tabsize to 0 disables row/column tracking.
-
-      Note that row and column tracking is not supported when using operator>>.
-
-      The tab size needs to be enabled before the parse or load. Correct usage:
-      @verbatim
-      TiXmlDocument doc;
-      doc.SetTabSize( 8 );
-      doc.Load( "myfile.xml" );
-      @endverbatim
-
-      @sa Row, Column
-  */
-  void SetTabSize( int _tabsize )         { tabsize = _tabsize; }
-
-  int TabSize() const     { return tabsize; }
-
-  /** If you have handled the error, it can be reset with this call. The error
-      state is automatically cleared if you Parse a new XML block.
-  */
-  void ClearError()                                               {       error = false;
-    errorId = 0;
-    errorDesc = "";
-    errorLocation.row = errorLocation.col = 0;
-    //errorLocation.last = 0;
-  }
-
-  /** Write the document to standard out using formatted printing ("pretty print"). */
-  void Print() const                                              { Print( stdout, 0 ); }
-
-  /* Write the document to a string using formatted printing ("pretty print"). This
-     will allocate a character array (new char[]) and return it as a pointer. The
-     calling code pust call delete[] on the return char* to avoid a memory leak.
-  */
-  //char* PrintToMemory() const;
-
-  /// Print this Document to a FILE stream.
-  virtual void Print( FILE* cfile, int depth = 0 ) const;
-  // [internal use]
-  void SetError( int err, const char* errorLocation, TiXmlParsingData* prevData, TiXmlEncoding encoding );
-
-  virtual const TiXmlDocument*    ToDocument()    const { return this; } ///< Cast to a more defined type. Will return null not of the requested type.
-  virtual TiXmlDocument*          ToDocument()          { return this; } ///< Cast to a more defined type. Will return null not of the requested type.
-
-  /** Walk the XML tree visiting this node and all of its children.
-   */
-  virtual bool Accept( TiXmlVisitor* content ) const;
-
-protected :
-  // [internal use]
-  virtual TiXmlNode* Clone() const;
-#ifdef TIXML_USE_STL
-  virtual void StreamIn( std::istream * in, TIXML_STRING * tag );
-#endif
-
-private:
-  void CopyTo( TiXmlDocument* target ) const;
-
-  bool error;
-  int  errorId;
-  TIXML_STRING errorDesc;
-  int tabsize;
-  TiXmlCursor errorLocation;
-  bool useMicrosoftBOM;           // the UTF-8 BOM were found when read. Note this, and try to write.
-};
-
-
-/**
-   A TiXmlHandle is a class that wraps a node pointer with null checks; this is
-   an incredibly useful thing. Note that TiXmlHandle is not part of the TinyXml
-   DOM structure. It is a separate utility class.
-
-   Take an example:
-   @verbatim
-   <Document>
-   <Element attributeA = "valueA">
-   <Child attributeB = "value1" />
-   <Child attributeB = "value2" />
-   </Element>
-   <Document>
-   @endverbatim
-
-   Assuming you want the value of "attributeB" in the 2nd "Child" element, it's very
-   easy to write a *lot* of code that looks like:
-
-   @verbatim
-   TiXmlElement* root = document.FirstChildElement( "Document" );
-   if ( root )
-   {
-   TiXmlElement* element = root->FirstChildElement( "Element" );
-   if ( element )
-   {
-   TiXmlElement* child = element->FirstChildElement( "Child" );
-   if ( child )
-   {
-   TiXmlElement* child2 = child->NextSiblingElement( "Child" );
-   if ( child2 )
-   {
-   // Finally do something useful.
-   @endverbatim
-
-   And that doesn't even cover "else" cases. TiXmlHandle addresses the verbosity
-   of such code. A TiXmlHandle checks for null     pointers so it is perfectly safe
-   and correct to use:
-
-   @verbatim
-   TiXmlHandle docHandle( &document );
-   TiXmlElement* child2 = docHandle.FirstChild( "Document" ).FirstChild( "Element" ).Child( "Child", 1 ).ToElement();
-   if ( child2 )
-   {
-   // do something useful
-   @endverbatim
-
-   Which is MUCH more concise and useful.
-
-   It is also safe to copy handles - internally they are nothing more than node pointers.
-   @verbatim
-   TiXmlHandle handleCopy = handle;
-   @endverbatim
-
-   What they should not be used for is iteration:
-
-   @verbatim
-   int i=0;
-   while ( true )
-   {
-   TiXmlElement* child = docHandle.FirstChild( "Document" ).FirstChild( "Element" ).Child( "Child", i ).ToElement();
-   if ( !child )
-   break;
-   // do something
-   ++i;
-   }
-   @endverbatim
-
-   It seems reasonable, but it is in fact two embedded while loops. The Child method is
-   a linear walk to find the element, so this code would iterate much more than it needs
-   to. Instead, prefer:
-
-   @verbatim
-   TiXmlElement* child = docHandle.FirstChild( "Document" ).FirstChild( "Element" ).FirstChild( "Child" ).ToElement();
-
-   for( child; child; child=child->NextSiblingElement() )
-   {
-   // do something
-   }
-   @endverbatim
-*/
-class TiXmlHandle
-{
-public:
-  /// Create a handle from any node (at any depth of the tree.) This can be a null pointer.
-  TiXmlHandle( TiXmlNode* _node )                                 { this->node = _node; }
-  /// Copy constructor
-  TiXmlHandle( const TiXmlHandle& ref )                   { this->node = ref.node; }
-  TiXmlHandle operator=( const TiXmlHandle& ref ) { this->node = ref.node; return *this; }
-
-  /// Return a handle to the first child node.
-  TiXmlHandle FirstChild() const;
-  /// Return a handle to the first child node with the given name.
-  TiXmlHandle FirstChild( const char * value ) const;
-  /// Return a handle to the first child element.
-  TiXmlHandle FirstChildElement() const;
-  /// Return a handle to the first child element with the given name.
-  TiXmlHandle FirstChildElement( const char * value ) const;
-
-  /** Return a handle to the "index" child with the given name.
-      The first child is 0, the second 1, etc.
-  */
-  TiXmlHandle Child( const char* value, int index ) const;
-  /** Return a handle to the "index" child.
-      The first child is 0, the second 1, etc.
-  */
-  TiXmlHandle Child( int index ) const;
-  /** Return a handle to the "index" child element with the given name.
-      The first child element is 0, the second 1, etc. Note that only TiXmlElements
-      are indexed: other types are not counted.
-  */
-  TiXmlHandle ChildElement( const char* value, int index ) const;
-  /** Return a handle to the "index" child element.
-      The first child element is 0, the second 1, etc. Note that only TiXmlElements
-      are indexed: other types are not counted.
-  */
-  TiXmlHandle ChildElement( int index ) const;
-
-#ifdef TIXML_USE_STL
-  TiXmlHandle FirstChild( const std::string& _value ) const                               { return FirstChild( _value.c_str() ); }
-  TiXmlHandle FirstChildElement( const std::string& _value ) const                { return FirstChildElement( _value.c_str() ); }
-
-  TiXmlHandle Child( const std::string& _value, int index ) const                 { return Child( _value.c_str(), index ); }
-  TiXmlHandle ChildElement( const std::string& _value, int index ) const  { return ChildElement( _value.c_str(), index ); }
-#endif
-
-  /** Return the handle as a TiXmlNode. This may return null.
-   */
-  TiXmlNode* ToNode() const                       { return node; }
-  /** Return the handle as a TiXmlElement. This may return null.
-   */
-  TiXmlElement* ToElement() const         { return ( ( node && node->ToElement() ) ? node->ToElement() : 0 ); }
-  /**     Return the handle as a TiXmlText. This may return null.
-   */
-  TiXmlText* ToText() const                       { return ( ( node && node->ToText() ) ? node->ToText() : 0 ); }
-  /** Return the handle as a TiXmlUnknown. This may return null.
-   */
-  TiXmlUnknown* ToUnknown() const         { return ( ( node && node->ToUnknown() ) ? node->ToUnknown() : 0 ); }
-
-  /** @deprecated use ToNode.
-      Return the handle as a TiXmlNode. This may return null.
-  */
-  TiXmlNode* Node() const                 { return ToNode(); }
-  /** @deprecated use ToElement.
-      Return the handle as a TiXmlElement. This may return null.
-  */
-  TiXmlElement* Element() const   { return ToElement(); }
-  /**     @deprecated use ToText()
-          Return the handle as a TiXmlText. This may return null.
-  */
-  TiXmlText* Text() const                 { return ToText(); }
-  /** @deprecated use ToUnknown()
-      Return the handle as a TiXmlUnknown. This may return null.
-  */
-  TiXmlUnknown* Unknown() const   { return ToUnknown(); }
-
-private:
-  TiXmlNode* node;
-};
-
-
-/** Print to memory functionality. The TiXmlPrinter is useful when you need to:
-
--# Print to memory (especially in non-STL mode)
--# Control formatting (line endings, etc.)
-
-When constructed, the TiXmlPrinter is in its default "pretty printing" mode.
-Before calling Accept() you can call methods to control the printing
-of the XML document. After TiXmlNode::Accept() is called, the printed document can
-be accessed via the CStr(), Str(), and Size() methods.
-
-TiXmlPrinter uses the Visitor API.
-@verbatim
-TiXmlPrinter printer;
-printer.SetIndent( "\t" );
-
-doc.Accept( &printer );
-fprintf( stdout, "%s", printer.CStr() );
-@endverbatim
-*/
-class TiXmlPrinter : public TiXmlVisitor
-{
-public:
-  TiXmlPrinter() : depth( 0 ), simpleTextPrint( false ),
-                   buffer(), indent( "    " ), lineBreak( "\n" ) {}
-
-  virtual bool VisitEnter( const TiXmlDocument& doc );
-  virtual bool VisitExit( const TiXmlDocument& doc );
-
-  virtual bool VisitEnter( const TiXmlElement& element, const TiXmlAttribute* firstAttribute );
-  virtual bool VisitExit( const TiXmlElement& element );
-
-  virtual bool Visit( const TiXmlDeclaration& declaration );
-  virtual bool Visit( const TiXmlText& text );
-  virtual bool Visit( const TiXmlComment& comment );
-  virtual bool Visit( const TiXmlUnknown& unknown );
-
-  /** Set the indent characters for printing. By default 4 spaces
-      but tab (\t) is also useful, or null/empty string for no indentation.
-  */
-  void SetIndent( const char* _indent )                   { indent = _indent ? _indent : "" ; }
-  /// Query the indention string.
-  const char* Indent()                                                    { return indent.c_str(); }
-  /** Set the line breaking string. By default set to newline (\n).
-      Some operating systems prefer other characters, or can be
-      set to the null/empty string for no indenation.
-  */
-  void SetLineBreak( const char* _lineBreak )             { lineBreak = _lineBreak ? _lineBreak : ""; }
-  /// Query the current line breaking string.
-  const char* LineBreak()                                                 { return lineBreak.c_str(); }
-
-  /** Switch over to "stream printing" which is the most dense formatting without
-      linebreaks. Common when the XML is needed for network transmission.
-  */
-  void SetStreamPrinting()                                                { indent = "";
-    lineBreak = "";
-  }
-  /// Return the result.
-  const char* CStr()                                                              { return buffer.c_str(); }
-  /// Return the length of the result string.
-  size_t Size()                                                                   { return buffer.size(); }
-
-#ifdef TIXML_USE_STL
-  /// Return the result.
-  const std::string& Str()                                                { return buffer; }
-#endif
-
-private:
-  void DoIndent() {
-    for( int i=0; i<depth; ++i )
-      buffer += indent;
-  }
-  void DoLineBreak() {
-    buffer += lineBreak;
-  }
-
-  int depth;
-  bool simpleTextPrint;
-  TIXML_STRING buffer;
-  TIXML_STRING indent;
-  TIXML_STRING lineBreak;
-};
-
-
-#ifdef _MSC_VER
-#pragma warning( pop )
-#endif
-
-#endif
diff --git a/lib/third_party/tinyxml/tinyxmlerror.cpp b/lib/third_party/tinyxml/tinyxmlerror.cpp
deleted file mode 100644 (file)
index e1d9f3e..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
-  www.sourceforge.net/projects/tinyxml
-  Original code (2.0 and earlier )copyright (c) 2000-2006 Lee Thomason (www.grinninglizard.com)
-
-  This software is provided 'as-is', without any express or implied
-  warranty. In no event will the authors be held liable for any
-  damages arising from the use of this software.
-
-  Permission is granted to anyone to use this software for any
-  purpose, including commercial applications, and to alter it and
-  redistribute it freely, subject to the following restrictions:
-
-  1. The origin of this software must not be misrepresented; you must
-  not claim that you wrote the original software. If you use this
-  software in a product, an acknowledgment in the product documentation
-  would be appreciated but is not required.
-
-  2. Altered source versions must be plainly marked as such, and
-  must not be misrepresented as being the original software.
-
-  3. This notice may not be removed or altered from any source
-  distribution.
-*/
-
-#include "tinyxml.h"
-
-// The goal of the seperate error file is to make the first
-// step towards localization. tinyxml (currently) only supports
-// english error messages, but the could now be translated.
-//
-// It also cleans up the code a bit.
-//
-
-const char* TiXmlBase::errorString[ TIXML_ERROR_STRING_COUNT ] =
-{
-  "No error",
-  "Error",
-  "Failed to open file",
-  "Error parsing Element.",
-  "Failed to read Element name",
-  "Error reading Element value.",
-  "Error reading Attributes.",
-  "Error: empty tag.",
-  "Error reading end tag.",
-  "Error parsing Unknown.",
-  "Error parsing Comment.",
-  "Error parsing Declaration.",
-  "Error document empty.",
-  "Error null (0) or unexpected EOF found in input stream.",
-  "Error parsing CDATA.",
-  "Error when TiXmlDocument added to document, because TiXmlDocument can only be at the root.",
-};
diff --git a/lib/third_party/tinyxml/tinyxmlparser.cpp b/lib/third_party/tinyxml/tinyxmlparser.cpp
deleted file mode 100644 (file)
index 505e5c7..0000000
+++ /dev/null
@@ -1,1634 +0,0 @@
-/*
-  www.sourceforge.net/projects/tinyxml
-  Original code (2.0 and earlier )copyright (c) 2000-2002 Lee Thomason (www.grinninglizard.com)
-
-  This software is provided 'as-is', without any express or implied
-  warranty. In no event will the authors be held liable for any
-  damages arising from the use of this software.
-
-  Permission is granted to anyone to use this software for any
-  purpose, including commercial applications, and to alter it and
-  redistribute it freely, subject to the following restrictions:
-
-  1. The origin of this software must not be misrepresented; you must
-  not claim that you wrote the original software. If you use this
-  software in a product, an acknowledgment in the product documentation
-  would be appreciated but is not required.
-
-  2. Altered source versions must be plainly marked as such, and
-  must not be misrepresented as being the original software.
-
-  3. This notice may not be removed or altered from any source
-  distribution.
-*/
-
-#include <ctype.h>
-#include <stddef.h>
-
-#include "tinyxml.h"
-
-//#define DEBUG_PARSER
-#if defined( DEBUG_PARSER )
-#       if defined( DEBUG ) && defined( _MSC_VER )
-#               include <windows.h>
-#               define TIXML_LOG OutputDebugString
-#       else
-#               define TIXML_LOG printf
-#       endif
-#endif
-
-// Note tha "PutString" hardcodes the same list. This
-// is less flexible than it appears. Changing the entries
-// or order will break putstring.
-TiXmlBase::Entity TiXmlBase::entity[ NUM_ENTITY ] =
-{
-  { "&amp;",  5, '&' },
-  { "&lt;",   4, '<' },
-  { "&gt;",   4, '>' },
-  { "&quot;", 6, '\"' },
-  { "&apos;", 6, '\'' }
-};
-
-// Bunch of unicode info at:
-//              http://www.unicode.org/faq/utf_bom.html
-// Including the basic of this table, which determines the #bytes in the
-// sequence from the lead byte. 1 placed for invalid sequences --
-// although the result will be junk, pass it through as much as possible.
-// Beware of the non-characters in UTF-8:
-//                              ef bb bf (Microsoft "lead bytes")
-//                              ef bf be
-//                              ef bf bf
-
-const unsigned char TIXML_UTF_LEAD_0 = 0xefU;
-const unsigned char TIXML_UTF_LEAD_1 = 0xbbU;
-const unsigned char TIXML_UTF_LEAD_2 = 0xbfU;
-
-const int TiXmlBase::utf8ByteTable[256] =
-{
-  //      0       1       2       3       4       5       6       7       8       9       a       b       c       d       e       f
-  1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      // 0x00
-  1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      // 0x10
-  1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      // 0x20
-  1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      // 0x30
-  1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      // 0x40
-  1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      // 0x50
-  1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      // 0x60
-  1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      // 0x70 End of ASCII range
-  1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      // 0x80 0x80 to 0xc1 invalid
-  1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      // 0x90
-  1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      // 0xa0
-  1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      // 0xb0
-  1,      1,      2,      2,      2,      2,      2,      2,      2,      2,      2,      2,      2,      2,      2,      2,      // 0xc0 0xc2 to 0xdf 2 byte
-  2,      2,      2,      2,      2,      2,      2,      2,      2,      2,      2,      2,      2,      2,      2,      2,      // 0xd0
-  3,      3,      3,      3,      3,      3,      3,      3,      3,      3,      3,      3,      3,      3,      3,      3,      // 0xe0 0xe0 to 0xef 3 byte
-  4,      4,      4,      4,      4,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1,      1       // 0xf0 0xf0 to 0xf4 4 byte, 0xf5 and higher invalid
-};
-
-
-void TiXmlBase::ConvertUTF32ToUTF8( unsigned long input, char* output, int* length )
-{
-  const unsigned long BYTE_MASK = 0xBF;
-  const unsigned long BYTE_MARK = 0x80;
-  const unsigned long FIRST_BYTE_MARK[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };
-
-  if (input < 0x80)
-    *length = 1;
-  else if ( input < 0x800 )
-    *length = 2;
-  else if ( input < 0x10000 )
-    *length = 3;
-  else if ( input < 0x200000 )
-    *length = 4;
-  else
-  { *length = 0; return; }        // This code won't covert this correctly anyway.
-
-  output += *length;
-
-  // Scary scary fall throughs.
-  switch (*length)
-  {
-  case 4:
-    --output;
-    *output = (char)((input | BYTE_MARK) & BYTE_MASK);
-    input >>= 6;
-  case 3:
-    --output;
-    *output = (char)((input | BYTE_MARK) & BYTE_MASK);
-    input >>= 6;
-  case 2:
-    --output;
-    *output = (char)((input | BYTE_MARK) & BYTE_MASK);
-    input >>= 6;
-  case 1:
-    --output;
-    *output = (char)(input | FIRST_BYTE_MARK[*length]);
-  }
-}
-
-
-/*static*/ int TiXmlBase::IsAlpha( unsigned char anyByte, TiXmlEncoding /*encoding*/ )
-{
-  // This will only work for low-ascii, everything else is assumed to be a valid
-  // letter. I'm not sure this is the best approach, but it is quite tricky trying
-  // to figure out alhabetical vs. not across encoding. So take a very
-  // conservative approach.
-
-//      if ( encoding == TIXML_ENCODING_UTF8 )
-//      {
-  if ( anyByte < 127 )
-    return isalpha( anyByte );
-  else
-    return 1;       // What else to do? The unicode set is huge...get the english ones right.
-//      }
-//      else
-//      {
-//              return isalpha( anyByte );
-//      }
-}
-
-
-/*static*/ int TiXmlBase::IsAlphaNum( unsigned char anyByte, TiXmlEncoding /*encoding*/ )
-{
-  // This will only work for low-ascii, everything else is assumed to be a valid
-  // letter. I'm not sure this is the best approach, but it is quite tricky trying
-  // to figure out alhabetical vs. not across encoding. So take a very
-  // conservative approach.
-
-//      if ( encoding == TIXML_ENCODING_UTF8 )
-//      {
-  if ( anyByte < 127 )
-    return isalnum( anyByte );
-  else
-    return 1;       // What else to do? The unicode set is huge...get the english ones right.
-//      }
-//      else
-//      {
-//              return isalnum( anyByte );
-//      }
-}
-
-
-class TiXmlParsingData
-{
-  friend class TiXmlDocument;
-public:
-  void Stamp( const char* now, TiXmlEncoding encoding );
-
-  const TiXmlCursor& Cursor()     { return cursor; }
-
-private:
-  // Only used by the document!
-  TiXmlParsingData( const char* start, int _tabsize, int row, int col )
-    {
-      assert( start );
-      stamp = start;
-      tabsize = _tabsize;
-      cursor.row = row;
-      cursor.col = col;
-    }
-
-  TiXmlCursor             cursor;
-  const char*             stamp;
-  int                             tabsize;
-};
-
-
-void TiXmlParsingData::Stamp( const char* now, TiXmlEncoding encoding )
-{
-  assert( now );
-
-  // Do nothing if the tabsize is 0.
-  if ( tabsize < 1 )
-  {
-    return;
-  }
-
-  // Get the current row, column.
-  int row = cursor.row;
-  int col = cursor.col;
-  const char* p = stamp;
-  assert( p );
-
-  while ( p < now )
-  {
-    // Treat p as unsigned, so we have a happy compiler.
-    const unsigned char* pU = (const unsigned char*)p;
-
-    // Code contributed by Fletcher Dunn: (modified by lee)
-    switch (*pU) {
-    case 0:
-      // We *should* never get here, but in case we do, don't
-      // advance past the terminating null character, ever
-      return;
-
-    case '\r':
-      // bump down to the next line
-      ++row;
-      col = 0;
-      // Eat the character
-      ++p;
-
-      // Check for \r\n sequence, and treat this as a single character
-      if (*p == '\n') {
-        ++p;
-      }
-      break;
-
-    case '\n':
-      // bump down to the next line
-      ++row;
-      col = 0;
-
-      // Eat the character
-      ++p;
-
-      // Check for \n\r sequence, and treat this as a single
-      // character.  (Yes, this bizarre thing does occur still
-      // on some arcane platforms...)
-      if (*p == '\r') {
-        ++p;
-      }
-      break;
-
-    case '\t':
-      // Eat the character
-      ++p;
-
-      // Skip to next tab stop
-      col = (col / tabsize + 1) * tabsize;
-      break;
-
-    case TIXML_UTF_LEAD_0:
-      if ( encoding == TIXML_ENCODING_UTF8 )
-      {
-        if ( *(p+1) && *(p+2) )
-        {
-          // In these cases, don't advance the column. These are
-          // 0-width spaces.
-          if ( *(pU+1)==TIXML_UTF_LEAD_1 && *(pU+2)==TIXML_UTF_LEAD_2 )
-            p += 3;
-          else if ( *(pU+1)==0xbfU && *(pU+2)==0xbeU )
-            p += 3;
-          else if ( *(pU+1)==0xbfU && *(pU+2)==0xbfU )
-            p += 3;
-          else
-          { p +=3; ++col; }       // A normal character.
-        }
-      }
-      else
-      {
-        ++p;
-        ++col;
-      }
-      break;
-
-    default:
-      if ( encoding == TIXML_ENCODING_UTF8 )
-      {
-        // Eat the 1 to 4 byte utf8 character.
-        int step = TiXmlBase::utf8ByteTable[*((const unsigned char*)p)];
-        if ( step == 0 )
-          step = 1;               // Error case from bad encoding, but handle gracefully.
-        p += step;
-
-        // Just advance one column, of course.
-        ++col;
-      }
-      else
-      {
-        ++p;
-        ++col;
-      }
-      break;
-    }
-  }
-  cursor.row = row;
-  cursor.col = col;
-  assert( cursor.row >= -1 );
-  assert( cursor.col >= -1 );
-  stamp = p;
-  assert( stamp );
-}
-
-
-const char* TiXmlBase::SkipWhiteSpace( const char* p, TiXmlEncoding encoding )
-{
-  if ( !p || !*p )
-  {
-    return 0;
-  }
-  if ( encoding == TIXML_ENCODING_UTF8 )
-  {
-    while ( *p )
-    {
-      const unsigned char* pU = (const unsigned char*)p;
-
-      // Skip the stupid Microsoft UTF-8 Byte order marks
-      if (    *(pU+0)==TIXML_UTF_LEAD_0
-              && *(pU+1)==TIXML_UTF_LEAD_1
-              && *(pU+2)==TIXML_UTF_LEAD_2 )
-      {
-        p += 3;
-        continue;
-      }
-      else if(*(pU+0)==TIXML_UTF_LEAD_0
-              && *(pU+1)==0xbfU
-              && *(pU+2)==0xbeU )
-      {
-        p += 3;
-        continue;
-      }
-      else if(*(pU+0)==TIXML_UTF_LEAD_0
-              && *(pU+1)==0xbfU
-              && *(pU+2)==0xbfU )
-      {
-        p += 3;
-        continue;
-      }
-
-      if ( IsWhiteSpace( *p ) )               // Still using old rules for white space.
-        ++p;
-      else
-        break;
-    }
-  }
-  else
-  {
-    while ( *p && IsWhiteSpace( *p ) )
-      ++p;
-  }
-
-  return p;
-}
-
-#ifdef TIXML_USE_STL
-/*static*/ bool TiXmlBase::StreamWhiteSpace( std::istream * in, TIXML_STRING * tag )
-{
-  for( ;; )
-  {
-    if ( !in->good() ) return false;
-
-    int c = in->peek();
-    // At this scope, we can't get to a document. So fail silently.
-    if ( !IsWhiteSpace( c ) || c <= 0 )
-      return true;
-
-    *tag += (char) in->get();
-  }
-}
-
-/*static*/ bool TiXmlBase::StreamTo( std::istream * in, int character, TIXML_STRING * tag )
-{
-  //assert( character > 0 && character < 128 );   // else it won't work in utf-8
-  while ( in->good() )
-  {
-    int c = in->peek();
-    if ( c == character )
-      return true;
-    if ( c <= 0 )           // Silent failure: can't get document at this scope
-      return false;
-
-    in->get();
-    *tag += (char) c;
-  }
-  return false;
-}
-#endif
-
-// One of TinyXML's more performance demanding functions. Try to keep the memory overhead down. The
-// "assign" optimization removes over 10% of the execution time.
-//
-const char* TiXmlBase::ReadName( const char* p, TIXML_STRING * name, TiXmlEncoding encoding )
-{
-  // Oddly, not supported on some comilers,
-  //name->clear();
-  // So use this:
-  *name = "";
-  assert( p );
-
-  // Names start with letters or underscores.
-  // Of course, in unicode, tinyxml has no idea what a letter *is*. The
-  // algorithm is generous.
-  //
-  // After that, they can be letters, underscores, numbers,
-  // hyphens, or colons. (Colons are valid ony for namespaces,
-  // but tinyxml can't tell namespaces from names.)
-  if (    p && *p
-          && ( IsAlpha( (unsigned char) *p, encoding ) || *p == '_' ) )
-  {
-    const char* start = p;
-    while(          p && *p
-                    &&      (               IsAlphaNum( (unsigned char ) *p, encoding )
-                                            || *p == '_'
-                                            || *p == '-'
-                                            || *p == '.'
-                                            || *p == ':' ) )
-    {
-      //(*name) += *p; // expensive
-      ++p;
-    }
-    if ( p-start > 0 ) {
-      name->assign( start, p-start );
-    }
-    return p;
-  }
-  return 0;
-}
-
-const char* TiXmlBase::GetEntity( const char* p, char* value, int* length, TiXmlEncoding encoding )
-{
-  // Presume an entity, and pull it out.
-  TIXML_STRING ent;
-  int i;
-  *length = 0;
-
-  if ( *(p+1) && *(p+1) == '#' && *(p+2) )
-  {
-    unsigned long ucs = 0;
-    ptrdiff_t delta = 0;
-    unsigned mult = 1;
-
-    if ( *(p+2) == 'x' )
-    {
-      // Hexadecimal.
-      if ( !*(p+3) ) return 0;
-
-      const char* q = p+3;
-      q = strchr( q, ';' );
-
-      if ( !q || !*q ) return 0;
-
-      delta = q-p;
-      --q;
-
-      while ( *q != 'x' )
-      {
-        if ( *q >= '0' && *q <= '9' )
-          ucs += mult * (*q - '0');
-        else if ( *q >= 'a' && *q <= 'f' )
-          ucs += mult * (*q - 'a' + 10);
-        else if ( *q >= 'A' && *q <= 'F' )
-          ucs += mult * (*q - 'A' + 10 );
-        else
-          return 0;
-        mult *= 16;
-        --q;
-      }
-    }
-    else
-    {
-      // Decimal.
-      if ( !*(p+2) ) return 0;
-
-      const char* q = p+2;
-      q = strchr( q, ';' );
-
-      if ( !q || !*q ) return 0;
-
-      delta = q-p;
-      --q;
-
-      while ( *q != '#' )
-      {
-        if ( *q >= '0' && *q <= '9' )
-          ucs += mult * (*q - '0');
-        else
-          return 0;
-        mult *= 10;
-        --q;
-      }
-    }
-    if ( encoding == TIXML_ENCODING_UTF8 )
-    {
-      // convert the UCS to UTF-8
-      ConvertUTF32ToUTF8( ucs, value, length );
-    }
-    else
-    {
-      *value = (char)ucs;
-      *length = 1;
-    }
-    return p + delta + 1;
-  }
-
-  // Now try to match it.
-  for( i=0; i<NUM_ENTITY; ++i )
-  {
-    if ( strncmp( entity[i].str, p, entity[i].strLength ) == 0 )
-    {
-      assert( strlen( entity[i].str ) == entity[i].strLength );
-      *value = entity[i].chr;
-      *length = 1;
-      return ( p + entity[i].strLength );
-    }
-  }
-
-  // So it wasn't an entity, its unrecognized, or something like that.
-  *value = *p;    // Don't put back the last one, since we return it!
-  //*length = 1;  // Leave unrecognized entities - this doesn't really work.
-  // Just writes strange XML.
-  return p+1;
-}
-
-
-bool TiXmlBase::StringEqual( const char* p,
-                             const char* tag,
-                             bool ignoreCase,
-                             TiXmlEncoding encoding )
-{
-  assert( p );
-  assert( tag );
-  if ( !p || !*p )
-  {
-    assert( 0 );
-    return false;
-  }
-
-  const char* q = p;
-
-  if ( ignoreCase )
-  {
-    while ( *q && *tag && ToLower( *q, encoding ) == ToLower( *tag, encoding ) )
-    {
-      ++q;
-      ++tag;
-    }
-
-    if ( *tag == 0 )
-      return true;
-  }
-  else
-  {
-    while ( *q && *tag && *q == *tag )
-    {
-      ++q;
-      ++tag;
-    }
-
-    if ( *tag == 0 )                // Have we found the end of the tag, and everything equal?
-      return true;
-  }
-  return false;
-}
-
-const char* TiXmlBase::ReadText(        const char* p,
-                                        TIXML_STRING * text,
-                                        bool trimWhiteSpace,
-                                        const char* endTag,
-                                        bool caseInsensitive,
-                                        TiXmlEncoding encoding )
-{
-  *text = "";
-  if (    !trimWhiteSpace                 // certain tags always keep whitespace
-          || !condenseWhiteSpace )       // if true, whitespace is always kept
-  {
-    // Keep all the white space.
-    while (    p && *p
-               && !StringEqual( p, endTag, caseInsensitive, encoding )
-      )
-    {
-      int len;
-      char cArr[4] = { 0, 0, 0, 0 };
-      p = GetChar( p, cArr, &len, encoding );
-      text->append( cArr, len );
-    }
-  }
-  else
-  {
-    bool whitespace = false;
-
-    // Remove leading white space:
-    p = SkipWhiteSpace( p, encoding );
-    while (    p && *p
-               && !StringEqual( p, endTag, caseInsensitive, encoding ) )
-    {
-      if ( *p == '\r' || *p == '\n' )
-      {
-        whitespace = true;
-        ++p;
-      }
-      else if ( IsWhiteSpace( *p ) )
-      {
-        whitespace = true;
-        ++p;
-      }
-      else
-      {
-        // If we've found whitespace, add it before the
-        // new character. Any whitespace just becomes a space.
-        if ( whitespace )
-        {
-          (*text) += ' ';
-          whitespace = false;
-        }
-        int len;
-        char cArr[4] = { 0, 0, 0, 0 };
-        p = GetChar( p, cArr, &len, encoding );
-        if ( len == 1 )
-          (*text) += cArr[0];     // more efficient
-        else
-          text->append( cArr, len );
-      }
-    }
-  }
-  if ( p && *p )
-    p += strlen( endTag );
-  return p;
-}
-
-#ifdef TIXML_USE_STL
-
-void TiXmlDocument::StreamIn( std::istream * in, TIXML_STRING * tag )
-{
-  // The basic issue with a document is that we don't know what we're
-  // streaming. Read something presumed to be a tag (and hope), then
-  // identify it, and call the appropriate stream method on the tag.
-  //
-  // This "pre-streaming" will never read the closing ">" so the
-  // sub-tag can orient itself.
-
-  if ( !StreamTo( in, '<', tag ) )
-  {
-    SetError( TIXML_ERROR_PARSING_EMPTY, 0, 0, TIXML_ENCODING_UNKNOWN );
-    return;
-  }
-
-  while ( in->good() )
-  {
-    int tagIndex = (int) tag->length();
-    while ( in->good() && in->peek() != '>' )
-    {
-      int c = in->get();
-      if ( c <= 0 )
-      {
-        SetError( TIXML_ERROR_EMBEDDED_NULL, 0, 0, TIXML_ENCODING_UNKNOWN );
-        break;
-      }
-      (*tag) += (char) c;
-    }
-
-    if ( in->good() )
-    {
-      // We now have something we presume to be a node of
-      // some sort. Identify it, and call the node to
-      // continue streaming.
-      TiXmlNode* node = Identify( tag->c_str() + tagIndex, TIXML_DEFAULT_ENCODING );
-
-      if ( node )
-      {
-        node->StreamIn( in, tag );
-        bool isElement = node->ToElement() != 0;
-        delete node;
-        node = 0;
-
-        // If this is the root element, we're done. Parsing will be
-        // done by the >> operator.
-        if ( isElement )
-        {
-          return;
-        }
-      }
-      else
-      {
-        SetError( TIXML_ERROR, 0, 0, TIXML_ENCODING_UNKNOWN );
-        return;
-      }
-    }
-  }
-  // We should have returned sooner.
-  SetError( TIXML_ERROR, 0, 0, TIXML_ENCODING_UNKNOWN );
-}
-
-#endif
-
-const char* TiXmlDocument::Parse( const char* p, TiXmlParsingData* prevData, TiXmlEncoding encoding )
-{
-  ClearError();
-
-  // Parse away, at the document level. Since a document
-  // contains nothing but other tags, most of what happens
-  // here is skipping white space.
-  if ( !p || !*p )
-  {
-    SetError( TIXML_ERROR_DOCUMENT_EMPTY, 0, 0, TIXML_ENCODING_UNKNOWN );
-    return 0;
-  }
-
-  // Note that, for a document, this needs to come
-  // before the while space skip, so that parsing
-  // starts from the pointer we are given.
-  location.Clear();
-  if ( prevData )
-  {
-    location.row = prevData->cursor.row;
-    location.col = prevData->cursor.col;
-  }
-  else
-  {
-    location.row = 0;
-    location.col = 0;
-  }
-  TiXmlParsingData data( p, TabSize(), location.row, location.col );
-  location = data.Cursor();
-
-  if ( encoding == TIXML_ENCODING_UNKNOWN )
-  {
-    // Check for the Microsoft UTF-8 lead bytes.
-    const unsigned char* pU = (const unsigned char*)p;
-    if (    *(pU+0) && *(pU+0) == TIXML_UTF_LEAD_0
-            && *(pU+1) && *(pU+1) == TIXML_UTF_LEAD_1
-            && *(pU+2) && *(pU+2) == TIXML_UTF_LEAD_2 )
-    {
-      encoding = TIXML_ENCODING_UTF8;
-      useMicrosoftBOM = true;
-    }
-  }
-
-  p = SkipWhiteSpace( p, encoding );
-  if ( !p )
-  {
-    SetError( TIXML_ERROR_DOCUMENT_EMPTY, 0, 0, TIXML_ENCODING_UNKNOWN );
-    return 0;
-  }
-
-  while ( p && *p )
-  {
-    TiXmlNode* node = Identify( p, encoding );
-    if ( node )
-    {
-      p = node->Parse( p, &data, encoding );
-      LinkEndChild( node );
-    }
-    else
-    {
-      break;
-    }
-
-    // Did we get encoding info?
-    if (    encoding == TIXML_ENCODING_UNKNOWN
-            && node->ToDeclaration() )
-    {
-      TiXmlDeclaration* dec = node->ToDeclaration();
-      const char* enc = dec->Encoding();
-      assert( enc );
-
-      if ( *enc == 0 )
-        encoding = TIXML_ENCODING_UTF8;
-      else if ( StringEqual( enc, "UTF-8", true, TIXML_ENCODING_UNKNOWN ) )
-        encoding = TIXML_ENCODING_UTF8;
-      else if ( StringEqual( enc, "UTF8", true, TIXML_ENCODING_UNKNOWN ) )
-        encoding = TIXML_ENCODING_UTF8; // incorrect, but be nice
-      else
-        encoding = TIXML_ENCODING_LEGACY;
-    }
-
-    p = SkipWhiteSpace( p, encoding );
-  }
-
-  // Was this empty?
-  if ( !firstChild ) {
-    SetError( TIXML_ERROR_DOCUMENT_EMPTY, 0, 0, encoding );
-    return 0;
-  }
-
-  // All is well.
-  return p;
-}
-
-void TiXmlDocument::SetError( int err, const char* pError, TiXmlParsingData* data, TiXmlEncoding encoding )
-{
-  // The first error in a chain is more accurate - don't set again!
-  if ( error )
-    return;
-
-  assert( err > 0 && err < TIXML_ERROR_STRING_COUNT );
-  error   = true;
-  errorId = err;
-  errorDesc = errorString[ errorId ];
-
-  errorLocation.Clear();
-  if ( pError && data )
-  {
-    data->Stamp( pError, encoding );
-    errorLocation = data->Cursor();
-  }
-}
-
-
-TiXmlNode* TiXmlNode::Identify( const char* p, TiXmlEncoding encoding )
-{
-  TiXmlNode* returnNode = 0;
-
-  p = SkipWhiteSpace( p, encoding );
-  if( !p || !*p || *p != '<' )
-  {
-    return 0;
-  }
-
-  p = SkipWhiteSpace( p, encoding );
-
-  if ( !p || !*p )
-  {
-    return 0;
-  }
-
-  // What is this thing?
-  // - Elements start with a letter or underscore, but xml is reserved.
-  // - Comments: <!--
-  // - Decleration: <?xml
-  // - Everthing else is unknown to tinyxml.
-  //
-
-  const char* xmlHeader = { "<?xml" };
-  const char* commentHeader = { "<!--" };
-  const char* dtdHeader = { "<!" };
-  const char* cdataHeader = { "<![CDATA[" };
-
-  if ( StringEqual( p, xmlHeader, true, encoding ) )
-  {
-#ifdef DEBUG_PARSER
-    TIXML_LOG( "XML parsing Declaration\n" );
-#endif
-    returnNode = new TiXmlDeclaration();
-  }
-  else if ( StringEqual( p, commentHeader, false, encoding ) )
-  {
-#ifdef DEBUG_PARSER
-    TIXML_LOG( "XML parsing Comment\n" );
-#endif
-    returnNode = new TiXmlComment();
-  }
-  else if ( StringEqual( p, cdataHeader, false, encoding ) )
-  {
-#ifdef DEBUG_PARSER
-    TIXML_LOG( "XML parsing CDATA\n" );
-#endif
-    TiXmlText* text = new TiXmlText( "" );
-    text->SetCDATA( true );
-    returnNode = text;
-  }
-  else if ( StringEqual( p, dtdHeader, false, encoding ) )
-  {
-#ifdef DEBUG_PARSER
-    TIXML_LOG( "XML parsing Unknown(1)\n" );
-#endif
-    returnNode = new TiXmlUnknown();
-  }
-  else if (    IsAlpha( *(p+1), encoding )
-               || *(p+1) == '_' )
-  {
-#ifdef DEBUG_PARSER
-    TIXML_LOG( "XML parsing Element\n" );
-#endif
-    returnNode = new TiXmlElement( "" );
-  }
-  else
-  {
-#ifdef DEBUG_PARSER
-    TIXML_LOG( "XML parsing Unknown(2)\n" );
-#endif
-    returnNode = new TiXmlUnknown();
-  }
-
-  if ( returnNode )
-  {
-    // Set the parent, so it can report errors
-    returnNode->parent = this;
-  }
-  return returnNode;
-}
-
-#ifdef TIXML_USE_STL
-
-void TiXmlElement::StreamIn (std::istream * in, TIXML_STRING * tag)
-{
-  // We're called with some amount of pre-parsing. That is, some of "this"
-  // element is in "tag". Go ahead and stream to the closing ">"
-  while( in->good() )
-  {
-    int c = in->get();
-    if ( c <= 0 )
-    {
-      TiXmlDocument* document = GetDocument();
-      if ( document )
-        document->SetError( TIXML_ERROR_EMBEDDED_NULL, 0, 0, TIXML_ENCODING_UNKNOWN );
-      return;
-    }
-    (*tag) += (char) c ;
-
-    if ( c == '>' )
-      break;
-  }
-
-  if ( tag->length() < 3 ) return;
-
-  // Okay...if we are a "/>" tag, then we're done. We've read a complete tag.
-  // If not, identify and stream.
-
-  if (    tag->at( tag->length() - 1 ) == '>'
-          && tag->at( tag->length() - 2 ) == '/' )
-  {
-    // All good!
-    return;
-  }
-  else if ( tag->at( tag->length() - 1 ) == '>' )
-  {
-    // There is more. Could be:
-    //              text
-    //              cdata text (which looks like another node)
-    //              closing tag
-    //              another node.
-    for ( ;; )
-    {
-      StreamWhiteSpace( in, tag );
-
-      // Do we have text?
-      if ( in->good() && in->peek() != '<' )
-      {
-        // Yep, text.
-        TiXmlText text( "" );
-        text.StreamIn( in, tag );
-
-        // What follows text is a closing tag or another node.
-        // Go around again and figure it out.
-        continue;
-      }
-
-      // We now have either a closing tag...or another node.
-      // We should be at a "<", regardless.
-      if ( !in->good() ) return;
-      assert( in->peek() == '<' );
-      int tagIndex = (int) tag->length();
-
-      bool closingTag = false;
-      bool firstCharFound = false;
-
-      for( ;; )
-      {
-        if ( !in->good() )
-          return;
-
-        int c = in->peek();
-        if ( c <= 0 )
-        {
-          TiXmlDocument* document = GetDocument();
-          if ( document )
-            document->SetError( TIXML_ERROR_EMBEDDED_NULL, 0, 0, TIXML_ENCODING_UNKNOWN );
-          return;
-        }
-
-        if ( c == '>' )
-          break;
-
-        *tag += (char) c;
-        in->get();
-
-        // Early out if we find the CDATA id.
-        if ( c == '[' && tag->size() >= 9 )
-        {
-          size_t len = tag->size();
-          const char* start = tag->c_str() + len - 9;
-          if ( strcmp( start, "<![CDATA[" ) == 0 ) {
-            assert( !closingTag );
-            break;
-          }
-        }
-
-        if ( !firstCharFound && c != '<' && !IsWhiteSpace( c ) )
-        {
-          firstCharFound = true;
-          if ( c == '/' )
-            closingTag = true;
-        }
-      }
-      // If it was a closing tag, then read in the closing '>' to clean up the input stream.
-      // If it was not, the streaming will be done by the tag.
-      if ( closingTag )
-      {
-        if ( !in->good() )
-          return;
-
-        int c = in->get();
-        if ( c <= 0 )
-        {
-          TiXmlDocument* document = GetDocument();
-          if ( document )
-            document->SetError( TIXML_ERROR_EMBEDDED_NULL, 0, 0, TIXML_ENCODING_UNKNOWN );
-          return;
-        }
-        assert( c == '>' );
-        *tag += (char) c;
-
-        // We are done, once we've found our closing tag.
-        return;
-      }
-      else
-      {
-        // If not a closing tag, id it, and stream.
-        const char* tagloc = tag->c_str() + tagIndex;
-        TiXmlNode* node = Identify( tagloc, TIXML_DEFAULT_ENCODING );
-        if ( !node )
-          return;
-        node->StreamIn( in, tag );
-        delete node;
-        node = 0;
-
-        // No return: go around from the beginning: text, closing tag, or node.
-      }
-    }
-  }
-}
-#endif
-
-const char* TiXmlElement::Parse( const char* p, TiXmlParsingData* data, TiXmlEncoding encoding )
-{
-  p = SkipWhiteSpace( p, encoding );
-  TiXmlDocument* document = GetDocument();
-
-  if ( !p || !*p )
-  {
-    if ( document ) document->SetError( TIXML_ERROR_PARSING_ELEMENT, 0, 0, encoding );
-    return 0;
-  }
-
-  if ( data )
-  {
-    data->Stamp( p, encoding );
-    location = data->Cursor();
-  }
-
-  if ( *p != '<' )
-  {
-    if ( document ) document->SetError( TIXML_ERROR_PARSING_ELEMENT, p, data, encoding );
-    return 0;
-  }
-
-  p = SkipWhiteSpace( p+1, encoding );
-
-  // Read the name.
-  const char* pErr = p;
-
-  p = ReadName( p, &value, encoding );
-  if ( !p || !*p )
-  {
-    if ( document ) document->SetError( TIXML_ERROR_FAILED_TO_READ_ELEMENT_NAME, pErr, data, encoding );
-    return 0;
-  }
-
-  TIXML_STRING endTag ("</");
-  endTag += value;
-
-  // Check for and read attributes. Also look for an empty
-  // tag or an end tag.
-  while ( p && *p )
-  {
-    pErr = p;
-    p = SkipWhiteSpace( p, encoding );
-    if ( !p || !*p )
-    {
-      if ( document ) document->SetError( TIXML_ERROR_READING_ATTRIBUTES, pErr, data, encoding );
-      return 0;
-    }
-    if ( *p == '/' )
-    {
-      ++p;
-      // Empty tag.
-      if ( *p  != '>' )
-      {
-        if ( document ) document->SetError( TIXML_ERROR_PARSING_EMPTY, p, data, encoding );
-        return 0;
-      }
-      return (p+1);
-    }
-    else if ( *p == '>' )
-    {
-      // Done with attributes (if there were any.)
-      // Read the value -- which can include other
-      // elements -- read the end tag, and return.
-      ++p;
-      p = ReadValue( p, data, encoding );             // Note this is an Element method, and will set the error if one happens.
-      if ( !p || !*p ) {
-        // We were looking for the end tag, but found nothing.
-        // Fix for [ 1663758 ] Failure to report error on bad XML
-        if ( document ) document->SetError( TIXML_ERROR_READING_END_TAG, p, data, encoding );
-        return 0;
-      }
-
-      // We should find the end tag now
-      // note that:
-      // </foo > and
-      // </foo>
-      // are both valid end tags.
-      if ( StringEqual( p, endTag.c_str(), false, encoding ) )
-      {
-        p += endTag.length();
-        p = SkipWhiteSpace( p, encoding );
-        if ( p && *p && *p == '>' ) {
-          ++p;
-          return p;
-        }
-        if ( document ) document->SetError( TIXML_ERROR_READING_END_TAG, p, data, encoding );
-        return 0;
-      }
-      else
-      {
-        if ( document ) document->SetError( TIXML_ERROR_READING_END_TAG, p, data, encoding );
-        return 0;
-      }
-    }
-    else
-    {
-      // Try to read an attribute:
-      TiXmlAttribute* attrib = new TiXmlAttribute();
-      if ( !attrib )
-      {
-        return 0;
-      }
-
-      attrib->SetDocument( document );
-      pErr = p;
-      p = attrib->Parse( p, data, encoding );
-
-      if ( !p || !*p )
-      {
-        if ( document ) document->SetError( TIXML_ERROR_PARSING_ELEMENT, pErr, data, encoding );
-        delete attrib;
-        return 0;
-      }
-
-      // Handle the strange case of double attributes:
-#ifdef TIXML_USE_STL
-      TiXmlAttribute* node = attributeSet.Find( attrib->NameTStr() );
-#else
-      TiXmlAttribute* node = attributeSet.Find( attrib->Name() );
-#endif
-      if ( node )
-      {
-        if ( document ) document->SetError( TIXML_ERROR_PARSING_ELEMENT, pErr, data, encoding );
-        delete attrib;
-        return 0;
-      }
-
-      attributeSet.Add( attrib );
-    }
-  }
-  return p;
-}
-
-
-const char* TiXmlElement::ReadValue( const char* p, TiXmlParsingData* data, TiXmlEncoding encoding )
-{
-  TiXmlDocument* document = GetDocument();
-
-  // Read in text and elements in any order.
-  const char* pWithWhiteSpace = p;
-  p = SkipWhiteSpace( p, encoding );
-
-  while ( p && *p )
-  {
-    if ( *p != '<' )
-    {
-      // Take what we have, make a text element.
-      TiXmlText* textNode = new TiXmlText( "" );
-
-      if ( !textNode )
-      {
-        return 0;
-      }
-
-      if ( TiXmlBase::IsWhiteSpaceCondensed() )
-      {
-        p = textNode->Parse( p, data, encoding );
-      }
-      else
-      {
-        // Special case: we want to keep the white space
-        // so that leading spaces aren't removed.
-        p = textNode->Parse( pWithWhiteSpace, data, encoding );
-      }
-
-      if ( !textNode->Blank() )
-        LinkEndChild( textNode );
-      else
-        delete textNode;
-    }
-    else
-    {
-      // We hit a '<'
-      // Have we hit a new element or an end tag? This could also be
-      // a TiXmlText in the "CDATA" style.
-      if ( StringEqual( p, "</", false, encoding ) )
-      {
-        return p;
-      }
-      else
-      {
-        TiXmlNode* node = Identify( p, encoding );
-        if ( node )
-        {
-          p = node->Parse( p, data, encoding );
-          LinkEndChild( node );
-        }
-        else
-        {
-          return 0;
-        }
-      }
-    }
-    pWithWhiteSpace = p;
-    p = SkipWhiteSpace( p, encoding );
-  }
-
-  if ( !p )
-  {
-    if ( document ) document->SetError( TIXML_ERROR_READING_ELEMENT_VALUE, 0, 0, encoding );
-  }
-  return p;
-}
-
-
-#ifdef TIXML_USE_STL
-void TiXmlUnknown::StreamIn( std::istream * in, TIXML_STRING * tag )
-{
-  while ( in->good() )
-  {
-    int c = in->get();
-    if ( c <= 0 )
-    {
-      TiXmlDocument* document = GetDocument();
-      if ( document )
-        document->SetError( TIXML_ERROR_EMBEDDED_NULL, 0, 0, TIXML_ENCODING_UNKNOWN );
-      return;
-    }
-    (*tag) += (char) c;
-
-    if ( c == '>' )
-    {
-      // All is well.
-      return;
-    }
-  }
-}
-#endif
-
-
-const char* TiXmlUnknown::Parse( const char* p, TiXmlParsingData* data, TiXmlEncoding encoding )
-{
-  TiXmlDocument* document = GetDocument();
-  p = SkipWhiteSpace( p, encoding );
-
-  if ( data )
-  {
-    data->Stamp( p, encoding );
-    location = data->Cursor();
-  }
-  if ( !p || !*p || *p != '<' )
-  {
-    if ( document ) document->SetError( TIXML_ERROR_PARSING_UNKNOWN, p, data, encoding );
-    return 0;
-  }
-  ++p;
-  value = "";
-
-  while ( p && *p && *p != '>' )
-  {
-    value += *p;
-    ++p;
-  }
-
-  if ( !p )
-  {
-    if ( document ) document->SetError( TIXML_ERROR_PARSING_UNKNOWN, 0, 0, encoding );
-  }
-  if ( *p == '>' )
-    return p+1;
-  return p;
-}
-
-#ifdef TIXML_USE_STL
-void TiXmlComment::StreamIn( std::istream * in, TIXML_STRING * tag )
-{
-  while ( in->good() )
-  {
-    int c = in->get();
-    if ( c <= 0 )
-    {
-      TiXmlDocument* document = GetDocument();
-      if ( document )
-        document->SetError( TIXML_ERROR_EMBEDDED_NULL, 0, 0, TIXML_ENCODING_UNKNOWN );
-      return;
-    }
-
-    (*tag) += (char) c;
-
-    if ( c == '>'
-         && tag->at( tag->length() - 2 ) == '-'
-         && tag->at( tag->length() - 3 ) == '-' )
-    {
-      // All is well.
-      return;
-    }
-  }
-}
-#endif
-
-
-const char* TiXmlComment::Parse( const char* p, TiXmlParsingData* data, TiXmlEncoding encoding )
-{
-  TiXmlDocument* document = GetDocument();
-  value = "";
-
-  p = SkipWhiteSpace( p, encoding );
-
-  if ( data )
-  {
-    data->Stamp( p, encoding );
-    location = data->Cursor();
-  }
-  const char* startTag = "<!--";
-  const char* endTag   = "-->";
-
-  if ( !StringEqual( p, startTag, false, encoding ) )
-  {
-    document->SetError( TIXML_ERROR_PARSING_COMMENT, p, data, encoding );
-    return 0;
-  }
-  p += strlen( startTag );
-
-  // [ 1475201 ] TinyXML parses entities in comments
-  // Oops - ReadText doesn't work, because we don't want to parse the entities.
-  // p = ReadText( p, &value, false, endTag, false, encoding );
-  //
-  // from the XML spec:
-  /*
-    [Definition: Comments may appear anywhere in a document outside other markup; in addition,
-    they may appear within the document type declaration at places allowed by the grammar.
-    They are not part of the document's character data; an XML processor MAY, but need not,
-    make it possible for an application to retrieve the text of comments. For compatibility,
-    the string "--" (double-hyphen) MUST NOT occur within comments.] Parameter entity
-    references MUST NOT be recognized within comments.
-
-    An example of a comment:
-
-    <!-- declarations for <head> & <body> -->
-  */
-
-  value = "";
-  // Keep all the white space.
-  while ( p && *p && !StringEqual( p, endTag, false, encoding ) )
-  {
-    value.append( p, 1 );
-    ++p;
-  }
-  if ( p && *p )
-    p += strlen( endTag );
-
-  return p;
-}
-
-
-const char* TiXmlAttribute::Parse( const char* p, TiXmlParsingData* data, TiXmlEncoding encoding )
-{
-  p = SkipWhiteSpace( p, encoding );
-  if ( !p || !*p ) return 0;
-
-  if ( data )
-  {
-    data->Stamp( p, encoding );
-    location = data->Cursor();
-  }
-  // Read the name, the '=' and the value.
-  const char* pErr = p;
-  p = ReadName( p, &name, encoding );
-  if ( !p || !*p )
-  {
-    if ( document ) document->SetError( TIXML_ERROR_READING_ATTRIBUTES, pErr, data, encoding );
-    return 0;
-  }
-  p = SkipWhiteSpace( p, encoding );
-  if ( !p || !*p || *p != '=' )
-  {
-    if ( document ) document->SetError( TIXML_ERROR_READING_ATTRIBUTES, p, data, encoding );
-    return 0;
-  }
-
-  ++p;    // skip '='
-  p = SkipWhiteSpace( p, encoding );
-  if ( !p || !*p )
-  {
-    if ( document ) document->SetError( TIXML_ERROR_READING_ATTRIBUTES, p, data, encoding );
-    return 0;
-  }
-
-  const char* end;
-  const char SINGLE_QUOTE = '\'';
-  const char DOUBLE_QUOTE = '\"';
-
-  if ( *p == SINGLE_QUOTE )
-  {
-    ++p;
-    end = "\'";             // single quote in string
-    p = ReadText( p, &value, false, end, false, encoding );
-  }
-  else if ( *p == DOUBLE_QUOTE )
-  {
-    ++p;
-    end = "\"";             // double quote in string
-    p = ReadText( p, &value, false, end, false, encoding );
-  }
-  else
-  {
-    // All attribute values should be in single or double quotes.
-    // But this is such a common error that the parser will try
-    // its best, even without them.
-    value = "";
-    while (    p && *p                                                                                      // existence
-               && !IsWhiteSpace( *p )                                                          // whitespace
-               && *p != '/' && *p != '>' )                                                     // tag end
-    {
-      if ( *p == SINGLE_QUOTE || *p == DOUBLE_QUOTE ) {
-        // [ 1451649 ] Attribute values with trailing quotes not handled correctly
-        // We did not have an opening quote but seem to have a
-        // closing one. Give up and throw an error.
-        if ( document ) document->SetError( TIXML_ERROR_READING_ATTRIBUTES, p, data, encoding );
-        return 0;
-      }
-      value += *p;
-      ++p;
-    }
-  }
-  return p;
-}
-
-#ifdef TIXML_USE_STL
-void TiXmlText::StreamIn( std::istream * in, TIXML_STRING * tag )
-{
-  while ( in->good() )
-  {
-    int c = in->peek();
-    if ( !cdata && (c == '<' ) )
-    {
-      return;
-    }
-    if ( c <= 0 )
-    {
-      TiXmlDocument* document = GetDocument();
-      if ( document )
-        document->SetError( TIXML_ERROR_EMBEDDED_NULL, 0, 0, TIXML_ENCODING_UNKNOWN );
-      return;
-    }
-
-    (*tag) += (char) c;
-    in->get();      // "commits" the peek made above
-
-    if ( cdata && c == '>' && tag->size() >= 3 ) {
-      size_t len = tag->size();
-      if ( (*tag)[len-2] == ']' && (*tag)[len-3] == ']' ) {
-        // terminator of cdata.
-        return;
-      }
-    }
-  }
-}
-#endif
-
-const char* TiXmlText::Parse( const char* p, TiXmlParsingData* data, TiXmlEncoding encoding )
-{
-  value = "";
-  TiXmlDocument* document = GetDocument();
-
-  if ( data )
-  {
-    data->Stamp( p, encoding );
-    location = data->Cursor();
-  }
-
-  const char* const startTag = "<![CDATA[";
-  const char* const endTag   = "]]>";
-
-  if ( cdata || StringEqual( p, startTag, false, encoding ) )
-  {
-    cdata = true;
-
-    if ( !StringEqual( p, startTag, false, encoding ) )
-    {
-      document->SetError( TIXML_ERROR_PARSING_CDATA, p, data, encoding );
-      return 0;
-    }
-    p += strlen( startTag );
-
-    // Keep all the white space, ignore the encoding, etc.
-    while (    p && *p
-               && !StringEqual( p, endTag, false, encoding )
-      )
-    {
-      value += *p;
-      ++p;
-    }
-
-    TIXML_STRING dummy;
-    p = ReadText( p, &dummy, false, endTag, false, encoding );
-    return p;
-  }
-  else
-  {
-    bool ignoreWhite = true;
-
-    const char* end = "<";
-    p = ReadText( p, &value, ignoreWhite, end, false, encoding );
-    if ( p )
-      return p-1;     // don't truncate the '<'
-    return 0;
-  }
-}
-
-#ifdef TIXML_USE_STL
-void TiXmlDeclaration::StreamIn( std::istream * in, TIXML_STRING * tag )
-{
-  while ( in->good() )
-  {
-    int c = in->get();
-    if ( c <= 0 )
-    {
-      TiXmlDocument* document = GetDocument();
-      if ( document )
-        document->SetError( TIXML_ERROR_EMBEDDED_NULL, 0, 0, TIXML_ENCODING_UNKNOWN );
-      return;
-    }
-    (*tag) += (char) c;
-
-    if ( c == '>' )
-    {
-      // All is well.
-      return;
-    }
-  }
-}
-#endif
-
-const char* TiXmlDeclaration::Parse( const char* p, TiXmlParsingData* data, TiXmlEncoding _encoding )
-{
-  p = SkipWhiteSpace( p, _encoding );
-  // Find the beginning, find the end, and look for
-  // the stuff in-between.
-  TiXmlDocument* document = GetDocument();
-  if ( !p || !*p || !StringEqual( p, "<?xml", true, _encoding ) )
-  {
-    if ( document ) document->SetError( TIXML_ERROR_PARSING_DECLARATION, 0, 0, _encoding );
-    return 0;
-  }
-  if ( data )
-  {
-    data->Stamp( p, _encoding );
-    location = data->Cursor();
-  }
-  p += 5;
-
-  version = "";
-  encoding = "";
-  standalone = "";
-
-  while ( p && *p )
-  {
-    if ( *p == '>' )
-    {
-      ++p;
-      return p;
-    }
-
-    p = SkipWhiteSpace( p, _encoding );
-    if ( StringEqual( p, "version", true, _encoding ) )
-    {
-      TiXmlAttribute attrib;
-      p = attrib.Parse( p, data, _encoding );
-      version = attrib.Value();
-    }
-    else if ( StringEqual( p, "encoding", true, _encoding ) )
-    {
-      TiXmlAttribute attrib;
-      p = attrib.Parse( p, data, _encoding );
-      encoding = attrib.Value();
-    }
-    else if ( StringEqual( p, "standalone", true, _encoding ) )
-    {
-      TiXmlAttribute attrib;
-      p = attrib.Parse( p, data, _encoding );
-      standalone = attrib.Value();
-    }
-    else
-    {
-      // Read over whatever it is.
-      while( p && *p && *p != '>' && !IsWhiteSpace( *p ) )
-        ++p;
-    }
-  }
-  return 0;
-}
-
-bool TiXmlText::Blank() const
-{
-  for ( unsigned i=0; i<value.length(); i++ )
-    if ( !IsWhiteSpace( value[i] ) )
-      return false;
-  return true;
-}