Show / Hide Table of Contents

Class Attachments

Attachments class contains list of the attached data and also methods of processing the said data. Responsible for handling the whole list. For example getting the data relative to single slice.

Inheritance
System.Object
Attachments
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CoreLibrary
Assembly: CoreLibrary.dll
Syntax
public class Attachments

Constructors

Attachments()

Parameterless constructor that only initializes the object.

Declaration
public Attachments()

Attachments(List<AttachedData>)

Constructor for JSON serialization and deserialization. Note that the parameter names must match the attribute names (non case sensitive).

Declaration
[JsonConstructor]
public Attachments(List<AttachedData> attachmentlist)
Parameters
Type Name Description
System.Collections.Generic.List<AttachedData> attachmentlist

Properties

AttachmentList

Declaration
public List<AttachedData> AttachmentList { get; set; }
Property Value
Type Description
System.Collections.Generic.List<AttachedData>

Methods

AddData(AttachedData)

Adds attached data to this object,

Declaration
public void AddData(AttachedData AD)
Parameters
Type Name Description
AttachedData AD

Attached data to be added.

AttachementCount(Int32, Int32, Int32)

Counts the number of attached data per coordinate. Doesn't count data that has coordinates smaller than 0 or above depth range

Declaration
public int[][] AttachementCount(int xDepth, int yDepth, int zDepth)
Parameters
Type Name Description
System.Int32 xDepth

Depth of X-axis.

System.Int32 yDepth

Depth of Y-axis.

System.Int32 zDepth

Depth of Z-axis.

Returns
Type Description
System.Int32[][]

RemoveData(AttachedData)

Removes attached data from list.

Declaration
public void RemoveData(AttachedData AD)
Parameters
Type Name Description
AttachedData AD

Attached data to be removed

RemoveDataByName(String)

Removes data by attached data name.

Declaration
public void RemoveDataByName(string dataName)
Parameters
Type Name Description
System.String dataName

Name of the removed data.

SetAttachmentRelation(String)

Changes filepaths to be relative to given filepath,

Declaration
public void SetAttachmentRelation(string relativeTo)
Parameters
Type Name Description
System.String relativeTo

Filepath that the paths are relative to

In This Article
Back to top Generated by DocFX