previous | up | next       FieldConfig class
FieldConfig |
Click on the image for a
live example |
By default, Catacomb shows you everything there is to know about a model - that is, everything that would be saved in a file. Sometimes however, it is convenient to cut out some of the complexity and only look at a few parameters. A FieldConfig object contains information on what should and should not be seen at any particular viewing level.
Every object has an array of integers indicating the visibility of its public fields - those that get saved when the model is saved. The private fields, used internally and lost when a model is restored, are never accessible in Catacomb. The visibility, or rather viewing level, is an integer between 0 and 10, with 0 being the most visible and 10 the least. When Catacomb makes an interface for an object, a field is only shown if its viewing level is lower than the current global viewing level. That is, everything up to and including the current viewing level is shown. The default viewing level is 5, and by default everything which is not accessible by some other route has a viewing level of 0.
To change levels, click in the boxes for the desired level and field. The first few fields, name, color, instanceInfo et al. are common to all objects and have high viewing levels because Catacomb provides other ways to show and change them. Individual interfaces do not need to include them specifically.