Author Topic: Lib method of Object3D setVisibility not working.  (Read 1367 times)

Offline icarusfactor

  • int
  • **
  • Posts: 58
    • View Profile
Lib method of Object3D setVisibility not working.
« on: March 14, 2011, 09:10:19 am »
I am trying to use world_table.atom.setVisibility(  Object3D.OBJ_VISIBLE ); as per documented here.
http://www.jpct.net/doc/com/threed/jpct/Object3D.html#setVisibility%28boolean%29

But I get the error.
Code: [Select]
cannot find symbol
    [javac] symbol  : method setVisibility(boolean)
    [javac] location: class com.threed.jpct.Object3D[]
    [javac]                  world_table.atom.setVisibility( Object3D.OBJ_VISIBLE );

I am using the Beta version of the JPCT lib, not the one on the main website.

I want to use this method to loop through all the ball or stick items to show both or one or the other, later want to use it to only show known chains(amino acids , viruses , cancer etc..) of atoms.



Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: Lib method of Object3D setVisibility not working.
« Reply #1 on: March 14, 2011, 09:32:02 am »
You seem to try to set this on an Object3D[]-array instead of a single Object3D...

Offline icarusfactor

  • int
  • **
  • Posts: 58
    • View Profile
Re: Lib method of Object3D setVisibility not working.
« Reply #2 on: March 14, 2011, 09:39:26 am »
Thanks , that was an easy one. I was just testing it out to see if it worked without FOR loop first and did not write it for an array , so you where correct. It is now working, thanks.