Loading...
Searching...
No Matches
SCR_TerrainEdgesFinderPlugin Interface Reference
Inheritance diagram for SCR_TerrainEdgesFinderPlugin:

Public Member Functions

bool IsAngleBad (vector position, out float angle, float prevY, float nextY, float step, float minAngleDifferenceRad, TraceParam traceParam, BaseWorld world)
 

Protected Member Functions

override void Run ()
 
array< ref array< ref array< float > > > GetTerrainHeightmaps ()
 
void GetSuspectVertices (notnull out array< vector > vertices, out notnull array< float > angles)
 
int ButtonProcess ()
 
int ButtonCancel ()
 

Protected Attributes

float m_fMinAngleDifference
 
int m_eMode
 0 = everything, 1 = above water, 2 = underwater
 
float m_fEntityTraceOffset
 
bool m_bForceHeightmapRefresh
 
bool m_bOutputAsWorkbenchLinks
 
bool m_bDrawDebugShapes
 
ref array< ref array< ref array< float > > > m_aHeightmaps
 
string m_sLastLoadedWorld
 
ref SCR_DebugShapeManager m_DebugShapeManager = new SCR_DebugShapeManager()
 

Static Protected Attributes

static const int MODE_ABOVE_WATER = 1
 
static const int MODE_UNDER_WATER = 2
 
static const float DEBUG_SHAPE_HEIGHT = 20
 
static const string PLUGIN_NAME = "Terrain Edges Finder"
 

Member Function Documentation

◆ ButtonCancel()

int SCR_TerrainEdgesFinderPlugin.ButtonCancel ( )
protected

◆ ButtonProcess()

int SCR_TerrainEdgesFinderPlugin.ButtonProcess ( )
protected

◆ GetSuspectVertices()

void SCR_TerrainEdgesFinderPlugin.GetSuspectVertices ( notnull out array< vector > vertices,
out notnull array< float > angles )
protected

◆ GetTerrainHeightmaps()

array< ref array< ref array< float > > > SCR_TerrainEdgesFinderPlugin.GetTerrainHeightmaps ( )
protected
Returns
array(x) of array(y) of tiles

◆ IsAngleBad()

bool SCR_TerrainEdgesFinderPlugin.IsAngleBad ( vector position,
out float angle,
float prevY,
float nextY,
float step,
float minAngleDifferenceRad,
TraceParam traceParam,
BaseWorld world )
Parameters
[in]positioncurrY is position[1]
[out]anglein range [0..180[, 0 being same slope as before, 180 being the pointiest vertice ever seen
[in]prevY
[in]nextY
[in]step
[in]minAngleDifferenceRad
[in]traceParamnull = no trace
[in]world
Returns

◆ Run()

override void SCR_TerrainEdgesFinderPlugin.Run ( )
protected

Member Data Documentation

◆ DEBUG_SHAPE_HEIGHT

const float SCR_TerrainEdgesFinderPlugin.DEBUG_SHAPE_HEIGHT = 20
staticprotected

◆ m_aHeightmaps

ref array<ref array<ref array<float> > > SCR_TerrainEdgesFinderPlugin.m_aHeightmaps
protected

◆ m_bDrawDebugShapes

bool SCR_TerrainEdgesFinderPlugin.m_bDrawDebugShapes
protected

◆ m_bForceHeightmapRefresh

bool SCR_TerrainEdgesFinderPlugin.m_bForceHeightmapRefresh
protected

◆ m_bOutputAsWorkbenchLinks

bool SCR_TerrainEdgesFinderPlugin.m_bOutputAsWorkbenchLinks
protected

◆ m_DebugShapeManager

ref SCR_DebugShapeManager SCR_TerrainEdgesFinderPlugin.m_DebugShapeManager = new SCR_DebugShapeManager()
protected

◆ m_eMode

int SCR_TerrainEdgesFinderPlugin.m_eMode
protected

0 = everything, 1 = above water, 2 = underwater

◆ m_fEntityTraceOffset

float SCR_TerrainEdgesFinderPlugin.m_fEntityTraceOffset
protected

◆ m_fMinAngleDifference

float SCR_TerrainEdgesFinderPlugin.m_fMinAngleDifference
protected

◆ m_sLastLoadedWorld

string SCR_TerrainEdgesFinderPlugin.m_sLastLoadedWorld
protected

◆ MODE_ABOVE_WATER

const int SCR_TerrainEdgesFinderPlugin.MODE_ABOVE_WATER = 1
staticprotected

◆ MODE_UNDER_WATER

const int SCR_TerrainEdgesFinderPlugin.MODE_UNDER_WATER = 2
staticprotected

◆ PLUGIN_NAME

const string SCR_TerrainEdgesFinderPlugin.PLUGIN_NAME = "Terrain Edges Finder"
staticprotected

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