File: Grapher.H

package info (click to toggle)
pmccabe 2.5
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 424 kB
  • ctags: 450
  • sloc: ansic: 2,663; cpp: 1,080; sh: 345; makefile: 92
file content (32 lines) | stat: -rw-r--r-- 832 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32



/************************************************************************\
   Grapher declaration
\************************************************************************/


#define GrapherParent IlvGrapher
#define GrapherParentPtr IlvGrapher*
class Grapher: public GrapherParent {
protected:
   XeGraphPtr xeg;
   static IlvDrawSelection* select(IlvManager* mgr, IlvGraphic* object);
public:
   Grapher(XeGraphPtr g,
	   IlvDisplay*     display,
	   int            layers    = 2,
	   IlvBoolean      useacc    = IlvTrue,
	   unsigned short maxInList = IlvMaxObjectsInList,
	   unsigned short maxInNode = IlvMaxObjectsInList)
      : GrapherParent(display, layers, useacc, maxInList, maxInNode)
   {
      xeg = g;
      setMakeSelection(Grapher::select);
   }
   ~Grapher() { }
   
   XeGraphPtr xegraph() { return xeg; }
};