-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
STYLE: Factor out itkOMEZarrNGFFCommon.h
For re-use across ImageIO and TransformIO. OMEZarrNGFFAxis is renamed to OMEZarrAxis for brevity. Also, what was previously ambigiously ome-zarr-ngff is now OME-Zarr.
- Loading branch information
Showing
6 changed files
with
59 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/*========================================================================= | ||
* | ||
* Copyright NumFOCUS | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0.txt | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*=========================================================================*/ | ||
|
||
#ifndef itkOMEZarrNGFFCommon_h | ||
#define itkOMEZarrNGFFCommon_h | ||
#include "IOOMEZarrNGFFExport.h" | ||
|
||
|
||
#include <string> | ||
|
||
namespace itk | ||
{ | ||
/** \class OMEZarrNGFFAxis | ||
* | ||
* \brief Represent an OME-Zarr NGFF axis | ||
* | ||
* Open Microscopy Environment Zarr Next Generation File Format | ||
* specification can be found at https://github.com/ome/ngff | ||
* | ||
* \ingroup IOOMEZarrNGFF | ||
*/ | ||
struct IOOMEZarrNGFF_EXPORT OMEZarrAxis | ||
{ | ||
std::string name; | ||
std::string type; | ||
std::string unit; | ||
}; | ||
|
||
} // end namespace itk | ||
|
||
#endif // itkOMEZarrNGFFCommon_h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
itk_wrap_module(IOOMEZarrNGFF) | ||
set(WRAPPER_SUBMODULE_ORDER | ||
itkOMEZarrNGFFCommon | ||
) | ||
itk_auto_load_submodules() | ||
itk_end_wrap_module() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
set(WRAPPER_AUTO_INCLUDE_HEADERS OFF) | ||
itk_wrap_include("itkOMEZarrNGFFCommon.h") | ||
itk_wrap_simple_class("itk::OMEZarrAxis") | ||
set(WRAPPER_AUTO_INCLUDE_HEADERS ON) |