Main Content

isOpen

Visible or hidden status for player

Description

isOpen(player) returns true or false to indicate whether the player is visible.

example

Examples

collapse all

Close the display of continuous point cloud player

Add data to the point cloud player.

player = pcplayer([0 1],[0 1],[0 1]);

Display continuous player figure. Use the isOpen method to check if player figure window is open.

  while isOpen(player)
     ptCloud = pointCloud(rand(1000,3,'single'));
     view(player, ptCloud);
  end

Terminate the while-loop by closing pcplayer figure window.

Input Arguments

collapse all

Video player, specified as a pcplayer, or vision.DeployableVideoPlayer object.

Version History

Introduced in R2012a