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_PRCModelUnits = 0.0f;
298 m_bDisableDWFDrawOrder =
false;
299 m_bDWFRebaselineModel =
true;
300 m_bImportThumbnail =
false;
303 m_bOptimizeSegmentTree =
false;
306 m_pOOCNodeDeltas = 0;
307 m_bOOCAutoUpdate =
true;
308 m_bOOCAutoCleanup =
true;
310 m_attributePrecisionMode = FORCE_FLOAT;
313 m_generatedDouble =
false;
319 m_z_separation = o->m_z_separation;
352 m_bPRCImportNonBrepFaces = o->m_bPRCImportNonBrepFaces;
355 m_bPRCInstanceShells = o->m_bPRCInstanceShells;
356 m_bPRCCalculatePhysicalProperties = o->m_bPRCCalculatePhysicalProperties;
386 m_z_separation = o.m_z_separation;
416 m_bPRCImportNonBrepFaces = o.m_bPRCImportNonBrepFaces;
418 m_bPRCInstanceShells = o.m_bPRCInstanceShells;
419 m_bPRCCalculatePhysicalProperties = o.m_bPRCCalculatePhysicalProperties;
515 bool m_bPRCImportNonBrepFaces;
519 bool m_bPRCInstanceShells;
521 bool m_bPRCCalculatePhysicalProperties;
523 void (*m_pPRCMultiModelSelectionCallback) (
char const * in_container,
int in_num_configs,
char const * in_configs[],
524 int & out_config_selection);
528 void (*m_pPRCDeleteModelCallback) (
void*& pPRCAsmModelFile);
579 double m_z_separation;
651 virtual const char * GetInputName() = 0;
660 virtual void RegisterInputHandlerTypes() = 0;
677 virtual HFileInputResult FileInputByKey(
const char * filename, HC_KEY key,
HInputHandlerOptions * options);
678 virtual HFileInputResult FileInputByKey(
const __wchar_t * filename, HC_KEY key,
HInputHandlerOptions * options);
689 virtual HFileInputResult FileInputByKey(
const unsigned short * filename, HC_KEY key,
HInputHandlerOptions * options);
701 virtual HFileInputResult FileInputToImageKey(
const char * filename, HC_KEY * image_key, HC_KEY segment_key,
HInputHandlerOptions * options);
702 virtual HFileInputResult FileInputToImageKey(
const __wchar_t * filename, HC_KEY * image_key, HC_KEY segment_key,
HInputHandlerOptions * options);
714 virtual HFileInputResult FileInputToImageKey(
const unsigned short * filename, HC_KEY * image_key, HC_KEY segment_key,
HInputHandlerOptions * options);
728 virtual const char * GetInputTypesString() = 0;
733 const __wchar_t * GetInputProgress();
738 float GetInputPercentProgress();
743 const __wchar_t * GetInputInformation();
771 void ReportInputProgress(
const char * progress);
772 void ReportInputProgress(
const __wchar_t * progress);
775 void ReportInputPercentProgress(
float percent_progress);
778 void ReportInputInformation(
const char * information);
779 void ReportInputInformation(
const __wchar_t * information);
781 void SetModuleDirectory(
const char *module_directory);
782 void SetModuleDirectory(
const __wchar_t *module_directory);
788 void SetStartingInput(
const char *filename);
789 void SetStartingInput(
const __wchar_t *filename = 0);
794 void SetFinishedInput();
800 unsigned long m_InputOps;
802 __wchar_t *m_module_directory;
806 __wchar_t *m_progress;
807 float m_percent_progress1;
808 float m_percent_progress2;
809 __wchar_t *m_information;
810 struct vlist_s *m_information_list;
821 HOutputHandlerStyleModel,
842 H_FORMAT_TEXT lookup(
HC_KEY)
const;
843 void tag(
HC_KEY, H_FORMAT_TEXT
const &);
871 virtual char const * GetType()
const;
875 virtual bool PopulateOptions();
918 void Camera(
HCamera *
const c) {m_pCamera = c;};
925 void Key(HC_KEY
const k) {m_Key = k;};
928 char const * m_pHSRAOptions;
935 HPoint const * m_pWindowColor;
942 bool m_bUseWindowColor;
949 float m_Window_Width;
956 float m_Window_Height;
970 float m_Paper_Height;
977 bool m_ForceGrayscale;
981 void ForceGrayscale(
bool const tf) {m_ForceGrayscale = tf;};
984 size_t m_lineFuseThreshold;
994 void LineFuseThreshold(
size_t const tf) {m_lineFuseThreshold = tf;};
1001 void FastPrint(
bool const tf) {m_bFastPrint = tf;};
1004 bool m_bConserveMemory;
1010 bool m_bWriteAnimations;
1011 bool WriteAnimations()
const {
return m_bWriteAnimations;};
1012 void WriteAnimations(
bool const tf) {m_bWriteAnimations = tf;};
1015 bool m_bWindowFrame;
1022 bool m_bUseSubscreen;
1033 void ImageDpi(
int const dpi) {m_Image_Dpi = dpi;};
1043 void * m_pExtendedData;
1044 void *
const ExtendedData()
const {
return m_pExtendedData;};
1045 void ExtendedData(
void *
const vp) {m_pExtendedData = vp;};
1046 void ExtendedData(HPDFOptions *
const vp) {m_pExtendedData = (
void*)vp;};
1048 bool ActivateOnPageOpen()
const {
return m_bActivateOnPageOpen;};
1049 void ActivateOnPageOpen(
bool onoff) {m_bActivateOnPageOpen = onoff;};
1050 float const AnnotLeft()
const {
return m_fAnnotLeft;};
1051 void AnnotLeft(
float f) {m_fAnnotLeft = f;};
1052 float const AnnotRight()
const {
return m_fAnnotRight;};
1053 void AnnotRight(
float f) {m_fAnnotRight = f;};
1054 float const AnnotBottom()
const {
return m_fAnnotBottom;};
1055 void AnnotBottom(
float f) {m_fAnnotBottom = f;};
1056 float const AnnotTop()
const {
return m_fAnnotTop;};
1057 void AnnotTop(
float f) {m_fAnnotTop = f;};
1061 const char *m_license;
1063 int m_antialiasLevel;
1065 unsigned char* m_imageOutputBuffer;
1066 size_t m_imageOutputBufferSize;
1073 int const Version()
const {
return m_Version;};
1074 void Version(
int const v) {m_Version = v;};
1077 H_OUTPUT_TYPE m_OutputType;
1095 void Ascii(
bool const tf) {m_bAscii = tf;};
1105 double m_ratio_cm_to_internal_units;
1135 float m_PageMargins[4];
1199 char m_bAVICodec[4];
1237 virtual const char * GetOutputName() = 0;
1255 virtual void RegisterOutputHandlerTypes() = 0;
1265 virtual HFileOutputResult FileOutputByKey(
const char * filename, HC_KEY key,
HOutputHandlerOptions * options);
1266 virtual HFileOutputResult FileOutputByKey(
const __wchar_t * filename, HC_KEY key,
HOutputHandlerOptions * options);
1275 virtual HFileOutputResult FileOutputByKey(
const unsigned short * filename, HC_KEY key,
HOutputHandlerOptions * options);
1286 virtual HFileOutputResult FileOutputFromImageKey(
const char * filename, HC_KEY image_key,
HOutputHandlerOptions * options);
1287 virtual HFileOutputResult FileOutputFromImageKey(
const __wchar_t * filename, HC_KEY image_key,
HOutputHandlerOptions * options);
1299 virtual const char * GetOutputTypesString() = 0;
1317 virtual const char * GetOutputDefaultHSRA();
1322 const char * GetOutputProgress();
1327 float GetOutputPercentProgress();
1332 const __wchar_t * GetOutputInformation();
1360 void ReportOutputProgress(
const char * progress);
1363 void ReportOutputPercentProgress(
float percent_progress);
1366 void ReportOutputInformation(
const char * information);
1369 void SetModuleDirectory(
const char *module_directory);
1370 void SetModuleDirectory(
const __wchar_t *module_directory);
1377 void SetStartingOutput();
1382 void SetFinishedOutput();
1387 unsigned long m_OutputOps;
1389 char *m_module_directory;
1393 float m_percent_progress1;
1394 float m_percent_progress2;
1395 __wchar_t *m_information;
1396 struct vlist_s *m_information_list;
1452 virtual HInputHandler * GetInputHandler(
const char * file_type);
1453 HInputHandler * GetInputHandler(
const __wchar_t * file_type);
1455 HInputHandler * GetInputHandler(
const unsigned short * file_type);
1462 virtual HOutputHandler * GetOutputHandler(
const char * file_type);
1463 virtual HOutputHandler * GetOutputHandler(
const __wchar_t * file_type);
1469 virtual void RegisterHandlers();
1475 virtual const char * GetInputHandlerTypes();
1481 virtual const char * GetOutputHandlerTypes();
1490 virtual HIOConnector * CreateConnector(
const char * file_type);
1496 virtual void FreeConnector(
HIOConnector * old_connector);
1510 static void GetFileOutputResultString(HFileOutputResult result,
char *result_str);
1542 char * m_input_types;
1543 int m_input_types_allocated;
1545 char * m_output_types;
1546 int m_output_types_allocated;
Definition: HIOManager.h:1407
HBaseView * m_pHBaseView
A pointer to the HBaseView object for this output.
Definition: HIOManager.h:900
double PrintToScale() const
Definition: HIOManager.h:1110
Definition: HIOManager.h:834
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:1019
void HSRAOptions(char const *const tf)
HOOPS HSRAOption string .
Definition: HIOManager.h:932
float const PaperHeight() const
Height for output sizing in inches.
Definition: HIOManager.h:972
ExportNameMap m_names
Definition: HIOManager.h:1149
void PrintToScale(double const r)
Definition: HIOManager.h:1127
Specifies an HInputHandler for model data.
Definition: HIOManager.h:226
char const * m_pPDFResourceDirectory
Definition: HIOManager.h:1146
struct vlist_s * owned_output_handlers
A list of default HOutputHandlers created by the manager.
Definition: HIOManager.h:1531
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:930
Low compression, high accurracy.
Definition: HIOManager.h:855
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:1102
float m_fAnnotLeft
Definition: HIOManager.h:1158
Definition: HUtility.h:2356
bool m_bPrcUseNameUserData
Definition: HIOManager.h:1179
MVO_POINTER_SIZED_INT m_iPrcNameUserDataIndex
Definition: HIOManager.h:1182
Specifies an HOutputHandler for geometry data.
Definition: HIOManager.h:822
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:1189
The HCamera class is the data type of a HOOPS Camera Attribute.
Definition: HUtility.h:540
bool m_bPrcRemoveBRep
Definition: HIOManager.h:1173
Specifies an HOutputHandler for a hardcopy output type.
Definition: HIOManager.h:824
HBhvBehaviorManager * m_pBehaviorManager
A pointer to the behavior manager.
Definition: HIOManager.h:1138
HOutputHandlerStyle
Definition: HIOManager.h:819
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:1006
Definition: HIOManager.h:122
bool ForceGrayscale() const
Specifies black and white output.
Definition: HIOManager.h:979
HPrcBrepCompression
Definition: HIOManager.h:853
void PaperWidth(float const f)
Width for output sizing in inches.
Definition: HIOManager.h:967
void ConserveMemory(bool const tf)
This option has been deprecated and has no effect.
Definition: HIOManager.h:1008
Specifies an HOutputHandler for an image.
Definition: HIOManager.h:823
struct vhash_s * input_handlers
A hash of HInputHandlers.
Definition: HIOManager.h:1519
HOutputHandler an abstract base class for model and image output.
Definition: HIOManager.h:1220
float const PaperWidth() const
Width for output sizing in inches.
Definition: HIOManager.h:965
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:825
void OutputType(H_OUTPUT_TYPE ot)
The output type.
Definition: HIOManager.h:1081
void PaperHeight(float const f)
Height for output sizing in inches.
Definition: HIOManager.h:974
struct vhash_s * connector_procs
A hash of HIOConnector Create/Free functions.
Definition: HIOManager.h:1525
bool Ascii() const
Some file formats, support binary and ascii such as STL. Set this to true for ascii output...
Definition: HIOManager.h:1093
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:1086
bool StlNormals() const
Determines if we generate and output face normals when writing to STL file format.
Definition: HIOManager.h:1100
HOutputHandlerOptions(const HOutputHandlerOptions &o)
Definition: HIOManager.h:887
float m_fAnnotBottom
Definition: HIOManager.h:1164
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:1026
void * m_pPRCAsmModelFile
Definition: HIOManager.h:1152
char const * m_pHTMLTemplateFile
Definition: HIOManager.h:1206
int const ImageDpi() const
Indicates the DPI used for images. This is calculated with info from HC_Show_Device_Info.
Definition: HIOManager.h:1031
High compression, low accurracy.
Definition: HIOManager.h:857
float m_fAnnotTop
Definition: HIOManager.h:1167
char const * m_pDWFModelName
Definition: HIOManager.h:1141
HDwgViewVector
Definition: HIOManager.h:234
struct vlist_s * loaded_input_handlers
A list of dynamically loaded HInputHandlers libraries.
Definition: HIOManager.h:1534
void Model(HBaseModel *const m)
A pointer to the HBaseModel object for this output.
Definition: HIOManager.h:911
HPoint const *const WindowColor() const
Set the color of the window. The RGB color stored in xyz of HPoint.
Definition: HIOManager.h:937
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:1079
bool m_bExporting2DDwf
Definition: HIOManager.h:1202
Definition: HIOManager.h:865
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:1038
void WindowColor(HPoint const *const tf)
Set the color of the window. The RGB color stored in xyz of HPoint.
Definition: HIOManager.h:939
bool m_bPrcRemoveAttributes
Definition: HIOManager.h:1176
bool UseWindowColor() const
If set to true, the background color of the view is used.
Definition: HIOManager.h:944
struct vhash_s * output_handlers
A hash of HOutputHandlers.
Definition: HIOManager.h:1522
float m_fAnnotRight
Definition: HIOManager.h:1161
bool m_bActivateOnPageOpen
Definition: HIOManager.h:1155
int m_Version
The file format version desired for writing.
Definition: HIOManager.h:1072
Medium compression, medium accurracy.
Definition: HIOManager.h:856
void WindowWidth(float const f)
Width for output sizing in inches.
Definition: HIOManager.h:953
unsigned long GetOutputOps()
Definition: HIOManager.h:1243
void UseWindowColor(bool const tf)
If set to true, the background color of the view is used.
Definition: HIOManager.h:946
HPrcBrepCompression m_ePrcBrepCompression
Definition: HIOManager.h:1170
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:1088
bool m_bPrcCompressTessellation
Definition: HIOManager.h:1186
No compression.
Definition: HIOManager.h:854
HBaseView *const View() const
A pointer to the HBaseView object for this output.
Definition: HIOManager.h:902
HCamera *const Camera() const
A pointer to the HCamera object for this output.
Definition: HIOManager.h:916
bool FastPrint() const
This option has been deprecated. Specifies printing method.
Definition: HIOManager.h:999
struct vlist_s * loaded_output_handlers
A list of dynamically loaded HOutputHandlers libraries.
Definition: HIOManager.h:1537
void PaperDpi(int const dpi)
Indicates the DPI used for paper. This is set from the options dialog.
Definition: HIOManager.h:1040
struct vlist_s * owned_input_handlers
A list of default HInputHandlers created by the manager.
Definition: HIOManager.h:1528
void SetOutputOps(unsigned long ops)
This sets the HOutputOp.
Definition: HIOManager.h:1385
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:923
HBaseModel *const Model() const
A pointer to the HBaseModel object for this output.
Definition: HIOManager.h:909
float const WindowWidth() const
Width for output sizing in inches.
Definition: HIOManager.h:951
bool UseSubscreen() const
Determines if HOOPS is calculating a subscreen to match the output to the size of the view window...
Definition: HIOManager.h:1024
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:1540
void WindowHeight(float const f)
Height for output sizing in inches.
Definition: HIOManager.h:960
HOutputHandlerOptions(HOutputHandlerOptions const *o)
Definition: HIOManager.h:880
float const WindowHeight() const
Height for output sizing in inches.
Definition: HIOManager.h:958
bool m_bHTMLIncludeMeasurementInformation
Definition: HIOManager.h:1209
void View(HBaseView *const v)
A pointer to the HBaseView object for this output.
Definition: HIOManager.h:904
Specifies using the view determined by the camera in the scene segment.
Definition: HIOManager.h:238
size_t LineFuseThreshold() const
Definition: HIOManager.h:989
bool WindowFrame() const
Determines if a window frame is drawn or not.
Definition: HIOManager.h:1017