IMGAXES__DEFINE Name
IMGAXES__DEFINE
Purpose
The purpose of this routine is to display axes on an image object.
Authors
FANNING SOFTWARE CONSULTING BURRIDGE COMPUTING
1645 Sheely Drive 18 The Green South
Fort Collins Warborough, Oxon
CO 80526 USA OX10 7DN, ENGLAND
Phone: 970-221-0438 Phone: +44 (0)1865 858279
E-mail: davidf@dfanning.com E-mail: davidb@burridgecomputing.co.uk
Category
Objects. Syntax
theAxes = Obj_New("IMGAXES")
imageObj -> Add, theAxes
Superclasses
CATATOM
CATCONTAINER
IDL_CONTAINER
Class Structure
class = { IMGAXES, $ ; The object class name.
INHERITS CATATOM, $
box: DblArr(2,5), $ ; The boundary box for the axes.
charsize: 0.0, $ ; The character size.
color: "" , $ ; The axes color.
coords: Obj_New(), $ ; A coordinate object.
font: 0L, $ ; The font to use. (Like !P.Font.)
position: FltArr(4), $ ; The normalized position in the window for drawing axes.
tickdir: 0B, $ ; The tick direction.
title: "", $ ; A title for the axis.
visible: 0L, $ ; A flag that indicats the axes should be drawn.
xrange:FltArr(2), $ ; The X axis range.
xcharsize: 0.0, $ ; The X axis character size.
xtickformat: "", $ ; The format for the X axis.
xticklen: 0.0, $ ; The X tick length.
xtitle: "", $ ; The title or label for the X axis.
ycharsize: 0.0, $ ; The Y axis character size.
ytickformat: "", $ ; The format for the Y axis.
yticklen: 0.0, ; The Y tick length.
yrange:FltArr(2), $ ; The Y axis range.
ytitle: "" $ ; The title or label for the Y axis.
}
Notes
The image objects will automatically update the IMGAXES object position when the image is
drawn if the IMGAXES object has a name of "IMGAXES*" where the "*" can be anything you like.
This is the default name given to this object, so it is perhaps best NOT to name the object
unless there is good reason to do so. Appending the letters "IMGAXES" to your name will
prevent problems.
Modification History
Written by: David W. Fanning, July 17, 2003.
Removed SCR_XSIZE call on PropertySheet widgets. 12 October 2004. DWF.
Changed ON keyword to VISIBLE for Catalyst consistency. 7 July 2005. DWF.
Added boundary box calculations at end of DRAW method. 7 July 2005. DWF.
Added automatic True-Type fonts for PostScript output, if Hershey fonts would otherwise
be selected. 1 August 2006. DWF.
Added the ability to specify tick length and direction. 12 Oct 2008. DWF.