Revision 863,
517 bytes
checked in by mattausch, 18 years ago
(diff) |
working on preprocessor integration
added iv stuff
|
Rev | Line | |
---|
[162] | 1 |
|
---|
| 2 | #include "X3dExporter.h"
|
---|
[712] | 3 | #include "VrmlExporter.h"
|
---|
[162] | 4 |
|
---|
[863] | 5 | namespace GtpVisibilityPreprocessor {
|
---|
[860] | 6 |
|
---|
[162] | 7 | Exporter *
|
---|
| 8 | Exporter::GetExporter(const string filename)
|
---|
| 9 | {
|
---|
[712] | 10 | Exporter *exporter = NULL;
|
---|
[162] | 11 |
|
---|
[712] | 12 | if (strstr(filename.c_str(), ".x3d"))
|
---|
| 13 | {
|
---|
| 14 | exporter = new X3dExporter(filename);
|
---|
| 15 | }
|
---|
| 16 | else if (strstr(filename.c_str(), ".wrl"))
|
---|
| 17 | {
|
---|
| 18 | exporter = new VrmlExporter(filename);
|
---|
[162] | 19 | }
|
---|
[712] | 20 | else
|
---|
| 21 | {
|
---|
| 22 | cerr<<"Error: Currently unsuported export format, filename " << filename << endl;
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | return exporter;
|
---|
[162] | 26 | }
|
---|
| 27 |
|
---|
[860] | 28 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.