Chemical Data Processing Library C++ API - Version 1.1.1
Vis/BondFunctions.hpp
Go to the documentation of this file.
1 /*
2  * BondFunctions.hpp
3  *
4  * This file is part of the Chemical Data Processing Toolkit
5  *
6  * Copyright (C) 2003 Thomas Seidel <thomas.seidel@univie.ac.at>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this library; see the file COPYING. If not, write to
20  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23 
29 #ifndef CDPL_VIS_BONDFUNCTIONS_HPP
30 #define CDPL_VIS_BONDFUNCTIONS_HPP
31 
32 #include "CDPL/Vis/APIPrefix.hpp"
33 
34 
35 namespace CDPL
36 {
37 
38  namespace Chem
39  {
40 
41  class Bond;
42  }
43 
44  namespace Vis
45  {
46 
47  class Color;
48  class Font;
49  class SizeSpecification;
50 
51  CDPL_VIS_API const Color& getColor(const Chem::Bond& bond);
52 
53  CDPL_VIS_API void setColor(Chem::Bond& bond, const Color& color);
54 
55  CDPL_VIS_API bool hasColor(const Chem::Bond& bond);
56 
58 
59 
61 
63 
65 
67 
68 
70 
72 
74 
76 
77 
79 
81 
83 
85 
86 
88 
90 
92 
94 
95 
97 
99 
101 
103 
104 
106 
108 
110 
112 
113 
115 
117 
119 
121 
122 
124 
126 
128 
130 
131 
133 
134  CDPL_VIS_API void setLabelFont(Chem::Bond& bond, const Font& font);
135 
137 
139 
140 
142 
144 
146 
148 
149 
151 
153 
155 
157 
158 
160 
162 
164 
166 
167 
169 
171 
173 
175  } // namespace Vis
176 } // namespace CDPL
177 
178 #endif // CDPL_VIS_BONDFUNCTIONS_HPP
CDPL::Vis::SizeSpecification
Specifies the value and type of a size attribute and defines how the value may change during processi...
Definition: SizeSpecification.hpp:45
CDPL::Vis::getReactionCenterLineSpacing
CDPL_VIS_API const SizeSpecification & getReactionCenterLineSpacing(const Chem::Bond &bond)
CDPL::Vis::setReactionCenterLineSpacing
CDPL_VIS_API void setReactionCenterLineSpacing(Chem::Bond &bond, const SizeSpecification &spacing)
CDPL::Vis::getStereoBondHashSpacing
CDPL_VIS_API const SizeSpecification & getStereoBondHashSpacing(const Chem::Bond &bond)
CDPL::Vis::clearLineSpacing
CDPL_VIS_API void clearLineSpacing(Chem::Bond &bond)
CDPL::Vis::setLabelFont
CDPL_VIS_API void setLabelFont(Chem::Atom &atom, const Font &font)
CDPL::Vis::setTripleBondTrimLength
CDPL_VIS_API void setTripleBondTrimLength(Chem::Bond &bond, const SizeSpecification &length)
CDPL::Vis::getLabelFont
CDPL_VIS_API const Font & getLabelFont(const Chem::Atom &atom)
CDPL::Chem::Bond
Bond.
Definition: Bond.hpp:50
CDPL::Vis::clearReactionCenterLineSpacing
CDPL_VIS_API void clearReactionCenterLineSpacing(Chem::Bond &bond)
CDPL::Vis::setDoubleBondTrimLength
CDPL_VIS_API void setDoubleBondTrimLength(Chem::Bond &bond, const SizeSpecification &length)
CDPL::Vis::getDoubleBondTrimLength
CDPL_VIS_API const SizeSpecification & getDoubleBondTrimLength(const Chem::Bond &bond)
CDPL::Vis::setReactionCenterLineLength
CDPL_VIS_API void setReactionCenterLineLength(Chem::Bond &bond, const SizeSpecification &length)
CDPL::Vis::getColor
CDPL_VIS_API const Color & getColor(const Chem::Atom &atom)
CDPL::Vis::hasDoubleBondTrimLength
CDPL_VIS_API bool hasDoubleBondTrimLength(const Chem::Bond &bond)
CDPL::Vis::hasLabelMargin
CDPL_VIS_API bool hasLabelMargin(const Chem::Atom &atom)
CDPL::Vis::setConfigurationLabelFont
CDPL_VIS_API void setConfigurationLabelFont(Chem::Atom &atom, const Font &font)
CDPL::Vis::getStereoBondWedgeWidth
CDPL_VIS_API const SizeSpecification & getStereoBondWedgeWidth(const Chem::Bond &bond)
CDPL::Vis::hasReactionCenterLineLength
CDPL_VIS_API bool hasReactionCenterLineLength(const Chem::Bond &bond)
CDPL::Vis::Font
Specifies a font for drawing text.
Definition: Font.hpp:54
CDPL::Vis::clearColor
CDPL_VIS_API void clearColor(Chem::Atom &atom)
CDPL::Vis::hasLineSpacing
CDPL_VIS_API bool hasLineSpacing(const Chem::Bond &bond)
CDPL::Vis::getLabelSize
CDPL_VIS_API const SizeSpecification & getLabelSize(const Chem::Atom &atom)
CDPL_VIS_API
#define CDPL_VIS_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
CDPL::Vis::getTripleBondTrimLength
CDPL_VIS_API const SizeSpecification & getTripleBondTrimLength(const Chem::Bond &bond)
CDPL::Vis::hasLabelSize
CDPL_VIS_API bool hasLabelSize(const Chem::Atom &atom)
CDPL::Vis::getConfigurationLabelSize
CDPL_VIS_API const SizeSpecification & getConfigurationLabelSize(const Chem::Atom &atom)
CDPL::Vis::hasConfigurationLabelFont
CDPL_VIS_API bool hasConfigurationLabelFont(const Chem::Atom &atom)
CDPL::Vis::setColor
CDPL_VIS_API void setColor(Chem::Atom &atom, const Color &color)
CDPL::Vis::clearConfigurationLabelSize
CDPL_VIS_API void clearConfigurationLabelSize(Chem::Atom &atom)
CDPL::Vis::setLabelMargin
CDPL_VIS_API void setLabelMargin(Chem::Atom &atom, const SizeSpecification &margin)
CDPL::Vis::clearLabelMargin
CDPL_VIS_API void clearLabelMargin(Chem::Atom &atom)
CDPL::Vis::hasLineWidth
CDPL_VIS_API bool hasLineWidth(const Chem::Bond &bond)
CDPL::Vis::clearStereoBondWedgeWidth
CDPL_VIS_API void clearStereoBondWedgeWidth(Chem::Bond &bond)
CDPL::Vis::hasReactionCenterLineSpacing
CDPL_VIS_API bool hasReactionCenterLineSpacing(const Chem::Bond &bond)
CDPL::Vis::setStereoBondHashSpacing
CDPL_VIS_API void setStereoBondHashSpacing(Chem::Bond &bond, const SizeSpecification &spacing)
CDPL::Vis::setLabelSize
CDPL_VIS_API void setLabelSize(Chem::Atom &atom, const SizeSpecification &size)
CDPL::Vis::clearReactionCenterLineLength
CDPL_VIS_API void clearReactionCenterLineLength(Chem::Bond &bond)
CDPL
The namespace of the Chemical Data Processing Library.
CDPL::Vis::setConfigurationLabelSize
CDPL_VIS_API void setConfigurationLabelSize(Chem::Atom &atom, const SizeSpecification &size)
CDPL::Vis::setLineWidth
CDPL_VIS_API void setLineWidth(Chem::Bond &bond, const SizeSpecification &width)
CDPL::Vis::getConfigurationLabelFont
CDPL_VIS_API const Font & getConfigurationLabelFont(const Chem::Atom &atom)
CDPL::Vis::setStereoBondWedgeWidth
CDPL_VIS_API void setStereoBondWedgeWidth(Chem::Bond &bond, const SizeSpecification &width)
CDPL::Vis::getLineSpacing
CDPL_VIS_API const SizeSpecification & getLineSpacing(const Chem::Bond &bond)
CDPL::Vis::hasStereoBondHashSpacing
CDPL_VIS_API bool hasStereoBondHashSpacing(const Chem::Bond &bond)
CDPL::Vis::setLineSpacing
CDPL_VIS_API void setLineSpacing(Chem::Bond &bond, const SizeSpecification &spacing)
CDPL::Vis::clearStereoBondHashSpacing
CDPL_VIS_API void clearStereoBondHashSpacing(Chem::Bond &bond)
CDPL::Vis::clearLabelFont
CDPL_VIS_API void clearLabelFont(Chem::Atom &atom)
CDPL::Vis::getLabelMargin
CDPL_VIS_API const SizeSpecification & getLabelMargin(const Chem::Atom &atom)
APIPrefix.hpp
Definition of the preprocessor macro CDPL_VIS_API.
CDPL::Vis::clearLabelSize
CDPL_VIS_API void clearLabelSize(Chem::Atom &atom)
CDPL::Vis::getLineWidth
CDPL_VIS_API const SizeSpecification & getLineWidth(const Chem::Bond &bond)
CDPL::Vis::clearLineWidth
CDPL_VIS_API void clearLineWidth(Chem::Bond &bond)
CDPL::Vis::hasColor
CDPL_VIS_API bool hasColor(const Chem::Atom &atom)
CDPL::Vis::clearConfigurationLabelFont
CDPL_VIS_API void clearConfigurationLabelFont(Chem::Atom &atom)
CDPL::Vis::hasLabelFont
CDPL_VIS_API bool hasLabelFont(const Chem::Atom &atom)
CDPL::Vis::clearDoubleBondTrimLength
CDPL_VIS_API void clearDoubleBondTrimLength(Chem::Bond &bond)
CDPL::Vis::getReactionCenterLineLength
CDPL_VIS_API const SizeSpecification & getReactionCenterLineLength(const Chem::Bond &bond)
CDPL::Vis::Color
Specifies a color in terms of its red, green and blue components and an alpha-channel for transparenc...
Definition: Color.hpp:52
CDPL::Vis::hasStereoBondWedgeWidth
CDPL_VIS_API bool hasStereoBondWedgeWidth(const Chem::Bond &bond)
CDPL::Vis::hasConfigurationLabelSize
CDPL_VIS_API bool hasConfigurationLabelSize(const Chem::Atom &atom)
CDPL::Vis::hasTripleBondTrimLength
CDPL_VIS_API bool hasTripleBondTrimLength(const Chem::Bond &bond)
CDPL::Math::length
VectorNorm2< E >::ResultType length(const VectorExpression< E > &e)
Definition: VectorExpression.hpp:553
CDPL::Vis::clearTripleBondTrimLength
CDPL_VIS_API void clearTripleBondTrimLength(Chem::Bond &bond)