Commit 2aca0822 authored by Mathias Goldau's avatar Mathias Goldau

[ADD] Now the stub even compiles! => ship it!

parent 900d2e5d
...@@ -616,7 +616,9 @@ EXCLUDE = src/dataHandler/io/nifti \ ...@@ -616,7 +616,9 @@ EXCLUDE = src/dataHandler/io/nifti \
src/dataHandler/io/biosig \ src/dataHandler/io/biosig \
src/dataHandler/io/biosigWin \ src/dataHandler/io/biosigWin \
src/dataHandler/io/libeep \ src/dataHandler/io/libeep \
src/common/platformDependent/visualStudio/inttypes.h src/common/platformDependent/visualStudio/inttypes.h \
src/modules/lic/fibernavigator \
src/modules/lic/fantom
# The EXCLUDE_SYMLINKS tag can be used select whether or not files or # The EXCLUDE_SYMLINKS tag can be used select whether or not files or
# directories that are symbolic links (a Unix filesystem feature) are excluded # directories that are symbolic links (a Unix filesystem feature) are excluded
......
...@@ -216,7 +216,7 @@ ADD_CUSTOM_TARGET( tags DEPENDS ctags DEPENDS cscope ) ...@@ -216,7 +216,7 @@ ADD_CUSTOM_TARGET( tags DEPENDS ctags DEPENDS cscope )
FILE( GLOB_RECURSE STYLE_CPP ${PROJECT_SOURCE_DIR}/*.cpp ) FILE( GLOB_RECURSE STYLE_CPP ${PROJECT_SOURCE_DIR}/*.cpp )
FILE( GLOB_RECURSE STYLE_H ${PROJECT_SOURCE_DIR}/*.h ) FILE( GLOB_RECURSE STYLE_H ${PROJECT_SOURCE_DIR}/*.h )
# Set dirs to exclude from stylecheck # Set dirs to exclude from stylecheck
SET( EXCLUDE_DIRS "/dataHandler/io/nifti/;/dataHandler/io/biosig/;/dataHandler/io/biosigWin/;/dataHandler/io/biosig/XMLParser/;/dataHandler/io/biosigWin/XMLParser/;/dataHandler/io/libeep/avr/;/dataHandler/io/libeep/cnt/;/dataHandler/io/libeep/eep/;/common/platformDependent/visualStudio/" ) SET( EXCLUDE_DIRS "/dataHandler/io/nifti/;/dataHandler/io/biosig/;/dataHandler/io/biosigWin/;/dataHandler/io/biosig/XMLParser/;/dataHandler/io/biosigWin/XMLParser/;/dataHandler/io/libeep/avr/;/dataHandler/io/libeep/cnt/;/dataHandler/io/libeep/eep/;/common/platformDependent/visualStudio/;/modules/lic/fibernavigator/;/modules/lic/fantom/" )
FOREACH( dirname ${EXCLUDE_DIRS} ) FOREACH( dirname ${EXCLUDE_DIRS} )
FILE( GLOB EXCLUDE_H ${PROJECT_SOURCE_DIR}${dirname}*.h ) FILE( GLOB EXCLUDE_H ${PROJECT_SOURCE_DIR}${dirname}*.h )
FILE( GLOB EXCLUDE_CPP ${PROJECT_SOURCE_DIR}${dirname}*.cpp ) FILE( GLOB EXCLUDE_CPP ${PROJECT_SOURCE_DIR}${dirname}*.cpp )
......
...@@ -31,7 +31,7 @@ F::FVector lastDirectionVector(3); ...@@ -31,7 +31,7 @@ F::FVector lastDirectionVector(3);
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
#if 1 #if 1
FStreamlineOnSurfaceEuler::FStreamlineOnSurfaceEuler(const WDataSetVector& vectors, TriangleMesh* mesh ) FStreamlineOnSurfaceEuler::FStreamlineOnSurfaceEuler( boost::shared_ptr< WDataSetVector > vectors, TriangleMesh* mesh )
: allSteps(), : allSteps(),
steps(), steps(),
allNormals(), allNormals(),
......
...@@ -92,7 +92,7 @@ public: ...@@ -92,7 +92,7 @@ public:
}; };
FStreamlineOnSurfaceEuler( const WDataSetVector& vectors, TriangleMesh* mesh ); FStreamlineOnSurfaceEuler( boost::shared_ptr< WDataSetVector > vectors, TriangleMesh* mesh );
virtual ~FStreamlineOnSurfaceEuler(); virtual ~FStreamlineOnSurfaceEuler();
...@@ -164,7 +164,7 @@ protected: ...@@ -164,7 +164,7 @@ protected:
protected: protected:
const WDataSetVector& m_vectors; boost::shared_ptr< WDataSetVector > m_vectors;
TensorField* m_tensorField; TensorField* m_tensorField;
TriangleMesh* m_mesh; TriangleMesh* m_mesh;
......
...@@ -10,11 +10,11 @@ ...@@ -10,11 +10,11 @@
#include "SurfaceLIC.h" #include "SurfaceLIC.h"
#include "../fantom/FTensor.h" #include "../fantom/FTensor.h"
SurfaceLIC::SurfaceLIC( const WDataSetVector& vectors, boost::shared_ptr< WTriangleMesh2 > mesh ) SurfaceLIC::SurfaceLIC( boost::shared_ptr< WDataSetVector > vectors, boost::shared_ptr< WTriangleMesh2 > mesh )
: m_vectors( vectors ) : m_vectors( vectors )
{ {
WAssert( boost::shared_dynamic_cast< WGridRegular3D >( vectors.getGrid() ), "Only vector field with regular grid are allowed... aborting" ); WAssert( boost::shared_dynamic_cast< WGridRegular3D >( vectors->getGrid() ), "Only vector field with regular grid are allowed... aborting" );
m_mesh = new TriangleMesh( mesh, boost::shared_dynamic_cast< WGridRegular3D >( vectors.getGrid() ) ); m_mesh = new TriangleMesh( mesh, boost::shared_dynamic_cast< WGridRegular3D >( vectors->getGrid() ) );
nbFold = 20; nbFold = 20;
max_length = 10.; max_length = 10.;
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
class SurfaceLIC class SurfaceLIC
{ {
public: public:
SurfaceLIC( const WDataSetVector &vectors, boost::shared_ptr< WTriangleMesh2 > mesh ); SurfaceLIC( boost::shared_ptr< WDataSetVector > vectors, boost::shared_ptr< WTriangleMesh2 > mesh );
virtual ~SurfaceLIC(); virtual ~SurfaceLIC();
virtual void execute(); virtual void execute();
std::vector< std::vector<float> > testLines; std::vector< std::vector<float> > testLines;
...@@ -29,7 +29,7 @@ private: ...@@ -29,7 +29,7 @@ private:
{ {
public: public:
MyLICStreamline( const WDataSetVector &vectors, TriangleMesh* mesh ) MyLICStreamline( boost::shared_ptr< WDataSetVector > vectors, TriangleMesh* mesh )
: FStreamlineOnSurfaceEuler( vectors, mesh ) : FStreamlineOnSurfaceEuler( vectors, mesh )
{ {
} }
...@@ -56,7 +56,7 @@ private: ...@@ -56,7 +56,7 @@ private:
positive threshold; positive threshold;
}; };
const WDataSetVector& m_vectors; boost::shared_ptr< WDataSetVector > m_vectors;
TriangleMesh* m_mesh; TriangleMesh* m_mesh;
int nbTriangles; int nbTriangles;
......
...@@ -42,7 +42,7 @@ TensorField::~TensorField() ...@@ -42,7 +42,7 @@ TensorField::~TensorField()
FTensor TensorField::getInterpolatedVector(float x, float y, float z) FTensor TensorField::getInterpolatedVector(float x, float y, float z)
{ {
bool success = false; bool success = false;
wmath::WVector3D result = m_vectors->interpolate( wmath::WPosition( x, y, z ), success ); wmath::WVector3D result = m_vectors->interpolate( wmath::WPosition( x, y, z ), &success );
WAssert( success, "Vector interpolation was not successful" ); WAssert( success, "Vector interpolation was not successful" );
return FTensor( FArray( result[0], result[1], result[2] ) ); return FTensor( FArray( result[0], result[1], result[2] ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment