[cgma-dev] r5317 - cgm/trunk/geom/OCC
jiangtao_ma at yahoo.com
jiangtao_ma at yahoo.com
Fri Jan 13 11:51:08 CST 2012
Author: janehu
Date: 2012-01-13 11:51:08 -0600 (Fri, 13 Jan 2012)
New Revision: 5317
Modified:
cgm/trunk/geom/OCC/OCCAttribSet.cpp
cgm/trunk/geom/OCC/OCCModifyEngine.cpp
Log:
Fixed the assygen failure problem reported by Rajeev. Passed assygen 7 and cgm tests.
Modified: cgm/trunk/geom/OCC/OCCAttribSet.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCAttribSet.cpp 2012-01-13 16:27:09 UTC (rev 5316)
+++ cgm/trunk/geom/OCC/OCCAttribSet.cpp 2012-01-13 17:51:08 UTC (rev 5317)
@@ -81,7 +81,7 @@
{
aLabel = OCCQueryEngine::instance()->mainLabel.NewChild();
Handle_TDataXtd_Shape attr_shape = TDataXtd_Shape::Set(aLabel, shape);
- //myLabel.AddAttribute(attr_shape);
+ //aLabel.AddAttribute(attr_shape);
//test if the attribute has been attached
assert(aLabel.IsAttribute(TDataXtd_Shape::GetID()));
@@ -115,6 +115,7 @@
{
lab = aLabel.NewChild();
attr_name = TDataStd_Name::Set(lab, cstring);
+ //lab.AddAttribute(attr_name);
assert(lab.IsAttribute(TDataStd_Name::GetID()));
}
@@ -141,8 +142,10 @@
}
if (strings && size > 0)
+ {
+ //lab.AddAttribute(attr_string);
assert(lab.IsAttribute(TDataStd_ExtStringArray::GetID()));
-
+ }
//4. add double attribute
DLIList<double*>* doubles = csa->double_data_list();
Handle_TDataStd_RealArray attr_double;
@@ -157,8 +160,10 @@
attr_double->SetValue(i, *(doubles->get_and_step()));
if(doubles && size > 0)
+ {
+ //lab.AddAttribute(attr_double);
assert(lab.IsAttribute(TDataStd_RealArray::GetID()));
-
+ }
//5. add int attribute
DLIList<int*>* ints = csa->int_data_list();
Handle_TDataStd_IntegerArray attr_int;
@@ -173,7 +178,10 @@
attr_int->SetValue(i, *(ints->get_and_step()));
if(ints && size > 0)
+ {
+ //lab.AddAttribute(attr_int);
More information about the cgma-dev
mailing list