~ubuntu-branches/ubuntu/precise/insighttoolkit/precise

« back to all changes in this revision

Viewing changes to Code/SpatialObject/itkMetaTubeConverter.txx

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2008-05-31 12:07:29 UTC
  • mfrom: (3.1.3 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080531120729-7g7layn480le43ko
Tags: 3.6.0-3
* debian/patches/gccxml-workaround.patch: New.  Work around gccxml issue
  with #include_next; c.f. http://www.gccxml.org/Bug/view.php?id=7134.  
* debian/patches/gcc43.patch: include <cstring> in itkNeighbourhood.h.
  This only showed up in the tcl wrapping step.

* Above two entries fix FTBFS for GCC 4.3-based systems.
  Closes: #478500.

* debian/patches/sharedforward.patch: New.  Ensure that linux/sparc
  systems are not also configured as a SUN sparc system, which requires
  SUN header sys/isa_defs.h.  Closes: #478940, #483312.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
  Program:   Insight Segmentation & Registration Toolkit
4
4
  Module:    $RCSfile: itkMetaTubeConverter.txx,v $
5
5
  Language:  C++
6
 
  Date:      $Date: 2007/01/28 19:24:56 $
7
 
  Version:   $Revision: 1.6 $
 
6
  Date:      $Date: 2008-01-09 07:12:48 $
 
7
  Version:   $Revision: 1.10 $
8
8
 
9
9
  Copyright (c) Insight Software Consortium. All rights reserved.
10
10
  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
67
67
  itk::CovariantVector<double,NDimensions> v; 
68
68
  itk::Vector<double,NDimensions> t;
69
69
  
70
 
  for(unsigned int id=0;id< tube->GetPoints().size();id++)
 
70
  for(unsigned int identifier=0;identifier< tube->GetPoints().size();identifier++)
71
71
    {
72
72
    TubePointType pnt;
73
73
    
124
124
  MetaTube* tube = new MetaTube(NDimensions);
125
125
 
126
126
  // fill in the tube information  
127
 
  typename SpatialObjectType::PointListType::const_iterator i;
128
 
  for(i = dynamic_cast<SpatialObjectType*>(spatialObject)->GetPoints().begin(); 
129
 
      i != dynamic_cast<SpatialObjectType*>(spatialObject)->GetPoints().end();
130
 
      i++)
 
127
  typename SpatialObjectType::PointListType::const_iterator it;
 
128
  for(it = dynamic_cast<SpatialObjectType*>(spatialObject)->GetPoints().begin(); 
 
129
      it != dynamic_cast<SpatialObjectType*>(spatialObject)->GetPoints().end();
 
130
      it++)
131
131
    {
132
132
    TubePnt* pnt = new TubePnt(NDimensions);
133
133
 
134
134
    for(unsigned int d=0;d<NDimensions;d++)
135
135
      {
136
 
      pnt->m_X[d] = (*i).GetPosition()[d];
 
136
      pnt->m_X[d] = (*it).GetPosition()[d];
137
137
      }
138
138
      
139
 
    pnt->m_ID = (*i).GetID();
140
 
    pnt->m_R=(*i).GetRadius();
141
 
 
142
 
    for(unsigned int d=0;d<NDimensions;d++)
143
 
      {
144
 
      pnt->m_V1[d]=(*i).GetNormal1()[d];
145
 
      }
146
 
 
147
 
    for(unsigned int d=0;d<NDimensions;d++)
148
 
      {
149
 
      pnt->m_V2[d]=(*i).GetNormal2()[d];
150
 
      }
151
 
 
152
 
    for(unsigned int d=0;d<NDimensions;d++)
153
 
      {
154
 
      pnt->m_T[d]=(*i).GetTangent()[d];
 
139
    pnt->m_ID = (*it).GetID();
 
140
    pnt->m_R=(*it).GetRadius();
 
141
 
 
142
    for(unsigned int d=0;d<NDimensions;d++)
 
143
      {
 
144
      pnt->m_V1[d]=(*it).GetNormal1()[d];
 
145
      }
 
146
 
 
147
    for(unsigned int d=0;d<NDimensions;d++)
 
148
      {
 
149
      pnt->m_V2[d]=(*it).GetNormal2()[d];
 
150
      }
 
151
 
 
152
    for(unsigned int d=0;d<NDimensions;d++)
 
153
      {
 
154
      pnt->m_T[d]=(*it).GetTangent()[d];
155
155
      }
156
156
              
157
 
    pnt->m_Color[0] = (*i).GetRed();
158
 
    pnt->m_Color[1] = (*i).GetGreen();
159
 
    pnt->m_Color[2] = (*i).GetBlue();
160
 
    pnt->m_Color[3] = (*i).GetAlpha();
 
157
    pnt->m_Color[0] = (*it).GetRed();
 
158
    pnt->m_Color[1] = (*it).GetGreen();
 
159
    pnt->m_Color[2] = (*it).GetBlue();
 
160
    pnt->m_Color[3] = (*it).GetAlpha();
161
161
 
162
162
    tube->GetPoints().push_back(pnt); 
163
163
    }