logo back up home forward   further reading more topics »

mjbWorld program

behaviorPick

 

Attribute

Name

Type

Description

tool

int

 

debug

boolean

 

SHAPE3D

int

 

MORPH

int

 

PRIMITIVE

int

 

LINK

int

 

GROUP

int

 

TRANSFORM_GROUP

int

 

BRANCH_GROUP

int

 

SWITCH

int

 

distance[]

double

 

position[]

int

 

1.2 Operations

Name

Description

behaviorPick

 

updateScene

 

setTool

 

initialize

 

processStimulus

 

pickClosest

Returns a reference to the item that is closest to the viewer and is Pickable below the BranchGroup (specified in the PickObject constructor) which intersects with the ray that starts at the viewer position and points into the scene in the direction of (xpos, ypos) in the window space.

@param xpos The value along the x-axis.

@param ypos The value along the y-axis.

@return A SceneGraphPath which contains the closest pickable object.

If no pickable object is found, null is returned.

@see SceneGraphPath

sort

 

quicksort

 

pickGeomAllSorted

 

pickNode

 

generatePickRay

Creates a PickRay that starts at the viewer position and points into the scene in the direction of (xpos, ypos) specified in window space. PickRay is a class that contains Point3d origin and Vector3d direction

@param xpos The value along the x-axis.

@param ypos The value along the y-axis.

@return A PickShape object that is the constructed PickRay.


metadata block
see also:

 

Correspondence about this page

Book Shop - Further reading.

Where I can, I have put links to Amazon for books that are relevant to the subject, click on the appropriate country flag to get more details of the book or to buy it from them.

 

Commercial Software Shop

Where I can, I have put links to Amazon for commercial software, not directly related to this site, but related to the subject being discussed, click on the appropriate country flag to get more details of the software or to buy it from them.

 

Can you help?

Please send me any improvements to here. I would appreciate ideas to make the pages more useful including error correction, ideas for new pages, improvements to wording. It helps if you quote the full URL of the page.

 

progam

I am working on a project which uses these principles, if you would like to help me with this you are welcome to join in, here:

http://sourceforge.net/projects/mjbworld/

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2008 Martin John Baker - All rights reserved.