return VISU::Scaling(GetSpecificPL()->GetScaling());
}
+//------------------- Check Table on Positive Values ------------
+bool VISU::PointMap3d_i::IsPositiveTable()
+{
+ SALOMEDS::GenericAttribute_var anAttr;
+ mySObj->FindAttribute(anAttr, "AttributeTableOfReal");
+ SALOMEDS::AttributeTableOfReal_var aTableOfReal = SALOMEDS::AttributeTableOfReal::_narrow(anAttr);
+
+ for (int i=1; i<=aTableOfReal->GetNbColumns(); i++)
+ for (int j=1; j<=aTableOfReal->GetNbRows(); j++) {
+ double aVal = aTableOfReal->GetValue(j, i);
+ if (aVal < 0)
+ return false;
+ }
+
+ return true;
+}
+
//------------------- Plot3dBase Methods ------------------------
void VISU::PointMap3d_i::SetScaleFactor (CORBA::Double theScaleFactor)
virtual VISU::Scaling GetScaling();
virtual void SetScaling(VISU::Scaling theScaling);
+ bool IsPositiveTable();
+
// Plot3dBase methods
void SetScaleFactor (CORBA::Double theScaleFactor);