Skip to content

Commit 04d0c0e

Browse files
committed
SetSegmentationLabels + SetOverlayType
1 parent 748c891 commit 04d0c0e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Assets/Scripts/VolumeObject/VolumeRenderedObject.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ public OverlayType GetOverlayType()
106106
return this.overlayType;
107107
}
108108

109+
public void SetOverlayType(OverlayType overlayType)
110+
{
111+
this.overlayType = overlayType;
112+
this.UpdateMaterialProperties();
113+
}
114+
109115
public TransferFunction GetSecondaryTransferFunction()
110116
{
111117
return this.secondaryTransferFunction;
@@ -150,6 +156,12 @@ public List<SegmentationLabel> GetSegmentationLabels()
150156
return segmentationLabels;
151157
}
152158

159+
public void SetSegmentationLabels(List<SegmentationLabel> labels)
160+
{
161+
this.segmentationLabels = labels;
162+
UpdateSegmentationLabels();
163+
}
164+
153165
public void AddSegmentation(VolumeDataset dataset, List<SegmentationLabel> labels)
154166
{
155167
if (secondaryDataset != null && dataset.data.Length != secondaryDataset.data.Length)

0 commit comments

Comments
 (0)