Nonlinear optical patterns: classical and quantum effects, perspectives for applications