PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
Macros | Functions
vtkPlusTelemedVideoSource.cxx File Reference
#include "PlusConfigure.h"
#include "PixelCodec.h"
#include "vtkPlusChannel.h"
#include "vtkPlusDataSource.h"
#include "vtkPlusTelemedVideoSource.h"
#include "vtkPlusUsImagingParameters.h"
#include <vtkImageData.h>
#include <vtkImageImport.h>
#include <vtkObjectFactory.h>
Include dependency graph for vtkPlusTelemedVideoSource.cxx:

Go to the source code of this file.

Macros

#define IMAGING_PARAMETER_GET(parameterName)
 
#define IMAGING_PARAMETER_SET(parameterName)
 

Functions

 IMAGING_PARAMETER_GET (FrequencyMhz)
 
 IMAGING_PARAMETER_GET (DepthMm)
 
 IMAGING_PARAMETER_GET (GainPercent)
 
 IMAGING_PARAMETER_GET (DynRangeDb)
 
 IMAGING_PARAMETER_GET (PowerDb)
 
 IMAGING_PARAMETER_GET (FocusDepthPercent)
 
 IMAGING_PARAMETER_SET (FrequencyMhz)
 
 IMAGING_PARAMETER_SET (DepthMm)
 
 IMAGING_PARAMETER_SET (GainPercent)
 
 IMAGING_PARAMETER_SET (DynRangeDb)
 
 IMAGING_PARAMETER_SET (PowerDb)
 
 IMAGING_PARAMETER_SET (FocusDepthPercent)
 
 vtkStandardNewMacro (vtkPlusTelemedVideoSource)
 

Macro Definition Documentation

◆ IMAGING_PARAMETER_GET

#define IMAGING_PARAMETER_GET (   parameterName)
Value:
PlusStatus vtkPlusTelemedVideoSource::Get##parameterName(double &a##parameterName) \
{ \
if (this->Device==NULL) \
{ \
/* Connection has not been established yet. Return cached parameter value. */ \
a##parameterName=this->parameterName; \
return PLUS_SUCCESS; \
} \
if (this->Device->Get##parameterName(this->parameterName)!=PLUS_SUCCESS) \
{ \
LOG_ERROR("vtkPlusTelemedVideoSource parameter setting failed: "<<parameterName<<"="<<a##parameterName); \
return PLUS_FAIL; \
} \
a##parameterName=this->parameterName; \
return PLUS_SUCCESS; \
}
igsioStatus PlusStatus
Definition: PlusCommon.h:40
#define PLUS_FAIL
Definition: PlusCommon.h:43
#define PLUS_SUCCESS
Definition: PlusCommon.h:44

Definition at line 317 of file vtkPlusTelemedVideoSource.cxx.

◆ IMAGING_PARAMETER_SET

#define IMAGING_PARAMETER_SET (   parameterName)
Value:
PlusStatus vtkPlusTelemedVideoSource::Set##parameterName(double a##parameterName) \
{ \
LOG_INFO("Setting US parameter "<<#parameterName<<"="<<a##parameterName); \
if (this->Device==NULL) \
{ \
/* Connection has not been established yet. Parameter value will be set upon connection. */ \
this->parameterName=a##parameterName; \
return PLUS_SUCCESS; \
} \
int oldParamValue = this->parameterName; \
this->parameterName=a##parameterName; \
if (this->Device->Set##parameterName(this->parameterName)!=PLUS_SUCCESS) \
{ \
LOG_ERROR("vtkPlusTelemedVideoSource parameter setting failed: "<<#parameterName<<"="<<a##parameterName); \
this->parameterName=oldParamValue; \
return PLUS_FAIL; \
} \
return PLUS_SUCCESS; \
}
igsioStatus PlusStatus
Definition: PlusCommon.h:40
#define PLUS_FAIL
Definition: PlusCommon.h:43
#define PLUS_SUCCESS
Definition: PlusCommon.h:44

Definition at line 296 of file vtkPlusTelemedVideoSource.cxx.

Function Documentation

◆ IMAGING_PARAMETER_GET() [1/6]

IMAGING_PARAMETER_GET ( FrequencyMhz  )

◆ IMAGING_PARAMETER_GET() [2/6]

IMAGING_PARAMETER_GET ( DepthMm  )

◆ IMAGING_PARAMETER_GET() [3/6]

IMAGING_PARAMETER_GET ( GainPercent  )

◆ IMAGING_PARAMETER_GET() [4/6]

IMAGING_PARAMETER_GET ( DynRangeDb  )

◆ IMAGING_PARAMETER_GET() [5/6]

IMAGING_PARAMETER_GET ( PowerDb  )

◆ IMAGING_PARAMETER_GET() [6/6]

IMAGING_PARAMETER_GET ( FocusDepthPercent  )

◆ IMAGING_PARAMETER_SET() [1/6]

IMAGING_PARAMETER_SET ( FrequencyMhz  )

◆ IMAGING_PARAMETER_SET() [2/6]

IMAGING_PARAMETER_SET ( DepthMm  )

◆ IMAGING_PARAMETER_SET() [3/6]

IMAGING_PARAMETER_SET ( GainPercent  )

◆ IMAGING_PARAMETER_SET() [4/6]

IMAGING_PARAMETER_SET ( DynRangeDb  )

◆ IMAGING_PARAMETER_SET() [5/6]

IMAGING_PARAMETER_SET ( PowerDb  )

◆ IMAGING_PARAMETER_SET() [6/6]

IMAGING_PARAMETER_SET ( FocusDepthPercent  )

◆ vtkStandardNewMacro()

vtkStandardNewMacro ( vtkPlusTelemedVideoSource  )