<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>HippoDraw Class Library</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> <link rel="shortcut icon" href="hippoApp.ico"> </head><body> <!-- Generated by Doxygen 1.6.2 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="dir_6dcc65b7c74f97460af44109581e51d3.html">reps</a> </div> </div> <div class="contents"> <h1>PointRepFactory.cxx</h1><a href="PointRepFactory_8cxx.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <a name="l00012"></a>00012 <span class="preprocessor">#ifdef _MSC_VER</span> <a name="l00013"></a>00013 <span class="preprocessor"></span><span class="comment">// A long identifier warning.</span> <a name="l00014"></a>00014 <span class="preprocessor">#include "msdevstudio/MSconfig.h"</span> <a name="l00015"></a>00015 <span class="preprocessor">#endif</span> <a name="l00016"></a>00016 <span class="preprocessor"></span> <a name="l00017"></a>00017 <span class="preprocessor">#include "<a class="code" href="PointRepFactory_8h.html" title="PointRepFactory class interface.">reps/PointRepFactory.h</a>"</span> <a name="l00018"></a>00018 <span class="preprocessor">#include "<a class="code" href="TupleCut_8h.html" title="hippodraw::TupleCut class interface">datasrcs/TupleCut.h</a>"</span> <a name="l00019"></a>00019 <a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="ColorBoxPointRep_8h.html" title="hippodraw::ColorBoxPointRep class interface">ColorBoxPointRep.h</a>"</span> <a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="FilledColumnPointRep_8h.html" title="hippodraw::FilledColumnPointRep class interface">FilledColumnPointRep.h</a>"</span> <a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="ContourPointRep_8h.html" title="hippodraw::ContourPointRep class interface">ContourPointRep.h</a>"</span> <a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="ColorSymbolPointRep_8h.html" title="ColorSymbolPointRep class interface.">ColorSymbolPointRep.h</a>"</span> <a name="l00024"></a>00024 <span class="preprocessor">#include "<a class="code" href="CutRangeRep_8h.html" title="CutRangeRep class interface.">CutRangeRep.h</a>"</span> <a name="l00025"></a>00025 <span class="preprocessor">#include "<a class="code" href="LineFunctionRep_8h.html" title="LineFunctionRep class interface.">LineFunctionRep.h</a>"</span> <a name="l00026"></a>00026 <a name="l00027"></a>00027 <span class="keyword">namespace </span>hippodraw { <a name="l00028"></a>00028 <a name="l00029"></a>00029 PointRepFactory * <a class="code" href="classhippodraw_1_1PointRepFactory.html#aea291af7af71492fca1452fcf3857fae" title="A pointer to the singleton object.">PointRepFactory::s_instance</a> = 0; <a name="l00030"></a>00030 <a name="l00031"></a><a class="code" href="classhippodraw_1_1PointRepFactory.html#ae648a7f4dd0a7b278be0414f8a5c5d57">00031</a> <a class="code" href="classhippodraw_1_1PointRepFactory.html#ae648a7f4dd0a7b278be0414f8a5c5d57" title="A default constructor for prevent creation except by itself.">PointRepFactory::PointRepFactory</a> () <a name="l00032"></a>00032 { <a name="l00033"></a>00033 } <a name="l00034"></a>00034 <a name="l00035"></a><a class="code" href="classhippodraw_1_1PointRepFactory.html#a0bc9d7f5440e0f416717f8ffd3a6af81">00035</a> <a class="code" href="classhippodraw_1_1PointRepFactory.html" title="A factory for creation of objects whose class is derived from PointRepBase.">PointRepFactory</a> * <a class="code" href="classhippodraw_1_1PointRepFactory.html#a0bc9d7f5440e0f416717f8ffd3a6af81" title="Returns a pointer to the singleton instance.">PointRepFactory::instance</a> () <a name="l00036"></a>00036 { <a name="l00037"></a>00037 <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1PointRepFactory.html#aea291af7af71492fca1452fcf3857fae" title="A pointer to the singleton object.">s_instance</a> == 0 ) { <a name="l00038"></a>00038 <a class="code" href="classhippodraw_1_1PointRepFactory.html#aea291af7af71492fca1452fcf3857fae" title="A pointer to the singleton object.">s_instance</a> = <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1PointRepFactory.html#ae648a7f4dd0a7b278be0414f8a5c5d57" title="A default constructor for prevent creation except by itself.">PointRepFactory</a> (); <a name="l00039"></a>00039 <a class="code" href="classhippodraw_1_1PointRepFactory.html#aea291af7af71492fca1452fcf3857fae" title="A pointer to the singleton object.">s_instance</a>-><a class="code" href="classhippodraw_1_1PointRepFactory.html#a25a40b6614565f755233080a384c35f1" title="Initializes the factory with a set of default PointReps.">initialize</a> (); <a name="l00040"></a>00040 } <a name="l00041"></a>00041 <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1PointRepFactory.html#aea291af7af71492fca1452fcf3857fae" title="A pointer to the singleton object.">s_instance</a>; <a name="l00042"></a>00042 } <a name="l00043"></a>00043 <a name="l00044"></a><a class="code" href="classhippodraw_1_1PointRepFactory.html#a25a40b6614565f755233080a384c35f1">00044</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1PointRepFactory.html#a25a40b6614565f755233080a384c35f1" title="Initializes the factory with a set of default PointReps.">PointRepFactory::initialize</a> () <a name="l00045"></a>00045 { <a name="l00046"></a>00046 <a class="code" href="classhippodraw_1_1Factory.html#a8aee137075d50e6fca916a1dbfd388c3" title="Adds a prototype object to the list of prototypes.">add</a> ( <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1ColorBoxPointRep.html" title="A PointRep class that draws a colored box to represent the value.">ColorBoxPointRep</a> () ); <a name="l00047"></a>00047 <a class="code" href="classhippodraw_1_1Factory.html#a8aee137075d50e6fca916a1dbfd388c3" title="Adds a prototype object to the list of prototypes.">add</a> ( <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1ContourPointRep.html" title="A PointRep class that draws a contour lines.">ContourPointRep</a> () ); <a name="l00048"></a>00048 <a class="code" href="classhippodraw_1_1Factory.html#a8aee137075d50e6fca916a1dbfd388c3" title="Adds a prototype object to the list of prototypes.">add</a> ( <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1ColumnPointRep.html" title="A PointRep class that draws a column to represent the value.">ColumnPointRep</a> () ); <a name="l00049"></a>00049 <a class="code" href="classhippodraw_1_1Factory.html#a8aee137075d50e6fca916a1dbfd388c3" title="Adds a prototype object to the list of prototypes.">add</a> ( <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1FilledColumnPointRep.html" title="A PointRep class that draws a filled column to represent the value.">FilledColumnPointRep</a> () ); <a name="l00050"></a>00050 <a class="code" href="classhippodraw_1_1Factory.html#a8aee137075d50e6fca916a1dbfd388c3" title="Adds a prototype object to the list of prototypes.">add</a> ( <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1LinePointRep.html" title="A PointRep class that draws a column to represent the value.">LinePointRep</a> () ); <a name="l00051"></a>00051 <a class="code" href="classhippodraw_1_1Factory.html#a8aee137075d50e6fca916a1dbfd388c3" title="Adds a prototype object to the list of prototypes.">add</a> ( <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1SymbolPointRep.html" title="A PointRep class draws a symbol to represent the value.">SymbolPointRep</a> () ); <a name="l00052"></a>00052 <a class="code" href="classhippodraw_1_1Factory.html#a8aee137075d50e6fca916a1dbfd388c3" title="Adds a prototype object to the list of prototypes.">add</a> ( <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1ColorSymbolPointRep.html" title="A PointRep class draws a symbol to represent the coordinate in a color that represents...">ColorSymbolPointRep</a> () ); <a name="l00053"></a>00053 <a class="code" href="classhippodraw_1_1Factory.html#a8aee137075d50e6fca916a1dbfd388c3" title="Adds a prototype object to the list of prototypes.">add</a> ( <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1CutRangeRep.html" title="A derived class of PointRepBase class that draws a representation of a cut range...">CutRangeRep</a> () ); <a name="l00054"></a>00054 <a class="code" href="classhippodraw_1_1Factory.html#a8aee137075d50e6fca916a1dbfd388c3" title="Adds a prototype object to the list of prototypes.">add</a> ( <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1LineFunctionRep.html" title="A LinePointRep class that draws a function by trying to make a smooth line after...">LineFunctionRep</a> () ); <a name="l00055"></a>00055 } <a name="l00056"></a>00056 <a name="l00057"></a>00057 } <span class="comment">// namespace hippodraw</span> </pre></div></div> <hr size="1"><address style="align: right;"><small> Generated for HippoDraw Class Library by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0> </a> </small></address> </body> </html>