Skip to content
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.

Commit

Permalink
First release version
Browse files Browse the repository at this point in the history
- maybe fixed persistent bug
  • Loading branch information
BorisBogaerts authored and Boris committed Dec 4, 2018
1 parent 54aacda commit 257eefc
Show file tree
Hide file tree
Showing 24 changed files with 561 additions and 103 deletions.
2 changes: 1 addition & 1 deletion connectWithVrep.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
<AdditionalOptions> /machine:x64 %(AdditionalOptions)</AdditionalOptions>
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;comdlg32.lib;advapi32.lib;C:\dev\vtk\bin\lib\Release\vtkDomainsChemistryOpenGL2-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkFiltersFlowPaths-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkFiltersGeneric-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkFiltersHyperTree-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkFiltersParallelImaging-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkFiltersPoints-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkFiltersProgrammable-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkFiltersSMP-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkFiltersSelection-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkFiltersTexture-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkFiltersTopology-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkFiltersVerdict-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkverdict-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkGeovisCore-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkproj4-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkIOAMR-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkIOEnSight-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkIOExodus-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkIOExportOpenGL2-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkIOImport-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkIOInfovis-8.1.lib;C:\dev\vtk\bin\lib\Release\vtklibxml2-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkIOLSDyna-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkIOMINC-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkIOMovie-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkoggtheora-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkIOPLY-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkIOParallel-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkjsoncpp-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkIOParallelXML-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkIOSQL-8.1.lib;C:\dev\vtk\bin\lib\Release\vtksqlite-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkIOTecplotTable-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkIOVideo-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkImagingMorphological-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkImagingOpenGL2-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkImagingStatistics-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkImagingStencil-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkInteractionImage-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkLocalExample-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkRenderingContextOpenGL2-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkRenderingImage-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkRenderingLOD-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkRenderingOpenVR-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkRenderingVolumeOpenGL2-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkViewsContext2D-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkViewsInfovis-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkDomainsChemistry-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkFiltersAMR-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkIOExport-8.1.lib;C:\dev\vtk\bin\lib\Release\vtklibharu-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkRenderingGL2PSOpenGL2-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkgl2ps-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkFiltersParallel-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkexoIIc-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkIOGeometry-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkIONetCDF-8.1.lib;C:\dev\vtk\bin\lib\Release\vtknetcdfcpp-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkNetCDF-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkhdf5_hl-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkhdf5-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkParallelCore-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkIOLegacy-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkRenderingOpenGL2-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkglew-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkImagingMath-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkChartsCore-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkRenderingContext2D-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkFiltersImaging-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkInfovisLayout-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkInfovisCore-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkViewsCore-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkInteractionWidgets-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkFiltersHybrid-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkImagingGeneral-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkImagingSources-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkFiltersModeling-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkImagingHybrid-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkIOImage-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkDICOMParser-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkmetaio-8.1.lib;comctl32.lib;wsock32.lib;C:\dev\vtk\bin\lib\Release\vtkpng-8.1.lib;C:\dev\vtk\bin\lib\Release\vtktiff-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkjpeg-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkInteractionStyle-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkFiltersExtraction-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkFiltersStatistics-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkImagingFourier-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkalglib-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkRenderingAnnotation-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkImagingColor-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkRenderingVolume-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkImagingCore-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkIOXML-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkIOXMLParser-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkIOCore-8.1.lib;C:\dev\vtk\bin\lib\Release\vtklz4-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkexpat-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkRenderingLabel-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkRenderingFreeType-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkRenderingCore-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkCommonColor-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkFiltersGeometry-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkFiltersSources-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkFiltersGeneral-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkCommonComputationalGeometry-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkFiltersCore-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkCommonExecutionModel-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkCommonDataModel-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkCommonTransforms-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkCommonMisc-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkCommonMath-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkCommonSystem-8.1.lib;C:\dev\vtk\bin\lib\Release\vtkCommonCore-8.1.lib;C:\dev\vtk\bin\lib\Release\vtksys-8.1.lib</AdditionalDependencies>
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<GenerateDebugInformation>Debug</GenerateDebugInformation>
<GenerateDebugInformation>true</GenerateDebugInformation>
<IgnoreSpecificDefaultLibraries>%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
<ImportLibrary>D:/OneDrive - uantwerpen/C++/connectWithVrep/Debug/connectWithVrep.lib</ImportLibrary>
<ProgramDataBaseFile>D:/OneDrive - uantwerpen/C++/connectWithVrep/Debug/connectWithVrep.pdb</ProgramDataBaseFile>
Expand Down
30 changes: 30 additions & 0 deletions pathObject.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
// Copyright (c) 2018, Boris Bogaerts
// All rights reserved.

// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:

// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.

// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.

// 3. Neither the name of the copyright holder nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.

// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "pathObject.h"
#include <iostream>
#include <cstdlib>
Expand Down
30 changes: 30 additions & 0 deletions pathObject.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
// Copyright (c) 2018, Boris Bogaerts
// All rights reserved.

// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:

// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.

// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.

// 3. Neither the name of the copyright holder nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.

// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#pragma once
#include "extApi.h"
#include <vtkPolyData.h>
Expand Down
30 changes: 30 additions & 0 deletions renderwindow_support.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
// Copyright (c) 2018, Boris Bogaerts
// All rights reserved.

// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:

// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.

// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.

// 3. Neither the name of the copyright holder nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.

// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#pragma once

#include "renderwindow_support.h"
Expand Down
30 changes: 30 additions & 0 deletions renderwindow_support.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
// Copyright (c) 2018, Boris Bogaerts
// All rights reserved.

// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:

// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.

// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.

// 3. Neither the name of the copyright holder nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.

// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#pragma once

#include <vtkSmartPointer.h>
Expand Down
30 changes: 30 additions & 0 deletions stereoPanorama_renderwindow_support.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
// Copyright (c) 2018, Boris Bogaerts
// All rights reserved.

// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:

// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.

// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.

// 3. Neither the name of the copyright holder nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.

// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "stereoPanorama_renderwindow_support.h"
#include <vector>
#include "extApi.h"
Expand Down
30 changes: 30 additions & 0 deletions stereoPanorama_renderwindow_support.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
// Copyright (c) 2018, Boris Bogaerts
// All rights reserved.

// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:

// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.

// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.

// 3. Neither the name of the copyright holder nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.

// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#pragma once
#include "vr_renderwindow_support.h"
#include <vtkSmartPointer.h>
Expand Down
47 changes: 43 additions & 4 deletions timerClass.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
// Copyright (c) 2018, Boris Bogaerts
// All rights reserved.

// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:

// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.

// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.

// 3. Neither the name of the copyright holder nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.

// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "timerClass.h"
#include <sstream>

Expand All @@ -13,14 +43,23 @@ void timerClass::increment() {
time = (std::chrono::duration_cast<std::chrono::milliseconds>(tn - t1).count());
time = (1000 * countInterval) / (time);
float temp = *scale;
std::cout << '\r' << "fps: " << (int)time << " time thread 2 (ms): " << time2 << " Coverage: " << int((*coverage) * 100) << "% Scale: " << 100.0 / temp << "%";
stringstream ss;
ss << "Fps: " << (int)time << "\nThread 2 (ms): " << time2 << "\nCoverage: " << int((*coverage) * 100) << "% \nScale: " << 100.0 / temp << "%";
text = ss.str();
if (mode == 0) {
std::cout << '\r' << "fps: " << (int)time << " Scale: " << 100.0 / temp << "%";
stringstream ss;
ss << "Fps: " << (int)time << " \nScale: " << 100.0 / temp << "%";
text = ss.str();
} else if(mode == 1) {
std::cout << '\r' << "fps: " << (int)time << " time thread 2 (ms): " << time2 << " Coverage: " << int((*coverage) * 100) << "% Scale: " << 100.0 / temp << "%";
stringstream ss;
ss << "Fps: " << (int)time << "\nThread 2 (ms): " << time2 << "\nCoverage: " << int((*coverage) * 100) << "% \nScale: " << 100.0 / temp << "%";
text = ss.str();
}

}
}

void timerClass::increment2() {
mode = 1;
if (counter2 == 0) {
t2 = Clock::now();
}; counter2++;
Expand Down
Loading

0 comments on commit 257eefc

Please sign in to comment.