OEHighlightByColor
class OEHighlightByColor : public OEHighlightBase
The OEHighlightByColor class allows the
customization of the color highlighting style that is
associated with the OEHighlightStyle.Color
constant.
See example in Figure: Example of highlighting using the
‘color’ style.
Example of highlighting using the ‘color’ style
The OEHighlightByColor class stores the following properties:
Property |
Get method |
Set method |
Corresponding namespace / class / type |
|---|---|---|---|
external highlight |
boolean |
||
color |
|||
line width scale |
floating point |
See also
OEAddHighlightingfunctionOEHighlightStylenamespaceOEHighlightByCogwheel class
OEHighlightByLasso class
OEHighlightByStick class
Highlighting chapter
Constructors
OEHighlightByColor(const OESystem::OEColor &color, double lineWidthScale=1.5,
bool atomExternalHighlight = false)
Creates an OEHighlightByColor object with the specified parameters.
- color
The color used for highlighting. See also
OEHighlightByColor.SetColormethod.- lineWidthScale
The multiplier that can be used to increase or decrease the line width of highlighted bond(s). See also
OEHighlightByColor.SetLineWidthScalemethod.- atomExternalHighlight
Sets whether atom highlights are extended to bonds not being highlighted. See also
OEHighlightByColor.SetAtomExternalHighlightmethod.
OEHighlightByColor(const OEHighlightByColor &rhs)
Copy constructor.
operator=
OEHighlightByColor &operator=(const OEHighlightByColor &rhs)
Assignment operator.
CreateCopy
OEHighlightBase *CreateCopy() const
Deep copy constructor that returns a copy of the object. The memory for the returned OEHighlightByColor object is dynamically allocated and owned by the caller.
GetAtomExternalHighlight
bool GetAtomExternalHighlight() const
Returns whether external atom highlight is applied.
See also
GetColor
const OESystem::OEColor &GetColor() const
Returns the color of the highlighting.
See also
OEHighlightByColor.GetColormethodOEColor class
GetLineWidthScale
double GetLineWidthScale() const
Returns the multiplier that can be used to increase or decrease the line width of highlighted bond(s).
See also
SetAtomExternalHighlight
void SetAtomExternalHighlight(bool set)
Sets whether atom highlights are extended to bonds not being highlighted.
Example (Figure: Example of using the SetAtomExternalHighlight method)
OEHighlightByColor highlight = new OEHighlightByColor(OEChem.OELightOrange);
highlight.SetAtomExternalHighlight(true);
Example of using the SetAtomExternalHighlight method
See also
SetColor
void SetColor(const OESystem::OEColor &color)
Sets the color of the highlighting.
Example (Figure: Example of using the SetColor method)
highlight.SetColor(OEChem.OEDarkRed);
Example of using the SetColor method
See also
OEHighlightByColor.GetColormethodOEColor class
SetLineWidthScale
void SetLineWidthScale(double lineWidthScale)
Sets the multiplier that can be used to increase or decrease the line width of highlighted bond(s).
Example (Figure: Example of using the SetLineWidthScale method)
OEHighlightByColor highlight = new OEHighlightByColor(OEChem.OEDarkRed);
highlight.SetLineWidthScale(3.0);
Example of using the SetLineWidthScale method
See also