CARLA
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Private 属性 | 所有成员列表
ATagger类 参考

Sets actors' custom depth stencil value for semantic segmentation according to their meshes. 更多...

#include <Tagger.h>

+ 类 ATagger 继承关系图:
+ ATagger 的协作图:

Public 成员函数

 ATagger ()
 

静态 Public 成员函数

static FLinearColor GetActorLabelColor (const AActor &Actor, const crp::CityObjectLabel &Label)
 获得实例分割中参与者所标注的颜色
 
static crp::CityObjectLabel GetLabelByFolderName (const FString &String)
 Method that computes the label corresponding to a folder path
 
template<typename T >
static crp::CityObjectLabel GetLabelByPath (const T *Object)
 Method that computes the label corresponding to an specific object using the folder path in which it is stored
 
static FString GetTagAsString (crp::CityObjectLabel Tag)
 Retrieve the tags of an already tagged actor.
 
static crp::CityObjectLabel GetTagOfTaggedComponent (const UPrimitiveComponent &Component)
 Retrieve the tag of an already tagged component.
 
static void GetTagsOfTaggedActor (const AActor &Actor, TSet< crp::CityObjectLabel > &Tags)
 Retrieve the tags of an already tagged actor.
 
static bool IsThing (const crp::CityObjectLabel &Label)
 
static bool MatchComponent (const UPrimitiveComponent &Component, crp::CityObjectLabel Tag)
 Return true if Component has been tagged with the given Tag.
 
static void SetStencilValue (UPrimitiveComponent &Component, const crp::CityObjectLabel &Label, const bool bSetRenderCustomDepth)
 
static void TagActor (const AActor &Actor, bool bTagForSemanticSegmentation)
 Set the tag of an actor.
 
static void TagActorsInLevel (ULevel &Level, bool bTagForSemanticSegmentation)
 
static void TagActorsInLevel (UWorld &World, bool bTagForSemanticSegmentation)
 Set the tag of every actor in level.
 

Private 属性

bool bTagForSemanticSegmentation = false
 
bool bTriggerTagObjects = false
 

详细描述

Sets actors' custom depth stencil value for semantic segmentation according to their meshes.

Non-static functions present so it can be dropped into the scene for testing purposes.

在文件 Tagger.h26 行定义.

构造及析构函数说明

◆ ATagger()

ATagger::ATagger ( )

在文件 Tagger.cpp294 行定义.

成员函数说明

◆ GetActorLabelColor()

FLinearColor ATagger::GetActorLabelColor ( const AActor & Actor,
const crp::CityObjectLabel & Label )
static

获得实例分割中参与者所标注的颜色

参数
Actor所需要判断显示颜色的参与者
Label
返回

在文件 Tagger.cpp84 行定义.

引用了 CastEnum().

被这些函数引用 TagActor().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ GetLabelByFolderName()

crp::CityObjectLabel ATagger::GetLabelByFolderName ( const FString & String)
static

Method that computes the label corresponding to a folder path

在文件 Tagger.cpp22 行定义.

引用了 String.

◆ GetLabelByPath()

template<typename T >
static crp::CityObjectLabel ATagger::GetLabelByPath ( const T * Object)
inlinestatic

Method that computes the label corresponding to an specific object using the folder path in which it is stored

在文件 Tagger.h77 行定义.

被这些函数引用 TagActor().

+ 这是这个函数的调用关系图:

◆ GetTagAsString()

FString ATagger::GetTagAsString ( crp::CityObjectLabel Tag)
static

Retrieve the tags of an already tagged actor.

CityObjectLabel::None is not added to the array.

在文件 Tagger.cpp251 行定义.

引用了 CARLA_GET_LABEL_STR, Other , 以及 TrafficLight.

被这些函数引用 CarlaGetRelevantTagAsString(), UObjectRegister::RegisterTrafficLight() , 以及 TagActor().

+ 这是这个函数的调用关系图:

◆ GetTagOfTaggedComponent()

static crp::CityObjectLabel ATagger::GetTagOfTaggedComponent ( const UPrimitiveComponent & Component)
inlinestatic

◆ GetTagsOfTaggedActor()

void ATagger::GetTagsOfTaggedActor ( const AActor & Actor,
TSet< crp::CityObjectLabel > & Tags )
static

Retrieve the tags of an already tagged actor.

CityObjectLabel::None is not added to the array.

在文件 Tagger.cpp237 行定义.

引用了 GetTagOfTaggedComponent().

被这些函数引用 FActorRegistry::MakeCarlaActor() , 以及 UCarlaEpisode::SerializeActor().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ IsThing()

bool ATagger::IsThing ( const crp::CityObjectLabel & Label)
static

在文件 Tagger.cpp64 行定义.

◆ MatchComponent()

static bool ATagger::MatchComponent ( const UPrimitiveComponent & Component,
crp::CityObjectLabel Tag )
inlinestatic

Return true if Component has been tagged with the given Tag.

在文件 Tagger.h62 行定义.

被这些函数引用 LineTrace().

+ 这是这个函数的调用关系图:

◆ SetStencilValue()

void ATagger::SetStencilValue ( UPrimitiveComponent & Component,
const crp::CityObjectLabel & Label,
const bool bSetRenderCustomDepth )
static

在文件 Tagger.cpp54 行定义.

引用了 CastEnum().

被这些函数引用 TagActor().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ TagActor()

void ATagger::TagActor ( const AActor & Actor,
bool bTagForSemanticSegmentation )
static

Set the tag of an actor.

If bTagForSemanticSegmentation true, activate the custom depth pass. This pass is necessary for rendering the semantic segmentation. However, it may add a performance penalty since occlusion doesn't seem to be applied to objects having this value active.

在文件 Tagger.cpp104 行定义.

引用了 bTagForSemanticSegmentation, GetActorLabelColor(), GetLabelByPath(), GetTagAsString(), IsValid(), UTaggedComponent::SetColor() , 以及 SetStencilValue().

被这些函数引用 UTaggerDelegate::OnActorSpawned(), UActorDispatcher::SpawnActor(), TagActorsInLevel() , 以及 TagActorsInLevel().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ TagActorsInLevel() [1/2]

void ATagger::TagActorsInLevel ( ULevel & Level,
bool bTagForSemanticSegmentation )
static

在文件 Tagger.cpp230 行定义.

引用了 bTagForSemanticSegmentation , 以及 TagActor().

+ 函数调用图:

◆ TagActorsInLevel() [2/2]

void ATagger::TagActorsInLevel ( UWorld & World,
bool bTagForSemanticSegmentation )
static

Set the tag of every actor in level.

If bTagForSemanticSegmentation true, activate the custom depth pass. This pass is necessary for rendering the semantic segmentation. However, it may add a performance penalty since occlusion doesn't seem to be applied to objects having this value active.

在文件 Tagger.cpp223 行定义.

引用了 bTagForSemanticSegmentation , 以及 TagActor().

被这些函数引用 ACarlaGameModeBase::BeginPlay(), ACityMapGenerator::GenerateRoadMap(), ALargeMapManager::OnLevelAddedToWorld() , 以及 ACarlaGameModeBase::OnLoadStreamLevel().

+ 函数调用图:
+ 这是这个函数的调用关系图:

类成员变量说明

◆ bTagForSemanticSegmentation

bool ATagger::bTagForSemanticSegmentation = false
private

在文件 Tagger.h105 行定义.

被这些函数引用 TagActor(), TagActorsInLevel() , 以及 TagActorsInLevel().

◆ bTriggerTagObjects

bool ATagger::bTriggerTagObjects = false
private

在文件 Tagger.h102 行定义.


该类的文档由以下文件生成: