SoItkLazyEdgeDetectionImageFilter3D::SoItkLazyEdgeDetectionImageFilter3D() { SO_ENGINE_CONSTRUCTOR( SoItkLazyEdgeDetectionImageFilter3D ); // Inputs SO_ENGINE_ADD_INPUT( EdgeDetectorMaximumError, (0) ); SO_ENGINE_ADD_INPUT( EdgeDetectorOutsideValue, (0) ); SO_ENGINE_ADD_INPUT( EdgeDetectorVariance, (0) ); SO_ENGINE_ADD_INPUT( Direction, (0) ); SO_ENGINE_ADD_INPUT( EdgeDetectorThreshold, (0) ); }
SoNodeToName::SoNodeToName() { SO_ENGINE_CONSTRUCTOR(SoNodeToName); // define input fields and their default values SO_ENGINE_ADD_INPUT(input, (NULL)); SO_ENGINE_ADD_INPUT(compact,(TRUE)); // define the output SO_ENGINE_ADD_OUTPUT(output, SoMFString); }
SoXipDicomExtractSlice::SoXipDicomExtractSlice() { SO_ENGINE_CONSTRUCTOR( SoXipDicomExtractSlice ); SO_ENGINE_ADD_INPUT(image, (0)); SO_ENGINE_ADD_INPUT(sliceIndex, (-1)); SO_ENGINE_ADD_OUTPUT(output, SoXipSFDataImage); SO_ENGINE_ADD_OUTPUT(numSlices, SoSFShort); mOutput = 0; }
// Default constructor. SoDecomposeMatrix::SoDecomposeMatrix() { SO_ENGINE_INTERNAL_CONSTRUCTOR(SoDecomposeMatrix); SO_ENGINE_ADD_INPUT(matrix,(SbMatrix())); SO_ENGINE_ADD_INPUT(center,(SbVec3f())); SO_ENGINE_ADD_OUTPUT(translation,SoMFVec3f); SO_ENGINE_ADD_OUTPUT(rotation,SoMFRotation); SO_ENGINE_ADD_OUTPUT(scaleFactor,SoMFVec3f); SO_ENGINE_ADD_OUTPUT(scaleOrientation,SoMFRotation); }
InvComposePlane::InvComposePlane() { // Do standard constructor stuff SO_ENGINE_CONSTRUCTOR(InvComposePlane); // Define input fields and their default values SO_ENGINE_ADD_INPUT(normal, (1.0, 0.0, 0.0)); SO_ENGINE_ADD_INPUT(point, (0.0, 0.0, 0.0)); // Define the output, specifying its type SO_ENGINE_ADD_OUTPUT(plane, SoSFPlane); }
// Default constructor. SoComposeMatrix::SoComposeMatrix() { SO_ENGINE_INTERNAL_CONSTRUCTOR(SoComposeMatrix); SO_ENGINE_ADD_INPUT(translation, (0.0f, 0.0f, 0.0f)); SO_ENGINE_ADD_INPUT(rotation, (0.0f, 0.0f, 0.0f, 1.0f)); SO_ENGINE_ADD_INPUT(scaleFactor, (1.0f, 1.0f, 1.0f)); SO_ENGINE_ADD_INPUT(scaleOrientation, (0.0f, 0.0f, 0.0f, 1.0f)); SO_ENGINE_ADD_INPUT(center, (0.0f, 0.0f, 0.0f)); SO_ENGINE_ADD_OUTPUT(matrix,SoMFMatrix); }
SoVtkImplicitTextureCoords::SoVtkImplicitTextureCoords() { SO_ENGINE_CONSTRUCTOR(SoVtkImplicitTextureCoords); mObject = vtkImplicitTextureCoords::New(); mObject->Register(0); mObject->SetGlobalWarningDisplay(0); vtkImplicitTextureCoords *aImplicitTextureCoords = vtkImplicitTextureCoords::New(); double *x = 0; int *y = 0; float *z = 0; SO_ENGINE_ADD_INPUT(TFunction, (0)); SO_ENGINE_ADD_INPUT(SFunction, (0)); SO_ENGINE_ADD_INPUT(RFunction, (0)); SO_ENGINE_ADD_INPUT(FlipTexture, (0)); FlipTexture.setValue(aImplicitTextureCoords->GetFlipTexture()); SO_ENGINE_ADD_INPUT(InputConnection, (0)); aImplicitTextureCoords->Delete(); SO_ENGINE_ADD_OUTPUT( oStructuredPointsOutput, SoSFVtkObject ); mStructuredPointsOutput = 0; SO_ENGINE_ADD_OUTPUT( oRFunction, SoSFVtkObject ); mRFunction = 0; SO_ENGINE_ADD_OUTPUT( oStructuredGridOutput, SoSFVtkObject ); mStructuredGridOutput = 0; SO_ENGINE_ADD_OUTPUT( oPolyDataOutput, SoSFVtkObject ); mPolyDataOutput = 0; SO_ENGINE_ADD_OUTPUT( oImageDataOutput, SoSFVtkObject ); mImageDataOutput = 0; SO_ENGINE_ADD_OUTPUT( oTFunction, SoSFVtkObject ); mTFunction = 0; SO_ENGINE_ADD_OUTPUT( oSFunction, SoSFVtkObject ); mSFunction = 0; SO_ENGINE_ADD_OUTPUT( Output, SoSFVtkObject ); mOutput = 0; SO_ENGINE_ADD_OUTPUT( OutputPort, SoSFVtkAlgorithmOutput ); mOutputPort = 0; SO_ENGINE_ADD_OUTPUT( oUnstructuredGridOutput, SoSFVtkObject ); mUnstructuredGridOutput = 0; SO_ENGINE_ADD_OUTPUT( oRectilinearGridOutput, SoSFVtkObject ); mRectilinearGridOutput = 0; addCalled = 0; }
SoVtkCellData::SoVtkCellData() { SO_ENGINE_CONSTRUCTOR(SoVtkCellData); mObject = vtkCellData::New(); mObject->Register(0); mObject->SetGlobalWarningDisplay(0); vtkCellData *aCellData = vtkCellData::New(); double *x = 0; int *y = 0; float *z = 0; SO_ENGINE_ADD_INPUT(CopyVectors, (0)); CopyVectors.setValue(aCellData->GetCopyVectors()); SO_ENGINE_ADD_INPUT(CopyScalars, (0)); CopyScalars.setValue(aCellData->GetCopyScalars()); SO_ENGINE_ADD_INPUT(CopyAttribute, ()); CopyAttribute.setFormat("int int"); SO_ENGINE_ADD_INPUT(CopyNormals, (0)); CopyNormals.setValue(aCellData->GetCopyNormals()); SO_ENGINE_ADD_INPUT(Component, ()); Component.setFormat("const vtkIdType const int const double"); SO_ENGINE_ADD_INPUT(CopyTensors, (0)); CopyTensors.setValue(aCellData->GetCopyTensors()); SO_ENGINE_ADD_INPUT(CopyTCoords, (0)); CopyTCoords.setValue(aCellData->GetCopyTCoords()); aCellData->Delete(); SO_ENGINE_ADD_OUTPUT( oTensors, SoSFVtkObject ); mTensors = 0; SO_ENGINE_ADD_OUTPUT( oScalars, SoSFVtkObject ); mScalars = 0; SO_ENGINE_ADD_OUTPUT( oTCoords, SoSFVtkObject ); mTCoords = 0; SO_ENGINE_ADD_OUTPUT( oNormals, SoSFVtkObject ); mNormals = 0; SO_ENGINE_ADD_OUTPUT( oVectors, SoSFVtkObject ); mVectors = 0; SO_ENGINE_ADD_OUTPUT( Output, SoSFVtkObject ); mOutput = 0; addCalled = 0; }
SoVtkFloatArray::SoVtkFloatArray() { SO_ENGINE_CONSTRUCTOR(SoVtkFloatArray); mObject = vtkFloatArray::New(); mObject->Register(0); mObject->SetGlobalWarningDisplay(0); vtkFloatArray *aFloatArray = vtkFloatArray::New(); double *x = 0; int *y = 0; float *z = 0; SO_ENGINE_ADD_INPUT(Value, ()); Value.setFormat("vtkIdType float"); SO_ENGINE_ADD_INPUT(Tuple1, ()); Tuple1.setFormat("vtkIdType double"); SO_ENGINE_ADD_INPUT(NumberOfComponents, (0)); NumberOfComponents.setValue(aFloatArray->GetNumberOfComponents()); SO_ENGINE_ADD_INPUT(Tuple9, ()); Tuple9.setFormat("vtkIdType double double double double double double double double double"); SO_ENGINE_ADD_INPUT(LookupTable, (0)); SO_ENGINE_ADD_INPUT(Component, ()); Component.setFormat("vtkIdType int double"); SO_ENGINE_ADD_INPUT(Tuple3, ()); Tuple3.setFormat("vtkIdType double double double"); SO_ENGINE_ADD_INPUT(Tuple2, ()); Tuple2.setFormat("vtkIdType double double"); SO_ENGINE_ADD_INPUT(Name, ("")); SO_ENGINE_ADD_INPUT(Tuple4, ()); Tuple4.setFormat("vtkIdType double double double double"); aFloatArray->Delete(); SO_ENGINE_ADD_OUTPUT( oLookupTable, SoSFVtkObject ); mLookupTable = 0; SO_ENGINE_ADD_OUTPUT( Output, SoSFVtkObject ); mOutput = 0; addCalled = 0; }
////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// SoXipConvertMFDicomToSFDicom::SoXipConvertMFDicomToSFDicom() { // Do standard constructor tasks SO_ENGINE_CONSTRUCTOR(SoXipConvertMFDicomToSFDicom); // Define input field and its default value SO_ENGINE_ADD_INPUT(input, (0)); SO_ENGINE_ADD_INPUT(index, (0)); // Define the output, specifying its type SO_ENGINE_ADD_OUTPUT(output, SoXipSFDataDicom); }
SoMap2ImagePt::SoMap2ImagePt(void) { SO_ENGINE_CONSTRUCTOR( SoMap2ImagePt ); //Initialize the input parameter SO_ENGINE_ADD_INPUT( refInput, (0) ); SO_ENGINE_ADD_INPUT( coordinates, (SbVec3f(0,0,0)) ); // Outputs SO_ENGINE_ADD_OUTPUT( points, SoMFInt32 ); SO_ENGINE_ADD_OUTPUT( sopInstanceUID, SoSFString ); SO_ENGINE_ADD_OUTPUT( status, SoSFBool ); }
SoItkNeighborhoodConnectedImageFilter::SoItkNeighborhoodConnectedImageFilter() { SO_ENGINE_CONSTRUCTOR( SoItkNeighborhoodConnectedImageFilter ); // Inputs SO_ENGINE_ADD_INPUT( Seed, (0, 0, 0) ); Seed.setNum(0); SO_ENGINE_ADD_INPUT( Radius, (0) ); Radius.setNum(0); SO_ENGINE_ADD_INPUT( Lower, (0) ); SO_ENGINE_ADD_INPUT( ReplaceValue, (1) ); SO_ENGINE_ADD_INPUT( Upper, (65535) ); }
SoIAPreprocess::SoIAPreprocess() { SO_ENGINE_CONSTRUCTOR(SoIAPreprocess); SO_ENGINE_ADD_INPUT( Input1, (0) ); SO_ENGINE_ADD_OUTPUT( Output, SoItkSFDataImage ); /////////////////////////////// SO_ENGINE_ADD_INPUT( Extention, (4) ); //////////////////////////// mOutput = 0; }
SoVtkIdFilter::SoVtkIdFilter() { SO_ENGINE_CONSTRUCTOR(SoVtkIdFilter); mObject = vtkIdFilter::New(); mObject->Register(0); mObject->SetGlobalWarningDisplay(0); vtkIdFilter *aIdFilter = vtkIdFilter::New(); double *x = 0; int *y = 0; float *z = 0; SO_ENGINE_ADD_INPUT(FieldData, (0)); FieldData.setValue(aIdFilter->GetFieldData()); SO_ENGINE_ADD_INPUT(CellIds, (0)); CellIds.setValue(aIdFilter->GetCellIds()); SO_ENGINE_ADD_INPUT(PointIds, (0)); PointIds.setValue(aIdFilter->GetPointIds()); SO_ENGINE_ADD_INPUT(IdsArrayName, ("")); SO_ENGINE_ADD_INPUT(InputConnection, (0)); aIdFilter->Delete(); SO_ENGINE_ADD_OUTPUT( oImageDataOutput, SoSFVtkObject ); mImageDataOutput = 0; SO_ENGINE_ADD_OUTPUT( oStructuredPointsOutput, SoSFVtkObject ); mStructuredPointsOutput = 0; SO_ENGINE_ADD_OUTPUT( oStructuredGridOutput, SoSFVtkObject ); mStructuredGridOutput = 0; SO_ENGINE_ADD_OUTPUT( Output, SoSFVtkObject ); mOutput = 0; SO_ENGINE_ADD_OUTPUT( oRectilinearGridOutput, SoSFVtkObject ); mRectilinearGridOutput = 0; SO_ENGINE_ADD_OUTPUT( oUnstructuredGridOutput, SoSFVtkObject ); mUnstructuredGridOutput = 0; SO_ENGINE_ADD_OUTPUT( OutputPort, SoSFVtkAlgorithmOutput ); mOutputPort = 0; SO_ENGINE_ADD_OUTPUT( oPolyDataOutput, SoSFVtkObject ); mPolyDataOutput = 0; addCalled = 0; }
SoItkVotingBinaryHoleFillingImageFilter::SoItkVotingBinaryHoleFillingImageFilter() { SO_ENGINE_CONSTRUCTOR( SoItkVotingBinaryHoleFillingImageFilter ); // Inputs SO_ENGINE_ADD_INPUT( MajorityThreshold, (1) ); }
SoItkIsotropicFourthOrderLevelSetImageFilter::SoItkIsotropicFourthOrderLevelSetImageFilter() { SO_ENGINE_CONSTRUCTOR( SoItkIsotropicFourthOrderLevelSetImageFilter ); // Inputs SO_ENGINE_ADD_INPUT( MaxFilterIteration, (1000) ); }
SoItkExpNegativeImageFilter::SoItkExpNegativeImageFilter() { SO_ENGINE_CONSTRUCTOR( SoItkExpNegativeImageFilter ); // Inputs SO_ENGINE_ADD_INPUT( Factor, (1.0) ); }
SoItkInPlaceImageFilter::SoItkInPlaceImageFilter() { SO_ENGINE_CONSTRUCTOR( SoItkInPlaceImageFilter ); // Inputs SO_ENGINE_ADD_INPUT( InPlace, (0) ); }
SoItkCurvatureFlowImageFilter::SoItkCurvatureFlowImageFilter() { SO_ENGINE_CONSTRUCTOR( SoItkCurvatureFlowImageFilter ); // Inputs SO_ENGINE_ADD_INPUT( TimeStep, (0.05f) ); }
SoItkDirectedHausdorffDistanceImageFilter::SoItkDirectedHausdorffDistanceImageFilter() { SO_ENGINE_CONSTRUCTOR( SoItkDirectedHausdorffDistanceImageFilter ); // Inputs SO_ENGINE_ADD_INPUT( Input1, (0) ); }
SoItkNaryFunctorImageFilter::SoItkNaryFunctorImageFilter() { SO_ENGINE_CONSTRUCTOR( SoItkNaryFunctorImageFilter ); // Inputs SO_ENGINE_ADD_INPUT( Input1, (0) ); }
SoItkConstantPadImageFilter::SoItkConstantPadImageFilter() { SO_ENGINE_CONSTRUCTOR( SoItkConstantPadImageFilter ); // Inputs SO_ENGINE_ADD_INPUT( Constant, (0) ); }
SoXipLoadDicom::SoXipLoadDicom() { SO_ENGINE_CONSTRUCTOR(SoXipLoadDicom); SO_ENGINE_ADD_INPUT(name, ("")); SO_ENGINE_ADD_OUTPUT(dicom, SoXipMFDataDicom); }
SoItkWhiteTopHatImageFilter::SoItkWhiteTopHatImageFilter() { SO_ENGINE_CONSTRUCTOR( SoItkWhiteTopHatImageFilter ); // Inputs SO_ENGINE_ADD_INPUT( Kernel, (0) ); }
SoVtkDataSetTriangleFilter::SoVtkDataSetTriangleFilter() { SO_ENGINE_CONSTRUCTOR(SoVtkDataSetTriangleFilter); mObject = vtkDataSetTriangleFilter::New(); mObject->Register(0); mObject->SetGlobalWarningDisplay(0); vtkDataSetTriangleFilter *aDataSetTriangleFilter = vtkDataSetTriangleFilter::New(); double *x = 0; int *y = 0; float *z = 0; SO_ENGINE_ADD_INPUT(InputConnection, (0)); aDataSetTriangleFilter->Delete(); SO_ENGINE_ADD_OUTPUT( Output, SoSFVtkObject ); mOutput = 0; SO_ENGINE_ADD_OUTPUT( OutputPort, SoSFVtkAlgorithmOutput ); mOutputPort = 0; addCalled = 0; }
SoItkMorphologyImageFilter::SoItkMorphologyImageFilter() { SO_ENGINE_CONSTRUCTOR( SoItkMorphologyImageFilter ); // Inputs SO_ENGINE_ADD_INPUT( Kernel, (0) ); }
SoVtkGenericInterpolatedVelocityField::SoVtkGenericInterpolatedVelocityField() { SO_ENGINE_CONSTRUCTOR(SoVtkGenericInterpolatedVelocityField); mObject = vtkGenericInterpolatedVelocityField::New(); mObject->Register(0); mObject->SetGlobalWarningDisplay(0); vtkGenericInterpolatedVelocityField *aGenericInterpolatedVelocityField = vtkGenericInterpolatedVelocityField::New(); double *x = 0; int *y = 0; float *z = 0; SO_ENGINE_ADD_INPUT(Caching, (0)); Caching.setValue(aGenericInterpolatedVelocityField->GetCaching()); aGenericInterpolatedVelocityField->Delete(); SO_ENGINE_ADD_OUTPUT( oLastCell, SoSFVtkObject ); mLastCell = 0; SO_ENGINE_ADD_OUTPUT( Output, SoSFVtkObject ); mOutput = 0; addCalled = 0; }
SoItkHardConnectedComponentImageFilter::SoItkHardConnectedComponentImageFilter() { SO_ENGINE_CONSTRUCTOR( SoItkHardConnectedComponentImageFilter ); // Inputs SO_ENGINE_ADD_INPUT( ObjectSeed, (0, 0, 0) ); }
SoItkWeightedAddImageFilter::SoItkWeightedAddImageFilter() { SO_ENGINE_CONSTRUCTOR( SoItkWeightedAddImageFilter ); // Inputs SO_ENGINE_ADD_INPUT( Alpha, (0) ); }
SoItkBSplineResampleImageFilterBase::SoItkBSplineResampleImageFilterBase() { SO_ENGINE_CONSTRUCTOR( SoItkBSplineResampleImageFilterBase ); // Inputs SO_ENGINE_ADD_INPUT( SplineOrder, (1) ); }