Skip to content

Commit

Permalink
ENH: add getters and setters to Tile and TileConfiguration for Python…
Browse files Browse the repository at this point in the history
… access
  • Loading branch information
dzenanz committed Mar 17, 2021
1 parent cb86803 commit 325add3
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions include/itkTileConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,30 @@ struct ITK_TEMPLATE_EXPORT Tile
PointType Position; // x, y... coordinates

std::string FileName;

/* Primarily for access via SWIG wrapping */
PointType
GetPosition() const
{
return Position;
}
void
SetPosition(PointType position)
{
Position = position;
}

/* Primarily for access via SWIG wrapping */
std::string
GetFileName() const
{
return FileName;
}
void
SetFileName(std::string fileName)
{
FileName = fileName;
}
};


Expand All @@ -56,6 +80,30 @@ struct ITK_TEMPLATE_EXPORT TileConfiguration

std::vector<TileND> Tiles;

/* Primarily for access via SWIG wrapping */
TileIndexType
GetAxisSizes() const
{
return AxisSizes;
}
void
SetAxisSizes(TileIndexType axisSizes)
{
AxisSizes = axisSizes;
}

/* Primarily for access via SWIG wrapping */
TileND
GetTile(size_t linearIndex) const
{
return Tiles[linearIndex];
}
void
SetTile(size_t linearIndex, TileND tile)
{
Tiles[linearIndex] = tile;
}

size_t
LinearSize() const
{
Expand Down

0 comments on commit 325add3

Please sign in to comment.