Class SdkModelViewerCamera
Simple model viewing camera class that rotates around the object.
Inheritance
SdkModelViewerCamera
Assembly: JeremyAnsel.DirectX.SdkCamera.dll
Syntax
public class SdkModelViewerCamera : SdkBaseCamera
Constructors
|
Edit this page
View Source
SdkModelViewerCamera()
Declaration
public SdkModelViewerCamera()
Fields
|
Edit this page
View Source
m_ViewArcBall
Declaration
protected readonly SdkArcBall m_ViewArcBall
Field Value
|
Edit this page
View Source
m_WorldArcBall
Declaration
protected readonly SdkArcBall m_WorldArcBall
Field Value
|
Edit this page
View Source
m_bAttachCameraToModel
Declaration
protected bool m_bAttachCameraToModel
Field Value
|
Edit this page
View Source
m_bDragSinceLastUpdate
Declaration
protected bool m_bDragSinceLastUpdate
Field Value
|
Edit this page
View Source
m_bLimitPitch
Declaration
protected bool m_bLimitPitch
Field Value
|
Edit this page
View Source
m_fDefaultRadius
Declaration
protected float m_fDefaultRadius
Field Value
|
Edit this page
View Source
m_fMaxRadius
Declaration
protected float m_fMaxRadius
Field Value
|
Edit this page
View Source
m_fMinRadius
Declaration
protected float m_fMinRadius
Field Value
|
Edit this page
View Source
m_fRadius
Declaration
protected float m_fRadius
Field Value
|
Edit this page
View Source
m_mCameraRotLast
Declaration
protected XMMatrix m_mCameraRotLast
Field Value
Type |
Description |
XMMatrix |
|
|
Edit this page
View Source
m_mModelLastRot
Declaration
protected XMMatrix m_mModelLastRot
Field Value
Type |
Description |
XMMatrix |
|
|
Edit this page
View Source
m_mModelRot
Declaration
protected XMMatrix m_mModelRot
Field Value
Type |
Description |
XMMatrix |
|
|
Edit this page
View Source
m_mWorld
Declaration
protected XMMatrix m_mWorld
Field Value
Type |
Description |
XMMatrix |
|
|
Edit this page
View Source
Declaration
protected SdkCameraMouseKeys m_nRotateCameraButtonMask
Field Value
|
Edit this page
View Source
Declaration
protected SdkCameraMouseKeys m_nRotateModelButtonMask
Field Value
|
Edit this page
View Source
Declaration
protected SdkCameraMouseKeys m_nZoomButtonMask
Field Value
|
Edit this page
View Source
m_vModelCenter
Declaration
protected XMFloat3 m_vModelCenter
Field Value
Type |
Description |
XMFloat3 |
|
Methods
|
Edit this page
View Source
FrameMove(double)
Declaration
public override void FrameMove(double fElapsedTime)
Parameters
Type |
Name |
Description |
double |
fElapsedTime |
|
Overrides
|
Edit this page
View Source
GetWorldMatrix()
Declaration
public XMMatrix GetWorldMatrix()
Returns
Type |
Description |
XMMatrix |
|
|
Edit this page
View Source
HandleMessages(nint, WindowMessageType, nint, nint)
Declaration
public override void HandleMessages(nint hWnd, WindowMessageType msg, nint wParam, nint lParam)
Parameters
Type |
Name |
Description |
nint |
hWnd |
|
WindowMessageType |
msg |
|
nint |
wParam |
|
nint |
lParam |
|
Overrides
|
Edit this page
View Source
Reset()
Declaration
public override void Reset()
Overrides
|
Edit this page
View Source
SetAttachCameraToModel()
Declaration
public void SetAttachCameraToModel()
|
Edit this page
View Source
SetAttachCameraToModel(bool)
Declaration
public void SetAttachCameraToModel(bool bEnable)
Parameters
Type |
Name |
Description |
bool |
bEnable |
|
|
Edit this page
View Source
Declaration
public void SetButtonMasks()
|
Edit this page
View Source
Declaration
public void SetButtonMasks(SdkCameraMouseKeys nRotateModelButtonMask, SdkCameraMouseKeys nZoomButtonMask, SdkCameraMouseKeys nRotateCameraButtonMask)
Parameters
|
Edit this page
View Source
SetDragRect(XMInt4)
Declaration
public override void SetDragRect(XMInt4 rc)
Parameters
Type |
Name |
Description |
XMInt4 |
rc |
|
Overrides
|
Edit this page
View Source
SetLimitPitch(bool)
Declaration
public void SetLimitPitch(bool bLimitPitch)
Parameters
Type |
Name |
Description |
bool |
bLimitPitch |
|
|
Edit this page
View Source
SetModelCenter(XMFloat3)
Declaration
public void SetModelCenter(XMFloat3 vModelCenter)
Parameters
Type |
Name |
Description |
XMFloat3 |
vModelCenter |
|
|
Edit this page
View Source
SetRadius()
Declaration
|
Edit this page
View Source
SetRadius(float)
Declaration
public void SetRadius(float fDefaultRadius)
Parameters
Type |
Name |
Description |
float |
fDefaultRadius |
|
|
Edit this page
View Source
SetRadius(float, float, float)
Declaration
public void SetRadius(float fDefaultRadius, float fMinRadius, float fMaxRadius)
Parameters
Type |
Name |
Description |
float |
fDefaultRadius |
|
float |
fMinRadius |
|
float |
fMaxRadius |
|
|
Edit this page
View Source
SetViewParams(XMVector, XMVector)
Declaration
public override void SetViewParams(XMVector vEyePt, XMVector vLookatPt)
Parameters
Type |
Name |
Description |
XMVector |
vEyePt |
|
XMVector |
vLookatPt |
|
Overrides
|
Edit this page
View Source
SetViewQuat(XMVector)
Declaration
public void SetViewQuat(XMVector q)
Parameters
Type |
Name |
Description |
XMVector |
q |
|
|
Edit this page
View Source
SetWindow(int, int)
Declaration
public void SetWindow(int nWidth, int nHeight)
Parameters
Type |
Name |
Description |
int |
nWidth |
|
int |
nHeight |
|
|
Edit this page
View Source
SetWindow(int, int, float)
Declaration
public void SetWindow(int nWidth, int nHeight, float fArcballRadius)
Parameters
Type |
Name |
Description |
int |
nWidth |
|
int |
nHeight |
|
float |
fArcballRadius |
|
|
Edit this page
View Source
SetWorldMatrix(XMMatrix)
Declaration
public void SetWorldMatrix(XMMatrix mWorld)
Parameters
Type |
Name |
Description |
XMMatrix |
mWorld |
|
|
Edit this page
View Source
SetWorldQuat(XMVector)
Declaration
public void SetWorldQuat(XMVector q)
Parameters
Type |
Name |
Description |
XMVector |
q |
|