C# Class OLDD_camera.Camera.BaseKspCamera

Mostra 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_oe static_oe property

public static Material,UnityEngine CurrentShader
return UnityEngine.Material

CurrentShaderName public_oe static_oe property

public static string CurrentShaderName
return string

ElectricChargeAmount protected_oe static_oe property

protected static double ElectricChargeAmount
return double

allCameras protected_oe property

protected List allCameras
return List

allCamerasGameObject protected_oe property

protected List allCamerasGameObject
return List

cameraNames protected_oe property

protected List cameraNames
return List

isTargetPoint protected_oe property

protected bool isTargetPoint
return bool

minZoomMultiplier protected_oe property

protected int minZoomMultiplier
return int

part protected_oe property

protected Part part
return Part

partGameObject protected_oe property

protected GameObject,UnityEngine partGameObject
return UnityEngine.GameObject

renderTexture protected_oe property

protected RenderTexture,UnityEngine renderTexture
return UnityEngine.RenderTexture

rotateX protected_oe property

protected float rotateX
return float

rotateY protected_oe property

protected float rotateY
return float

rotateZ protected_oe property

protected float rotateZ
return float

shaderType protected_oe property

protected ShaderType shaderType
return ShaderType

shaderType1 protected_oe property

protected ShaderType1 shaderType1
return ShaderType1

shaderType2 protected_oe property

protected ShaderType2 shaderType2
return ShaderType2

subWindowLabel protected_oe property

protected string subWindowLabel
return string

textureBackGroundCamera protected_oe property

protected Texture,UnityEngine textureBackGroundCamera
return UnityEngine.Texture

textureSeparator protected_oe property

protected Texture,UnityEngine textureSeparator
return UnityEngine.Texture

textureTargetMark protected_oe property

protected Texture,UnityEngine textureTargetMark
return UnityEngine.Texture

updateGUIObject protected_oe property

protected UpdateGUIObject updateGUIObject
return UpdateGUIObject

windowAddition protected_oe property

protected float windowAddition
return float

windowCount protected_oe static_oe property

protected static int windowCount
return int

windowId protected_oe property

protected int windowId
return int

windowLabel protected_oe property

protected string windowLabel
return string

windowSize protected_oe property

protected float windowSize
return float

windowSizeCoef protected_oe property

protected int windowSizeCoef
return int