12 argc > 1 ?
argv[1] :
"tikz_render_features_example.tex";
17 std::cerr <<
"Cannot open output file: " <<
output_path <<
'\n';
22 scene.put_cartesian_axis()
23 .put_coordinate_grid(2.0, 2.0,
true)
24 .enable_native_tikz_layers(
true)
25 .enable_auto_legend(
true)
26 .set_point_radius_mm(0.75);
49 hatch.fill_color =
"orange!18";
50 hatch.pattern =
"north east lines";
51 hatch.pattern_color =
"orange!80!black";
98 std::cout <<
"Compile with: pdflatex " <<
output_path <<
'\n';
Simple dynamic array with automatic resizing and functional operations.
T & append(const T &data)
Append a copy of data
Represents a point with rectangular coordinates in a 2D plane.
A general (irregular) 2D polygon defined by a sequence of vertices.
void add_vertex(const Point &point)
Add a vertex to the polygon.
void close()
Close the polygon.
Represents a line segment between two points.
Represents a text string positioned at a 2D point.
static constexpr int Layer_Foreground
static constexpr int Layer_Background
static constexpr int Layer_Overlay
High-level scene wrapper to compose objects and algorithm visualizations.
Main namespace for Aleph-w library functions.
void put_cubic_bezier_native_in_plane(Tikz_Plane &plane, const Point &p0, const Point &p1, const Point &p2, const Point &p3, const Tikz_Style &style={}, const int layer=Tikz_Plane::Layer_Default)
Insert a cubic Bézier using native TikZ controls syntax.
Divide_Conquer_DP_Result< Cost > divide_and_conquer_partition_dp(const size_t groups, const size_t n, Transition_Cost_Fn transition_cost, const Cost inf=dp_optimization_detail::default_inf< Cost >())
Optimize partition DP using divide-and-conquer optimization.
void put_point_label_in_plane(Tikz_Plane &plane, const Point &point, const std::string &label, const std::string &placement="above", const Tikz_Style &style=make_tikz_draw_style("black"), const int layer=Tikz_Plane::Layer_Overlay)
Insert a point label with configurable placement (above, etc.).
Tikz_Style make_tikz_draw_style(const std::string &draw_color)
Create a basic draw style with a custom color.
Tikz_Style tikz_points_style(const std::string &color="black", const double opacity=-1.0)
Creates a style optimized for point clouds.
Style descriptor for TikZ primitives.
std::string tikz_style_name
Optional named style (from \tikzset)
std::string draw_color
TikZ draw color (draw=<color>)