|
David,
If you
type:
PositionPathInterpolator x = new
PositionPathInterpolator(...); int y = x.currentKnotIndex
Then
you are not within the PositionPathInterpolator. You can only access protected
members from within the class (i.e. you have a "this"). To modify or read the
currentKnotIndex member you would have to derive a class form
PositionPathInterpolator.
Sincerely,
Daniel
Selman
Forgive me if
this is a double post, but I don't think my original post got
through.
Hi,
Can someone explain why I can not access
currentKnotIndex from an instance of a PositionPathInterpolator class. From
what I understand from reading the API document,
PositionPathInterpolator inherited from PathInterpolator, which have a
protected field currentKnotIndex. Thus PositionPathInterpolator should have
access to currentKnotIndex, correct? So, why can I not do
this:
PositionPathInterpolator x = new
PositionPathInterpolator(...); ... int y = x.currentKnotIndex
The
compiler gives this error message: 421: currentKnotIndex has protected
access in javax.media.j3d.PathInterpolator
Please someone clearify, I
posted this in the java.programmer newsgroup and no one seems to
know. Thanks
|