~ubuntu-branches/debian/sid/simpleitk/sid

« back to all changes in this revision

Viewing changes to ExpandTemplateGenerator/Components/ExecuteInternalSetITKFilterParameters.cxx.in

  • Committer: Package Import Robot
  • Author(s): Ghislain Antony Vaillant
  • Date: 2017-11-02 08:49:18 UTC
  • Revision ID: package-import@ubuntu.com-20171102084918-7hs09ih668xq87ej
Tags: upstream-1.0.1
ImportĀ upstreamĀ versionĀ 1.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
$(foreach members
 
3
$(if custom_itk_cast then
 
4
OUT = '  ${custom_itk_cast}'
 
5
elseif dim_vec and dim_vec == 1 then
 
6
  OUT = [[
 
7
  ${itk_type} itkVec${name} = sitkSTLVectorToITK<${itk_type}>( this->Get${name}() );
 
8
  filter->Set${name}( itkVec${name} );]]
 
9
elseif pixeltype then
 
10
  OUT = '  filter->Set${name} ( static_cast< typename ${pixeltype}ImageType::PixelType> ( this->m_${name} ) );'
 
11
elseif enum then
 
12
  OUT = '  filter->Set${name} ( ${itk_type} ( int( this->m_${name} ) ) );'
 
13
else
 
14
  OUT = '  filter->Set${name} ( this->m_${name} );'
 
15
end)
 
16
)