Open
Graph Drawing
Framework

 v. 2022.02 (Dogwood)
 

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. More...
 
void bezierInterpolation (bool enable)
 Enables or disables Bézier-interpolation. More...
 
double curviness () const
 Returns the curviness of the edges (value ranges from 0 to 1). More...
 
void curviness (double value)
 Sets the curviness of all edges (value ranges from 0 to 1). More...
 
const string & fontColor () const
 Returns the default font color. More...
 
void fontColor (const string &fc)
 Sets the default font color to fc. More...
 
const string & fontFamily () const
 Returns the default font family. More...
 
void fontFamily (const string &fm)
 Sets the default font family to fm. More...
 
int fontSize () const
 Returns the default font size (font height in pixels). More...
 
void fontSize (int fs)
 Sets the default font size (font height in pixels) to fs. More...
 
const string & height () const
 Returns the default height. More...
 
void height (const string &height)
 Sets the height. More...
 
double margin () const
 Returns the size of the margin around the drawing. More...
 
void margin (double m)
 Sets the size of the margin around the drawing to m. More...
 
const string & width () const
 Returns the default width. More...
 
void width (const string &width)
 Sets the width. More...
 

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 119 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 134 of file GraphIO.h.

◆ bezierInterpolation() [2/2]

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

Enables or disables Bézier-interpolation.

Definition at line 169 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 140 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 161 of file GraphIO.h.

◆ fontColor() [1/2]

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

Returns the default font color.

Definition at line 146 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 175 of file GraphIO.h.

◆ fontFamily() [1/2]

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

Returns the default font family.

Definition at line 149 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 178 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 143 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 172 of file GraphIO.h.

◆ height() [1/2]

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

Returns the default height.

Definition at line 155 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 190 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 137 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 158 of file GraphIO.h.

◆ width() [1/2]

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

Returns the default width.

Definition at line 152 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 184 of file GraphIO.h.

Member Data Documentation

◆ m_bezierInterpolation

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

Definition at line 124 of file GraphIO.h.

◆ m_curviness

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

Definition at line 123 of file GraphIO.h.

◆ m_fontColor

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

Definition at line 125 of file GraphIO.h.

◆ m_fontFamily

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

Definition at line 126 of file GraphIO.h.

◆ m_fontSize

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

Definition at line 122 of file GraphIO.h.

◆ m_height

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

Definition at line 128 of file GraphIO.h.

◆ m_margin

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

Definition at line 121 of file GraphIO.h.

◆ m_width

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

Definition at line 127 of file GraphIO.h.


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