Skip to content

Commit

Permalink
Merge pull request ome#5785 from melissalinkert/resolution-level-javadoc
Browse files Browse the repository at this point in the history
Update Javadoc for resolution level getters/setters to clarify ordering
  • Loading branch information
sbesson authored Jul 6, 2018
2 parents 69e49a7 + b83bb7a commit e155395
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 2 deletions.
24 changes: 24 additions & 0 deletions components/common/src/ome/api/RawPixelsStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,34 @@ public interface RawPixelsStore extends StatefulServiceInterface {

public Object getResolutionDescriptions();

/**
* Retrieves the number of resolution levels that the backing
* pixels pyramid contains.
* @return The number of resolution levels. This value does not
* necessarily indicate either the presence or absence of a
* pixels pyramid.
**/
public int getResolutionLevels();

/**
* Retrieves the active resolution level.
* @return The active resolution level. The level will be non-negative and less
* than {@link #getResolutionLevels()}. Resolution level 0 is the smallest
* resolution and resolution level <code>getResolutionLevels() - 1</code>
* is the largest resolution. This is the inverse of how Bio-Formats indexes
* resolutions.
*/
public int getResolutionLevel();

/**
* Sets the active resolution level.
* @param resolutionLevel The resolution level to be used.
* The level should be non-negative and less than
* {@link #getResolutionLevels()}. * Resolution level 0 is the smallest
* resolution and resolution level <code>getResolutionLevels() - 1</code>
* is the largest resolution. This is the inverse of how Bio-Formats indexes
* resolutions.
*/
public void setResolutionLevel(int resolutionLevel);

public int[] getTileSize();
Expand Down
3 changes: 3 additions & 0 deletions components/common/src/omeis/providers/re/RenderingEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -602,10 +602,13 @@ public void setQuantizationMap(int w, Family family, double coefficient,

public Object getResolutionDescriptions();

/* @see ome.io.nio.PixelBuffer#getResolutionLevels() */
public int getResolutionLevels();

/* @see ome.io.nio.PixelBuffer#getResolutionLevel() */
public int getResolutionLevel();

/* @see ome.io.nio.PixelBuffer#setResolutionLevel(int) */
public void setResolutionLevel(int resolutionLevel);

public int[] getTileSize();
Expand Down
3 changes: 3 additions & 0 deletions components/rendering/src/omeis/providers/re/Renderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,7 @@ public double getPixelsTypeUpperBound(int w)
/**
* Sets the active resolution level.
* @param resolutionLevel The resolution level to be used by the renderer.
* @see ome.io.nio.PixelBuffer#setResolutionLevel(int)
**/
public void setResolutionLevel(int resolutionLevel)
{
Expand All @@ -962,6 +963,7 @@ public void setResolutionLevel(int resolutionLevel)
/**
* Retrieves the active resolution level.
* @return The active resolution level.
* @see ome.io.nio.PixelBuffer#getResolutionLevel()
**/
public int getResolutionLevel()
{
Expand All @@ -974,6 +976,7 @@ public int getResolutionLevel()
* @return The number of resolution levels. This value does not
* necessarily indicate either the presence or absence of a
* pixels pyramid.
* @see ome.io.nio.PixelBuffer#getResolutionLevels()
**/
public int getResolutionLevels()
{
Expand Down
12 changes: 10 additions & 2 deletions components/romio/src/ome/io/nio/PixelBuffer.java
Original file line number Diff line number Diff line change
Expand Up @@ -678,14 +678,22 @@ public void setTimepoint(byte[] buffer, Integer t) throws IOException,

/**
* Retrieves the active resolution level.
* @return The active resolution level.
* @return The active resolution level. The level will be non-negative and less
* than {@link #getResolutionLevels()}. Resolution level 0 is the smallest
* resolution and resolution level <code>getResolutionLevels() - 1</code>
* is the largest resolution. This is the inverse of how Bio-Formats indexes
* resolutions.
**/
public int getResolutionLevel();

/**
* Sets the active resolution level.
* @param resolutionLevel The resolution level to be used by
* the pixel buffer.
* the pixel buffer. The level should be non-negative and less
* than {@link #getResolutionLevels()}. Resolution level 0 is the smallest
* resolution and resolution level <code>getResolutionLevels() - 1</code>
* is the largest resolution. This is the inverse of how Bio-Formats indexes
* resolutions.
**/
public void setResolutionLevel(int resolutionLevel);

Expand Down

0 comments on commit e155395

Please sign in to comment.