source: GTP/trunk/Lib/Vis/Preprocessing/src/PreprocessorFactory.cpp @ 2119

Revision 2119, 1.0 KB checked in by mattausch, 17 years ago (diff)
Line 
1#include "PreprocessorFactory.h"
2#include "SamplingPreprocessor.h"
3#include "VssPreprocessor.h"
4#include "RssPreprocessor.h"
5#include "ExactPreprocessor.h"
6#include "RenderSampler.h"
7#include "GvsPreprocessor.h"
8#include "CombinedPreprocessor.h"
9
10
11namespace GtpVisibilityPreprocessor {
12
13
14Preprocessor *PreprocessorFactory::CreatePreprocessor(const string &preprocessorType)
15{
16        Debug << "here9191" << endl;
17        if (preprocessorType == "vss")
18        {Debug << "here21112" << endl;
19                return new VssPreprocessor();
20        }
21
22        if (preprocessorType == "combined")
23        {
24                return new CombinedPreprocessor();
25        }
26
27        if (preprocessorType == "rss")
28        {
29                return new RssPreprocessor();
30        }
31       
32        if (preprocessorType == "exact")
33        {
34                return new ExactPreprocessor();
35        }
36
37    if (preprocessorType == "sampling")
38        {
39                return new SamplingPreprocessor();
40        }
41       
42        if (preprocessorType == "render")
43        {
44                return new RenderSampler();
45        }
46       
47        if (preprocessorType == "gvs")
48        {
49                return new GvsPreprocessor();
50        }
51
52
53        return NULL;
54}
55
56}
Note: See TracBrowser for help on using the repository browser.