Skip to content

Commit

Permalink
SetSegmentationLabels + SetOverlayType
Browse files Browse the repository at this point in the history
  • Loading branch information
mlavik1 committed Sep 19, 2024
1 parent 748c891 commit 04d0c0e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Assets/Scripts/VolumeObject/VolumeRenderedObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ public OverlayType GetOverlayType()
return this.overlayType;
}

public void SetOverlayType(OverlayType overlayType)
{
this.overlayType = overlayType;
this.UpdateMaterialProperties();
}

public TransferFunction GetSecondaryTransferFunction()
{
return this.secondaryTransferFunction;
Expand Down Expand Up @@ -150,6 +156,12 @@ public List<SegmentationLabel> GetSegmentationLabels()
return segmentationLabels;
}

public void SetSegmentationLabels(List<SegmentationLabel> labels)
{
this.segmentationLabels = labels;
UpdateSegmentationLabels();
}

public void AddSegmentation(VolumeDataset dataset, List<SegmentationLabel> labels)
{
if (secondaryDataset != null && dataset.data.Length != secondaryDataset.data.Length)
Expand Down

0 comments on commit 04d0c0e

Please sign in to comment.