Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Tikz_Style Struct Reference

Style descriptor for TikZ primitives. More...

#include <tikzgeom.H>

Collaboration diagram for Aleph::Tikz_Style:
[legend]

Public Attributes

std::string tikz_style_name
 Optional named style (from \tikzset)
 
std::string draw_color = "black"
 TikZ draw color (draw=<color>)
 
std::string fill_color
 TikZ fill color (fill=<color>)
 
std::string pattern
 TikZ pattern (e.g. north east lines)
 
std::string pattern_color
 TikZ pattern color (pattern color=<color>)
 
std::string text_color
 TikZ text color (text=<color>)
 
std::string text_anchor
 TikZ node anchor (anchor=<value>)
 
std::string text_placement
 TikZ placement (above, below left, ...)
 
std::string extra_options
 Raw extra options appended as-is.
 
std::string text_font_command
 e.g. \\small, \\footnotesize
 
double line_width_mm = -1.0
 line width=<value>mm when > 0
 
double opacity = -1.0
 opacity=<value> in [0,1], when >= 0
 
bool dashed = false
 Add dashed
 
bool dotted = false
 Add dotted
 
bool thick = false
 Add thick
 
bool with_arrow = false
 Add ->
 
bool fill = false
 Fill closed shapes (polygon/triangle/ellipse)
 

Detailed Description

Style descriptor for TikZ primitives.

The same style can be reused across points/segments/polygons/labels. Unsupported flags for a specific primitive are ignored (for example, with_arrow on text).

Definition at line 85 of file tikzgeom.H.

Member Data Documentation

◆ dashed

bool Aleph::Tikz_Style::dashed = false

Add dashed

Definition at line 101 of file tikzgeom.H.

Referenced by Aleph::Tikz_Plane::draw_options(), and Aleph::tikz_wire_style().

◆ dotted

bool Aleph::Tikz_Style::dotted = false

Add dotted

Definition at line 102 of file tikzgeom.H.

Referenced by Aleph::Tikz_Plane::draw_options().

◆ draw_color

◆ extra_options

std::string Aleph::Tikz_Style::extra_options

Raw extra options appended as-is.

Definition at line 95 of file tikzgeom.H.

Referenced by Aleph::Tikz_Plane::draw_options(), Aleph::Tikz_Plane::point_options(), and Aleph::Tikz_Plane::text_options().

◆ fill

bool Aleph::Tikz_Style::fill = false

◆ fill_color

◆ line_width_mm

double Aleph::Tikz_Style::line_width_mm = -1.0

line width=<value>mm when > 0

Definition at line 98 of file tikzgeom.H.

Referenced by Aleph::Tikz_Plane::draw_options().

◆ opacity

double Aleph::Tikz_Style::opacity = -1.0

◆ pattern

std::string Aleph::Tikz_Style::pattern

TikZ pattern (e.g. north east lines)

Definition at line 90 of file tikzgeom.H.

Referenced by Aleph::Tikz_Plane::draw_options(), and TEST().

◆ pattern_color

std::string Aleph::Tikz_Style::pattern_color

TikZ pattern color (pattern color=<color>)

Definition at line 91 of file tikzgeom.H.

Referenced by Aleph::Tikz_Plane::draw_options(), and TEST().

◆ text_anchor

std::string Aleph::Tikz_Style::text_anchor

TikZ node anchor (anchor=<value>)

Definition at line 93 of file tikzgeom.H.

Referenced by TEST(), and Aleph::Tikz_Plane::text_options().

◆ text_color

std::string Aleph::Tikz_Style::text_color

TikZ text color (text=<color>)

Definition at line 92 of file tikzgeom.H.

Referenced by Aleph::Tikz_Plane::text_options().

◆ text_font_command

std::string Aleph::Tikz_Style::text_font_command

e.g. \\small, \\footnotesize

Definition at line 96 of file tikzgeom.H.

Referenced by Aleph::Tikz_Plane::draw_text().

◆ text_placement

std::string Aleph::Tikz_Style::text_placement

TikZ placement (above, below left, ...)

Definition at line 94 of file tikzgeom.H.

Referenced by Aleph::put_point_label_in_plane(), TEST(), and Aleph::Tikz_Plane::text_options().

◆ thick

bool Aleph::Tikz_Style::thick = false

Add thick

Definition at line 103 of file tikzgeom.H.

Referenced by Aleph::Tikz_Plane::draw_options(), and Aleph::tikz_path_style().

◆ tikz_style_name

std::string Aleph::Tikz_Style::tikz_style_name

Optional named style (from \tikzset)

Definition at line 87 of file tikzgeom.H.

Referenced by Aleph::Tikz_Plane::draw_options(), main(), Aleph::Tikz_Plane::point_options(), TEST(), and Aleph::Tikz_Plane::text_options().

◆ with_arrow

bool Aleph::Tikz_Style::with_arrow = false

Add ->

Definition at line 104 of file tikzgeom.H.

Referenced by Aleph::Tikz_Plane::draw_options(), and Aleph::tikz_wire_style().


The documentation for this struct was generated from the following file: