![]() |
|
|||||||
| Development Help Help for building applications or diagnosing problems with WWJ |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jun 2009
Posts: 128
![]() |
Ok I've heard alot on the forum about this and I've searched but I can't seem to come across what I'm looking for. I found a forum topic where a guy was able to turn off picking within his select listener... however.
I have not included a select listener within mine. Is there specific code to turn off picking? or even code that alows me to "select" and object without being able to move it? Last edited by patmurris; 07-29-2009 at 10:24 PM. Reason: Solved |
|
|
|
|
|
#2 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
![]() |
Not sure what you are asking for... turn picking off for what? terrain, imagery layers, icons, surface shapes?
To be able to select an object, that object must have gone through the pick pass and registered at least a PickableObject with the DrawContext. Whether you just consider it 'selected' or handle some sort of dragging is the application choice. |
|
|
|
|
|
#3 | |
|
Senior Member
Join Date: Jun 2009
Posts: 128
![]() |
Quote:
I read that by turning picking off of polylines that it will increase the performance of the application. I wasn't able to figure out how to turn off the picking for my polylines, but I saw that you can just go and do a layer.setPickEnabled(false); to turn off picking for the layer that the polylines were added to. But this didn't seem to help the performance at all. |
|
|
|
|
|
|
#4 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
![]() |
I guess you are using terain following polylines with a renderable layer. Did you try SurfacePolyline in a SurfaceShapeLayer?
How many vertices do you try to render? |
|
|
|
|
|
#5 | |
|
Senior Member
Join Date: Jun 2009
Posts: 128
![]() |
Quote:
![]() ha ha the vertices are a little ridiculous.... somewhere around 70,000. I'm not expecting to have it run perfect, cause I know it's gonna suffer performance issues. I just want to make sure I can make it run as good as possible. I've already dumbed down the polylines with these lines of code. Polyline.setPathType(Polyline.RHUMB_LINE ); Polyline.setAntiAliasHint(Polyline.ANTIA LIAS_FASTEST); Polyline.setNumSubsegments(0); Polyline.setFollowTerrain(false); Polyline.setLineWidth(1); Polyline.setStippleFactor(0); and that helped my performance ALOT. |
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| picking text label | pegasus | Development Help | 5 | 08-03-2009 06:58 PM |
| picking object 3d | workingDog | Development Help | 1 | 07-21-2009 02:49 PM |
| [Solved] Picking, Selecting, Intesecting or whatever it is called | PokerVT | Development Help | 4 | 10-02-2008 10:36 PM |
| Polyline, picking, and efficiency | pjt33 | Development Help | 2 | 09-26-2008 08:58 AM |
| Trouble with picking on mountainous regions | slade | Development Help | 3 | 07-17-2007 08:49 PM |