Go to the source code of this file.
Converts from an SUEntityRef to an SUDrawingElementRef. This is essentially a downcast operation so the given entity must be convertible to a drawing element.
- Parameters
-
[in] | entity | The given entity reference. |
- Returns
- The converted SUDrawingElementRef if the downcast operation succeeds.
- If not, the returned reference will be invalid.
Retrieves the bounding box of a drawing element.
- Parameters
-
[in] | elem | The drawing element. |
[out] | bbox | The bounding box retrieved. |
- Returns
-
Retrieves the hide flag of a drawing element.
- Parameters
-
[in] | elem | The drawing element. |
[out] | hide_flag | The hide flag retrieved. |
- Returns
-
Retrieves the layer object associated with a drawing element.
- Parameters
-
[in] | elem | The drawing element. |
[out] | layer | The layer object retrieved. |
- Returns
-
Retrieves the material object of a drawing element.
The material object must not be subsequently deallocated while still associated with the drawing element.
- Parameters
-
[in] | elem | The drawing element. |
[out] | material | The drawing element retrieved. |
- Returns
-
Returns the concrete type of the given drawing element.
- Parameters
-
[in] | elem | The drawing element. |
- Returns
- The concrete type of the given drawing element reference.
- SURefType_Unknown if entity is not a valid drawing element.
Sets the hide flag of a drawing element.
- Parameters
-
[in] | elem | The drawing element. |
[in] | hide_flag | The hide flag to set. |
- Returns
-
Sets the layer object to be associated with a drawing element.
- Parameters
-
[in] | elem | The drawing element. |
[in] | layer | The layer object to set. |
- Returns
-
Sets the material of a drawing element.
The material object must not be subsequently deallocated while associated with the drawing element.
- Parameters
-
[in] | elem | The drawing element. |
[in] | material | The material object to set. If an invalid reference is given, then the material of the element will be removed. |
- Returns
-
Converts from an SUDrawingElementRef to an SUEntityRef. This is essentially an upcast operation.
- Parameters
-
[in] | elem | The given drawing element reference. |
- Returns
- The converted SUEntityRef if elem is a valid drawing element.
- If not, the returned reference will be invalid.