Woolz Image Processing  Version 1.7.5
WlzDrawDomain.c File Reference

Functions for composing a domain from simple drawing commands. More...

Data Structures

struct  _WlzDrawDomWSp
 Workspace in which drawing commands are parsed. More...
 

Typedefs

typedef enum _WlzDrawDomAct WlzDrawDomAct
 
typedef enum _WlzDrawDomCmd WlzDrawDomCmd
 
typedef struct _WlzDrawDomWSp WlzDrawDomWSp
 

Enumerations

enum  _WlzDrawDomAct {
  WLZ_DRAWDOM_ACT_NONE,
  WLZ_DRAWDOM_ACT_DRAW,
  WLZ_DRAWDOM_ACT_ERASE
}
 Drawing actions. Typedef: WlzDrawDomAct. More...
 
enum  _WlzDrawDomCmd {
  WLZ_DRAWDOM_CMD_CIRCLE,
  WLZ_DRAWDOM_CMD_END,
  WLZ_DRAWDOM_CMD_ERROR,
  WLZ_DRAWDOM_CMD_LINE,
  WLZ_DRAWDOM_CMD_INIT,
  WLZ_DRAWDOM_CMD_PEN,
  WLZ_DRAWDOM_CMD_UNKNOWN
}
 Commands in the drawing string which are understood. Typedef: WlzDrawDomCmd. More...
 

Functions

WlzObjectWlzDrawDomainObj (WlzDVertex2 org, WlzThreeDViewStruct *view, int keep2D, char *cmdStr, int *dstErrIdx, WlzErrorNum *dstErr)
 Constructs a 3D spatial domain object (without values) by drawing on a section in 3D space, using commands in the given command string. More...
 

Detailed Description

Functions for composing a domain from simple drawing commands.

Author
Bill Hill
Date
August 2008
Version
Id
eac3513b017ade0693cf86274ec3267c5afb2ef0
Address: MRC Human Genetics Unit, MRC Institute of Genetics and Molecular Medicine, University of Edinburgh, Western General Hospital, Edinburgh, EH4 2XU, UK.
Copyright (C), [2012], The University Court of the University of Edinburgh, Old College, Edinburgh, UK.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Typedef Documentation

typedef struct _WlzDrawDomWSp WlzDrawDomWSp

Enumeration Type Documentation

Drawing actions. Typedef: WlzDrawDomAct.

Enumerator
WLZ_DRAWDOM_ACT_NONE 

No action.

WLZ_DRAWDOM_ACT_DRAW 

Add drawn region.

WLZ_DRAWDOM_ACT_ERASE 

Remove drawn region.

Commands in the drawing string which are understood. Typedef: WlzDrawDomCmd.

Enumerator
WLZ_DRAWDOM_CMD_CIRCLE 

Draw a circle.

WLZ_DRAWDOM_CMD_END 

End of command string.

WLZ_DRAWDOM_CMD_ERROR 

Not a command but an error.

WLZ_DRAWDOM_CMD_LINE 

Draw a line.

WLZ_DRAWDOM_CMD_INIT 

Initial command of the string which identifies the string as a drawing command string and it's version.

WLZ_DRAWDOM_CMD_PEN 

Draws a polyline with rounded ends and joins.

WLZ_DRAWDOM_CMD_UNKNOWN 

Unknown command.