.. role:: clio-optional
   :class: clio-flag clio-flag-optional


##########
PickConfig
##########

.. js:class:: wv.PickConfig

   Configuration for all pick functions in the View class.
   
   
   Index
   =====
   
   .. rubric:: Constructors
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:func:`~wv.PickConfig.constructor`
   
   .. rubric:: Properties
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:data:`~wv.PickConfig.enableProximityFaces`
   * :js:data:`~wv.PickConfig.forceEffectiveSceneVisibilityMask`
   * :js:data:`~wv.PickConfig.forceEffectiveVisibilityMask`
   * :js:data:`~wv.PickConfig.ignoreCappingGeometry`
   * :js:data:`~wv.PickConfig.ignoreOverlays`
   * :js:data:`~wv.PickConfig.oneEntityPerTypePerInstance`
   * :js:data:`~wv.PickConfig.respectDepthRange`
   * :js:data:`~wv.PickConfig.respectVisibility`
   * :js:data:`~wv.PickConfig.restrictLinesAndPointsToSelectedFaceInstances`
   * :js:data:`~wv.PickConfig.restrictToOverlays`
   * :js:data:`~wv.PickConfig.selectionMask`
   * :js:data:`~wv.PickConfig.bimMask`
   * :js:data:`~wv.PickConfig.maxWorldDistance`
   * :js:data:`~wv.PickConfig.rejectionBitsAll`
   * :js:data:`~wv.PickConfig.rejectionBitsAny`
   * :js:data:`~wv.PickConfig.requiredBitsAll`
   * :js:data:`~wv.PickConfig.requiredBitsAny`
   
   .. rubric:: Accessors
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:func:`~wv.PickConfig.allowFaces`
   * :js:func:`~wv.PickConfig.allowLines`
   * :js:func:`~wv.PickConfig.allowPoints`
   
   .. rubric:: Methods
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:meth:`~wv.PickConfig.copy`
   
   



.. rst-class:: kind-group kind-constructors

.. rubric:: Constructors
   :class: kind-group-title


.. js:method:: wv.PickConfig.constructor

      .. rst-class:: sig-pretty-signature
      
         | PickConfig(**selectionMask**\ : :js:data:`SelectionMask <wv.SelectionMask>`\ ?): :js:class:`PickConfig <wv.PickConfig>`
      
      **Parameters**
      
      
         **selectionMask**\ : :js:data:`SelectionMask <wv.SelectionMask>` = SelectionMask.Face
      
      
      **Returns**\ : :js:class:`PickConfig <wv.PickConfig>`
      



.. rst-class:: kind-group kind-properties

.. rubric:: Properties
   :class: kind-group-title


.. js:data:: wv.PickConfig.enableProximityFaces

      .. rst-class:: sig-pretty-signature
      
         | enableProximityFaces: *boolean*
      
      If true, faces can be selected by proximity (like lines and points). This option is only relevant for screen selection.
      



.. js:data:: wv.PickConfig.forceEffectiveSceneVisibilityMask

      .. rst-class:: sig-pretty-signature
      
         | forceEffectiveSceneVisibilityMask: :js:data:`SelectionMask <wv.SelectionMask>`
      
      For each element type bit in this mask, if the bit is on, then scene visibility is treated as if that element type is visible during selection.
      



.. js:data:: wv.PickConfig.forceEffectiveVisibilityMask

      .. rst-class:: sig-pretty-signature
      
         | forceEffectiveVisibilityMask: :js:data:`SelectionMask <wv.SelectionMask>`
      
      For each element type bit in this mask, if the bit is on, then scene visibility and geometry visibility are treated as if that element type is visible during selection.
      



.. js:data:: wv.PickConfig.ignoreCappingGeometry

      .. rst-class:: sig-pretty-signature
      
         | ignoreCappingGeometry: *boolean*
      
      Configures whether or not capping geometry is ignored when computing selection results.
      



.. js:data:: wv.PickConfig.ignoreOverlays

      .. rst-class:: sig-pretty-signature
      
         | ignoreOverlays: *boolean*
      
      If true, selection will not process geometry contained in overlays. This option is only relevant for screen selection.
      



.. js:data:: wv.PickConfig.oneEntityPerTypePerInstance

      .. rst-class:: sig-pretty-signature
      
         | oneEntityPerTypePerInstance: *boolean*
      
      If true, then only one entity per entity type can be returned per instance.
      
      For example, consider a cube made from a single mesh instance, where each face is a different face entity and backfaces culling is disabled. If this option is true, then at most one face from the cube can be selected. If false, then multiple faces from the cube can be selected. (This can occur when selecting from the front of the cube and then obtaining the face behind the front face in addition to the front face.)
      



.. js:data:: wv.PickConfig.respectDepthRange

      .. rst-class:: sig-pretty-signature
      
         | respectDepthRange: *boolean*
      
      Configures whether or not depth range is respected when performing a selection. This option is only relevant for screen selection.
      



.. js:data:: wv.PickConfig.respectVisibility

      .. rst-class:: sig-pretty-signature
      
         | respectVisibility: *boolean*
      
      Configures whether or not visibility is respected when performing a selection.
      



.. js:data:: wv.PickConfig.restrictLinesAndPointsToSelectedFaceInstances

      .. rst-class:: sig-pretty-signature
      
         | restrictLinesAndPointsToSelectedFaceInstances: *boolean*
      
      Configures whether or not line and point selection is restricted to instances that get selected by face. This is only a heuristic and may be ignored. This option is only relevant for screen selection.
      



.. js:data:: wv.PickConfig.restrictToOverlays

      .. rst-class:: sig-pretty-signature
      
         | restrictToOverlays: *boolean*
      
      If true, selection is performed only within overlays. This option is only relevant for screen selection.
      



.. js:data:: wv.PickConfig.selectionMask

      .. rst-class:: sig-pretty-signature
      
         | selectionMask: :js:data:`SelectionMask <wv.SelectionMask>`
      
      Configures what types of entities are considered for selection.
      



.. js:data:: wv.PickConfig.bimMask

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | bimMask: :js:data:`BimMask <wv.Sc.BimMask>`
      
      If set, selection will be restricted to geometry of the specified BIM types.
      



.. js:data:: wv.PickConfig.maxWorldDistance

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | maxWorldDistance: *number*
      
      If supplied, this is the maximum distance in world-space along the selection ray that can be used to select any geometry.
      
      If this value is negative, it is ignored.
      
      This parameter is incompatible with line and point selection.
      



.. js:data:: wv.PickConfig.rejectionBitsAll

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | rejectionBitsAll: *number*
      
      (8 bits) If rejectionBitsAll are supplied, a mesh cannot be selected if its selection bits have all the ones supplied.
      



.. js:data:: wv.PickConfig.rejectionBitsAny

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | rejectionBitsAny: *number*
      
      (8 bits) If rejectionBitsAny are supplied, a mesh cannot be selected if its selection bits have any of the ones supplied.
      



.. js:data:: wv.PickConfig.requiredBitsAll

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | requiredBitsAll: *number*
      
      (8 bits) If requiredBitsAll are supplied, a mesh can only be selected if its selection bits have all the ones supplied.
      



.. js:data:: wv.PickConfig.requiredBitsAny

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | requiredBitsAny: *number*
      
      (8 bits) If requiredBitsAny are supplied, a mesh can only be selected if its selection bits have any of the ones supplied.
      



.. rst-class:: kind-group kind-accessors

.. rubric:: Accessors
   :class: kind-group-title


.. js:method:: wv.PickConfig.allowFaces

      .. rst-class:: sig-pretty-signature
      
         | *get* allowFaces(): *boolean*
      
      **Returns**\ : *boolean*
      
      .. rst-class:: sig-pretty-signature
      
         | *set* allowFaces(**allow**\ : *boolean*\ ): *void*
      
      **Parameters**
      
      
         **allow**\ : *boolean*
      
      
      **Returns**\ : *void*
      



.. js:method:: wv.PickConfig.allowLines

      .. rst-class:: sig-pretty-signature
      
         | *get* allowLines(): *boolean*
      
      **Returns**\ : *boolean*
      
      .. rst-class:: sig-pretty-signature
      
         | *set* allowLines(**allow**\ : *boolean*\ ): *void*
      
      **Parameters**
      
      
         **allow**\ : *boolean*
      
      
      **Returns**\ : *void*
      



.. js:method:: wv.PickConfig.allowPoints

      .. rst-class:: sig-pretty-signature
      
         | *get* allowPoints(): *boolean*
      
      **Returns**\ : *boolean*
      
      .. rst-class:: sig-pretty-signature
      
         | *set* allowPoints(**allow**\ : *boolean*\ ): *void*
      
      **Parameters**
      
      
         **allow**\ : *boolean*
      
      
      **Returns**\ : *void*
      



.. rst-class:: kind-group kind-methods

.. rubric:: Methods
   :class: kind-group-title


.. js:method:: wv.PickConfig.copy

      .. rst-class:: sig-pretty-signature
      
         | copy(): :js:class:`PickConfig <wv.PickConfig>`
      
      Returns a copy of this [[PickConfig]].
      
      **Returns**\ : :js:class:`PickConfig <wv.PickConfig>`
      




