hp_bridge.h
Go to the documentation of this file.
35 extern void HP_Init(const char* pathToSchemaFiles, PK_LOGICAL_t useBulletinBoard, bool bUnicodeFilenames=true);
44 extern PK_ERROR_code_t HP_Read_Xmt_File(const char* filename, PK_PARTITION_t file_partition, int* num_parts, PK_PART_t** parts, const PK_PART_receive_o_t* options, bool tesselate=true, const char * face_tessellation_level = nullptr);
45 extern PK_ERROR_code_t HP_Write_Xmt_File(const char* filename, int num_parts, const PK_PART_t* parts, const PK_PART_transmit_o_t* options);
61 extern void HP_Init(const __wchar_t* pathToSchemaFiles, PK_LOGICAL_t useBulletinBoard, bool bUnicodeFilenames=true);
62 extern PK_ERROR_code_t HP_Read_Xmt_File(const __wchar_t * filename, PK_PARTITION_t file_partition, int* num_parts, PK_PART_t** parts, const PK_PART_receive_o_t* options, bool tesselate=true, const char * face_tessellation_level = nullptr);
63 extern PK_ERROR_code_t HP_Write_Xmt_File(const __wchar_t * filename, int num_parts, const PK_PART_t* parts, const PK_PART_transmit_o_t* options);
79 extern void HP_Init(const wchar_t* pathToSchemaFiles, PK_LOGICAL_t useBulletinBoard, bool bUnicodeFilenames=true);
107 extern PK_ERROR_code_t HP_Read_Xmt_File(const wchar_t * filename, PK_PARTITION_t file_partition, int* num_parts, PK_PART_t** parts, const PK_PART_receive_o_t* options, bool tesselate=true);
124 extern PK_ERROR_code_t HP_Write_Xmt_File(const wchar_t * filename, int num_parts, const PK_PART_t* parts, const PK_PART_transmit_o_t* options);
141 extern void HP_Delete_Entity_Geometry(unsigned long count, PK_ENTITY_t* entities, bool PreserveSegments=false);
155 extern void HP_Render_Entities(unsigned long count, PK_ENTITY_t* entities, PK_TRANSF_t view_transf=NULTAG, PK_TRANSF_t* topol_transf=0, const char * face_tessellation_level = nullptr);
166 extern void HP_Render_Entity(PK_ENTITY_t entity, PK_TRANSF_t trans=NULTAG, PK_TRANSF_t topol_transf=NULTAG, const char * face_tessellation_level = nullptr);
180 extern bool HP_Update_Entity(PK_ENTITY_t entity, PK_TRANSF_t view_trans=NULTAG, PK_TRANSF_t topol_transf=NULTAG);
192 extern void HP_Show_Tessellation_Options(PK_TOPOL_render_line_o_t* line_Options, PK_TOPOL_render_facet_go_o_t* go_options, PK_TOPOL_facet_mesh_o_t* generation_settings);
204 extern void HP_Set_Tessellation_Options(PK_TOPOL_render_line_o_t* line_Options, PK_TOPOL_render_facet_go_o_t* go_options, PK_TOPOL_facet_mesh_o_t* generation_settings);
238 extern long HP_Compute_Geometry_Keys(PK_ENTITY_t tagID, long max_count, HC_KEY* keys, const char* list);
void HP_Init(const char *pathToSchemaFiles, PK_LOGICAL_t useBulletinBoard, bool bUnicodeFilenames=true)
Initializes the Parasolid kernel, registers the HOOPS specific implementation of the Parasolid GO_Rou...
PK_ERROR_code_t HP_Read_Xmt_File(const wchar_t *filename, PK_PARTITION_t file_partition, int *num_parts, PK_PART_t **parts, const PK_PART_receive_o_t *options, bool tesselate=true)
Parses the specified Parasolid file and populates the modeling kernel with its contents, then maps the model to a corresponding HOOPS segment tree hierarchy including geometry and attributes.
long HP_Compute_Geometry_Key_Count(PK_ENTITY_t tagID, char *list)
Given a Parasolid tag ID for any entity, this routine will return the number of HOOPS geometric primi...
void HP_Show_Rendering_Options(char *list)
This routine allows developers to query what the current rendering option settings are as previously ...
void HP_Render_Entities(unsigned long count, PK_ENTITY_t *entities, PK_TRANSF_t view_transf=NULTAG, PK_TRANSF_t *topol_transf=0, const char *face_tessellation_level=nullptr)
This call will generate the tessellation of a set of Parasolid entities and store the primitives in t...
void HP_Set_Rendering_Options(const char *list)
Provides control over the manner in which Parasolid models are mapped to the HOOPS Segment Tree by th...
bool HP_Update_Entity(PK_ENTITY_t entity, PK_TRANSF_t view_trans=NULTAG, PK_TRANSF_t topol_transf=NULTAG)
void HP_Set_Tessellation_Options(PK_TOPOL_render_line_o_t *line_Options, PK_TOPOL_render_facet_go_o_t *go_options, PK_TOPOL_facet_mesh_o_t *generation_settings)
Provides control over how the Parasolid PK_Render routine maps geometry to the HOOPS database via the...
long HP_Compute_Geometry_Keys(PK_ENTITY_t tagID, long max_count, HC_KEY *keys, const char *list)
Given a Parasolid tag ID, this routine will return all the HOOPS keys for the tessellated HOOPS geome...
PK_ENTITY_t HP_Compute_TagID(HC_KEY key, PK_CLASS_t paraClass)
Given a HOOPS Key this routine will return the Parasolid Tag ID for the Parasolid entity that contain...
bool HP_Get_Instances_To_Bodies(void)
bool HP_Associate_Key_To_Entity(PK_ENTITY_t entity, HC_KEY key)
This routine will map the provided HOOPS Key to the Parasolid entity.
PK_ERROR_code_t HP_Write_Xmt_File(const wchar_t *filename, int num_parts, const PK_PART_t *parts, const PK_PART_transmit_o_t *options)
Write a collection of Parasolid entities to a file.
void HP_Render_Entity(PK_ENTITY_t entity, PK_TRANSF_t trans=NULTAG, PK_TRANSF_t topol_transf=NULTAG, const char *face_tessellation_level=nullptr)
This call will generate the tessellation of a Parasolid entity and store it in the HOOPS database usi...
void HP_Delete_Entity_Geometry(unsigned long count, PK_ENTITY_t *entities, bool PreserveSegments=false)
This routine will delete the geometric primitives associated with the given ACIS entities from the HO...
void HP_Set_Instances_To_Bodies(bool flatten)
Allows developer to tell the bridge to honor the assembly definition that may be contained within a X...
void HP_Show_Tessellation_Options(PK_TOPOL_render_line_o_t *line_Options, PK_TOPOL_render_facet_go_o_t *go_options, PK_TOPOL_facet_mesh_o_t *generation_settings)
Shows the attribute values previously stored with HP_Set_Tessellation_Options.