comparison Framework/Toolbox/DicomStructure2.h @ 1019:29f5f2031310

Added a way to specificy which structures are to be initially displayed (the default being ALL structures displayed) + the loader maintains a list of structure display state, that can be modified continuously + the cache now takes the initial list of structure into account for computing the entry + added methods to change the loaded structure visibility + disabled the alternate loaders (DicomStructureSetLoader2 and friends) + disabled corresponding tests
author Benjamin Golinvaux <bgo@osimis.io>
date Fri, 27 Sep 2019 13:32:05 +0200
parents 38b6bb0bdd72
children 2d8ab34c8c91
comparison
equal deleted inserted replaced
1018:58eed6bbcabb 1019:29f5f2031310
17 * You should have received a copy of the GNU Affero General Public License 17 * You should have received a copy of the GNU Affero General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 **/ 19 **/
20 20
21 #pragma once 21 #pragma once
22
23 #ifdef BGO_ENABLE_DICOMSTRUCTURESETLOADER2
22 24
23 #include "DicomStructurePolygon2.h" 25 #include "DicomStructurePolygon2.h"
24 #include "DicomStructureSetUtils.h" 26 #include "DicomStructureSetUtils.h"
25 27
26 namespace OrthancStone 28 namespace OrthancStone
47 intersections later on. 49 intersections later on.
48 */ 50 */
49 void ComputeDependentProperties(); 51 void ComputeDependentProperties();
50 52
51 /** 53 /**
52 Being given a plane that is PARALLEL to the set of polygon contours, this 54 Being given a plane that is PARALLEL to the set of polygon structures, this
53 returns a pointer to the polygon located at that position (if it is closer 55 returns a pointer to the polygon located at that position (if it is closer
54 than thickness/2) or NULL if there is none. 56 than thickness/2) or NULL if there is none.
55 57
56 TODO: use sorted vector to improve 58 TODO: use sorted vector to improve
57 59
151 Valid or Invalid. In any case, the object becomes immutable. 153 Valid or Invalid. In any case, the object becomes immutable.
152 */ 154 */
153 State state_; 155 State state_;
154 }; 156 };
155 } 157 }
158
159 #endif
160 // BGO_ENABLE_DICOMSTRUCTURESETLOADER2
161