BCGControlBar Pro for MFC

Detailed Description

The CBCGPChartBaseEffect class serves as an abstract base class for various "effects" that can be added to a diagram.

The effects are displayed before series, from CBCGPChartVisualObject::OnDrawDiagram. An example of effect is "interline coloring", when spaces between two lines are filled by predefined color.

To implement a custom effect derive a class from CBCGPChartBaseEffect, override OnCalcScreenPoints() and OnDraw() methods and call CBCGPChartVisualObject::AddChartEffect. You can remove all effects by calling CBCGPChartVisualObject::RemoveAllChartEffects.

Call CBCGPChartBaseEffect::SetVisible to hide an effect.

See also
+ Inheritance diagram for CBCGPChartBaseEffect:

Public Member Functions

 GetParentChartReturns a pointer to a parent chart.
 IsEffectShownOnAxisTells whether an effect is displayed on specified axis.
 IsVisibleTells whether an effect is visible, or not.
 OnCalcScreenPointsCalled by the framework to calculate screen coordinates of effect's elements.
 OnDrawCalled by the framework when it needs to draw and effect.
 SetParentChartSets relation between Chart and effect.
 SetVisibleShows or hides an effect.