HIOUtilityDwfExport.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 #ifndef _HW3D_UTILITY_DWFEXPORT_H__RAJESH_B__20060503_1200__
11 #define _HW3D_UTILITY_DWFEXPORT_H__RAJESH_B__20060503_1200__
12 
13 #include "HTools.h"
14 #include "HIOManager.h"
15 #include "HW3DStream.h"
16 
17 #if defined(_MSC_VER) && defined(HIO_DWF_EXPORT)
18 #define HIO_API __declspec (dllexport)
19 #else
20 #define HIO_API
21 #endif
22 
28 class HIO_API HIOUtilityDwfExport : public HOutputHandler
29 {
30 
31 public:
33  {
35  };
36 
37  ~HIOUtilityDwfExport() {;};
38 
40  HIORegisterOutputType("DWF",this); // DWF (Autodesk's Design Web Format)
41  HIORegisterOutputType("dwf",this); // DWF (Autodesk's Design Web Format)
42  };
43 
44  HOutputHandlerStyle GetOutputStyle() {return HOutputHandlerStyleModel;};
45  const char * GetOutputTypesString() {return "dwf";};
46 
49  const char * GetOutputName() { return "HIOUtilityDwfExport"; }
50 
58  HFileOutputResult FileOutputByKey(const __wchar_t * FileName, HC_KEY key, HOutputHandlerOptions * options);
59 
60  HFileOutputResult FileOutputByKey(const unsigned short * FileName, HC_KEY key, HOutputHandlerOptions * options){
61  H_UTF16 utf16;
62  utf16.encodedText((utf16_char const*) FileName);
63  return FileOutputByKey(H_WCS(utf16).encodedText(), key, options);
64  }
65 };
66 
67 
68 
72 class HIO_API HIOUtilityWhip2D : public HOutputHandler
73 {
74 public:
75  HIOUtilityWhip2D() {
77  };
78 
79  ~HIOUtilityWhip2D() {;};
80 
82  HIORegisterOutputType("w2d",this);
83  };
84 
87  const char * GetOutputName() { return "HIOUtilityWhip2D"; }
88 
89 
90  const char * GetOutputTypesString() {return "w2d";};
92 
93  const char * GetOutputDefaultHSRA() {return "painters";};
94 
102  HFileOutputResult FileOutputByKey(const __wchar_t * filename, HC_KEY key, HOutputHandlerOptions * options);
103 
104  HFileOutputResult FileOutputByKey(const unsigned short * filename, HC_KEY key, HOutputHandlerOptions * options){
105  H_UTF16 utf16;
106  utf16.encodedText((utf16_char const*) filename);
107  return FileOutputByKey(H_WCS(utf16).encodedText(), key, options);
108  }
109 
110 };
111 
112 #ifdef HIO_DWF_EXPORT
113 extern "C" {
114  HIO_API void * CreateInput(HIOManager *manager);
115  HIO_API void * CreateOutput(HIOManager *manager);
116  HIO_API void Free(HIOUtilityDwfExport *);
117 }
118 #endif
119 
120 
121 #endif // _HW3D_UTILITY_DWFEXPORT_H__RAJESH_B__20060503_1200__
122 
123 
124 
125 
Definition: HIOManager.h:1456
virtual HFileOutputResult FileOutputByKey(const char *filename, HC_KEY key, HOutputHandlerOptions *options)
const char * GetOutputDefaultHSRA()
Definition: HIOUtilityDwfExport.h:93
#define HOutputOpFileOutputByKey
This HOutputHandler supports output from a segment key.
Definition: HIOManager.h:73
void RegisterOutputHandlerTypes()
Definition: HIOUtilityDwfExport.h:39
HOutputHandlerStyle
Definition: HIOManager.h:862
Definition: HIOUtilityDwfExport.h:28
const char * GetOutputName()
Definition: HIOUtilityDwfExport.h:49
Specifies an HOutputHandler for an image.
Definition: HIOManager.h:866
HOutputHandler an abstract base class for model and image output.
Definition: HIOManager.h:1269
const char * GetOutputTypesString()
Definition: HIOUtilityDwfExport.h:90
HOutputHandlerStyle GetOutputStyle()
Definition: HIOUtilityDwfExport.h:91
const char * GetOutputTypesString()
Definition: HIOUtilityDwfExport.h:45
#define HIORegisterOutputType(type, output_object)
HIORegisterOutputType(type,output_object) Used by a HOutputHandler to set extension types that it han...
Definition: HIOManager.h:90
Definition: HIOUtilityDwfExport.h:72
Definition: HIOManager.h:908
void RegisterOutputHandlerTypes()
Definition: HIOUtilityDwfExport.h:81
HOutputHandlerStyle GetOutputStyle()
Definition: HIOUtilityDwfExport.h:44
void SetOutputOps(unsigned long ops)
This sets the HOutputOp.
Definition: HIOManager.h:1434
A header file containing the HIO classes for passing to HBaseView::FileInput and HBaseView::FileOutpu...
const char * GetOutputName()
Definition: HIOUtilityDwfExport.h:87