65 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
567357fb19 PYMOL-5102: Refactor Object Slice rendering logic 2025-09-26 12:07:30 -04:00
Jarrett Johnson
7b10fa0e84 PYMOL-5089: MapType refactor 2025-09-26 12:07:26 -04:00
Jarrett Johnson
eb606c33c8 Remove unused returnData 2024-08-30 10:09:08 -04:00
Jarrett Johnson
758cec3380 Make numpy2 compatible 2024-08-27 20:06:57 -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
1180fec349 Replace makeshift C++17 with standard 2024-04-10 12:31:16 -04:00
Jarrett Johnson
74894e01da Generic CGO Render 2022-03-08 15:16:16 -05:00
Jarrett Johnson
07d7a790f0 Forward decls/Move headers to source 2021-08-20 11:24:10 -04:00
Jarrett Johnson
65835f9991 Remove OOMac 2021-07-07 12:03:25 -04:00
Thomas Holder
d5d05f19c9 PYMOL-3624 Handle map.gz and mrc.gz extensions 2021-03-26 14:30:12 +01:00
Thomas Holder
491e9c5a4d load_raw dx support 2021-02-18 19:33:11 +01:00
Jarrett Johnson
355c45d229 Place CObject in pymol namespace 2021-02-11 19:14:06 +01:00
Thomas Holder
f84389f14f Refactor CCrystal and CSymmetry
- Make members private
- Add getters and setters
- Remove CrystalUpdate, SymmetryUpdate, SymmetryFree
- Remove unused CCrystal members (Norm, RecipDim, UnitCellVolume)
- Add CCrystal unit test
2020-12-11 13:57:26 +01:00
Thomas Holder
7833037c5e CGOOptimizeToVBO: Call CGOCombineBeginEnd
CGOOptimizeToVBONotIndexed and CGOOptimizeToVBOIndexed will
automatically call CGOCombineBeginEnd if the input CGO has Begin/End
operations. They will also set `use_shader` on the CGO.

Fixes `set cgo_debug; wizard demo, raster3d`

Eliminate various CGOFree calls by using unique_ptr.
2020-12-11 13:01:38 +01:00
Thomas Holder
a686d16fc7 Cleanup: SymmetryAttemptGeneration, ObjectStateGetMatrix
- ObjectStateGetMatrix const-correctness
- Make SymmetryAttemptGeneration "private" and call it from getNSymMat()
- match_info: Silence -Wnon-c-typedef-for-linkage warning
2020-12-03 18:15:45 +01:00
Thomas Holder
a170bc4989 Improve error handling for .dx loading
Do not create an empty map object if loading fails.
2020-12-03 18:10:46 +01:00
Thomas Holder
7ad3b9d11b CField refactoring
New member functions to replace data access macros:

- CField::get
- CField::ptr

New CFieldTyped derived class with typed accessors.
2020-10-16 11:15:55 +02:00
Jarrett Johnson
4431dd0ce2 Settings copied on object copy 2020-10-16 11:07:17 +02:00
Thomas Holder
08c9dff871 PYMOL-3533 Refactor Rep as polymorphic type (2)
Part 2: virtual member functions
2020-09-30 09:46:26 +02:00
Jarrett Johnson
1c26a96739 Named Renderpasses 2020-07-03 15:00:38 +02:00
Thomas Holder
48931fa8d7 DX map import: binary support (*.dxbin) 2020-06-05 09:13:07 +02:00
Jarrett Johnson
6aad8574c4 pymol::Result color; remove_picked; move, map_trim, map_set, origin 2020-05-05 07:59:59 +02:00
Thomas Holder
bdf1c3a0dc fix PYMOL-3375 map_set crash with missing states 2020-04-23 14:11:46 +02:00
Thomas Holder
8b9efcc028 refactor: use more pymol::Result 2020-04-23 14:11:17 +02:00
Thomas Holder
737cd4f65f CObject::getCurrentState refactoring
fixes:
PYMOL-3388
PYMOL-3390
PYMOL-3391
2020-03-13 09:09:38 +01:00
Thomas Holder
bd1f8970aa fix multi-state map PSE loading 2020-03-13 08:57:59 +01:00
Thomas Holder
1d98290033 refactor symmetry function
get_symmetry
set_symmetry
symmetry_copy
2020-02-20 12:31:22 +01:00
Jarrett Johnson
aae0b18a0f refactor ObjectMapState 2020-02-20 12:29:45 +01:00
Thomas Holder
8b1fa009ad Distinguish mrc/map/ccp4 extensions 2020-01-22 11:52:15 +01:00
Pedro Lacerda
bdc9b11de9 cmd.dump support for maps
Closes #67
2019-12-03 13:47:45 +01:00
Jarrett Johnson
14e5cefb94 ObjectMesh refactor 2019-11-27 13:30:40 +01:00
Jarrett Johnson
e7a2919f68 field refactor 2019-11-27 13:15:15 +01:00
Thomas Holder
5306f2252e generalize object matrix operations 2019-10-29 16:24:26 +01:00
Thomas Holder
75f06a974e CObject function pointers -> virtual methods 2019-10-29 16:24:12 +01:00
Jarrett Johnson
00473b5656 C++ inheritance for Object classes 2019-09-04 18:18:01 +02:00
Thomas Holder
27014c9e93 OOAlloc malloc -> new 2019-08-13 17:08:59 +02:00
Nandini Naidu
7dc7091a40 Converted C VLAs to C++ VLAs, managed combination C and C++ memmory allocation issues. 2019-08-13 16:33:10 +02:00
Nandini Naidu
1b017594ae symmetry class changes to make deep copyable 2019-08-13 16:20:41 +02:00
Thomas Holder
abe86e10fc PYMOL-3260 MRC with ORIGIN -> ignore N*START 2019-08-13 16:11:56 +02:00
Jarrett Johnson
13d58ca552 map_set copy bug fix - Fixes #41 2019-06-28 12:38:47 -04:00
Thomas Holder
035d6fe611 C++ inheritance for all CObject subclasses 2019-03-29 13:36:14 +01:00
Thomas Holder
c7ec54efcf CCP4 export: MRC 2000 ORIGIN 2019-03-29 13:09:11 +01:00
Thomas Holder
b59ce09d8a refactor: pymol::malloc<T>
- use typed/namespaced malloc wrapper
- remove Alloc et al.
- remove mmalloc et al.
- remove CINTERFACE define
2019-02-21 17:41:58 +01:00
Thomas Holder
895840e4f7 PYMOL-3155 MRC 2000 ORIGIN 2018-11-15 16:44:19 +01:00
Jarrett Johnson
fde67f2d9b PYMOL-3098 ScenePickVLA Refactor 2018-11-15 16:44:02 +01:00
Thomas Holder
4f3c781a74 cleanup: compiler warnings
-Wdangling-else
-Wmisleading-indentation
-Wmismatched-tags
-Wparentheses
-Wsometimes-uninitialized
-Wunused-but-set-variable
-Wunused-function
-Wunused-label
-Wunused-variable
2018-08-16 19:00:17 +02:00
Thomas Holder
90939028a3 const correctness for Color.cpp 2018-07-03 20:31:13 +02:00
Thomas Holder
f21c61958e Graphics refactoring, ported from Incentive PyMOL 2018-07-03 20:19:12 +02:00