SoPickStyle Class Reference
[Properties]

Picking style node. More...

#include <Inventor/nodes/SoPickStyle.h>

Inheritance diagram for SoPickStyle:
SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Types

enum  Style {
  SHAPE = SoPickStyleElement::SHAPE,
  BOUNDING_BOX = SoPickStyleElement::BOUNDING_BOX,
  UNPICKABLE = SoPickStyleElement::UNPICKABLE
}
enum  Method {
  AUTO = SoPickMethodElement::AUTO,
  GPU = SoPickMethodElement::GPU,
  CPU = SoPickMethodElement::CPU
}

Public Member Functions

virtual SoType getTypeId () const
 SoPickStyle ()
virtual void setOverride (const SbBool state)
virtual SbBool isOverride () const

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoSFEnum style
SoSFEnum method

Detailed Description

Picking style node.

This node determines how subsequent geometry nodes in the scene graph are to be picked, as indicated by the style and method fields.

Note that this is the only way to change the pick behavior of shapes; drawing style, complexity, and other rendering-related properties have no effect on picking.

FILE FORMAT/DEFAULT

ACTION BEHAVIOR

SEE ALSO

SoComplexity, SoDrawStyle, SoRayPickAction


Member Enumeration Documentation

Picking method.

Specifying a method will not change the result of picking but may affect performance. Some shapes like MoMeshSkin implement a fast GPU Picking technique that may be faster than CPU picking (depending on the case). When Method is AUTO, Open Inventor will automatically determine which picking method should be used. However you can force using CPU or GPU picking technique. Please refer to SoRayPickAction documentation for more details about GPU Picking.

Enumerator:
AUTO 

Select the best method to use when picking a shape.

GPU 

Always use GPU accelerated picking if the shape supports it.

CPU 

Always use CPU picking even if the shape supports another picking method.

Picking style.

Enumerator:
SHAPE 

Points on the surfaces of shapes may be picked.

BOUNDING_BOX 

Points on the surfaces of 3D bounding boxes of shapes may be picked.

UNPICKABLE 

Subsequent objects are ignored by pick traversal.


Constructor & Destructor Documentation

SoPickStyle::SoPickStyle (  ) 

Creates a pick style node with default settings.


Member Function Documentation

static SoType SoPickStyle::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoNode.

virtual SoType SoPickStyle::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Reimplemented from SoNode.

virtual SbBool SoPickStyle::isOverride (  )  const [inline, virtual]

Returns the state of the override field.

Reimplemented from SoNode.

virtual void SoPickStyle::setOverride ( const SbBool  state  )  [inline, virtual]

Set the state of the override field.

see SoNode::setOverride doc.

Reimplemented from SoNode.


Member Data Documentation

Specifies the method used to pick shapes.

Use enum Method. Default is AUTO.

Picking style.

Use enum Style. Default is SHAPE.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 4 Sep 2023
Copyright © Thermo Fisher Scientific All rights reserved.
https://www.openinventor.com/