 |
HilVert
1v2
A demo of the Hilbert Curve in SVG.
|
Go to the documentation of this file.
93 std::ostream* outSink = &std::cout
127 static const std::map<HVenm, std::string>
errTyp;
139 #endif // #ifndef HILVERT_HPP
void draw()
Output the SVG line segments for a complete HC.
void grfc()
Output a complete HC in Scaleable Vector Graphic format.
const std::string & errs(HVenm erno)
Translate an error code to a text string.
Generate SVG visualisations of the Hilbert Curve (HC).
static constexpr int segPx
static const std::map< HVenm, std::string > errTyp
std::string vers()
Generate the version number for HilVert.
static constexpr int linSegsCrd
HilVert & operator=(const HilVert &src)
void sgmnt()
Draw a path segment.
HilVert(int curvOrd=1, HVenm heading=HVenm::down, HVenm rotation=HVenm::clockwise, std::ostream *outSink=&std::cout)
void turnExe(HVenm sense)
Alter the current heading by 90 degrees.
HilVert::HVenm cmndLn(int argc, const char *argv[])
This is called by the main() function to set up the HilVert object.
void drawChld(HVenm flipRot)