| 
    OpenCMISS-Zinc C++ API Documentation
    
   | 
 
Utility object for picking graphics and model objects. More...
#include <scenepicker.hpp>
Public Member Functions | |
| Scenepicker (cmzn_scenepicker_id in_scenepicker_id) | |
| Scenepicker (const Scenepicker &scenepicker) | |
| Scenepicker & | operator= (const Scenepicker &scenepicker) | 
| bool | isValid () const | 
| cmzn_scenepicker_id | getId () const | 
| int | setSceneviewerRectangle (const Sceneviewer &sceneviewer, Scenecoordinatesystem coordinateSystem, double x1, double y1, double x2, double y2) | 
| Element | getNearestElement () | 
| Node | getNearestNode () | 
| Graphics | getNearestElementGraphics () | 
| Graphics | getNearestNodeGraphics () | 
| Graphics | getNearestGraphics () | 
| int | addPickedElementsToFieldGroup (const FieldGroup &fieldGroup) | 
| int | addPickedNodesToFieldGroup (const FieldGroup &fieldGroup) | 
| Scene | getScene () | 
| int | setScene (const Scene &scene) | 
| Scenefilter | getScenefilter () | 
| int | setScenefilter (const Scenefilter &filter) | 
Protected Attributes | |
| cmzn_scenepicker_id | id | 
Utility object for picking graphics and model objects.
Utility object for picking graphics and model objects (nodes/elements) from the 3-D graphics in a scene tree.
      
  | 
  inline | 
Picked elements belong to group field's owning region tree will be added to group. Additional subregion fields will be created when required.
| fieldGroup | elements will be added to this group field | 
      
  | 
  inline | 
Picked nodes belong to group field's owning region tree will be added to group. Additional subregion fields will be created when required.
| fieldGroup | nodes will be added to this group field | 
      
  | 
  inline | 
Return the C handle of the Scenepicker object.
      
  | 
  inline | 
Get the nearest element in the defined bounding box on scene.
      
  | 
  inline | 
Get the nearest element graphics in the defined bounding box on scene.
      
  | 
  inline | 
Get the nearest graphics in the defined bounding box on scene.
      
  | 
  inline | 
Get the nearest node in the defined bounding box on scene.
      
  | 
  inline | 
Get the nearest node graphics in the defined bounding box on scene.
      
  | 
  inline | 
Get the scene set for the scene picker to pick from.
      
  | 
  inline | 
Get the scene filter for the scene picker.
      
  | 
  inline | 
Check if this is a valid Scenepicker object.
      
  | 
  inline | 
Set the scene for the scene picker to pick from.
| scene | The scene to pick from. | 
      
  | 
  inline | 
Set the scene filter for the scene picker. This filters which graphics are pickable from the scene.
| filter | The scene filter to use, or NULL if none (all pickable). | 
      
  | 
  inline | 
Set the bounding box of scene picker. Scene viewer will provide the preset modelview and projection matrix from itself. (x1,y1) and (x2,y2) are diagonally opposite corners of the rectangle.
| sceneviewer | Scene viewer to get the modelview and projection matrix from. | 
| coordinateSystem | * | 
| y1 | and y1 specify the location of a corner of the rectangle | 
| y1 | and y2 specify tthe location of he diagonally opposite corners to (x1, y1) of the rectangle. | 
 1.8.6