return aValueStr;
}
+#ifdef _DEBUG
std::string getPontAttributesInfo(const std::shared_ptr<ModelAPI_Feature>& theFeature,
const std::set<std::shared_ptr<ModelAPI_Attribute> >& theAttributesOnly)
{
return anInfo;
}
-
+#endif
} // namespace ModelGeomAlgo_Point2D
const std::shared_ptr<GeomAPI_Pnt>& thePoint,
std::shared_ptr<GeomAPI_Pnt>& theProjectedPoint);
+#ifdef _DEBUG
/// Return feature name, kind and point values united in a string info
/// \param theFeature an investigated feature
/// \param theAttributesOnly a container of necessary attributes, if empty, all
MODELGEOMALGO_EXPORT std::string getPointAttributeInfo(
const std::shared_ptr<ModelAPI_Attribute>& theAttribute);
+#endif
}
#endif
return anAction;
}
+#ifdef _DEBUG
QString objectInfo(const ObjectPtr& theObj, const bool isUseAttributesInfo)
{
QString aFeatureStr = "feature";
return aFeatureStr;
}
+#endif
typedef QMap<QString, int> ShapeTypes;
static ShapeTypes myShapeTypes;
const QString& theToolTip = QString(),
const QString& theStatusTip = QString());
-//#ifdef _DEBUG
+#ifdef _DEBUG
/// Converts the object to the feature or a result and generate information string
/// \param theObj an object
/// \param isUseAttributesInfo a flag whether the attribute values information is used
/// \return a string
MODULEBASE_EXPORT QString objectInfo(const ObjectPtr& theObj,
const bool isUseAttributesInfo = false);
-//#endif
+#endif
/// Converts string value (name of shape type) to shape enum value
/// \param theType - string with shape type name
return aConnector->workshop();
}
+#ifdef _DEBUG
QString PartSet_OverconstraintListener::getObjectsInfo(const std::set<ObjectPtr>& theObjects)
{
std::set<ObjectPtr>::const_iterator anIt = theObjects.begin(),
return anInfo.join(";\n");
}
+#endif
/// Returns workshop
XGUI_Workshop* workshop() const;
+#ifdef _DEBUG
/// Unite objects in one string information
/// \param theObjects a list of objects
/// \return a string info
static QString getObjectsInfo(const std::set<ObjectPtr>& theObjects);
+#endif
private:
std::set<ObjectPtr> myConflictingObjects;
return anAttributes;
}
-
+#ifdef _DEBUG
std::string SketchPlugin_ConstraintSplit::getFeatureInfo(
const std::shared_ptr<ModelAPI_Feature>& theFeature,
const bool isUseAttributesInfo)
}
return anInfo;
}
-
+#endif
std::set<std::shared_ptr<ModelAPI_Attribute> > getEdgeAttributes(
const std::shared_ptr<ModelAPI_Feature>& theFeature);
+#ifdef _DEBUG
/// Return feature name, kind, point attribute values united in a string
/// \param theFeature an investigated feature
/// \return string value
std::string getFeatureInfo(const std::shared_ptr<ModelAPI_Feature>& theFeature,
const bool isUseAttributesInfo = true);
+#endif
};
#endif
#endif
}
+#ifdef _DEBUG
std::string XGUI_Displayer::getResult2AISObjectMapInfo() const
{
QStringList aContent;
return QString("myResult2AISObjectMap: size = %1\n%2\n").arg(myResult2AISObjectMap.size()).
arg(aContent.join("\n")).toStdString().c_str();
}
+#endif
void XGUI_Displayer::getPresentations(const ObjectPtr& theObject,
NCollection_Map<Handle(AIS_InteractiveObject)>& thePresentations)
/// \param theAIS AIOS object to display
void appendResultObject(ObjectPtr theObject, AISObjectPtr theAIS);
+#ifdef _DEBUG
/// Returns an information about alredy displayed objects
/// \return a string representation
std::string getResult2AISObjectMapInfo() const;
+#endif
/// Returns container of visible presentations for the object. For a feature object,
/// the feature results are processed also. The presentations map is not cleared inside.