Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
ogdf::GraphIO::SVGSettings Class Reference

Condensed settings for drawing SVGs. More...

#include <ogdf/fileformats/GraphIO.h>

Public Member Functions

 SVGSettings ()
 
bool bezierInterpolation () const
 Returns whether Bézier-interpolation for curved edges is enabled.
 
void bezierInterpolation (bool enable)
 Enables or disables Bézier-interpolation.
 
double curviness () const
 Returns the curviness of the edges (value ranges from 0 to 1).
 
void curviness (double value)
 Sets the curviness of all edges (value ranges from 0 to 1).
 
const string & fontColor () const
 Returns the default font color.
 
void fontColor (const string &fc)
 Sets the default font color to fc.
 
const string & fontFamily () const
 Returns the default font family.
 
void fontFamily (const string &fm)
 Sets the default font family to fm.
 
int fontSize () const
 Returns the default font size (font height in pixels).
 
void fontSize (int fs)
 Sets the default font size (font height in pixels) to fs.
 
const string & height () const
 Returns the default height.
 
void height (const string &height)
 Sets the height.
 
double margin () const
 Returns the size of the margin around the drawing.
 
void margin (double m)
 Sets the size of the margin around the drawing to m.
 
const string & width () const
 Returns the default width.
 
void width (const string &width)
 Sets the width.
 

Private Attributes

bool m_bezierInterpolation
 
double m_curviness
 
string m_fontColor
 
string m_fontFamily
 
int m_fontSize
 
string m_height
 
double m_margin
 
string m_width
 

Detailed Description

Condensed settings for drawing SVGs.

Definition at line 116 of file GraphIO.h.

Constructor & Destructor Documentation

◆ SVGSettings()

ogdf::GraphIO::SVGSettings::SVGSettings ( )

Member Function Documentation

◆ bezierInterpolation() [1/2]

bool ogdf::GraphIO::SVGSettings::bezierInterpolation ( ) const
inline

Returns whether Bézier-interpolation for curved edges is enabled.

Definition at line 130 of file GraphIO.h.

◆ bezierInterpolation() [2/2]

void ogdf::GraphIO::SVGSettings::bezierInterpolation ( bool  enable)
inline

Enables or disables Bézier-interpolation.

Definition at line 165 of file GraphIO.h.

◆ curviness() [1/2]

double ogdf::GraphIO::SVGSettings::curviness ( ) const
inline

Returns the curviness of the edges (value ranges from 0 to 1).

Definition at line 136 of file GraphIO.h.

◆ curviness() [2/2]

void ogdf::GraphIO::SVGSettings::curviness ( double  value)
inline

Sets the curviness of all edges (value ranges from 0 to 1).

Definition at line 157 of file GraphIO.h.

◆ fontColor() [1/2]

const string & ogdf::GraphIO::SVGSettings::fontColor ( ) const
inline

Returns the default font color.

Definition at line 142 of file GraphIO.h.

◆ fontColor() [2/2]

void ogdf::GraphIO::SVGSettings::fontColor ( const string &  fc)
inline

Sets the default font color to fc.

Definition at line 171 of file GraphIO.h.

◆ fontFamily() [1/2]

const string & ogdf::GraphIO::SVGSettings::fontFamily ( ) const
inline

Returns the default font family.

Definition at line 145 of file GraphIO.h.

◆ fontFamily() [2/2]

void ogdf::GraphIO::SVGSettings::fontFamily ( const string &  fm)
inline

Sets the default font family to fm.

Definition at line 174 of file GraphIO.h.

◆ fontSize() [1/2]

int ogdf::GraphIO::SVGSettings::fontSize ( ) const
inline

Returns the default font size (font height in pixels).

Definition at line 139 of file GraphIO.h.

◆ fontSize() [2/2]

void ogdf::GraphIO::SVGSettings::fontSize ( int  fs)
inline

Sets the default font size (font height in pixels) to fs.

Definition at line 168 of file GraphIO.h.

◆ height() [1/2]

const string & ogdf::GraphIO::SVGSettings::height ( ) const
inline

Returns the default height.

Definition at line 151 of file GraphIO.h.

◆ height() [2/2]

void ogdf::GraphIO::SVGSettings::height ( const string &  height)
inline

Sets the height.

The value should include a unit of measure (e.g., percentage for relative height or pixel values).

Definition at line 186 of file GraphIO.h.

◆ margin() [1/2]

double ogdf::GraphIO::SVGSettings::margin ( ) const
inline

Returns the size of the margin around the drawing.

Definition at line 133 of file GraphIO.h.

◆ margin() [2/2]

void ogdf::GraphIO::SVGSettings::margin ( double  m)
inline

Sets the size of the margin around the drawing to m.

Definition at line 154 of file GraphIO.h.

◆ width() [1/2]

const string & ogdf::GraphIO::SVGSettings::width ( ) const
inline

Returns the default width.

Definition at line 148 of file GraphIO.h.

◆ width() [2/2]

void ogdf::GraphIO::SVGSettings::width ( const string &  width)
inline

Sets the width.

The value should include a unit of measure (e.g., percentage for relative width or pixel values).

Definition at line 180 of file GraphIO.h.

Member Data Documentation

◆ m_bezierInterpolation

bool ogdf::GraphIO::SVGSettings::m_bezierInterpolation
private

Definition at line 120 of file GraphIO.h.

◆ m_curviness

double ogdf::GraphIO::SVGSettings::m_curviness
private

Definition at line 119 of file GraphIO.h.

◆ m_fontColor

string ogdf::GraphIO::SVGSettings::m_fontColor
private

Definition at line 121 of file GraphIO.h.

◆ m_fontFamily

string ogdf::GraphIO::SVGSettings::m_fontFamily
private

Definition at line 122 of file GraphIO.h.

◆ m_fontSize

int ogdf::GraphIO::SVGSettings::m_fontSize
private

Definition at line 118 of file GraphIO.h.

◆ m_height

string ogdf::GraphIO::SVGSettings::m_height
private

Definition at line 124 of file GraphIO.h.

◆ m_margin

double ogdf::GraphIO::SVGSettings::m_margin
private

Definition at line 117 of file GraphIO.h.

◆ m_width

string ogdf::GraphIO::SVGSettings::m_width
private

Definition at line 123 of file GraphIO.h.


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