11 #include <GoVision/GvUtils.h>
29 #define GV_DATA_MSG_DISPOSITION_NONE (0)
30 #define GV_DATA_MSG_DISPOSITION_RANGE (1)
31 #define GV_DATA_MSG_DISPOSITION_PROFILE (2)
32 #define GV_DATA_MSG_DISPOSITION_SURFACE (3)
33 #define GV_DATA_MSG_DISPOSITION_GENERIC (10)
35 #define GV_DATA_MSG_LAYER_RANGE (0)
36 #define GV_DATA_MSG_LAYER_INTENSITY (1)
37 #define GV_DATA_MSG_LAYER_MAP (2)
38 #define GV_DATA_MSG_LAYER_SLICES (3)
521 #include <GoVision/Data/GvDataMsg.x.h>
kStatus GvDataMsg_CopyPoseToId(GvDataMsg msg, GvDataMsg source, k32s id)
Copies all poses less than the id from the source.
kObject GvDataMsg_ObjectExtAt(GvDataMsg msg, kSize frame)
Returns the extension object for the given message frame.
kStatus GvDataMsg_SetEncoder(GvDataMsg msg, k64s encoder)
Sets the data encoder value.
kStatus GvDataMsg_SetOffset(GvDataMsg msg, const kPoint3d64f *offset)
Sets the x,y,z offset for the data message.
k64u GvDataMsg_Time(GvDataMsg msg)
Returns the data time, which is expresseed in Firesync time units in microseconds.
const kPoint3d64f * GvDataMsg_Offset(GvDataMsg msg)
Returns the x,y,z offset for the data message.
kType GvDataMsg_RangeType(GvDataMsg msg)
Returns the message range data type.
kStatus GvDataMsg_SetTime(GvDataMsg msg, k64u time)
Sets the data time (usec).
GvDataMsgDisposition GvDataMsg_Disposition(GvDataMsg msg)
Returns the message disposition type.
Base class for data messages.
const kStamp * GvDataMsg_Stamp(GvDataMsg msg)
Returns the data stamp.
void * GvDataMsg_LayerData(GvDataMsg msg, k32s id, kSize row, kSize column)
Gets the layer data at the given row and column.
kStatus GvDataMsg_SelectPoseInverse(GvDataMsg msg, k32s fromId, kPose2d64f *pose)
Selects poses for the given id and provides the inverse.
Essential GoVision declarations.
kStatus GvDataMsg_SetLayerData(GvDataMsg msg, k32s id, const void *data)
Sets the layer data.
kStatus GvDataMsg_AddLayer(GvDataMsg msg, kType type, k32s id)
Adds a new layer to the end (and allocates it).
kStatus GvDataMsg_SetPtpTime(GvDataMsg msg, k64u ptpTime)
Sets the data ptp timestamp value.
const kPoint3d64f * GvDataMsg_Scale(GvDataMsg msg)
Returns the x,y,z scale of the data message.
const kPose2d64f * GvDataMsg_PoseAt(GvDataMsg msg, kSize index)
Returns the pose for the given pose index.
kStatus GvDataMsg_SetStamp(GvDataMsg msg, const kStamp *stamp)
Sets the data stamp.
GvMovementDirection GvDataMsg_Direction(GvDataMsg msg)
Returns the movement direction.
kSize GvDataMsg_Width(GvDataMsg msg)
Returns the data width as a number of columns.
kStatus GvDataMsg_ClearPose(GvDataMsg msg)
Clears all poses.
kSize GvDataMsg_PoseCount(GvDataMsg msg)
Returns the number of poses.
kStatus GvDataMsg_SelectPose(GvDataMsg msg, k32s toId, kPose2d64f *pose)
Selects poses for the given id.
kStatus GvDataMsg_SetRanges(GvDataMsg msg, const void *data)
Sets range layer data.
k32s GvDataMsg_LayerIdAt(GvDataMsg msg, kSize index)
Returns the layer id at the given layer index.
kStatus GvDataMsg_SetPoseAt(GvDataMsg msg, kSize index, const kPose2d64f *pose)
Sets the pose at the given index.
kStatus GvDataMsg_SelectPoseRelative(GvDataMsg msg, k32s toId, k32s fromId, kPose2d64f *pose)
Selects the relative pose to get from one pose id to another pose id.
kStatus GvDataMsg_CopyPose(GvDataMsg msg, GvDataMsg source)
Copies the pose from the source message.
kStatus GvDataMsg_SetRenderingAt(GvDataMsg msg, kSize frame, kObject object)
Sets the rendering object for the given message frame.
k64s GvDataMsg_Encoder(GvDataMsg msg)
Returns the data encoder value.
kSize GvDataMsg_LayerCount(GvDataMsg msg)
Returns a layer count.
kStatus GvDataMsg_AddPose(GvDataMsg msg, k32s id, const kPose2d64f *pose)
Adds pose.
kType GvDataMsg_LayerType(GvDataMsg msg, k32s id)
Returns the layer data type of the given layer id.
kPoint3d64f GvDataMsg_OffsetWithRef(GvDataMsg msg)
Returns the x,y,z offset with respect to frame of reference for the data message .
void * GvDataMsg_Ranges(GvDataMsg msg, kSize row, kSize column)
Returns a pointer to range layer data at given row and column.
kStatus GvDataMsg_CopyAttrs(GvDataMsg msg, GvDataMsg source)
Convenience wrapper that copies elementary data attributes from the source for first frame...
kStatus GvDataMsg_AppendLayer(GvDataMsg msg, kType type, k32s id, kBool allocate)
Appends a layer to the end (optionally allocating it).
kObject GvDataMsg_RenderingAt(GvDataMsg msg, kSize frame)
Returns the rendering object for the given message frame.
kStatus GvDataMsg_SetPoseIdAt(GvDataMsg msg, kSize index, k32s id)
Sets the pose id for the pose at the given index.
k32s GvDataMsg_PoseIdAt(GvDataMsg msg, kSize index)
Returns the pose id for the given pose index.
kStatus GvDataMsg_SetDirection(GvDataMsg msg, GvMovementDirection direction)
Sets the movement direction.
kStatus GvDataMsg_SetScale(GvDataMsg msg, const kPoint3d64f *scale)
Sets the x,y,z scale of the data message.
kBool GvDataMsg_HasLayer(GvDataMsg msg, k32s id)
Returns whether or not this message contains the given layer id.
kSize GvDataMsg_Length(GvDataMsg msg)
Returns the data length as a number of rows.
k64u GvDataMsg_PtpTime(GvDataMsg msg)
Returns the ptp timestamp value.
kStatus GvDataMsg_SetObjectExtAt(GvDataMsg msg, kSize frame, kObject object)
Sets the extension object for the given message frame.
kStatus GvDataMsg_SetFsAndPtpTime(GvDataMsg msg, k64u time, k64u ptpTime)
Sets the FsTime and PtpTime in (usec).