Skip to content

Commit

Permalink
COMP: Changed GraphSearchNode to avoid being self-referential.
Browse files Browse the repository at this point in the history
  • Loading branch information
ntustison committed Jun 4, 2010
1 parent 2c0c1ee commit 023a1d7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions Temporary/itkFEMDiscConformalMap.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ ::ExtractSurfaceDisc()

// assign scalars to the original surface mesh

typedef itk::SurfaceMeshCurvature<GraphSearchNode, GraphSearchNode> surfktype;
typedef itk::SurfaceMeshCurvature<GraphSearchNodeType, GraphSearchNodeType> surfktype;
typename surfktype::Pointer surfk = surfktype::New();

vtkPoints* vtkpoints = m_SurfaceMesh->GetPoints();
Expand Down Expand Up @@ -530,7 +530,7 @@ void FEMDiscConformalMap<TSurface, TImage, TDimension>::MakeFlatImage()
template <typename TSurface, typename TImage, unsigned int TDimension>
void FEMDiscConformalMap<TSurface, TImage, TDimension>::BuildOutputMeshes(float tval)
{
typedef GraphSearchNode::NodeLocationType loctype;
typedef GraphSearchNodeType::NodeLocationType loctype;
// Get the number of points in the mesh
int numPoints = m_Solver.node.size();

Expand Down Expand Up @@ -1060,7 +1060,7 @@ ::MapToSquare()
float minv = 9.e9;
float maxu = 0;
float maxv = 0;
typedef itk::SurfaceMeshCurvature<GraphSearchNode, GraphSearchNode> surfktype;
typedef itk::SurfaceMeshCurvature<GraphSearchNodeType, GraphSearchNodeType> surfktype;
typename surfktype::Pointer surfk = surfktype::New();

float totallengthdistortion = 0.;
Expand Down Expand Up @@ -1150,7 +1150,7 @@ ::ConjugateHarmonic()
// then perform integration to the given point. this set its V value.
int pathsz=manifoldIntegrator->GetPathSize();
float intval=0.0;
typedef GraphSearchNode::NodeLocationType loctype;
typedef GraphSearchNodeType::NodeLocationType loctype;
for (int j=pathsz-2; j>=0; j--)
{
loctype delt=manifoldIntegrator->GetPathAtIndex(j+1)->GetLocation()-
Expand Down Expand Up @@ -1178,7 +1178,7 @@ ::ConjugateHarmonic()
float maxu = 0;
float maxv = 0;

typedef itk::SurfaceMeshCurvature<GraphSearchNode, GraphSearchNode> surfktype;
typedef itk::SurfaceMeshCurvature<GraphSearchNodeType, GraphSearchNodeType> surfktype;
typename surfktype::Pointer surfk = surfktype::New();

// for (int DER=0; DER<4; DER++)
Expand Down
14 changes: 7 additions & 7 deletions Temporary/itkFEMDiscConformalMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ class FEMDiscConformalMap : public ProcessObject
FixedVectorType;
typedef vnl_matrix<double> MatrixType;

typedef Image<float, 2> FlatImageType;
typedef typename FlatImageType::Pointer FlatImageTypePointer;
typedef GraphSearchNode<float, float, 3> GraphSearchNode;
typedef typename GraphSearchNode::Pointer GraphSearchNodePointer;
typedef typename GraphSearchNode::NodeLocationType NodeLocationType;
typedef ManifoldIntegrationAlgorithm<GraphSearchNode> ManifoldIntegratorType;
// typedef TriangulatedDijkstrasAlgorithm<GraphSearchNode> ManifoldIntegratorType;
typedef Image<float, 2> FlatImageType;
typedef typename FlatImageType::Pointer FlatImageTypePointer;
typedef GraphSearchNode<float, float, 3> GraphSearchNodeType;
typedef typename GraphSearchNodeType::Pointer GraphSearchNodePointer;
typedef typename GraphSearchNodeType::NodeLocationType NodeLocationType;
typedef ManifoldIntegrationAlgorithm<GraphSearchNodeType> ManifoldIntegratorType;
// typedef TriangulatedDijkstrasAlgorithm<GraphSearchNodeType> ManifoldIntegratorType;
typedef typename ManifoldIntegratorType::Pointer ManifoldIntegratorTypePointer;

/** FEM types */
Expand Down

0 comments on commit 023a1d7

Please sign in to comment.