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.

../../_images/OEHighlightStyle_Cogwheel.png

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

GetAtomLabelMonochrome

SetAtomLabelMonochrome

boolean

ball radius scale

GetBallRadiusScale

SetBallRadiusScale

floating point number

color

GetColor

SetColor

OEColor

inner contour

GetInnerContour

SetInnerContour

boolean

line width scale

GetLineWidthScale

SetLineWidthScale

floating point number

stick width scale

GetStickWidthScale

SetStickWidthScale

floating point number

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.SetColor method.

lineWidthScale

The multiplier that can be used to increase or decrease the line width of the ‘cogwheel’. See also OEHighlightByCogwheel.SetLineWidthScale method.

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.SetStickWidthScale method.

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.SetBallRadiusScale method.

innerContour

Defines whether the inner contour of the ‘cogwheel’ is drawn or committed. See also OEHighlightByCogwheel.SetInnerContour method.

monochrome

Defines whether or not to change the color of the atom label of the highlighted atom(s). See also OEHighlightByCogwheel.SetAtomLabelMonochrome method.

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.

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).

GetColor

GetColor() -> OEColor

Returns the color of the highlighting.

See also

GetInnerContour

GetInnerContour() -> bool

Returns whether the inner contour of the ‘cogwheel’ is drawn or committed.

GetLineWidthScale

GetLineWidthScale() -> float

Returns the multiplier that can be used to increase or decrease the line width of the ‘cogwheel’

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).

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)
../../_images/OEHighlightByCogwheel_SetAtomLabelMonochrome.png

Example of using the SetAtomLabelMonochrome method

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)
../../_images/OEHighlightByCogwheel_SetBallRadiusScale.png

Example of using the SetBallRadiusScale method

SetColor

SetColor(color: OEColor) -> None

Sets the color of the highlighting.

Example (Figure: Example of using the SetColor method)

highlight.SetColor(oechem.OEDarkPurple)
../../_images/OEHighlightByCogwheel_SetColor.png

Example of using the SetColor method

See also

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)
../../_images/OEHighlightByCogwheel_SetInnerContour.png

Example of using the SetInnerContour method

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)
../../_images/OEHighlightByCogwheel_SetLineWidthScale.png

Example of using the SetLineWidthScale method

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)
../../_images/OEHighlightByCogwheel_SetStickWidthScale.png

Example of using the SetStickWidthScale method