You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

114 lines
4.3 KiB
C++

// XTPChartPyramidDiagram.h
//
// This file is a part of the XTREME TOOLKIT PRO MFC class library.
// (c)1998-2012 Codejock Software, All Rights Reserved.
//
// THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
// RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED WRITTEN
// CONSENT OF CODEJOCK SOFTWARE.
//
// THIS SOURCE CODE CAN ONLY BE USED UNDER THE TERMS AND CONDITIONS OUTLINED
// IN THE XTREME TOOLKIT PRO LICENSE AGREEMENT. CODEJOCK SOFTWARE GRANTS TO
// YOU (ONE SOFTWARE DEVELOPER) THE LIMITED RIGHT TO USE THIS SOFTWARE ON A
// SINGLE COMPUTER.
//
// CONTACT INFORMATION:
// support@codejock.com
// http://www.codejock.com
//
/////////////////////////////////////////////////////////////////////////////
//{{AFX_CODEJOCK_PRIVATE
#if !defined(__XTPCHARTPYRAMIDDIAGRAM_H__)
#define __XTPCHARTPYRAMIDDIAGRAM_H__
//}}AFX_CODEJOCK_PRIVATE
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
//===========================================================================
// Summary:
// This class abstracts the pie diagram.This class is a kind of
// CXTPChartDiagram.
// Remarks:
// A pie chart (or a circle graph) is a circular chart divided into sectors,
// illustrating percents. In a pie chart, the arc length of each sector (and
// consequently its central angle and area), is proportional to the quantity
// it represents. Together, the sectors create a full disk.
//===========================================================================
class _XTP_EXT_CLASS CXTPChartPyramidDiagram : public CXTPChartDiagram
{
DECLARE_SERIAL(CXTPChartPyramidDiagram)
public:
//-----------------------------------------------------------------------
// Summary:
// Constructs a CXTPChartPyramidDiagram object.
// Remarks:
//-----------------------------------------------------------------------
CXTPChartPyramidDiagram();
public:
//-------------------------------------------------------------------------
// Summary:
// Call this function to create the view of the pie diagram.
// Parameters:
// pDC - A pointer to chart device context.
// pParent - A pointer to the parent view.
// Returns:
// A pointer to CXTPChartDiagramView object which points to a newly created
// CXTPChartPyramidDiagramView object.
//-------------------------------------------------------------------------
virtual CXTPChartDiagramView* CreateView(CXTPChartDeviceContext* pDC, CXTPChartElementView* pParent);
//-------------------------------------------------------------------------
// Summary:
// Call this function to calculate the pie series layout.
// Parameters:
// pDC - A pointer to chart device context.
// pView - A pointer to the diagram view.
//-------------------------------------------------------------------------
virtual void CalculateSeriesLayout(CXTPChartDeviceContext* pDC, CXTPChartDiagramView* pView);
#ifdef _XTP_ACTIVEX
public:
//{{AFX_CODEJOCK_PRIVATE
DECLARE_DISPATCH_MAP()
DECLARE_INTERFACE_MAP()
DECLARE_OLETYPELIB_EX(CXTPChartPyramidDiagram);
DECLARE_OLECREATE_EX(CXTPChartPyramidDiagram)
//}}AFX_CODEJOCK_PRIVATE
#endif
};
//===========================================================================
// Summary:
// This class abstracts the view of a pie diagram.This class is a kind of
// CXTPChartDiagramView.
// Remarks:
// A pie chart (or a circle graph) is a circular chart divided into sectors,
// illustrating percents. In a pie chart, the arc length of each sector (and
// consequently its central angle and area), is proportional to the quantity
// it represents. Together, the sectors create a full disk.
//===========================================================================
class _XTP_EXT_CLASS CXTPChartPyramidDiagramView : public CXTPChartDiagramView
{
public:
//-----------------------------------------------------------------------
// Summary:
// Constructs a CXTPChartPyramidDiagramView object.
// Parameters:
// pDiagram - A pointer to pie diagram object.
// pParent - A pointer to the parent view.
// Remarks:
//-----------------------------------------------------------------------
CXTPChartPyramidDiagramView(CXTPChartDiagram* pDiagram, CXTPChartElementView* pParent);
protected:
};
#endif //#if !defined(__XTPCHARTPYRAMIDDIAGRAM_H__)