CPerspectiveView Class Reference

#include <PerspectiveView.h>

Inherits CDX10View.

Collaboration diagram for CPerspectiveView:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void Render ()
virtual ~CPerspectiveView ()

Protected Member Functions

 CPerspectiveView ()
void OnSize (UINT nType, int cx, int cy)
void OnMouseMove (UINT nflags, CPoint point)
void OnLButtonDown (UINT nflags, CPoint point)
void OnLButtonUp (UINT nflags, CPoint point)
void OnRButtonDown (UINT nflags, CPoint point)
void OnRButtonUp (UINT nflags, CPoint point)
void SaveImageTo (std::wstring path, UINT width, UINT height)
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)

Protected Attributes

CoreEffecteffect
ID3D10InputLayout * vertexLayout
ID3D10Buffer * vertexBuffer
ID3D10Buffer * indexBuffer
ID3D10Buffer * vertexBufferSquare
CoreEffectTechniquetechniqueBox
CoreEffectTechniquetechniqueCast
CoreCamera cam
CoreTexture2DtexFront
CoreTexture2DtexBack
ID3D10RenderTargetView * rtvFront
ID3D10RenderTargetView * rtvBack
ID3D10ShaderResourceView * srvFront
ID3D10ShaderResourceView * srvBack
bool lButtonDown
bool rButtonDown
CPoint lastPoint
float camDist
float xRot
float yRot
CoreMatrix4x4 matObj
CoreMatrix4x4 matRotOnly
CoreMatrix4x4 matRotDown


Detailed Description

Perspective View Class.

Constructor & Destructor Documentation

CPerspectiveView::CPerspectiveView (  )  [protected]

CPerspectiveView::~CPerspectiveView (  )  [virtual]


Member Function Documentation

int CPerspectiveView::OnCreate ( LPCREATESTRUCT  lpCreateStruct  )  [protected]

Create DX10 View

Reimplemented from CDX10View.

void CPerspectiveView::OnLButtonDown ( UINT  nflags,
CPoint  point 
) [protected]

Left Mouse Button pressed. Rotate object on mouse movement

void CPerspectiveView::OnLButtonUp ( UINT  nflags,
CPoint  point 
) [protected]

Left Mouse Button released callback.

void CPerspectiveView::OnMouseMove ( UINT  nflags,
CPoint  point 
) [protected]

Update zoom and rotation matrix on mouse movement and mouse button pressed

void CPerspectiveView::OnRButtonDown ( UINT  nflags,
CPoint  point 
) [protected]

Right Mouse Button pressed. Zoom object on mouse movement

void CPerspectiveView::OnRButtonUp ( UINT  nflags,
CPoint  point 
) [protected]

Right Mouse Button released.

void CPerspectiveView::OnSize ( UINT  nType,
int  cx,
int  cy 
) [protected]

Resize callback. Update textures and viewport window

Reimplemented from CDX10View.

void CPerspectiveView::Render (  )  [virtual]

Render perspective view

Reimplemented from CDX10View.

void CPerspectiveView::SaveImageTo ( std::wstring  path,
UINT  width,
UINT  height 
) [protected]

Saves the current visible perspective view into a bmp image. A message box is shown when save was successfull/insuccessfull.

Parameters:
path Filename
width Width of the image
height Height of the image


Member Data Documentation

float CPerspectiveView::camDist [protected]

ID3D10Buffer * CPerspectiveView::indexBuffer [protected]

CPoint CPerspectiveView::lastPoint [protected]

ID3D10RenderTargetView * CPerspectiveView::rtvBack [protected]

ID3D10RenderTargetView* CPerspectiveView::rtvFront [protected]

ID3D10ShaderResourceView * CPerspectiveView::srvBack [protected]

ID3D10ShaderResourceView* CPerspectiveView::srvFront [protected]

ID3D10Buffer* CPerspectiveView::vertexBuffer [protected]

ID3D10Buffer * CPerspectiveView::vertexBufferSquare [protected]

ID3D10InputLayout* CPerspectiveView::vertexLayout [protected]

float CPerspectiveView::xRot [protected]

float CPerspectiveView::yRot [protected]


The documentation for this class was generated from the following files:

Generated on Wed Dec 10 12:18:30 2008 for volRendering by  doxygen 1.5.7.1