Fraktale Generated by Doxygen 1.10.0 Chapter 1 Class Index 1.1 Class List Here are the classes, structs, unions and interfaces with brief descriptions: Transformation Represents a 2D affine transformation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Generated by Doxygen ?? 2 Class Index Generated by Doxygen Chapter 2 File Index 2.1 File List Here is a list of all documented files with brief descriptions: C:/Polsl/PKK/Fraktale/Fractal_Generator/ main.cpp A program to generate fractals using transformations . . . . . . . . . . . . . . . . . . . . . . C:/Polsl/PKK/Fraktale/Fractal_Generator/ transformations.cpp Functions for reading transformations from a file, applying transformations, generating fractals, and saving fractals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C:/Polsl/PKK/Fraktale/Fractal_Generator/ transformations.h Functions for reading transformations from a file, applying transformations, generating fractals, and saving fractals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Generated by Doxygen ?? ?? ?? 4 File Index Generated by Doxygen Chapter 3 Class Documentation 3.1 Transformation Struct Reference Represents a 2D affine transformation. #include <transformations.h> Public Attributes • • • • • • 3.1.1 double a double b double c double d double e double f Detailed Description Represents a 2D affine transformation. The documentation for this struct was generated from the following file: • C:/Polsl/PKK/Fraktale/Fractal_Generator/ transformations.h Generated by Doxygen 6 Class Documentation Generated by Doxygen Chapter 4 File Documentation 4.1 C:/Polsl/PKK/Fraktale/Fractal_Generator/main.cpp File Reference A program to generate fractals using transformations. #include #include #include #include "transformations.h" <iostream> <vector> <string> Functions • int main (int argc, char ∗argv[ ]) Main function to generate fractals. 4.1.1 Detailed Description A program to generate fractals using transformations. 4.1.2 Function Documentation 4.1.2.1 main() int main ( int argc, char ∗ argv[ ] ) Main function to generate fractals. Parameters argc Number of command-line arguments. argv Array of command-line arguments. Generated by Doxygen 8 File Documentation Returns 0 on success, 1 on failure. 4.2 C:/Polsl/PKK/Fraktale/Fractal_Generator/transformations.cpp File Reference Functions for reading transformations from a file, applying transformations, generating fractals, and saving fractals. #include #include #include #include #include #include "transformations.h" <fstream> <sstream> <random> <ctime> <iostream> Functions • std::vector< Transformation > read_transformations (const std::string &file_name) Reads transformations from a file. • std::pair< double, double > apply_transformation (double x, double y, const Transformation &t) Applies a transformation to a point. • std::vector< std::pair< double, double > > generate_fractal (const std::vector< Transformation > &transformations, const std::vector< double > &probabilities, int iterations) Generates a fractal using given transformations and probabilities. • void save_fractal (const std::vector< std::pair< double, double > > &points, const std::string &output_file) Saves the generated fractal points to a file. 4.2.1 Detailed Description Functions for reading transformations from a file, applying transformations, generating fractals, and saving fractals. 4.2.2 Function Documentation 4.2.2.1 apply_transformation() std::pair< double, double double const double > apply_transformation ( x, y, Transformation & t ) Applies a transformation to a point. Parameters x The x-coordinate of the point. y The y-coordinate of the point. t The transformation to be applied. Generated by Doxygen 4.2 C:/Polsl/PKK/Fraktale/Fractal_Generator/transformations.cpp File Reference Returns The transformed point as a pair of doubles. 4.2.2.2 generate_fractal() std::vector< std::pair< double, double > > generate_fractal ( const std::vector< Transformation > & transformations, const std::vector< double > & probabilities, int iterations ) Generates a fractal using given transformations and probabilities. Parameters transformations A vector of Transformation (p. ??) objects. probabilities A vector of probabilities corresponding to each transformation. iterations The number of iterations to generate the fractal. Returns A vector of points representing the generated fractal. 4.2.2.3 read_transformations() std::vector< Transformation > read_transformations ( const std::string & file_name ) Reads transformations from a file. Parameters file_name The name of the file containing transformations. Returns A vector of Transformation (p. ??) objects. 4.2.2.4 save_fractal() void save_fractal ( const std::vector< std::pair< double, double > > & points, const std::string & output_file ) Saves the generated fractal points to a file. Generated by Doxygen 9 10 File Documentation Parameters points A vector of points representing the fractal. output_file The name of the file to save the fractal points. 4.3 C:/Polsl/PKK/Fraktale/Fractal_Generator/transformations.h File Reference Functions for reading transformations from a file, applying transformations, generating fractals, and saving fractals. #include <string> #include <vector> Classes • struct Transformation Represents a 2D affine transformation. Functions • std::vector< Transformation > read_transformations (const std::string &file_name) Reads transformations from a file. • std::pair< double, double > apply_transformation (double x, double y, const Transformation &t) Applies a transformation to a point. • std::vector< std::pair< double, double > > generate_fractal (const std::vector< Transformation > &transformations, const std::vector< double > &probabilities, int iterations) Generates a fractal using given transformations and probabilities. • void save_fractal (const std::vector< std::pair< double, double > > &points, const std::string &output_file) Saves the generated fractal points to a file. 4.3.1 Detailed Description Functions for reading transformations from a file, applying transformations, generating fractals, and saving fractals. 4.3.2 Function Documentation 4.3.2.1 apply_transformation() std::pair< double, double > apply_transformation ( double x, double y, const Transformation & t ) Applies a transformation to a point. Generated by Doxygen 4.3 C:/Polsl/PKK/Fraktale/Fractal_Generator/transformations.h File Reference Parameters x The x-coordinate of the point. y The y-coordinate of the point. t The transformation to be applied. Returns The transformed point as a pair of doubles. 4.3.2.2 generate_fractal() std::vector< std::pair< double, double > > generate_fractal ( const std::vector< Transformation > & transformations, const std::vector< double > & probabilities, int iterations ) Generates a fractal using given transformations and probabilities. Parameters transformations A vector of Transformation (p. ??) objects. probabilities A vector of probabilities corresponding to each transformation. iterations The number of iterations to generate the fractal. Returns A vector of points representing the generated fractal. 4.3.2.3 read_transformations() std::vector< Transformation > read_transformations ( const std::string & file_name ) Reads transformations from a file. Parameters file_name The name of the file containing transformations. Returns A vector of Transformation (p. ??) objects. 4.3.2.4 save_fractal() void save_fractal ( Generated by Doxygen 11 12 File Documentation const std::vector< std::pair< double, double > > & points, const std::string & output_file ) Saves the generated fractal points to a file. Parameters points A vector of points representing the fractal. output_file The name of the file to save the fractal points. 4.4 transformations.h Go to the documentation of this file. 00001 00002 00003 00009 00010 00011 00015 00016 00017 00018 00024 00025 00033 00034 00042 #ifndef TRANSFORMATIONS_H #define TRANSFORMATIONS_H #include <string> #include <vector> struct Transformation { double a, b, c, d, e, f; }; std::vector<Transformation> read_transformations(const std::string& file_name); std::pair<double, double> apply_transformation(double x, double y, const Transformation& t); std::vector<std::pair<double, double» generate_fractal(const std::vector<Transformation>& transformations, const std::vector<double>& probabilities, int iterations); 00043 00049 void save_fractal(const std::vector<std::pair<double, double»& points, const std::string& output_file); 00050 00051 #endif Generated by Doxygen