CamiTK property of type double limited to int limits
As a CamiTK dev, I noticed that there is a bug with the CamiTK Property of type double. Namely, it is limited to the limits of a type int (i.e. from -2147483648 to 2147483647).
Steps to Reproduce:
To reproduce this bug create a CamiTK property of type double and either:
- set it to any value outside the int limits (but comprised in the double range) in your code, run the code and observe the property being brought back to the closest int limit; or
- set it to any value within the int limits, run the code, try to set the property value to any value outside the int limits (but comprised in the double range), and click apply in the property explorer tab: on refresh of the property explorer the value is brought back to the closest int limit.
Interpretation & Possible fixes:
change the INT_MAX macro to the DBL_MAX macro at following lines in qtpropertymanager.cpp :
l.945 : double minVal{-DBL_MAX };
l.946 : double maxVal{ DBL_MAX };
CamiTK Version:
- CamiTK version........................... CamiTK 4.1.2
- CamiTK Short Version..................... camitk-4.1
- CamiTK SO NAME........................... 4
- Operating System......................... WIN32
- Build type............................... DEBUG
- QT Version............................... 5.6.1
- VTK Version.............................. 6.3.0
- Global Installation Directory [G]........ C:/dev/CamiTK/install
- Local Installation Directory [L]......... C:/Users/tummersm/AppData/Roaming/CamiTK
- Current Working Directory [W]............ C:/Users/tummersm/Datas/DEPORRA/US/CEP DEPORRAMotorControl/build
- Test Data Directory...................... C:/Users/tummersm/Datas/DEPORRA/US/CEP DEPORRAMotorControl/build/share/camitk-4.1/testdata
- Component Extension Directories.......... C:/Users/tummersm/Datas/DEPORRA/US/CEP DEPORRAMotorControl/build/lib/camitk-4.1/components C:/dev/CamiTK/install/lib/camitk-4.1/components
- Action Extension Directories............. C:/Users/tummersm/Datas/DEPORRA/US/CEP DEPORRAMotorControl/build/lib/camitk-4.1/actions C:/dev/CamiTK/install/lib/camitk-4.1/actions
- Number of Component Extensions........... 18 (locations: 17 global, 0 local, 1 in working directory, 0 manually installed by user)
- Number of File Extensions Supported...... 41
- Number of Action Extensions.............. 29 (locations: 28 global, 0 local, 1 in working directory, 0 manually installed by user)
- Number of Actions........................ 108
- Registered components:
- [G] Alias Wavefront OBJ Component...... obj
- [G] FocusImageComponentExtension....... fia
- [G] ItkImages Component................ hdr, spr, gipl, pic, lsm, nrrd, hdr.gz, nii, nii.gz, img, img.gz
- [G] MML Component...................... mml, scn
- [W] MotorComponentExtension............ cpm
- [G] Msh Component...................... msh
- [G] Off Component...................... off
- [G] PML Component...................... pml
- [G] Pick Me Component.................. pickme
- [G] STL Component...................... stl, STL
- [G] Testing Abort Component............ abort
- [G] Testing Mixed Component............ mixed
- [G] USImageComponentExtension.......... usi
- [G] USStreamComponentExtension......... uss
- [G] VRML 2 Component................... vrml, wrl
- [G] VTK Component...................... vtk
- [G] vtkImages Component................ jpg, png, tiff, tif, bmp, pbm, pgm, ppm, mhd, mha, raw
- [G] DICOM.............................. directory
- Registered actions:
- [G] Application Level Actions.......... 21 actions
- [G] AverageVoxelValuesExtension........ 1 actions
- [G] Basic Mesh Extension............... 9 actions
- [G] Basic Picking Tutorial............. 1 actions
- [G] Basic Topology..................... 2 actions
- [G] BoxVOIExtension.................... 1 actions
- [G] FocusActionExtension............... 1 actions
- [G] Frame Edition Extension............ 1 actions
- [G] ITK Filters........................ 14 actions
- [G] ITK Segmentation................... 3 actions
- [G] Image LUT.......................... 1 actions
- [G] ImageAcquisitionActionExtension.... 7 actions
- [G] MML................................ 2 actions
- [G] Mesh Point Data.................... 1 actions
- [G] Mesh Processing.................... 17 actions
- [G] Mesh Selection..................... 1 actions
- [G] MultiPickingExtension.............. 1 actions
- [G] PMLExploreExtension................ 2 actions
- [G] Pixel Color Changer................ 1 actions
- [W] ProbeMotorActionExtension.......... 2 actions
- [G] PropertiesExtension................ 3 actions
- [G] Reconstruction..................... 1 actions
- [G] Reorient Image Extension........... 1 actions
- [G] ResampleExtension.................. 1 actions
- [G] Shaker Extension................... 3 actions
- [G] ShowIn3DExtension.................. 5 actions
- [G] Sleeping While Working............. 2 actions
- [G] VolumeRenderingExtension........... 1 actions
- [G] Vtk Widget Tutorial................ 2 actions