28 enum HFileOutputResult;
34 class HStreamFileToolkit;
40 H_OUTPUT_TYPE_DEFAULT = 0,
41 H_PDF_OUTPUT_PORTFOLIO,
45 H_SINGLE_PASS_NO_HIDDEN_SURFACES
52 #define HInputOpNone (1UL<<0)
57 #define HInputOpFileInputByKey (1UL<<1)
62 #define HInputOpFileInputToImageKey (1UL<<2)
67 #define HOutputOpNone (1UL<<0)
72 #define HOutputOpFileOutputByKey (1UL<<1)
77 #define HOutputOpFileOutputFromImageKey (1UL<<2)
84 #define HIORegisterInputType(type,input_object) do {HIOManager::GetCurrentHIOManager()->RegisterInputHandler(type, input_object); }while(0);
89 #define HIORegisterOutputType(type,output_object) do { HIOManager::GetCurrentHIOManager()->RegisterOutputHandler(type, output_object); }while(0);
107 virtual void Notice(
const char * notice) = 0;
108 virtual void Notice(
const __wchar_t * notice) {
109 UNREFERENCED(notice);
111 #ifdef H_USHORT_OVERLOAD
112 virtual void Notice(
const unsigned short * notice) {
113 Notice((__wchar_t
const *) notice);
129 virtual void Notice(
float notice) =0;
136 typedef void * (*HIO_CREATE_FREE_FUNCTION)(
void *);
162 virtual HC_KEY GetHoopsEntity(
void * pKernelEntity);
163 virtual HC_KEY GetHoopsEntity(
void * pKernelEntity,
HC_KEY modelKey);
172 virtual void * GetKernelEntity(
HC_KEY key);
173 virtual void * GetKernelEntity(
HC_KEY key,
HC_KEY modelKey);
181 virtual bool GetHoopsEntities(
void * pKernelEntity, vlist_s *ret_HoopsKeysList);
182 virtual bool GetHoopsEntities(
void * pKernelEntity, vlist_s *ret_HoopsKeysList,
HC_KEY modelKey);
190 virtual bool GetKernelEntities(
HC_KEY key, vlist_s *ret_KernelEntitiesList);
191 virtual bool GetKernelEntities(
HC_KEY key, vlist_s *ret_KernelEntitiesList,
HC_KEY modelKey);
198 virtual void AddConnection(
HC_KEY key,
void* pKernelEntity);
199 virtual void AddConnection(
HC_KEY key,
void* pKernelEntity,
HC_KEY modelKey);
208 virtual void OptimizeTree(
const char * segname,
const char * option_string);
264 m_bIgnoreOffEntities =
false;
267 m_bImportMetadata =
false;
270 m_bInputViaHSF =
false;
272 m_bImportWireframeForBrep =
false;
274 m_listRegAppNames = 0;
275 m_listEntityType = 0;
276 m_bForceReimport =
false;
277 m_listDWGLayouts = 0;
278 m_bAttachDWGHandles =
false;
279 m_bImportAllLayouts =
false;
280 m_bDWGInsertMeshesAsShells =
false;
281 m_bDisableDWGDrawOrder =
false;
283 m_sDwgContrastColorRgb =
HPoint(0, 0, 0);
284 m_bLegacyOptimize =
false;
285 m_bDwgDepthRangeDrawOrder =
false;
288 m_iDGNCellHeaderOption = SINGLE_ENTITY_CELLHEADER;
290 m_factorForSmartSolids = 45.0;
291 m_bDGNRebaselineModel =
false;
292 m_bDGNImportAllModels =
false;
295 m_pPRCPMIConnector = 0;
296 m_pPRCTopologyManager = 0;
297 m_bPRCMergeFaces =
false;
298 m_bPRCImportNonBrepFaces =
true;
299 m_bPRCCreatePRCFileOnly =
false;
300 m_bPRCInstanceShells =
true;
301 m_bPRCCalculatePhysicalProperties =
false;
302 m_pPRCMultiModelSelectionCallback = 0;
303 m_pPRCAsmModelFile = 0;
304 m_pPRCDeleteModelFile =
false;
305 m_bPRCStoreUserAttributes =
true;
306 m_pPRCDeleteModelCallback = 0;
307 m_bPRCImportHiddenObjects =
false;
310 m_bDisableDWFDrawOrder =
false;
311 m_bDWFRebaselineModel =
true;
312 m_bImportThumbnail =
false;
315 m_bOptimizeSegmentTree =
false;
370 m_bPRCImportNonBrepFaces = o->m_bPRCImportNonBrepFaces;
373 m_bPRCInstanceShells = o->m_bPRCInstanceShells;
374 m_bPRCCalculatePhysicalProperties = o->m_bPRCCalculatePhysicalProperties;
440 m_bPRCImportNonBrepFaces = o.m_bPRCImportNonBrepFaces;
442 m_bPRCInstanceShells = o.m_bPRCInstanceShells;
443 m_bPRCCalculatePhysicalProperties = o.m_bPRCCalculatePhysicalProperties;
569 bool m_bPRCImportNonBrepFaces;
573 bool m_bPRCInstanceShells;
575 bool m_bPRCCalculatePhysicalProperties;
577 void (*m_pPRCMultiModelSelectionCallback) (
char const * in_container,
int in_num_configs,
char const ** in_configs,
578 int & out_config_selection);
582 void (*m_pPRCDeleteModelCallback) (
void*& pPRCAsmModelFile);
694 virtual const char * GetInputName() = 0;
703 virtual void RegisterInputHandlerTypes() = 0;
720 virtual HFileInputResult FileInputByKey(
const char * filename, HC_KEY key,
HInputHandlerOptions * options);
721 virtual HFileInputResult FileInputByKey(
const __wchar_t * filename, HC_KEY key,
HInputHandlerOptions * options);
732 virtual HFileInputResult FileInputByKey(
const unsigned short * filename, HC_KEY key,
HInputHandlerOptions * options);
744 virtual HFileInputResult FileInputToImageKey(
const char * filename, HC_KEY * image_key, HC_KEY segment_key,
HInputHandlerOptions * options);
745 virtual HFileInputResult FileInputToImageKey(
const __wchar_t * filename, HC_KEY * image_key, HC_KEY segment_key,
HInputHandlerOptions * options);
757 virtual HFileInputResult FileInputToImageKey(
const unsigned short * filename, HC_KEY * image_key, HC_KEY segment_key,
HInputHandlerOptions * options);
771 virtual const char * GetInputTypesString() = 0;
776 const __wchar_t * GetInputProgress();
781 float GetInputPercentProgress();
786 const __wchar_t * GetInputInformation();
814 void ReportInputProgress(
const char * progress);
815 void ReportInputProgress(
const __wchar_t * progress);
818 void ReportInputPercentProgress(
float percent_progress);
821 void ReportInputInformation(
const char * information);
822 void ReportInputInformation(
const __wchar_t * information);
824 void SetModuleDirectory(
const char *module_directory);
825 void SetModuleDirectory(
const __wchar_t *module_directory);
831 void SetStartingInput(
const char *filename);
832 void SetStartingInput(
const __wchar_t *filename = 0);
837 void SetFinishedInput();
843 unsigned long m_InputOps;
845 __wchar_t *m_module_directory;
849 __wchar_t *m_progress;
850 float m_percent_progress1;
851 float m_percent_progress2;
852 __wchar_t *m_information;
853 struct vlist_s *m_information_list;
864 HOutputHandlerStyleModel,
885 H_FORMAT_TEXT lookup(
HC_KEY)
const;
886 void tag(
HC_KEY, H_FORMAT_TEXT
const &);
914 virtual char const * GetType()
const;
918 virtual bool PopulateOptions();
961 void Camera(
HCamera *
const c) {m_pCamera = c;};
968 void Key(HC_KEY
const k) {m_Key = k;};
971 char const * m_pHSRAOptions;
978 HPoint const * m_pWindowColor;
985 bool m_bUseWindowColor;
992 float m_Window_Width;
999 float m_Window_Height;
1006 float m_Paper_Width;
1013 float m_Paper_Height;
1020 bool m_ForceGrayscale;
1024 void ForceGrayscale(
bool const tf) {m_ForceGrayscale = tf;};
1031 void FastPrint(
bool const tf) {m_bFastPrint = tf;};
1034 bool m_bConserveMemory;
1040 bool m_bWriteAnimations;
1041 bool WriteAnimations()
const {
return m_bWriteAnimations;};
1042 void WriteAnimations(
bool const tf) {m_bWriteAnimations = tf;};
1045 bool m_bWindowFrame;
1052 bool m_bUseSubscreen;
1063 void ImageDpi(
int const dpi) {m_Image_Dpi = dpi;};
1073 void * m_pExtendedData;
1074 void *
const ExtendedData()
const {
return m_pExtendedData;};
1075 void ExtendedData(
void *
const vp) {m_pExtendedData = vp;};
1076 void ExtendedData(HPDFOptions *
const vp) {m_pExtendedData = (
void*)vp;};
1078 bool ActivateOnPageOpen()
const {
return m_bActivateOnPageOpen;};
1079 void ActivateOnPageOpen(
bool onoff) {m_bActivateOnPageOpen = onoff;};
1080 float const AnnotLeft()
const {
return m_fAnnotLeft;};
1081 void AnnotLeft(
float f) {m_fAnnotLeft = f;};
1082 float const AnnotRight()
const {
return m_fAnnotRight;};
1083 void AnnotRight(
float f) {m_fAnnotRight = f;};
1084 float const AnnotBottom()
const {
return m_fAnnotBottom;};
1085 void AnnotBottom(
float f) {m_fAnnotBottom = f;};
1086 float const AnnotTop()
const {
return m_fAnnotTop;};
1087 void AnnotTop(
float f) {m_fAnnotTop = f;};
1091 const char *m_license;
1093 int m_antialiasLevel;
1095 unsigned char* m_imageOutputBuffer;
1096 size_t m_imageOutputBufferSize;
1103 int const Version()
const {
return m_Version;};
1104 void Version(
int const v) {m_Version = v;};
1107 H_OUTPUT_TYPE m_OutputType;
1125 void Ascii(
bool const tf) {m_bAscii = tf;};
1135 double m_ratio_cm_to_internal_units;
1165 float m_PageMargins[4];
1211 char m_bAVICodec[4];
1242 virtual const char * GetOutputName() = 0;
1260 virtual void RegisterOutputHandlerTypes() = 0;
1270 virtual HFileOutputResult FileOutputByKey(
const char * filename, HC_KEY key,
HOutputHandlerOptions * options);
1271 virtual HFileOutputResult FileOutputByKey(
const __wchar_t * filename, HC_KEY key,
HOutputHandlerOptions * options);
1280 virtual HFileOutputResult FileOutputByKey(
const unsigned short * filename, HC_KEY key,
HOutputHandlerOptions * options);
1291 virtual HFileOutputResult FileOutputFromImageKey(
const char * filename, HC_KEY image_key,
HOutputHandlerOptions * options);
1292 virtual HFileOutputResult FileOutputFromImageKey(
const __wchar_t * filename, HC_KEY image_key,
HOutputHandlerOptions * options);
1304 virtual const char * GetOutputTypesString() = 0;
1322 virtual const char * GetOutputDefaultHSRA();
1327 const char * GetOutputProgress();
1332 float GetOutputPercentProgress();
1337 const __wchar_t * GetOutputInformation();
1365 void ReportOutputProgress(
const char * progress);
1368 void ReportOutputPercentProgress(
float percent_progress);
1371 void ReportOutputInformation(
const char * information);
1374 void SetModuleDirectory(
const char *module_directory);
1375 void SetModuleDirectory(
const __wchar_t *module_directory);
1382 void SetStartingOutput();
1387 void SetFinishedOutput();
1392 unsigned long m_OutputOps;
1394 char *m_module_directory;
1398 float m_percent_progress1;
1399 float m_percent_progress2;
1400 __wchar_t *m_information;
1401 struct vlist_s *m_information_list;
1457 virtual HInputHandler * GetInputHandler(
const char * file_type);
1458 HInputHandler * GetInputHandler(
const __wchar_t * file_type);
1460 HInputHandler * GetInputHandler(
const unsigned short * file_type);
1467 virtual HOutputHandler * GetOutputHandler(
const char * file_type);
1468 virtual HOutputHandler * GetOutputHandler(
const __wchar_t * file_type);
1474 virtual void RegisterHandlers();
1480 virtual const char * GetInputHandlerTypes();
1486 virtual const char * GetOutputHandlerTypes();
1495 virtual HIOConnector * CreateConnector(
const char * file_type);
1501 virtual void FreeConnector(
HIOConnector * old_connector);
1515 static void GetFileOutputResultString(HFileOutputResult result,
char *result_str);
1543 char * m_input_types;
1544 int m_input_types_allocated;
1546 char * m_output_types;
1547 int m_output_types_allocated;
Definition: HIOManager.h:1412
HBaseView * m_pHBaseView
A pointer to the HBaseView object for this output.
Definition: HIOManager.h:943
double PrintToScale() const
Definition: HIOManager.h:1140
Definition: HIOManager.h:877
void(* HIO_FREE_CONNECTOR_FUNCTION)(void *)
Definition: HIOManager.h:140
Definition: HIOManager.h:98
void WindowFrame(bool const tf)
Determines if a window frame is drawn or not.
Definition: HIOManager.h:1049
void HSRAOptions(char const *const tf)
HOOPS HSRAOption string .
Definition: HIOManager.h:975
float const PaperHeight() const
Height for output sizing in inches.
Definition: HIOManager.h:1015
ExportNameMap m_names
Definition: HIOManager.h:1174
void PrintToScale(double const r)
Definition: HIOManager.h:1157
Specifies an HInputHandler for model data.
Definition: HIOManager.h:225
struct vlist_s * owned_output_handlers
A list of default HOutputHandlers created by the manager.
Definition: HIOManager.h:1532
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:973
Low compression, high accurracy.
Definition: HIOManager.h:898
void *(* HIO_CREATE_FREE_FUNCTION)(void *)
Definition: HIOManager.h:136
void StlNormals(bool const tf)
Determines if we generate and output face normals when writing to STL file format.
Definition: HIOManager.h:1132
float m_fAnnotLeft
Definition: HIOManager.h:1183
Definition: HUtility.h:2324
Specifies an HOutputHandler for geometry data.
Definition: HIOManager.h:865
struct vhash_s * mhash_Hoops2Kernel
A hash map between HOOPS Keys and kernel entities.
Definition: HIOManager.h:213
Definition: HIOManager.h:147
bool m_bAVIShowCompressionDialog
Definition: HIOManager.h:1201
The HCamera class is the data type of a HOOPS Camera Attribute.
Definition: HUtility.h:537
Specifies an HOutputHandler for a hardcopy output type.
Definition: HIOManager.h:867
HBhvBehaviorManager * m_pBehaviorManager
A pointer to the behavior manager.
Definition: HIOManager.h:1168
HOutputHandlerStyle
Definition: HIOManager.h:862
Specifies an HInputHandler for image data.
Definition: HIOManager.h:226
bool ConserveMemory() const
This option has been deprecated and has no effect.
Definition: HIOManager.h:1036
Definition: HIOManager.h:121
bool ForceGrayscale() const
Specifies black and white output.
Definition: HIOManager.h:1022
HPrcBrepCompression
Definition: HIOManager.h:896
void PaperWidth(float const f)
Width for output sizing in inches.
Definition: HIOManager.h:1010
void ConserveMemory(bool const tf)
This option has been deprecated and has no effect.
Definition: HIOManager.h:1038
Specifies an HOutputHandler for an image.
Definition: HIOManager.h:866
struct vhash_s * input_handlers
A hash of HInputHandlers.
Definition: HIOManager.h:1520
HOutputHandler an abstract base class for model and image output.
Definition: HIOManager.h:1225
float const PaperWidth() const
Width for output sizing in inches.
Definition: HIOManager.h:1008
Specifies using an iso view (looking at the origin from (1, 1, 1))
Definition: HIOManager.h:235
Specifies an HOutputHandler for a MVO style html file.
Definition: HIOManager.h:868
void OutputType(H_OUTPUT_TYPE ot)
The output type.
Definition: HIOManager.h:1111
void PaperHeight(float const f)
Height for output sizing in inches.
Definition: HIOManager.h:1017
struct vhash_s * connector_procs
A hash of HIOConnector Create/Free functions.
Definition: HIOManager.h:1526
bool Ascii() const
Some file formats, support binary and ascii such as STL. Set this to true for ascii output...
Definition: HIOManager.h:1123
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:1116
bool StlNormals() const
Determines if we generate and output face normals when writing to STL file format.
Definition: HIOManager.h:1130
HOutputHandlerOptions(const HOutputHandlerOptions &o)
Definition: HIOManager.h:930
float m_fAnnotBottom
Definition: HIOManager.h:1189
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:1056
void * m_pPRCAsmModelFile
Definition: HIOManager.h:1177
int const ImageDpi() const
Indicates the DPI used for images. This is calculated with info from HC_Show_Device_Info.
Definition: HIOManager.h:1061
High compression, low accurracy.
Definition: HIOManager.h:900
float m_fAnnotTop
Definition: HIOManager.h:1192
char const * m_pDWFModelName
Definition: HIOManager.h:1171
HDwgViewVector
Definition: HIOManager.h:233
struct vlist_s * loaded_input_handlers
A list of dynamically loaded HInputHandlers libraries.
Definition: HIOManager.h:1535
void Model(HBaseModel *const m)
A pointer to the HBaseModel object for this output.
Definition: HIOManager.h:954
HPoint const *const WindowColor() const
Set the color of the window. The RGB color stored in xyz of HPoint.
Definition: HIOManager.h:980
The HBaseModel class is used to store and manage model information.
Definition: HBaseModel.h:47
HInputHandlerStyle
Definition: HIOManager.h:224
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:1109
bool m_bExporting2DDwf
Definition: HIOManager.h:1214
Definition: HIOManager.h:908
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:234
int const PaperDpi() const
Indicates the DPI used for paper. This is set from the options dialog.
Definition: HIOManager.h:1068
void WindowColor(HPoint const *const tf)
Set the color of the window. The RGB color stored in xyz of HPoint.
Definition: HIOManager.h:982
bool UseWindowColor() const
If set to true, the background color of the view is used.
Definition: HIOManager.h:987
struct vhash_s * output_handlers
A hash of HOutputHandlers.
Definition: HIOManager.h:1523
float m_fAnnotRight
Definition: HIOManager.h:1186
bool m_bActivateOnPageOpen
Definition: HIOManager.h:1180
int m_Version
The file format version desired for writing.
Definition: HIOManager.h:1102
Medium compression, medium accurracy.
Definition: HIOManager.h:899
void WindowWidth(float const f)
Width for output sizing in inches.
Definition: HIOManager.h:996
unsigned long GetOutputOps()
Definition: HIOManager.h:1248
void UseWindowColor(bool const tf)
If set to true, the background color of the view is used.
Definition: HIOManager.h:989
HPrcBrepCompression m_ePrcBrepCompression
Definition: HIOManager.h:1195
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:1118
bool m_bPrcCompressTessellation
Definition: HIOManager.h:1198
No compression.
Definition: HIOManager.h:897
HBaseView *const View() const
A pointer to the HBaseView object for this output.
Definition: HIOManager.h:945
HCamera *const Camera() const
A pointer to the HCamera object for this output.
Definition: HIOManager.h:959
bool FastPrint() const
This option has been deprecated. Specifies printing method.
Definition: HIOManager.h:1029
struct vlist_s * loaded_output_handlers
A list of dynamically loaded HOutputHandlers libraries.
Definition: HIOManager.h:1538
void PaperDpi(int const dpi)
Indicates the DPI used for paper. This is set from the options dialog.
Definition: HIOManager.h:1070
struct vlist_s * owned_input_handlers
A list of default HInputHandlers created by the manager.
Definition: HIOManager.h:1529
void SetOutputOps(unsigned long ops)
This sets the HOutputOp.
Definition: HIOManager.h:1390
struct vhash_s * mhash_Kernel2Hoops
A hash map between kernel entities and HOOPS Keys.
Definition: HIOManager.h:216
HC_KEY const Key() const
The HC_Key for this output.
Definition: HIOManager.h:966
HBaseModel *const Model() const
A pointer to the HBaseModel object for this output.
Definition: HIOManager.h:952
float const WindowWidth() const
Width for output sizing in inches.
Definition: HIOManager.h:994
bool UseSubscreen() const
Determines if HOOPS is calculating a subscreen to match the output to the size of the view window...
Definition: HIOManager.h:1054
Specifies using the active viewport in the DWG file if present (if no active viewport is present...
Definition: HIOManager.h:236
struct vhash_s * created_connectors
A list of created HIOConnectors.
Definition: HIOManager.h:1541
void WindowHeight(float const f)
Height for output sizing in inches.
Definition: HIOManager.h:1003
HOutputHandlerOptions(HOutputHandlerOptions const *o)
Definition: HIOManager.h:923
float const WindowHeight() const
Height for output sizing in inches.
Definition: HIOManager.h:1001
void View(HBaseView *const v)
A pointer to the HBaseView object for this output.
Definition: HIOManager.h:947
Specifies using the view determined by the camera in the scene segment.
Definition: HIOManager.h:237
bool WindowFrame() const
Determines if a window frame is drawn or not.
Definition: HIOManager.h:1047