Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Scientific charting control

, 17 Jan 2005
Multi-purpose scientific charting control.
xgraph_bin.zip
XGRAPH10.dll
XGraphTest.exe
xgraph_demo.zip
Include
Release
res
bitmap1.bmp
bs1.bmp
bs2.bmp
bs3.bmp
bs4.bmp
bs5.bmp
Toolbar.bmp
XGraphTest.ico
XGraphTestDoc.ico
XGRAPH10.lib
XGRAPH10d.lib
XGraphTest.clw
XGraphTest.dsp
XGraphTest.dsw
XGRAPH10.dll
bitmap2.bmp
default1.bin
Logo.bmp
Screen1.bmp
xgraphtest
xgraph_src.zip
XGraph.clw
xgraph.def
XGRAPH.dsw
XGRAPH.dsp
bitmap1.bmp
bs1.bmp
bs2.bmp
bs3.bmp
bs4.bmp
bs5.bmp
lib
XGRAPH10.dll
XGRAPH10.exp
XGRAPH10.lib
// XGraphObjectBase.h: Schnittstelle f�r die Klasse CXGraphObjectBase.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_XGRAPHOBJECTBASE_H__4FC71E88_00C5_4518_A3F9_48AB5F5499BF__INCLUDED_)
#define AFX_XGRAPHOBJECTBASE_H__4FC71E88_00C5_4518_A3F9_48AB5F5499BF__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


#include "GfxUtils.h"

class CXGraph;

#pragma warning (disable : 4244)
#pragma warning (disable : 4800)

#ifdef _AFXDLL
class __declspec(dllexport)  CXGraphObject : public CObject
#else
class __declspec(dllimport)  CXGraphObject : public CObject
#endif
{
    DECLARE_SERIAL( CXGraphObject )
	
	friend class CXGraph;

protected:

	CRect    m_clRect;
	bool     m_bSelected;
	bool     m_bEditing;
	bool     m_bCanResize;
	bool     m_bCanMove;
	bool     m_bSizing;
	bool     m_bVisible;
	bool     m_bCanEdit;
	COLORREF m_crColor;
	CXGraph* m_pGraph;
	
	CRectTracker m_Tracker;

	CXGraphObject();
	CXGraphObject(const CXGraphObject& copy);
	CXGraphObject& operator=(const CXGraphObject& copy);
	virtual ~CXGraphObject();

	virtual void Draw(CDCEx *pDC) {} ;
	virtual void Edit() {} ;
	virtual void EndEdit() {} ;
	virtual void BeginSize();
	virtual void EndSize();
	virtual void InvokeProperties() {} ;

public:

	inline  void SetRect(CRect rect) { m_clRect = rect; };
	inline  void SetSelected(bool bValue) { m_bSelected = bValue; };
	inline  void SetVisible(bool bValue) { m_bVisible = bValue; };
	inline  void SetColor(COLORREF color) { m_crColor = color; };

	inline  CRect GetRect() const { return m_clRect; };
	inline  bool  GetSelected() const { return m_bSelected; };
	inline  bool  GetVisible() const { return m_bVisible; };
	inline  COLORREF GetColor() const { return m_crColor; };
	inline  CXGraph* GetGraph() const { return m_pGraph; };

	virtual void Serialize( CArchive& archive );


};

#pragma warning (default : 4244)
#pragma warning (default : 4800)

#endif // !defined(AFX_XGRAPHOBJECTBASE_H__4FC71E88_00C5_4518_A3F9_48AB5F5499BF__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Gunnar Bolle
Web Developer
Germany Germany
No Biography provided

| Advertise | Privacy | Mobile
Web03 | 2.8.141022.1 | Last Updated 17 Jan 2005
Article Copyright 2002 by Gunnar Bolle
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid