assert(islogical(bool)&&isscalar(bool),'autoRefresh must be a single boolean')
this.autoRefresh=bool;
end
functionset.visible(this,bool)
ifisnumeric(bool);bool=logical(bool);end
assert(islogical(bool)&&isscalar(bool),'visible must be a logical scalar')
ifthis.mVisible==bool;return;end
this.mVisible=bool;
ifthis.autoRefresh
this.applyVisibility();
end
end
functionset.showBoundarySurfaces(this,bool)
assert(islogical(bool)&&isscalar(bool),'showBoundarySurfaces must be a single boolean')
ifthis.mShowBoundarySurfaces==bool;return;end
this.mShowBoundarySurfaces=bool;
ifthis.autoRefresh
this.applyBoundaryGroupVisibility();
end
end
functionset.showEdges(this,bool)
assert(islogical(bool)&&isscalar(bool),'showEdges must be a single boolean')
ifthis.mShowEdges==bool;return;end
this.mShowEdges=bool;
ifthis.autoRefresh
this.applyEdgeVisibility();
end
end
functionset.boundaryGroupVisibility(this,visible)
ifisnumeric(visible);visible=logical(visible);end
assert(islogical(visible)&&numel(visible)==this.numberOfBoundaryGroups(),'boundaryGroupVisibility must be a logical vector with one entry per boundary')
assert(isnumeric(transparency)&&isscalar(transparency)&&transparency>=0&&transparency<=1,'transparency must be a single numeric value between 0 and 1')
ifthis.transparency==transparency;return;end
this.mTransparency=transparency;
ifthis.autoRefresh
this.applyPlotTransparency()
end
end
functionset.edgeColor(this,color)
assert(isnumeric(color)&&isequal(size(color),[13])&&all(color>=0)&&all(color<=1),'edgeColor must be a color vector')