Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
MagicView Class Reference

#include <MagicView.h>

List of all members.

Public Member Functions

MagicDocGetDocument ()
virtual BOOL PreCreateWindow (CREATESTRUCT &cs)
virtual void OnInitialUpdate ()
virtual ~MagicView ()
virtual void OnEnterSizeMove ()
virtual void OnExitSizeMove ()
virtual void ResizeVideo ()
virtual CPoint LPtoWP (const CPoint &p)

Static Public Member Functions

static MagicViewGetInstance ()

Protected Types

enum  VIEW_MODE {
  VIEW_TOP = 0, VIEW_PERSPECTIVE = 1, VIEW_SIDE = 2, VIEW_FRONT = 3,
  VIEW_ALL = 4, VIEW_UV_MAP = 5
}

Protected Member Functions

 MagicView ()
virtual void OnDraw (CDC *pDC)
virtual void OnUpdate (CView *pSender, LPARAM lHint, CObject *pHint)
virtual void SetupModelViews ()
virtual void SetFocusModelView (int f)
virtual int GetWinIndexByPoint (int x, int y)
ModelViewGetModelViewByIndex (int index)
bool IsUVEdit () const
void CloseUVEditor ()
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnRender ()
afx_msg void OnPaint ()
afx_msg void OnViewAll ()
afx_msg void OnUpdateViewAll (CCmdUI *pCmdUI)
afx_msg void OnViewFront ()
afx_msg void OnUpdateViewFront (CCmdUI *pCmdUI)
afx_msg void OnViewPerspective ()
afx_msg void OnUpdateViewPerspective (CCmdUI *pCmdUI)
afx_msg void OnViewSide ()
afx_msg void OnUpdateViewSide (CCmdUI *pCmdUI)
afx_msg void OnViewTop ()
afx_msg void OnUpdateViewTop (CCmdUI *pCmdUI)
afx_msg void OnTextureMap ()
afx_msg void OnModifyMaterial ()
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
afx_msg void OnLButtonUp (UINT nFlags, CPoint point)
afx_msg void OnLButtonDblClk (UINT nFlags, CPoint point)
afx_msg void OnRButtonDown (UINT nFlags, CPoint point)
afx_msg void OnRButtonUp (UINT nFlags, CPoint point)
afx_msg void OnMouseMove (UINT nFlags, CPoint point)
afx_msg BOOL OnMouseWheel (UINT nFlags, short zDelta, CPoint pt)
afx_msg void OnViewZoomNormal ()
afx_msg void OnViewZoomIn ()
afx_msg void OnViewZoomOut ()
afx_msg void OnViewModeWireframe ()
afx_msg void OnViewModeSolid ()
afx_msg void OnViewModeTextured ()
afx_msg void OnRButtonDblClk (UINT nFlags, CPoint point)
afx_msg void OnGridProperties ()
afx_msg void OnGridShow ()
afx_msg void OnGridSnap ()
afx_msg void OnUpdateGridSnap (CCmdUI *pCmdUI)
afx_msg void OnViewBackColor ()
afx_msg void OnFileImport ()
afx_msg void OnFileExport ()
afx_msg void OnSelectAll ()
afx_msg void OnSelectNone ()
afx_msg void OnUpdateTextureMap (CCmdUI *pCmdUI)
afx_msg void OnUpdateModifyMaterial (CCmdUI *pCmdUI)
afx_msg void OnSelectInverse ()
afx_msg void OnModifyUVMap ()
afx_msg void OnUpdateModifyUVMap (CCmdUI *pCmdUI)
afx_msg void OnViewShadows ()
afx_msg void OnUpdateViewShadows (CCmdUI *pCmdUI)
afx_msg void OnViewAnimatelight ()
afx_msg void OnUpdateViewAnimatelight (CCmdUI *pCmdUI)
afx_msg void OnViewBumpmaps ()
afx_msg void OnUpdateViewBumpmaps (CCmdUI *pCmdUI)
afx_msg void OnViewVertexshader ()
afx_msg void OnUpdateViewVertexshader (CCmdUI *pCmdUI)
afx_msg void OnViewPixelshader ()
afx_msg void OnUpdateViewPixelshader (CCmdUI *pCmdUI)
afx_msg void OnViewVisibleshadows ()
afx_msg void OnUpdateViewVisibleshadows (CCmdUI *pCmdUI)
afx_msg void OnEditUndo ()
afx_msg void OnUpdateEditUndo (CCmdUI *pCmdUI)
afx_msg void OnEditRedo ()
afx_msg void OnUpdateEditRedo (CCmdUI *pCmdUI)
afx_msg void OnSurfaceProperties ()
afx_msg void OnUpdateSurfaceProperties (CCmdUI *pCmdUI)

Protected Attributes

Videovideo
VideoSettingsvideo_settings
Screenscreen
RECT client_rect
DWORD window_style
bool is_minimized
bool is_maximized
bool is_sizing
Gridgrid
Scenescene
Lightmain_light
Lightback_light
ActiveWindowmain_win
ActiveWindowview_win [4]
ModelViewmodel_view [4]
ActiveWindowuvmap_win
UVMapViewuvmap_view
int view_mode
int view_focus
bool drag_left
bool drag_right
CPoint drag_start
bool view_bumpmaps
bool view_shadows
bool animate_light

Detailed Description

Definition at line 38 of file MagicView.h.


Member Enumeration Documentation

enum MagicView::VIEW_MODE
protected
Enumerator:
VIEW_TOP 
VIEW_PERSPECTIVE 
VIEW_SIDE 
VIEW_FRONT 
VIEW_ALL 
VIEW_UV_MAP 

Definition at line 106 of file MagicView.h.


Constructor & Destructor Documentation

MagicView::MagicView ( )
protected

Definition at line 134 of file MagicView.cpp.

MagicView::~MagicView ( )
virtual

Definition at line 163 of file MagicView.cpp.


Member Function Documentation

void MagicView::CloseUVEditor ( )
protected

Definition at line 692 of file MagicView.cpp.

MagicDoc * MagicView::GetDocument ( )
inline

Definition at line 192 of file MagicView.h.

MagicView * MagicView::GetInstance ( )
static

Definition at line 182 of file MagicView.cpp.

ModelView * MagicView::GetModelViewByIndex ( int  index)
protected

Definition at line 499 of file MagicView.cpp.

int MagicView::GetWinIndexByPoint ( int  x,
int  y 
)
protectedvirtual

Definition at line 481 of file MagicView.cpp.

bool MagicView::IsUVEdit ( ) const
inlineprotected

Definition at line 120 of file MagicView.h.

CPoint MagicView::LPtoWP ( const CPoint &  p)
virtual

Definition at line 589 of file MagicView.cpp.

void MagicView::OnDraw ( CDC *  pDC)
protectedvirtual

Definition at line 516 of file MagicView.cpp.

void MagicView::OnEditRedo ( )
protected

Definition at line 1406 of file MagicView.cpp.

void MagicView::OnEditUndo ( )
protected

Definition at line 1373 of file MagicView.cpp.

void MagicView::OnEnterSizeMove ( )
virtual

Definition at line 606 of file MagicView.cpp.

void MagicView::OnExitSizeMove ( )
virtual

Definition at line 611 of file MagicView.cpp.

void MagicView::OnFileExport ( )
protected

Definition at line 802 of file MagicView.cpp.

void MagicView::OnFileImport ( )
protected

Definition at line 775 of file MagicView.cpp.

void MagicView::OnGridProperties ( )
protected

Definition at line 920 of file MagicView.cpp.

void MagicView::OnGridShow ( )
protected

Definition at line 926 of file MagicView.cpp.

void MagicView::OnGridSnap ( )
protected

Definition at line 932 of file MagicView.cpp.

void MagicView::OnInitialUpdate ( )
virtual

Definition at line 217 of file MagicView.cpp.

void MagicView::OnLButtonDblClk ( UINT  nFlags,
CPoint  point 
)
protected

Definition at line 1004 of file MagicView.cpp.

void MagicView::OnLButtonDown ( UINT  nFlags,
CPoint  point 
)
protected

Definition at line 946 of file MagicView.cpp.

void MagicView::OnLButtonUp ( UINT  nFlags,
CPoint  point 
)
protected

Definition at line 987 of file MagicView.cpp.

void MagicView::OnModifyMaterial ( )
protected

Definition at line 880 of file MagicView.cpp.

void MagicView::OnModifyUVMap ( )
protected

Definition at line 896 of file MagicView.cpp.

void MagicView::OnMouseMove ( UINT  nFlags,
CPoint  point 
)
protected

Definition at line 1064 of file MagicView.cpp.

BOOL MagicView::OnMouseWheel ( UINT  nFlags,
short  zDelta,
CPoint  pt 
)
protected

Definition at line 1127 of file MagicView.cpp.

void MagicView::OnPaint ( )
protected

Definition at line 510 of file MagicView.cpp.

void MagicView::OnRButtonDblClk ( UINT  nFlags,
CPoint  point 
)
protected

Definition at line 1042 of file MagicView.cpp.

void MagicView::OnRButtonDown ( UINT  nFlags,
CPoint  point 
)
protected

Definition at line 1020 of file MagicView.cpp.

void MagicView::OnRButtonUp ( UINT  nFlags,
CPoint  point 
)
protected

Definition at line 1034 of file MagicView.cpp.

void MagicView::OnRender ( )
protected

Definition at line 659 of file MagicView.cpp.

void MagicView::OnSelectAll ( )
protected

Definition at line 1254 of file MagicView.cpp.

void MagicView::OnSelectInverse ( )
protected

Definition at line 1284 of file MagicView.cpp.

void MagicView::OnSelectNone ( )
protected

Definition at line 1269 of file MagicView.cpp.

void MagicView::OnSize ( UINT  nType,
int  cx,
int  cy 
)
protected

Definition at line 617 of file MagicView.cpp.

void MagicView::OnSurfaceProperties ( )
protected

Definition at line 830 of file MagicView.cpp.

void MagicView::OnTextureMap ( )
protected

Definition at line 844 of file MagicView.cpp.

void MagicView::OnUpdate ( CView *  pSender,
LPARAM  lHint,
CObject *  pHint 
)
protectedvirtual

Definition at line 569 of file MagicView.cpp.

void MagicView::OnUpdateEditRedo ( CCmdUI *  pCmdUI)
protected

Definition at line 1425 of file MagicView.cpp.

void MagicView::OnUpdateEditUndo ( CCmdUI *  pCmdUI)
protected

Definition at line 1392 of file MagicView.cpp.

void MagicView::OnUpdateGridSnap ( CCmdUI *  pCmdUI)
protected

Definition at line 938 of file MagicView.cpp.

void MagicView::OnUpdateModifyMaterial ( CCmdUI *  pCmdUI)
protected

Definition at line 890 of file MagicView.cpp.

void MagicView::OnUpdateModifyUVMap ( CCmdUI *  pCmdUI)
protected

Definition at line 913 of file MagicView.cpp.

void MagicView::OnUpdateSurfaceProperties ( CCmdUI *  pCmdUI)
protected

Definition at line 836 of file MagicView.cpp.

void MagicView::OnUpdateTextureMap ( CCmdUI *  pCmdUI)
protected

Definition at line 872 of file MagicView.cpp.

void MagicView::OnUpdateViewAll ( CCmdUI *  pCmdUI)
protected

Definition at line 715 of file MagicView.cpp.

void MagicView::OnUpdateViewAnimatelight ( CCmdUI *  pCmdUI)
protected

Definition at line 1317 of file MagicView.cpp.

void MagicView::OnUpdateViewBumpmaps ( CCmdUI *  pCmdUI)
protected

Definition at line 1330 of file MagicView.cpp.

void MagicView::OnUpdateViewFront ( CCmdUI *  pCmdUI)
protected

Definition at line 728 of file MagicView.cpp.

void MagicView::OnUpdateViewPerspective ( CCmdUI *  pCmdUI)
protected

Definition at line 741 of file MagicView.cpp.

void MagicView::OnUpdateViewPixelshader ( CCmdUI *  pCmdUI)
protected

Definition at line 1357 of file MagicView.cpp.

void MagicView::OnUpdateViewShadows ( CCmdUI *  pCmdUI)
protected

Definition at line 1307 of file MagicView.cpp.

void MagicView::OnUpdateViewSide ( CCmdUI *  pCmdUI)
protected

Definition at line 754 of file MagicView.cpp.

void MagicView::OnUpdateViewTop ( CCmdUI *  pCmdUI)
protected

Definition at line 767 of file MagicView.cpp.

void MagicView::OnUpdateViewVertexshader ( CCmdUI *  pCmdUI)
protected

Definition at line 1343 of file MagicView.cpp.

void MagicView::OnUpdateViewVisibleshadows ( CCmdUI *  pCmdUI)
protected

Definition at line 1368 of file MagicView.cpp.

void MagicView::OnViewAll ( )
protected

Definition at line 708 of file MagicView.cpp.

void MagicView::OnViewAnimatelight ( )
protected

Definition at line 1312 of file MagicView.cpp.

void MagicView::OnViewBackColor ( )
protected

Definition at line 1235 of file MagicView.cpp.

void MagicView::OnViewBumpmaps ( )
protected

Definition at line 1322 of file MagicView.cpp.

void MagicView::OnViewFront ( )
protected

Definition at line 721 of file MagicView.cpp.

void MagicView::OnViewModeSolid ( )
protected

Definition at line 1217 of file MagicView.cpp.

void MagicView::OnViewModeTextured ( )
protected

Definition at line 1226 of file MagicView.cpp.

void MagicView::OnViewModeWireframe ( )
protected

Definition at line 1208 of file MagicView.cpp.

void MagicView::OnViewPerspective ( )
protected

Definition at line 734 of file MagicView.cpp.

void MagicView::OnViewPixelshader ( )
protected

Definition at line 1349 of file MagicView.cpp.

void MagicView::OnViewShadows ( )
protected

Definition at line 1299 of file MagicView.cpp.

void MagicView::OnViewSide ( )
protected

Definition at line 747 of file MagicView.cpp.

void MagicView::OnViewTop ( )
protected

Definition at line 760 of file MagicView.cpp.

void MagicView::OnViewVertexshader ( )
protected

Definition at line 1335 of file MagicView.cpp.

void MagicView::OnViewVisibleshadows ( )
protected

Definition at line 1363 of file MagicView.cpp.

void MagicView::OnViewZoomIn ( )
protected

Definition at line 1182 of file MagicView.cpp.

void MagicView::OnViewZoomNormal ( )
protected

Definition at line 1171 of file MagicView.cpp.

void MagicView::OnViewZoomOut ( )
protected

Definition at line 1194 of file MagicView.cpp.

BOOL MagicView::PreCreateWindow ( CREATESTRUCT &  cs)
virtual

Definition at line 187 of file MagicView.cpp.

void MagicView::ResizeVideo ( )
virtual

Definition at line 522 of file MagicView.cpp.

void MagicView::SetFocusModelView ( int  f)
protectedvirtual

Definition at line 429 of file MagicView.cpp.

void MagicView::SetupModelViews ( )
protectedvirtual

Definition at line 358 of file MagicView.cpp.


Member Data Documentation

bool MagicView::animate_light
protected

Definition at line 104 of file MagicView.h.

Light* MagicView::back_light
protected

Definition at line 90 of file MagicView.h.

RECT MagicView::client_rect
protected

Definition at line 81 of file MagicView.h.

bool MagicView::drag_left
protected

Definition at line 98 of file MagicView.h.

bool MagicView::drag_right
protected

Definition at line 99 of file MagicView.h.

CPoint MagicView::drag_start
protected

Definition at line 100 of file MagicView.h.

Grid* MagicView::grid
protected

Definition at line 87 of file MagicView.h.

bool MagicView::is_maximized
protected

Definition at line 84 of file MagicView.h.

bool MagicView::is_minimized
protected

Definition at line 83 of file MagicView.h.

bool MagicView::is_sizing
protected

Definition at line 85 of file MagicView.h.

Light* MagicView::main_light
protected

Definition at line 89 of file MagicView.h.

ActiveWindow* MagicView::main_win
protected

Definition at line 91 of file MagicView.h.

ModelView* MagicView::model_view[4]
protected

Definition at line 93 of file MagicView.h.

Scene* MagicView::scene
protected

Definition at line 88 of file MagicView.h.

Screen* MagicView::screen
protected

Definition at line 80 of file MagicView.h.

UVMapView* MagicView::uvmap_view
protected

Definition at line 95 of file MagicView.h.

ActiveWindow* MagicView::uvmap_win
protected

Definition at line 94 of file MagicView.h.

Video* MagicView::video
protected

Definition at line 78 of file MagicView.h.

VideoSettings* MagicView::video_settings
protected

Definition at line 79 of file MagicView.h.

bool MagicView::view_bumpmaps
protected

Definition at line 102 of file MagicView.h.

int MagicView::view_focus
protected

Definition at line 97 of file MagicView.h.

int MagicView::view_mode
protected

Definition at line 96 of file MagicView.h.

bool MagicView::view_shadows
protected

Definition at line 103 of file MagicView.h.

ActiveWindow* MagicView::view_win[4]
protected

Definition at line 92 of file MagicView.h.

DWORD MagicView::window_style
protected

Definition at line 82 of file MagicView.h.


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