Coyote Graphics Routines

Date: Fri Mar 27 12:14:20 2015

single page | use frames     summary     class     fields     routine details     file attributes


top cgOBJ_ISA


result = cgOBJ_ISA( [object] [, classname])

The purpose of this utility routine is to check to be sure the object argument is valid and belongs to the specified object class. It is more useful than the built-in Obj_Isa function, because it can handle undefined variable arguments.

Return value

The function returns a 0 to indicate FALSE or a 1 to indicate TRUE. If passed an array of objects, it will return an array of 0s and 1s for each object.


object in optional type=object

The object reference to check. It may be undefined. This variable may also be an array.

classname in optional type=string

The object class name. If undefined, the function always returns false.


Here is how to use this program:

IDL> IF cgObj_ISA(object, 'cgKML_Feature') THEN object -> SetProperty, PLACENAME='Boulder'

Author information



David W. Fanning 1645 Sheely Drive Fort Collins, CO 80526 USA Phone: 970-221-0438 E-mail: Coyote's Guide to IDL Programming:


Copyright (c) 2012, Fanning Software Consulting, Inc.


Change History:

Written, 4 Novemeber 2012 by David W. Fanning.

File attributes

Modification date: Fri Mar 27 11:07:35 2015
Lines: 102
Docformat: rst rst