DFNgen  2.0
DFN Model Generator
output.h
Go to the documentation of this file.
1 #ifndef _output_h_
2 #define _output_h_
3 #include <vector>
4 #include "structures.h"
5 #include <fstream>
6 #include <string>
7 
8 
9 
10 void writeRotationData(std::vector<Poly> &acceptedPoly, std::vector<unsigned int> &finalFractures, std::vector<Shape> &shapeFamilies, std::string output);
11 void writeOutput(char* outputFolder, std::vector<Poly> &acceptedPoly, std::vector<IntPoints> &intPts,
12  std::vector<Point> &triplePoints, struct Stats &pstats,
13  std::vector<unsigned int> &finalFractures, std::vector<Shape> &shapeFamilies);
14 
15 void writePoints(std::ostream &output, std::vector<Point> &points, int start, unsigned int &count);
16 
17 bool DIR_exists(const char *path);
18 
19 inline void savePoints(std::stringstream &stream, std::vector<Point> &points,
20  int fract1, int fract2, int start);
21 void adjustIntFractIDs(std::vector<unsigned int> &finalFractures, std::vector<Poly> &allPolys,
22  std::vector<IntPoints> &intPts);
23 
24 inline void writeVertices(std::ostream &output, Poly &frac);
25 
26 void rotateFractures(std::vector<unsigned int> &finalFractures, std::vector<Poly> &acceptedPoly);
27 
28 void debugINP(std::vector<Poly> &allPolys, Stats &pstats, std::string &outputFolder);
29 
30 void finishWritingIntFile(std::ostream &fractIntFile, int fract1, int numPoints, int numIntersections,
31  std::vector<unsigned int> &intStart, std::vector<unsigned int> &intersectingFractures);
32 
34 void writeIntersectionFiles(std::vector<unsigned int> &finalFractures, std::vector<Poly> &acceptedPoly,
35  std::vector<IntPoints> &intPts, std::vector<Point> &triplePoints, std::string intersectionFolder, struct Stats &pstats);
36 void writePolysInp(std::vector<unsigned int> &finalFractures, std::vector<Poly> &acceptedPoly, std::string &output);
37 void writePolysInp_old(std::vector<unsigned int> &finalFractures, std::vector<Poly> &acceptedPoly, std::string &output);
38 void writeParamsFile(std::vector<unsigned int> &finalFractures, std::vector<Poly> &acceptedPoly, std::vector<Shape> &shapeFamilies, Stats &pstats, std::vector<Point> &triplePoints, std::string &output);
39 void writeApertureFile(std::vector<unsigned int> &finalFractures, std::vector<Poly> &acceptedPoly, std::string &output);
40 void writePermFile(std::vector<unsigned int> &finalFractures, std::vector<Poly> &acceptedPoly, std::string &output);
41 void writeFinalPolyRadii(std::vector<unsigned int> &finalFractures, std::vector<Poly> &acceptedPoly, std::string &output);
42 void writeAllAcceptedRadii(std::vector<Poly> &acceptedPoly, std::string &output);
43 void writeAllAcceptedRadii_OfFamily(int familyNum, std::vector<Poly> &acceptedPoly, std::string &output);
44 void writeFinalRadii_OfFamily(std::vector<unsigned int> &finalFractures, int familyNum, std::vector<Poly> &acceptedPoly, std::string &output);
45 void writeTriplePts(std::vector<Point> &triplePoints, std::vector<unsigned int> &finalFractures, std::vector<Poly> &acceptedPoly,
46  std::vector<IntPoints> &intPts, std::string &output);
47 void makeDIR(const char *dir);
48 void writeRadiiFile(std::vector<unsigned int> &finalFractures, std::vector<Poly> &acceptedPoly, std::string &output);
49 void writeRejectionStats(Stats &pstats, std::string &output);
50 void writeShapeFams(std::vector<Shape> &shapeFamilies, std::string &output);
51 void writeFractureTranslations(std::vector<unsigned int> &finalFractures, std::vector<Poly> &acceptedPoly, std::string &output);
52 void writeConnectivity(std::vector<unsigned int> &finalFractures, std::vector<Poly> &acceptedPoly, std::vector<IntPoints> &intPts, std::string &output);
53 void writeRejectsPerAttempt(Stats &pstats, std::string &output);
54 
55 #endif
void writeAllAcceptedRadii_OfFamily(int familyNum, std::vector< Poly > &acceptedPoly, std::string &output)
Definition: output.cpp:747
void writePolysInp_old(std::vector< unsigned int > &finalFractures, std::vector< Poly > &acceptedPoly, std::string &output)
Definition: output.cpp:457
void savePoints(std::stringstream &stream, std::vector< Point > &points, int fract1, int fract2, int start)
void makeDIR(const char *dir)
Definition: output.cpp:991
void writeOutput(char *outputFolder, std::vector< Poly > &acceptedPoly, std::vector< IntPoints > &intPts, std::vector< Point > &triplePoints, struct Stats &pstats, std::vector< unsigned int > &finalFractures, std::vector< Shape > &shapeFamilies)
Definition: output.cpp:31
void adjustIntFractIDs(std::vector< unsigned int > &finalFractures, std::vector< Poly > &allPolys, std::vector< IntPoints > &intPts)
Definition: output.cpp:218
void finishWritingIntFile(std::ostream &fractIntFile, int fract1, int numPoints, int numIntersections, std::vector< unsigned int > &intStart, std::vector< unsigned int > &intersectingFractures)
Definition: output.cpp:152
void writeRotationData(std::vector< Poly > &acceptedPoly, std::vector< unsigned int > &finalFractures, std::vector< Shape > &shapeFamilies, std::string output)
Definition: output.cpp:1067
void writeConnectivity(std::vector< unsigned int > &finalFractures, std::vector< Poly > &acceptedPoly, std::vector< IntPoints > &intPts, std::string &output)
Definition: output.cpp:1021
void writeVertices(std::ostream &output, Poly &frac)
void writeIntersectionFiles(std::vector< unsigned int > &finalFractures, std::vector< Poly > &acceptedPoly, std::vector< IntPoints > &intPts, std::vector< Point > &triplePoints, std::string intersectionFolder, struct Stats &pstats)
Definition: output.cpp:248
void writeRejectionStats(Stats &pstats, std::string &output)
Definition: output.cpp:859
void writeParamsFile(std::vector< unsigned int > &finalFractures, std::vector< Poly > &acceptedPoly, std::vector< Shape > &shapeFamilies, Stats &pstats, std::vector< Point > &triplePoints, std::string &output)
Definition: output.cpp:551
void writeFinalRadii_OfFamily(std::vector< unsigned int > &finalFractures, int familyNum, std::vector< Poly > &acceptedPoly, std::string &output)
Definition: output.cpp:772
void writeRadiiFile(std::vector< unsigned int > &finalFractures, std::vector< Poly > &acceptedPoly, std::string &output)
Definition: output.cpp:617
void writeRadiiAcceptedFile()
bool DIR_exists(const char *path)
Definition: output.cpp:193
void writeFinalPolyRadii(std::vector< unsigned int > &finalFractures, std::vector< Poly > &acceptedPoly, std::string &output)
Definition: output.cpp:699
void rotateFractures(std::vector< unsigned int > &finalFractures, std::vector< Poly > &acceptedPoly)
Definition: output.cpp:437
void writeAllAcceptedRadii(std::vector< Poly > &acceptedPoly, std::string &output)
Definition: output.cpp:723
void writeTriplePts(std::vector< Point > &triplePoints, std::vector< unsigned int > &finalFractures, std::vector< Poly > &acceptedPoly, std::vector< IntPoints > &intPts, std::string &output)
Definition: output.cpp:797
void writeApertureFile(std::vector< unsigned int > &finalFractures, std::vector< Poly > &acceptedPoly, std::string &output)
Definition: output.cpp:573
void writePolysInp(std::vector< unsigned int > &finalFractures, std::vector< Poly > &acceptedPoly, std::string &output)
Definition: output.cpp:510
void writeRejectsPerAttempt(Stats &pstats, std::string &output)
Definition: output.cpp:1147
void debugINP(std::vector< Poly > &allPolys, Stats &pstats, std::string &outputFolder)
void writePoints(std::ostream &output, std::vector< Point > &points, int start, unsigned int &count)
Definition: output.cpp:133
void writePermFile(std::vector< unsigned int > &finalFractures, std::vector< Poly > &acceptedPoly, std::string &output)
Definition: output.cpp:594
void writeFractureTranslations(std::vector< unsigned int > &finalFractures, std::vector< Poly > &acceptedPoly, std::string &output)
Definition: output.cpp:659
void writeShapeFams(std::vector< Shape > &shapeFamilies, std::string &output)
Definition: output.cpp:882