Skip to content

Commit

Permalink
API Add a new ColorMapType enum
Browse files Browse the repository at this point in the history
Specify type when calling GetColorMap.
  • Loading branch information
Fredrik Orderud committed Nov 11, 2019
1 parent 80fe585 commit 240d37d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Image3dAPI/IImage3d.idl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ enum ImageFormat {
IMAGE_FORMAT_R8G8B8A8 = 3, ///< 32bit RGBA (alpha channel ignored)
} ImageFormat;

typedef [
v1_enum, // 32bit enum size
helpstring("Enum of supported color-map formats (extended upon demand).")]
enum ColorMapType {
TYPE_TISSUE_COLOR, ///< tisse color-map; type=R8G8B8A8 (for slicing)
TYPE_FLOW_COLOR, ///< flow color-map; type=R8G8B8A8 (for slicing, in freq&bw space)
TYPE_FLOW_ARB, ///< flow arbitration; type=FREQ8POW8 (for deciding if tissue or flow shall be shown)
} ColorMapType;


typedef [
v1_enum, // 32bit enum size
Expand Down Expand Up @@ -293,8 +302,8 @@ interface IImage3dSource : IUnknown {
[helpstring("Get a bounding box encapsulating all image data. Can be used as intput to GetFrame to avoid cropping.")]
HRESULT GetBoundingBox ([out,retval] Cart3dGeom * geom);

[helpstring("Retrieve color-map table for mapping image intensities to RGBx values. Length is 256.")]
HRESULT GetColorMap ([out,retval] SAFEARRAY(unsigned int) * map);
[helpstring("Retrieve color-map table for mapping image intensities to RGBx values. Length depend on format.")]
HRESULT GetColorMap ([in] ColorMapType type, [out] ImageFormat * format, [out,retval] SAFEARRAY(unsigned int) * table);

[helpstring("Get ECG data if available [optional]. Shall return S_OK with an empty EcgSeries if EGC is not available.")]
HRESULT GetECG ([out,retval] EcgSeries * ecg);
Expand Down

0 comments on commit 240d37d

Please sign in to comment.