Class XrSessionSettings


  • public class XrSessionSettings
    extends CFacade
    Generated facet for DNA struct type 'XrSessionSettings'.

    Class Documentation

    Blender Source Code


    • Field Detail

      • __DNA__SDNA_INDEX

        public static final int __DNA__SDNA_INDEX
        This is the sdna index of the struct XrSessionSettings.

        It is required when allocating a new block to store data for XrSessionSettings.

        See Also:
        StructDNA, BlockTable, Constant Field Values
      • __DNA__FIELD__shading

        public static final long[] __DNA__FIELD__shading
        Field descriptor (offset) for struct member 'shading'.

        Field Documentation

        Blender Python API

        (read-only)

        Blender Source Code

        Shading settings, struct shared with 3D-View so settings are the same.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         XrSessionSettings xrsessionsettings = ...;
         CPointer<Object> p = xrsessionsettings.__dna__addressof(XrSessionSettings.__DNA__FIELD__shading);
         CPointer<View3DShading> p_shading = p.cast(new Class[]{View3DShading.class});
         

        Metadata

        • Field: 'shading'
        • Signature: 'View3DShading'
        • Actual Size (32bit/64bit): 936/944
      • __DNA__FIELD__base_scale

        public static final long[] __DNA__FIELD__base_scale
        Field descriptor (offset) for struct member 'base_scale'.

        Field Documentation

        Blender Python API

        Uniform scale to apply to VR view

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         XrSessionSettings xrsessionsettings = ...;
         CPointer<Object> p = xrsessionsettings.__dna__addressof(XrSessionSettings.__DNA__FIELD__base_scale);
         CPointer<Float> p_base_scale = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'base_scale'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD___pad

        public static final long[] __DNA__FIELD___pad
        Field descriptor (offset) for struct member '_pad'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         XrSessionSettings xrsessionsettings = ...;
         CPointer<Object> p = xrsessionsettings.__dna__addressof(XrSessionSettings.__DNA__FIELD___pad);
         CPointer<CArrayFacade<Byte>> p__pad = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: '_pad'
        • Signature: 'char[3]'
        • Actual Size (32bit/64bit): 3/3
      • __DNA__FIELD__base_pose_type

        public static final long[] __DNA__FIELD__base_pose_type
        Field descriptor (offset) for struct member 'base_pose_type'.

        Field Documentation

        Blender Python API

        Define where the location and rotation for the VR view come from, to which translation and rotation deltas from the VR headset will be applied to

        Blender Source Code

        #eXRSessionBasePoseType

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         XrSessionSettings xrsessionsettings = ...;
         CPointer<Object> p = xrsessionsettings.__dna__addressof(XrSessionSettings.__DNA__FIELD__base_pose_type);
         CPointer<Byte> p_base_pose_type = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'base_pose_type'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__base_pose_object

        public static final long[] __DNA__FIELD__base_pose_object
        Field descriptor (offset) for struct member 'base_pose_object'.

        Field Documentation

        Blender Python API

        Object to take the location and rotation to which translation and rotation deltas from the VR headset will be applied to

        Blender Source Code

        Object to take the location and rotation as base position from.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         XrSessionSettings xrsessionsettings = ...;
         CPointer<Object> p = xrsessionsettings.__dna__addressof(XrSessionSettings.__DNA__FIELD__base_pose_object);
         CPointer<CPointer<BlenderObject>> p_base_pose_object = p.cast(new Class[]{CPointer.class, BlenderObject.class});
         

        Metadata

        • Field: 'base_pose_object'
        • Signature: 'Object*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__base_pose_location

        public static final long[] __DNA__FIELD__base_pose_location
        Field descriptor (offset) for struct member 'base_pose_location'.

        Field Documentation

        Blender Python API

        Coordinates to apply translation deltas from the VR headset to

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         XrSessionSettings xrsessionsettings = ...;
         CPointer<Object> p = xrsessionsettings.__dna__addressof(XrSessionSettings.__DNA__FIELD__base_pose_location);
         CPointer<CArrayFacade<Float>> p_base_pose_location = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'base_pose_location'
        • Signature: 'float[3]'
        • Actual Size (32bit/64bit): 12/12
      • __DNA__FIELD__base_pose_angle

        public static final long[] __DNA__FIELD__base_pose_angle
        Field descriptor (offset) for struct member 'base_pose_angle'.

        Field Documentation

        Blender Python API

        Rotation angle around the Z-Axis to apply the rotation deltas from the VR headset to

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         XrSessionSettings xrsessionsettings = ...;
         CPointer<Object> p = xrsessionsettings.__dna__addressof(XrSessionSettings.__DNA__FIELD__base_pose_angle);
         CPointer<Float> p_base_pose_angle = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'base_pose_angle'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__draw_flags

        public static final long[] __DNA__FIELD__draw_flags
        Field descriptor (offset) for struct member 'draw_flags'.

        Field Documentation

        Blender Source Code

        View3D draw flags (V3D_OFSDRAW_NONE, V3D_OFSDRAW_SHOW_ANNOTATION, ...).

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         XrSessionSettings xrsessionsettings = ...;
         CPointer<Object> p = xrsessionsettings.__dna__addressof(XrSessionSettings.__DNA__FIELD__draw_flags);
         CPointer<Byte> p_draw_flags = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'draw_flags'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__controller_draw_style

        public static final long[] __DNA__FIELD__controller_draw_style
        Field descriptor (offset) for struct member 'controller_draw_style'.

        Field Documentation

        Blender Python API

        Style to use when drawing VR controllers

        Blender Source Code

        Draw style for controller visualization.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         XrSessionSettings xrsessionsettings = ...;
         CPointer<Object> p = xrsessionsettings.__dna__addressof(XrSessionSettings.__DNA__FIELD__controller_draw_style);
         CPointer<Byte> p_controller_draw_style = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'controller_draw_style'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD___pad2

        public static final long[] __DNA__FIELD___pad2
        Field descriptor (offset) for struct member '_pad2'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         XrSessionSettings xrsessionsettings = ...;
         CPointer<Object> p = xrsessionsettings.__dna__addressof(XrSessionSettings.__DNA__FIELD___pad2);
         CPointer<CArrayFacade<Byte>> p__pad2 = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: '_pad2'
        • Signature: 'char[2]'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__clip_start

        public static final long[] __DNA__FIELD__clip_start
        Field descriptor (offset) for struct member 'clip_start'.

        Field Documentation

        Blender Python API

        VR viewport near clipping distance

        Blender Source Code

        Clipping distance.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         XrSessionSettings xrsessionsettings = ...;
         CPointer<Object> p = xrsessionsettings.__dna__addressof(XrSessionSettings.__DNA__FIELD__clip_start);
         CPointer<Float> p_clip_start = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'clip_start'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__clip_end

        public static final long[] __DNA__FIELD__clip_end
        Field descriptor (offset) for struct member 'clip_end'.

        Field Documentation

        Blender Python API

        VR viewport far clipping distance

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         XrSessionSettings xrsessionsettings = ...;
         CPointer<Object> p = xrsessionsettings.__dna__addressof(XrSessionSettings.__DNA__FIELD__clip_end);
         CPointer<Float> p_clip_end = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'clip_end'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__flag

        public static final long[] __DNA__FIELD__flag
        Field descriptor (offset) for struct member 'flag'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         XrSessionSettings xrsessionsettings = ...;
         CPointer<Object> p = xrsessionsettings.__dna__addressof(XrSessionSettings.__DNA__FIELD__flag);
         CPointer<Integer> p_flag = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'flag'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__object_type_exclude_viewport

        public static final long[] __DNA__FIELD__object_type_exclude_viewport
        Field descriptor (offset) for struct member 'object_type_exclude_viewport'.

        Field Documentation

        Blender Source Code

        Object type settings to apply to VR view (unlike shading, not shared with window 3D-View).

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         XrSessionSettings xrsessionsettings = ...;
         CPointer<Object> p = xrsessionsettings.__dna__addressof(XrSessionSettings.__DNA__FIELD__object_type_exclude_viewport);
         CPointer<Integer> p_object_type_exclude_viewport = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'object_type_exclude_viewport'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__object_type_exclude_select

        public static final long[] __DNA__FIELD__object_type_exclude_select
        Field descriptor (offset) for struct member 'object_type_exclude_select'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         XrSessionSettings xrsessionsettings = ...;
         CPointer<Object> p = xrsessionsettings.__dna__addressof(XrSessionSettings.__DNA__FIELD__object_type_exclude_select);
         CPointer<Integer> p_object_type_exclude_select = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'object_type_exclude_select'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
    • Constructor Detail

      • XrSessionSettings

        public XrSessionSettings​(long __address,
                                 Block __block,
                                 BlockTable __blockTable)
    • Method Detail

      • getShading

        public View3DShading getShading()
                                 throws java.io.IOException
        Get method for struct member 'shading'.

        Field Documentation

        Blender Python API

        (read-only)

        Blender Source Code

        Shading settings, struct shared with 3D-View so settings are the same.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__shading
      • setShading

        public void setShading​(View3DShading shading)
                        throws java.io.IOException
        Set method for struct member 'shading'.

        Field Documentation

        Blender Python API

        (read-only)

        Blender Source Code

        Shading settings, struct shared with 3D-View so settings are the same.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__shading
      • getBase_scale

        public float getBase_scale()
                            throws java.io.IOException
        Get method for struct member 'base_scale'.

        Field Documentation

        Blender Python API

        Uniform scale to apply to VR view
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__base_scale
      • setBase_scale

        public void setBase_scale​(float base_scale)
                           throws java.io.IOException
        Set method for struct member 'base_scale'.

        Field Documentation

        Blender Python API

        Uniform scale to apply to VR view
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__base_scale
      • get_pad

        public CArrayFacade<java.lang.Byte> get_pad()
                                             throws java.io.IOException
        Get method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad
      • set_pad

        public void set_pad​(CArrayFacade<java.lang.Byte> _pad)
                     throws java.io.IOException
        Set method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad
      • getBase_pose_type

        public byte getBase_pose_type()
                               throws java.io.IOException
        Get method for struct member 'base_pose_type'.

        Field Documentation

        Blender Python API

        Define where the location and rotation for the VR view come from, to which translation and rotation deltas from the VR headset will be applied to

        Blender Source Code

        #eXRSessionBasePoseType

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__base_pose_type
      • setBase_pose_type

        public void setBase_pose_type​(byte base_pose_type)
                               throws java.io.IOException
        Set method for struct member 'base_pose_type'.

        Field Documentation

        Blender Python API

        Define where the location and rotation for the VR view come from, to which translation and rotation deltas from the VR headset will be applied to

        Blender Source Code

        #eXRSessionBasePoseType

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__base_pose_type
      • getBase_pose_object

        public CPointer<BlenderObject> getBase_pose_object()
                                                    throws java.io.IOException
        Get method for struct member 'base_pose_object'.

        Field Documentation

        Blender Python API

        Object to take the location and rotation to which translation and rotation deltas from the VR headset will be applied to

        Blender Source Code

        Object to take the location and rotation as base position from.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__base_pose_object
      • setBase_pose_object

        public void setBase_pose_object​(CPointer<BlenderObject> base_pose_object)
                                 throws java.io.IOException
        Set method for struct member 'base_pose_object'.

        Field Documentation

        Blender Python API

        Object to take the location and rotation to which translation and rotation deltas from the VR headset will be applied to

        Blender Source Code

        Object to take the location and rotation as base position from.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__base_pose_object
      • getBase_pose_location

        public CArrayFacade<java.lang.Float> getBase_pose_location()
                                                            throws java.io.IOException
        Get method for struct member 'base_pose_location'.

        Field Documentation

        Blender Python API

        Coordinates to apply translation deltas from the VR headset to
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__base_pose_location
      • setBase_pose_location

        public void setBase_pose_location​(CArrayFacade<java.lang.Float> base_pose_location)
                                   throws java.io.IOException
        Set method for struct member 'base_pose_location'.

        Field Documentation

        Blender Python API

        Coordinates to apply translation deltas from the VR headset to
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__base_pose_location
      • getBase_pose_angle

        public float getBase_pose_angle()
                                 throws java.io.IOException
        Get method for struct member 'base_pose_angle'.

        Field Documentation

        Blender Python API

        Rotation angle around the Z-Axis to apply the rotation deltas from the VR headset to
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__base_pose_angle
      • setBase_pose_angle

        public void setBase_pose_angle​(float base_pose_angle)
                                throws java.io.IOException
        Set method for struct member 'base_pose_angle'.

        Field Documentation

        Blender Python API

        Rotation angle around the Z-Axis to apply the rotation deltas from the VR headset to
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__base_pose_angle
      • getDraw_flags

        public byte getDraw_flags()
                           throws java.io.IOException
        Get method for struct member 'draw_flags'.

        Field Documentation

        Blender Source Code

        View3D draw flags (V3D_OFSDRAW_NONE, V3D_OFSDRAW_SHOW_ANNOTATION, ...).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__draw_flags
      • setDraw_flags

        public void setDraw_flags​(byte draw_flags)
                           throws java.io.IOException
        Set method for struct member 'draw_flags'.

        Field Documentation

        Blender Source Code

        View3D draw flags (V3D_OFSDRAW_NONE, V3D_OFSDRAW_SHOW_ANNOTATION, ...).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__draw_flags
      • getController_draw_style

        public byte getController_draw_style()
                                      throws java.io.IOException
        Get method for struct member 'controller_draw_style'.

        Field Documentation

        Blender Python API

        Style to use when drawing VR controllers

        Blender Source Code

        Draw style for controller visualization.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__controller_draw_style
      • setController_draw_style

        public void setController_draw_style​(byte controller_draw_style)
                                      throws java.io.IOException
        Set method for struct member 'controller_draw_style'.

        Field Documentation

        Blender Python API

        Style to use when drawing VR controllers

        Blender Source Code

        Draw style for controller visualization.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__controller_draw_style
      • get_pad2

        public CArrayFacade<java.lang.Byte> get_pad2()
                                              throws java.io.IOException
        Get method for struct member '_pad2'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad2
      • set_pad2

        public void set_pad2​(CArrayFacade<java.lang.Byte> _pad2)
                      throws java.io.IOException
        Set method for struct member '_pad2'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad2
      • getClip_start

        public float getClip_start()
                            throws java.io.IOException
        Get method for struct member 'clip_start'.

        Field Documentation

        Blender Python API

        VR viewport near clipping distance

        Blender Source Code

        Clipping distance.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__clip_start
      • setClip_start

        public void setClip_start​(float clip_start)
                           throws java.io.IOException
        Set method for struct member 'clip_start'.

        Field Documentation

        Blender Python API

        VR viewport near clipping distance

        Blender Source Code

        Clipping distance.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__clip_start
      • getClip_end

        public float getClip_end()
                          throws java.io.IOException
        Get method for struct member 'clip_end'.

        Field Documentation

        Blender Python API

        VR viewport far clipping distance
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__clip_end
      • setClip_end

        public void setClip_end​(float clip_end)
                         throws java.io.IOException
        Set method for struct member 'clip_end'.

        Field Documentation

        Blender Python API

        VR viewport far clipping distance
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__clip_end
      • getFlag

        public int getFlag()
                    throws java.io.IOException
        Get method for struct member 'flag'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • setFlag

        public void setFlag​(int flag)
                     throws java.io.IOException
        Set method for struct member 'flag'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • getObject_type_exclude_viewport

        public int getObject_type_exclude_viewport()
                                            throws java.io.IOException
        Get method for struct member 'object_type_exclude_viewport'.

        Field Documentation

        Blender Source Code

        Object type settings to apply to VR view (unlike shading, not shared with window 3D-View).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__object_type_exclude_viewport
      • setObject_type_exclude_viewport

        public void setObject_type_exclude_viewport​(int object_type_exclude_viewport)
                                             throws java.io.IOException
        Set method for struct member 'object_type_exclude_viewport'.

        Field Documentation

        Blender Source Code

        Object type settings to apply to VR view (unlike shading, not shared with window 3D-View).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__object_type_exclude_viewport
      • getObject_type_exclude_select

        public int getObject_type_exclude_select()
                                          throws java.io.IOException
        Get method for struct member 'object_type_exclude_select'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__object_type_exclude_select
      • setObject_type_exclude_select

        public void setObject_type_exclude_select​(int object_type_exclude_select)
                                           throws java.io.IOException
        Set method for struct member 'object_type_exclude_select'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__object_type_exclude_select