Study of ballistic quantum antidots and dots situated in magnetic field