BioGTK  6.5.0
A .NET library & program for annotating, editing various microscopy imaging formats using Bioformats supported images. Including whole slide, pyramidal, and series.
Loading...
Searching...
No Matches
BioGTK.SkiaStitchingPipeline.TileRequest Class Reference

Tile request information. More...

Public Member Functions

 TileRequest (TileInfo tf, ZCT coord)
 
string GetCacheKey ()
 

Properties

int Level [get, set]
 
int TileX [get, set]
 
int TileY [get, set]
 
ZCT Coordinate [get, set]
 
Extent Extent [get, set]
 
TileIndex Index [get, set]
 
RectangleD Bounds [get]
 
TileInfo TileInfo [get, set]
 

Detailed Description

Tile request information.

Definition at line 80 of file SkiaStitch.cs.

Constructor & Destructor Documentation

◆ TileRequest()

BioGTK.SkiaStitchingPipeline.TileRequest.TileRequest ( TileInfo tf,
ZCT coord )

Definition at line 136 of file SkiaStitch.cs.

137 {
138 Index = tf.Index;
139 Extent = tf.Extent;
140 Coordinate = coord;
141 }

Member Function Documentation

◆ GetCacheKey()

string BioGTK.SkiaStitchingPipeline.TileRequest.GetCacheKey ( )

Definition at line 143 of file SkiaStitch.cs.

144 {
145 // Use Col/Row directly to avoid confusion
146 return $"{Index.Col}_{Index.Row}_{Level}_{Coordinate.Z}_{Coordinate.C}_{Coordinate.T}";
147 }

Property Documentation

◆ Bounds

RectangleD BioGTK.SkiaStitchingPipeline.TileRequest.Bounds
get

Definition at line 113 of file SkiaStitch.cs.

114 {
115 get
116 {
117 return new RectangleD(
118 Extent.MinX,
119 Extent.MinY,
120 Extent.MaxX - Extent.MinX,
121 Extent.MaxY - Extent.MinY
122 );
123 }
124 }

◆ Coordinate

ZCT BioGTK.SkiaStitchingPipeline.TileRequest.Coordinate
getset

Definition at line 109 of file SkiaStitch.cs.

109{ get; set; }

◆ Extent

Extent BioGTK.SkiaStitchingPipeline.TileRequest.Extent
getset

Definition at line 110 of file SkiaStitch.cs.

110{ get; set; }

◆ Index

TileIndex BioGTK.SkiaStitchingPipeline.TileRequest.Index
getset

Definition at line 111 of file SkiaStitch.cs.

111{ get; set; }

◆ Level

int BioGTK.SkiaStitchingPipeline.TileRequest.Level
getset

Definition at line 82 of file SkiaStitch.cs.

83 {
84 get => Index.Level;
85 set => Index = new TileIndex(Index.Col, Index.Row, value);
86 }

◆ TileInfo

TileInfo BioGTK.SkiaStitchingPipeline.TileRequest.TileInfo
getset

Definition at line 126 of file SkiaStitch.cs.

127 {
128 get => new TileInfo { Index = Index, Extent = Extent };
129 set
130 {
131 Index = value.Index;
132 Extent = value.Extent;
133 }
134 }

◆ TileX

int BioGTK.SkiaStitchingPipeline.TileRequest.TileX
getset

Definition at line 89 of file SkiaStitch.cs.

90 {
91 get => Index.Col * 256; // Col = X coordinate
92 set
93 {
94 int col = value / 256;
95 Index = new TileIndex(col, Index.Row, Level);
96 }
97 }

◆ TileY

int BioGTK.SkiaStitchingPipeline.TileRequest.TileY
getset

Definition at line 99 of file SkiaStitch.cs.

100 {
101 get => Index.Row * 256; // Row = Y coordinate
102 set
103 {
104 int row = value / 256;
105 Index = new TileIndex(Index.Col, row, Level);
106 }
107 }

The documentation for this class was generated from the following file: