HIOUtilitySKP.h
1 // Copyright (c) Tech Soft 3D, Inc.
2 //
3 // The information contained herein is confidential and proprietary to Tech Soft 3D, Inc.,
4 // and considered a trade secret as defined under civil and criminal statutes.
5 // Tech Soft 3D, Inc. shall pursue its civil and criminal remedies in the event of
6 // unauthorized use or misappropriation of its trade secrets. Use of this information
7 // by anyone other than authorized employees of Tech Soft 3D, Inc. is granted only under
8 // a written non-disclosure agreement, expressly prescribing the scope and manner of such use.
9 
10 #pragma once
11 
12 #ifdef HIO_SKP
13 # ifdef _MSC_VER
14 # define HIO_API __declspec (dllexport)
15 # else
16 # define HIO_API __attribute__ ((visibility ("default")))
17 # endif
18 #else
19 # define HIO_API
20 #endif
21 
22 #include "HIOManager.h"
23 
24 class HIO_API HIOUtilitySKP : public HInputHandler
25 {
26 public:
27  HIOUtilitySKP();
28  virtual ~HIOUtilitySKP() { }
29 
31  virtual const char* GetInputName() { return "HIOUtilitySKP"; }
32 
35  {
36  HIORegisterInputType("SKP", this); // SKP (Google SketchUp's Format)
37  HIORegisterInputType("skp", this); // skp (Google SketchUp's Format)
38  };
39 
42 
44  const char* GetInputTypesString() { return "skp"; }
45 
52  virtual HFileInputResult FileInputByKey(const char* fileName, HC_KEY key, HInputHandlerOptions* options);
53 
54  virtual HFileInputResult FileInputByKey(const wchar_t* fileName, HC_KEY key, HInputHandlerOptions* options);
55 
56  virtual HFileInputResult FileInputByKey(const unsigned short* fileName, HC_KEY key, HInputHandlerOptions* options);
57 };
58 
59 #ifdef HIO_SKP
60 extern "C" {
61  HIO_API void* CreateInput(HIOManager* manager);
62  HIO_API void Free(HIOUtilitySKP*);
63 }
64 #endif
Definition: HIOManager.h:1456
virtual HInputHandlerStyle GetInputStyle()
Definition: HIOUtilitySKP.h:41
Specifies an HInputHandler for model data.
Definition: HIOManager.h:226
virtual HFileInputResult FileInputByKey(const char *filename, HC_KEY key, HInputHandlerOptions *options)
HInputHandler an abstract base class for model and image input.
Definition: HIOManager.h:671
#define HIORegisterInputType(type, input_object)
Definition: HIOManager.h:85
const char * GetInputTypesString()
Definition: HIOUtilitySKP.h:44
virtual void RegisterInputHandlerTypes()
Definition: HIOUtilitySKP.h:34
HInputHandlerStyle
Definition: HIOManager.h:225
Definition: HIOManager.h:246
A header file containing the HIO classes for passing to HBaseView::FileInput and HBaseView::FileOutpu...
virtual const char * GetInputName()
Definition: HIOUtilitySKP.h:31
Definition: HIOUtilitySKP.h:24