UGoogleARCoreAugmentedImage

#include <GoogleARCoreAugmentedImage.h>

An object representing an augmented image currently in the scene.

Summary

Inheritance

Inherits from: UARTrackedImage

Public functions

DebugDraw(UWorld *World, const FLinearColor & OutlineColor, float OutlineThickness, float PersistForSeconds) const override
virtual void
Draw a box around the image, for debugging purposes.
GetCenter() const
FVector
Get the center in local space of the augmented image.
GetExtent() const
FVector
Get the size in local space of the augmented image.
GetImageIndex() const
int32
Get the index of an augmented image in the augmented image database.
GetImageName() const
FString
Get the name of an augmented image in the augmented image database.
UpdateTrackedGeometry(const TSharedRef< FARSystemBase, ESPMode::ThreadSafe > & InTrackingSystem, uint32 FrameNumber, double Timestamp, const FTransform & InLocalToTrackingTransform, const FTransform & InAlignmentTransform, FVector2D InEstimatedSize, UARCandidateImage *InDetectedImage, int32 InImageIndex, const FString & ImageName)
void
Update the tracked object.

Public functions

DebugDraw

virtual void DebugDraw(
  UWorld *World,
  const FLinearColor & OutlineColor,
  float OutlineThickness,
  float PersistForSeconds
) const override

Draw a box around the image, for debugging purposes.

Details
Parameters
World
World context object.
OutlineColor
Color of the lines.
OutlineThickness
Thickness of the lines.
PersistForSeconds
Number of seconds to keep the lines on-screen.

GetCenter

FVector GetCenter() const 

Get the center in local space of the augmented image.

Details
Returns
The center in the augmented image's local coordinate space.

GetExtent

FVector GetExtent() const 

Get the size in local space of the augmented image.

Details
Returns
The size in the augmented image's local coordinate space.

GetImageIndex

int32 GetImageIndex() const 

Get the index of an augmented image in the augmented image database.

Details
Returns
An integer indicating the index into the Entries array in the UGoogleARCoreAugmentedImageDatabase.

GetImageName

FString GetImageName() const 

Get the name of an augmented image in the augmented image database.

Details
Returns
The name of the image in the image database.

UpdateTrackedGeometry

void UpdateTrackedGeometry(
  const TSharedRef< FARSystemBase, ESPMode::ThreadSafe > & InTrackingSystem,
  uint32 FrameNumber,
  double Timestamp,
  const FTransform & InLocalToTrackingTransform,
  const FTransform & InAlignmentTransform,
  FVector2D InEstimatedSize,
  UARCandidateImage *InDetectedImage,
  int32 InImageIndex,
  const FString & ImageName
)

Update the tracked object.

This is called by FGoogleARCoreAugmentedImageResource::UpdateGeometryData() to adjust the tracked position of the object.

Details
Parameters
InTrackingSystem
The AR system to use.
FrameNumber
The current frame number.
Timestamp
The current time stamp.
InLocalToTrackingTransform
Local to tracking space transformation.
InAlignmentTransform
Alignment transform.
InEstimatedSize
The estimated size of the object.
InDetectedImage
The image that was found, in Unreal's cross-platform augmente reality API.
InImageIndex
Which image in the augmented image database is being tracked.
ImageName
The name of the image being tracked.

傳送您對下列選項的寶貴意見...

這個網頁