C# 클래스 MediaPortal.GUI.Library.GUIGraphicsContext

Singleton class which holds all GFX related settings
파일 보기 프로젝트 열기: MediaPortal/MediaPortal-1 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DX9Device Device
DX9DeviceMadVr Device
InitVolumeHandlerLock object
LastFramesIndex int
RenderModeSwitch object
WindowChangeLock object
autoCropper IAutoCrop
form System.Windows.Forms.Form
graphics System.Drawing.Graphics

공개 메소드들

메소드 설명
AddTransform ( MediaPortal.GUI.Library.TransformMatrix matrix ) : void

BeginClip ( Rectangle rect ) : void

Sets a clip region. Set the clip rectangle as specified and enables the FontEngine to use clipping.

BeginClip ( Rectangle rect, bool constrain ) : void

Sets a clip region. Set the clip rectangle as specified and enables the FontEngine to use clipping. If constrain is true then nested calls will clip the specified clip rectangle at the parents clip rectangle.

BlackImageRendered ( ) : void

BypassUICalibration ( bool bypass ) : void

Enable/Disable bypassing of UI Calibration transforms

Calls have to be paired and can be nested.

Correct ( float &x, float &y ) : void

Apply screen offset correct

DescalePosToScreenResolution ( int &x, int &y ) : void

Descale a position from screen->skin resolutions

EndClip ( ) : void

Removes a clip region. Disables the FontEngine from using current clipping context.

GetClipRect ( ) : Rectangle

Returns the current clip rectangle.

GetFinalMatrix ( ) : ].float[

GetFinalTransform ( ) : MediaPortal.GUI.Library.TransformMatrix

GetOffsetCorrectionTransform ( ) : MediaPortal.GUI.Library.TransformMatrix

Get the transformation matrix that corrects for UI Calibration translation

GetOutputRect ( int sourceWidth, int sourceHeight, int maxWidth, int maxHeight, int &width, int &height ) : void

Calculates a rectangle based on current calibration values/pixel ratio

GetTexturePoolType ( ) : Pool

GetThemedSkinDirectory ( string dir ) : string

Return a themed version of the requested directory, otherwise return the default skin directory.

GetThemedSkinFile ( string filename ) : string

Return a themed version of the requested skin filename, otherwise return the default skin filename. Use a path to media to get images.

HasThemeSpecificSkinFile ( string filename ) : bool

Returns true if the current theme has the specified file.

IsDirectX9ExUsed ( ) : bool

IsTvWindow ( ) : bool

Returns true if the active window belongs to the my tv plugin

IsTvWindow ( int windowId ) : bool

Returns true if the specified window belongs to the my tv plugin

Load ( ) : void

Load calibration values for current resolution

LoadIdentity ( ) : void

Replaces the current control transform with the identity matrix.

MergeAlpha ( uint color ) : uint

OnAction ( Action action ) : void

Send a action to anyone interested

PopMatrix ( ) : void

This is a convenience method for users who wish to manage the control transform matrix with an OpenGL-like matrix stack. The matrix stack managed is *not* used to set the final transform for MP callers who do not use Push/Pop.

PopProjectionMatrix ( ) : void

This is a convenience method for users who wish to manage the direct3d projection matrix with an OpenGL-like matrix stack. The matrix stack managed is *not* used to set the direct3d projection matrix for MP callers who do not use Push/Pop.

PushMatrix ( ) : void

This is a convenience method for users who wish to manage the control transform matrix with an OpenGL-like matrix stack. The matrix stack managed is *not* used to set the final transform for MP callers who do not use Push/Pop.

PushProjectionMatrix ( ) : void

This is a convenience method for users who wish to manage the direct3d projection matrix with an OpenGL-like matrix stack. The matrix stack managed is *not* used to set the direct3d projection matrix for MP callers who do not use Push/Pop.

RemoveTransform ( ) : void

RenderBlack ( ) : void

ResetCursor ( bool interpolate ) : void

ResetLastActivity ( ) : void

Resets last user activity & unblanks screen

RestoreCameraPosition ( ) : void

RotateX ( float angle, float y, float z ) : void

Rotates the control transform matrix by the specified angle (in degrees) around the x-axis.

RotateY ( float angle, float x, float z ) : void

Rotates the control transform matrix by the specified angle (in degrees) around the y-axis.

RotateZ ( float angle, float x, float y ) : void

Rotates the control transform matrix by the specified angle (in degrees) around the z-axis.

Save ( ) : void

Save calibration settings to calibrationWxH.xml where W=resolution width H=resolution height

Scale ( float x, float y, float z ) : void

Scales the control transform matrix by the specified vector.

ScaleFinalCoords ( float &x, float &y, float &z ) : void

ScaleFinalXCoord ( float x, float y ) : float

ScaleFinalYCoord ( float x, float y ) : float

ScaleFinalZCoord ( float x, float y ) : float

ScaleHorizontal ( int x ) : int

Scale X position for current resolution

ScaleHorizontal ( float &x ) : void

ScaleHorizontal ( int &x ) : void

Scale X position for current resolution

ScalePosToScreenResolution ( int &x, int &y ) : void

Scale position for current resolution

ScaleRectToScreenResolution ( int &left, int &top, int &right, int &bottom ) : void

Scale rectangle for current resolution.

ScaleVertical ( int y ) : int

Scale y position for current resolution

ScaleVertical ( float &y ) : void

ScaleVertical ( int &y ) : void

Scale y position for current resolution

ScaleVideoWindow ( int &width, int &height, float &x, float &y ) : void
SendMessage ( GUIMessage msg ) : void

Send a message to anyone interested

SetCameraPosition ( Point camera ) : void

SetPerspectiveProjectionMatrix ( float fovy, float aspectratio, float nearPlane, float farPlane ) : void

Sets the direct3d project matrix to the specfied perspective view.

SetScalingResolution ( int posX, int posY, bool needsScaling ) : void

SetWindowTransform ( MediaPortal.GUI.Library.TransformMatrix matrix ) : void

Translate ( float x, float y, float z ) : void

Translates the control transform matrix by the specified vector.

UpdateCameraPosition ( Point camera ) : void

UpdateFinalTransform ( MediaPortal.GUI.Library.TransformMatrix matrix ) : void

VideoReceived ( ) : void

VideoWindowChanged ( ) : void

Delegates video window size/position change notify to be done by main thread

비공개 메소드들

메소드 설명
GUIGraphicsContext ( ) : System
PostMessage ( IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam ) : bool
SyncFrameTime ( ) : void

메소드 상세

AddTransform() 공개 정적인 메소드

public static AddTransform ( MediaPortal.GUI.Library.TransformMatrix matrix ) : void
matrix MediaPortal.GUI.Library.TransformMatrix
리턴 void

BeginClip() 공개 정적인 메소드

Sets a clip region. Set the clip rectangle as specified and enables the FontEngine to use clipping.
public static BeginClip ( Rectangle rect ) : void
rect System.Drawing.Rectangle
리턴 void

BeginClip() 공개 정적인 메소드

Sets a clip region. Set the clip rectangle as specified and enables the FontEngine to use clipping. If constrain is true then nested calls will clip the specified clip rectangle at the parents clip rectangle.
public static BeginClip ( Rectangle rect, bool constrain ) : void
rect System.Drawing.Rectangle
constrain bool
리턴 void

BlackImageRendered() 공개 정적인 메소드

public static BlackImageRendered ( ) : void
리턴 void

BypassUICalibration() 공개 정적인 메소드

Enable/Disable bypassing of UI Calibration transforms
Calls have to be paired and can be nested.
public static BypassUICalibration ( bool bypass ) : void
bypass bool true to enable bypassing
리턴 void

Correct() 공개 정적인 메소드

Apply screen offset correct
public static Correct ( float &x, float &y ) : void
x float X correction.
y float Y correction.
리턴 void

DescalePosToScreenResolution() 공개 정적인 메소드

Descale a position from screen->skin resolutions
public static DescalePosToScreenResolution ( int &x, int &y ) : void
x int X coordinate to descale.
y int Y coordinate to descale.
리턴 void

EndClip() 공개 정적인 메소드

Removes a clip region. Disables the FontEngine from using current clipping context.
public static EndClip ( ) : void
리턴 void

GetClipRect() 공개 정적인 메소드

Returns the current clip rectangle.
public static GetClipRect ( ) : Rectangle
리턴 System.Drawing.Rectangle

GetFinalMatrix() 공개 정적인 메소드

public static GetFinalMatrix ( ) : ].float[
리턴 ].float[

GetFinalTransform() 공개 정적인 메소드

public static GetFinalTransform ( ) : MediaPortal.GUI.Library.TransformMatrix
리턴 MediaPortal.GUI.Library.TransformMatrix

GetOffsetCorrectionTransform() 공개 정적인 메소드

Get the transformation matrix that corrects for UI Calibration translation
public static GetOffsetCorrectionTransform ( ) : MediaPortal.GUI.Library.TransformMatrix
리턴 MediaPortal.GUI.Library.TransformMatrix

GetOutputRect() 공개 정적인 메소드

Calculates a rectangle based on current calibration values/pixel ratio
public static GetOutputRect ( int sourceWidth, int sourceHeight, int maxWidth, int maxHeight, int &width, int &height ) : void
sourceWidth int width of source rectangle
sourceHeight int height of source rectangle
maxWidth int max. width allowed
maxHeight int max. height allowed
width int returned width of calculated rectangle
height int returned height of calculated rectangle
리턴 void

GetTexturePoolType() 공개 정적인 메소드

public static GetTexturePoolType ( ) : Pool
리턴 Pool

GetThemedSkinDirectory() 공개 정적인 메소드

Return a themed version of the requested directory, otherwise return the default skin directory.
public static GetThemedSkinDirectory ( string dir ) : string
dir string
리턴 string

GetThemedSkinFile() 공개 정적인 메소드

Return a themed version of the requested skin filename, otherwise return the default skin filename. Use a path to media to get images.
public static GetThemedSkinFile ( string filename ) : string
filename string
리턴 string

HasThemeSpecificSkinFile() 공개 정적인 메소드

Returns true if the current theme has the specified file.
public static HasThemeSpecificSkinFile ( string filename ) : bool
filename string
리턴 bool

IsDirectX9ExUsed() 공개 정적인 메소드

public static IsDirectX9ExUsed ( ) : bool
리턴 bool

IsTvWindow() 공개 정적인 메소드

Returns true if the active window belongs to the my tv plugin
public static IsTvWindow ( ) : bool
리턴 bool

IsTvWindow() 공개 정적인 메소드

Returns true if the specified window belongs to the my tv plugin
public static IsTvWindow ( int windowId ) : bool
windowId int id of window
리턴 bool

Load() 공개 정적인 메소드

Load calibration values for current resolution
public static Load ( ) : void
리턴 void

LoadIdentity() 공개 정적인 메소드

Replaces the current control transform with the identity matrix.
public static LoadIdentity ( ) : void
리턴 void

MergeAlpha() 공개 정적인 메소드

public static MergeAlpha ( uint color ) : uint
color uint
리턴 uint

OnAction() 공개 정적인 메소드

Send a action to anyone interested
public static OnAction ( Action action ) : void
action Action The message.
리턴 void

PopMatrix() 공개 정적인 메소드

This is a convenience method for users who wish to manage the control transform matrix with an OpenGL-like matrix stack. The matrix stack managed is *not* used to set the final transform for MP callers who do not use Push/Pop.
public static PopMatrix ( ) : void
리턴 void

PopProjectionMatrix() 공개 정적인 메소드

This is a convenience method for users who wish to manage the direct3d projection matrix with an OpenGL-like matrix stack. The matrix stack managed is *not* used to set the direct3d projection matrix for MP callers who do not use Push/Pop.
public static PopProjectionMatrix ( ) : void
리턴 void

PushMatrix() 공개 정적인 메소드

This is a convenience method for users who wish to manage the control transform matrix with an OpenGL-like matrix stack. The matrix stack managed is *not* used to set the final transform for MP callers who do not use Push/Pop.
public static PushMatrix ( ) : void
리턴 void

PushProjectionMatrix() 공개 정적인 메소드

This is a convenience method for users who wish to manage the direct3d projection matrix with an OpenGL-like matrix stack. The matrix stack managed is *not* used to set the direct3d projection matrix for MP callers who do not use Push/Pop.
public static PushProjectionMatrix ( ) : void
리턴 void

RemoveTransform() 공개 정적인 메소드

public static RemoveTransform ( ) : void
리턴 void

RenderBlack() 공개 정적인 메소드

public static RenderBlack ( ) : void
리턴 void

ResetCursor() 공개 정적인 메소드

public static ResetCursor ( bool interpolate ) : void
interpolate bool
리턴 void

ResetLastActivity() 공개 정적인 메소드

Resets last user activity & unblanks screen
public static ResetLastActivity ( ) : void
리턴 void

RestoreCameraPosition() 공개 정적인 메소드

public static RestoreCameraPosition ( ) : void
리턴 void

RotateX() 공개 정적인 메소드

Rotates the control transform matrix by the specified angle (in degrees) around the x-axis.
public static RotateX ( float angle, float y, float z ) : void
angle float
y float
z float
리턴 void

RotateY() 공개 정적인 메소드

Rotates the control transform matrix by the specified angle (in degrees) around the y-axis.
public static RotateY ( float angle, float x, float z ) : void
angle float
x float
z float
리턴 void

RotateZ() 공개 정적인 메소드

Rotates the control transform matrix by the specified angle (in degrees) around the z-axis.
public static RotateZ ( float angle, float x, float y ) : void
angle float
x float
y float
리턴 void

Save() 공개 정적인 메소드

Save calibration settings to calibrationWxH.xml where W=resolution width H=resolution height
public static Save ( ) : void
리턴 void

Scale() 공개 정적인 메소드

Scales the control transform matrix by the specified vector.
public static Scale ( float x, float y, float z ) : void
x float
y float
z float
리턴 void

ScaleFinalCoords() 공개 정적인 메소드

public static ScaleFinalCoords ( float &x, float &y, float &z ) : void
x float
y float
z float
리턴 void

ScaleFinalXCoord() 공개 정적인 메소드

public static ScaleFinalXCoord ( float x, float y ) : float
x float
y float
리턴 float

ScaleFinalYCoord() 공개 정적인 메소드

public static ScaleFinalYCoord ( float x, float y ) : float
x float
y float
리턴 float

ScaleFinalZCoord() 공개 정적인 메소드

public static ScaleFinalZCoord ( float x, float y ) : float
x float
y float
리턴 float

ScaleHorizontal() 공개 정적인 메소드

Scale X position for current resolution
public static ScaleHorizontal ( int x ) : int
x int X coordinate to scale.
리턴 int

ScaleHorizontal() 공개 정적인 메소드

public static ScaleHorizontal ( float &x ) : void
x float
리턴 void

ScaleHorizontal() 공개 정적인 메소드

Scale X position for current resolution
public static ScaleHorizontal ( int &x ) : void
x int X coordinate to scale.
리턴 void

ScalePosToScreenResolution() 공개 정적인 메소드

Scale position for current resolution
public static ScalePosToScreenResolution ( int &x, int &y ) : void
x int X coordinate to scale.
y int Y coordinate to scale.
리턴 void

ScaleRectToScreenResolution() 공개 정적인 메소드

Scale rectangle for current resolution.
public static ScaleRectToScreenResolution ( int &left, int &top, int &right, int &bottom ) : void
left int left side
top int top side
right int right side
bottom int bottom side
리턴 void

ScaleVertical() 공개 정적인 메소드

Scale y position for current resolution
public static ScaleVertical ( int y ) : int
y int Y coordinate to scale.
리턴 int

ScaleVertical() 공개 정적인 메소드

public static ScaleVertical ( float &y ) : void
y float
리턴 void

ScaleVertical() 공개 정적인 메소드

Scale y position for current resolution
public static ScaleVertical ( int &y ) : void
y int Y coordinate to scale.
리턴 void

ScaleVideoWindow() 공개 정적인 메소드

public static ScaleVideoWindow ( int &width, int &height, float &x, float &y ) : void
width int
height int
x float
y float
리턴 void

SendMessage() 공개 정적인 메소드

Send a message to anyone interested
public static SendMessage ( GUIMessage msg ) : void
msg GUIMessage The message.
리턴 void

SetCameraPosition() 공개 정적인 메소드

public static SetCameraPosition ( Point camera ) : void
camera Point
리턴 void

SetPerspectiveProjectionMatrix() 공개 정적인 메소드

Sets the direct3d project matrix to the specfied perspective view.
public static SetPerspectiveProjectionMatrix ( float fovy, float aspectratio, float nearPlane, float farPlane ) : void
fovy float
aspectratio float
nearPlane float
farPlane float
리턴 void

SetScalingResolution() 공개 정적인 메소드

public static SetScalingResolution ( int posX, int posY, bool needsScaling ) : void
posX int
posY int
needsScaling bool
리턴 void

SetWindowTransform() 공개 정적인 메소드

public static SetWindowTransform ( MediaPortal.GUI.Library.TransformMatrix matrix ) : void
matrix MediaPortal.GUI.Library.TransformMatrix
리턴 void

Translate() 공개 정적인 메소드

Translates the control transform matrix by the specified vector.
public static Translate ( float x, float y, float z ) : void
x float
y float
z float
리턴 void

UpdateCameraPosition() 공개 정적인 메소드

public static UpdateCameraPosition ( Point camera ) : void
camera Point
리턴 void

UpdateFinalTransform() 공개 정적인 메소드

public static UpdateFinalTransform ( MediaPortal.GUI.Library.TransformMatrix matrix ) : void
matrix MediaPortal.GUI.Library.TransformMatrix
리턴 void

VideoReceived() 공개 정적인 메소드

public static VideoReceived ( ) : void
리턴 void

VideoWindowChanged() 공개 정적인 메소드

Delegates video window size/position change notify to be done by main thread
public static VideoWindowChanged ( ) : void
리턴 void

프로퍼티 상세

DX9Device 공개적으로 정적으로 프로퍼티

public static Device DX9Device
리턴 Device

DX9DeviceMadVr 공개적으로 정적으로 프로퍼티

public static Device DX9DeviceMadVr
리턴 Device

InitVolumeHandlerLock 공개적으로 정적으로 프로퍼티

public static object InitVolumeHandlerLock
리턴 object

LastFramesIndex 공개적으로 정적으로 프로퍼티

public static int LastFramesIndex
리턴 int

RenderModeSwitch 공개적으로 정적으로 프로퍼티

public static object RenderModeSwitch
리턴 object

WindowChangeLock 공개적으로 정적으로 프로퍼티

public static object WindowChangeLock
리턴 object

autoCropper 공개적으로 정적으로 프로퍼티

public static IAutoCrop autoCropper
리턴 IAutoCrop

form 공개적으로 정적으로 프로퍼티

public static Form,System.Windows.Forms form
리턴 System.Windows.Forms.Form

graphics 공개적으로 정적으로 프로퍼티

public static Graphics,System.Drawing graphics
리턴 System.Drawing.Graphics