SketchUp SDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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 
9 
13 };
14 
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,
110  void* reserved) = 0;
116  virtual void ShowSummaryDialog() {}
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 
146  (*GetSketchUpModelImporterInterfaceFunc)(void);
147 #endif
148 #endif // MODELIMPORTERPLUGIN_H_