]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Extensions/DataStructures/QuadEdge.hxx
"Extesions" code reorganized
[cpPlugins.git] / lib / cpPlugins / Extensions / DataStructures / QuadEdge.hxx
similarity index 79%
rename from lib/cpPlugins/Extensions/QuadEdge.hxx
rename to lib/cpPlugins/Extensions/DataStructures/QuadEdge.hxx
index e0dc302d7fc1466d7d079b3829795e2fd2e275c4..6f7ff600e74ccd90144f70044173d15f17fb810c 100644 (file)
@@ -1,17 +1,18 @@
-#ifndef __CPPLUGINS__EXTENSIONS__QUADEDGE__HXX__
-#define __CPPLUGINS__EXTENSIONS__QUADEDGE__HXX__
+#ifndef __CPPLUGINS__EXTENSIONS__DATASTRUCTURES__QUADEDGE__HXX__
+#define __CPPLUGINS__EXTENSIONS__DATASTRUCTURES__QUADEDGE__HXX__
 
 #include <limits>
 
 // -------------------------------------------------------------------------
 template< typename P, typename D, bool IsPrimal >
-const typename cpPlugins::Extensions::QuadEdge< P, D, IsPrimal >::
-TPrimalGeometry cpPlugins::Extensions::QuadEdge< P, D, IsPrimal >::
+const typename cpPlugins::Extensions::DataStructures::
+QuadEdge< P, D, IsPrimal >::TPrimalGeometry
+cpPlugins::Extensions::DataStructures::QuadEdge< P, D, IsPrimal >::
 NoGeometry = std::numeric_limits< P >::max( );
 
 // -------------------------------------------------------------------------
 template< typename P, typename D, bool IsPrimal >
-void cpPlugins::Extensions::QuadEdge< P, D, IsPrimal >::
+void cpPlugins::Extensions::DataStructures::QuadEdge< P, D, IsPrimal >::
 CreateRings( )
 {
   TPrimal* e = this;
@@ -32,7 +33,7 @@ CreateRings( )
 
 // -------------------------------------------------------------------------
 template< typename P, typename D, bool IsPrimal >
-void cpPlugins::Extensions::QuadEdge< P, D, IsPrimal >::
+void cpPlugins::Extensions::DataStructures::QuadEdge< P, D, IsPrimal >::
 SetLnextRingGeometry( const D& v )
 {
   for( Iterator i = this->BeginLnext( ); i != this->EndLnext( ); ++i )
@@ -41,7 +42,7 @@ SetLnextRingGeometry( const D& v )
 
 // -------------------------------------------------------------------------
 template< typename P, typename D, bool IsPrimal >
-void cpPlugins::Extensions::QuadEdge< P, D, IsPrimal >::
+void cpPlugins::Extensions::DataStructures::QuadEdge< P, D, IsPrimal >::
 UnsetLnextRingGeometry( )
 {
   this->SetLnextRingGeometry( TDual::NoGeometry );
@@ -49,7 +50,7 @@ UnsetLnextRingGeometry( )
 
 // -------------------------------------------------------------------------
 template< typename P, typename D, bool IsPrimal >
-bool cpPlugins::Extensions::QuadEdge< P, D, IsPrimal >::
+bool cpPlugins::Extensions::DataStructures::QuadEdge< P, D, IsPrimal >::
 IsEdgeInOnextRing( const TPrimal* e ) const
 {
   bool found = false;
@@ -64,7 +65,7 @@ IsEdgeInOnextRing( const TPrimal* e ) const
 
 // -------------------------------------------------------------------------
 template< typename P, typename D, bool IsPrimal >
-bool cpPlugins::Extensions::QuadEdge< P, D, IsPrimal >::
+bool cpPlugins::Extensions::DataStructures::QuadEdge< P, D, IsPrimal >::
 IsEdgeInLnextRing( const TPrimal* e ) const
 {
   bool found = false;
@@ -79,7 +80,8 @@ IsEdgeInLnextRing( const TPrimal* e ) const
 
 // -------------------------------------------------------------------------
 template< typename P, typename D, bool IsPrimal >
-unsigned int cpPlugins::Extensions::QuadEdge< P, D, IsPrimal >::
+unsigned int
+cpPlugins::Extensions::DataStructures::QuadEdge< P, D, IsPrimal >::
 GetOnextRingSize( ) const
 {
   unsigned int count = 0;
@@ -94,7 +96,8 @@ GetOnextRingSize( ) const
 
 // -------------------------------------------------------------------------
 template< typename P, typename D, bool IsPrimal >
-unsigned int cpPlugins::Extensions::QuadEdge< P, D, IsPrimal >::
+unsigned int
+cpPlugins::Extensions::DataStructures::QuadEdge< P, D, IsPrimal >::
 GetLnextRingSize( ) const
 {
   unsigned int count = 0;
@@ -109,7 +112,7 @@ GetLnextRingSize( ) const
 
 // -------------------------------------------------------------------------
 template< typename P, typename D, bool IsPrimal >
-bool cpPlugins::Extensions::QuadEdge< P, D, IsPrimal >::
+bool cpPlugins::Extensions::DataStructures::QuadEdge< P, D, IsPrimal >::
 IsAtBorder( ) const
 {
   return(
@@ -120,7 +123,7 @@ IsAtBorder( ) const
 
 // -------------------------------------------------------------------------
 template< typename P, typename D, bool IsPrimal >
-bool cpPlugins::Extensions::QuadEdge< P, D, IsPrimal >::
+bool cpPlugins::Extensions::DataStructures::QuadEdge< P, D, IsPrimal >::
 IsOriginInternal( ) const
 {
   bool internal = true;
@@ -135,8 +138,8 @@ IsOriginInternal( ) const
 
 // -------------------------------------------------------------------------
 template< typename P, typename D, bool IsPrimal >
-typename cpPlugins::Extensions::QuadEdge< P, D, IsPrimal >::
-TPrimal* cpPlugins::Extensions::QuadEdge< P, D, IsPrimal >::
+typename cpPlugins::Extensions::DataStructures::QuadEdge< P, D, IsPrimal >::
+TPrimal* cpPlugins::Extensions::DataStructures::QuadEdge< P, D, IsPrimal >::
 GetNextBorderEdgeWithUnsetLeft( TPrimal* edge ) const
 {
   // Be sure the Onext ring isn't already full
@@ -162,7 +165,7 @@ GetNextBorderEdgeWithUnsetLeft( TPrimal* edge ) const
 
 // -------------------------------------------------------------------------
 template< typename P, typename D, bool IsPrimal >
-bool cpPlugins::Extensions::QuadEdge< P, D, IsPrimal >::
+bool cpPlugins::Extensions::DataStructures::QuadEdge< P, D, IsPrimal >::
 ReorderOnextRing( TPrimal* first, TPrimal* second )
 {
   // Making sure point adjacency is correct:
@@ -194,7 +197,7 @@ ReorderOnextRing( TPrimal* first, TPrimal* second )
 
 // -------------------------------------------------------------------------
 template< typename P, typename D, bool IsPrimal >
-void cpPlugins::Extensions::QuadEdge< P, D, IsPrimal >::
+void cpPlugins::Extensions::DataStructures::QuadEdge< P, D, IsPrimal >::
 Splice( TPrimal* a, TPrimal* b )
 {
   // Don't waste time splicing the same edge (or non-existent)
@@ -218,7 +221,7 @@ Splice( TPrimal* a, TPrimal* b )
 
 // -------------------------------------------------------------------------
 template< typename P, typename D, bool IsPrimal >
-cpPlugins::Extensions::QuadEdge< P, D, IsPrimal >::
+cpPlugins::Extensions::DataStructures::QuadEdge< P, D, IsPrimal >::
 QuadEdge( )
   : m_Origin( Self::NoGeometry )
 {
@@ -228,11 +231,11 @@ QuadEdge( )
 
 // -------------------------------------------------------------------------
 template< typename P, typename D, bool IsPrimal >
-cpPlugins::Extensions::QuadEdge< P, D, IsPrimal >::
+cpPlugins::Extensions::DataStructures::QuadEdge< P, D, IsPrimal >::
 ~QuadEdge( )
 {
 }
 
-#endif // __CPPLUGINS__EXTENSIONS__QUADEDGE__HXX__
+#endif // __CPPLUGINS__EXTENSIONS__DATASTRUCTURES__QUADEDGE__HXX__
 
 // eof - $RCSfile$