29 enum HFileOutputResult;
35 class HStreamFileToolkit;
41 H_OUTPUT_TYPE_DEFAULT = 0,
42 H_PDF_OUTPUT_PORTFOLIO,
46 H_SINGLE_PASS_NO_HIDDEN_SURFACES
53 #define HInputOpNone (1UL<<0)
58 #define HInputOpFileInputByKey (1UL<<1)
63 #define HInputOpFileInputToImageKey (1UL<<2)
68 #define HOutputOpNone (1UL<<0)
73 #define HOutputOpFileOutputByKey (1UL<<1)
78 #define HOutputOpFileOutputFromImageKey (1UL<<2)
85 #define HIORegisterInputType(type,input_object) HIOManager::GetCurrentHIOManager()->RegisterInputHandler(type, input_object);
90 #define HIORegisterOutputType(type,output_object) HIOManager::GetCurrentHIOManager()->RegisterOutputHandler(type, output_object);
108 virtual void Notice(
const char * notice) = 0;
109 virtual void Notice(
const __wchar_t * notice) {
110 UNREFERENCED(notice);
112 #ifdef H_USHORT_OVERLOAD
113 virtual void Notice(
const unsigned short * notice) {
114 Notice((__wchar_t
const *) notice);
130 virtual void Notice(
float notice) =0;
137 typedef void * (*HIO_CREATE_FREE_FUNCTION)(
void *);
163 virtual HC_KEY GetHoopsEntity(
void * pKernelEntity);
164 virtual HC_KEY GetHoopsEntity(
void * pKernelEntity,
HC_KEY modelKey);
173 virtual void * GetKernelEntity(
HC_KEY key);
174 virtual void * GetKernelEntity(
HC_KEY key,
HC_KEY modelKey);
182 virtual bool GetHoopsEntities(
void * pKernelEntity, vlist_s *ret_HoopsKeysList);
183 virtual bool GetHoopsEntities(
void * pKernelEntity, vlist_s *ret_HoopsKeysList,
HC_KEY modelKey);
191 virtual bool GetKernelEntities(
HC_KEY key, vlist_s *ret_KernelEntitiesList);
192 virtual bool GetKernelEntities(
HC_KEY key, vlist_s *ret_KernelEntitiesList,
HC_KEY modelKey);
199 virtual void AddConnection(
HC_KEY key,
void* pKernelEntity);
200 virtual void AddConnection(
HC_KEY key,
void* pKernelEntity,
HC_KEY modelKey);
209 virtual void OptimizeTree(
const char * segname,
const char * option_string);
265 m_bIgnoreOffEntities =
false;
268 m_bImportMetadata =
false;
271 m_bLegacyOptimize =
false;
272 m_bDwgSkipUnreferencedBlocks =
false;
275 m_iDGNCellHeaderOption = SINGLE_ENTITY_CELLHEADER;
277 m_factorForSmartSolids = 45.0;
278 m_bDGNRebaselineModel =
false;
279 m_bDGNImportAllModels =
false;
282 m_pPRCPMIConnector = 0;
283 m_pPRCTopologyManager = 0;
284 m_bPRCMergeFaces =
false;
285 m_bPRCImportNonBrepFaces =
true;
286 m_bPRCCreatePRCFileOnly =
false;
287 m_bPRCInstanceShells =
true;
288 m_bPRCCalculatePhysicalProperties =
false;
289 m_pPRCMultiModelSelectionCallback = 0;
290 m_pPRCAsmModelFile = 0;
291 m_pPRCDeleteModelFile =
false;
292 m_bPRCStoreUserAttributes =
true;
293 m_pPRCDeleteModelCallback = 0;
294 m_bPRCImportHiddenObjects =
false;
295 m_bPRCLoadAsDrawings =
false;
296 m_PRCModelUnits = 0.0f;
299 m_bDisableDWFDrawOrder =
false;
300 m_bDWFRebaselineModel =
true;
301 m_bImportThumbnail =
false;
304 m_bOptimizeSegmentTree =
false;
307 m_pOOCNodeDeltas = 0;
308 m_bOOCAutoUpdate =
true;
309 m_bOOCAutoCleanup =
true;
311 m_attributePrecisionMode = FORCE_FLOAT;
314 m_generatedDouble =
false;
315 m_bIsTestingSettings =
false;
321 m_z_separation = o->m_z_separation;
354 m_bPRCImportNonBrepFaces = o->m_bPRCImportNonBrepFaces;
357 m_bPRCInstanceShells = o->m_bPRCInstanceShells;
358 m_bPRCCalculatePhysicalProperties = o->m_bPRCCalculatePhysicalProperties;
391 m_z_separation = o.m_z_separation;
421 m_bPRCImportNonBrepFaces = o.m_bPRCImportNonBrepFaces;
423 m_bPRCInstanceShells = o.m_bPRCInstanceShells;
424 m_bPRCCalculatePhysicalProperties = o.m_bPRCCalculatePhysicalProperties;
523 bool m_bPRCImportNonBrepFaces;
527 bool m_bPRCInstanceShells;
529 bool m_bPRCCalculatePhysicalProperties;
531 void (*m_pPRCMultiModelSelectionCallback) (
char const * in_container,
int in_num_configs,
char const * in_configs[],
532 int & out_config_selection);
536 void (*m_pPRCDeleteModelCallback) (
void*& pPRCAsmModelFile);
590 double m_z_separation;
665 virtual const char * GetInputName() = 0;
674 virtual void RegisterInputHandlerTypes() = 0;
691 virtual HFileInputResult FileInputByKey(
const char * filename, HC_KEY key,
HInputHandlerOptions * options);
692 virtual HFileInputResult FileInputByKey(
const __wchar_t * filename, HC_KEY key,
HInputHandlerOptions * options);
703 virtual HFileInputResult FileInputByKey(
const unsigned short * filename, HC_KEY key,
HInputHandlerOptions * options);
715 virtual HFileInputResult FileInputToImageKey(
const char * filename, HC_KEY * image_key, HC_KEY segment_key,
HInputHandlerOptions * options);
716 virtual HFileInputResult FileInputToImageKey(
const __wchar_t * filename, HC_KEY * image_key, HC_KEY segment_key,
HInputHandlerOptions * options);
728 virtual HFileInputResult FileInputToImageKey(
const unsigned short * filename, HC_KEY * image_key, HC_KEY segment_key,
HInputHandlerOptions * options);
742 virtual const char * GetInputTypesString() = 0;
747 const __wchar_t * GetInputProgress();
752 float GetInputPercentProgress();
757 const __wchar_t * GetInputInformation();
785 void ReportInputProgress(
const char * progress);
786 void ReportInputProgress(
const __wchar_t * progress);
789 void ReportInputPercentProgress(
float percent_progress);
792 void ReportInputInformation(
const char * information);
793 void ReportInputInformation(
const __wchar_t * information);
795 void SetModuleDirectory(
const char *module_directory);
796 void SetModuleDirectory(
const __wchar_t *module_directory);
802 void SetStartingInput(
const char *filename);
803 void SetStartingInput(
const __wchar_t *filename = 0);
808 void SetFinishedInput();
814 unsigned long m_InputOps;
816 __wchar_t *m_module_directory;
820 __wchar_t *m_progress;
821 float m_percent_progress1;
822 float m_percent_progress2;
823 __wchar_t *m_information;
824 struct vlist_s *m_information_list;
835 HOutputHandlerStyleModel,
856 H_FORMAT_TEXT lookup(
HC_KEY)
const;
857 void tag(
HC_KEY, H_FORMAT_TEXT
const &);
885 virtual char const * GetType()
const;
889 virtual bool PopulateOptions();
932 void Camera(
HCamera *
const c) {m_pCamera = c;};
939 void Key(HC_KEY
const k) {m_Key = k;};
942 char const * m_pHSRAOptions;
949 HPoint const * m_pWindowColor;
956 bool m_bUseWindowColor;
963 float m_Window_Width;
970 float m_Window_Height;
984 float m_Paper_Height;
991 bool m_ForceGrayscale;
995 void ForceGrayscale(
bool const tf) {m_ForceGrayscale = tf;};
998 size_t m_lineFuseThreshold;
1008 void LineFuseThreshold(
size_t const tf) {m_lineFuseThreshold = tf;};
1015 void FastPrint(
bool const tf) {m_bFastPrint = tf;};
1018 bool m_bConserveMemory;
1024 bool m_bWriteAnimations;
1025 bool WriteAnimations()
const {
return m_bWriteAnimations;};
1026 void WriteAnimations(
bool const tf) {m_bWriteAnimations = tf;};
1029 bool m_bWindowFrame;
1036 bool m_bUseSubscreen;
1047 void ImageDpi(
int const dpi) {m_Image_Dpi = dpi;};
1057 void * m_pExtendedData;
1058 void *
const ExtendedData()
const {
return m_pExtendedData;};
1059 void ExtendedData(
void *
const vp) {m_pExtendedData = vp;};
1060 void ExtendedData(HPDFOptions *
const vp) {m_pExtendedData = (
void*)vp;};
1062 bool ActivateOnPageOpen()
const {
return m_bActivateOnPageOpen;};
1063 void ActivateOnPageOpen(
bool onoff) {m_bActivateOnPageOpen = onoff;};
1064 float const AnnotLeft()
const {
return m_fAnnotLeft;};
1065 void AnnotLeft(
float f) {m_fAnnotLeft = f;};
1066 float const AnnotRight()
const {
return m_fAnnotRight;};
1067 void AnnotRight(
float f) {m_fAnnotRight = f;};
1068 float const AnnotBottom()
const {
return m_fAnnotBottom;};
1069 void AnnotBottom(
float f) {m_fAnnotBottom = f;};
1070 float const AnnotTop()
const {
return m_fAnnotTop;};
1071 void AnnotTop(
float f) {m_fAnnotTop = f;};
1075 const char *m_license;
1077 int m_antialiasLevel;
1079 unsigned char* m_imageOutputBuffer;
1080 size_t m_imageOutputBufferSize;
1087 int const Version()
const {
return m_Version;};
1088 void Version(
int const v) {m_Version = v;};
1091 H_OUTPUT_TYPE m_OutputType;
1109 void Ascii(
bool const tf) {m_bAscii = tf;};
1119 double m_ratio_cm_to_internal_units;
1149 float m_PageMargins[4];
1213 char m_bAVICodec[4];
1251 virtual const char * GetOutputName() = 0;
1269 virtual void RegisterOutputHandlerTypes() = 0;
1279 virtual HFileOutputResult FileOutputByKey(
const char * filename, HC_KEY key,
HOutputHandlerOptions * options);
1280 virtual HFileOutputResult FileOutputByKey(
const __wchar_t * filename, HC_KEY key,
HOutputHandlerOptions * options);
1289 virtual HFileOutputResult FileOutputByKey(
const unsigned short * filename, HC_KEY key,
HOutputHandlerOptions * options);
1300 virtual HFileOutputResult FileOutputFromImageKey(
const char * filename, HC_KEY image_key,
HOutputHandlerOptions * options);
1301 virtual HFileOutputResult FileOutputFromImageKey(
const __wchar_t * filename, HC_KEY image_key,
HOutputHandlerOptions * options);
1313 virtual const char * GetOutputTypesString() = 0;
1331 virtual const char * GetOutputDefaultHSRA();
1336 const char * GetOutputProgress();
1341 float GetOutputPercentProgress();
1346 const __wchar_t * GetOutputInformation();
1374 void ReportOutputProgress(
const char * progress);
1377 void ReportOutputPercentProgress(
float percent_progress);
1380 void ReportOutputInformation(
const char * information);
1383 void SetModuleDirectory(
const char *module_directory);
1384 void SetModuleDirectory(
const __wchar_t *module_directory);
1391 void SetStartingOutput();
1396 void SetFinishedOutput();
1401 unsigned long m_OutputOps;
1403 char *m_module_directory;
1407 float m_percent_progress1;
1408 float m_percent_progress2;
1409 __wchar_t *m_information;
1410 struct vlist_s *m_information_list;
1505 virtual HInputHandler * GetInputHandler(
const char * file_type);
1506 HInputHandler * GetInputHandler(
const __wchar_t * file_type);
1508 HInputHandler * GetInputHandler(
const unsigned short * file_type);
1515 virtual HOutputHandler * GetOutputHandler(
const char * file_type);
1516 virtual HOutputHandler * GetOutputHandler(
const __wchar_t * file_type);
1522 virtual void RegisterHandlers();
1528 virtual const char * GetInputHandlerTypes();
1534 virtual const char * GetOutputHandlerTypes();
1543 virtual HIOConnector * CreateConnector(
const char * file_type);
1549 virtual void FreeConnector(
HIOConnector * old_connector);
1563 static void GetFileOutputResultString(HFileOutputResult result,
char *result_str);
1568 void CleanCallbacks();
1600 char * m_input_types;
1601 int m_input_types_allocated;
1603 char * m_output_types;
1604 int m_output_types_allocated;
Definition: HIOManager.h:1421
HBaseView * m_pHBaseView
A pointer to the HBaseView object for this output.
Definition: HIOManager.h:914
double PrintToScale() const
Definition: HIOManager.h:1124
Definition: HIOManager.h:848
void(* HIO_FREE_CONNECTOR_FUNCTION)(void *)
Definition: HIOManager.h:141
Definition: HIOManager.h:99
void WindowFrame(bool const tf)
Determines if a window frame is drawn or not.
Definition: HIOManager.h:1033
void HSRAOptions(char const *const tf)
HOOPS HSRAOption string .
Definition: HIOManager.h:946
float const PaperHeight() const
Height for output sizing in inches.
Definition: HIOManager.h:986
ExportNameMap m_names
Definition: HIOManager.h:1163
void PrintToScale(double const r)
Definition: HIOManager.h:1141
Specifies an HInputHandler for model data.
Definition: HIOManager.h:226
char const * m_pPDFResourceDirectory
Definition: HIOManager.h:1160
struct vlist_s * owned_output_handlers
A list of default HOutputHandlers created by the manager.
Definition: HIOManager.h:1589
The HBhvBehaviorManager class stores and manages all animation related data.
Definition: HBhvBehaviorManager.h:237
char const *const HSRAOptions() const
HOOPS HSRAOption string .
Definition: HIOManager.h:944
Low compression, high accuracy.
Definition: HIOManager.h:869
void *(* HIO_CREATE_FREE_FUNCTION)(void *)
Definition: HIOManager.h:137
void StlNormals(bool const tf)
Determines if we generate and output face normals when writing to STL file format.
Definition: HIOManager.h:1116
float m_fAnnotLeft
Definition: HIOManager.h:1172
Definition: HUtility.h:2357
bool m_bPrcUseNameUserData
Definition: HIOManager.h:1193
MVO_POINTER_SIZED_INT m_iPrcNameUserDataIndex
Definition: HIOManager.h:1196
Specifies an HOutputHandler for geometry data.
Definition: HIOManager.h:836
struct vhash_s * mhash_Hoops2Kernel
A hash map between HOOPS Keys and kernel entities.
Definition: HIOManager.h:214
Definition: HIOManager.h:148
bool m_bAVIShowCompressionDialog
Definition: HIOManager.h:1203
The HCamera class is the data type of a HOOPS Camera Attribute.
Definition: HUtility.h:540
bool m_bPrcRemoveBRep
Definition: HIOManager.h:1187
Specifies an HOutputHandler for a hardcopy output type.
Definition: HIOManager.h:838
HBhvBehaviorManager * m_pBehaviorManager
A pointer to the behavior manager.
Definition: HIOManager.h:1152
HOutputHandlerStyle
Definition: HIOManager.h:833
Specifies an HInputHandler for image data.
Definition: HIOManager.h:227
bool ConserveMemory() const
This option has been deprecated and has no effect.
Definition: HIOManager.h:1020
Definition: HIOManager.h:122
bool ForceGrayscale() const
Specifies black and white output.
Definition: HIOManager.h:993
HPrcBrepCompression
Definition: HIOManager.h:867
void PaperWidth(float const f)
Width for output sizing in inches.
Definition: HIOManager.h:981
void ConserveMemory(bool const tf)
This option has been deprecated and has no effect.
Definition: HIOManager.h:1022
Specifies an HOutputHandler for an image.
Definition: HIOManager.h:837
struct vhash_s * input_handlers
A hash of HInputHandlers.
Definition: HIOManager.h:1577
HOutputHandler an abstract base class for model and image output.
Definition: HIOManager.h:1234
float const PaperWidth() const
Width for output sizing in inches.
Definition: HIOManager.h:979
Specifies using an iso view (looking at the origin from (1, 1, 1))
Definition: HIOManager.h:236
Specifies an HOutputHandler for a MVO style html file.
Definition: HIOManager.h:839
void OutputType(H_OUTPUT_TYPE ot)
The output type.
Definition: HIOManager.h:1095
void PaperHeight(float const f)
Height for output sizing in inches.
Definition: HIOManager.h:988
struct vhash_s * connector_procs
A hash of HIOConnector Create/Free functions.
Definition: HIOManager.h:1583
bool Ascii() const
Some file formats, support binary and ascii such as STL. Set this to true for ascii output...
Definition: HIOManager.h:1107
bool Output3d() const
Some file formats, such as PDF and DWF, support 2d and/or 3d output. Set this to TRUE for 3d output...
Definition: HIOManager.h:1100
bool StlNormals() const
Determines if we generate and output face normals when writing to STL file format.
Definition: HIOManager.h:1114
HOutputHandlerOptions(const HOutputHandlerOptions &o)
Definition: HIOManager.h:901
float m_fAnnotBottom
Definition: HIOManager.h:1178
void UseSubscreen(bool const tf)
Determines if HOOPS is calculating a subscreen to match the output to the size of the view window...
Definition: HIOManager.h:1040
void * m_pPRCAsmModelFile
Definition: HIOManager.h:1166
char const * m_pHTMLTemplateFile
Definition: HIOManager.h:1220
int const ImageDpi() const
Indicates the DPI used for images. This is calculated with info from HC_Show_Device_Info.
Definition: HIOManager.h:1045
High compression, low accuracy.
Definition: HIOManager.h:871
float m_fAnnotTop
Definition: HIOManager.h:1181
char const * m_pDWFModelName
Definition: HIOManager.h:1155
HDwgViewVector
Definition: HIOManager.h:234
struct vlist_s * loaded_input_handlers
A list of dynamically loaded HInputHandlers libraries.
Definition: HIOManager.h:1592
void Model(HBaseModel *const m)
A pointer to the HBaseModel object for this output.
Definition: HIOManager.h:925
HPoint const *const WindowColor() const
Set the color of the window. The RGB color stored in xyz of HPoint.
Definition: HIOManager.h:951
The HBaseModel class is used to store and manage model information.
Definition: HBaseModel.h:47
HInputHandlerStyle
Definition: HIOManager.h:225
The HPoint class is the data type of a three-dimensional point.
Definition: HGlobals.h:121
H_OUTPUT_TYPE OutputType() const
The output type.
Definition: HIOManager.h:1093
bool m_bExporting2DDwf
Definition: HIOManager.h:1216
Definition: HIOManager.h:879
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:332
Specifies using a top view (looking down the positive Z-axis at the XY-plane)
Definition: HIOManager.h:235
int const PaperDpi() const
Indicates the DPI used for paper. This is set from the options dialog.
Definition: HIOManager.h:1052
void WindowColor(HPoint const *const tf)
Set the color of the window. The RGB color stored in xyz of HPoint.
Definition: HIOManager.h:953
bool m_bPrcRemoveAttributes
Definition: HIOManager.h:1190
bool UseWindowColor() const
If set to true, the background color of the view is used.
Definition: HIOManager.h:958
struct vhash_s * output_handlers
A hash of HOutputHandlers.
Definition: HIOManager.h:1580
float m_fAnnotRight
Definition: HIOManager.h:1175
bool m_bActivateOnPageOpen
Definition: HIOManager.h:1169
int m_Version
The file format version desired for writing.
Definition: HIOManager.h:1086
Medium compression, medium accuracy.
Definition: HIOManager.h:870
void WindowWidth(float const f)
Width for output sizing in inches.
Definition: HIOManager.h:967
unsigned long GetOutputOps()
Definition: HIOManager.h:1257
void UseWindowColor(bool const tf)
If set to true, the background color of the view is used.
Definition: HIOManager.h:960
HPrcBrepCompression m_ePrcBrepCompression
Definition: HIOManager.h:1184
void Output3d(bool const tf)
Some file formats, such as PDF and DWF, support 2d and/or 3d output. Set this to TRUE for 3d output...
Definition: HIOManager.h:1102
bool m_bPrcCompressTessellation
Definition: HIOManager.h:1200
No compression.
Definition: HIOManager.h:868
HBaseView *const View() const
A pointer to the HBaseView object for this output.
Definition: HIOManager.h:916
HCamera *const Camera() const
A pointer to the HCamera object for this output.
Definition: HIOManager.h:930
bool FastPrint() const
This option has been deprecated. Specifies printing method.
Definition: HIOManager.h:1013
struct vlist_s * loaded_output_handlers
A list of dynamically loaded HOutputHandlers libraries.
Definition: HIOManager.h:1595
void PaperDpi(int const dpi)
Indicates the DPI used for paper. This is set from the options dialog.
Definition: HIOManager.h:1054
struct vlist_s * owned_input_handlers
A list of default HInputHandlers created by the manager.
Definition: HIOManager.h:1586
void SetOutputOps(unsigned long ops)
This sets the HOutputOp.
Definition: HIOManager.h:1399
struct vhash_s * mhash_Kernel2Hoops
A hash map between kernel entities and HOOPS Keys.
Definition: HIOManager.h:217
HC_KEY const Key() const
The HC_Key for this output.
Definition: HIOManager.h:937
HBaseModel *const Model() const
A pointer to the HBaseModel object for this output.
Definition: HIOManager.h:923
float const WindowWidth() const
Width for output sizing in inches.
Definition: HIOManager.h:965
bool UseSubscreen() const
Determines if HOOPS is calculating a subscreen to match the output to the size of the view window...
Definition: HIOManager.h:1038
Specifies using the active viewport in the DWG file if present (if no active viewport is present...
Definition: HIOManager.h:237
struct vhash_s * created_connectors
A list of created HIOConnectors.
Definition: HIOManager.h:1598
void WindowHeight(float const f)
Height for output sizing in inches.
Definition: HIOManager.h:974
HOutputHandlerOptions(HOutputHandlerOptions const *o)
Definition: HIOManager.h:894
float const WindowHeight() const
Height for output sizing in inches.
Definition: HIOManager.h:972
bool m_bHTMLIncludeMeasurementInformation
Definition: HIOManager.h:1223
void View(HBaseView *const v)
A pointer to the HBaseView object for this output.
Definition: HIOManager.h:918
Specifies using the view determined by the camera in the scene segment.
Definition: HIOManager.h:238
size_t LineFuseThreshold() const
Definition: HIOManager.h:1003
bool WindowFrame() const
Determines if a window frame is drawn or not.
Definition: HIOManager.h:1031