Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /Plugin/Flactale.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11 - (hide annotations) (download) (as text)
Wed Feb 10 18:21:00 2010 UTC (14 years ago) by sho1get
File MIME type: text/x-chdr
File size: 1551 byte(s)


1 sho1get 11 #pragma once
2    
3     //////////////////////////////////////////////////////////////////////////
4    
5     typedef CArray<int> IntList;
6     typedef CArray<COLORREF> ColorList;
7    
8     typedef struct _FLACTALE
9     {
10     double dbRealMin;
11     double dbImgMin;
12     double dbSide;
13     int nCountMax;
14     int nHeigth;
15     int nWidth;
16     }
17     FLACTALE, *LPFLACTALE;
18    
19     typedef struct _FLACTALEDATA
20     {
21     UINT nSlaves;
22     UINT nProcessors;
23     NODEINIT nd;
24     FLACTALE ft;
25     }
26     FLACTALEDATA, *LPFLACTALEDATA;
27    
28     typedef struct _FTCALCDATA
29     {
30     int nIndex;
31     int nStepNo;
32     WORD wNodeID;
33     WORD wSubID;
34     UINT nSize;
35     BOOL fEnd;
36     BYTE reserve[4]; // For padding
37     double dbRuntime;
38     ColorList list;
39     }
40     FTCALCDATA, *LPFTCALCDATA;
41    
42     //////////////////////////////////////////////////////////////////////////
43    
44     class CFlactale
45     {
46     public:
47     CFlactale();
48     virtual ~CFlactale();
49    
50     void Initialize(FLACTALE Params);
51     virtual void Calculation(int nYPoint, LPCOLORREF lpColor) = 0;
52    
53     protected:
54     void SetParameters(FLACTALE Flactale) { m_Flactale = Flactale; }
55     void DefPalette();
56     void PrintLevel();
57    
58     protected:
59     FLACTALE m_Flactale;
60     ColorList m_Color;
61     IntList m_nPal;
62     IntList m_nLvlPal;
63     int m_nPalMax;
64     int m_nLvlMax;
65     };
66    
67     //////////////////////////////////////////////////////////////////////////
68    
69     class CMandelbrot : public CFlactale
70     {
71     public:
72     CMandelbrot();
73     virtual ~CMandelbrot();
74     virtual void Calculation(int nYPoint, LPCOLORREF lpColor);
75     };
76    
77     //////////////////////////////////////////////////////////////////////////

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26