Jean Daigle (jaydee++at++thor.ats.qc.ca)
Tue, 15 Aug 1995 10:49:49 -0400
On Aug 14, 5:37pm, "Carlo L. Tiana" wrote:
...
} pfSwitch1
} |
} pfLayer
} / \
} BASE / \ LAYER
} ---------/ \---------
} | |
} runwayGeode1 pfSwitch2
} |
} markingsGeode2
}
} In my understanding, turning pfSwitch1 to PFSWITCH_OFF I should see none of
} the above tree (no runway, no markings); while turning pfSwitch1 to PFSWITCH_ON
} and pfSwitch2 to PFSWITCH_OFF I should just see a runway with no markings;
} yet, albeit I can turn pfSwitch2 on and off for the desired effect, I can never
} get rid of everything by turning pfSwitch1 to PFSWITCH_OFF.
...
}-- End of excerpt from "Carlo L. Tiana"
pfSwitches work for me, although I can't recall offhand whether I've
ever nested them as above.
You should verify that the structure is really what you think using
pfPrint(); also pfGetSwitchVal() can be used to verify switch settings.
You appear to be aware of the distinction between PFSWITCH_ON/OFF and
PF_ON/OFF, which are _incompatible_. Do you set up the above hierarchy
manually in your program, or is it subject to interpretation by a
database loader?
If you can't get switches to work, and the hierarchy is demonstrably
intact, manipulating draw masks using pfNodeTravMask() should achieve
a similar effect.
Hope this helps.
Regards,
Jean Daigle.
-----------------------------------------------------------------
| Jean Daigle ATS Aerospace Inc. |
| Software Designer 1250 Boul Marie-Victorin |
| St. Bruno, QC J3V 6B8 |
| jaydee++at++ats.qc.ca Tel: (514) 441-9000 Fax: (514) 441-6789 |
-----------------------------------------------------------------
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:47 PDT