25 SubjectPaths ( ) { meshPath =
""; texPath =
""; latPath =
""; lonPath =
""; }
32 SubjectPaths ( std::string _meshPath, std::string _texPath, std::string _latPath =
"", std::string _lonPath =
"" )
33 { meshPath = _meshPath; texPath = _texPath; latPath = _latPath; lonPath = _lonPath; }
50 std::map<unsigned, std::set< std::pair<unsigned,float> > >
weightLapl;
55 SubjectData ( std::string
id =
"UNKNOWN_SUBJECT_ID" ) { subject_id = id; }
59 paths = subject.
paths;
75 mesh = NULL; tex = NULL; lat = NULL; lon = NULL;
85 std::cout <<
" mesh : " << this->mesh->
vertex().size() <<
" vertices" << std::endl;
86 std::cout <<
" tex : " << this->tex->
nItem() <<
" values" << std::endl;
89 this->coordinates =
RAW_3D;
90 if ( computeWeights ) {
93 std::cout <<
" weights : " << this->weightLapl.size() <<
" weights" << std::endl;
96 if ( computeNeighbours ) {
98 mesh[0] = *(this->mesh);
101 std::cout <<
" neighbours : " << this->neighbours.size() <<
" sets" << std::endl;
109 storeData ( mesh, tex,
false,
false,
verbose );
110 this->weightLapl = weights;
118 std::cout <<
" lat : " << this->lat->
nItem() <<
" values" << std::endl;
121 if ( this->lon != NULL ) {
123 std::cout <<
" lon : " << this->lon->
nItem() <<
" values" << std::endl;
137 this->coordinates =
LAT_1D;
144 public std::map< std::string, SubjectData *> {
146 void readData(
bool verbose =
true );
148 std::vector < AimsSurfaceTriangle >
meshes;
std::map< std::string, uint > subjects_id
std::vector< TimeTexture< float > > textures
AIMSDATA_API AimsTimeSurface< 3, Void > AimsSurfaceTriangle
std::vector< TimeTexture< float > > latitudes
SubjectPaths(std::string _meshPath, std::string _texPath, std::string _latPath="", std::string _lonPath="")
SubjectData(std::string id="UNKNOWN_SUBJECT_ID")
std::map< unsigned, std::set< std::pair< unsigned, float > > > AimsMeshWeightFiniteElementLaplacian(const AimsSurface< 3, Void > &mesh, const float Wmax)
const std::vector< Point3df > & vertex() const
SubjectData(std::string id, std::string meshPath, std::string texPath, std::string latPath="", std::string lonPath="")
SubjectData(SubjectData &subject)
static std::vector< std::set< uint > > surfaceNeighbours(const AimsSurface< D, T > &surf)
SubjectPaths(SubjectPaths &s)
AimsSurface< 3, Void > * mesh
std::vector< AimsSurfaceTriangle > meshes
void storeCoordinates(Texture< float > *lat, Texture< float > *lon=NULL, bool verbose=true)
void storeData(AimsSurface< 3, Void > *mesh, Texture< float > *tex, bool computeWeights=true, bool computeNeighbours=true, bool verbose=true)
void storeData(AimsSurface< 3, Void > *mesh, Texture< float > *tex, std::map< unsigned, std::set< std::pair< unsigned, float > > > &weights, bool verbose=true)
std::vector< TimeTexture< float > > longitudes
std::vector< Graph * > graphs
std::map< unsigned, std::set< std::pair< unsigned, float > > > weightLapl
std::vector< std::set< uint > > neighbours