PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkPlusVirtualVolumeReconstructor Class Reference

#include <src/PlusDataCollection/VirtualDevices/vtkPlusVirtualVolumeReconstructor.h>

Inheritance diagram for vtkPlusVirtualVolumeReconstructor:
Inheritance graph
[legend]
Collaboration diagram for vtkPlusVirtualVolumeReconstructor:
Collaboration graph
[legend]

Public Types

typedef vtkPlusDevice Superclass
 
- Public Types inherited from vtkPlusDevice
typedef vtkImageAlgorithm Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual bool GetEnableReconstruction ()
 
PlusStatus GetReconstructedVolume (vtkImageData *reconstructedVolume, std::string &outErrorMessage, bool applyHoleFilling=true)
 
virtual PlusStatus GetReconstructedVolumeFromFile (const std::string &inputSeqFilename, vtkImageData *reconstructedVolume, std::string &errorMessage)
 
virtual long int GetTotalFramesRecorded ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual PlusStatus Reset ()
 
void SetEnableReconstruction (bool aValue)
 
void SetOutputExtent (int *extent)
 
void SetOutputOrigin (double *origin)
 
void SetOutputSpacing (double *spacing)
 
PlusStatus UpdateTransformRepository (vtkIGSIOTransformRepository *sharedTransformRepository)
 
 vtkGetStdStringMacro (OutputVolFilename)
 
 vtkGetStdStringMacro (OutputVolDeviceName)
 
 vtkSetStdStringMacro (OutputVolFilename)
 
 vtkSetStdStringMacro (OutputVolDeviceName)
 
- Public Member Functions inherited from vtkPlusDevice
PlusStatus AddFieldDataSource (vtkPlusDataSource *aSource)
 
PlusStatus AddInputChannel (vtkPlusChannel *aChannel)
 
PlusStatus AddOutputChannel (vtkPlusChannel *aChannel)
 
PlusStatus AddTool (vtkPlusDataSource *tool, bool requireUniquePortName=true)
 
PlusStatus AddVideoSource (vtkPlusDataSource *anImage)
 
void ClearAllBuffers ()
 
virtual PlusStatus Connect ()
 
virtual PlusStatus CreateDefaultOutputChannel (const char *channelId=NULL, bool addSource=true)
 
void DeepCopy (const vtkPlusDevice &device)
 
virtual PlusStatus Disconnect ()
 
virtual PlusStatus ForceUpdate ()
 
virtual PlusStatus GetBufferSize (vtkPlusChannel &aChannel, int &outVal, const std::string &aSourceId=std::string(""))
 
virtual int GetConnected () const
 
virtual bool GetCorrectlyConfigured () const
 
PlusStatus GetDataSource (const char *aSourceId, vtkPlusDataSource *&aSource)
 
PlusStatus GetDataSource (const std::string &aSourceId, vtkPlusDataSource *&aSource)
 
virtual double GetDesiredTimestamp ()
 
virtual std::string GetDeviceId () const
 
PlusStatus GetFieldDataSource (const char *aSourceId, vtkPlusDataSource *&aSource) const
 
PlusStatus GetFieldDataSource (const std::string &aSourceId, vtkPlusDataSource *&aSource) const
 
DataSourceContainerConstIterator GetFieldDataSourcessIteratorBegin () const
 
DataSourceContainerConstIterator GetFieldDataSourcessIteratorEnd () const
 
PlusStatus GetFirstActiveOutputVideoSource (vtkPlusDataSource *&aVideoSource)
 
PlusStatus GetFirstActiveTool (vtkPlusDataSource *&aTool) const
 
PlusStatus GetFirstOutputChannel (vtkPlusChannel *&aChannel)
 
PlusStatus GetFirstVideoSource (vtkPlusDataSource *&anImage)
 
virtual unsigned long GetFrameNumber () const
 
virtual double GetFrameTimeStamp () const
 
virtual PlusStatus GetImage (const std::string &requestedImageId, std::string &assignedImageId, const std::string &imageReferencFrameName, vtkImageData *imageData, vtkMatrix4x4 *ijkToReferenceTransform)
 
virtual PlusStatus GetImageMetaData (igsioCommon::ImageMetaDataList &imageMetaDataItems)
 
virtual US_IMAGE_TYPE GetImageType (vtkPlusChannel &aChannel)
 
PlusStatus GetInputDevices (std::vector< vtkPlusDevice * > &outDeviceList) const
 
PlusStatus GetInputDevicesRecursive (std::vector< vtkPlusDevice * > &outDeviceList) const
 
virtual PlusStatus GetInputFrameSize (vtkPlusChannel &aChannel, unsigned int &x, unsigned int &y, unsigned int &z) const
 
virtual PlusStatus GetInputFrameSize (vtkPlusChannel &aChannel, FrameSizeType &dim) const
 
double GetInternalUpdateRate () const
 
virtual double GetLocalTimeOffsetSec () const
 
double GetMissingInputGracePeriodSec () const
 
virtual int GetNumberOfFieldDataSources () const
 
virtual int GetNumberOfTools () const
 
virtual int GetNumberOfVideoSources () const
 
PlusStatus GetOutputChannelByName (vtkPlusChannel *&aChannel, const char *aChannelId)
 
PlusStatus GetOutputChannelByName (vtkPlusChannel *&aChannel, const std::string &aChannelId)
 
ChannelContainerConstIterator GetOutputChannelsEnd () const
 
ChannelContainerIterator GetOutputChannelsEnd ()
 
ChannelContainerConstIterator GetOutputChannelsStart () const
 
ChannelContainerIterator GetOutputChannelsStart ()
 
virtual PlusStatus GetOutputFrameSize (vtkPlusChannel &aChannel, unsigned int &x, unsigned int &y, unsigned int &z) const
 
virtual PlusStatus GetOutputFrameSize (vtkPlusChannel &aChannel, FrameSizeType &dim) const
 
virtual std::string GetParameter (const std::string &key) const
 
virtual PlusStatus GetParameter (const std::string &key, std::string &outValue) const
 
virtual igsioCommon::VTKScalarPixelType GetPixelType (vtkPlusChannel &aChannel)
 
virtual std::string GetSdkVersion ()
 
virtual double GetStartTime ()
 
virtual double GetTimestampClosestToDesired ()
 
PlusStatus GetTool (const char *aToolSourceId, vtkPlusDataSource *&aTool) const
 
PlusStatus GetTool (const std::string &aToolSourceId, vtkPlusDataSource *&aTool) const
 
PlusStatus GetToolByPortName (const char *aPortName, vtkPlusDataSource *&aSource)
 
PlusStatus GetToolByPortName (const std::string &aPortName, vtkPlusDataSource *&aSource)
 
DataSourceContainerConstIterator GetToolIteratorBegin () const
 
DataSourceContainerConstIterator GetToolIteratorEnd () const
 
std::string GetToolReferenceFrameName () const
 
virtual int GetUpdateWithDesiredTimestamp ()
 
PlusStatus GetVideoSource (const char *aSourceId, vtkPlusDataSource *&aVideoSource)
 
PlusStatus GetVideoSourceByIndex (const unsigned int index, vtkPlusDataSource *&aVideoSource)
 
DataSourceContainerConstIterator GetVideoSourceIteratorBegin () const
 
DataSourceContainerConstIterator GetVideoSourceIteratorEnd () const
 
std::vector< vtkPlusDataSource * > GetVideoSources () const
 
PlusStatus GetVideoSourcesByPortName (const char *aPortName, std::vector< vtkPlusDataSource * > &sources)
 
PlusStatus GetVideoSourcesByPortName (const std::string &aPortName, std::vector< vtkPlusDataSource * > &sources)
 
virtual bool IsConnected () const
 
virtual bool IsRecording () const
 
virtual bool IsResettable ()
 
virtual PlusStatus Probe ()
 
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual PlusStatus SendText (const std::string &textToSend, std::string *textReceived=NULL)
 
PlusStatus SetAcquisitionRate (double aRate)
 
virtual PlusStatus SetBufferSize (vtkPlusChannel &aChannel, int FrameBufferSize, const std::string &aSourceId=std::string(""))
 
virtual void SetDataCollector (vtkPlusDataCollector *_arg)
 
virtual void SetDesiredTimestamp (double)
 
void SetDeviceId (const std::string &id)
 
void SetFieldDataSourcesBufferSize (int aBufferSize)
 
virtual PlusStatus SetImageType (vtkPlusChannel &aChannel, US_IMAGE_TYPE imageType)
 
virtual PlusStatus SetInputFrameSize (vtkPlusDataSource &aSource, unsigned int x, unsigned int y, unsigned int z)
 
virtual void SetLocalTimeOffsetSec (double aTimeOffsetSec)
 
virtual void SetMissingInputGracePeriodSec (double)
 
virtual PlusStatus SetParameter (const std::string &key, const std::string &value)
 
virtual PlusStatus SetPixelType (vtkPlusChannel &aChannel, igsioCommon::VTKScalarPixelType pixelType)
 
virtual void SetStartTime (double startTime)
 
void SetToolReferenceFrameName (const std::string &frameName)
 
void SetToolsBufferSize (int aBufferSize)
 
virtual void SetUpdateWithDesiredTimestamp (int)
 
virtual PlusStatus StartRecording ()
 
virtual PlusStatus StopRecording ()
 
virtual void UpdateWithDesiredTimestampOff ()
 
virtual void UpdateWithDesiredTimestampOn ()
 
virtual PlusStatus WriteToolsToSequenceFile (const std::string &filename, bool useCompression=false)
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkPlusVirtualVolumeReconstructorNew ()
 
static vtkPlusVirtualVolumeReconstructorSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkPlusDevice
static PlusStatus GetToolReferenceFrameFromTrackedFrame (igsioTrackedFrame &aFrame, std::string &aToolReferenceFrameName)
 
static int IsTypeOf (const char *type)
 
static vtkPlusDeviceNew ()
 
static vtkPlusDeviceSafeDownCast (vtkObject *o)
 

Protected Member Functions

PlusStatus AddFrames (vtkIGSIOTrackedFrameList *trackedFrameList)
 
virtual double GetAcquisitionRate () const
 
virtual vtkPlusDataCollectorGetDataCollector ()
 
virtual double GetRequestedFrameRate ()
 
double GetSamplingPeriodSec ()
 
virtual PlusStatus InternalConnect ()
 
virtual PlusStatus InternalDisconnect ()
 
virtual PlusStatus InternalUpdate ()
 
virtual void InternalWriteOutputChannels (vtkXMLDataElement *rootXMLElement)
 
virtual bool IsTracker () const
 
virtual bool IsVirtual () const
 
virtual PlusStatus NotifyConfigured ()
 
virtual int OutputChannelCount () const
 
virtual PlusStatus ReadConfiguration (vtkXMLDataElement *)
 
void SetRequestedFrameRate (double aValue)
 
 vtkPlusVirtualVolumeReconstructor ()
 
virtual PlusStatus WriteConfiguration (vtkXMLDataElement *)
 
virtual ~vtkPlusVirtualVolumeReconstructor ()
 
- Protected Member Functions inherited from vtkPlusDevice
virtual PlusStatus AddVideoItemToVideoSources (const std::vector< vtkPlusDataSource * > &videoSources, const igsioVideoFrame &frame, long frameNumber, double unfilteredTimestamp=UNDEFINED_TIMESTAMP, double filteredTimestamp=UNDEFINED_TIMESTAMP, const igsioFieldMapType *customFields=NULL)
 
virtual PlusStatus AddVideoItemToVideoSources (const std::vector< vtkPlusDataSource * > &videoSources, void *imageDataPtr, US_IMAGE_ORIENTATION usImageOrientation, const FrameSizeType &frameSizeInPx, igsioCommon::VTKScalarPixelType pixelType, unsigned int numberOfScalarComponents, US_IMAGE_TYPE imageType, int numberOfBytesToSkip, long frameNumber, double unfilteredTimestamp=UNDEFINED_TIMESTAMP, double filteredTimestamp=UNDEFINED_TIMESTAMP, const igsioFieldMapType *customFields=NULL)
 
PlusStatus EnsureUniqueDataSourceId (const std::string &aSourceId)
 
vtkXMLDataElement * FindInputChannelElement (vtkXMLDataElement *rootXMLElement, const char *aChannelId)
 
vtkXMLDataElement * FindOutputChannelElement (vtkXMLDataElement *rootXMLElement, const char *aChannelId)
 
vtkXMLDataElement * FindThisDeviceElement (vtkXMLDataElement *rootXMLElement)
 
double GetRecordingStartTime () const
 
bool GetStartThreadForInternalUpdates () const
 
bool HasGracePeriodExpired ()
 
virtual PlusStatus InternalStartRecording ()
 
virtual PlusStatus InternalStopRecording ()
 
virtual void InternalWriteInputChannels (vtkXMLDataElement *rootXMLElement)
 
virtual void SetCorrectlyConfigured (bool)
 
virtual void SetRecordingStartTime (double)
 
virtual void SetStartThreadForInternalUpdates (bool)
 
virtual PlusStatus ToolTimeStampedUpdate (const std::string &aToolSourceId, vtkMatrix4x4 *matrix, ToolStatus status, unsigned long frameNumber, double unfilteredtimestamp, const igsioFieldMapType *customFields=NULL)
 
virtual PlusStatus ToolTimeStampedUpdateWithoutFiltering (const std::string &aToolSourceId, vtkMatrix4x4 *matrix, ToolStatus status, double unfilteredtimestamp, double filteredtimestamp, const igsioFieldMapType *customFields=NULL)
 
 vtkPlusDevice ()
 
virtual ~vtkPlusDevice ()
 

Protected Attributes

bool EnableReconstruction
 
double LastRecordedFrameTimestamp
 
double m_LastAlreadyRecordedFrameTimestamp
 
double m_LastUpdateTime
 
double m_NextFrameToBeRecordedTimestamp
 
const int m_SamplingFrameRate
 
double m_TimeWaited
 
std::string OutputVolDeviceName
 
std::string OutputVolFilename
 
double RequestedFrameRate
 
long int TotalFramesRecorded
 
vtkSmartPointer< vtkIGSIOTransformRepository > TransformRepository
 
vtkSmartPointer< vtkPlusVolumeReconstructorVolumeReconstructor
 
vtkSmartPointer< vtkIGSIORecursiveCriticalSection > VolumeReconstructorAccessMutex
 
- Protected Attributes inherited from vtkPlusDevice
double AcquisitionRate
 
int Connected
 
bool CorrectlyConfigured
 
StreamBufferItemCurrentStreamBufferItem
 
vtkPlusDataCollectorDataCollector
 
double DesiredTimestamp
 
std::string DeviceId
 
DataSourceContainer Fields
 
unsigned long FrameNumber
 
double FrameTimeStamp
 
ChannelContainer InputChannels
 
double LocalTimeOffsetSec
 
double MissingInputGracePeriodSec
 
ChannelContainer OutputChannels
 
int OutputNeedsInitialization
 
std::map< std::string, std::string > Parameters
 
int Recording
 
double RecordingStartTime
 
std::set< std::string > ReportedUnknownTools
 
bool RequireImageOrientationInConfiguration
 
bool RequirePortNameInDeviceSetConfiguration
 
bool StartThreadForInternalUpdates
 
bool ThreadAlive
 
vtkMultiThreader * Threader
 
int ThreadId
 
double TimestampClosestToDesired
 
std::string ToolReferenceFrameName
 
DataSourceContainer Tools
 
int UpdateWithDesiredTimestamp
 
DataSourceContainer VideoSources
 

Additional Inherited Members

- Public Attributes inherited from vtkPlusDevice
double InternalUpdateRate
 
vtkIGSIORecursiveCriticalSection * UpdateMutex
 
vtkTimeStamp UpdateTime
 
- Static Public Attributes inherited from vtkPlusDevice
static const std::string BMODE_PORT_NAME = "B"
 
static const std::string PARAMETER_XML_ELEMENT_TAG = "Parameter"
 
static const std::string PARAMETERS_XML_ELEMENT_TAG = "Parameters"
 
static const std::string RFMODE_PORT_NAME = "Rf"
 
- Static Protected Member Functions inherited from vtkPlusDevice
static void * vtkDataCaptureThread (vtkMultiThreader::ThreadInfo *data)
 
- Static Protected Attributes inherited from vtkPlusDevice
static const int VIRTUAL_DEVICE_FRAME_RATE = 50
 

Detailed Description

Definition at line 23 of file vtkPlusVirtualVolumeReconstructor.h.

Member Typedef Documentation

◆ Superclass

Definition at line 27 of file vtkPlusVirtualVolumeReconstructor.h.

Constructor & Destructor Documentation

◆ vtkPlusVirtualVolumeReconstructor()

vtkPlusVirtualVolumeReconstructor::vtkPlusVirtualVolumeReconstructor ( )
protected

Definition at line 26 of file vtkPlusVirtualVolumeReconstructor.cxx.

◆ ~vtkPlusVirtualVolumeReconstructor()

vtkPlusVirtualVolumeReconstructor::~vtkPlusVirtualVolumeReconstructor ( )
protectedvirtual

Definition at line 46 of file vtkPlusVirtualVolumeReconstructor.cxx.

Member Function Documentation

◆ AddFrames()

PlusStatus vtkPlusVirtualVolumeReconstructor::AddFrames ( vtkIGSIOTrackedFrameList *  trackedFrameList)
protected

Definition at line 372 of file vtkPlusVirtualVolumeReconstructor.cxx.

◆ GetAcquisitionRate()

double vtkPlusVirtualVolumeReconstructor::GetAcquisitionRate ( ) const
protectedvirtual

Set the acquisition rate

Reimplemented from vtkPlusDevice.

Definition at line 276 of file vtkPlusVirtualVolumeReconstructor.cxx.

◆ GetClassName()

virtual const char* vtkPlusVirtualVolumeReconstructor::GetClassName ( )
virtual

Reimplemented from vtkPlusDevice.

◆ GetDataCollector()

virtual vtkPlusDataCollector* vtkPlusVirtualVolumeReconstructor::GetDataCollector ( )
inlineprotectedvirtual

Reimplemented from vtkPlusDevice.

Definition at line 108 of file vtkPlusVirtualVolumeReconstructor.h.

◆ GetEnableReconstruction()

virtual bool vtkPlusVirtualVolumeReconstructor::GetEnableReconstruction ( )
virtual

Enables adding frames to the volume. It can be used for pausing the recording. This method is safe to be called from any thread.

◆ GetReconstructedVolume()

PlusStatus vtkPlusVirtualVolumeReconstructor::GetReconstructedVolume ( vtkImageData *  reconstructedVolume,
std::string &  outErrorMessage,
bool  applyHoleFilling = true 
)

This method is safe to be called from any thread.

Parameters
applyHoleFillingIf true (default) then hole filling will be applied (if enabled and fully specified), otherwise hole filling will be skipped

Definition at line 347 of file vtkPlusVirtualVolumeReconstructor.cxx.

◆ GetReconstructedVolumeFromFile()

PlusStatus vtkPlusVirtualVolumeReconstructor::GetReconstructedVolumeFromFile ( const std::string &  inputSeqFilename,
vtkImageData *  reconstructedVolume,
std::string &  errorMessage 
)
virtual

This method is safe to be called from any thread.

Definition at line 300 of file vtkPlusVirtualVolumeReconstructor.cxx.

◆ GetRequestedFrameRate()

virtual double vtkPlusVirtualVolumeReconstructor::GetRequestedFrameRate ( )
protectedvirtual

◆ GetSamplingPeriodSec()

double vtkPlusVirtualVolumeReconstructor::GetSamplingPeriodSec ( )
protected

Get the sampling period length (in seconds). Frames are copied from the devices to the data collection buffer once in every sampling period.

Definition at line 412 of file vtkPlusVirtualVolumeReconstructor.cxx.

◆ GetTotalFramesRecorded()

virtual long int vtkPlusVirtualVolumeReconstructor::GetTotalFramesRecorded ( )
virtual

◆ InternalConnect()

PlusStatus vtkPlusVirtualVolumeReconstructor::InternalConnect ( )
protectedvirtual

Should be overridden to connect to the hardware

Reimplemented from vtkPlusDevice.

Definition at line 88 of file vtkPlusVirtualVolumeReconstructor.cxx.

◆ InternalDisconnect()

PlusStatus vtkPlusVirtualVolumeReconstructor::InternalDisconnect ( )
protectedvirtual

Release the video driver. Should be overridden to disconnect from the hardware.

Reimplemented from vtkPlusDevice.

Definition at line 116 of file vtkPlusVirtualVolumeReconstructor.cxx.

◆ InternalUpdate()

PlusStatus vtkPlusVirtualVolumeReconstructor::InternalUpdate ( )
protectedvirtual

The subclass will do all the hardware-specific update stuff in this function. It should call ToolUpdate() for each tool. Note that vtkPlusDevice.cxx starts up a separate thread after InternalStartRecording() is called, and that InternalUpdate() is called repeatedly from within that thread. Therefore, any code within InternalUpdate() must be thread safe. You can temporarily pause the thread by locking this->UpdateMutex->Lock() e.g. if you need to communicate with the device from outside of InternalUpdate(). A call to this->UpdateMutex->Unlock() will resume the thread.

Reimplemented from vtkPlusDevice.

Definition at line 123 of file vtkPlusVirtualVolumeReconstructor.cxx.

◆ InternalWriteOutputChannels()

void vtkPlusVirtualVolumeReconstructor::InternalWriteOutputChannels ( vtkXMLDataElement *  rootXMLElement)
protectedvirtual

Method that writes output streams to XML

Reimplemented from vtkPlusDevice.

Definition at line 294 of file vtkPlusVirtualVolumeReconstructor.cxx.

◆ IsA()

virtual int vtkPlusVirtualVolumeReconstructor::IsA ( const char *  type)
virtual

Reimplemented from vtkPlusDevice.

◆ IsTracker()

virtual bool vtkPlusVirtualVolumeReconstructor::IsTracker ( ) const
inlineprotectedvirtual

Is this device a tracker

Reimplemented from vtkPlusDevice.

Definition at line 110 of file vtkPlusVirtualVolumeReconstructor.h.

◆ IsTypeOf()

static int vtkPlusVirtualVolumeReconstructor::IsTypeOf ( const char *  type)
static

◆ IsVirtual()

virtual bool vtkPlusVirtualVolumeReconstructor::IsVirtual ( ) const
inlineprotectedvirtual

Reimplemented from vtkPlusDevice.

Definition at line 111 of file vtkPlusVirtualVolumeReconstructor.h.

◆ New()

static vtkPlusVirtualVolumeReconstructor* vtkPlusVirtualVolumeReconstructor::New ( )
static

◆ NotifyConfigured()

PlusStatus vtkPlusVirtualVolumeReconstructor::NotifyConfigured ( )
protectedvirtual

Perform any completion tasks once configured

Reimplemented from vtkPlusDevice.

Definition at line 218 of file vtkPlusVirtualVolumeReconstructor.cxx.

◆ OutputChannelCount()

int vtkPlusVirtualVolumeReconstructor::OutputChannelCount ( ) const
protectedvirtual

Reimplemented from vtkPlusDevice.

Definition at line 286 of file vtkPlusVirtualVolumeReconstructor.cxx.

◆ PrintSelf()

void vtkPlusVirtualVolumeReconstructor::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Reimplemented from vtkPlusDevice.

Definition at line 51 of file vtkPlusVirtualVolumeReconstructor.cxx.

◆ ReadConfiguration()

PlusStatus vtkPlusVirtualVolumeReconstructor::ReadConfiguration ( vtkXMLDataElement *  rootConfigElement)
protectedvirtual

Read main configuration from xml data

Reimplemented from vtkPlusDevice.

Definition at line 57 of file vtkPlusVirtualVolumeReconstructor.cxx.

◆ Reset()

PlusStatus vtkPlusVirtualVolumeReconstructor::Reset ( )
virtual

Clear the volume. This method is safe to be called from any thread.

Reimplemented from vtkPlusDevice.

Definition at line 268 of file vtkPlusVirtualVolumeReconstructor.cxx.

◆ SafeDownCast()

static vtkPlusVirtualVolumeReconstructor* vtkPlusVirtualVolumeReconstructor::SafeDownCast ( vtkObject *  o)
static

◆ SetEnableReconstruction()

void vtkPlusVirtualVolumeReconstructor::SetEnableReconstruction ( bool  aValue)

Enables adding frames to the volume. It can be used for pausing the recording. This method is safe to be called from any thread.

Definition at line 242 of file vtkPlusVirtualVolumeReconstructor.cxx.

◆ SetOutputExtent()

void vtkPlusVirtualVolumeReconstructor::SetOutputExtent ( int extent)

Set the output volume's extent (xStart, xEnd, yStart, yEnd, zStart, zEnd) in voxels

Definition at line 453 of file vtkPlusVirtualVolumeReconstructor.cxx.

◆ SetOutputOrigin()

void vtkPlusVirtualVolumeReconstructor::SetOutputOrigin ( double *  origin)

Set the output volume's origin in the Reference coordinate system

Definition at line 441 of file vtkPlusVirtualVolumeReconstructor.cxx.

◆ SetOutputSpacing()

void vtkPlusVirtualVolumeReconstructor::SetOutputSpacing ( double *  spacing)

Set the output volume's spacing in the Reference coordinate system's unit (usually mm)

Definition at line 447 of file vtkPlusVirtualVolumeReconstructor.cxx.

◆ SetRequestedFrameRate()

void vtkPlusVirtualVolumeReconstructor::SetRequestedFrameRate ( double  aValue)
protected

◆ UpdateTransformRepository()

PlusStatus vtkPlusVirtualVolumeReconstructor::UpdateTransformRepository ( vtkIGSIOTransformRepository *  sharedTransformRepository)

Updated the transform repository contents within the volume reconstructor. It is advisable to call this before each volume reconstruction starting. This method is safe to be called from any thread.

Definition at line 427 of file vtkPlusVirtualVolumeReconstructor.cxx.

◆ vtkGetStdStringMacro() [1/2]

vtkPlusVirtualVolumeReconstructor::vtkGetStdStringMacro ( OutputVolFilename  )

◆ vtkGetStdStringMacro() [2/2]

vtkPlusVirtualVolumeReconstructor::vtkGetStdStringMacro ( OutputVolDeviceName  )

◆ vtkSetStdStringMacro() [1/2]

vtkPlusVirtualVolumeReconstructor::vtkSetStdStringMacro ( OutputVolFilename  )

If specified, the reconstructed volume will be saved into this filename

◆ vtkSetStdStringMacro() [2/2]

vtkPlusVirtualVolumeReconstructor::vtkSetStdStringMacro ( OutputVolDeviceName  )

If specified, the reconstructed volume will sent to the client through OpenIGTLink, using this device name

◆ WriteConfiguration()

PlusStatus vtkPlusVirtualVolumeReconstructor::WriteConfiguration ( vtkXMLDataElement *  rootConfig)
protectedvirtual

write main configuration to xml data

Reimplemented from vtkPlusDevice.

Definition at line 72 of file vtkPlusVirtualVolumeReconstructor.cxx.

Member Data Documentation

◆ EnableReconstruction

bool vtkPlusVirtualVolumeReconstructor::EnableReconstruction
protected

Definition at line 150 of file vtkPlusVirtualVolumeReconstructor.h.

◆ LastRecordedFrameTimestamp

double vtkPlusVirtualVolumeReconstructor::LastRecordedFrameTimestamp
protected

Timestamp of last added frame (the tracked frames acquired since this timestamp will be added to the volume on the next Execute)

Definition at line 142 of file vtkPlusVirtualVolumeReconstructor.h.

◆ m_LastAlreadyRecordedFrameTimestamp

double vtkPlusVirtualVolumeReconstructor::m_LastAlreadyRecordedFrameTimestamp
protected

Timestamp of last recorded frame (only frames that have more recent timestamp will be added)

Definition at line 126 of file vtkPlusVirtualVolumeReconstructor.h.

◆ m_LastUpdateTime

double vtkPlusVirtualVolumeReconstructor::m_LastUpdateTime
protected

Definition at line 139 of file vtkPlusVirtualVolumeReconstructor.h.

◆ m_NextFrameToBeRecordedTimestamp

double vtkPlusVirtualVolumeReconstructor::m_NextFrameToBeRecordedTimestamp
protected

Desired timestamp of the next frame to be recorded

Definition at line 129 of file vtkPlusVirtualVolumeReconstructor.h.

◆ m_SamplingFrameRate

const int vtkPlusVirtualVolumeReconstructor::m_SamplingFrameRate
protected

Frame rate of the sampling

Definition at line 132 of file vtkPlusVirtualVolumeReconstructor.h.

◆ m_TimeWaited

double vtkPlusVirtualVolumeReconstructor::m_TimeWaited
protected

Definition at line 138 of file vtkPlusVirtualVolumeReconstructor.h.

◆ OutputVolDeviceName

std::string vtkPlusVirtualVolumeReconstructor::OutputVolDeviceName
protected

Definition at line 153 of file vtkPlusVirtualVolumeReconstructor.h.

◆ OutputVolFilename

std::string vtkPlusVirtualVolumeReconstructor::OutputVolFilename
protected

Definition at line 152 of file vtkPlusVirtualVolumeReconstructor.h.

◆ RequestedFrameRate

double vtkPlusVirtualVolumeReconstructor::RequestedFrameRate
protected

Requested frame rate (frames per second)

Definition at line 135 of file vtkPlusVirtualVolumeReconstructor.h.

◆ TotalFramesRecorded

long int vtkPlusVirtualVolumeReconstructor::TotalFramesRecorded
protected

Record the number of frames captured

Definition at line 145 of file vtkPlusVirtualVolumeReconstructor.h.

◆ TransformRepository

vtkSmartPointer<vtkIGSIOTransformRepository> vtkPlusVirtualVolumeReconstructor::TransformRepository
protected

Definition at line 148 of file vtkPlusVirtualVolumeReconstructor.h.

◆ VolumeReconstructor

vtkSmartPointer<vtkPlusVolumeReconstructor> vtkPlusVirtualVolumeReconstructor::VolumeReconstructor
protected

Definition at line 147 of file vtkPlusVirtualVolumeReconstructor.h.

◆ VolumeReconstructorAccessMutex

vtkSmartPointer<vtkIGSIORecursiveCriticalSection> vtkPlusVirtualVolumeReconstructor::VolumeReconstructorAccessMutex
protected

Mutex instance simultaneous access of writer (writer may be accessed from command processing thread and also the internal update thread)

Definition at line 156 of file vtkPlusVirtualVolumeReconstructor.h.


The documentation for this class was generated from the following files: