01-30-2019, 01:43 PM
I'm creating a custom art object and placing art in the editable art works fine. Either of these methods works, although one is likely preferable to the other:
Similar code, however, fails to move art into the viewableArt group. Using get() or release() on the auto_ptr seems to make no difference.
Any suggestions would be very much appreciated.
Code:
hdi::core::Art custObj = hdi::core::Art(hdi::core::ArtTypeCustom, hdi::core::PlaceAboveAll);
hdi::core::ArtAP theRect = hdi::core::draw::rect(hdi::core::ArtboardRect::XYWidthHeight(100,100,50,50));
hdi::core::ArtAP theEll = hdi::core::draw::ellipse(hdi::core::ArtboardPoint(125,125), 50, 50, true);
hdi::core::Art* edArt = custObj.customArt()->editableArt().release();
theEll->reorder(hdi::core::PlaceInsideOnTop, edArt);
theRect->reorder(hdi::core::PlaceInsideOnTop, custObj.customArt()->editableArt().release());
Similar code, however, fails to move art into the viewableArt group. Using get() or release() on the auto_ptr seems to make no difference.
Code:
hdi::core::Art custObj = hdi::core::Art(hdi::core::ArtTypeCustom, hdi::core::PlaceAboveAll);
hdi::core::ArtAP theRect = hdi::core::draw::rect(hdi::core::ArtboardRect::XYWidthHeight(100,100,50,50));
hdi::core::ArtAP theEll = hdi::core::draw::ellipse(hdi::core::ArtboardPoint(125,125), 50, 50, true);
hdi::core::Art* vuArt = custObj.customArt()->viewableArt().release();
theEll->reorder(hdi::core::PlaceInsideOnTop, vuArt);
theRect->reorder(hdi::core::PlaceInsideOnTop, custObj.customArt()->viewableArt().release());
Any suggestions would be very much appreciated.