You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.3 KiB
63 lines
1.3 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: GraphWnd.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of GraphWnd.h
|
|
//----------------------------------------------------------------------------
|
|
#pragma once
|
|
|
|
#include "..\..\LgLib\LgAux.h"
|
|
#include "..\..\LgLib\LgArray.h"
|
|
// CGraphWnd
|
|
|
|
class CGraphWnd : public CWnd
|
|
{
|
|
DECLARE_DYNAMIC(CGraphWnd)
|
|
|
|
public:
|
|
CGraphWnd();
|
|
virtual ~CGraphWnd();
|
|
|
|
public:
|
|
struct CGraphData : public CLgArray<CLgDPoint>
|
|
{
|
|
COLORREF rgbColor;
|
|
BOOL bVisible;
|
|
};
|
|
typedef CLgArray<CGraphData> CGraphDataArray;
|
|
|
|
public:
|
|
void SetField( CLgDPoint min, CLgDPoint max, CLgDPoint axis, CLgDSize step );
|
|
|
|
public:
|
|
CGraphDataArray& GetDataArray() { return m_GraphDataArray; }
|
|
|
|
protected:
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
public:
|
|
afx_msg void OnPaint();
|
|
|
|
protected:
|
|
void OnDraw( CDC *pDC );
|
|
|
|
public:
|
|
BOOL Create( CWnd *pParentWnd, LPRECT pRect );
|
|
|
|
private:
|
|
CLgDPoint m_Min;
|
|
CLgDPoint m_Max;
|
|
CLgDPoint m_Axis;
|
|
CLgDSize m_Step;
|
|
CGraphDataArray m_GraphDataArray;
|
|
|
|
};
|
|
|
|
|