OEHighlightByBallAndStick
class OEHighlightByBallAndStick : public OEHighlightBase
The OEHighlightByBallAndStick class allows the
customization of the ball and stick highlighting style that is
associated with the OEHighlightStyle_BallAndStick
constant.
See example in Figure: Example of highlighting using the
‘ball and stick’ style.
Example of highlighting using the ‘ball and stick’ style
The OEHighlightByBallAndStick class stores the following properties:
Property |
Get method |
Set method |
Corresponding namespace / class / type |
|---|---|---|---|
atom label |
boolean |
||
ball radius scale |
floating point number |
||
color |
|||
stick width scale |
floating point number |
See also
OEAddHighlightingfunctionOEHighlightStylenamespaceOEHighlightByColor class
OEHighlightByCogwheel class
OEHighlightByLasso class
OEHighlightByStick class
Highlighting chapter
Constructors
OEHighlightByBallAndStick(color: OEColor,
stickWidthScale: float = 3.0,
ballRadiusScale: float = 3.0,
monochrome: bool = True) -> OEHighlightByBallAndStick
Creates an OEHighlightByBallAndStick object with the specified parameters.
- color
The color used for highlighting. See also
OEHighlightByBallAndStick.SetColormethod.- stickWidthScale
The multiplier that can be used to increase or decrease the stick width of the highlighted bond(s). See also
OEHighlightByBallAndStick.SetStickWidthScalemethod.- ballRadiusScale
The multiplier that can be used to increase or decrease the ball radius of the highlighted atom(s). See also
OEHighlightByBallAndStick.SetBallRadiusScalemethod.- monochrome
Defines whether or not to change the color of the atom label of the highlighted atom(s). See also
OEHighlightByBallAndStick.SetAtomLabelMonochromemethod.
OEHighlightByBallAndStick(rhs: OEHighlightByBallAndStick) -> OEHighlightByBallAndStick
Copy constructor.
CreateCopy
CreateCopy() -> OEHighlightByBallAndStick
Deep copy constructor that returns a copy of the object. The memory for the returned OEHighlightByBallAndStick 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 highlighted atom(s).
See also
GetColor
GetColor() -> OEColor
See also
OEColor class
GetStickWidthScale
GetStickWidthScale() -> float
Returns the multiplier that can be used to increase or decrease the stick width 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.OEHighlightByBallAndStick(oechem.OEPinkTint)
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 highlighted atom(s).
Example (Figure: Example of using the SetBallRadiusScale method)
highlight = oedepict.OEHighlightByBallAndStick(oechem.OEPinkTint)
highlight.SetBallRadiusScale(4.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.OEPinkTint)
Example of using the SetColor method
See also
OEColor class
SetStickWidthScale
SetStickWidthScale(stickWidthScale: float) -> None
Sets the multiplier that can be used to increase or decrease the stick width of the highlighted bond(s).
Example (Figure: Example of using the SetStickWidthScale method)
highlight = oedepict.OEHighlightByBallAndStick(oechem.OEPinkTint)
highlight.SetStickWidthScale(5.0)
Example of using the SetStickWidthScale method
See also