C# Class OLDD_camera.Camera.BaseKspCamera

Show file Open project: DennyTX/DockingCam

Public Properties

Property Type Description
CurrentShader UnityEngine.Material
CurrentShaderName string

Protected Properties

Property Type Description
ElectricChargeAmount double
allCameras List
allCamerasGameObject List
cameraNames List
isTargetPoint bool
minZoomMultiplier int
part Part
partGameObject UnityEngine.GameObject
renderTexture UnityEngine.RenderTexture
rotateX float
rotateY float
rotateZ float
shaderType ShaderType
shaderType1 ShaderType1
shaderType2 ShaderType2
subWindowLabel string
textureBackGroundCamera UnityEngine.Texture
textureSeparator UnityEngine.Texture
textureTargetMark UnityEngine.Texture
updateGUIObject UpdateGUIObject
windowAddition float
windowCount int
windowId int
windowLabel string
windowSize float
windowSizeCoef int

Public Methods

Method Description
Activate ( ) : void

Create and activate cameras

BaseKspCamera ( Part part, int windowSize, string windowLabel = "Camera" ) : System
Deactivate ( ) : void

Destroy cameras

ResizeWindow ( ) : IEnumerator
Update ( ) : void

Update position and rotation of the cameras

Protected Methods

Method Description
DestroyCameras ( ) : void

Destroy Cameras

ExtendedDrawWindowL1 ( ) : void

drawing method, first layer, for cameras

ExtendedDrawWindowL2 ( ) : void

drawing method, second layer (draw any texture between cam and interface)

ExtendedDrawWindowL3 ( ) : void

drawing method, third layer, interface

InitCameras ( ) : void

Initializes camera

InitTextures ( ) : void

Initializes texture

InitWindow ( ) : void

Initializes window

Render ( ) : RenderTexture

render texture camera

UpdateWhiteNoise ( ) : void

Private Methods

Method Description
Begin ( ) : void
DrawWindow ( int id ) : void

drawing method

FlightUIModeChanged ( FlightUIMode mode ) : void
GetX ( float x, float z ) : float
GetY ( float y, float z ) : float

Method Details

Activate() public method

Create and activate cameras
public Activate ( ) : void
return void

BaseKspCamera() public method

public BaseKspCamera ( Part part, int windowSize, string windowLabel = "Camera" ) : System
part Part
windowSize int
windowLabel string
return System

Deactivate() public method

Destroy cameras
public Deactivate ( ) : void
return void

DestroyCameras() protected method

Destroy Cameras
protected DestroyCameras ( ) : void
return void

ExtendedDrawWindowL1() protected method

drawing method, first layer, for cameras
protected ExtendedDrawWindowL1 ( ) : void
return void

ExtendedDrawWindowL2() protected method

drawing method, second layer (draw any texture between cam and interface)
protected ExtendedDrawWindowL2 ( ) : void
return void

ExtendedDrawWindowL3() protected method

drawing method, third layer, interface
protected ExtendedDrawWindowL3 ( ) : void
return void

InitCameras() protected method

Initializes camera
protected InitCameras ( ) : void
return void

InitTextures() protected method

Initializes texture
protected InitTextures ( ) : void
return void

InitWindow() protected method

Initializes window
protected InitWindow ( ) : void
return void

Render() protected method

render texture camera
protected Render ( ) : RenderTexture
return UnityEngine.RenderTexture

ResizeWindow() public method

public ResizeWindow ( ) : IEnumerator
return IEnumerator

Update() public method

Update position and rotation of the cameras
public Update ( ) : void
return void

UpdateWhiteNoise() protected method

protected UpdateWhiteNoise ( ) : void
return void

Property Details

CurrentShader public static property

public static Material,UnityEngine CurrentShader
return UnityEngine.Material

CurrentShaderName public static property

public static string CurrentShaderName
return string

ElectricChargeAmount protected static property

protected static double ElectricChargeAmount
return double

allCameras protected property

protected List allCameras
return List

allCamerasGameObject protected property

protected List allCamerasGameObject
return List

cameraNames protected property

protected List cameraNames
return List

isTargetPoint protected property

protected bool isTargetPoint
return bool

minZoomMultiplier protected property

protected int minZoomMultiplier
return int

part protected property

protected Part part
return Part

partGameObject protected property

protected GameObject,UnityEngine partGameObject
return UnityEngine.GameObject

renderTexture protected property

protected RenderTexture,UnityEngine renderTexture
return UnityEngine.RenderTexture

rotateX protected property

protected float rotateX
return float

rotateY protected property

protected float rotateY
return float

rotateZ protected property

protected float rotateZ
return float

shaderType protected property

protected ShaderType shaderType
return ShaderType

shaderType1 protected property

protected ShaderType1 shaderType1
return ShaderType1

shaderType2 protected property

protected ShaderType2 shaderType2
return ShaderType2

subWindowLabel protected property

protected string subWindowLabel
return string

textureBackGroundCamera protected property

protected Texture,UnityEngine textureBackGroundCamera
return UnityEngine.Texture

textureSeparator protected property

protected Texture,UnityEngine textureSeparator
return UnityEngine.Texture

textureTargetMark protected property

protected Texture,UnityEngine textureTargetMark
return UnityEngine.Texture

updateGUIObject protected property

protected UpdateGUIObject updateGUIObject
return UpdateGUIObject

windowAddition protected property

protected float windowAddition
return float

windowCount protected static property

protected static int windowCount
return int

windowId protected property

protected int windowId
return int

windowLabel protected property

protected string windowLabel
return string

windowSize protected property

protected float windowSize
return float

windowSizeCoef protected property

protected int windowSizeCoef
return int