Views
Charts Package API Reference Guide
Product Documentation:
Views Documentation Home
List of all members | Public Member Functions | Protected Member Functions
IlvChartDisplayerPointsFactory Class Referenceabstract

Factory to create instances that manage data point projection. More...

#include <ilviews/charts/display.h>

Inheritance diagram for IlvChartDisplayerPointsFactory:
IlvChartPointsFilterFactory

Public Member Functions

virtual IlvChartDisplayerPointsFactorycopy () const =0
 Virtual copy constructor. More...
 
virtual IlvChartDisplayerPointscreate (const IlvChartGraphic *chart, const IlvSingleChartDisplayer *disp)=0
 Creates an instance that handles data point projection. More...
 
virtual void release (const IlvSingleChartDisplayer *disp, IlvChartDisplayerPoints *dispPts)
 Free the created instance that handles data point projection. More...
 

Protected Member Functions

 IlvChartDisplayerPointsFactory ()
 Constructor. More...
 

Detailed Description

Factory to create instances that manage data point projection.

Library: ilvcharts

This factory class is used to create the instances that will handle data point projection and rendering for chart displayers. The IlvChartDisplayerPointsFactory::create() method must be overloaded to return an instance of a subclass of IlvChartDisplayerPoints.

See also
IlvSingleChartDisplayer::setDisplayerPointsFactory().

Constructor & Destructor Documentation

◆ IlvChartDisplayerPointsFactory()

IlvChartDisplayerPointsFactory::IlvChartDisplayerPointsFactory ( )
protected

Constructor.

Initializes a new IlvChartDisplayerPointsFactory instance.

Member Function Documentation

◆ copy()

virtual IlvChartDisplayerPointsFactory* IlvChartDisplayerPointsFactory::copy ( ) const
pure virtual

Virtual copy constructor.

Creates and returns a copy of the current object. This method must be overloaded in subclasses.

Returns
A copy of the current object.

Implemented in IlvChartPointsFilterFactory.

◆ create()

virtual IlvChartDisplayerPoints* IlvChartDisplayerPointsFactory::create ( const IlvChartGraphic chart,
const IlvSingleChartDisplayer disp 
)
pure virtual

Creates an instance that handles data point projection.

Called by the IlvSingleChartDisplayer::allocDisplayerPoints() method to fetch the object used to project data points.

Parameters
chartThe chart that displays the data.
dispThe displayer for which the instance that handles data point projection is created.
Returns
An instance that will handle data point projection for the displayer disp.

Implemented in IlvChartPointsFilterFactory.

◆ release()

virtual void IlvChartDisplayerPointsFactory::release ( const IlvSingleChartDisplayer disp,
IlvChartDisplayerPoints dispPts 
)
virtual

Free the created instance that handles data point projection.

Called by the IlvSingleChartDisplayer::releaseDisplayerPoints() method when the dispPts object is no longer used. The default implementation uses the delete operator on the dispPts object. This method can be overloaded to recycle the instance instead of deleting it.

Parameters
dispThe displayer that uses the dispPts instance.
dispPtsThe instance to release.