00001 // Copyright (c) 1998-2014 by Tech Soft 3D, Inc. 00002 // 00003 // The information contained herein is confidential and proprietary to Tech Soft 3D, Inc., 00004 // and considered a trade secret as defined under civil and criminal statutes. 00005 // Tech Soft 3D, Inc. shall pursue its civil and criminal remedies in the event of 00006 // unauthorized use or misappropriation of its trade secrets. Use of this information 00007 // by anyone other than authorized employees of Tech Soft 3D, Inc. is granted only under 00008 // a written non-disclosure agreement, expressly prescribing the scope and manner of such use. 00009 00010 #pragma once 00011 00012 #ifdef HIO_SKP 00013 #define HIO_API __declspec (dllexport) 00014 #else 00015 #define HIO_API 00016 #endif 00017 00018 #include "HIOManager.h" 00019 00020 class HIO_API HIOUtilitySKP : public HInputHandler 00021 { 00022 public: 00023 HIOUtilitySKP(); 00024 virtual ~HIOUtilitySKP() { } 00025 00027 virtual const char* GetInputName() { return "HIOUtilitySKP"; } 00028 00030 virtual void RegisterInputHandlerTypes() 00031 { 00032 HIORegisterInputType("SKP", this); // SKP (Google SketchUp's Format) 00033 HIORegisterInputType("skp", this); // skp (Google SketchUp's Format) 00034 }; 00035 00037 virtual HInputHandlerStyle GetInputStyle() { return HInputHandlerStyleModel; } 00038 00040 const char* GetInputTypesString() { return "skp"; } 00041 00048 virtual HFileInputResult FileInputByKey(const char* fileName, HC_KEY key, HInputHandlerOptions* options); 00049 00050 virtual HFileInputResult FileInputByKey(const wchar_t* fileName, HC_KEY key, HInputHandlerOptions* options); 00051 00052 virtual HFileInputResult FileInputByKey(const unsigned short* fileName, HC_KEY key, HInputHandlerOptions* options); 00053 }; 00054 00055 #ifdef HIO_SKP 00056 extern "C" { 00057 HIO_API void* CreateInput(HIOManager* manager); 00058 HIO_API void Free(HIOUtilitySKP*); 00059 } 00060 #endif