Doxygen: Unterschied zwischen den Versionen

Aus Info-Theke
Zur Navigation springen Zur Suche springen
 
Zeile 28: Zeile 28:
  */
  */
/**
/**
  * Manages a 2 dimensional point.
  * Manages a vertical/horizontal rectangle.
  */
  */
class Point2D {
class Rectangle{
  /**
    /**
  * Constructor.
    * Calculates the the smallest vertical/horizontal rectangle containing all points of the given shapes.
  * @param x the x coordinate (left to right)
    * 
  * @param y the y coordinate (down to up)
    *  @param shapes An array of <em>Shape</em> instances.
  */
    * @param size If lower or equal 0: the array shapes must end with a null entry.<br>
  Point2D(double x, double y);
    *  Otherwise: the number of entries in <em>shapes</em>
}
    * @param[out] result The result is stored here.
    *  @return The parameter <em>shapes</em> (for chaining).
    */
    static Rectangle&
    combineOutlines (Shape **shapes, size_t size, Rectangle &result);
};
</syntaxhighlight>
</syntaxhighlight>

Aktuelle Version vom 6. Dezember 2022, 19:03 Uhr

Links[Bearbeiten]

Installation[Bearbeiten]

apt install doxygen doxygen-gui

Konfiguration[Bearbeiten]

cd /my/project
doxywizard

Beispiel[Bearbeiten]

/**
 * @mainpage
 * <h1>Objectives</h1>
 * <ul><li>The package polygeo offers classes for processing geometry problems with points, rectangles and polygons.
 * </li>
 * <li>There is the possibility to draw geometric objects as SVG images in a HTML file.</li>
 * </ul>
 * @file main.cpp
 * Contains the main program.
 */
/**
 * Manages a vertical/horizontal rectangle.
 */
class Rectangle{
    /**
     *  Calculates the the smallest vertical/horizontal rectangle containing all points of the given shapes.
     *  
     *  @param shapes An array of <em>Shape</em> instances.
     *  @param size If lower or equal 0: the array shapes must end with a null entry.<br>
     *  Otherwise: the number of entries in <em>shapes</em>
     *  @param[out] result The result is stored here.
     *  @return The parameter <em>shapes</em> (for chaining).
     */
    static Rectangle&
    combineOutlines (Shape **shapes, size_t size, Rectangle &result);
};