+ //! Parses marker type argument.
+ //! Handles either enumeration (integer) value or string constant.
+ Standard_EXPORT static Standard_Boolean ParseMarkerType (Standard_CString theArg,
+ Aspect_TypeOfMarker& theType,
+ Handle(Image_PixMap)& theImage);
+
+ //! Parses shading model argument.
+ //! Handles either enumeration (integer) value or string constant.
+ Standard_EXPORT static Standard_Boolean ParseShadingModel (Standard_CString theArg,
+ Graphic3d_TypeOfShadingModel& theModel);
+
+ //! Parses ZLayer name.
+ //! @param theArg [in] layer name or enumeration alias
+ //! @param theLayer [out] layer index
+ //! @return TRUE if layer has been identified, note that Graphic3d_ZLayerId_UNKNOWN is also valid value
+ static Standard_Boolean ParseZLayerName (Standard_CString theArg,
+ Graphic3d_ZLayerId& theLayer)
+ {
+ return parseZLayer (theArg, false, theLayer);
+ }
+
+ //! Parses ZLayer name.
+ //! @param theArg [in] layer name, enumeration alias or index (of existing Layer)
+ //! @param theLayer [out] layer index
+ //! @return TRUE if layer has been identified, note that Graphic3d_ZLayerId_UNKNOWN is also valid value
+ static Standard_Boolean ParseZLayer (Standard_CString theArg,
+ Graphic3d_ZLayerId& theLayer)
+ {
+ return parseZLayer (theArg, true, theLayer);
+ }
+