SketchUp SDK
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
slapi
import_export
modelimporterplugin.h
Go to the documentation of this file.
1
// Copyright 2012 Trimble Navigation Ltd. All Rights Reserved.
2
3
#ifndef MODELIMPORTERPLUGIN_H_
4
#define MODELIMPORTERPLUGIN_H_
5
6
#include <string>
7
8
#include <
slapi/import_export/pluginprogresscallback.h
>
9
10
enum
SketchUpModelImporterBehavior
{
11
IMPORT_MODEL_AT_ORIGIN
,
12
IMPORT_MODEL_AS_COMPONENT
13
};
14
20
class
SketchUpModelImporterInterface
{
21
public
:
31
virtual
std::string
GetIdentifier
()
const
= 0;
32
38
virtual
int
GetFileExtensionCount
()
const
= 0;
39
47
virtual
std::string
GetFileExtension
(
int
index)
const
= 0;
48
57
virtual
std::string
GetDescription
()
const
= 0;
58
66
virtual
bool
SupportsOptions
()
const
{
return
false
; }
67
74
virtual
void
ShowOptionsDialog
() {}
75
84
virtual
bool
SupportsProgress
()
const
{
return
true
; }
85
107
virtual
bool
ConvertToSkp
(
const
std::string& input,
108
const
std::string& output_skp,
109
SketchUpPluginProgressCallback
* progress,
110
void
* reserved) = 0;
116
virtual
void
ShowSummaryDialog
() {}
120
virtual
SketchUpModelImporterBehavior
GetImporterBehavior
()
const
{
121
return
IMPORT_MODEL_AT_ORIGIN
;
122
}
123
124
};
125
126
#ifdef __OBJC__
127
129
@protocol
SketchUpModelImporterPlugin <NSObject>
133
+ (id<SketchUpModelImporterPlugin>)importer;
134
138
// This grabs our c++ interface from the obj-c wrapper.
139
- (
SketchUpModelImporterInterface
*)sketchUpModelImporterInterface;
140
@end
141
142
#else
143
145
typedef
SketchUpModelImporterInterface
*
146
(*GetSketchUpModelImporterInterfaceFunc)(void);
147
#endif
148
#endif // MODELIMPORTERPLUGIN_H_
Generated on Tue Aug 6 2013 11:05:25 for SketchUp SDK by
1.8.3.1