How to fast check if a voxel is part of a visible segment

For my paintbrush module I am making continuously making adjustments to a volume . I use this same volume as a reference volume in my segmentation.
In my adjustment script I would like to keep my adjustments limited to the segments I have set visible in the segmentation.

I know that I can export the segmentation to a labelmap. But is it also possbile to directly access a binairy map to check if a certain location is part of a visible segment or not?

I found GetBinaryLabelmapInternalRepresentation in the vtkMRMLSegmentationNode but that seems to work for only one segmentID and not an array of segments.