CGM Objects Library
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
PatternTables.h
1 // PatternTables.h: interface for the CPatternTables class.
2 //
5 
6 #if !defined(AFX_PatternTables_H__10DEC998_4E74_4A5F_8BD5_1FAE3EC1E4D8__INCLUDED_)
7 #define AFX_PatternTables_H__10DEC998_4E74_4A5F_8BD5_1FAE3EC1E4D8__INCLUDED_
8 
9 #pragma once
10 
11 #include "Utility/Color.h"
12 
13 namespace Larson
14 {
15  #define MAX_PATTERNS 1024
16 
19  {
20  public:
27  typedef struct {
28  long ix;
29  long nx, ny;
30  CColor *colors;
31  long transparentCellIndicator;
32  CColor transparentCellColor;
33  unsigned long nRefs;
34  } PatternBundle;
35 
36  PatternBundle* Add(long ix, long nx, long ny, CColor* pColors,
37  long transparentCellIndicator, CColor *transparentCellColor);
38  PatternBundle* Add(PatternBundle* pPattern);
39  static PatternBundle* LinkFillPtrn(PatternBundle* pPattern);
40  PatternBundle* LinkFillPtrn(long ix);
41  static void UnlinkFillPtrn(PatternBundle** ppPattern);
42 
44  virtual ~CPatternTables();
45  long GetNumberDefined();
46 
47  PatternBundle* m_patternBundles[MAX_PATTERNS];
48  };
49 };
50 
51 #endif // !defined(AFX_PatternTables_H__10DEC998_4E74_4A5F_8BD5_1FAE3EC1E4D8__INCLUDED_)
Definition: PatternTables.h:27
CPatternTables – pattern tables container class.
Definition: PatternTables.h:18