127 Commits

Author SHA1 Message Date
Jarrett Johnson
57daee0b7e Refactor Result to include less across source files 2025-09-26 12:07:31 -04:00
Jarrett Johnson
dc70a2f303 PYMOL-5234: Fix draw while using antialiasing_shader 2025-09-26 12:07:31 -04:00
Jarrett Johnson
ef2c05fc35 Remove unnecessary defines 2025-09-26 12:07:27 -04:00
Jarrett Johnson
9b9cd6fb7b Fix some drawing regressions 2025-01-10 22:19:29 -05:00
Jarrett Johnson
15cb785d71 fix movie.produce 2025-01-10 17:04:02 -05:00
Jarrett Johnson
909c81ef24 Remove unused variables 2025-01-04 21:28:56 -05:00
Jarrett Johnson
2d132b7c1e PYMOL-5001: (Part Five) OrthoMakeSizedImage and Composite 2025-01-04 21:08:08 -05:00
Jarrett Johnson
279ce3f870 PYMOL-5001: (Part Four) SceneMakeSizedImage Refactor 2025-01-04 20:58:58 -05:00
Jarrett Johnson
d188d36b11 PYMOL-5001: (Part Three) Further DrawBuffer refactor 2025-01-04 20:51:19 -05:00
Jarrett Johnson
0313aeba9d PYMOL-4365: Filter gizmo and selections from thumbnails and exports
Some other restructuring (SceneRenderWhich and SceneRenderOrder) to support this
2025-01-04 20:40:13 -05:00
Jarrett Johnson
4dd9a6c230 PYMOL-4483: Remove selection indicators from thumbnails 2025-01-04 20:13:17 -05:00
Jarrett Johnson
2a14d822f3 SceneOverlay refactor--separate into functions 2025-01-04 13:53:55 -05:00
Jarrett Johnson
414c418515 Combine default_frame_bufferID and DRAWBUFFER0 into GLFramebufferConfig 2025-01-04 13:11:45 -05:00
Jarrett Johnson
3248445fcf Replace Scene matrices with glm::mat4 2025-01-04 12:33:44 -05:00
Jarrett Johnson
b52b6f2174 Port code changes from incentive (06/2023) 2025-01-04 12:09:32 -05:00
Jarrett Johnson
ef9bcd85a1 Remove _PYMOL_IOS (Discontinued; prep for MVK) 2024-08-30 10:05:58 -04:00
Jarrett Johnson
50be59fb4b PYMOL-4849: Fix SceneGetDrawFlag slot indexing 2024-08-13 15:58:56 -04:00
Jarrett Johnson
77524691f8 Include minimal glm headers instead of glm.hpp 2024-08-13 14:55:36 -04:00
Jarrett Johnson
83f11bc317 More Replace NULL with nullptr 2024-06-02 20:44:43 -04:00
Jarrett Johnson
fbfda4a257 Replace NULL with nullptr 2024-05-20 09:07:33 -04:00
Jarrett Johnson
cebfbb9da7 ScenePNG-> use c_str() 2024-01-30 16:39:58 -05:00
Jarrett Johnson
71f966fab6 Refactor Defer logic 2024-01-30 16:39:08 -05:00
Jarrett Johnson
54720cbff4 PYMOL-4452: PNGs not saving on deferred png draw 2024-01-30 16:25:42 -05:00
Thomas Holder
a610ff1f38 Fix crash with grid_mode and no objects (#306)
Regression of d0a3380636
2023-09-06 16:07:30 -04:00
Thomas Holder
d0a3380636 Avoid 3x2 grid for size=4 (#276) 2023-02-03 15:22:46 -05:00
Jarrett Johnson
094003573c fix png, ray=1 grid_mode single 2022-08-17 15:04:09 -04:00
Jarrett Johnson
91f3ead318 GridMode enum 2022-08-17 15:03:08 -04:00
Jarrett Johnson
d94a11474c Avoid implicit narrowing conversion 2022-08-17 15:03:00 -04:00
Jarrett Johnson
53f1d78106 Abstract many C++ viewport calls 2022-08-17 15:02:29 -04:00
Jarrett Johnson
8f14cee822 SceneRenderInfo and other misc render API changes 2022-08-17 14:50:48 -04:00
Jarrett Johnson
0175c0d918 fix compiler error 2022-08-17 14:25:32 -04:00
Jarrett Johnson
6de35cd627 Initial pass of Scene Render refactor 2022-08-17 14:23:55 -04:00
Thomas Stewart
9b6a00f050 PYMOL-3792: Fix for invalid selection string crash 2022-03-08 15:34:41 -05:00
Jarrett Johnson
eea082966b Remove orthoCGO defines; fix warnings 2022-03-08 15:31:11 -05:00
Jarrett Johnson
910329a903 New clip API modes and get_clip 2022-02-22 16:30:32 -05:00
Jarrett Johnson
994403a106 Add required comma to some debug prints 2022-02-22 16:28:08 -05:00
Jarrett Johnson
83387d20a5 Camera-Event wrapper class 2022-02-22 16:23:23 -05:00
Jarrett Johnson
e8aa72ca1b glm::equal epsilon surrogate 2021-09-14 10:10:48 -04:00
Jarrett Johnson
527ba55926 more SceneView::m_pos encapsulation 2021-08-20 12:10:38 -04:00
Jarrett Johnson
66de86cb52 SceneView encapsulation 2021-08-20 12:10:22 -04:00
Jarrett Johnson
07d7a790f0 Forward decls/Move headers to source 2021-08-20 11:24:10 -04:00
Thomas Stewart
2d7159dc07 PYMOL-3718 Fix MyPNG crash from MovieSceneStore 2021-08-20 10:45:41 -04:00
Thomas Stewart
cb277dfd86 PYMOL-3694 Scene Refactor to Store Thumbnail
- Adding a pymol::Image thumbnail to MovieScene
    - This allows the thumbnail to be directly
      tied to the Scene when it's stored
- Adding set and get methods to Image.h
2021-07-07 12:27:02 -04:00
Jarrett Johnson
8738ad5af8 OrthoRenderMode enum class 2021-04-28 05:23:10 -04:00
Thomas Holder
3355efcf6f PYMOL-3176 draw/png/mpng/refresh: cmd._call_with_opengl_context
When running with a GUI, always run these functions in the main thread
and call makeCurrent() for the OpenGL context.

Reverts workarounds from these commits:
- fabcd9b8 "QOpenGLWidget: fix "png foo.png"" (`glReadBuffer(G->DRAW_BUFFER0)`)
- 8dcce851 "prepare for QOpenGLWidget support" ("refresh" before "draw")

Fixes https://github.com/schrodinger/pymol-open-source/issues/25
Fixes https://github.com/schrodinger/pymol-open-source/issues/150
2021-04-28 04:39:04 -04:00
Thomas Holder
305894124e cmd.png(None) -> bytes 2021-04-28 04:38:33 -04:00
Jarrett Johnson
a529575bd6 Backport SceneClip refactor 2021-04-28 03:57:49 -04:00
Jarrett Johnson
6498daeef7 replace Scene VLAs with std::vector 2021-04-28 03:49:28 -04:00
Thomas Holder
703915d793 Fix initialization of CScene
- Remove "calloc" new operator
- Initialize all members
2021-03-26 14:30:47 +01:00
Jarrett Johnson
355c45d229 Place CObject in pymol namespace 2021-02-11 19:14:06 +01:00