Hot Door CORE Forum

Full Version: how to create a clipping group?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm having some trouble creating a clipping group with CORE. I have an Art group containing several paths, and I want to use the top closed path as a clipping mask. I set the group to become a clipping group like this:


Code:
clipGrp.setIsClipGroup(true);
bool isClip = clipGrp.isClipGroup();

The variable isClip is set to true, but the group is not in fact a clip group. Its ArtType is still a plain group and nothing is clipped. Is there another step I need to do?
I found code for the SDK and adapted that to CORE.

clipMask is the clipping path and objGrp is the group that contains all of the paths.


Code:
clipMask.reorder(hdi::core::PlaceInsideOnTop, &objGrp);
objGrp.setIsClipGroup(true);
clipMask.setAttribute(hdi::core::ArtAttrIsClipMask, true);