From a2eeaea569d3db4c16a0897072a2fa16f845f21a Mon Sep 17 00:00:00 2001 From: davila Date: Fri, 4 Jul 2014 14:57:45 +0200 Subject: [PATCH] Feature unitaryoperation SquareRoot --- packages/vtk/src/bbvtkUnaryOperations.cxx | 4 ++++ packages/vtk/src/bbvtkUnaryOperations.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/vtk/src/bbvtkUnaryOperations.cxx b/packages/vtk/src/bbvtkUnaryOperations.cxx index dfc3cc9..4f62f1a 100644 --- a/packages/vtk/src/bbvtkUnaryOperations.cxx +++ b/packages/vtk/src/bbvtkUnaryOperations.cxx @@ -103,6 +103,10 @@ printf("EED UnaryOperations::Process() 3 \n"); case 9: ope->SetOperationToAbsoluteValue(); break; + case 10: + ope->SetOperationToSquareRoot(); + break; + /* EED 21Juin 2011 Borrame diff --git a/packages/vtk/src/bbvtkUnaryOperations.h b/packages/vtk/src/bbvtkUnaryOperations.h index c123ae0..82e372f 100644 --- a/packages/vtk/src/bbvtkUnaryOperations.h +++ b/packages/vtk/src/bbvtkUnaryOperations.h @@ -74,7 +74,7 @@ BBTK_BEGIN_DESCRIBE_BLACK_BOX(UnaryOperations,bbtk::AtomicBlackBox); BBTK_CATEGORY("filtre"); BBTK_INPUT(UnaryOperations,In1,"Image to be operated",vtkImageData*,""); BBTK_INPUT(UnaryOperations,InConstant,"Constant that will be used in the operations.",double,"0 default"); - BBTK_INPUT(UnaryOperations,Operation,"0:Add (Default), 1:subtract, 2:multiply, 3:divide, 4:invert, 5:sin, 6:cos, 7:exp, 8:log, 9:abs????",int,"Addition default"); + BBTK_INPUT(UnaryOperations,Operation,"0:Add (Default), 1:subtract, 2:multiply, 3:divide, 4:invert, 5:sin, 6:cos, 7:exp, 8:log, 9:abs????, 10:SquareRoot",int,"Addition default"); BBTK_OUTPUT(UnaryOperations,Out,"",vtkImageData*,""); BBTK_END_DESCRIBE_BLACK_BOX(UnaryOperations); } -- 2.47.1