PlusLib
2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
|
Contains an optional timestamped circular buffer containing the video images and a number of timestamped circular buffer of StreamBufferItems for the transforms. StreamBufferItems are essentially a class that contains both a single video frame and/or a 4x4 matrix. More...
#include <src/PlusDataCollection/vtkPlusChannel.h>
Public Types | |
typedef std::map< std::string, std::string > | CustomAttributeMap |
typedef CustomAttributeMap::const_iterator | CustomAttributeMapConstIterator |
typedef CustomAttributeMap::iterator | CustomAttributeMapIterator |
typedef vtkObject | Superclass |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkPlusChannel * | New () |
static vtkPlusChannel * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
virtual int | GetNumberOfFramesBetweenTimestamps (double aTimestampFrom, double aTimestampTo) |
vtkPlusChannel (void) | |
virtual | ~vtkPlusChannel (void) |
Protected Attributes | |
vtkImageData * | BlankImage |
FrameSizeType | BrightnessFrameSize |
StreamBufferItem | BrightnessOutputTrackedFrame |
char * | ChannelId |
CustomAttributeMap | CustomAttributes |
DataSourceContainer | FieldDataSources |
vtkPlusDevice * | OwnerDevice |
vtkPlusRfProcessor * | RfProcessor |
bool | SaveRfProcessingParameters |
vtkPlusDataSource * | TimestampMasterTool |
DataSourceContainer | Tools |
vtkPlusDataSource * | VideoSource |
Contains an optional timestamped circular buffer containing the video images and a number of timestamped circular buffer of StreamBufferItems for the transforms. StreamBufferItems are essentially a class that contains both a single video frame and/or a 4x4 matrix.
Definition at line 34 of file vtkPlusChannel.h.
typedef std::map< std::string, std::string > vtkPlusChannel::CustomAttributeMap |
Definition at line 37 of file vtkPlusChannel.h.
typedef CustomAttributeMap::const_iterator vtkPlusChannel::CustomAttributeMapConstIterator |
Definition at line 39 of file vtkPlusChannel.h.
typedef CustomAttributeMap::iterator vtkPlusChannel::CustomAttributeMapIterator |
Definition at line 38 of file vtkPlusChannel.h.
typedef vtkObject vtkPlusChannel::Superclass |
Definition at line 43 of file vtkPlusChannel.h.
|
protected |
Definition at line 35 of file vtkPlusChannel.cxx.
|
protectedvirtual |
Definition at line 59 of file vtkPlusChannel.cxx.
PlusStatus vtkPlusChannel::AddFieldDataSource | ( | vtkPlusDataSource * | aSource | ) |
Definition at line 345 of file vtkPlusChannel.cxx.
PlusStatus vtkPlusChannel::AddTool | ( | vtkPlusDataSource * | aTool | ) |
Definition at line 280 of file vtkPlusChannel.cxx.
|
virtual |
Definition at line 419 of file vtkPlusChannel.cxx.
|
inline |
Definition at line 75 of file vtkPlusChannel.h.
|
virtual |
Add generated html report from data acquisition to the existing html report. htmlReport and plotter arguments has to be defined by the caller function
Definition at line 1808 of file vtkPlusChannel.cxx.
PlusStatus vtkPlusChannel::GetBrightnessFrameSize | ( | FrameSizeType & | aDim | ) |
Return the dimensions of the brightness frame size
Definition at line 1719 of file vtkPlusChannel.cxx.
vtkImageData * vtkPlusChannel::GetBrightnessOutput | ( | ) |
Make a request for the latest image frame
Definition at line 1727 of file vtkPlusChannel.cxx.
|
virtual |
|
virtual |
|
virtual |
Get the closest tracked frame timestamp to the specified time
Definition at line 1660 of file vtkPlusChannel.cxx.
PlusStatus vtkPlusChannel::GetCustomAttribute | ( | const std::string & | attributeId, |
std::string & | output | ||
) | const |
Definition at line 1772 of file vtkPlusChannel.cxx.
PlusStatus vtkPlusChannel::GetCustomAttributeMap | ( | CustomAttributeMap & | output | ) | const |
Definition at line 1784 of file vtkPlusChannel.cxx.
bool vtkPlusChannel::GetFieldDataAvailable | ( | ) |
Definition at line 1527 of file vtkPlusChannel.cxx.
bool vtkPlusChannel::GetFieldDataEnabled | ( | ) | const |
Definition at line 1564 of file vtkPlusChannel.cxx.
PlusStatus vtkPlusChannel::GetFieldDataSource | ( | vtkPlusDataSource *& | aSource, |
const std::string & | sourceId | ||
) |
Definition at line 390 of file vtkPlusChannel.cxx.
|
inline |
Definition at line 83 of file vtkPlusChannel.h.
|
inline |
Definition at line 81 of file vtkPlusChannel.h.
|
inline |
Definition at line 82 of file vtkPlusChannel.h.
|
inline |
Definition at line 80 of file vtkPlusChannel.h.
|
virtual |
Definition at line 438 of file vtkPlusChannel.cxx.
|
virtual |
Return the most recent synchronized timestamp in the buffers
Definition at line 1265 of file vtkPlusChannel.cxx.
|
protectedvirtual |
Get number of tracked frames between two given timestamps (inclusive)
Definition at line 1594 of file vtkPlusChannel.cxx.
|
virtual |
Return the oldest synchronized timestamp in the buffers
Definition at line 1130 of file vtkPlusChannel.cxx.
|
inline |
Definition at line 153 of file vtkPlusChannel.h.
|
virtual |
PlusStatus vtkPlusChannel::GetTimestampMasterTool | ( | vtkPlusDataSource *& | aTool | ) |
Get the timestamp master tool. The timestamp master tool determines the sampling times for all the other tools in the output channel if no video data is available. Currently the tool that is first added to the channel is used as master tool.
Definition at line 1570 of file vtkPlusChannel.cxx.
PlusStatus vtkPlusChannel::GetTool | ( | vtkPlusDataSource *& | aTool, |
const std::string & | toolSourceId | ||
) |
Definition at line 238 of file vtkPlusChannel.cxx.
PlusStatus vtkPlusChannel::GetToolByPortName | ( | vtkPlusDataSource *& | aTool, |
const std::string & | portName | ||
) |
Definition at line 259 of file vtkPlusChannel.cxx.
|
inline |
Definition at line 73 of file vtkPlusChannel.h.
|
inline |
Definition at line 71 of file vtkPlusChannel.h.
|
inline |
Definition at line 72 of file vtkPlusChannel.h.
|
inline |
Definition at line 70 of file vtkPlusChannel.h.
|
virtual |
Get tracked frame containing the transform(s) or the image(s) acquired from the device at a specific timestamp
timestamp | Timestamp of the requested tracked frame |
trackedFrame | Target tracked frame |
enableImageData | Enable returning of image data. Tracking data will be interpolated at the timestamp of the image data. |
Definition at line 532 of file vtkPlusChannel.cxx.
|
virtual |
Definition at line 707 of file vtkPlusChannel.cxx.
PlusStatus vtkPlusChannel::GetTrackedFrameList | ( | double & | aTimestampOfLastFrameAlreadyGot, |
vtkIGSIOTrackedFrameList * | aTrackedFrameList, | ||
int | aMaxNumberOfFramesToAdd | ||
) |
Get all the tracked frame list from devices since time specified
aTimestampOfLastFrameAlreadyGot | Used for preventing returning the same frame multiple times. In: the timestamp of the timestamp that has been already returned in previous GetTrackedFrameList calls. If no frames have got yet then set it to UNDEFINED_TIMESTAMP, the frames will be retrieved from the latest timestamp. Out: the timestamp of the most recent frame that is returned. |
aTrackedFrameList | Tracked frame list used to get the newly acquired frames into. The new frames are appended to the tracked frame. |
aMaxNumberOfFramesToAdd | Maximum this number of frames will be added (can be used for limiting the time spent in this method) |
Definition at line 717 of file vtkPlusChannel.cxx.
|
virtual |
Get the tracked frame list from devices since time specified
aTimestampOfLastFrameAlreadyGot | Used for preventing returning the same frame multiple times. In: the timestamp of the timestamp that has been already returned in previous GetTrackedFrameListSampled calls. If no frames have got yet then set it to UNDEFINED_TIMESTAMP. Out: the timestamp of the most recent frame that is returned. |
aTimestampOfNextFrameToBeAdded | Timestamp of the next frame that should be added. This value is increased by the multiple of aSamplingPeriodSec. |
aTrackedFrameList | Tracked frame list used to get the newly acquired frames into. The new frames are appended to the tracked frame. |
aSamplingPeriodSec | Sampling period time for getting the frames in seconds (timestamps are in seconds too) |
maxTimeLimitSec | Maximum time spent in the function (in sec) |
Definition at line 1052 of file vtkPlusChannel.cxx.
bool vtkPlusChannel::GetTrackingDataAvailable | ( | ) |
Definition at line 1491 of file vtkPlusChannel.cxx.
bool vtkPlusChannel::GetTrackingEnabled | ( | ) | const |
Definition at line 1552 of file vtkPlusChannel.cxx.
bool vtkPlusChannel::GetVideoDataAvailable | ( | ) |
Definition at line 1516 of file vtkPlusChannel.cxx.
bool vtkPlusChannel::GetVideoEnabled | ( | ) | const |
Definition at line 1558 of file vtkPlusChannel.cxx.
|
inline |
Definition at line 54 of file vtkPlusChannel.h.
|
inline |
Definition at line 61 of file vtkPlusChannel.h.
|
virtual |
|
static |
bool vtkPlusChannel::IsVideoSource3D | ( | ) | const |
Definition at line 1898 of file vtkPlusChannel.cxx.
|
static |
|
virtual |
Parse the XML, read the details about the stream
Definition at line 75 of file vtkPlusChannel.cxx.
PlusStatus vtkPlusChannel::RemoveFieldDataSource | ( | const std::string & | sourceId | ) |
Definition at line 369 of file vtkPlusChannel.cxx.
PlusStatus vtkPlusChannel::RemoveFieldDataSources | ( | ) |
Definition at line 411 of file vtkPlusChannel.cxx.
PlusStatus vtkPlusChannel::RemoveTool | ( | const std::string & | toolSourceId | ) |
Definition at line 311 of file vtkPlusChannel.cxx.
PlusStatus vtkPlusChannel::RemoveTools | ( | ) |
Definition at line 337 of file vtkPlusChannel.cxx.
|
static |
|
virtual |
PlusStatus vtkPlusChannel::SetCustomAttribute | ( | const std::string & | attributeId, |
const std::string & | value | ||
) |
Definition at line 1795 of file vtkPlusChannel.cxx.
|
inline |
Definition at line 152 of file vtkPlusChannel.h.
|
virtual |
|
virtual |
void vtkPlusChannel::SetVideoSource | ( | vtkPlusDataSource * | aSource | ) |
Definition at line 526 of file vtkPlusChannel.cxx.
|
virtual |
Definition at line 481 of file vtkPlusChannel.cxx.
|
virtual |
Definition at line 498 of file vtkPlusChannel.cxx.
|
inline |
Definition at line 64 of file vtkPlusChannel.h.
|
virtual |
Write the details about the stream to XML
Definition at line 187 of file vtkPlusChannel.cxx.
|
protected |
Definition at line 186 of file vtkPlusChannel.h.
|
protected |
Definition at line 188 of file vtkPlusChannel.h.
|
protected |
Definition at line 187 of file vtkPlusChannel.h.
|
protected |
Definition at line 182 of file vtkPlusChannel.h.
|
protected |
Definition at line 200 of file vtkPlusChannel.h.
|
protected |
Definition at line 178 of file vtkPlusChannel.h.
|
protected |
Definition at line 181 of file vtkPlusChannel.h.
|
protected |
RF to brightness conversion
Definition at line 185 of file vtkPlusChannel.h.
|
protected |
If true then RF processing parameters will be saved into the config file
Definition at line 191 of file vtkPlusChannel.h.
|
protected |
This tool will be used to provide timestamps if no video data is present All the other tools will use the same timestamps and the transforms will be interpolated if needed.
Definition at line 198 of file vtkPlusChannel.h.
|
protected |
Definition at line 179 of file vtkPlusChannel.h.
|
protected |
Definition at line 180 of file vtkPlusChannel.h.