diff --git a/src/Cxx/DataStructures/CMakeLists.txt b/src/Cxx/DataStructures/CMakeLists.txt index 18cdafcf63870e2433852c845979cc4c2bc88630..929ec7f84a1697dfedbdda0462b4d31dfa630e1c 100644 --- a/src/Cxx/DataStructures/CMakeLists.txt +++ b/src/Cxx/DataStructures/CMakeLists.txt @@ -86,6 +86,6 @@ if (BUILD_TESTING) include(${WikiExamples_SOURCE_DIR}/CMake/ExamplesTesting.cmake) - add_subdirectory(ModifiedBSPTree) +# add_subdirectory(ModifiedBSPTree) endif() diff --git a/src/Cxx/DataStructures/KDTreeTimingDemo.cxx b/src/Cxx/DataStructures/KDTreeTimingDemo.cxx index f7c0c85b59437747a33819c939af7455e73ccf5b..acd761f3a640570f7c1e18ca2163eed6484e7e7c 100644 --- a/src/Cxx/DataStructures/KDTreeTimingDemo.cxx +++ b/src/Cxx/DataStructures/KDTreeTimingDemo.cxx @@ -84,6 +84,7 @@ int main(int, char *[]) line->GetYAxis()->SetTitle("Run time"); view->GetRenderWindow()->SetMultiSamples(0); + view->GetRenderWindow()->Render(); // Start interactor view->GetInteractor()->Initialize(); diff --git a/src/Cxx/DataStructures/ModifiedBSPTreeTimingDemo.cxx b/src/Cxx/DataStructures/ModifiedBSPTreeTimingDemo.cxx index c3eafaf926ee001a5d9df7b3dc9af8e67359f726..12f5638b047a41e02cd0f097f00d543869773f83 100644 --- a/src/Cxx/DataStructures/ModifiedBSPTreeTimingDemo.cxx +++ b/src/Cxx/DataStructures/ModifiedBSPTreeTimingDemo.cxx @@ -90,6 +90,7 @@ int main(int, char *[]) //line->GetYAxis()->SetRange(0,0.02); // Start interactor + view->GetRenderWindow()->Render(); view->GetInteractor()->Initialize(); view->GetInteractor()->Start(); diff --git a/src/Cxx/DataStructures/OBBTreeTimingDemo.cxx b/src/Cxx/DataStructures/OBBTreeTimingDemo.cxx index aef50b22bce1e24861fc22aef8bdae19912f4a58..80e245aeb4d1798b7b5f931e5f6964beb6bc3bea 100644 --- a/src/Cxx/DataStructures/OBBTreeTimingDemo.cxx +++ b/src/Cxx/DataStructures/OBBTreeTimingDemo.cxx @@ -93,6 +93,7 @@ int main(int, char *[]) view->GetRenderWindow()->SetMultiSamples(0); // Start interactor + view->GetRenderWindow()->Render(); view->GetInteractor()->Initialize(); view->GetInteractor()->Start(); return EXIT_SUCCESS; diff --git a/src/Cxx/Filtering/ConnectivityFilter.cxx b/src/Cxx/Filtering/ConnectivityFilter.cxx index b588b46da201b3fd117a60a9f5688ac1bc8ac9ec..94a8416f1ec03bf91a16a57c85ae84b2d79d029d 100644 --- a/src/Cxx/Filtering/ConnectivityFilter.cxx +++ b/src/Cxx/Filtering/ConnectivityFilter.cxx @@ -62,6 +62,7 @@ int main(int, char*[]) vtkSmartPointer<vtkRenderWindow> renwin = vtkSmartPointer<vtkRenderWindow>::New(); renwin->AddRenderer(renderer); + renwin->Render(); vtkSmartPointer<vtkRenderWindowInteractor> iren = vtkSmartPointer<vtkRenderWindowInteractor>::New(); diff --git a/src/Cxx/Filtering/WarpTo.cxx b/src/Cxx/Filtering/WarpTo.cxx index c21c3ec2ccd691b471d7d566e523f1f18ec65b08..791050c35e8c3a137df8d9c742ade80703aeb661 100644 --- a/src/Cxx/Filtering/WarpTo.cxx +++ b/src/Cxx/Filtering/WarpTo.cxx @@ -53,6 +53,7 @@ int main(int, char*[]) renderer->AddActor(actor); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/GeometricObjects/PolyLine1.cxx b/src/Cxx/GeometricObjects/PolyLine1.cxx index 33aa47429c15499fd786de7993948a693bc54caf..df82cca07e2ac7d2b1fcbde2f00f12f6afa50751 100644 --- a/src/Cxx/GeometricObjects/PolyLine1.cxx +++ b/src/Cxx/GeometricObjects/PolyLine1.cxx @@ -116,6 +116,7 @@ int main(int, char* []) vtkSmartPointer<vtkRenderWindowInteractor> iren = vtkSmartPointer<vtkRenderWindowInteractor>::New(); iren->SetRenderWindow(renWin); + renWin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Geovis/GeoAssignCoordinates.cxx b/src/Cxx/Geovis/GeoAssignCoordinates.cxx index d4322f4582cbfbacae63ff42b3f39309e89ae631..36bd6b1dd5626cb090ad84add72c1687eed1a297 100644 --- a/src/Cxx/Geovis/GeoAssignCoordinates.cxx +++ b/src/Cxx/Geovis/GeoAssignCoordinates.cxx @@ -64,6 +64,7 @@ int main(int, char* []) win->SetInteractor(iren); ren->ResetCamera(); + win->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/IO/DEMReader.cxx b/src/Cxx/IO/DEMReader.cxx index 16e6106d75bfbf10b8d357be24297083b5b5ee58..03d6c1b0b7cba30199fa2fd7105c8d02b6fa9a51 100644 --- a/src/Cxx/IO/DEMReader.cxx +++ b/src/Cxx/IO/DEMReader.cxx @@ -64,6 +64,7 @@ int main(int argc, char* argv[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/IO/ImageReader2Factory.cxx b/src/Cxx/IO/ImageReader2Factory.cxx index ad10eba8ce5217258ff44215d2bf08f401502a67..b3923e13d93c1a91575c34116e04436b8f380b54 100644 --- a/src/Cxx/IO/ImageReader2Factory.cxx +++ b/src/Cxx/IO/ImageReader2Factory.cxx @@ -62,6 +62,7 @@ int main(int argc, char *argv[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/IO/MetaImageReader.cxx b/src/Cxx/IO/MetaImageReader.cxx index 82ed81a99db52d13a7871a25704da7fc2e9e2451..a7a6cd34dbab3ca8704a10864b078107d64c7adb 100644 --- a/src/Cxx/IO/MetaImageReader.cxx +++ b/src/Cxx/IO/MetaImageReader.cxx @@ -47,6 +47,7 @@ int main(int argc, char *argv[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/IO/ReadImageData.cxx b/src/Cxx/IO/ReadImageData.cxx index 87615be6697ccc97cb89ac392eb9070f5001d411..6e4b4646795c497c08fcd6a62c8ab5649c6cd703 100644 --- a/src/Cxx/IO/ReadImageData.cxx +++ b/src/Cxx/IO/ReadImageData.cxx @@ -49,6 +49,7 @@ int main(int argc, char* argv[]) vtkSmartPointer<vtkRenderWindowInteractor> renderWindowInteractor = vtkSmartPointer<vtkRenderWindowInteractor>::New(); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/IO/ReadPDB.cxx b/src/Cxx/IO/ReadPDB.cxx index 3dd6043664e0c735b21360b152d967edb7dd4e12..d49da6fc0afdbb35efd990c3312ceeb80e1fd133 100644 --- a/src/Cxx/IO/ReadPDB.cxx +++ b/src/Cxx/IO/ReadPDB.cxx @@ -119,6 +119,7 @@ int main (int argc, char *argv[]) renderer->AddActor(bond); + renderWindow->Render(); interactor->Initialize(); interactor->Start(); diff --git a/src/Cxx/IO/WriteBMP.cxx b/src/Cxx/IO/WriteBMP.cxx index 06031adc0c57324fd517e312dd3712207049181b..10ca9b8fe170ccb6d2f69d17a90722ce85000b63 100644 --- a/src/Cxx/IO/WriteBMP.cxx +++ b/src/Cxx/IO/WriteBMP.cxx @@ -69,6 +69,7 @@ int main(int argc, char *argv[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/IO/WritePNM.cxx b/src/Cxx/IO/WritePNM.cxx index c434185f38f9e0797cdded10b127eda52f4c2678..0a2c2bdcc04c85d15ec1021f8cbfba3c22beaac9 100644 --- a/src/Cxx/IO/WritePNM.cxx +++ b/src/Cxx/IO/WritePNM.cxx @@ -69,6 +69,7 @@ int main(int argc, char *argv[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/IO/WriteTIFF.cxx b/src/Cxx/IO/WriteTIFF.cxx index 5a05ec658840de824d15ae1c6462ccf218f8edc0..f70b01775e68f0fa29150a03e583c9057b4ffbe7 100644 --- a/src/Cxx/IO/WriteTIFF.cxx +++ b/src/Cxx/IO/WriteTIFF.cxx @@ -68,6 +68,7 @@ int main(int argc, char *argv[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/IO/WriteVTI.cxx b/src/Cxx/IO/WriteVTI.cxx index 4843abbdf9f204d7d264f0431c1d2c1132384e44..af5a4cf8f1e4e86df46c9bae68eec57e5a4cf0cc 100644 --- a/src/Cxx/IO/WriteVTI.cxx +++ b/src/Cxx/IO/WriteVTI.cxx @@ -83,6 +83,7 @@ int main(int argc, char *argv[]) vtkSmartPointer<vtkRenderWindowInteractor>::New(); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/ImageData/ImageTranslateExtent.cxx b/src/Cxx/ImageData/ImageTranslateExtent.cxx index aa5325bb0a29547d40c7e82355598eb3b4c0fdbf..e1da821185666c1f5edf980c838a86ef490a7528 100644 --- a/src/Cxx/ImageData/ImageTranslateExtent.cxx +++ b/src/Cxx/ImageData/ImageTranslateExtent.cxx @@ -85,6 +85,7 @@ int main(int, char *[]) renderWindowInteractor->SetInteractorStyle(style); // Render and start interaction + renderWindow->Render(); renderWindowInteractor->SetRenderWindow(renderWindow); renderWindowInteractor->Initialize(); diff --git a/src/Cxx/ImageProcessing/Attenuation.cxx b/src/Cxx/ImageProcessing/Attenuation.cxx index 0ece53d348ef02d632445ac7bdca7b0343d1a13e..f0ecf1064add906656d6943aaf576dcf79877057 100644 --- a/src/Cxx/ImageProcessing/Attenuation.cxx +++ b/src/Cxx/ImageProcessing/Attenuation.cxx @@ -120,6 +120,7 @@ int main (int argc, char *argv[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/ImageProcessing/GaussianSmooth.cxx b/src/Cxx/ImageProcessing/GaussianSmooth.cxx index 791c1cbcb7dbd8b5cbe3621ff1a4369d8e4940a6..f3ae167e5925b537b1aec10e87652cda365f9319 100644 --- a/src/Cxx/ImageProcessing/GaussianSmooth.cxx +++ b/src/Cxx/ImageProcessing/GaussianSmooth.cxx @@ -93,6 +93,7 @@ int main( int argc, char *argv[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/ImageProcessing/IdealHighPass.cxx b/src/Cxx/ImageProcessing/IdealHighPass.cxx index b2bc4434d49435290ae36a97a9c247cbb7d1e3a2..c6cb598dbdc24538d4297903e6bad3667ce78740 100644 --- a/src/Cxx/ImageProcessing/IdealHighPass.cxx +++ b/src/Cxx/ImageProcessing/IdealHighPass.cxx @@ -126,6 +126,7 @@ renderWindowInteractor->SetRenderWindow(renderWindow); idealRenderer->GetActiveCamera()->Dolly(1.4); idealRenderer->ResetCameraClippingRange(); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/ImageProcessing/Pad.cxx b/src/Cxx/ImageProcessing/Pad.cxx index 1c86f0912580a1a3357a76192de5a89261e78fdd..dfd82e7c92300c6cd5b57771db9195d23f58048f 100644 --- a/src/Cxx/ImageProcessing/Pad.cxx +++ b/src/Cxx/ImageProcessing/Pad.cxx @@ -103,6 +103,7 @@ renderWindowInteractor->SetRenderWindow(renderWindow); constantPadRenderer->GetActiveCamera()->Dolly(1.2); constantPadRenderer->ResetCameraClippingRange(); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/ImageProcessing/VTKSpectrum.cxx b/src/Cxx/ImageProcessing/VTKSpectrum.cxx index 0b747abce9c410dd5fe27173ebc5962c0decd03f..54204c1cf880830159422eafbdf4157e772f0efe 100644 --- a/src/Cxx/ImageProcessing/VTKSpectrum.cxx +++ b/src/Cxx/ImageProcessing/VTKSpectrum.cxx @@ -109,6 +109,7 @@ void CreateImageActor(vtkSmartPointer<vtkImageActor> &actor, renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/BorderPixelSize.cxx b/src/Cxx/Images/BorderPixelSize.cxx index d5f37b6a6f21bc4cb3d24d2ae04de49c2116f275..deae62ecd39ff8b39337df2112bd8d41a546ab8c 100644 --- a/src/Cxx/Images/BorderPixelSize.cxx +++ b/src/Cxx/Images/BorderPixelSize.cxx @@ -40,6 +40,7 @@ int main(int, char *[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/Cast.cxx b/src/Cxx/Images/Cast.cxx index 3ccbf8d79206a7b8a2167ba4f7f5942bcde2997e..fb558281e9f192878eed904fc33d6bba8d658777 100644 --- a/src/Cxx/Images/Cast.cxx +++ b/src/Cxx/Images/Cast.cxx @@ -50,6 +50,7 @@ int main(int, char *[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/Colored2DImageFusion.cxx b/src/Cxx/Images/Colored2DImageFusion.cxx index f7b2db499d992c63817ad882854d1684318fa795..3cc0710dcb15d628f34af7df6bf962781963c1ec 100644 --- a/src/Cxx/Images/Colored2DImageFusion.cxx +++ b/src/Cxx/Images/Colored2DImageFusion.cxx @@ -83,6 +83,7 @@ int main(int argc, char *argv[]) vtkSmartPointer<vtkRenderWindowInteractor> imgInteractor = vtkSmartPointer<vtkRenderWindowInteractor>::New(); imgInteractor->SetRenderWindow( imgRenderWindow ); + imgRenderWindow->Render(); imgInteractor->Initialize(); imgInteractor->Start(); diff --git a/src/Cxx/Images/CombiningRGBChannels.cxx b/src/Cxx/Images/CombiningRGBChannels.cxx index 6beaa3d4dca538712533a91a1d73358940f066a9..9395bd83a1e3c8939d64ae70beeaf24bdc3f3873 100644 --- a/src/Cxx/Images/CombiningRGBChannels.cxx +++ b/src/Cxx/Images/CombiningRGBChannels.cxx @@ -132,6 +132,7 @@ int main(int, char *[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/DrawOnAnImage.cxx b/src/Cxx/Images/DrawOnAnImage.cxx index 1d64b72c2cbd291fa8f71cd18254390b1c3b9673..bdbbae3c8be4f4e0bfaf038c7f6fe95aa44efb9c 100644 --- a/src/Cxx/Images/DrawOnAnImage.cxx +++ b/src/Cxx/Images/DrawOnAnImage.cxx @@ -74,6 +74,7 @@ int main ( int argc, char* argv[] ) imageViewer->GetRenderer()->ResetCamera(); imageViewer->GetRenderer()->SetBackground(1,0,0); //red + imageViewer->GetRenderWindow()->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/DrawShapes.cxx b/src/Cxx/Images/DrawShapes.cxx index 3a3bfbc6f3c50f53b4cab6d0da3e38fdf40c328e..e3d805333e730f6d5d8644ff79f6e4af16c37dc2 100644 --- a/src/Cxx/Images/DrawShapes.cxx +++ b/src/Cxx/Images/DrawShapes.cxx @@ -31,6 +31,7 @@ int main(int, char *[]) imageViewer->SetupInteractor(renderWindowInteractor); imageViewer->GetRenderer()->ResetCamera(); imageViewer->GetRenderer()->SetBackground(1,1,1); //white background + imageViewer->GetRenderWindow()->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ExtractComponents.cxx b/src/Cxx/Images/ExtractComponents.cxx index 1046bbc54bb61447f72d3ee61530fe9a180e8a80..e62441f8f37e6783df1ad862dae28dcbac6c899c 100644 --- a/src/Cxx/Images/ExtractComponents.cxx +++ b/src/Cxx/Images/ExtractComponents.cxx @@ -123,6 +123,7 @@ int main(int argc, char *argv[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/FillWindow.cxx b/src/Cxx/Images/FillWindow.cxx index 3e88fa1ab758a9962aa4b263a328280c87e5fb76..53deffcf1b4e1c4c5a3ecaab9e5218cf9973bf38 100644 --- a/src/Cxx/Images/FillWindow.cxx +++ b/src/Cxx/Images/FillWindow.cxx @@ -74,6 +74,7 @@ int main(int, char *[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/Flip.cxx b/src/Cxx/Images/Flip.cxx index 54c847ad59cc3fa6471ec835308f9aab30e2ab6a..7bed3271babad41bae43eaaaa26d1f38cdff1fd6 100644 --- a/src/Cxx/Images/Flip.cxx +++ b/src/Cxx/Images/Flip.cxx @@ -131,6 +131,7 @@ int main(int, char *[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageAccumulateGreyscale.cxx b/src/Cxx/Images/ImageAccumulateGreyscale.cxx index 6719c6918cf91ca8aba51f9984ec50dfb70678a1..2d17483e7179c23a423b28757053de039c29c71d 100644 --- a/src/Cxx/Images/ImageAccumulateGreyscale.cxx +++ b/src/Cxx/Images/ImageAccumulateGreyscale.cxx @@ -101,6 +101,7 @@ int main( int argc, char *argv[] ) interactor->SetRenderWindow(renderWindow); // Initialize the event loop and then start it + renderWindow->Render(); interactor->Initialize(); interactor->Start(); diff --git a/src/Cxx/Images/ImageAnisotropicDiffusion2D.cxx b/src/Cxx/Images/ImageAnisotropicDiffusion2D.cxx index 53d684bd6c43fcd69b49d71d8a4f5482e93add96..c005e7a91d025bb214f1d8bfec8cd4c1ce0c3675 100644 --- a/src/Cxx/Images/ImageAnisotropicDiffusion2D.cxx +++ b/src/Cxx/Images/ImageAnisotropicDiffusion2D.cxx @@ -95,6 +95,7 @@ int main(int argc, char *argv[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageCheckerboard.cxx b/src/Cxx/Images/ImageCheckerboard.cxx index 668081d431ecde6c431df432858aa8b17f7783d0..d7b3b512eae628a06cc2efb3747e4abbb90594cf 100644 --- a/src/Cxx/Images/ImageCheckerboard.cxx +++ b/src/Cxx/Images/ImageCheckerboard.cxx @@ -50,6 +50,7 @@ int main ( int argc, char* argv[] ) imageViewer->GetRenderer()->ResetCamera(); imageViewer->GetRenderer()->SetBackground( colors->GetColor3d("Wheat").GetData()); + imageViewer->GetRenderWindow()->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageCityBlockDistance.cxx b/src/Cxx/Images/ImageCityBlockDistance.cxx index 47c8e32c73a30d248e35c37e6852f36fd2c7d714..bebc1a2ee9db255970c2174e9a2b15c65a95f074 100644 --- a/src/Cxx/Images/ImageCityBlockDistance.cxx +++ b/src/Cxx/Images/ImageCityBlockDistance.cxx @@ -98,6 +98,7 @@ int main(int argc, char *argv[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageConvolve.cxx b/src/Cxx/Images/ImageConvolve.cxx index 0d14c21de04a88512f63bd660a369e5c61652508..7499eb56b52766167ebe63711fab946fcb82360f 100644 --- a/src/Cxx/Images/ImageConvolve.cxx +++ b/src/Cxx/Images/ImageConvolve.cxx @@ -82,6 +82,7 @@ int main(int, char *[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageCorrelation.cxx b/src/Cxx/Images/ImageCorrelation.cxx index cf0ecc9753d7d12037a2947a97948917069c8f73..60d11c8e140c8a83fb8a69e4d61bf6347d1c7e4c 100644 --- a/src/Cxx/Images/ImageCorrelation.cxx +++ b/src/Cxx/Images/ImageCorrelation.cxx @@ -130,6 +130,7 @@ int main(int, char *[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageDifference.cxx b/src/Cxx/Images/ImageDifference.cxx index e0667911ee0dc86b9b8256ed57c60bd7940f9a0e..f9d6bd14c9d20dc6934f5f51715b66588ad2d42a 100644 --- a/src/Cxx/Images/ImageDifference.cxx +++ b/src/Cxx/Images/ImageDifference.cxx @@ -86,6 +86,8 @@ int main(int, char *[]) // Render and start interaction renderWindowInteractor->SetRenderWindow ( renderWindow ); + renderWindow->Render(); + renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageDilateErode3D.cxx b/src/Cxx/Images/ImageDilateErode3D.cxx index f4b6bcf39825afa095c7ebf4de76b3d52d30ebe2..6e5c4e8bac13051d2f10338e77d642545d714d1b 100644 --- a/src/Cxx/Images/ImageDilateErode3D.cxx +++ b/src/Cxx/Images/ImageDilateErode3D.cxx @@ -77,6 +77,7 @@ int main(int argc, char *argv[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageDivergence.cxx b/src/Cxx/Images/ImageDivergence.cxx index 10bd079caeef655c97995017824845f6f4f0b3a1..ed450c45e12a13f5c8519ea52ca581785d5b4848 100644 --- a/src/Cxx/Images/ImageDivergence.cxx +++ b/src/Cxx/Images/ImageDivergence.cxx @@ -91,6 +91,7 @@ int main(int, char *[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageEllipsoidSource.cxx b/src/Cxx/Images/ImageEllipsoidSource.cxx index bbdb4e2fa45e2f63dcf93ed394778c2df9bd17f7..e46b0d6fd750f4c0bdc56a295d45d8aefa0b03df 100644 --- a/src/Cxx/Images/ImageEllipsoidSource.cxx +++ b/src/Cxx/Images/ImageEllipsoidSource.cxx @@ -51,6 +51,7 @@ int main(int, char *[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageFFT.cxx b/src/Cxx/Images/ImageFFT.cxx index 498b9bcdf79552531b710b42fb2903da72e89c77..ff494a9e258f36ea4aada20d272331cc406637ef 100644 --- a/src/Cxx/Images/ImageFFT.cxx +++ b/src/Cxx/Images/ImageFFT.cxx @@ -76,6 +76,7 @@ int main(int, char *[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageGaussianSmooth.cxx b/src/Cxx/Images/ImageGaussianSmooth.cxx index 1a775b2c655152cd1a9486e8e6261656c71a9434..560b43265c15c68dd8acb63e709decf2ef54f0b5 100644 --- a/src/Cxx/Images/ImageGaussianSmooth.cxx +++ b/src/Cxx/Images/ImageGaussianSmooth.cxx @@ -69,6 +69,7 @@ int main(int, char *[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageGradientMagnitude.cxx b/src/Cxx/Images/ImageGradientMagnitude.cxx index bf96664d3e4b2061978759c6691ca26b36f297e4..e858f843afff118f0622759d2f74938e7f85792b 100644 --- a/src/Cxx/Images/ImageGradientMagnitude.cxx +++ b/src/Cxx/Images/ImageGradientMagnitude.cxx @@ -75,6 +75,7 @@ int main(int, char *[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageGridSource.cxx b/src/Cxx/Images/ImageGridSource.cxx index 2ca48e138fad7492548e8c628534a4964349a8e4..4c3048d875901e34e28eb6fdc5021cbd335e8ba4 100644 --- a/src/Cxx/Images/ImageGridSource.cxx +++ b/src/Cxx/Images/ImageGridSource.cxx @@ -48,6 +48,7 @@ int main(int, char *[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageHybridMedian2D.cxx b/src/Cxx/Images/ImageHybridMedian2D.cxx index b3d831a8a1be6b2f2c109b43b1ae8762bb847069..d818790bfbad21716c552da9597116e6e665d996 100644 --- a/src/Cxx/Images/ImageHybridMedian2D.cxx +++ b/src/Cxx/Images/ImageHybridMedian2D.cxx @@ -74,6 +74,7 @@ int main(int argc, char *argv[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageIdealHighPass.cxx b/src/Cxx/Images/ImageIdealHighPass.cxx index 6da4ebdfc433bc357936e168c4931229fe849175..34c3b86f7d6a43fff47765d473faff846a1958c4 100644 --- a/src/Cxx/Images/ImageIdealHighPass.cxx +++ b/src/Cxx/Images/ImageIdealHighPass.cxx @@ -124,6 +124,7 @@ int main(int, char *[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageImport.cxx b/src/Cxx/Images/ImageImport.cxx index 8b611fc4ba0dae06b4a9b06c523f7be5a6e66814..cb28141204ce536eb7bcc5820a3170d71e6b398d 100644 --- a/src/Cxx/Images/ImageImport.cxx +++ b/src/Cxx/Images/ImageImport.cxx @@ -64,6 +64,7 @@ int main(int, char *[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageIslandRemoval2D.cxx b/src/Cxx/Images/ImageIslandRemoval2D.cxx index d820809f75cd7028a234d6978c94ed461bfda4f6..144accea961133cec1a6b4efb053165f41c2a3bc 100644 --- a/src/Cxx/Images/ImageIslandRemoval2D.cxx +++ b/src/Cxx/Images/ImageIslandRemoval2D.cxx @@ -86,6 +86,7 @@ int main(int, char *[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageLuminance.cxx b/src/Cxx/Images/ImageLuminance.cxx index 61a3340a2c455379c186c5a04d4515809b7c2351..282999617c87571ed99c7d29455c74798a77c478 100644 --- a/src/Cxx/Images/ImageLuminance.cxx +++ b/src/Cxx/Images/ImageLuminance.cxx @@ -77,6 +77,7 @@ int main(int, char *[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageMagnify.cxx b/src/Cxx/Images/ImageMagnify.cxx index 65b9aa1108b1aa20dc38263e55aed07082d32469..4c38221e3bb2d0a2ed4656f2543a047f7058c218 100644 --- a/src/Cxx/Images/ImageMagnify.cxx +++ b/src/Cxx/Images/ImageMagnify.cxx @@ -85,6 +85,7 @@ int main(int argc, char *argv[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageMagnitude.cxx b/src/Cxx/Images/ImageMagnitude.cxx index e8c4afc7eb2e0416d142b6fa5ffe43270f97ba33..a47255357761e1f68858272d1d1ddf2cc523c585 100644 --- a/src/Cxx/Images/ImageMagnitude.cxx +++ b/src/Cxx/Images/ImageMagnitude.cxx @@ -77,6 +77,7 @@ int main(int, char *[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageMandelbrotSource.cxx b/src/Cxx/Images/ImageMandelbrotSource.cxx index 5693f47e3daae41503d6bcc0f2bde25b9ba1d700..93c81a8ba5200adbcbff7dda17abcec4af450c8a 100644 --- a/src/Cxx/Images/ImageMandelbrotSource.cxx +++ b/src/Cxx/Images/ImageMandelbrotSource.cxx @@ -48,6 +48,7 @@ int main(int, char *[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageMapToColors.cxx b/src/Cxx/Images/ImageMapToColors.cxx index 543d58ed3654517d5cc8f85a572e75a3342e933c..1de04a7055af9ea4337031dbff17efae5d4452ce 100644 --- a/src/Cxx/Images/ImageMapToColors.cxx +++ b/src/Cxx/Images/ImageMapToColors.cxx @@ -76,6 +76,7 @@ int main(int, char*[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageMask.cxx b/src/Cxx/Images/ImageMask.cxx index bad46bdd169ebe7361317352f4e9a86b5b78520f..85b4fb35f2b5e930482de4d84e4556c3d292589c 100644 --- a/src/Cxx/Images/ImageMask.cxx +++ b/src/Cxx/Images/ImageMask.cxx @@ -127,6 +127,7 @@ int main(int, char *[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageMedian3D.cxx b/src/Cxx/Images/ImageMedian3D.cxx index 270df11edfda0604268c71d92f4b653f703d6ef0..e30ca4818eb83231c3df65b065483d561ebd40f6 100644 --- a/src/Cxx/Images/ImageMedian3D.cxx +++ b/src/Cxx/Images/ImageMedian3D.cxx @@ -89,6 +89,7 @@ int main(int, char *[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageMirrorPad.cxx b/src/Cxx/Images/ImageMirrorPad.cxx index 351b4bc57d92a8b3618a6655fc3b75425e5762e1..b5aa4f8656c7a3d0c26e8964b4419da7bd853fb8 100644 --- a/src/Cxx/Images/ImageMirrorPad.cxx +++ b/src/Cxx/Images/ImageMirrorPad.cxx @@ -48,6 +48,7 @@ int main(int, char *[]) vtkSmartPointer<vtkRenderWindowInteractor>::New(); renderWindowInteractor->SetRenderWindow ( renderWindow ); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageNonMaximumSuppression.cxx b/src/Cxx/Images/ImageNonMaximumSuppression.cxx index 61109df9b319f2547933f8d82f893249e12b98ed..8ff41fe82fe1c5b43738c00fd1380fab096afb86 100644 --- a/src/Cxx/Images/ImageNonMaximumSuppression.cxx +++ b/src/Cxx/Images/ImageNonMaximumSuppression.cxx @@ -111,6 +111,7 @@ int main(int, char*[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageOpenClose3D.cxx b/src/Cxx/Images/ImageOpenClose3D.cxx index 1bc9c9473c2f64bf447d25cb7a14fa9aab6930c3..40d3eda23ffe5143f537d83a4a6a6d541bf86e37 100644 --- a/src/Cxx/Images/ImageOpenClose3D.cxx +++ b/src/Cxx/Images/ImageOpenClose3D.cxx @@ -82,6 +82,7 @@ int main(int argc, char *argv[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImagePermute.cxx b/src/Cxx/Images/ImagePermute.cxx index daaf2a0caf12eb92e9e8cbf343170c5186743bee..9e397b27072c7f6086ec67cd0a5d108cd0e77503 100644 --- a/src/Cxx/Images/ImagePermute.cxx +++ b/src/Cxx/Images/ImagePermute.cxx @@ -72,6 +72,7 @@ int main(int, char *[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageRFFT.cxx b/src/Cxx/Images/ImageRFFT.cxx index dccddf9fb894c677757adb5172ba2c7125f6af09..31be35bbc27614c68c7c46adce37ad21b834de5e 100644 --- a/src/Cxx/Images/ImageRFFT.cxx +++ b/src/Cxx/Images/ImageRFFT.cxx @@ -107,6 +107,7 @@ int main(int, char *[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageRange3D.cxx b/src/Cxx/Images/ImageRange3D.cxx index be59089cf2be8f39fec4c3e530d45dc72583b8bc..e3f473dc30036dd43bdf613bbd098ba12dd94e5f 100644 --- a/src/Cxx/Images/ImageRange3D.cxx +++ b/src/Cxx/Images/ImageRange3D.cxx @@ -85,6 +85,7 @@ int main(int argc, char* argv[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageSeparableConvolution.cxx b/src/Cxx/Images/ImageSeparableConvolution.cxx index f2eacc667ec736dddf100474d4f7d9a01040358b..2a544e1c4ec600f49955e855e07ee5ba3d646440 100644 --- a/src/Cxx/Images/ImageSeparableConvolution.cxx +++ b/src/Cxx/Images/ImageSeparableConvolution.cxx @@ -94,6 +94,7 @@ int main(int argc, char *argv[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageShiftScale.cxx b/src/Cxx/Images/ImageShiftScale.cxx index 8808360170bf3dab0fe089d283ad5d8ad0040938..8e95f0716b8cfa93c815f9f1a6a8432cd5db77eb 100644 --- a/src/Cxx/Images/ImageShiftScale.cxx +++ b/src/Cxx/Images/ImageShiftScale.cxx @@ -77,6 +77,7 @@ int main(int, char *[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageShrink3D.cxx b/src/Cxx/Images/ImageShrink3D.cxx index 3eba9e1b82dc766ca9d3cd1723c253509f8bcaea..0f750f1346eb240a79324f386df7c80219166a65 100644 --- a/src/Cxx/Images/ImageShrink3D.cxx +++ b/src/Cxx/Images/ImageShrink3D.cxx @@ -71,6 +71,7 @@ int main(int, char *[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageSlice.cxx b/src/Cxx/Images/ImageSlice.cxx index 5eef78396329e3574fcbecc15681e58b31ed9289..f489e186991e62afa378bceaeef76b920d082257 100644 --- a/src/Cxx/Images/ImageSlice.cxx +++ b/src/Cxx/Images/ImageSlice.cxx @@ -42,6 +42,7 @@ int main(int, char *[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageSliceMapper.cxx b/src/Cxx/Images/ImageSliceMapper.cxx index bb8bfad8a6e7d075176234e94f139209bca943d9..0a4f25aeb632df5444dd35229bc487014dd0245d 100644 --- a/src/Cxx/Images/ImageSliceMapper.cxx +++ b/src/Cxx/Images/ImageSliceMapper.cxx @@ -42,6 +42,7 @@ int main(int, char *[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageSobel2D.cxx b/src/Cxx/Images/ImageSobel2D.cxx index 7bc6a01b912cb49ba060d5f56187bc06fb332c1a..597945f96e647ca2b1135aa965fa96c442427f79 100644 --- a/src/Cxx/Images/ImageSobel2D.cxx +++ b/src/Cxx/Images/ImageSobel2D.cxx @@ -164,6 +164,7 @@ int main(int, char *[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageStack.cxx b/src/Cxx/Images/ImageStack.cxx index 7c31dc89e67166e58770b52ceacc4dffd8e454f2..e0e057744a1544bc430940c9515e27fa0a47f73a 100644 --- a/src/Cxx/Images/ImageStack.cxx +++ b/src/Cxx/Images/ImageStack.cxx @@ -62,6 +62,7 @@ int main(int, char *[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ImageToPolyDataFilter.cxx b/src/Cxx/Images/ImageToPolyDataFilter.cxx index a04e2cbe22cda9501d7c4b650bc2901ecf822611..6db28bc0d32f13297aab3b9063c96b90c8e93fd7 100644 --- a/src/Cxx/Images/ImageToPolyDataFilter.cxx +++ b/src/Cxx/Images/ImageToPolyDataFilter.cxx @@ -69,6 +69,7 @@ int main(int argc, char *argv[]) renderer->SetBackground(1, 1, 1); renderWindow->SetSize(300, 250); + renderWindow->Render(); interactor->Initialize(); interactor->Start(); diff --git a/src/Cxx/Images/ImageVariance3D.cxx b/src/Cxx/Images/ImageVariance3D.cxx index 829a0fd340dbfb505868b9335b2f5128be66f956..e1ef96ec6f5616a21925fcd64dbdde7c76532763 100644 --- a/src/Cxx/Images/ImageVariance3D.cxx +++ b/src/Cxx/Images/ImageVariance3D.cxx @@ -78,6 +78,7 @@ int main(int, char *[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/Interpolation.cxx b/src/Cxx/Images/Interpolation.cxx index fb2d22dee7f41c4db14626ff857fe0393188992f..f5083a71aa340732a60b227e7514ac24722844a1 100644 --- a/src/Cxx/Images/Interpolation.cxx +++ b/src/Cxx/Images/Interpolation.cxx @@ -44,6 +44,7 @@ int main(int, char *[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/RGBToHSI.cxx b/src/Cxx/Images/RGBToHSI.cxx index 5375450a1e04f3e246157911370077d3f1ea6362..8b3d1946c24d0b4673d1b879e25b7a0219cc1f63 100644 --- a/src/Cxx/Images/RGBToHSI.cxx +++ b/src/Cxx/Images/RGBToHSI.cxx @@ -132,6 +132,7 @@ int main(int argc, char *argv[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/RGBToHSV.cxx b/src/Cxx/Images/RGBToHSV.cxx index e162ceaf7f04077c7614d0c20fb86d2d2a0d69d7..b21ab1a6e5e5b58bcd82c913e8a83349264a279b 100644 --- a/src/Cxx/Images/RGBToHSV.cxx +++ b/src/Cxx/Images/RGBToHSV.cxx @@ -132,6 +132,7 @@ int main(int argc, char *argv[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/RGBToYIQ.cxx b/src/Cxx/Images/RGBToYIQ.cxx index 145b1339141190df2ec4a4a5fdc1f5bd02e30b5f..90d7e5add6fb65ee5656a39a2666555d82b688c6 100644 --- a/src/Cxx/Images/RGBToYIQ.cxx +++ b/src/Cxx/Images/RGBToYIQ.cxx @@ -132,6 +132,7 @@ int main(int argc, char *argv[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ResizeImage.cxx b/src/Cxx/Images/ResizeImage.cxx index 5674684dc1ee58d78517010c614eeedf379c21fa..1d5eb0534a1412d34c446953172786969a2240ed 100644 --- a/src/Cxx/Images/ResizeImage.cxx +++ b/src/Cxx/Images/ResizeImage.cxx @@ -122,6 +122,7 @@ int main(int argc, char *argv[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/ResizeImageDemo.cxx b/src/Cxx/Images/ResizeImageDemo.cxx index 549d35f79be306b47c023b1759eca0a9b64bad12..b09ef79ba30ab78f853d891760878c4b951697e7 100644 --- a/src/Cxx/Images/ResizeImageDemo.cxx +++ b/src/Cxx/Images/ResizeImageDemo.cxx @@ -183,6 +183,7 @@ int main(int argc, char *argv[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Images/Transparency.cxx b/src/Cxx/Images/Transparency.cxx index d421f1d690715a07c3d771497c17f2da53dce13b..83386b3a1441792440f4b851f7fcd682f83936af 100644 --- a/src/Cxx/Images/Transparency.cxx +++ b/src/Cxx/Images/Transparency.cxx @@ -101,6 +101,7 @@ int main(int argc, char* argv[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/InfoVis/TreeMapView.cxx b/src/Cxx/InfoVis/TreeMapView.cxx index b60a7a6d48cac5db311233eda6bda20bd98e92f6..edd1253bbb9e5bc8f2d1ef3c3d3d987050e14e2e 100644 --- a/src/Cxx/InfoVis/TreeMapView.cxx +++ b/src/Cxx/InfoVis/TreeMapView.cxx @@ -67,6 +67,7 @@ int main(int argc, char* argv[]) view->Update(); view->ResetCamera(); + view->GetRenderWindow()->Render(); view->GetInteractor()->Initialize(); view->GetInteractor()->Start(); diff --git a/src/Cxx/Interaction/DoubleClick.cxx b/src/Cxx/Interaction/DoubleClick.cxx index a1daf07991049f2b2bf23868dc673efe24d1de30..f713ae46a1a7e2f7ec094ab98c20e4f3d9f72971 100644 --- a/src/Cxx/Interaction/DoubleClick.cxx +++ b/src/Cxx/Interaction/DoubleClick.cxx @@ -101,6 +101,7 @@ int main(int, char *[]) vtkSmartPointer<MouseInteractorStyleDoubleClick>::New(); renderWindowInteractor->SetInteractorStyle( style ); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Interaction/MouseEvents.cxx b/src/Cxx/Interaction/MouseEvents.cxx index 8b9bfcaeea57ea83171cfa72702c157c7f298544..20c6f3c3ad019c53988ca3403508c239e24f67ce 100644 --- a/src/Cxx/Interaction/MouseEvents.cxx +++ b/src/Cxx/Interaction/MouseEvents.cxx @@ -79,6 +79,7 @@ int main(int, char *[]) vtkSmartPointer<customMouseInteractorStyle>::New(); renderWindowInteractor->SetInteractorStyle( style ); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Interaction/MouseEventsObserver.cxx b/src/Cxx/Interaction/MouseEventsObserver.cxx index ad79a4496a8a70a9f94a5b74d1abda59c2e329a6..3cb33873bc59917137272c3e5d0ec373033d50aa 100644 --- a/src/Cxx/Interaction/MouseEventsObserver.cxx +++ b/src/Cxx/Interaction/MouseEventsObserver.cxx @@ -57,6 +57,7 @@ int main(int, char *[]) renderWindowInteractor->AddObserver ( vtkCommand::RightButtonPressEvent, clickCallback ); renderWindowInteractor->AddObserver ( vtkCommand::KeyPressEvent, clickCallback ); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Medical/MedicalDemo1.cxx b/src/Cxx/Medical/MedicalDemo1.cxx index 44d21397ea552bd2100fee94d0dd5e8ec9ce9bde..8832c3464d734978cb05d87acdefca753fd37842 100644 --- a/src/Cxx/Medical/MedicalDemo1.cxx +++ b/src/Cxx/Medical/MedicalDemo1.cxx @@ -120,6 +120,7 @@ int main (int argc, char *argv[]) aRenderer->ResetCameraClippingRange (); // Initialize the event loop and then start it. + renWin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Medical/MedicalDemo2.cxx b/src/Cxx/Medical/MedicalDemo2.cxx index f714f2d50690c7b8b1842fb53c842ed066afeec2..356ec2a576cad519a95764d9d3c82828aec064da 100644 --- a/src/Cxx/Medical/MedicalDemo2.cxx +++ b/src/Cxx/Medical/MedicalDemo2.cxx @@ -161,6 +161,7 @@ int main (int argc, char *argv[]) aRenderer->ResetCameraClippingRange (); // Initialize the event loop and then start it. + renWin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Medical/TissueLens.cxx b/src/Cxx/Medical/TissueLens.cxx index 2fb7256a027c36624a9ebc0498faffcc5ce6ea02..70a6f50db144e5fafcf185c4e1a39592fb07056c 100644 --- a/src/Cxx/Medical/TissueLens.cxx +++ b/src/Cxx/Medical/TissueLens.cxx @@ -163,6 +163,7 @@ int main (int argc, char *argv[]) aRenderer->ResetCameraClippingRange (); // Initialize the event loop and then start it. + renWin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Meshes/CapClip.cxx b/src/Cxx/Meshes/CapClip.cxx index e8873af0c97964c8790cadf4b6ac1d1374bd681e..6a2753c7ee8b558206b284e4476b384085b24d17 100644 --- a/src/Cxx/Meshes/CapClip.cxx +++ b/src/Cxx/Meshes/CapClip.cxx @@ -126,6 +126,7 @@ int main (int argc, char *argv[]) ren1->GetActiveCamera()->Dolly(1.2); ren1->ResetCameraClippingRange(); + renWin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Meshes/ClipClosedSurface.cxx b/src/Cxx/Meshes/ClipClosedSurface.cxx index e8550e40232a1cc08d727d0bad06dd9d9435edad..2676dd750652f5f9ea57380084dd00fe40c2baa2 100644 --- a/src/Cxx/Meshes/ClipClosedSurface.cxx +++ b/src/Cxx/Meshes/ClipClosedSurface.cxx @@ -112,6 +112,7 @@ int main (int argc, char *argv[]) ren1->GetActiveCamera()->Dolly(1.0); ren1->ResetCameraClippingRange(); + renWin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Meshes/InterpolateFieldDataDemo.cxx b/src/Cxx/Meshes/InterpolateFieldDataDemo.cxx index a4218cd8f48601b8ffb1ce417688b2a4d2560ca4..e39be102ae59534f7b0b327f9451fe40453cde3d 100644 --- a/src/Cxx/Meshes/InterpolateFieldDataDemo.cxx +++ b/src/Cxx/Meshes/InterpolateFieldDataDemo.cxx @@ -226,6 +226,7 @@ int main (int argc, char *argv[]) vtkSmartPointer<vtkRenderWindowInteractor> interactor = vtkSmartPointer<vtkRenderWindowInteractor>::New(); interactor->SetRenderWindow(window); + window->Render(); interactor->Initialize(); // Reset the camera to a default view, shared by all diff --git a/src/Cxx/Meshes/SplitPolyData.cxx b/src/Cxx/Meshes/SplitPolyData.cxx index 275d7562f039f6025258bd41fc8dc35bee54e36d..40294c0718699d0186ecb804ef46928cd6937533 100644 --- a/src/Cxx/Meshes/SplitPolyData.cxx +++ b/src/Cxx/Meshes/SplitPolyData.cxx @@ -111,6 +111,7 @@ int main(int argc, char *argv[]) actor->GetProperty()->SetColor(dColor); renderer->AddActor(actor); } + renWin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Modelling/ContourTriangulator.cxx b/src/Cxx/Modelling/ContourTriangulator.cxx index 88d45e15e91383a3202b86e0840c87d10f2f3c8b..beedc234c446c61679d6628c6e58ea5b389659d3 100644 --- a/src/Cxx/Modelling/ContourTriangulator.cxx +++ b/src/Cxx/Modelling/ContourTriangulator.cxx @@ -85,6 +85,7 @@ int main(int argc, char* argv[]) renderer->ResetCamera(); camera->Azimuth(180); + renWin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Modelling/ExtractLargestIsosurface.cxx b/src/Cxx/Modelling/ExtractLargestIsosurface.cxx index 973b64a71b299ea433bc6d5bb8f44e12f63f2cc0..f28581a402fbe67d1795328a19b3055a7a252b29 100644 --- a/src/Cxx/Modelling/ExtractLargestIsosurface.cxx +++ b/src/Cxx/Modelling/ExtractLargestIsosurface.cxx @@ -86,6 +86,7 @@ int main(int argc, char* argv[]) vtkSmartPointer<vtkRenderWindowInteractor> iren = vtkSmartPointer<vtkRenderWindowInteractor>::New(); iren->SetRenderWindow(renwin); + renwin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Modelling/MarchingSquares.cxx b/src/Cxx/Modelling/MarchingSquares.cxx index 156d4ed389bd2912952f0b6cf89df75dbff3897e..bb7e82cdc5492459b28625a693bce872bfc8e20c 100644 --- a/src/Cxx/Modelling/MarchingSquares.cxx +++ b/src/Cxx/Modelling/MarchingSquares.cxx @@ -69,6 +69,7 @@ int main(int argc, char* argv[]) renderer->ResetCamera(); camera->Azimuth(180); + renWin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Plotting/AreaPlot.cxx b/src/Cxx/Plotting/AreaPlot.cxx index f4c7984ef1bdda433c2befe284ce87db82bc342f..871abaf8a2545392969d43f1f4d0a4514c229eb1 100644 --- a/src/Cxx/Plotting/AreaPlot.cxx +++ b/src/Cxx/Plotting/AreaPlot.cxx @@ -109,6 +109,7 @@ int main( int, char * [] ) // Render the scene and compare the image to a reference image view->GetRenderer()->SetBackground(colors->GetColor3d("SlateGray").GetData()); view->GetRenderWindow()->SetMultiSamples(0); + view->GetRenderWindow()->Render(); view->GetInteractor()->Initialize(); view->GetInteractor()->Start(); diff --git a/src/Cxx/Plotting/BarChart.cxx b/src/Cxx/Plotting/BarChart.cxx index d7610940cf3f4c06da1f1e37e4b26bee47463346..f8b61030d62e0409620c243e6b6e69d2b3d6948a 100644 --- a/src/Cxx/Plotting/BarChart.cxx +++ b/src/Cxx/Plotting/BarChart.cxx @@ -114,6 +114,7 @@ int main(int, char*[] ) //Finally render the scene and compare the image to a reference image view->GetRenderWindow()->SetMultiSamples(0); + view->GetRenderWindow()->Render(); view->GetInteractor()->Initialize(); view->GetInteractor()->Start(); diff --git a/src/Cxx/Plotting/ChartMatrix.cxx b/src/Cxx/Plotting/ChartMatrix.cxx index 1be2e350dbeebf92c05b2cd24f967498024af200..1d48205b4f6c4e6187efb4b96c6f5daa13c42963 100644 --- a/src/Cxx/Plotting/ChartMatrix.cxx +++ b/src/Cxx/Plotting/ChartMatrix.cxx @@ -150,6 +150,7 @@ int main( int, char * [] ) // Finally render the scene and compare the image to a reference image view->GetRenderer()->SetBackground(colors->GetColor3d("navajo_white").GetData()); + view->GetRenderWindow()->Render(); view->GetInteractor()->Initialize(); view->GetInteractor()->Start(); return EXIT_SUCCESS; diff --git a/src/Cxx/Plotting/ChartsOn3DScene.cxx b/src/Cxx/Plotting/ChartsOn3DScene.cxx index 999e7836355a14508050bde715c706412edfce7e..0683c7e8f6f996f2cad38fb81c449f59ac907ab6 100644 --- a/src/Cxx/Plotting/ChartsOn3DScene.cxx +++ b/src/Cxx/Plotting/ChartsOn3DScene.cxx @@ -115,6 +115,7 @@ int main(int , char * []) points->SetWidth(1.0); renwin->SetMultiSamples(0); + renwin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Plotting/FunctionalBagPlot.cxx b/src/Cxx/Plotting/FunctionalBagPlot.cxx index b0ad17745ec6b9e7faca1847f1b219ca735deda5..ac1000fda25cc90194316cfbcc3d0b9916949670 100644 --- a/src/Cxx/Plotting/FunctionalBagPlot.cxx +++ b/src/Cxx/Plotting/FunctionalBagPlot.cxx @@ -134,6 +134,7 @@ int main(int, char * []) view->GetRenderer()->SetBackground(colors->GetColor3d("SlateGray").GetData()); // Render the scene + view->GetRenderWindow()->Render(); view->GetInteractor()->Initialize(); view->GetInteractor()->Start(); diff --git a/src/Cxx/Plotting/HistogramBarChart.cxx b/src/Cxx/Plotting/HistogramBarChart.cxx index af5da384b6261f6b3884bfd038bb59118ed51945..a3ea786913bcc236a00193bbe3ea75d3937a1b7e 100644 --- a/src/Cxx/Plotting/HistogramBarChart.cxx +++ b/src/Cxx/Plotting/HistogramBarChart.cxx @@ -192,6 +192,7 @@ int main( int argc, char *argv[] ) vtkSmartPointer<vtkRenderWindowInteractor>::New(); interactor->SetRenderWindow( renderWindow ); + renderWindow->Render(); // Initialize the event loop and then start it interactor->Initialize(); interactor->Start(); diff --git a/src/Cxx/Plotting/LinePlot.cxx b/src/Cxx/Plotting/LinePlot.cxx index 48f5a1409b7aee44801e903a2af90ae41de173a1..05e45bbdbfe3d9743f5c4d47d32d0ed0c3bddd74 100644 --- a/src/Cxx/Plotting/LinePlot.cxx +++ b/src/Cxx/Plotting/LinePlot.cxx @@ -71,6 +71,7 @@ int main(int, char *[]) //view->GetRenderWindow()->SetMultiSamples(0); // Start interactor + view->GetRenderWindow()->Render(); view->GetInteractor()->Initialize(); view->GetInteractor()->Start(); diff --git a/src/Cxx/Plotting/ParallelCoordinates.cxx b/src/Cxx/Plotting/ParallelCoordinates.cxx index 562c8c9ee57c818d0eeb501d80415603ccef396a..90926a91029e5990a08c77d4a82c00b60a1ba6f8 100644 --- a/src/Cxx/Plotting/ParallelCoordinates.cxx +++ b/src/Cxx/Plotting/ParallelCoordinates.cxx @@ -54,6 +54,7 @@ int main(int, char*[]) view->GetRenderWindow()->SetMultiSamples(0); + view->GetRenderWindow()->Render(); view->GetInteractor()->Initialize(); view->GetInteractor()->Start(); diff --git a/src/Cxx/Plotting/PieChart.cxx b/src/Cxx/Plotting/PieChart.cxx index 66e1c398fb0e99f8063aec804a633620af451328..eb2c93d75f3b042d4aff6843984c592d11bc880e 100644 --- a/src/Cxx/Plotting/PieChart.cxx +++ b/src/Cxx/Plotting/PieChart.cxx @@ -64,6 +64,7 @@ int main(int, char*[]) //Finally render the scene and compare the image to a reference image view->GetRenderWindow()->SetMultiSamples(0); + view->GetRenderWindow()->Render(); view->GetInteractor()->Initialize(); view->GetInteractor()->Start(); diff --git a/src/Cxx/Plotting/PlotLine3D.cxx b/src/Cxx/Plotting/PlotLine3D.cxx index 1f0000466c6c668f24f1c69db4cbb997c241d832..27649294536ee7ceaea91154b8117932b94991e1 100644 --- a/src/Cxx/Plotting/PlotLine3D.cxx +++ b/src/Cxx/Plotting/PlotLine3D.cxx @@ -89,6 +89,7 @@ int main(int, char * []) // Finally render the scene. view->GetRenderer()->SetBackground(colors->GetColor3d("Mint").GetData()); + view->GetRenderWindow()->Render(); view->GetInteractor()->Initialize(); view->GetInteractor()->Start(); diff --git a/src/Cxx/Plotting/ScatterPlot.cxx b/src/Cxx/Plotting/ScatterPlot.cxx index 8838258cd4cd9ed538486d6ef7fbcaeeb67cf11e..c7374cd957a32613c452ea6d1b532a29a75ff844 100644 --- a/src/Cxx/Plotting/ScatterPlot.cxx +++ b/src/Cxx/Plotting/ScatterPlot.cxx @@ -80,6 +80,7 @@ int main(int, char*[]) //Finally render the scene view->GetRenderWindow()->SetMultiSamples(0); + view->GetRenderWindow()->Render(); view->GetInteractor()->Initialize(); view->GetInteractor()->Start(); diff --git a/src/Cxx/Plotting/StackedBar.cxx b/src/Cxx/Plotting/StackedBar.cxx index c1a7fe5647537565bf1ba33ffae43f8a6325e4b9..07788bdd37ac2b21ed87a1bbfafaf70d5b5e298e 100644 --- a/src/Cxx/Plotting/StackedBar.cxx +++ b/src/Cxx/Plotting/StackedBar.cxx @@ -180,6 +180,7 @@ int main(int , char * []) //Finally render the scene and compare the image to a reference image view->GetRenderWindow()->SetMultiSamples(0); + view->GetRenderWindow()->Render(); view->GetInteractor()->Initialize(); view->GetInteractor()->Start(); diff --git a/src/Cxx/Plotting/StackedPlot.cxx b/src/Cxx/Plotting/StackedPlot.cxx index f1ffae8849e52de3980c5c46db66f2a527d688e3..00b5fb7b59176e82fa01903450743c14c310e380 100644 --- a/src/Cxx/Plotting/StackedPlot.cxx +++ b/src/Cxx/Plotting/StackedPlot.cxx @@ -125,6 +125,7 @@ int main(int, char*[]) // Finally render the scene and compare the image to a reference image view->GetRenderWindow()->SetMultiSamples(0); + view->GetRenderWindow()->Render(); view->GetInteractor()->Initialize(); view->GetInteractor()->Start(); diff --git a/src/Cxx/Points/CMakeLists.txt b/src/Cxx/Points/CMakeLists.txt index 8f64113ff976da0402c9c31c52acbb975c40a963..05fe01a1a8a35bd279a3fd2b71060a6075b813e9 100644 --- a/src/Cxx/Points/CMakeLists.txt +++ b/src/Cxx/Points/CMakeLists.txt @@ -4,6 +4,7 @@ if(NOT VTK_BINARY_DIR) set(optional "") Add_Optional_If_In_Library(Powercrust "${VTK_AVAILABLE_COMPONENTS}" optional) Add_Optional_If_In_Library(PoissonReconstruction "${VTK_AVAILABLE_COMPONENTS}" optional) +message(STATUS "optional: ${optional}") set(VTK_LIBRARIES "") find_package(VTK COMPONENTS vtkCommonColor diff --git a/src/Cxx/Points/DensifyPoints.cxx b/src/Cxx/Points/DensifyPoints.cxx index ae991c7f919c8c52db5945b4ace49d8a02d8e2e2..1e19bd00dcdbe177c359d1f62d1c40df666edbea 100644 --- a/src/Cxx/Points/DensifyPoints.cxx +++ b/src/Cxx/Points/DensifyPoints.cxx @@ -117,6 +117,7 @@ int main (int argc, char *argv[]) ren1->GetActiveCamera()->Dolly(1.0); ren1->ResetCameraClippingRange(); + renWin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Points/ExtractClusters.cxx b/src/Cxx/Points/ExtractClusters.cxx index 25f3872e5146f04a5be0b49fc8168141a02c6a1c..c90e09367e50f1920959d2e742c00991bb3e61a3 100644 --- a/src/Cxx/Points/ExtractClusters.cxx +++ b/src/Cxx/Points/ExtractClusters.cxx @@ -114,6 +114,7 @@ int main (int, char *[]) ren1->GetActiveCamera()->Dolly(1.5); ren1->ResetCameraClippingRange(); + renWin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Points/ExtractPointsDemo.cxx b/src/Cxx/Points/ExtractPointsDemo.cxx index 134846bb3ecb4abfd83811d4d1bddb937357ba62..65e72e101aa2aebc5172514a56b1398e6ecd8548 100644 --- a/src/Cxx/Points/ExtractPointsDemo.cxx +++ b/src/Cxx/Points/ExtractPointsDemo.cxx @@ -121,6 +121,7 @@ int main (int /*argc*/, char * /* argv */ []) vtkSmartPointer<vtkRenderWindowInteractor>::New(); iren->SetRenderWindow(renderWindow); + renderWindow->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Points/ExtractSurface.cxx b/src/Cxx/Points/ExtractSurface.cxx index aea44ee0c5283d0a34e375977305b6f202852832..e2c2018d622cec0ab82218f7c400c97014f67295 100644 --- a/src/Cxx/Points/ExtractSurface.cxx +++ b/src/Cxx/Points/ExtractSurface.cxx @@ -130,6 +130,7 @@ int main (int argc, char *argv[]) ren1->GetActiveCamera()->Dolly(1.0); ren1->ResetCameraClippingRange(); + renWin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Points/ExtractSurfaceDemo.cxx b/src/Cxx/Points/ExtractSurfaceDemo.cxx index 239679a3d4ffb2b07d94a1077c697be98748ec37..199480d67eb214e6ceebca45251039e66c1cd2a3 100644 --- a/src/Cxx/Points/ExtractSurfaceDemo.cxx +++ b/src/Cxx/Points/ExtractSurfaceDemo.cxx @@ -148,6 +148,7 @@ int main (int argc, char *argv[]) ren1->GetActiveCamera()->Dolly(1.0); ren1->ResetCameraClippingRange(); + renWin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Points/FitImplicitFunction.cxx b/src/Cxx/Points/FitImplicitFunction.cxx index 663c46829e6d8cbbf44ec2acc1f175fbeca545fa..258cefde83d4d356a53284c2c5a0c4d8e17c3b8e 100644 --- a/src/Cxx/Points/FitImplicitFunction.cxx +++ b/src/Cxx/Points/FitImplicitFunction.cxx @@ -85,6 +85,7 @@ int main (int, char *[]) ren1->GetActiveCamera()->Dolly(1.0); ren1->ResetCameraClippingRange(); + renWin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Points/MaskPointsFilter.cxx b/src/Cxx/Points/MaskPointsFilter.cxx index 9faae91d06daeb8ca9e949b2d12409494739557c..f57726eed59c1299d6600c18f4ebde8533c315d0 100644 --- a/src/Cxx/Points/MaskPointsFilter.cxx +++ b/src/Cxx/Points/MaskPointsFilter.cxx @@ -116,6 +116,7 @@ int main (int argc, char *argv[]) ren1->GetActiveCamera()->Dolly(1.0); ren1->ResetCameraClippingRange(); + renWin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Points/NormalEstimation.cxx b/src/Cxx/Points/NormalEstimation.cxx index fdfb4f773e387cc8887bda53f2d6638346a794e1..520c50219eb9f9491fb97148b0b94f980f61bfad 100644 --- a/src/Cxx/Points/NormalEstimation.cxx +++ b/src/Cxx/Points/NormalEstimation.cxx @@ -92,6 +92,7 @@ int main (int, char *[]) ren1->GetActiveCamera()->Dolly(1.0); ren1->ResetCameraClippingRange(); + renWin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Points/PowercrustExtractSurface.cxx b/src/Cxx/Points/PowercrustExtractSurface.cxx index 8c29174c0a988b3f1a0a3e91dbbcdc269c7db14d..9d818aba0c5e008e51d0ebd7b639c63954ef83c4 100644 --- a/src/Cxx/Points/PowercrustExtractSurface.cxx +++ b/src/Cxx/Points/PowercrustExtractSurface.cxx @@ -76,6 +76,7 @@ int main (int argc, char *argv[]) ren1->GetActiveCamera()->Dolly(1.0); ren1->ResetCameraClippingRange(); + renWin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Points/RadiusOutlierRemoval.cxx b/src/Cxx/Points/RadiusOutlierRemoval.cxx index eb237f7b3e4d6c7a886977eafc30a0e5053e7a25..73ccabd19662f86cee01e38d642b70a50d922c72 100644 --- a/src/Cxx/Points/RadiusOutlierRemoval.cxx +++ b/src/Cxx/Points/RadiusOutlierRemoval.cxx @@ -118,6 +118,7 @@ int main (int argc, char *argv[]) ren1->GetActiveCamera()->Dolly(1.5); ren1->ResetCameraClippingRange(); + renWin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Points/SignedDistance.cxx b/src/Cxx/Points/SignedDistance.cxx index 9c36d1b2fab406bece7ef1560a8b55994ab3e8f6..3e483f1a289724e780652f257b70475f342995f0 100644 --- a/src/Cxx/Points/SignedDistance.cxx +++ b/src/Cxx/Points/SignedDistance.cxx @@ -164,6 +164,7 @@ int main (int argc, char *argv[]) ren1->GetActiveCamera()->Dolly(1.5); ren1->ResetCameraClippingRange(); + renWin->Render(); iren->Initialize(); iren->Start(); std::cout << distance->GetOutput()->GetScalarRange()[0] << ", " diff --git a/src/Cxx/Points/UnsignedDistance.cxx b/src/Cxx/Points/UnsignedDistance.cxx index 2b4672612e5bed8e905e4c4d0f38abf77fca0773..cff0cb3f679b8e23dd30b31963afcd12d3f4a3fa 100644 --- a/src/Cxx/Points/UnsignedDistance.cxx +++ b/src/Cxx/Points/UnsignedDistance.cxx @@ -152,6 +152,7 @@ int main (int argc, char *argv[]) ren1->GetActiveCamera()->Dolly(1.5); ren1->ResetCameraClippingRange(); + renWin->Render(); iren->Initialize(); iren->Start(); std::cout << distance->GetOutput()->GetScalarRange()[0] << ", " diff --git a/src/Cxx/PolyData/ColorDisconnectedRegions.cxx b/src/Cxx/PolyData/ColorDisconnectedRegions.cxx index 7d3db4646dcc14b95bd45e14fd5406d2258e40d9..8d3de1239805a67d4351e6404fe18cc60a9585d0 100644 --- a/src/Cxx/PolyData/ColorDisconnectedRegions.cxx +++ b/src/Cxx/PolyData/ColorDisconnectedRegions.cxx @@ -63,6 +63,7 @@ int main(int, char*[]) vtkSmartPointer<vtkRenderWindowInteractor> interactor = vtkSmartPointer<vtkRenderWindowInteractor>::New(); interactor->SetRenderWindow(renderWindow); + renderWindow->Render(); interactor->Initialize(); interactor->Start(); diff --git a/src/Cxx/PolyData/ExtractOutsideSurface.cxx b/src/Cxx/PolyData/ExtractOutsideSurface.cxx index 5afc36c9e6d15ddd9319ce9d67666ef7ea2d45d5..10082b5e9d3a81cafffb3435b46f8d31f9b95624 100644 --- a/src/Cxx/PolyData/ExtractOutsideSurface.cxx +++ b/src/Cxx/PolyData/ExtractOutsideSurface.cxx @@ -152,6 +152,7 @@ int main(int argc, char *argv[]) vtkSmartPointer<vtkRenderWindowInteractor> iren = vtkSmartPointer<vtkRenderWindowInteractor>::New(); iren->SetRenderWindow(renwin); + renwin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/PolyData/GradientFilter.cxx b/src/Cxx/PolyData/GradientFilter.cxx index bf265b304eaffdd40b4a86e252b838b82e8aa53b..9c573cf2bbd593632280e39698224cac49775138 100644 --- a/src/Cxx/PolyData/GradientFilter.cxx +++ b/src/Cxx/PolyData/GradientFilter.cxx @@ -103,6 +103,7 @@ int main(int argc, char *argv[]) vtkSmartPointer<vtkRenderWindowInteractor> iren = vtkSmartPointer<vtkRenderWindowInteractor>::New(); iren->SetRenderWindow(renwin); + renwin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/PolyData/PolyDataConnectivityFilter_LargestRegion.cxx b/src/Cxx/PolyData/PolyDataConnectivityFilter_LargestRegion.cxx index 7f3717f64541c33db27ce557b69d6f473317fd0b..0bcf49df626ca0182aa8eee104b1770697d236a5 100644 --- a/src/Cxx/PolyData/PolyDataConnectivityFilter_LargestRegion.cxx +++ b/src/Cxx/PolyData/PolyDataConnectivityFilter_LargestRegion.cxx @@ -78,6 +78,7 @@ int main(int, char *[]) vtkSmartPointer<vtkRenderWindowInteractor> interactor = vtkSmartPointer<vtkRenderWindowInteractor>::New(); interactor->SetRenderWindow(renderWindow); + renderWindow->Render(); interactor->Initialize(); interactor->Start(); diff --git a/src/Cxx/PolyData/PolyDataConnectivityFilter_SpecifiedRegion.cxx b/src/Cxx/PolyData/PolyDataConnectivityFilter_SpecifiedRegion.cxx index 390e7ddcab66e64dc5a6662c6d6283e70f73fa71..4f9d8db1a86a437bcf5dabea2b433d9a548beb78 100644 --- a/src/Cxx/PolyData/PolyDataConnectivityFilter_SpecifiedRegion.cxx +++ b/src/Cxx/PolyData/PolyDataConnectivityFilter_SpecifiedRegion.cxx @@ -77,6 +77,7 @@ int main(int, char *[]) vtkSmartPointer<vtkRenderWindowInteractor> interactor = vtkSmartPointer<vtkRenderWindowInteractor>::New(); interactor->SetRenderWindow(renderWindow); + renderWindow->Render(); interactor->Initialize(); interactor->Start(); diff --git a/src/Cxx/PolyData/PolyDataPointSampler.cxx b/src/Cxx/PolyData/PolyDataPointSampler.cxx index 874537bd24218db803a043b457b92482391c11c0..75490f707cace1b1f923d82842797d9b29061bcc 100644 --- a/src/Cxx/PolyData/PolyDataPointSampler.cxx +++ b/src/Cxx/PolyData/PolyDataPointSampler.cxx @@ -116,6 +116,7 @@ int main (int argc, char *argv[]) ren1->GetActiveCamera()->Dolly(1.0); ren1->ResetCameraClippingRange(); + renWin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/PolyData/RemoveOutsideSurface.cxx b/src/Cxx/PolyData/RemoveOutsideSurface.cxx index 3b0df638ea11713d5784416cd5d2339db3aac83c..de9bb5e95076352c463c9668b5b7aa201095bb1e 100644 --- a/src/Cxx/PolyData/RemoveOutsideSurface.cxx +++ b/src/Cxx/PolyData/RemoveOutsideSurface.cxx @@ -194,6 +194,7 @@ int main(int argc, char *argv[]) vtkSmartPointer<vtkRenderWindowInteractor> iren = vtkSmartPointer<vtkRenderWindowInteractor>::New(); iren->SetRenderWindow(renwin); + renwin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/PolyData/ThinPlateSplineTransform.cxx b/src/Cxx/PolyData/ThinPlateSplineTransform.cxx index e33593fe7119c6ece2bf59397d83770772d17723..757146d3618f28ce64ed7e52c1f53b3089a12f08 100644 --- a/src/Cxx/PolyData/ThinPlateSplineTransform.cxx +++ b/src/Cxx/PolyData/ThinPlateSplineTransform.cxx @@ -118,6 +118,7 @@ int main(int argc, char *argv[]) vtkSmartPointer< vtkInteractorStyleTerrain > style = vtkSmartPointer< vtkInteractorStyleTerrain >::New(); interactor->SetInteractorStyle( style ); + window->Render(); interactor->Initialize(); interactor->Start(); diff --git a/src/Cxx/Qt/QtBarChart.cxx b/src/Cxx/Qt/QtBarChart.cxx index 388bf1ba096697f517d1210793ac7901191e7969..b7303df0595121e153e634b017bb0c4a81dd1637 100644 --- a/src/Cxx/Qt/QtBarChart.cxx +++ b/src/Cxx/Qt/QtBarChart.cxx @@ -73,6 +73,7 @@ int main(int, char*[] ) // Finally render the scene and compare the image to a reference image view->GetRenderWindow()->SetMultiSamples(0); view->GetRenderWindow()->SetWindowName("QtBarChart"); + view->GetRenderWindow()-Render(); view->GetInteractor()->Initialize(); view->GetInteractor()->Start(); diff --git a/src/Cxx/Texture/TextureThreshold.cxx b/src/Cxx/Texture/TextureThreshold.cxx index 415c6796c28824233388d1a18b8b2ec52166b46a..e88ebabfc5d377677c62609c0c0da76777a7f930 100644 --- a/src/Cxx/Texture/TextureThreshold.cxx +++ b/src/Cxx/Texture/TextureThreshold.cxx @@ -177,6 +177,7 @@ int main(int argc, char* argv[]) cam->SetViewUp(-0.0610856, 0.987798, -0.143262); ren->SetActiveCamera(cam); + renWin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Utilities/Timer.cxx b/src/Cxx/Utilities/Timer.cxx index bef000eef867ecad242859c46c738b93f96a4f41..88001a792427f166304110f9832da3fcad8725fa 100644 --- a/src/Cxx/Utilities/Timer.cxx +++ b/src/Cxx/Utilities/Timer.cxx @@ -43,6 +43,7 @@ int main(int, char *[]) interactor->SetRenderWindow(renderWindow); // Initialize must be called prior to creating timer events. + renderWindow->Render(); interactor->Initialize(); // Sign up to receive TimerEvent diff --git a/src/Cxx/Utilities/ViewportBorders.cxx b/src/Cxx/Utilities/ViewportBorders.cxx index 816e9434611b445be1ac11bb788190589b3b412b..83b7ab432c3bca14553293099287512d8d6a50fb 100644 --- a/src/Cxx/Utilities/ViewportBorders.cxx +++ b/src/Cxx/Utilities/ViewportBorders.cxx @@ -77,6 +77,7 @@ int main (int argc, char *argv[]) vtkSmartPointer<vtkRenderWindowInteractor> interactor = vtkSmartPointer<vtkRenderWindowInteractor>::New(); interactor->SetRenderWindow(renderWindow); + renderWindow->Render(); interactor->Initialize(); interactor->Start(); diff --git a/src/Cxx/Visualization/Blow.cxx b/src/Cxx/Visualization/Blow.cxx index 63c08bfc4a48e12ee928d8df4d61f2c70ba7551e..0d39d40ba59b805c7cc1a06985b8731e7163c771 100644 --- a/src/Cxx/Visualization/Blow.cxx +++ b/src/Cxx/Visualization/Blow.cxx @@ -183,6 +183,7 @@ int main(int argc, char* argv[]) } } + renWin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Visualization/CameraModel1.cxx b/src/Cxx/Visualization/CameraModel1.cxx index 18250c461c88db44605653374d59aa932359d43c..0e0e95dc9db92b92027d0521c7a91d826e788391 100644 --- a/src/Cxx/Visualization/CameraModel1.cxx +++ b/src/Cxx/Visualization/CameraModel1.cxx @@ -359,6 +359,7 @@ int main(int /* argc */, char* /* argv */ []) text3->SetDisplayPosition(20, 150); ren1->AddActor2D(text3); + renWin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Visualization/CameraModel2.cxx b/src/Cxx/Visualization/CameraModel2.cxx index d6941298523020ba4318ee70504feeccd9df92ac..a36eebdea35efb489e8baa3373e8e58b6fe89b5f 100644 --- a/src/Cxx/Visualization/CameraModel2.cxx +++ b/src/Cxx/Visualization/CameraModel2.cxx @@ -370,6 +370,7 @@ int main(int /* argc */, char* /* argv */ []) text3->SetDisplayPosition(20, 150); ren1->AddActor2D(text3); + renWin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Visualization/ImageOrder.cxx b/src/Cxx/Visualization/ImageOrder.cxx index 55750a8e5a0e40bb4030acca8ab49f8d4197d2fb..4e09f9e34cf9c7e0bcb574933b54ba54ee44addb 100644 --- a/src/Cxx/Visualization/ImageOrder.cxx +++ b/src/Cxx/Visualization/ImageOrder.cxx @@ -55,6 +55,7 @@ int main(int, char* []) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Visualization/ImageOrientation.cxx b/src/Cxx/Visualization/ImageOrientation.cxx index 76017574cf76aab703aa33a667341ab3f4857016..3652218f7e199737a76d043e387ed667803320d2 100644 --- a/src/Cxx/Visualization/ImageOrientation.cxx +++ b/src/Cxx/Visualization/ImageOrientation.cxx @@ -71,6 +71,7 @@ int main(int, char *[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Visualization/ImageTransparency.cxx b/src/Cxx/Visualization/ImageTransparency.cxx index 93484697bec234d7d1e66503bcbc6b9fc27bceb7..893016f1571787a68883bc130c1d379cf06781fe 100644 --- a/src/Cxx/Visualization/ImageTransparency.cxx +++ b/src/Cxx/Visualization/ImageTransparency.cxx @@ -42,6 +42,7 @@ int main(int, char*[]) renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Visualization/SelectWindowRegion.cxx b/src/Cxx/Visualization/SelectWindowRegion.cxx index 4115f2c50879c74f88b9489888e8b19b2a463418..90bdb33ae9eaeb8ee348660f04dfb0a919797e0b 100644 --- a/src/Cxx/Visualization/SelectWindowRegion.cxx +++ b/src/Cxx/Visualization/SelectWindowRegion.cxx @@ -66,6 +66,7 @@ int main(int argc, char* argv[]) // Render and start interaction renderWindowInteractor->SetRenderWindow ( renderWindow ); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/Visualization/VectorField.cxx b/src/Cxx/Visualization/VectorField.cxx index 6300d47ac85decc81b1d427a5c7b383dd2dd74b9..76c1abc8247d8967de672d292a09d8ccbfef9b2c 100644 --- a/src/Cxx/Visualization/VectorField.cxx +++ b/src/Cxx/Visualization/VectorField.cxx @@ -110,6 +110,7 @@ int main(int, char*[]) // Render and start interaction renderWindowInteractor->SetRenderWindow(renderWindow); + renderWindow->Render(); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); diff --git a/src/Cxx/VisualizationAlgorithms/Motor.cxx b/src/Cxx/VisualizationAlgorithms/Motor.cxx index aac7cfa512c98d36bd3170ca3d6d8fe23d2e799d..631a10dec8e4e26886f2bee006ffa0b272a51ab1 100644 --- a/src/Cxx/VisualizationAlgorithms/Motor.cxx +++ b/src/Cxx/VisualizationAlgorithms/Motor.cxx @@ -132,6 +132,7 @@ int main(int argc, char* argv[]) ren->SetActiveCamera(camera); // Render the image. + renWin->Render(); iren->Initialize(); iren->Start(); diff --git a/src/Cxx/Widgets/ContourWidget.cxx b/src/Cxx/Widgets/ContourWidget.cxx index 734275a36e6fcf7364d5c1783757bddb07047069..7a0b56cd81455c37d6dfbf3d704cbd6139f50e3a 100644 --- a/src/Cxx/Widgets/ContourWidget.cxx +++ b/src/Cxx/Widgets/ContourWidget.cxx @@ -77,6 +77,7 @@ int main( int /* argc */, char * /* argv */ [] ) renderer->ResetCamera(); // Reposition camera to fit the scene elements // Start the interaction + renderWindow->Render(); interactor->Start(); return EXIT_SUCCESS;