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

Revision 1891, 977 bytes checked in by bittner, 18 years ago (diff)

combined preprocessor

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        if (preprocessorType == "vss")
17        {
18                return new VssPreprocessor();
19        }
20
21        if (preprocessorType == "combined")
22        {
23                return new CombinedPreprocessor();
24        }
25
26        if (preprocessorType == "rss")
27        {
28                return new RssPreprocessor();
29        }
30       
31        if (preprocessorType == "exact")
32        {
33                return new ExactPreprocessor();
34        }
35
36    if (preprocessorType == "sampling")
37        {
38                return new SamplingPreprocessor();
39        }
40       
41        if (preprocessorType == "render")
42        {
43                return new RenderSampler();
44        }
45       
46        if (preprocessorType == "gvs")
47        {
48                return new GvsPreprocessor();
49        }
50
51        return NULL;
52}
53
54}
Note: See TracBrowser for help on using the repository browser.