OEHighlightByCogwheel
class OEHighlightByCogwheel : public OEHighlightBase
The OEHighlightByCogwheel class allows the
customization of the cogwheel highlighting style that is
associated with the OEHighlightStyle_Cogwheel
constant.
See example in Figure: Example of highlighting using the ‘cogwheel’ style.
Example of highlighting using the color style
The OEHighlightByCogwheel class stores the following properties:
Property |
Get method |
Set method |
Corresponding namespace / class / type |
|---|---|---|---|
atom label |
boolean |
||
ball radius scale |
floating point number |
||
color |
|||
inner contour |
boolean |
||
line width scale |
floating point number |
||
stick width scale |
floating point number |
See also
OEAddHighlightingfunctionOEHighlightStylenamespaceOEHighlightByColor class
OEHighlightByLasso class
OEHighlightByStick class
Highlighting chapter
Constructors
OEHighlightByCogwheel(color: OEColor, lineWidthScale: float = 1.5,
stickWidthScale: float = 2.0,
ballRadiusScale: float = 2.0,
innerContour: bool = True,
monochrome: bool = True) -> OEHighlightByCogwheel
Creates an OEHighlightByCogwheel object with the specified parameters.
- color
The color used for highlighting. See also
OEHighlightByCogwheel.SetColormethod.- lineWidthScale
The multiplier that can be used to increase or decrease the line width of the ‘cogwheel’. See also
OEHighlightByCogwheel.SetLineWidthScalemethod.- stickWidthScale
The multiplier that can be used to increase or decrease the stick width of the ‘cogwheel’ of the highlighted bond(s). See also
OEHighlightByCogwheel.SetStickWidthScalemethod.- ballRadiusScale
The multiplier that can be used to increase or decrease the ball radius of the ‘cogwheel’ of the highlighted atom(s). See also
OEHighlightByCogwheel.SetBallRadiusScalemethod.- innerContour
Defines whether the inner contour of the ‘cogwheel’ is drawn or committed. See also
OEHighlightByCogwheel.SetInnerContourmethod.- monochrome
Defines whether or not to change the color of the atom label of the highlighted atom(s). See also
OEHighlightByCogwheel.SetAtomLabelMonochromemethod.
OEHighlightByCogwheel(rhs: OEHighlightByCogwheel) -> OEHighlightByCogwheel
Copy constructor.
CreateCopy
CreateCopy() -> OEHighlightByCogwheel
Deep copy constructor that returns a copy of the object. The memory for the returned OEHighlightByCogwheel object is dynamically allocated and owned by the caller.
GetAtomLabelMonochrome
GetAtomLabelMonochrome() -> bool
Returns whether or not the color of the atom label of the highlighted atom(s) is changed.
See also
GetBallRadiusScale
GetBallRadiusScale() -> float
Returns the multiplier that can be used to increase or decrease the ball radius of the ‘cogwheel’ of the highlighted atom(s).
See also
GetColor
GetColor() -> OEColor
Returns the color of the highlighting.
See also
OEColor class
GetInnerContour
GetInnerContour() -> bool
Returns whether the inner contour of the ‘cogwheel’ is drawn or committed.
See also
GetLineWidthScale
GetLineWidthScale() -> float
Returns the multiplier that can be used to increase or decrease the line width of the ‘cogwheel’
See also
GetStickWidthScale
GetStickWidthScale() -> float
Returns the multiplier that can be used to increase or decrease the stick width of the ‘cogwheel’ of the highlighted bond(s).
See also
SetAtomLabelMonochrome
SetAtomLabelMonochrome(monochrome: bool) -> None
Sets whether or not to change the color of the atom label of the highlighted atom(s).
Example (Figure: Example of using the SetAtomLabelMonochrome method)
highlight = oedepict.OEHighlightByCogwheel(oechem.OEDarkPurple)
highlight.SetAtomLabelMonochrome(False)
Example of using the SetAtomLabelMonochrome method
See also
SetBallRadiusScale
SetBallRadiusScale(ballRadiusScale: float) -> None
Sets the multiplier that can be used to increase or decrease the ball radius of the ‘cogwheel’ of the highlighted atom(s).
Example (Figure: Example of using the SetBallRadiusScale method)
highlight = oedepict.OEHighlightByCogwheel(oechem.OEDarkPurple)
highlight.SetBallRadiusScale(5.0)
Example of using the SetBallRadiusScale method
See also
SetColor
SetColor(color: OEColor) -> None
Sets the color of the highlighting.
Example (Figure: Example of using the SetColor method)
highlight.SetColor(oechem.OEDarkPurple)
Example of using the SetColor method
See also
OEColor class
SetInnerContour
SetInnerContour(innerContour: bool) -> None
Sets whether the inner contour of the ‘cogwheel’ is drawn or omitted.
Example (Figure: Example of using the SetInnerContour method)
highlight = oedepict.OEHighlightByCogwheel(oechem.OEDarkPurple)
highlight.SetInnerContour(False)
Example of using the SetInnerContour method
See also
SetLineWidthScale
SetLineWidthScale(lineWidthScale: float) -> None
Sets the multiplier that can be used to increase or decrease the line width of the ‘cogwheel’
Example (Figure: Example of using the SetLineWidthScale method)
highlight = oedepict.OEHighlightByCogwheel(oechem.OEDarkPurple)
highlight.SetLineWidthScale(3.0)
Example of using the SetLineWidthScale method
See also
SetStickWidthScale
SetStickWidthScale(stickWidthScale: float) -> None
Sets the multiplier that can be used to increase or decrease the stick width of the ‘cogwheel’ of the highlighted bond(s).
Example (Figure: Example of using the SetStickWidthScale method)
highlight = oedepict.OEHighlightByCogwheel(oechem.OEDarkPurple)
highlight.SetStickWidthScale(5.0)
Example of using the SetStickWidthScale method
See also