RDKit: DrawTextFTSVG.h Source File

| RDKit Open-source cheminformatics and machine learning.

Loading...
Searching...
No Matches
DrawTextFTSVG.h
Go to the documentation of this file.
1///
2// Copyright (C) 2020-2022 David Cosgrove and other RDKit contributors
3//
4// @@ All Rights Reserved @@
5// This file is part of the RDKit.
6// The contents are covered by the terms of the BSD license
7// which is included in the file license.txt, found at the root
8// of the RDKit source tree.
9//
10// Original author: David Cosgrove (CozChemIx).
11//
12
13#ifndef RDKIT_DRAWTEXTFTSVG_H
14#define RDKIT_DRAWTEXTFTSVG_H
15
16#include <iosfwd>
17
18#include <GraphMol/MolDraw2D/DrawTextFT.h>
19
20namespace RDKit {
21
22class MolDraw2DSVG;
23
24namespace MolDraw2D_detail {
25
26// ****************************************************************************
27 class DrawTextFTSVG : public DrawTextFT {
28 public:
29 DrawTextFTSVG(double max_fnt_sz, double min_fnt_sz,
30 const std::string &font_file, std::ostream &oss,
31 std::string &d_act_class);
32 DrawTextFTSVG(const DrawTextFTSVG &) = delete;
33 DrawTextFTSVG(DrawTextFTSVG &&) = delete;
34 DrawTextFTSVG &operator=(const DrawTextFTSVG &) = delete;
35 DrawTextFTSVG &operator=(DrawTextFTSVG &&) = delete;
36
37 int MoveToFunctionImpl(const FT_Vector *to) override;
38 int LineToFunctionImpl(const FT_Vector *to) override;
39 int ConicToFunctionImpl(const FT_Vector *control,
40 const FT_Vector *to) override;
41 int CubicToFunctionImpl(const FT_Vector *controlOne,
42 const FT_Vector *controlTwo,
43 const FT_Vector *to) override;
44
45 // adds x_trans_ and y_trans_ to coords returns x advance distance
46 double extractOutline() override;
47
48 std::ostream &oss_;
49 std::string &d_active_class_;
50};
51
52} // namespace MolDraw2D_detail
53} // namespace RDKit
54
55#endif // RDKIT_DRAWTEXTFTSVG_H
DrawTextFT.h
RDKit::MolDraw2DSVG
Definition MolDraw2DSVG.h:26
RDKit::MolDraw2D_detail::DrawTextFTSVG::CubicToFunctionImpl
int CubicToFunctionImpl(const FT_Vector *controlOne, const FT_Vector *controlTwo, const FT_Vector *to) override
RDKit::MolDraw2D_detail::DrawTextFTSVG::ConicToFunctionImpl
int ConicToFunctionImpl(const FT_Vector *control, const FT_Vector *to) override
RDKit::MolDraw2D_detail::DrawTextFTSVG::extractOutline
double extractOutline() override
RDKit::MolDraw2D_detail::DrawTextFTSVG::operator=
DrawTextFTSVG & operator=(DrawTextFTSVG &&)=delete
RDKit::MolDraw2D_detail::DrawTextFTSVG::d_active_class_
std::string & d_active_class_
Definition DrawTextFTSVG.h:49
RDKit::MolDraw2D_detail::DrawTextFTSVG::LineToFunctionImpl
int LineToFunctionImpl(const FT_Vector *to) override
RDKit::MolDraw2D_detail::DrawTextFTSVG::DrawTextFTSVG
DrawTextFTSVG(const DrawTextFTSVG &)=delete
RDKit::MolDraw2D_detail::DrawTextFTSVG::MoveToFunctionImpl
int MoveToFunctionImpl(const FT_Vector *to) override
RDKit::MolDraw2D_detail::DrawTextFTSVG::operator=
DrawTextFTSVG & operator=(const DrawTextFTSVG &)=delete
RDKit::MolDraw2D_detail::DrawTextFTSVG::DrawTextFTSVG
DrawTextFTSVG(DrawTextFTSVG &&)=delete
RDKit::MolDraw2D_detail::DrawTextFTSVG::DrawTextFTSVG
DrawTextFTSVG(double max_fnt_sz, double min_fnt_sz, const std::string &font_file, std::ostream &oss, std::string &d_act_class)
RDKit::MolDraw2D_detail::DrawTextFTSVG::oss_
std::ostream & oss_
Definition DrawTextFTSVG.h:48
RDKit::MolDraw2D_detail::DrawTextFT::DrawTextFT
DrawTextFT(double max_fnt_sz, double min_fnt_sz, const std::string &font_file)
RDKit::MolDraw2D_detail
Definition AtomSymbol.h:30
RDKit
Std stuff.
Definition Abbreviations.h:19