function mphviewselection(model,varargin)
% MPHVIEWSELECTION Display a geometric entity selection in a MATLAB figure
% 
%   MPHVIEWSELECTION(MODEL,GEOMNAME,NUMBER,'entity',ENTITY,...) displays 
%   the geometric entity NUMBER of type ENTITY in MATLAB figure including 
%   the representation of the geometry GEOM.
% 
%   MPHVIEWSELECTION(MODEL,SELECTION,...) displays the geometric entity 
%   selection SELECTION in a MATLAB figure including the representation of 
%   the geometry.
% 
%   Valid properties include:
%   Property            Value/{Default}    Description
%   -----------------------------------------------------------------------
%   Parent              Double             Parent axis
%   Edgecolor           Char{'k'} |        Color for edges
%                       RGB array        
%   Edgelabels          'on' | {'off'}     Show edge labels
%   Edgelabelscolor     Char{'g'} |        Color for edge labels
%                       RGB array       
%   Edgemode            {'on'} | 'off'     Show edges
%   Facealpha           Double {1}         Set transparency value
%   Facelabels          'on' | {'off'}     Show face labels
%   Facelabelscolor     Char{'b'} |        Color for face labels
%                       RGB array          
%   Facemode            {'on'} | 'off'     Show faces
%   Facecolor           RGB array          Color for faces
%                       {[0.6 0.6 0.6]}    
%   Vertexlabels        'on' | {'off'}     Show vertex labels
%   Vertexlabelscolor   Char{'r'} |        Color for vertex labels
%                       RGB array        
%   Vertexmode          'on' | {'off'}     Show vertices
%   Marker              {'.'}              Vertex marker
%   Markercolor         Char {'b'}         Color for vertex marker
%   Markersize          Int {12}           Fontsize of marker
%   Geommode            {'on'} | 'off'     Show entire geometry
%   Facecolorselected   RGB array{[1,0,0]} Color for selected faces
%   Edgecolorselected   RGB array{[1,0,0]} Color for selected edges
%   Markercolorselected Char{'r'} | 
%                       RGB array          Color for selected vertex marker
%   Showselector        {'on'} | 'off'     Show Selector
%   Selectorcolor       RGB array{[0 0 1]} Color for selector
%   Selectoralpha       Double {0.25}      Set selector transparency value
%   Entity              {[]} | 'domain' |  Set the selected entity type
%                       'boundary' | 
%                       'edge' | 'point'                                   
%   Selection           Char | int | {[]}  Set selection name or entity 
%                                          number
% 
%   Example 1:
%     % Load  busbar.mph from the Model Library:
%     model = mphload('busbar')
%     % Plot boundary number 3 using a yellow color:
%     mphviewselection(model, 'geom1',3, 'entity','boundary', ...
%         'facecolorselected', [1 1 0], 'facealpha', 0.5)
%     % Plot edge 1 to 9:
%     hold on
%     mphviewselection(model, 'geom1',1:8,'geommode','off', 'entity', ...
%         'edge', 'edgecolorselected', [0 1 0.5])
% 
%   Example 2:
%     % Load  busbar.mph from the Model Library:
%     model = mphload('busbar')
%     % Plot the titanium blot domains in green color:
%     mphviewselection(model, 'sel1', 'facecolorselected', [0 1 0])

% Copyright 2010-2011 COMSOL
