BLOC - Automatic UML class diagram creator

by

 

Used to create a UML class diagram from a MATLAB object oriented program.

Inher
classdef Inher < Arrow
    properties
        Shape = {};
    end
    methods
        function obj = Inher(TipPos)
            if nargin == 1 && isa(TipPos,'double') && length(TipPos) == 2
                obj.Shape{1} = [TipPos(1) TipPos(1)-0.05 TipPos(1)+0.05];
                obj.Shape{2} = [TipPos(2) TipPos(2)-0.15 TipPos(2)-0.15];
                
            else
                error('TipPos must be a [1x2] double array')
            end
        end
    end
end

Contact us