diff --git a/CHANGELOG.rst b/CHANGELOG.rst new file mode 100644 index 0000000..43108f9 --- /dev/null +++ b/CHANGELOG.rst @@ -0,0 +1,805 @@ +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +Changelog for package iridescence +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Forthcoming +----------- +* 1.0.1 +* add set_colormap_range +* Contributors: k.koide + +1.0.0 (2026-01-03) +------------------ +* v1.0.0 (`#188 `_) + * add numpy interfaces + * more imgui bindings + * return viewer shader setting reference + * refactor shader setting + * vertex colormap + * move camera along z + * fix vertex color + * replace shared_ptr with unique_ptr + * rapidhash + * replace string name with hash name in glsl_shader + * flat shader parameters + * refactor and warn + * tune ssao intensity + * remove Eigen::aligned_allocator and fix array uniform bug + * support int and float arrays + * add fullscreen + * hovered and cmap + * fix bugs + * install stubs + * update README + * update docs + * remove link to doc + * doc + * include global funcs + * doc ci + * add links to API docs + * trigger on only tags + * fix ppa + * imgui windows + * add rainbow settings + * japanese docs + * fix site url + * yodan + * add image + * fix typo + * docs (wip) + * tweak ssao params + * docs + * revert light viewer constructors to public + * v1.0.0 +* add colors (`#192 `_) +* Add color (`#189 `_) + * add_color for 3f array + * add colors + * save / load camera + * save color / depth buffers + * set_point_shape + * add point shape/size utils in viewer menu + * it was too dark +* invoke_once (`#190 `_) +* fix add_color (`#191 `_) +* Fixed shader path issue (`#183 `_) + * Fixed shader path issue + * Added support for windows +* Contributors: Harshal Deshpande, koide3 + +0.1.9 (2025-12-23) +------------------ +* soname (`#187 `_) +* Contributors: koide3 + +0.1.8 (2025-12-21 16:04) +------------------------ +* Publish on PyPI (`#186 `_) +* Contributors: koide3 + +0.1.7 (2025-12-21 00:55) +------------------------ +* add ColorEdit4 (`#185 `_) +* add publish.yml (`#182 `_) + * add publish.yml + * fix python versions + * install dependencies + * recursive submodule clone + * change ci name + * publish + * project info + * fix licence + * fix pyproject.toml + * fix setup.py + * publish only tags + * fix pyridescence_data + * fix + * depedency on numpy + * remove scipy +* ci on win (`#184 `_) +* This PR fixes a file descriptor leak in the GPU monitoring module. (`#181 `_) + The code uses popen() to query GPU utilization but does not call pclose(). + As a result, each update cycle leaks one file descriptor. After long-running + sessions, the process reaches the FD limit (1024), causing failures in popen(), + portable-file-dialogs, and UI features relying on fork/pipe. + This patch adds the missing pclose() and ensures proper cleanup. + Tested: FD count remains stable during long runtime after the fix. +* Adds import to fix cassert import error (`#178 `_) +* Respect window in pick_depth() (`#177 `_) +* memory usage for point cloud buffer (`#176 `_) +* quit cleanly by calling destory explicitly (`#174 `_) +* fixed installation command from source (`#173 `_) +* update_drawable_setting (`#171 `_) +* ply io for py (`#170 `_) +* add python interfaces for viewers (`#169 `_) + * add python interfaces for viewers + * add fit_plot +* fix path for async viewer in python (`#168 `_) +* Contributors: Aquablue, Rasmus, Vir Shah, atinfinity, koide3 + +0.1.6 (2025-04-23) +------------------ +* add disable_partial_rendering (`#167 `_) +* Contributors: koide3 + +0.1.5 (2025-04-11) +------------------ +* Fix `find_sub_viewer` (`#165 `_) +* accepts more int types (`#164 `_) +* Generic PLY IO (`#163 `_) + * improve type convertion speed with batched operation + * generic ply io + * test for PLY IO + * uncomment + * enable double test + * comment handling + * remove offsets from PLYData + * add_prop +* set build tool to CMake and add rosdep keys for dependencies (`#162 `_) +* improve type convertion speed with batched operation (`#161 `_) +* Contributors: Christian Rauch, Vincent Richard, koide3 + +0.1.4 (2025-02-06) +------------------ +* fix wrong color attachments in FrameBuffer::set_size (`#160 `_) +* fix typo (`#159 `_) +* add force kill (`#158 `_) +* plot group order (`#156 `_) +* Plot (`#148 `_) + * turn table + * set_line_width for py + * fix plot transform + * setup legend + * link axes + * fix update_plot_line + * adaptor for 1D data + * add ninja + * fix update_plot_line declaration + * additional interfaces for update_plot_scatter + * fill shader setting interface + * html colors + * fix regression + * fix examples + * add non-template translate() + * initializer_list constructor for FlatColor + * color_mode + * fix scale for scalar + * step execute for toggle_spin + * accepts vector3d for lookat + * fix lookat for python + * fix lookat variants +* add ninja (`#155 `_) +* look for data at install location (`#154 `_) + When the package is installed at a non-standard location, i.e. with + prefix different from /usr or /usr/local, the data directory cannot be + found. This change ensures that the install location is always tried + when looking for the data directory. +* fix depth option for capture example (`#147 `_) + * fix depth option for capture example + * warn if num_elements does not match texture format +* make PCL optional (`#144 `_) +* add PCL inclusion if want to build the pointcloud example (`#143 `_) + * fix set_pose typo in fps_camera_control + * update PCL checking, before adding, force find pcl will cause error for inclusion + * turn of build examples + * change from PCL setup +* removing hovered drawings (`#135 `_) +* Contributors: Michal Sojka, Seekerzero, koide3 + +0.1.3 (2024-08-21) +------------------ +* add running (`#134 `_) +* [update] Add definition of 'frustum/wire_frustum' in Python API (`#133 `_) +* Contributors: ShigemichiMatsuzaki, koide3 + +0.1.2 (2024-08-05) +------------------ +* debian package options (`#131 `_) +* Fixed set_pose in fps camera control (`#132 `_) +* add libglfw3-dev as dependency +* Contributors: Patiphon Narksri, k.koide, koide3 + +0.1.1 (2024-07-23) +------------------ +* add ppa installation (`#130 `_) +* Update README.md +* add Dockerfile_deb +* debian package options (`#129 `_) +* generate deb (`#127 `_) +* Trigger (`#125 `_) + * trigger gtsam_docker + * remove needs + * remove trigger branch +* add color-related shader setting util (`#124 `_) + * add color-related shader setting util + * docs +* hide glm (`#123 `_) +* switch to scikit-build (`#121 `_) + * switch to scikit-build + * update installation instructions + * update docker + * reform constructors of Lines + * line constructors + * test + * fix rotate + * CI for test + * fix test + * force run xvfb + * modernize cmake + * fix installation + * fix ci errors + * windows + * fix dl and pthread link + * fix export macro + * fix link errors +* minimize invoke request queue lock (`#122 `_) +* remove boost dependency (`#110 `_) + * remove boost dependency + * remove pthread + * add pthread + * use static lib for python bindings + * update pybind11 + * fix python bindings + * use local pybind11 + * remove dependency on fmt + * remove fmt contd + * link to fmt for spdlog testing + * improve installation + * Uppercase +* Partial (`#120 `_) + * partial rendering example + * doc for partial + * add note +* partial rendering example (`#119 `_) + * partial rendering example + * doc for partial +* fix add_color (`#115 `_) +* disable_vsync (`#108 `_) + * disable_vsync + * add matrix constructors +* png_io.cpp: fix libpng include (`#105 `_) + libpng headers do not include a directory prefix. This only accidentally worked with system headers. +* ADD grid_color option (`#104 `_) + * WIP + * ADD set_color method + * WIP pass the build + * Fix format + * REMOVE set_color in texture and CHG update_color +* remove_ui_callback (`#102 `_) + * remove_ui_callback + * remove_drawable_filter +* Guizmo fine control (`#101 `_) + * add set_gizmo_operation + * enable/disable guizmo + * set_gizmo_mode + * update ImGuizmo and add set_clip_space + * fix pybind +* reset to default line width (`#99 `_) +* fix set_pose typo in fps_camera_control (`#97 `_) +* set nullptr for default aync_view context +* selectively enable GL_CULL_FACE after drawing splatting and wireframe (`#96 `_) +* fix wire_frustum and add solid frustum (`#94 `_) + Co-authored-by: k.koide +* guizmo and hovered on subviewers (`#93 `_) + Co-authored-by: k.koide +* metric space point size (`#89 `_) + * metric space point size + * update doc + * update doc + * point_size instead of point_radius + --------- + Co-authored-by: k.koide +* partial point attribute update (`#90 `_) + * partial point attribute update + * size check + --------- + Co-authored-by: k.koide +* sub viewer control methods (`#88 `_) + * sub viewer control methods + * show sub viewers from the menu + --------- + Co-authored-by: k.koide +* fov range and regulate pitch angle (`#86 `_) + Co-authored-by: k.koide +* FPSCameraControl (`#77 `_) + * FPSCameraControl + * fps camera docs + * return camera control instance + * fix python bindings + * make camera moving speed independent of refresh rate + --------- + Co-authored-by: k.koide +* plot template methods (`#81 `_) + Co-authored-by: k.koide +* Plot style (`#80 `_) + * plot_histogram + * plot_style + --------- + Co-authored-by: k.koide +* prevent tranparency on ImGui::Image (`#79 `_) + Co-authored-by: k.koide +* fix imgui.input_text (`#78 `_) + Co-authored-by: k.koide +* Keyboard (`#74 `_) + * better keyboard camera control + * docs for keyboard shortcut + * python bindings + * update docs + --------- + Co-authored-by: k.koide +* fix plot axes (`#72 `_) + * fix plot axes + * plot fitting hotkeey + * async_wait_until_click and async_toggle_wait + --------- + Co-authored-by: k.koide +* install implot_internal.h +* doc for spdlog +* async interface (`#71 `_) + * async interaface + * fix python build errors + * python bindings (WIP) + * plot + * ordered plot + * ordered images + * async interfaces for update\_(image|plot) + * fix update_image for python + * fix async_wait() + * docs + * plot flags for async_viewer + --------- + Co-authored-by: k.koide +* Add camera parameter control methods (`#70 `_) + * accessors for BasicProjectionControl + * drawable container + * skip setting model matrix + * helper functions for static camera control + --------- + Co-authored-by: k.koide +* title configuration (`#69 `_) + * title configuration + * fix example + --------- + Co-authored-by: k.koide +* Add window flag setting to subviewer (`#67 `_) + * Add window flag setting to sub viewer + * Added set_pos binding +* Capture (`#62 `_) + * screen capture + * save as jpg + --------- + Co-authored-by: k.koide +* get_drawables (`#65 `_) + Co-authored-by: k.koide +* add make update_thin_lines return an instance of ThinLines (`#60 `_) + Co-authored-by: k.koide +* suppress ply warning +* add const +* py interface for docking (`#49 `_) + * py interface for docking + * more draw_list command for python interface + * dock builder functions for python + * image interfaces + * add arguments for stubgen + * better texture support + --------- + Co-authored-by: k.koide +* partial rendering example (`#56 `_) + Co-authored-by: k.koide +* Fix gl test field example (`#57 `_) + * correctly initialize color buffers, fix gl_test_field_example.cpp + * correctly load bunny primitive in gl_test_field_example + * fix typo + --------- + Co-authored-by: Julian Gaal +* Added zenity install (`#53 `_) +* Ref (`#50 `_) + * ref + * const ref + --------- + Co-authored-by: k.koide +* fix docker permissions: mount `/dev` (`#51 `_) + * fix docker permissions: mount /dev + * formatting + --------- + Co-authored-by: Julian Gaal +* const ref +* const ref +* Find file (`#48 `_) + * expose find_file + * indicate source lines causing shader errors + * inject defines for shaders + --------- + Co-authored-by: k.koide +* ref (`#47 `_) + Co-authored-by: k.koide +* MapBuffer-based data transfer (`#46 `_) + * MapBuffer-based data transfer + * add shorthand methods + --------- + Co-authored-by: k.koide +* update drawable utility methods (`#45 `_) + * update drawable utility methods + * point picking utility + * viewer instance creation utility + * fix missing returns + * remove is_same_v for cuda + * CMAKE_CXX_STANDARD + * fix update_points template + * normal distributions utility + * efficient normal distributions generation using compute shader + * fix slow points convertion + --------- + Co-authored-by: k.koide +* clear_data for SSBO (`#44 `_) + Co-authored-by: k.koide +* shader include (`#42 `_) + * shader include + * SSBO copy + * ssbo copy buffer size option + * make alpha blending configurable + * add instant allow/deny filter buttons + --------- + Co-authored-by: k.koide +* Fix/add imguizmo header (`#43 `_) + * Added recursive to also pull submodules + * Added missing boost package installs + * Changed colromap to colormap + * Added Imguizmo header +* refactor SSBO (`#41 `_) + Co-authored-by: k.koide +* Added ColorMode RGBA for GridMap (`#40 `_) + * Added constructor to set RGB independently + * Added example for gridmap + * Merged new constructor into original one + * Rename colortype rgba + * Fixed iterator +* Update build.yml +* drop bionic build test (`#38 `_) + * drop bionic build test + * fix build-args + --------- + Co-authored-by: k.koide +* fix pattern_formatter include for focal (`#37 `_) + Co-authored-by: k.koide +* Dock (`#36 `_) + * use imgui docking branch + * export some imgui headers + * invoke callbacks before showing special windows + Co-authored-by: k.koide +* Dock (`#35 `_) + * use imgui docking branch + * export some imgui headers + Co-authored-by: k.koide +* transparency +* tweak logging window +* use spdlog::ringbuffer_sink +* spdlog_sink +* assimp-based loader (`#33 `_) + * assimp-based loader + * 3D model IO + * resolve relative texture path + Co-authored-by: k.koide +* Create LICENSE +* Update README.md +* Documentation (`#32 `_) + * writing README (wip) + * add example images + * mkdocs (wip) + * textured mesh + * mesh and io + * multi-threading + * menu bar + * basic usage + * cookbook + * refactor + Co-authored-by: k.koide +* Merge branch 'master' of github.com:koide3/iridescence +* allow updating images in a ui callback +* rename install dependencies script +* fix openpopup python error +* supress warnings +* build test for jammy +* add missing headers for ubuntu 22.04 +* march native +* splatting (`#31 `_) + * splatting + * remove test code + * fix wrong texture alpha reference + Co-authored-by: k.koide +* additional constructors for PointCloudBuffer +* bg texture +* install implot.h +* upgrade imgui and introduce implot +* raw pointer inputs for add_intensity +* define CV_16F for old OpenCV +* disable/enable XY grid +* refactor examples +* slight efficiency improvement of ShaderSetting +* Fix UI callbacks (`#30 `_) + * fix a bug that prevents overriding ui_callbacks + * viewer window size on python + Co-authored-by: k.koide +* fix a bug that prevents overriding ui_callbacks (`#29 `_) + Co-authored-by: k.koide +* hovered drawings (`#28 `_) + * show texts in backend + * hovered drawings + * hovered example + Co-authored-by: k.koide +* Image group (`#27 `_) + * image grouping + * point picking + Co-authored-by: k.koide +* raw pointer input for NormalDistributions +* raw pointer input for glk::Lines +* refactor normal distributions interface and fix improper mesh vao deletion bug (`#26 `_) + Co-authored-by: k.koide +* colored mesh (`#25 `_) + * colored mesh + * jpeg io + * add libjpeg dependency + * read_depth_pixels + * refactor examples + * static camera control + * pixel buffer object + * pbo example + * add partial rendering clear thresh + Co-authored-by: k.koide +* add size accessors +* toggle_spin_once +* add flat colors to python +* add missing PYTHON_BINDINGS flag +* Indexed lines (`#24 `_) + * fix ply ascii loading + * indexed point cloud buffer + * rename drawable filter registration method + * add progress interfaces + * support std::allocator + * make_shared + Co-authored-by: k.koide +* Devel (`#23 `_) + * add regex remove_drawable + * writing binary ply loader (WIP) + * auto ply loading for ascii and binary + * remove ply test code + * decimal point cloud rendering + * remove .vscode + * remove test code + * partial point cloud rendering + Co-authored-by: k.koide +* Devel (`#22 `_) + * add regex remove_drawable + * writing binary ply loader (WIP) + * auto ply loading for ascii and binary + * remove ply test code + * decimal point cloud rendering + * remove .vscode + * remove test code + Co-authored-by: k.koide +* Neo (`#21 `_) + * eliminate catkin + * add install targets + * add default build type + * remove build test for ROS + * add (fake) arcball control + * add vsync menu + * autoresize + * cast + * draw coordinate systems with lines + * add destroy() + * file IO + * install pfd + * add progress + * PointCloudBuffer constructor with vector + * add_color with Vector4d + * fix default cmake build type + * hide imguizmo header + * is_guizmo_using + * split text by newlines + * fix cmake errors on bionic + Co-authored-by: k.koide +* Neo (`#20 `_) + * eliminate catkin + * add install targets + * add default build type + * remove build test for ROS + * add (fake) arcball control + * add vsync menu + * autoresize + * cast + * draw coordinate systems with lines + * add destroy() + * file IO + * install pfd + * add progress + * PointCloudBuffer constructor with vector + * add_color with Vector4d + * fix default cmake build type + * hide imguizmo header + * is_guizmo_using + Co-authored-by: k.koide +* add PointCloudBuffer utility constructors (`#19 `_) + Co-authored-by: k.koide +* Image (`#18 `_) + * add frustum and image interface + * add frustum.hpp + * add texture_opencv.hpp + * fix build error on melodic + Co-authored-by: k.koide +* Merge pull request `#17 `_ from koide3/devel + add ssli config to LightViewer UI +* Update README.md +* add ssli config to LightViewer UI +* Merge pull request `#16 `_ from koide3/devel + add wire primitives +* add wire primitives +* Merge pull request `#15 `_ from koide3/devel + Devel +* guizmo on subviewer +* LightViewerContext methods +* add CameraControl to pybind +* Merge branch 'devel' of github.com:koide3/iridescence into devel +* add PointCloudBuffer python methods +* Merge pull request `#14 `_ from koide3/splat + add SSLI_SPLAT +* Merge pull request `#13 `_ from koide3/camera + add camera save/load +* add SSLI_SPLAT +* add camera save/load +* Merge pull request `#12 `_ from koide3/koide3-patch-1 + Migrate to Github Actions +* Merge branch 'koide3-patch-1' of github.com:koide3/iridescence into koide3-patch-1 +* bye travis +* add ca-certificates +* Update build.yml +* Create build.yml +* Merge pull request `#11 `_ from koide3/util + Util +* add .vscode to .gitignore +* add colormaps +* add enable_vsync +* add colored points +* Merge pull request `#10 `_ from koide3/util + add directional lighting +* add fancy buttons +* Merge branch 'master' of github.com:koide3/iridescence into util +* Merge branch 'util' of github.com:koide3/iridescence into util +* reset windowShouldClose flag when calling spin +* revert docker login +* bye docker caching +* add AtomicCounters & ShaderStorageBuffer +* splatting working +* eigensolver working +* going to use 2D radius for finalized buffer +* improve knn speed (still not satisfying) +* knn working +* profiling +* knn working but slowly (WIP) +* point cloud splatting (WIP~ +* add directional lighting +* Merge pull request `#9 `_ from koide3/util + add utility constructors +* add utility constructors +* Merge pull request `#8 `_ from koide3/pybind + add lines to pyridescence +* refactor dockerfiles +* refactor Dockerfiles +* reduce docker pull +* add lines to pyridescence +* Merge pull request `#7 `_ from koide3/pybind + Pybind +* info and depth picking (info picking seems have some bug) +* imgui inputs +* a bit more imgui functions +* build without ninja +* add python example +* separate definitions +* install data files in python +* python bindings +* Merge pull request `#5 `_ from koide3/devel + Devel +* add screenshot saver +* refactoring and debug effect screen bug +* add anonymous namer +* better support for sub_viewer +* light attenuation +* Merge branch 'devel' of github.com:koide3/iridescence into devel +* support texture color and normal buffer +* keyboard input +* Merge pull request `#4 `_ from koide3/devel + Devel +* maximize window +* colored thin lines +* use material's alpha +* transparency +* change screen effect rendering scheme +* be quiet +* avoid static const member initialization +* refactoring +* handle hidden window +* add trajectory +* Merge pull request `#3 `_ from koide3/brdf + update iridescence shader +* update iridescence shader +* Merge pull request `#2 `_ from koide3/brdf + Brdf +* add libpng +* add iridescence brdf +* add several BRDF models +* Merge pull request `#1 `_ from koide3/devel + add colormaps +* change package name (again) +* add NormalDistributions +* add imguizmo include +* add camera utilities +* add camera contral utility +* get rid of g2o +* accept Eigen::Transform for ShaderSetting +* add graph drawable +* factor graph (preliminary) +* information picking +* change SSAO num samples +* multi-light +* iridescent lighting +* screen space lighting +* colormap +* add colormaps +* viewer UI +* change package name +* add intensities +* register ROS docker +* add ROS docker +* add bionic docker +* travis +* define built_in_ros +* check if it's built in catkin_ws +* unified cmake/catkin build +* refactor CMakeLists.txt +* fix duplicated definition +* refactoring +* add colored points +* update light_viewer_basic +* picking +* add multiple file push +* add recent_files +* add install.sh +* fix version related bug +* multi-thread example +* add drawable filter +* delete pcl point cloud buffer constructor +* add invoke +* data path management +* add primitive wireframes +* merge +* add global shader setting +* sub canvas for light_viewer +* adaptive depth range +* Merge branch 'catkin' of mobarobo.tk:KenjiKoide/gl_test_field into catkin +* GL interop +* add screen effect +* add light_viewer_kitti +* add light_viewer_custom +* add light_viewer_basic +* add colormap +* add some examples +* add imguizmo and make pcl optional +* add find_drawable +* shiftable lookat +* remove num_points display +* fix +* add cpu info +* add selective clear drawables +* add clear_drawables() +* Merge branch 'catkin' of https://bitbucket.org/koide3/gl_test_field into catkin +* add raw pointer construction for PointCloudBuffer +* fix dependency +* templatenize PointCloudBuffer constructor +* add framebuffer size getter +* add utilities +* update viewer +* save +* add bunny to primitive list +* refactoring +* initial commit +* Contributors: Julian Gaal, Martin Valgur, Patiphon Narksri, Seekerzero, Taro Tako, Tomoya Sato, k.koide, kenji koide, koide3 diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e31939..02d8337 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.16) -project(iridescence VERSION 1.0.0 LANGUAGES C CXX) +project(iridescence VERSION 1.0.1 LANGUAGES C CXX) option(BUILD_EXAMPLES "Build examples" OFF) option(BUILD_PYTHON_BINDINGS "Build python bindings" OFF) diff --git a/include/guik/viewer/light_viewer_context.hpp b/include/guik/viewer/light_viewer_context.hpp index af2f3eb..ba97af9 100644 --- a/include/guik/viewer/light_viewer_context.hpp +++ b/include/guik/viewer/light_viewer_context.hpp @@ -92,6 +92,9 @@ class LightViewerContext { /// @brief Set axis of color mapping for RAINBOW mode. void set_rainbow_axis(const Eigen::Vector3f& axis); + /// @brief Set range of color mapping for VERTEX_COLORMAP mode. + void set_colormap_range(const Eigen::Vector2f& minmax); + /// @brief Set point shape properties. /// @param point_size Point size /// @param metric If true, point size is in the metric unit [m], otherwise in pixel unit. diff --git a/include/guik/viewer/shader_setting.hpp b/include/guik/viewer/shader_setting.hpp index 6796ed4..07f9235 100644 --- a/include/guik/viewer/shader_setting.hpp +++ b/include/guik/viewer/shader_setting.hpp @@ -349,6 +349,9 @@ struct ShaderSetting { /// @brief Set RAINBOW coloring axis. ShaderSetting& set_rainbow_axis(const Eigen::Vector3f& axis); + /// @brief Set VERTEX_COLORMAP color range. + ShaderSetting& set_colormap_range(const Eigen::Vector2f& minmax); + // Point size and scale /// @brief Get point size scale factor. float point_scale() const; diff --git a/package.xml b/package.xml index 4e4c63b..63883db 100644 --- a/package.xml +++ b/package.xml @@ -1,7 +1,7 @@ iridescence - 1.0.0 + 1.0.1 A point cloud viewer for rapid prototyping of 3D algorithms k.koide diff --git a/setup.py b/setup.py index f9449eb..600453a 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name="pyridescence", - version="1.0.0", + version="1.0.1", author="Kenji Koide", author_email="k.koide@aist.go.jp", description="3D visualization library for rapid prototyping of 3D algorithms", diff --git a/src/guik/viewer/light_viewer_context.cpp b/src/guik/viewer/light_viewer_context.cpp index f7711ca..1233c57 100644 --- a/src/guik/viewer/light_viewer_context.cpp +++ b/src/guik/viewer/light_viewer_context.cpp @@ -288,6 +288,10 @@ void LightViewerContext::set_rainbow_axis(const Eigen::Vector3f& axis) { shader_setting().set_rainbow_axis(axis); } +void LightViewerContext::set_colormap_range(const Eigen::Vector2f& minmax) { + shader_setting().set_colormap_range(minmax); +} + void LightViewerContext::set_point_shape(float point_size, bool metric, bool circle) { shader_setting().set_point_shape(point_size, metric, circle); } diff --git a/src/guik/viewer/shader_setting.cpp b/src/guik/viewer/shader_setting.cpp index 6a48168..2a7e13e 100644 --- a/src/guik/viewer/shader_setting.cpp +++ b/src/guik/viewer/shader_setting.cpp @@ -84,6 +84,10 @@ ShaderSetting& ShaderSetting::set_rainbow_axis(const Eigen::Vector3f& axis) { return add("colormap_axis", axis); } +ShaderSetting& ShaderSetting::set_colormap_range(const Eigen::Vector2f& minmax) { + return add("cmap_range", minmax); +} + float ShaderSetting::point_scale() const { auto& p = params[1]; return p.get_value();