Show / Hide Table of Contents

Class OctantPicker

Picker for octants.

Inheritance
System.Object
OctantPicker
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.PointCloud.Core
Assembly: Fusee.PointCloud.Core.dll
Syntax
public class OctantPicker

Constructors

OctantPicker(PointCloudOctree, RenderContext, Camera, float3)

Constructor for the octant picker.

Declaration
public OctantPicker(PointCloudOctree octree, RenderContext rc, Camera cam, float3 camPosWorld)
Parameters
Type Name Description
PointCloudOctree octree

The octree to pick from.

RenderContext rc

The render context.

Camera cam

The camera the calculation is based on.

float3 camPosWorld

Fields

Cam

Declaration
public Camera Cam
Field Value
Type Description
Camera

CamPosWorld

Declaration
public float3 CamPosWorld
Field Value
Type Description
float3

Methods

CreateCubeFromNode(PointCloudOctant)

Generate a cube with the same size and position as given octant.

Declaration
public static SceneNode CreateCubeFromNode(PointCloudOctant node)
Parameters
Type Name Description
PointCloudOctant node

The octant to extract information on size and position from.

Returns
Type Description
SceneNode

PickAllOctants(float2, int2)

Returns all PointCloudOctant under given mouse position, without filtering or sorting

Declaration
public List<PointCloudOctant> PickAllOctants(float2 pickPosClip, int2 viewportSize)
Parameters
Type Name Description
float2 pickPosClip
int2 viewportSize
Returns
Type Description
System.Collections.Generic.List<PointCloudOctant>

PickClosestOctant(float2, int2)

Pick the PointCloudOctant that is closest to the camera under given mouse position. Octants are ignored if the camera is inside or the distance from the camera to the octant is smaller than the octant size.

Declaration
public PointCloudOctant PickClosestOctant(float2 pickPosClip, int2 viewportSize)
Parameters
Type Name Description
float2 pickPosClip

The mouse position in clip space.

int2 viewportSize

Width and height of the window.

Returns
Type Description
PointCloudOctant

PickDensestOctant(float2, int2)

Pick the PointCloudOctant that is densest to the camera under given mouse position. Octants are ignored if the camera is inside or the distance from the camera to the octant is smaller than the octant size.

Declaration
public PointCloudOctant PickDensestOctant(float2 pickPosClip, int2 viewportSize)
Parameters
Type Name Description
float2 pickPosClip

The mouse position in clip space.

int2 viewportSize

Width and height of the window.

Returns
Type Description
PointCloudOctant
Generated by DocFX
GitHub Repo
Back to top