OOFILE  1.9
oofClrbl.cpp
Go to the documentation of this file.
1 // COPYRIGHT 1996 A.D. Software, All rights reserved
2 
3 // =================================================================================
4 // oofClrbl.cp
5 // =================================================================================
6 
7 #include "oofpch_g.h" // for precompilation of graph files
8 
9 #ifndef H_OOFRECT
10  #include "oofRect.h"
11 #endif
12 #ifndef H_OOFCLRBL
13  #include "oofClrbl.h"
14 #endif
15 
16 #ifdef OOF_MEM_DEBUG_LAST_INCLUDE
17  #include OOF_MEM_DEBUG_LAST_INCLUDE
18 #endif
19 
20 #ifndef OOF_NO_STDLIB
21  #ifndef std
22  using namespace std;
23  #endif
24 #endif
25 
26 // ---------------------------------------------------------------------------------
27 // oofColorable()
28 // ---------------------------------------------------------------------------------
29 
31  : mDrawStyle(0)
32 {
33 }
34 
35 
36 // ---------------------------------------------------------------------------------
37 // oofColorable() copy ctor
38 // ---------------------------------------------------------------------------------
39 
41 {
42  if (rhs.drawStyle())
43  mDrawStyle = new oofDrawStyle(rhs.drawStyle());
44  else
45  mDrawStyle = 0;
46 }
47 
48 
50 {
51  delete mDrawStyle;
52 }
53 
54 
55 // ---------------------------------------------------------------------------------
56 // oofColorable(const oofDrawStyle& inPattern)
57 // ---------------------------------------------------------------------------------
58 
60 {
61  mDrawStyle = new oofDrawStyle(inDrawStyle);
62 }
63 
const oofDrawStyle * drawStyle() const
Definition: oofClrbl.h:60
virtual ~oofColorable()
Definition: oofClrbl.cpp:49
Base for anything that can be drawn in color.
Definition: oofClrbl.h:15
oofDrawStyle * mDrawStyle
Definition: oofClrbl.h:30
Specify drawing styles used in graphs.
Definition: oofDStyl.h:32