Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

:GET :SET etc

source files: [xc]mtl.[ch]

SYNTAX

(SEND <material> :GET <:PROPERTY> [<default-value>])
(SEND <material> :SET <:PROPERTY> <value>)
(SEND <material> :REMPROP <:PROPERTY>)
(SEND <material> :PROPERTY-LIST-LENGTH)
(SEND <material> :PROPERTY-LIST-NTH <fix:index> [<default-value>])

DESCRIPTION

As usual, :GET/:SET are used to manipulate both values with special significance to the MATERIAL instance, and propertylist values passively stored for the benefit of the user. The properties with special signficance are those discussed under :NEW.

If :GET does not find the requested property, it returns <default-value> if one was provided, otherwise signals an error.

:REMPROP removes the given property from the propertylist, returning (:PROPERTY . <val>) if the property was successfully removed, else NIL.

:PROPERTY-LIST-LENGTH and :PROPERTY-LIST-NTH are provided to allow iteration through all properties on object, the latter's <default-value> works just as on :GET.


Go to the first, previous, next, last section, table of contents.