NVIDIA DeepLearning Dataset Synthesizer (NDDS)
 All Classes Namespaces Functions Variables Typedefs Pages
UNVSceneFeatureExtractor_AnnotationData Class Reference
+ Inheritance diagram for UNVSceneFeatureExtractor_AnnotationData:
+ Collaboration diagram for UNVSceneFeatureExtractor_AnnotationData:

Public Types

typedef TFunction< void(TSharedPtr
< FJsonObject >
, UNVSceneFeatureExtractor_AnnotationData *)> 
OnFinishedCaptureSceneAnnotationDataCallback
 Callback function get called after capturing scene's annotation data TSharedPtr<FJsonObject> - The JSON object contain the annotation data UNVSceneFeatureExtractor_AnnotationData* - Reference to the feature extractor that captured the scene annotation data. More...
 

Public Member Functions

 UNVSceneFeatureExtractor_AnnotationData (const FObjectInitializer &ObjectInitializer)
 
bool CaptureSceneAnnotationData (UNVSceneFeatureExtractor_AnnotationData::OnFinishedCaptureSceneAnnotationDataCallback Callback)
 Capture the annotation data of the scene and return it in JSON format. More...
 
virtual void StartCapturing () override
 
virtual void UpdateCapturerSettings () override
 
- Public Member Functions inherited from UNVSceneFeatureExtractor
 UNVSceneFeatureExtractor (const FObjectInitializer &ObjectInitializer)
 
FString GetDisplayName () const
 
virtual class UWorld * GetWorld () const override
 
void Init (UNVSceneCapturerViewpointComponent *InOwnerViewpoint)
 
bool IsEnabled () const
 
virtual void StopCapturing ()
 

Protected Member Functions

FBox2D Calculate2dAABB (TArray< FVector > Vertexes, bool bClampToImage=true) const
 Calculate a 2D axis-aligned bounding box of a 3d shape knowing its vertexes on the viewport. More...
 
FBox2D Calculate2dAABB_MeshComplexCollision (const class UMeshComponent *CheckMeshComp, bool bClampToImage=true) const
 Calculate a 2D axis-aligned bounding box of a static mesh on the viewport. More...
 
TSharedPtr< FJsonObject > CaptureSceneAnnotationData ()
 
bool GatherActorData (const AActor *CheckActor, FCapturedObjectData &ActorData)
 NOTE: May make this function static. More...
 
FBox2D GetBoundingBox2D (const AActor *CheckActor, bool bClampToImage=true) const
 
bool IsActorInViewFrustum (const FConvexVolume &ViewFrustum, const AActor *CheckActor) const
 
FVector ProjectWorldPositionToImagePosition (const FVector &WorldPosition) const
 
bool ShouldExportActor (const AActor *CheckActor) const
 
void UpdateProjectionMatrix ()
 
virtual void UpdateSettings () override
 

Protected Attributes

FNVDataExportSettings DataExportSettings
 
FMatrix ProjectionMatrix
 
FNVDataExportSettings ProtectedDataExportSettings
 
FMatrix ViewProjectionMatrix
 
- Protected Attributes inherited from UNVSceneFeatureExtractor
bool bCapturing
 
ANVSceneCapturerActorOwnerCapturer
 
UNVSceneCapturerViewpointComponentOwnerViewpoint
 

Additional Inherited Members

- Public Attributes inherited from UNVSceneFeatureExtractor
bool bIsEnabled
 If true, the feature extractor will capture otherwise it won't ToDo: Move to protected. More...
 
FString Description
 
FString DisplayName
 Name of the feature extractor to show. More...
 
FString ExportFileNamePostfix
 The string to add to the end of the exported file's name captured from this feature extractor. e.g: "depth", "mask" ... More...
 

Detailed Description

Definition at line 55 of file NVSceneFeatureExtractor_DataExport.h.

Member Typedef Documentation

Callback function get called after capturing scene's annotation data TSharedPtr<FJsonObject> - The JSON object contain the annotation data UNVSceneFeatureExtractor_AnnotationData* - Reference to the feature extractor that captured the scene annotation data.

Definition at line 68 of file NVSceneFeatureExtractor_DataExport.h.

Member Function Documentation

FBox2D UNVSceneFeatureExtractor_AnnotationData::Calculate2dAABB ( TArray< FVector >  Vertexes,
bool  bClampToImage = true 
) const
protected

Calculate a 2D axis-aligned bounding box of a 3d shape knowing its vertexes on the viewport.

FBox2D UNVSceneFeatureExtractor_AnnotationData::Calculate2dAABB_MeshComplexCollision ( const class UMeshComponent *  CheckMeshComp,
bool  bClampToImage = true 
) const
protected

Calculate a 2D axis-aligned bounding box of a static mesh on the viewport.

bool UNVSceneFeatureExtractor_AnnotationData::CaptureSceneAnnotationData ( UNVSceneFeatureExtractor_AnnotationData::OnFinishedCaptureSceneAnnotationDataCallback  Callback)

Capture the annotation data of the scene and return it in JSON format.

bool UNVSceneFeatureExtractor_AnnotationData::GatherActorData ( const AActor *  CheckActor,
FCapturedObjectData ActorData 
)
protected

NOTE: May make this function static.


The documentation for this class was generated from the following file: