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.
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
OEAddHighlighting
functionOEHighlightStyle
namespaceOEHighlightByColor class
OEHighlightByCogwheel class
OEHighlightByLasso class
OEHighlightByStick class
Highlighting chapter
Constructors¶
OEHighlightByBallAndStick(const OESystem::OEColor &c,
double stickWidthScale=3.0, double ballRadiusScale=3.0,
bool monochrome=true)
Creates an OEHighlightByBallAndStick object with the specified parameters.
- color
The color used for highlighting. See also
OEHighlightByBallAndStick.SetColor
method.- stickWidthScale
The multiplier that can be used to increase or decrease the stick width of the highlighted bond(s). See also
OEHighlightByBallAndStick.SetStickWidthScale
method.- ballRadiusScale
The multiplier that can be used to increase or decrease the ball radius of the highlighted atom(s). See also
OEHighlightByBallAndStick.SetBallRadiusScale
method.- monochrome
Defines whether or not to change the color of the atom label of the highlighted atom(s). See also
OEHighlightByBallAndStick.SetAtomLabelMonochrome
method.
OEHighlightByBallAndStick(const OEHighlightByBallAndStick &rhs)
Copy constructor.
operator=¶
OEHighlightByBallAndStick &operator=(const OEHighlightByBallAndStick &rhs)
Assignment operator.
CreateCopy¶
OEHighlightBase *CreateCopy() const
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¶
bool GetAtomLabelMonochrome() const
Returns whether or not the color of the atom label of the highlighted atom(s) is changed.
See also
GetBallRadiusScale¶
double GetBallRadiusScale() const
Returns the multiplier that can be used to increase or decrease the ball radius of the highlighted atom(s).
See also
GetStickWidthScale¶
double GetStickWidthScale() const
Returns the multiplier that can be used to increase or decrease the stick width of the highlighted bond(s).
See also
SetAtomLabelMonochrome¶
void SetAtomLabelMonochrome(bool monochrome)
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)
See also
SetBallRadiusScale¶
void SetBallRadiusScale(double ballRadiusScale)
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)
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.OEPinkTint)
See also
OEColor class
SetStickWidthScale¶
void SetStickWidthScale(double stickWidthScale)
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)
See also