16 #include "vtkSmartPointer.h" 34 signed short* channel1;
35 signed short* channel2;
36 signed short* channel3;
37 signed short* channel4;
39 vtkSmartPointer<vtkShortArray> tempVTKChannelArray = vtkSmartPointer<vtkShortArray>::New();
40 tempVTKChannelArray->SetNumberOfComponents(channelSize);
41 tempVTKChannelArray->SetNumberOfTuples(4);
42 tempVTKChannelArray->Allocate(1);
45 channel1 = sourceData;
46 tempVTKChannelArray->InsertTupleValue(0,channel1);
47 sourceData += channelSize;
49 channel2 = sourceData;
50 tempVTKChannelArray->InsertTupleValue(1,channel2);
51 sourceData += channelSize;
53 channel3 = sourceData;
54 tempVTKChannelArray->InsertTupleValue(2,channel3);
55 sourceData += channelSize;
57 channel4 = sourceData;
58 tempVTKChannelArray->InsertTupleValue(3,channel4);
59 vtkChannelArray->DeepCopy(tempVTKChannelArray);
69 bool boolValue =
false;
71 if (strcmp(propertyKey,
"SetFPNCalibration") == 0)
73 myController->SetFPNCalibration(boolValue);
75 else if (strcmp(propertyKey,
"SetFPPNCalibration") == 0)
77 myController->SetFPPNCalibration(boolValue);
79 else if (strcmp(propertyKey,
"SetLinearityCalibration") == 0)
81 myController->SetLinearityCalibration(boolValue);
83 else if (strcmp(propertyKey,
"SetLensCalibration") == 0)
85 myController->SetLensCalibration(boolValue);
87 else if (strcmp(propertyKey,
"SetExposureMode") == 0)
91 myController->SetExposureMode(1);
95 myController->SetExposureMode(0);
virtual void SetProperty(const char *propertyKey, BaseProperty *propertyValue)
set a BaseProperty
virtual int GetCaptureHeight()
get the currently set capture height
bool GetBoolProperty(const char *propertyKey, bool &boolValue)
get a bool from the property list
virtual void SetProperty(const char *propertyKey, BaseProperty *propertyValue)
set a BaseProperty
DataCollection - Class to facilitate loading/accessing structured data.
PropertyList::Pointer m_PropertyList
a list of the corresponding properties
~ToFCameraPMDRawDataCamCubeDevice()
Abstract base class for properties.
ToFCameraPMDRawDataCamCubeDevice()
Interface to the Time-of-Flight (ToF) camera PMD CamCube.
ToFCameraPMDController::Pointer m_Controller
corresponding CameraController
virtual void GetChannelSourceData(short *sourceData, vtkShortArray *vtkChannelArray)
virtual void SetChannelSize(int _arg)
virtual int GetCaptureWidth()
get the currently set capture width