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.
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
OEAddHighlighting
functionOEHighlightStyle
namespaceOEHighlightByColor class
OEHighlightByLasso class
OEHighlightByStick class
Highlighting chapter
Constructors¶
OEHighlightByCogwheel(const OESystem::OEColor &color, double lineWidthScale=1.5,
double stickWidthScale=2.0, double ballRadiusScale=2.0,
bool innerContour=true, bool monochrome=true)
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(const OEHighlightByCogwheel &rhs)
Copy constructor.
CreateCopy¶
OEHighlightBase *CreateCopy() const
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¶
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 ‘cogwheel’ of the highlighted atom(s).
See also
GetColor¶
const OESystem::OEColor &GetColor() const
Returns the color of the highlighting.
See also
OEColor class
GetInnerContour¶
bool GetInnerContour() const
Returns whether the inner contour of the ‘cogwheel’ is drawn or committed.
See also
GetLineWidthScale¶
double GetLineWidthScale() const
Returns the multiplier that can be used to increase or decrease the line width of the ‘cogwheel’
See also
GetStickWidthScale¶
double GetStickWidthScale() const
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¶
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)
OEHighlightByCogwheel highlight = new OEHighlightByCogwheel(oechem.getOEDarkPurple());
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 ‘cogwheel’ of the highlighted atom(s).
Example (Figure: Example of using the SetBallRadiusScale method)
OEHighlightByCogwheel highlight = new OEHighlightByCogwheel(oechem.getOEDarkPurple());
highlight.SetBallRadiusScale(5.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.getOEDarkPurple());
See also
OEColor class
SetInnerContour¶
void SetInnerContour(bool innerContour)
Sets whether the inner contour of the ‘cogwheel’ is drawn or omitted.
Example (Figure: Example of using the SetInnerContour method)
OEHighlightByCogwheel highlight = new OEHighlightByCogwheel(oechem.getOEDarkPurple());
highlight.SetInnerContour(false);
See also
SetLineWidthScale¶
void SetLineWidthScale(double lineWidthScale)
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)
OEHighlightByCogwheel highlight = new OEHighlightByCogwheel(oechem.getOEDarkPurple());
highlight.SetLineWidthScale(3.0);
See also
SetStickWidthScale¶
void SetStickWidthScale(double stickWidthScale)
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)
OEHighlightByCogwheel highlight = new OEHighlightByCogwheel(oechem.getOEDarkPurple());
highlight.SetStickWidthScale(5.0);
See also