documentation

Visometry.VisionLib.SDK.Core.WorkSpace Class Referenceabstract

This class contains shared properties and functionality of Advanced and Simple WorkSpaces. THIS IS SUBJECT TO CHANGE Please do not rely on this code in productive environments. More...

Inherits MonoBehaviour.

Inherited by Visometry.VisionLib.SDK.Core.AdvancedWorkSpace, and Visometry.VisionLib.SDK.Core.SimpleWorkSpace.

Public Member Functions

API.WorkSpace.Transform[] GetCameraTransforms ()
 
abstract Vector3 GetCenter ()
 
Vector3[] GetDestinationVertices ()
 Gets the local positions related to the destination object. If the destinationObject is a Renderer, it will calculate the center of the model. More...
 
float GetOptimalCameraDistance (GameObject destinationForBounds)
 
abstract float GetSize ()
 Calculates the WorkSpace boundaries using the origin and destination bounds and the distance between them. More...
 
abstract BaseGeometry GetSourceGeometry ()
 
abstract int GetVerticesCount ()
 
abstract API.WorkSpace.Definition GetWorkSpaceDefinition (bool useCameraRotation)
 Creates a WorkSpace.Definition from this WorkSpace. More...
 

Static Public Member Functions

static Vector3 GetCenter (GameObject go)
 

Data Fields

GameObject destinationObject
 
bool displayViewDirection = true
 
Camera usedCamera
 

Protected Member Functions

abstract API.WorkSpace.Geometry GetDestinationGeometryDefinition ()
 
abstract API.WorkSpace.Geometry GetSourceGeometryDefinition ()
 
API.WorkSpace.Definition GetWorkSpaceDefinitionFromType (API.WorkSpace.Definition.Type type, bool useCameraRotation)
 

Static Protected Member Functions

static API.WorkSpace.Transform CreateVLTransformFromObject (GameObject sourceObject)
 
static Bounds GetMeshBounds (GameObject parent)
 

Protected Attributes

Vector3 upVector = Vector3.up
 

Static Protected Attributes

const float defaultRotationRange = 20.0f
 
const float defaultRotationStep = 20.0f
 

Detailed Description

This class contains shared properties and functionality of Advanced and Simple WorkSpaces. THIS IS SUBJECT TO CHANGE Please do not rely on this code in productive environments.

Member Function Documentation

◆ GetDestinationVertices()

Vector3 [] Visometry.VisionLib.SDK.Core.WorkSpace.GetDestinationVertices ( )
inline

Gets the local positions related to the destination object. If the destinationObject is a Renderer, it will calculate the center of the model.

Returns
Array of local points that represent the object geometry

◆ GetSize()

abstract float Visometry.VisionLib.SDK.Core.WorkSpace.GetSize ( )
pure virtual

Calculates the WorkSpace boundaries using the origin and destination bounds and the distance between them.

Returns
WorkSpace size

Implemented in Visometry.VisionLib.SDK.Core.AdvancedWorkSpace, and Visometry.VisionLib.SDK.Core.SimpleWorkSpace.

◆ GetWorkSpaceDefinition()

abstract API.WorkSpace.Definition Visometry.VisionLib.SDK.Core.WorkSpace.GetWorkSpaceDefinition ( bool  useCameraRotation)
pure virtual

Creates a WorkSpace.Definition from this WorkSpace.

Returns
WorkSpace.Definition described by this class

Implemented in Visometry.VisionLib.SDK.Core.AdvancedWorkSpace, and Visometry.VisionLib.SDK.Core.SimpleWorkSpace.