Show / Hide Table of Contents

Class VisibilityTester

Class that manages the on demand loading of point cloud points.

Inheritance
System.Object
VisibilityTester
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 VisibilityTester

Constructors

VisibilityTester(IPointCloudOctree, TriggerPointLoading)

Creates a new instance.

Declaration
public VisibilityTester(IPointCloudOctree octree, TriggerPointLoading tryAddPointsToCacheHandler)
Parameters
Type Name Description
IPointCloudOctree octree

The octree the visibility algorithm is working on.

TriggerPointLoading tryAddPointsToCacheHandler

Inject a method that loads the points and adds the loaded points in to cache, if needed.

Properties

CamPos

Current camera position - set by the SceneRenderer if a PointCloud Component is visited.

Declaration
public float3 CamPos { get; set; }
Property Value
Type Description
float3

Fov

Current Field of View - set by the SceneRenderer if a PointCloud Component is visited.

Declaration
public float Fov { get; set; }
Property Value
Type Description
System.Single

MinProjSizeModifier

Changes the minimum size of octants. If an octant is smaller it won't be rendered.

Declaration
public float MinProjSizeModifier { get; set; }
Property Value
Type Description
System.Single

Model

Model matrix of the SceneNode the point cloud (component) is part of.

Declaration
public float4x4 Model { get; set; }
Property Value
Type Description
float4x4

NumberOfVisiblePoints

The number of points that are currently visible.

Declaration
public int NumberOfVisiblePoints { get; }
Property Value
Type Description
System.Int32

Octree

The octree structure of the point cloud.

Declaration
public IPointCloudOctree Octree { get; set; }
Property Value
Type Description
IPointCloudOctree

PointThreshold

Maximal number of points that are visible in one frame - trade off between performance and quality.

Declaration
public int PointThreshold { get; set; }
Property Value
Type Description
System.Int32

RenderFrustum

Current camera frustum - set by the SceneRenderer if a PointCloud Component is visited.

Declaration
public FrustumF RenderFrustum { get; set; }
Property Value
Type Description
FrustumF

UpdateRate

The amount of milliseconds needed to pass before rendering next frame

Declaration
public float UpdateRate { get; set; }
Property Value
Type Description
System.Single

ViewportHeight

Current height of the viewport - set by the SceneRenderer if a PointCloud Component is visited.

Declaration
public int ViewportHeight { get; set; }
Property Value
Type Description
System.Int32

VisibleNodes

All nodes that are visible in this frame.

Declaration
public List<OctantId> VisibleNodes { get; }
Property Value
Type Description
System.Collections.Generic.List<OctantId>

Methods

Update()

Updates the visible octree hierarchy in the scene and updates the VisibleOctreeHierarchyTex in the shaders.

Declaration
public void Update()
Generated by DocFX
GitHub Repo
Back to top