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;
314 m_z_separation = o->m_z_separation;
347 m_bPRCImportNonBrepFaces = o->m_bPRCImportNonBrepFaces;
350 m_bPRCInstanceShells = o->m_bPRCInstanceShells;
351 m_bPRCCalculatePhysicalProperties = o->m_bPRCCalculatePhysicalProperties;
377 m_z_separation = o.m_z_separation;
407 m_bPRCImportNonBrepFaces = o.m_bPRCImportNonBrepFaces;
409 m_bPRCInstanceShells = o.m_bPRCInstanceShells;
410 m_bPRCCalculatePhysicalProperties = o.m_bPRCCalculatePhysicalProperties;
502 bool m_bPRCImportNonBrepFaces;
506 bool m_bPRCInstanceShells;
508 bool m_bPRCCalculatePhysicalProperties;
510 void (*m_pPRCMultiModelSelectionCallback) (
char const * in_container,
int in_num_configs,
char const * in_configs[],
511 int & out_config_selection);
515 void (*m_pPRCDeleteModelCallback) (
void*& pPRCAsmModelFile);
566 double m_z_separation;
616 virtual const char * GetInputName() = 0;
625 virtual void RegisterInputHandlerTypes() = 0;
642 virtual HFileInputResult FileInputByKey(
const char * filename, HC_KEY key,
HInputHandlerOptions * options);
643 virtual HFileInputResult FileInputByKey(
const __wchar_t * filename, HC_KEY key,
HInputHandlerOptions * options);
654 virtual HFileInputResult FileInputByKey(
const unsigned short * filename, HC_KEY key,
HInputHandlerOptions * options);
666 virtual HFileInputResult FileInputToImageKey(
const char * filename, HC_KEY * image_key, HC_KEY segment_key,
HInputHandlerOptions * options);
667 virtual HFileInputResult FileInputToImageKey(
const __wchar_t * filename, HC_KEY * image_key, HC_KEY segment_key,
HInputHandlerOptions * options);
679 virtual HFileInputResult FileInputToImageKey(
const unsigned short * filename, HC_KEY * image_key, HC_KEY segment_key,
HInputHandlerOptions * options);
693 virtual const char * GetInputTypesString() = 0;
698 const __wchar_t * GetInputProgress();
703 float GetInputPercentProgress();
708 const __wchar_t * GetInputInformation();
736 void ReportInputProgress(
const char * progress);
737 void ReportInputProgress(
const __wchar_t * progress);
740 void ReportInputPercentProgress(
float percent_progress);
743 void ReportInputInformation(
const char * information);
744 void ReportInputInformation(
const __wchar_t * information);
746 void SetModuleDirectory(
const char *module_directory);
747 void SetModuleDirectory(
const __wchar_t *module_directory);
753 void SetStartingInput(
const char *filename);
754 void SetStartingInput(
const __wchar_t *filename = 0);
759 void SetFinishedInput();
765 unsigned long m_InputOps;
767 __wchar_t *m_module_directory;
771 __wchar_t *m_progress;
772 float m_percent_progress1;
773 float m_percent_progress2;
774 __wchar_t *m_information;
775 struct vlist_s *m_information_list;
786 HOutputHandlerStyleModel,
807 H_FORMAT_TEXT lookup(
HC_KEY)
const;
808 void tag(
HC_KEY, H_FORMAT_TEXT
const &);
836 virtual char const * GetType()
const;
840 virtual bool PopulateOptions();
883 void Camera(
HCamera *
const c) {m_pCamera = c;};
890 void Key(HC_KEY
const k) {m_Key = k;};
893 char const * m_pHSRAOptions;
900 HPoint const * m_pWindowColor;
907 bool m_bUseWindowColor;
914 float m_Window_Width;
921 float m_Window_Height;
935 float m_Paper_Height;
942 bool m_ForceGrayscale;
946 void ForceGrayscale(
bool const tf) {m_ForceGrayscale = tf;};
949 size_t m_lineFuseThreshold;
959 void LineFuseThreshold(
size_t const tf) {m_lineFuseThreshold = tf;};
966 void FastPrint(
bool const tf) {m_bFastPrint = tf;};
969 bool m_bConserveMemory;
975 bool m_bWriteAnimations;
976 bool WriteAnimations()
const {
return m_bWriteAnimations;};
977 void WriteAnimations(
bool const tf) {m_bWriteAnimations = tf;};
987 bool m_bUseSubscreen;
998 void ImageDpi(
int const dpi) {m_Image_Dpi = dpi;};
1008 void * m_pExtendedData;
1009 void *
const ExtendedData()
const {
return m_pExtendedData;};
1010 void ExtendedData(
void *
const vp) {m_pExtendedData = vp;};
1011 void ExtendedData(HPDFOptions *
const vp) {m_pExtendedData = (
void*)vp;};
1013 bool ActivateOnPageOpen()
const {
return m_bActivateOnPageOpen;};
1014 void ActivateOnPageOpen(
bool onoff) {m_bActivateOnPageOpen = onoff;};
1015 float const AnnotLeft()
const {
return m_fAnnotLeft;};
1016 void AnnotLeft(
float f) {m_fAnnotLeft = f;};
1017 float const AnnotRight()
const {
return m_fAnnotRight;};
1018 void AnnotRight(
float f) {m_fAnnotRight = f;};
1019 float const AnnotBottom()
const {
return m_fAnnotBottom;};
1020 void AnnotBottom(
float f) {m_fAnnotBottom = f;};
1021 float const AnnotTop()
const {
return m_fAnnotTop;};
1022 void AnnotTop(
float f) {m_fAnnotTop = f;};
1026 const char *m_license;
1028 int m_antialiasLevel;
1030 unsigned char* m_imageOutputBuffer;
1031 size_t m_imageOutputBufferSize;
1038 int const Version()
const {
return m_Version;};
1039 void Version(
int const v) {m_Version = v;};
1042 H_OUTPUT_TYPE m_OutputType;
1060 void Ascii(
bool const tf) {m_bAscii = tf;};
1070 double m_ratio_cm_to_internal_units;
1100 float m_PageMargins[4];
1164 char m_bAVICodec[4];
1195 virtual const char * GetOutputName() = 0;
1213 virtual void RegisterOutputHandlerTypes() = 0;
1223 virtual HFileOutputResult FileOutputByKey(
const char * filename, HC_KEY key,
HOutputHandlerOptions * options);
1224 virtual HFileOutputResult FileOutputByKey(
const __wchar_t * filename, HC_KEY key,
HOutputHandlerOptions * options);
1233 virtual HFileOutputResult FileOutputByKey(
const unsigned short * filename, HC_KEY key,
HOutputHandlerOptions * options);
1244 virtual HFileOutputResult FileOutputFromImageKey(
const char * filename, HC_KEY image_key,
HOutputHandlerOptions * options);
1245 virtual HFileOutputResult FileOutputFromImageKey(
const __wchar_t * filename, HC_KEY image_key,
HOutputHandlerOptions * options);
1257 virtual const char * GetOutputTypesString() = 0;
1275 virtual const char * GetOutputDefaultHSRA();
1280 const char * GetOutputProgress();
1285 float GetOutputPercentProgress();
1290 const __wchar_t * GetOutputInformation();
1318 void ReportOutputProgress(
const char * progress);
1321 void ReportOutputPercentProgress(
float percent_progress);
1324 void ReportOutputInformation(
const char * information);
1327 void SetModuleDirectory(
const char *module_directory);
1328 void SetModuleDirectory(
const __wchar_t *module_directory);
1335 void SetStartingOutput();
1340 void SetFinishedOutput();
1345 unsigned long m_OutputOps;
1347 char *m_module_directory;
1351 float m_percent_progress1;
1352 float m_percent_progress2;
1353 __wchar_t *m_information;
1354 struct vlist_s *m_information_list;
1410 virtual HInputHandler * GetInputHandler(
const char * file_type);
1411 HInputHandler * GetInputHandler(
const __wchar_t * file_type);
1413 HInputHandler * GetInputHandler(
const unsigned short * file_type);
1420 virtual HOutputHandler * GetOutputHandler(
const char * file_type);
1421 virtual HOutputHandler * GetOutputHandler(
const __wchar_t * file_type);
1427 virtual void RegisterHandlers();
1433 virtual const char * GetInputHandlerTypes();
1439 virtual const char * GetOutputHandlerTypes();
1448 virtual HIOConnector * CreateConnector(
const char * file_type);
1454 virtual void FreeConnector(
HIOConnector * old_connector);
1468 static void GetFileOutputResultString(HFileOutputResult result,
char *result_str);
1500 char * m_input_types;
1501 int m_input_types_allocated;
1503 char * m_output_types;
1504 int m_output_types_allocated;
Definition: HIOManager.h:1365
HBaseView * m_pHBaseView
A pointer to the HBaseView object for this output.
Definition: HIOManager.h:865
double PrintToScale() const
Definition: HIOManager.h:1075
Definition: HIOManager.h:799
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:984
void HSRAOptions(char const *const tf)
HOOPS HSRAOption string .
Definition: HIOManager.h:897
float const PaperHeight() const
Height for output sizing in inches.
Definition: HIOManager.h:937
ExportNameMap m_names
Definition: HIOManager.h:1114
void PrintToScale(double const r)
Definition: HIOManager.h:1092
Specifies an HInputHandler for model data.
Definition: HIOManager.h:226
char const * m_pPDFResourceDirectory
Definition: HIOManager.h:1111
struct vlist_s * owned_output_handlers
A list of default HOutputHandlers created by the manager.
Definition: HIOManager.h:1489
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:895
Low compression, high accurracy.
Definition: HIOManager.h:820
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:1067
float m_fAnnotLeft
Definition: HIOManager.h:1123
Definition: HUtility.h:2332
bool m_bPrcUseNameUserData
Definition: HIOManager.h:1144
MVO_POINTER_SIZED_INT m_iPrcNameUserDataIndex
Definition: HIOManager.h:1147
Specifies an HOutputHandler for geometry data.
Definition: HIOManager.h:787
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:1154
The HCamera class is the data type of a HOOPS Camera Attribute.
Definition: HUtility.h:537
bool m_bPrcRemoveBRep
Definition: HIOManager.h:1138
Specifies an HOutputHandler for a hardcopy output type.
Definition: HIOManager.h:789
HBhvBehaviorManager * m_pBehaviorManager
A pointer to the behavior manager.
Definition: HIOManager.h:1103
HOutputHandlerStyle
Definition: HIOManager.h:784
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:971
Definition: HIOManager.h:122
bool ForceGrayscale() const
Specifies black and white output.
Definition: HIOManager.h:944
HPrcBrepCompression
Definition: HIOManager.h:818
void PaperWidth(float const f)
Width for output sizing in inches.
Definition: HIOManager.h:932
void ConserveMemory(bool const tf)
This option has been deprecated and has no effect.
Definition: HIOManager.h:973
Specifies an HOutputHandler for an image.
Definition: HIOManager.h:788
struct vhash_s * input_handlers
A hash of HInputHandlers.
Definition: HIOManager.h:1477
HOutputHandler an abstract base class for model and image output.
Definition: HIOManager.h:1178
float const PaperWidth() const
Width for output sizing in inches.
Definition: HIOManager.h:930
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:790
void OutputType(H_OUTPUT_TYPE ot)
The output type.
Definition: HIOManager.h:1046
void PaperHeight(float const f)
Height for output sizing in inches.
Definition: HIOManager.h:939
struct vhash_s * connector_procs
A hash of HIOConnector Create/Free functions.
Definition: HIOManager.h:1483
bool Ascii() const
Some file formats, support binary and ascii such as STL. Set this to true for ascii output...
Definition: HIOManager.h:1058
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:1051
bool StlNormals() const
Determines if we generate and output face normals when writing to STL file format.
Definition: HIOManager.h:1065
HOutputHandlerOptions(const HOutputHandlerOptions &o)
Definition: HIOManager.h:852
float m_fAnnotBottom
Definition: HIOManager.h:1129
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:991
void * m_pPRCAsmModelFile
Definition: HIOManager.h:1117
int const ImageDpi() const
Indicates the DPI used for images. This is calculated with info from HC_Show_Device_Info.
Definition: HIOManager.h:996
High compression, low accurracy.
Definition: HIOManager.h:822
float m_fAnnotTop
Definition: HIOManager.h:1132
char const * m_pDWFModelName
Definition: HIOManager.h:1106
HDwgViewVector
Definition: HIOManager.h:234
struct vlist_s * loaded_input_handlers
A list of dynamically loaded HInputHandlers libraries.
Definition: HIOManager.h:1492
void Model(HBaseModel *const m)
A pointer to the HBaseModel object for this output.
Definition: HIOManager.h:876
HPoint const *const WindowColor() const
Set the color of the window. The RGB color stored in xyz of HPoint.
Definition: HIOManager.h:902
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:1044
bool m_bExporting2DDwf
Definition: HIOManager.h:1167
Definition: HIOManager.h:830
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:1003
void WindowColor(HPoint const *const tf)
Set the color of the window. The RGB color stored in xyz of HPoint.
Definition: HIOManager.h:904
bool m_bPrcRemoveAttributes
Definition: HIOManager.h:1141
bool UseWindowColor() const
If set to true, the background color of the view is used.
Definition: HIOManager.h:909
struct vhash_s * output_handlers
A hash of HOutputHandlers.
Definition: HIOManager.h:1480
float m_fAnnotRight
Definition: HIOManager.h:1126
bool m_bActivateOnPageOpen
Definition: HIOManager.h:1120
int m_Version
The file format version desired for writing.
Definition: HIOManager.h:1037
Medium compression, medium accurracy.
Definition: HIOManager.h:821
void WindowWidth(float const f)
Width for output sizing in inches.
Definition: HIOManager.h:918
unsigned long GetOutputOps()
Definition: HIOManager.h:1201
void UseWindowColor(bool const tf)
If set to true, the background color of the view is used.
Definition: HIOManager.h:911
HPrcBrepCompression m_ePrcBrepCompression
Definition: HIOManager.h:1135
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:1053
bool m_bPrcCompressTessellation
Definition: HIOManager.h:1151
No compression.
Definition: HIOManager.h:819
HBaseView *const View() const
A pointer to the HBaseView object for this output.
Definition: HIOManager.h:867
HCamera *const Camera() const
A pointer to the HCamera object for this output.
Definition: HIOManager.h:881
bool FastPrint() const
This option has been deprecated. Specifies printing method.
Definition: HIOManager.h:964
struct vlist_s * loaded_output_handlers
A list of dynamically loaded HOutputHandlers libraries.
Definition: HIOManager.h:1495
void PaperDpi(int const dpi)
Indicates the DPI used for paper. This is set from the options dialog.
Definition: HIOManager.h:1005
struct vlist_s * owned_input_handlers
A list of default HInputHandlers created by the manager.
Definition: HIOManager.h:1486
void SetOutputOps(unsigned long ops)
This sets the HOutputOp.
Definition: HIOManager.h:1343
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:888
HBaseModel *const Model() const
A pointer to the HBaseModel object for this output.
Definition: HIOManager.h:874
float const WindowWidth() const
Width for output sizing in inches.
Definition: HIOManager.h:916
bool UseSubscreen() const
Determines if HOOPS is calculating a subscreen to match the output to the size of the view window...
Definition: HIOManager.h:989
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:1498
void WindowHeight(float const f)
Height for output sizing in inches.
Definition: HIOManager.h:925
HOutputHandlerOptions(HOutputHandlerOptions const *o)
Definition: HIOManager.h:845
float const WindowHeight() const
Height for output sizing in inches.
Definition: HIOManager.h:923
void View(HBaseView *const v)
A pointer to the HBaseView object for this output.
Definition: HIOManager.h:869
Specifies using the view determined by the camera in the scene segment.
Definition: HIOManager.h:238
size_t LineFuseThreshold() const
Definition: HIOManager.h:954
bool WindowFrame() const
Determines if a window frame is drawn or not.
Definition: HIOManager.h:982