PlusLib
2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
|
Manages devices that record image or positional data. More...
#include <src/PlusDataCollection/vtkPlusDataCollector.h>
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
PlusStatus | AddDevice (vtkPlusDevice *aDevice) |
PlusStatus | Connect () |
PlusStatus | Disconnect () |
PlusStatus | DumpBuffersToDirectory (const char *aDirectory) |
PlusStatus | GetChannel (vtkPlusChannel *&aChannel, const std::string &aChannelId) const |
virtual const char * | GetClassName () |
bool | GetConnected () const |
PlusStatus | GetDevice (vtkPlusDevice *&aDevice, const std::string &aDeviceId) const |
DeviceCollectionConstIterator | GetDeviceConstIteratorBegin () const |
DeviceCollectionConstIterator | GetDeviceConstIteratorEnd () const |
vtkPlusDeviceFactory & | GetDeviceFactory () |
PlusStatus | GetDevices (DeviceCollection &OutVector) const |
PlusStatus | GetFirstChannel (vtkPlusChannel *&aChannel) const |
bool | GetStarted () const |
virtual double | GetStartupDelaySec () |
PlusStatus | GetTrackingData (vtkPlusChannel *aRequestedChannel, double &aTimestampFrom, vtkIGSIOTrackedFrameList *aTrackedFrameList) |
virtual PlusStatus | GetVideoData (vtkPlusChannel *aRequestedChannel, double &aTimestamp, vtkIGSIOTrackedFrameList *aTrackedFrameList) |
virtual int | IsA (const char *type) |
bool | IsStarted () const |
virtual void | PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE |
PlusStatus | ReadConfiguration (vtkXMLDataElement *aConfig) |
PlusStatus | ReadConfiguration (const std::string &fileName) |
void | SetDeviceFactory (vtkSmartPointer< vtkPlusDeviceFactory > factory) |
virtual PlusStatus | SetLoopTimes () |
virtual void | SetStartupDelaySec (double) |
PlusStatus | Start () |
PlusStatus | Stop () |
PlusStatus | WriteConfiguration (vtkXMLDataElement *aConfig) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkPlusDataCollector * | New () |
static vtkPlusDataCollector * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkPlusDataCollector () | |
virtual | ~vtkPlusDataCollector () |
Protected Attributes | |
bool | Connected |
vtkSmartPointer< vtkPlusDeviceFactory > | DeviceFactory |
DeviceCollection | Devices |
bool | Started |
double | StartupDelaySec |
Manages devices that record image or positional data.
Provides an interface for clients to connect to a device set, and request data to the currently active devices.
Definition at line 32 of file vtkPlusDataCollector.h.
typedef vtkObject vtkPlusDataCollector::Superclass |
Definition at line 36 of file vtkPlusDataCollector.h.
|
protected |
Definition at line 40 of file vtkPlusDataCollector.cxx.
|
protectedvirtual |
Definition at line 55 of file vtkPlusDataCollector.cxx.
PlusStatus vtkPlusDataCollector::AddDevice | ( | vtkPlusDevice * | aDevice | ) |
Add a device to the device list
aDevice | the device to add |
Definition at line 715 of file vtkPlusDataCollector.cxx.
PlusStatus vtkPlusDataCollector::Connect | ( | ) |
Connect to device(s). Connection is needed for recording or single frame grabbing
Definition at line 357 of file vtkPlusDataCollector.cxx.
PlusStatus vtkPlusDataCollector::Disconnect | ( | ) |
Disconnect from active device(s). This method must be called before application exit, or else the application might hang during exit.
Definition at line 391 of file vtkPlusDataCollector.cxx.
PlusStatus vtkPlusDataCollector::DumpBuffersToDirectory | ( | const char * | aDirectory | ) |
Have each device dump their buffers to disk
aDirectory | directory to dump to |
maxTimeLimitSec | Maximum time spent in the function (in sec) |
Definition at line 475 of file vtkPlusDataCollector.cxx.
PlusStatus vtkPlusDataCollector::GetChannel | ( | vtkPlusChannel *& | aChannel, |
const std::string & | aChannelId | ||
) | const |
Return the requested channel
aChannel | the device pointer to fill |
aChannelId | the ID of the requested device |
Definition at line 736 of file vtkPlusDataCollector.cxx.
|
virtual |
bool vtkPlusDataCollector::GetConnected | ( | ) | const |
Definition at line 469 of file vtkPlusDataCollector.cxx.
PlusStatus vtkPlusDataCollector::GetDevice | ( | vtkPlusDevice *& | aDevice, |
const std::string & | aDeviceId | ||
) | const |
Return the requested device
aDevice | the device pointer to fill |
aDeviceId | the ID of the requested device |
Definition at line 429 of file vtkPlusDataCollector.cxx.
DeviceCollectionConstIterator vtkPlusDataCollector::GetDeviceConstIteratorBegin | ( | ) | const |
Allow iteration over devices
Definition at line 505 of file vtkPlusDataCollector.cxx.
DeviceCollectionConstIterator vtkPlusDataCollector::GetDeviceConstIteratorEnd | ( | ) | const |
Definition at line 511 of file vtkPlusDataCollector.cxx.
vtkPlusDeviceFactory & vtkPlusDataCollector::GetDeviceFactory | ( | ) |
Get the factory instance used to create devices
Definition at line 311 of file vtkPlusDataCollector.cxx.
PlusStatus vtkPlusDataCollector::GetDevices | ( | DeviceCollection & | OutVector | ) | const |
Definition at line 448 of file vtkPlusDataCollector.cxx.
PlusStatus vtkPlusDataCollector::GetFirstChannel | ( | vtkPlusChannel *& | aChannel | ) | const |
Definition at line 751 of file vtkPlusDataCollector.cxx.
bool vtkPlusDataCollector::GetStarted | ( | ) | const |
Definition at line 463 of file vtkPlusDataCollector.cxx.
|
virtual |
Get startup delay in sec to give some time to the buffers for proper initialization
PlusStatus vtkPlusDataCollector::GetTrackingData | ( | vtkPlusChannel * | aRequestedChannel, |
double & | aTimestampFrom, | ||
vtkIGSIOTrackedFrameList * | aTrackedFrameList | ||
) |
Get tracking data in a tracked frame list since time specified
aTimestamp | The oldest timestamp we search for in the buffer. If -1 get all frames in the time range since the most recent timestamp. Out parameter - changed to timestamp of last added frame |
aTrackedFrameList | Tracked frame list used to get the newly acquired frames into. The new frames are appended to the tracked frame. |
Definition at line 517 of file vtkPlusDataCollector.cxx.
|
virtual |
Get video data in a tracked frame list since time specified
aTimestamp | The oldest timestamp we search for in the buffer. If -1 get all frames in the time range since the most recent timestamp. Out parameter - changed to timestamp of last added frame |
aTrackedFrameList | Tracked frame list used to get the newly acquired frames into. The new frames are appended to the tracked frame. |
Definition at line 584 of file vtkPlusDataCollector.cxx.
|
virtual |
|
inline |
Definition at line 145 of file vtkPlusDataCollector.h.
|
static |
|
static |
|
virtual |
Definition at line 415 of file vtkPlusDataCollector.cxx.
PlusStatus vtkPlusDataCollector::ReadConfiguration | ( | vtkXMLDataElement * | aConfig | ) |
Read main configuration from xml data
Definition at line 75 of file vtkPlusDataCollector.cxx.
PlusStatus vtkPlusDataCollector::ReadConfiguration | ( | const std::string & | fileName | ) |
Definition at line 250 of file vtkPlusDataCollector.cxx.
|
static |
void vtkPlusDataCollector::SetDeviceFactory | ( | vtkSmartPointer< vtkPlusDeviceFactory > | factory | ) |
Set the factory instance used to create devices
Definition at line 302 of file vtkPlusDataCollector.cxx.
|
virtual |
Compute loop times for saved datasets (time intersection of the two buffers) itemTimestamp = loopStartTime + (actualTimestamp - startTimestamp) % loopTime
Definition at line 652 of file vtkPlusDataCollector.cxx.
|
virtual |
Set startup delay in sec to give some time to the buffers for proper initialization
PlusStatus vtkPlusDataCollector::Start | ( | ) |
Start the devices. The device is brought from its ground state (i.e. on but not necessarily initialized) into full active mode. This method calls start on the current connected device(s)
Definition at line 317 of file vtkPlusDataCollector.cxx.
PlusStatus vtkPlusDataCollector::Stop | ( | ) |
Stop the tracking system and bring it back to its ground state. This method calls Stop on the current connected device(s)
Definition at line 347 of file vtkPlusDataCollector.cxx.
PlusStatus vtkPlusDataCollector::WriteConfiguration | ( | vtkXMLDataElement * | aConfig | ) |
Write main configuration to xml data
Definition at line 272 of file vtkPlusDataCollector.cxx.
|
protected |
Definition at line 168 of file vtkPlusDataCollector.h.
|
protected |
Definition at line 164 of file vtkPlusDataCollector.h.
|
protected |
Definition at line 166 of file vtkPlusDataCollector.h.
|
protected |
Definition at line 169 of file vtkPlusDataCollector.h.
|
protected |
The timestamp filtering methods require some time to initialize. Synchronization will ignore data that are acquired during startup delay.
Definition at line 162 of file vtkPlusDataCollector.h.