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 scenecoordinatesystem, 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) |
int | getPickingVolumeCentre (double *coordinateValuesOut3) |
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 |
Return the centre of the picking volume in world coordinates.
coordinateValuesOut3 | Array of size 3 to hold the values of the coordinates. |
|
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. |
scenecoordinatesystem | The window coordinate system the corner points are specified in. Currently only SCENECOORDINATESYSTEM_WINDOW_PIXEL_TOP_LEFT is applied. |
x1 | X coordinate of first corner point. |
y1 | Y coordinate of first corner point. |
x2 | X coordinate of second corner point, diagonally opposite first. |
y2 | Y coordinate of second corner point, diagonally opposite first. |