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

Revision 1486, 857 bytes checked in by mattausch, 18 years ago (diff)

worked on guided visibility sampling

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
9
10namespace GtpVisibilityPreprocessor {
11
12
13Preprocessor *PreprocessorFactory::CreatePreprocessor(const string &preprocessorType)
14{
15        if (preprocessorType == "vss")
16        {
17                return new VssPreprocessor();
18        }
19       
20        if (preprocessorType == "rss")
21        {
22                return new RssPreprocessor();
23        }
24       
25        if (preprocessorType == "exact")
26        {
27                return new ExactPreprocessor();
28        }
29
30    if (preprocessorType == "sampling")
31        {
32                return new SamplingPreprocessor();
33        }
34       
35        if (preprocessorType == "render")
36        {
37                return new RenderSampler();
38        }
39       
40        if (preprocessorType == "gvs")
41        {
42                return new GvsPreprocessor();
43        }
44
45        return NULL;
46}
47
48}
Note: See TracBrowser for help on using the repository browser.