[cgma-dev] r4568 - cgm/trunk/itaps

Rajeev Jain jain at mcs.anl.gov
Thu Mar 10 15:32:44 CST 2011


How about "merge-cubit12" branch?
 Rajeev





________________________________
From: "jvporter at wisc.edu" <jvporter at wisc.edu>
To: cgma-dev at mcs.anl.gov
Sent: Thursday, March 10, 2011 13:49:04
Subject: [cgma-dev] r4568 - cgm/trunk/itaps

Author: jvporter
Date: 2011-03-10 13:49:03 -0600 (Thu, 10 Mar 2011)
New Revision: 4568

Modified:
   cgm/trunk/itaps/iGeom.h
   cgm/trunk/itaps/iGeom_CGMA.cc
   cgm/trunk/itaps/testgeom.cc
Log:
Update iGeom's tagging interface to match iMesh's


Modified: cgm/trunk/itaps/iGeom.h
===================================================================
--- cgm/trunk/itaps/iGeom.h    2011-03-10 05:50:49 UTC (rev 4567)
+++ cgm/trunk/itaps/iGeom.h    2011-03-10 19:49:03 UTC (rev 4568)
@@ -3236,9 +3236,13 @@

     /**\brief  Set a tag value of arbitrary type on an entity set
      *
-     * Set a tag value of arbitrary type on an entity set.  Tag data is 
-     * passed as char* type,
-     * but really represents pointer to arbitrary data.
+     * Set a tag value of arbitrary type on an entity set. The tag data
+     * is passed as void*. tag_value_size specifies the size of the memory
+     * pointed to by tag_value in terms of bytes. Applications are free to
+     * use this function to set data of any type, not just iBase_BYTES.
+     * However, in all cases, the size specified by tag_value_size is
+     * always in terms of bytes.
+     *
      * \param instance iGeom instance handle
      * \param entity_set_handle Entity set on which tag is being set
      * \param tag_handle Tag being set on an entity set
@@ -3248,9 +3252,9 @@
      */
   void iGeom_setEntSetData( iGeom_Instance instance,
                             iBase_EntitySetHandle entity_set_handle,
-                            iBase_TagHandle tag_handle,
-                            const char* tag_value,
-                            int tag_value_size, 
+                            const iBase_TagHandle tag_handle,
+                            const void* tag_value,
+                            const int tag_value_size,
                             int *err );

     /**\brief  Set a tag value of integer type on an entity set
@@ -3298,22 +3302,44 @@
                               iBase_EntityHandle tag_value, 
                               int *err );

+    /**\brief  Set a tag value of entity set handle type on an entity set
+     *
+     * Set a tag value of entity set handle type on an entity set.
+     * \param instance iGeom instance handle
+     * \param entity_set Entity set on which tag is being set
+     * \param tag_handle Tag being set on an entity set
+     * \param tag_value Tag value being set on entity set
+     * \param *err Pointer to error type returned from function
+     */
+  void iGeom_setEntSetESHData( iGeom_Instance instance,
+                               iBase_EntitySetHandle entity_set,
+                               iBase_TagHandle tag_handle,
+                               iBase_EntitySetHandle tag_value, 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/cgma-dev/attachments/20110310/929cd381/attachment.htm>


More information about the cgma-dev mailing list