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;
297 m_bDisableDWFDrawOrder =
false;
298 m_bDWFRebaselineModel =
true;
299 m_bImportThumbnail =
false;
302 m_bOptimizeSegmentTree =
false;
305 m_pOOCNodeDeltas = 0;
306 m_bOOCAutoUpdate =
true;
307 m_bOOCAutoCleanup =
true;
313 m_z_separation = o->m_z_separation;
346 m_bPRCImportNonBrepFaces = o->m_bPRCImportNonBrepFaces;
349 m_bPRCInstanceShells = o->m_bPRCInstanceShells;
350 m_bPRCCalculatePhysicalProperties = o->m_bPRCCalculatePhysicalProperties;
375 m_z_separation = o.m_z_separation;
405 m_bPRCImportNonBrepFaces = o.m_bPRCImportNonBrepFaces;
407 m_bPRCInstanceShells = o.m_bPRCInstanceShells;
408 m_bPRCCalculatePhysicalProperties = o.m_bPRCCalculatePhysicalProperties;
499 bool m_bPRCImportNonBrepFaces;
503 bool m_bPRCInstanceShells;
505 bool m_bPRCCalculatePhysicalProperties;
507 void (*m_pPRCMultiModelSelectionCallback) (
char const * in_container,
int in_num_configs,
char const * in_configs[],
508 int & out_config_selection);
512 void (*m_pPRCDeleteModelCallback) (
void*& pPRCAsmModelFile);
560 double m_z_separation;
610 virtual const char * GetInputName() = 0;
619 virtual void RegisterInputHandlerTypes() = 0;
636 virtual HFileInputResult FileInputByKey(
const char * filename, HC_KEY key,
HInputHandlerOptions * options);
637 virtual HFileInputResult FileInputByKey(
const __wchar_t * filename, HC_KEY key,
HInputHandlerOptions * options);
648 virtual HFileInputResult FileInputByKey(
const unsigned short * filename, HC_KEY key,
HInputHandlerOptions * options);
660 virtual HFileInputResult FileInputToImageKey(
const char * filename, HC_KEY * image_key, HC_KEY segment_key,
HInputHandlerOptions * options);
661 virtual HFileInputResult FileInputToImageKey(
const __wchar_t * filename, HC_KEY * image_key, HC_KEY segment_key,
HInputHandlerOptions * options);
673 virtual HFileInputResult FileInputToImageKey(
const unsigned short * filename, HC_KEY * image_key, HC_KEY segment_key,
HInputHandlerOptions * options);
687 virtual const char * GetInputTypesString() = 0;
692 const __wchar_t * GetInputProgress();
697 float GetInputPercentProgress();
702 const __wchar_t * GetInputInformation();
730 void ReportInputProgress(
const char * progress);
731 void ReportInputProgress(
const __wchar_t * progress);
734 void ReportInputPercentProgress(
float percent_progress);
737 void ReportInputInformation(
const char * information);
738 void ReportInputInformation(
const __wchar_t * information);
740 void SetModuleDirectory(
const char *module_directory);
741 void SetModuleDirectory(
const __wchar_t *module_directory);
747 void SetStartingInput(
const char *filename);
748 void SetStartingInput(
const __wchar_t *filename = 0);
753 void SetFinishedInput();
759 unsigned long m_InputOps;
761 __wchar_t *m_module_directory;
765 __wchar_t *m_progress;
766 float m_percent_progress1;
767 float m_percent_progress2;
768 __wchar_t *m_information;
769 struct vlist_s *m_information_list;
780 HOutputHandlerStyleModel,
801 H_FORMAT_TEXT lookup(
HC_KEY)
const;
802 void tag(
HC_KEY, H_FORMAT_TEXT
const &);
830 virtual char const * GetType()
const;
834 virtual bool PopulateOptions();
877 void Camera(
HCamera *
const c) {m_pCamera = c;};
884 void Key(HC_KEY
const k) {m_Key = k;};
887 char const * m_pHSRAOptions;
894 HPoint const * m_pWindowColor;
901 bool m_bUseWindowColor;
908 float m_Window_Width;
915 float m_Window_Height;
929 float m_Paper_Height;
936 bool m_ForceGrayscale;
940 void ForceGrayscale(
bool const tf) {m_ForceGrayscale = tf;};
943 size_t m_lineFuseThreshold;
953 void LineFuseThreshold(
size_t const tf) {m_lineFuseThreshold = tf;};
960 void FastPrint(
bool const tf) {m_bFastPrint = tf;};
963 bool m_bConserveMemory;
969 bool m_bWriteAnimations;
970 bool WriteAnimations()
const {
return m_bWriteAnimations;};
971 void WriteAnimations(
bool const tf) {m_bWriteAnimations = tf;};
981 bool m_bUseSubscreen;
992 void ImageDpi(
int const dpi) {m_Image_Dpi = dpi;};
1002 void * m_pExtendedData;
1003 void *
const ExtendedData()
const {
return m_pExtendedData;};
1004 void ExtendedData(
void *
const vp) {m_pExtendedData = vp;};
1005 void ExtendedData(HPDFOptions *
const vp) {m_pExtendedData = (
void*)vp;};
1007 bool ActivateOnPageOpen()
const {
return m_bActivateOnPageOpen;};
1008 void ActivateOnPageOpen(
bool onoff) {m_bActivateOnPageOpen = onoff;};
1009 float const AnnotLeft()
const {
return m_fAnnotLeft;};
1010 void AnnotLeft(
float f) {m_fAnnotLeft = f;};
1011 float const AnnotRight()
const {
return m_fAnnotRight;};
1012 void AnnotRight(
float f) {m_fAnnotRight = f;};
1013 float const AnnotBottom()
const {
return m_fAnnotBottom;};
1014 void AnnotBottom(
float f) {m_fAnnotBottom = f;};
1015 float const AnnotTop()
const {
return m_fAnnotTop;};
1016 void AnnotTop(
float f) {m_fAnnotTop = f;};
1020 const char *m_license;
1022 int m_antialiasLevel;
1024 unsigned char* m_imageOutputBuffer;
1025 size_t m_imageOutputBufferSize;
1032 int const Version()
const {
return m_Version;};
1033 void Version(
int const v) {m_Version = v;};
1036 H_OUTPUT_TYPE m_OutputType;
1054 void Ascii(
bool const tf) {m_bAscii = tf;};
1064 double m_ratio_cm_to_internal_units;
1094 float m_PageMargins[4];
1158 char m_bAVICodec[4];
1189 virtual const char * GetOutputName() = 0;
1207 virtual void RegisterOutputHandlerTypes() = 0;
1217 virtual HFileOutputResult FileOutputByKey(
const char * filename, HC_KEY key,
HOutputHandlerOptions * options);
1218 virtual HFileOutputResult FileOutputByKey(
const __wchar_t * filename, HC_KEY key,
HOutputHandlerOptions * options);
1227 virtual HFileOutputResult FileOutputByKey(
const unsigned short * filename, HC_KEY key,
HOutputHandlerOptions * options);
1238 virtual HFileOutputResult FileOutputFromImageKey(
const char * filename, HC_KEY image_key,
HOutputHandlerOptions * options);
1239 virtual HFileOutputResult FileOutputFromImageKey(
const __wchar_t * filename, HC_KEY image_key,
HOutputHandlerOptions * options);
1251 virtual const char * GetOutputTypesString() = 0;
1269 virtual const char * GetOutputDefaultHSRA();
1274 const char * GetOutputProgress();
1279 float GetOutputPercentProgress();
1284 const __wchar_t * GetOutputInformation();
1312 void ReportOutputProgress(
const char * progress);
1315 void ReportOutputPercentProgress(
float percent_progress);
1318 void ReportOutputInformation(
const char * information);
1321 void SetModuleDirectory(
const char *module_directory);
1322 void SetModuleDirectory(
const __wchar_t *module_directory);
1329 void SetStartingOutput();
1334 void SetFinishedOutput();
1339 unsigned long m_OutputOps;
1341 char *m_module_directory;
1345 float m_percent_progress1;
1346 float m_percent_progress2;
1347 __wchar_t *m_information;
1348 struct vlist_s *m_information_list;
1404 virtual HInputHandler * GetInputHandler(
const char * file_type);
1405 HInputHandler * GetInputHandler(
const __wchar_t * file_type);
1407 HInputHandler * GetInputHandler(
const unsigned short * file_type);
1414 virtual HOutputHandler * GetOutputHandler(
const char * file_type);
1415 virtual HOutputHandler * GetOutputHandler(
const __wchar_t * file_type);
1421 virtual void RegisterHandlers();
1427 virtual const char * GetInputHandlerTypes();
1433 virtual const char * GetOutputHandlerTypes();
1442 virtual HIOConnector * CreateConnector(
const char * file_type);
1448 virtual void FreeConnector(
HIOConnector * old_connector);
1462 static void GetFileOutputResultString(HFileOutputResult result,
char *result_str);
1494 char * m_input_types;
1495 int m_input_types_allocated;
1497 char * m_output_types;
1498 int m_output_types_allocated;
Definition: HIOManager.h:1359
HBaseView * m_pHBaseView
A pointer to the HBaseView object for this output.
Definition: HIOManager.h:859
double PrintToScale() const
Definition: HIOManager.h:1069
Definition: HIOManager.h:793
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:978
void HSRAOptions(char const *const tf)
HOOPS HSRAOption string .
Definition: HIOManager.h:891
float const PaperHeight() const
Height for output sizing in inches.
Definition: HIOManager.h:931
ExportNameMap m_names
Definition: HIOManager.h:1108
void PrintToScale(double const r)
Definition: HIOManager.h:1086
Specifies an HInputHandler for model data.
Definition: HIOManager.h:226
char const * m_pPDFResourceDirectory
Definition: HIOManager.h:1105
struct vlist_s * owned_output_handlers
A list of default HOutputHandlers created by the manager.
Definition: HIOManager.h:1483
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:889
Low compression, high accurracy.
Definition: HIOManager.h:814
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:1061
float m_fAnnotLeft
Definition: HIOManager.h:1117
Definition: HUtility.h:2332
bool m_bPrcUseNameUserData
Definition: HIOManager.h:1138
MVO_POINTER_SIZED_INT m_iPrcNameUserDataIndex
Definition: HIOManager.h:1141
Specifies an HOutputHandler for geometry data.
Definition: HIOManager.h:781
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:1148
The HCamera class is the data type of a HOOPS Camera Attribute.
Definition: HUtility.h:537
bool m_bPrcRemoveBRep
Definition: HIOManager.h:1132
Specifies an HOutputHandler for a hardcopy output type.
Definition: HIOManager.h:783
HBhvBehaviorManager * m_pBehaviorManager
A pointer to the behavior manager.
Definition: HIOManager.h:1097
HOutputHandlerStyle
Definition: HIOManager.h:778
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:965
Definition: HIOManager.h:122
bool ForceGrayscale() const
Specifies black and white output.
Definition: HIOManager.h:938
HPrcBrepCompression
Definition: HIOManager.h:812
void PaperWidth(float const f)
Width for output sizing in inches.
Definition: HIOManager.h:926
void ConserveMemory(bool const tf)
This option has been deprecated and has no effect.
Definition: HIOManager.h:967
Specifies an HOutputHandler for an image.
Definition: HIOManager.h:782
struct vhash_s * input_handlers
A hash of HInputHandlers.
Definition: HIOManager.h:1471
HOutputHandler an abstract base class for model and image output.
Definition: HIOManager.h:1172
float const PaperWidth() const
Width for output sizing in inches.
Definition: HIOManager.h:924
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:784
void OutputType(H_OUTPUT_TYPE ot)
The output type.
Definition: HIOManager.h:1040
void PaperHeight(float const f)
Height for output sizing in inches.
Definition: HIOManager.h:933
struct vhash_s * connector_procs
A hash of HIOConnector Create/Free functions.
Definition: HIOManager.h:1477
bool Ascii() const
Some file formats, support binary and ascii such as STL. Set this to true for ascii output...
Definition: HIOManager.h:1052
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:1045
bool StlNormals() const
Determines if we generate and output face normals when writing to STL file format.
Definition: HIOManager.h:1059
HOutputHandlerOptions(const HOutputHandlerOptions &o)
Definition: HIOManager.h:846
float m_fAnnotBottom
Definition: HIOManager.h:1123
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:985
void * m_pPRCAsmModelFile
Definition: HIOManager.h:1111
int const ImageDpi() const
Indicates the DPI used for images. This is calculated with info from HC_Show_Device_Info.
Definition: HIOManager.h:990
High compression, low accurracy.
Definition: HIOManager.h:816
float m_fAnnotTop
Definition: HIOManager.h:1126
char const * m_pDWFModelName
Definition: HIOManager.h:1100
HDwgViewVector
Definition: HIOManager.h:234
struct vlist_s * loaded_input_handlers
A list of dynamically loaded HInputHandlers libraries.
Definition: HIOManager.h:1486
void Model(HBaseModel *const m)
A pointer to the HBaseModel object for this output.
Definition: HIOManager.h:870
HPoint const *const WindowColor() const
Set the color of the window. The RGB color stored in xyz of HPoint.
Definition: HIOManager.h:896
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:1038
bool m_bExporting2DDwf
Definition: HIOManager.h:1161
Definition: HIOManager.h:824
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:997
void WindowColor(HPoint const *const tf)
Set the color of the window. The RGB color stored in xyz of HPoint.
Definition: HIOManager.h:898
bool m_bPrcRemoveAttributes
Definition: HIOManager.h:1135
bool UseWindowColor() const
If set to true, the background color of the view is used.
Definition: HIOManager.h:903
struct vhash_s * output_handlers
A hash of HOutputHandlers.
Definition: HIOManager.h:1474
float m_fAnnotRight
Definition: HIOManager.h:1120
bool m_bActivateOnPageOpen
Definition: HIOManager.h:1114
int m_Version
The file format version desired for writing.
Definition: HIOManager.h:1031
Medium compression, medium accurracy.
Definition: HIOManager.h:815
void WindowWidth(float const f)
Width for output sizing in inches.
Definition: HIOManager.h:912
unsigned long GetOutputOps()
Definition: HIOManager.h:1195
void UseWindowColor(bool const tf)
If set to true, the background color of the view is used.
Definition: HIOManager.h:905
HPrcBrepCompression m_ePrcBrepCompression
Definition: HIOManager.h:1129
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:1047
bool m_bPrcCompressTessellation
Definition: HIOManager.h:1145
No compression.
Definition: HIOManager.h:813
HBaseView *const View() const
A pointer to the HBaseView object for this output.
Definition: HIOManager.h:861
HCamera *const Camera() const
A pointer to the HCamera object for this output.
Definition: HIOManager.h:875
bool FastPrint() const
This option has been deprecated. Specifies printing method.
Definition: HIOManager.h:958
struct vlist_s * loaded_output_handlers
A list of dynamically loaded HOutputHandlers libraries.
Definition: HIOManager.h:1489
void PaperDpi(int const dpi)
Indicates the DPI used for paper. This is set from the options dialog.
Definition: HIOManager.h:999
struct vlist_s * owned_input_handlers
A list of default HInputHandlers created by the manager.
Definition: HIOManager.h:1480
void SetOutputOps(unsigned long ops)
This sets the HOutputOp.
Definition: HIOManager.h:1337
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:882
HBaseModel *const Model() const
A pointer to the HBaseModel object for this output.
Definition: HIOManager.h:868
float const WindowWidth() const
Width for output sizing in inches.
Definition: HIOManager.h:910
bool UseSubscreen() const
Determines if HOOPS is calculating a subscreen to match the output to the size of the view window...
Definition: HIOManager.h:983
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:1492
void WindowHeight(float const f)
Height for output sizing in inches.
Definition: HIOManager.h:919
HOutputHandlerOptions(HOutputHandlerOptions const *o)
Definition: HIOManager.h:839
float const WindowHeight() const
Height for output sizing in inches.
Definition: HIOManager.h:917
void View(HBaseView *const v)
A pointer to the HBaseView object for this output.
Definition: HIOManager.h:863
Specifies using the view determined by the camera in the scene segment.
Definition: HIOManager.h:238
size_t LineFuseThreshold() const
Definition: HIOManager.h:948
bool WindowFrame() const
Determines if a window frame is drawn or not.
Definition: HIOManager.h:976