Synchronous method to construct a client side RenderParams2D object. The default constructor marks all fields as undefined; any undefined fields will be ignored by the server. It can also be initialized using an existing RenderParams2D object.
Synchronous method to construct a client side RenderParams2D object. The default constructor marks all fields as undefined; any undefined fields will be ignored by the server. It can also be initialized using an existing RenderParams2D object.
background color for any pixels outside the displayed image data
DICOM GSPS Image Horizontal Flip (0070,0041) field; this is an enum that indicates if image is flipped horizontally. There is no vertical flip in the GSPS model. This is achieved with a combination of 180 degree rotation followed by a horizontal flip.
image height in pixels
current image number. This is zero-based and is in the range of 0 and getnumimages - 1. This is NOT the DICOM instance number
image width in pixels
indicates resample mode, which is nearest neightbor, bi-linear, or bi-cubic
Current "level" value applied in the DICOM rendering pipeline
X-offset for a pan operation
Y-offset for a pan operation
will be default (normal) or invert
reserved field (should be 0)
DICOM GSPS fieldOfView field (currently not implemented)
DICOM GSPS Image Rotation (0070, 0042) field; this is an enum value of 0,90,180,270
DICOM sopInstanceUID of the image being displayed
index of VOI LUT, if defined
Current "window" value applied in the DICOM rendering pipeline
Current zoom value applied in the DICOM rendering pipeline
Synchronous method that clears the current rotation/flip transformation. This only updates the renderParams2D object locally, it does not update the state of the server until a setRenderParams is called.
Performs a horizontal flip operation, using the current state of the objects rotate and flip fields.
Performs a vertical flip operation, using the current state of the objects rotate and flip fields. Interal to the render parameters object, is no vertical flip field as this is accomplished internally using a 180 degree rotate followed by a flip horizontal operation
Updates the existing objects fields with any non-null/defined values in the supplied rp parameter.
RenderParams2D object to be merged into this object
Performs rotate and filp and updates the current state of the object's rotate and flip fields.
Performs a single 90 degree clockwise rotate operation, updating the current state of the object's rotate and flip fields.
Performs a single 90 degree counter clockwise rotate operation, updating the current state of the object's rotate and flip fields.
Sets the backgroundColor field.
Red color component, 0 - 255.
Green color component, 0 - 255.
Blue color component, 0 - 255.
The output image width in pixels.
The output image height in pixels.
Sets the window and level fields.
The window value.
The level value.
Constructs a JSON string with the values from this object
Updates object's flip state.
A RenderParams2D object contains the complete state of a 2D render engine. This includes the current image number, sopInstanceUID, DICOM image width and height, window/level/zoom, offset (pan) as well as rotate and flip state that is passed through to the GSPS native layer. This object is constructed on the client and is passed to the server using the setRenderParams. This object is also returned to the client during getRenderParams , and when an image is returned from the server.