pub struct PointMessage {
pub points: Vec<PointElement>,
}
Expand description
POINT message containing multiple fiducial points
§OpenIGTLink Specification
- Message type: “POINT”
- Each element: NAME (
char[64]
) + GROUP (char[32]
) + RGBA (uint8[4]
) + XYZ (float32[3]
) + DIAMETER (float32) + OWNER (char[20]
) - Element size: 64 + 32 + 4 + 12 + 4 + 20 = 136 bytes
Fields§
§points: Vec<PointElement>
List of point elements
Implementations§
Source§impl PointMessage
impl PointMessage
Sourcepub fn new(points: Vec<PointElement>) -> Self
pub fn new(points: Vec<PointElement>) -> Self
Create a new POINT message with points
Sourcepub fn add_point(&mut self, point: PointElement)
pub fn add_point(&mut self, point: PointElement)
Add a point element
Trait Implementations§
Source§impl Clone for PointMessage
impl Clone for PointMessage
Source§fn clone(&self) -> PointMessage
fn clone(&self) -> PointMessage
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 PointMessage
impl Debug for PointMessage
Source§impl Message for PointMessage
impl Message for PointMessage
Source§impl PartialEq for PointMessage
impl PartialEq for PointMessage
impl StructuralPartialEq for PointMessage
Auto Trait Implementations§
impl Freeze for PointMessage
impl RefUnwindSafe for PointMessage
impl Send for PointMessage
impl Sync for PointMessage
impl Unpin for PointMessage
impl UnwindSafe for PointMessage
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