pub struct ImgMetaMessage {
pub images: Vec<ImageMetaElement>,
}
Expand description
IMGMETA message containing multiple image metadata elements
§OpenIGTLink Specification
- Message type: “IMGMETA”
- Each element: NAME (
char[64]
) + ID (char[20]
) + MODALITY (char[32]
) + PATIENT_NAME (char[64]
) + PATIENT_ID (char[64]
) + TIMESTAMP (uint64) + SIZE (uint16[3]
) + SCALAR_TYPE (uint8) + Reserved (uint8) - Element size: 64 + 20 + 32 + 64 + 64 + 8 + 6 + 1 + 1 = 260 bytes
Fields§
§images: Vec<ImageMetaElement>
List of image metadata elements
Implementations§
Source§impl ImgMetaMessage
impl ImgMetaMessage
Sourcepub fn new(images: Vec<ImageMetaElement>) -> Self
pub fn new(images: Vec<ImageMetaElement>) -> Self
Create a new IMGMETA message
Sourcepub fn add_image(&mut self, image: ImageMetaElement)
pub fn add_image(&mut self, image: ImageMetaElement)
Add an image metadata element
Trait Implementations§
Source§impl Clone for ImgMetaMessage
impl Clone for ImgMetaMessage
Source§fn clone(&self) -> ImgMetaMessage
fn clone(&self) -> ImgMetaMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ImgMetaMessage
impl Debug for ImgMetaMessage
Source§impl Message for ImgMetaMessage
impl Message for ImgMetaMessage
Source§impl PartialEq for ImgMetaMessage
impl PartialEq for ImgMetaMessage
impl StructuralPartialEq for ImgMetaMessage
Auto Trait Implementations§
impl Freeze for ImgMetaMessage
impl RefUnwindSafe for ImgMetaMessage
impl Send for ImgMetaMessage
impl Sync for ImgMetaMessage
impl Unpin for ImgMetaMessage
impl UnwindSafe for ImgMetaMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more