Chemical Data Processing Library C++ API - Version 1.4.0
Vis/ReactionFunctions.hpp
Go to the documentation of this file.
1 /*
2  * ReactionFunctions.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_REACTIONFUNCTIONS_HPP
30 #define CDPL_VIS_REACTIONFUNCTIONS_HPP
31 
32 #include "CDPL/Vis/APIPrefix.hpp"
33 
34 
35 namespace CDPL
36 {
37 
38  namespace Chem
39  {
40 
41  class Reaction;
42  }
43 
44  namespace Vis
45  {
46 
47  class Color;
48  class SizeSpecification;
49 
55  CDPL_VIS_API unsigned int getArrowStyle(const Chem::Reaction& rxn);
56 
62  CDPL_VIS_API void setArrowStyle(Chem::Reaction& rxn, unsigned int style);
63 
70 
76 
77 
84 
90  CDPL_VIS_API void setArrowColor(Chem::Reaction& rxn, const Color& color);
91 
98 
104 
105 
112 
119 
126 
132 
133 
140 
147 
154 
160 
161 
168 
175 
182 
188 
189 
196 
203 
210 
216 
217 
224 
231 
238 
244 
245 
252 
258  CDPL_VIS_API void setComponentLayout(Chem::Reaction& rxn, unsigned int layout);
259 
266 
272 
273 
280 
287 
294 
300 
301 
308 
315 
322 
328 
329 
336 
343 
350 
356 
357 
364 
371 
378 
384 
385 
392 
399 
406 
412 
413 
420 
426  CDPL_VIS_API void setAgentAlignment(Chem::Reaction& rxn, unsigned int alignment);
427 
434 
440 
441 
447  CDPL_VIS_API unsigned int getAgentLayout(const Chem::Reaction& rxn);
448 
454  CDPL_VIS_API void setAgentLayout(Chem::Reaction& rxn, unsigned int layout);
455 
462 
468 
469 
476 
483 
490 
496 
497 
504 
511 
518 
524 
525 
532 
539 
546 
552 
553 
560 
567 
574 
580 
581 
588 
595 
602 
608 
616 
617  } // namespace Vis
618 } // namespace CDPL
619 
620 #endif // CDPL_VIS_REACTIONFUNCTIONS_HPP
Definition of the preprocessor macro CDPL_VIS_API.
#define CDPL_VIS_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Abstract base class for chemical reactions composed of role-tagged Chem::Molecule components.
Definition: Reaction.hpp:59
Specifies a color in terms of its red, green and blue components and an alpha-channel for transparenc...
Definition: Color.hpp:52
Specifies the value and type of a size attribute and defines how the value may change during processi...
Definition: SizeSpecification.hpp:45
VectorNorm2< E >::ResultType length(const VectorExpression< E > &e)
Returns the length (L2 norm) of the vector expression e (alias of norm2()).
Definition: VectorExpression.hpp:979
CDPL_VIS_API void setAgentLayoutDirection(Chem::Reaction &rxn, unsigned int dir)
Sets the value of the Vis::ReactionProperty::AGENT_LAYOUT_DIRECTION property of the reaction rxn to d...
CDPL_VIS_API bool getShowAgents(const Chem::Reaction &rxn)
Returns the value of the Vis::ReactionProperty::SHOW_AGENTS property of the reaction rxn.
CDPL_VIS_API bool hasComponentMargin(const Chem::Reaction &rxn)
Tells whether the Vis::ReactionProperty::COMPONENT_MARGIN property of the reaction rxn is set.
CDPL_VIS_API bool hasArrowLength(const Chem::Reaction &rxn)
Tells whether the Vis::ReactionProperty::ARROW_LENGTH property of the reaction rxn is set.
CDPL_VIS_API void clearAgentAlignment(Chem::Reaction &rxn)
Clears the value of the Vis::ReactionProperty::AGENT_ALIGNMENT property of the reaction rxn.
CDPL_VIS_API void clearComponentMargin(Chem::Reaction &rxn)
Clears the value of the Vis::ReactionProperty::COMPONENT_MARGIN property of the reaction rxn.
CDPL_VIS_API const SizeSpecification & getArrowHeadLength(const Chem::Reaction &rxn)
Returns the value of the Vis::ReactionProperty::ARROW_HEAD_LENGTH property of the reaction rxn.
CDPL_VIS_API void setComponentLayout(Chem::Reaction &rxn, unsigned int layout)
Sets the value of the Vis::ReactionProperty::COMPONENT_LAYOUT property of the reaction rxn to layout.
CDPL_VIS_API bool hasArrowLineWidth(const Chem::Reaction &rxn)
Tells whether the Vis::ReactionProperty::ARROW_LINE_WIDTH property of the reaction rxn is set.
CDPL_VIS_API const SizeSpecification & getArrowLineWidth(const Chem::Reaction &rxn)
Returns the value of the Vis::ReactionProperty::ARROW_LINE_WIDTH property of the reaction rxn.
CDPL_VIS_API bool getShowPlusSigns(const Chem::Reaction &rxn)
Returns the value of the Vis::ReactionProperty::SHOW_PLUS_SIGNS property of the reaction rxn.
CDPL_VIS_API void clearShowReactants(Chem::Reaction &rxn)
Clears the value of the Vis::ReactionProperty::SHOW_REACTANTS property of the reaction rxn.
CDPL_VIS_API const Color & getArrowColor(const Chem::Reaction &rxn)
Returns the value of the Vis::ReactionProperty::ARROW_COLOR property of the reaction rxn.
CDPL_VIS_API void clearAgentLayout(Chem::Reaction &rxn)
Clears the value of the Vis::ReactionProperty::AGENT_LAYOUT property of the reaction rxn.
CDPL_VIS_API void setArrowLength(Chem::Reaction &rxn, const SizeSpecification &length)
Sets the value of the Vis::ReactionProperty::ARROW_LENGTH property of the reaction rxn to length.
CDPL_VIS_API void clearPlusSignColor(Chem::Reaction &rxn)
Clears the value of the Vis::ReactionProperty::PLUS_SIGN_COLOR property of the reaction rxn.
CDPL_VIS_API unsigned int getArrowStyle(const Chem::Reaction &rxn)
Returns the value of the Vis::ReactionProperty::ARROW_STYLE property of the reaction rxn.
CDPL_VIS_API bool hasPlusSignColor(const Chem::Reaction &rxn)
Tells whether the Vis::ReactionProperty::PLUS_SIGN_COLOR property of the reaction rxn is set.
CDPL_VIS_API void clearPlusSignLineWidth(Chem::Reaction &rxn)
Clears the value of the Vis::ReactionProperty::PLUS_SIGN_LINE_WIDTH property of the reaction rxn.
CDPL_VIS_API const SizeSpecification & getPlusSignLineWidth(const Chem::Reaction &rxn)
Returns the value of the Vis::ReactionProperty::PLUS_SIGN_LINE_WIDTH property of the reaction rxn.
CDPL_VIS_API bool hasPlusSignLineWidth(const Chem::Reaction &rxn)
Tells whether the Vis::ReactionProperty::PLUS_SIGN_LINE_WIDTH property of the reaction rxn is set.
CDPL_VIS_API void prepareFor2DVisualization(Chem::MolecularGraph &molgraph)
Prepares molgraph for 2D visualization by perceiving all properties (aromaticity, hybridization,...
CDPL_VIS_API bool getShowProducts(const Chem::Reaction &rxn)
Returns the value of the Vis::ReactionProperty::SHOW_PRODUCTS property of the reaction rxn.
CDPL_VIS_API bool hasArrowStyle(const Chem::Reaction &rxn)
Tells whether the Vis::ReactionProperty::ARROW_STYLE property of the reaction rxn is set.
CDPL_VIS_API void clearShowPlusSigns(Chem::Reaction &rxn)
Clears the value of the Vis::ReactionProperty::SHOW_PLUS_SIGNS property of the reaction rxn.
CDPL_VIS_API bool hasArrowShaftWidth(const Chem::Reaction &rxn)
Tells whether the Vis::ReactionProperty::ARROW_SHAFT_WIDTH property of the reaction rxn is set.
CDPL_VIS_API void setShowProducts(Chem::Reaction &rxn, bool show)
Sets the value of the Vis::ReactionProperty::SHOW_PRODUCTS property of the reaction rxn to show.
CDPL_VIS_API bool hasShowPlusSigns(const Chem::Reaction &rxn)
Tells whether the Vis::ReactionProperty::SHOW_PLUS_SIGNS property of the reaction rxn is set.
CDPL_VIS_API bool hasArrowHeadWidth(const Chem::Reaction &rxn)
Tells whether the Vis::ReactionProperty::ARROW_HEAD_WIDTH property of the reaction rxn is set.
CDPL_VIS_API const SizeSpecification & getPlusSignSize(const Chem::Reaction &rxn)
Returns the value of the Vis::ReactionProperty::PLUS_SIGN_SIZE property of the reaction rxn.
CDPL_VIS_API const SizeSpecification & getArrowLength(const Chem::Reaction &rxn)
Returns the value of the Vis::ReactionProperty::ARROW_LENGTH property of the reaction rxn.
CDPL_VIS_API void setArrowStyle(Chem::Reaction &rxn, unsigned int style)
Sets the value of the Vis::ReactionProperty::ARROW_STYLE property of the reaction rxn to style.
CDPL_VIS_API void clearPlusSignSize(Chem::Reaction &rxn)
Clears the value of the Vis::ReactionProperty::PLUS_SIGN_SIZE property of the reaction rxn.
CDPL_VIS_API void setShowPlusSigns(Chem::Reaction &rxn, bool show)
Sets the value of the Vis::ReactionProperty::SHOW_PLUS_SIGNS property of the reaction rxn to show.
CDPL_VIS_API void setPlusSignSize(Chem::Reaction &rxn, const SizeSpecification &size)
Sets the value of the Vis::ReactionProperty::PLUS_SIGN_SIZE property of the reaction rxn to size.
CDPL_VIS_API void clearComponentLayout(Chem::Reaction &rxn)
Clears the value of the Vis::ReactionProperty::COMPONENT_LAYOUT property of the reaction rxn.
CDPL_VIS_API void clearShowProducts(Chem::Reaction &rxn)
Clears the value of the Vis::ReactionProperty::SHOW_PRODUCTS property of the reaction rxn.
CDPL_VIS_API unsigned int getAgentLayoutDirection(const Chem::Reaction &rxn)
Returns the value of the Vis::ReactionProperty::AGENT_LAYOUT_DIRECTION property of the reaction rxn.
CDPL_VIS_API void clearArrowHeadLength(Chem::Reaction &rxn)
Clears the value of the Vis::ReactionProperty::ARROW_HEAD_LENGTH property of the reaction rxn.
CDPL_VIS_API void setAgentLayout(Chem::Reaction &rxn, unsigned int layout)
Sets the value of the Vis::ReactionProperty::AGENT_LAYOUT property of the reaction rxn to layout.
CDPL_VIS_API void clearArrowStyle(Chem::Reaction &rxn)
Clears the value of the Vis::ReactionProperty::ARROW_STYLE property of the reaction rxn.
CDPL_VIS_API unsigned int getComponentLayoutDirection(const Chem::Reaction &rxn)
Returns the value of the Vis::ReactionProperty::COMPONENT_LAYOUT_DIRECTION property of the reaction r...
CDPL_VIS_API void clearArrowColor(Chem::Reaction &rxn)
Clears the value of the Vis::ReactionProperty::ARROW_COLOR property of the reaction rxn.
CDPL_VIS_API void setArrowLineWidth(Chem::Reaction &rxn, const SizeSpecification &width)
Sets the value of the Vis::ReactionProperty::ARROW_LINE_WIDTH property of the reaction rxn to width.
CDPL_VIS_API unsigned int getComponentLayout(const Chem::Reaction &rxn)
Returns the value of the Vis::ReactionProperty::COMPONENT_LAYOUT property of the reaction rxn.
CDPL_VIS_API unsigned int getAgentLayout(const Chem::Reaction &rxn)
Returns the value of the Vis::ReactionProperty::AGENT_LAYOUT property of the reaction rxn.
CDPL_VIS_API bool hasShowProducts(const Chem::Reaction &rxn)
Tells whether the Vis::ReactionProperty::SHOW_PRODUCTS property of the reaction rxn is set.
CDPL_VIS_API bool hasShowAgents(const Chem::Reaction &rxn)
Tells whether the Vis::ReactionProperty::SHOW_AGENTS property of the reaction rxn is set.
CDPL_VIS_API void setPlusSignColor(Chem::Reaction &rxn, const Color &color)
Sets the value of the Vis::ReactionProperty::PLUS_SIGN_COLOR property of the reaction rxn to color.
CDPL_VIS_API void setShowReactants(Chem::Reaction &rxn, bool show)
Sets the value of the Vis::ReactionProperty::SHOW_REACTANTS property of the reaction rxn to show.
CDPL_VIS_API void clearComponentLayoutDirection(Chem::Reaction &rxn)
Clears the value of the Vis::ReactionProperty::COMPONENT_LAYOUT_DIRECTION property of the reaction rx...
CDPL_VIS_API bool hasAgentLayout(const Chem::Reaction &rxn)
Tells whether the Vis::ReactionProperty::AGENT_LAYOUT property of the reaction rxn is set.
CDPL_VIS_API void clearArrowLineWidth(Chem::Reaction &rxn)
Clears the value of the Vis::ReactionProperty::ARROW_LINE_WIDTH property of the reaction rxn.
CDPL_VIS_API void setShowAgents(Chem::Reaction &rxn, bool show)
Sets the value of the Vis::ReactionProperty::SHOW_AGENTS property of the reaction rxn to show.
CDPL_VIS_API void clearArrowHeadWidth(Chem::Reaction &rxn)
Clears the value of the Vis::ReactionProperty::ARROW_HEAD_WIDTH property of the reaction rxn.
CDPL_VIS_API void clearArrowLength(Chem::Reaction &rxn)
Clears the value of the Vis::ReactionProperty::ARROW_LENGTH property of the reaction rxn.
CDPL_VIS_API bool hasPlusSignSize(const Chem::Reaction &rxn)
Tells whether the Vis::ReactionProperty::PLUS_SIGN_SIZE property of the reaction rxn is set.
CDPL_VIS_API void setArrowHeadWidth(Chem::Reaction &rxn, const SizeSpecification &width)
Sets the value of the Vis::ReactionProperty::ARROW_HEAD_WIDTH property of the reaction rxn to width.
CDPL_VIS_API void clearArrowShaftWidth(Chem::Reaction &rxn)
Clears the value of the Vis::ReactionProperty::ARROW_SHAFT_WIDTH property of the reaction rxn.
CDPL_VIS_API void setPlusSignLineWidth(Chem::Reaction &rxn, const SizeSpecification &width)
Sets the value of the Vis::ReactionProperty::PLUS_SIGN_LINE_WIDTH property of the reaction rxn to wid...
CDPL_VIS_API void clearShowAgents(Chem::Reaction &rxn)
Clears the value of the Vis::ReactionProperty::SHOW_AGENTS property of the reaction rxn.
CDPL_VIS_API void setComponentMargin(Chem::Reaction &rxn, const SizeSpecification &margin)
Sets the value of the Vis::ReactionProperty::COMPONENT_MARGIN property of the reaction rxn to margin.
CDPL_VIS_API const SizeSpecification & getArrowHeadWidth(const Chem::Reaction &rxn)
Returns the value of the Vis::ReactionProperty::ARROW_HEAD_WIDTH property of the reaction rxn.
CDPL_VIS_API void setAgentAlignment(Chem::Reaction &rxn, unsigned int alignment)
Sets the value of the Vis::ReactionProperty::AGENT_ALIGNMENT property of the reaction rxn to alignmen...
CDPL_VIS_API void setArrowHeadLength(Chem::Reaction &rxn, const SizeSpecification &length)
Sets the value of the Vis::ReactionProperty::ARROW_HEAD_LENGTH property of the reaction rxn to length...
CDPL_VIS_API bool hasAgentLayoutDirection(const Chem::Reaction &rxn)
Tells whether the Vis::ReactionProperty::AGENT_LAYOUT_DIRECTION property of the reaction rxn is set.
CDPL_VIS_API bool hasAgentAlignment(const Chem::Reaction &rxn)
Tells whether the Vis::ReactionProperty::AGENT_ALIGNMENT property of the reaction rxn is set.
CDPL_VIS_API const SizeSpecification & getArrowShaftWidth(const Chem::Reaction &rxn)
Returns the value of the Vis::ReactionProperty::ARROW_SHAFT_WIDTH property of the reaction rxn.
CDPL_VIS_API unsigned int getAgentAlignment(const Chem::Reaction &rxn)
Returns the value of the Vis::ReactionProperty::AGENT_ALIGNMENT property of the reaction rxn.
CDPL_VIS_API bool hasComponentLayout(const Chem::Reaction &rxn)
Tells whether the Vis::ReactionProperty::COMPONENT_LAYOUT property of the reaction rxn is set.
CDPL_VIS_API void setComponentLayoutDirection(Chem::Reaction &rxn, unsigned int dir)
Sets the value of the Vis::ReactionProperty::COMPONENT_LAYOUT_DIRECTION property of the reaction rxn ...
CDPL_VIS_API bool hasShowReactants(const Chem::Reaction &rxn)
Tells whether the Vis::ReactionProperty::SHOW_REACTANTS property of the reaction rxn is set.
CDPL_VIS_API void clearAgentLayoutDirection(Chem::Reaction &rxn)
Clears the value of the Vis::ReactionProperty::AGENT_LAYOUT_DIRECTION property of the reaction rxn.
CDPL_VIS_API const Color & getPlusSignColor(const Chem::Reaction &rxn)
Returns the value of the Vis::ReactionProperty::PLUS_SIGN_COLOR property of the reaction rxn.
CDPL_VIS_API bool hasArrowHeadLength(const Chem::Reaction &rxn)
Tells whether the Vis::ReactionProperty::ARROW_HEAD_LENGTH property of the reaction rxn is set.
CDPL_VIS_API void setArrowColor(Chem::Reaction &rxn, const Color &color)
Sets the value of the Vis::ReactionProperty::ARROW_COLOR property of the reaction rxn to color.
CDPL_VIS_API bool getShowReactants(const Chem::Reaction &rxn)
Returns the value of the Vis::ReactionProperty::SHOW_REACTANTS property of the reaction rxn.
CDPL_VIS_API bool hasComponentLayoutDirection(const Chem::Reaction &rxn)
Tells whether the Vis::ReactionProperty::COMPONENT_LAYOUT_DIRECTION property of the reaction rxn is s...
CDPL_VIS_API bool hasArrowColor(const Chem::Reaction &rxn)
Tells whether the Vis::ReactionProperty::ARROW_COLOR property of the reaction rxn is set.
CDPL_VIS_API const SizeSpecification & getComponentMargin(const Chem::Reaction &rxn)
Returns the value of the Vis::ReactionProperty::COMPONENT_MARGIN property of the reaction rxn.
CDPL_VIS_API void setArrowShaftWidth(Chem::Reaction &rxn, const SizeSpecification &width)
Sets the value of the Vis::ReactionProperty::ARROW_SHAFT_WIDTH property of the reaction rxn to width.
The namespace of the Chemical Data Processing Library.