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

#include <ModelView.h>

Inheritance diagram for ModelView:
CameraView View

List of all members.

Public Types

enum  VIEW_MODE { VIEW_PLAN = 1, VIEW_FRONT, VIEW_SIDE, VIEW_PROJECT }
enum  FILL_MODE { FILL_WIRE = 1, FILL_SOLID, FILL_TEXTURE }

Public Member Functions

 ModelView (Window *c, Scene *s, DWORD m)
virtual ~ModelView ()
virtual void RenderScene ()
virtual void Render (Graphic *g, DWORD flags)
DWORD GetViewMode () const
void SetViewMode (DWORD m)
DWORD GetFillMode () const
void SetFillMode (DWORD m)
void MoveTo (Point origin)
void MoveBy (double dx, double dy)
void SpinBy (double phi, double theta)
void UseGrid (Grid *g)
void RenderGrid ()
void ZoomNormal ()
CPoint ProjectPoint (Vec3 &p)
- Public Member Functions inherited from CameraView
 CameraView (Window *c, Camera *cam, Scene *s)
virtual ~CameraView ()
virtual void Refresh ()
virtual void OnWindowMove ()
virtual void UseCamera (Camera *cam)
virtual void UseScene (Scene *scene)
virtual void LensFlareElements (Bitmap *halo, Bitmap *e1=0, Bitmap *e2=0, Bitmap *e3=0)
virtual void LensFlare (int on, double dim=1)
virtual void SetDepthScale (float scale)
CameraGetCamera () const
ProjectorGetProjector ()
SceneGetScene () const
virtual void SetFieldOfView (double fov)
virtual double GetFieldOfView () const
virtual void SetProjectionType (DWORD pt)
virtual DWORD GetProjectionType () const
Point Pos () const
Point vrt ()
Point vup ()
Point vpn ()
const MatrixOrientation () const
Point SceneOffset () const
virtual void TranslateScene ()
virtual void UnTranslateScene ()
virtual void MarkVisibleObjects ()
virtual void MarkVisibleLights (Graphic *g, DWORD flags)
virtual void RenderSceneObjects (bool distant=false)
virtual void RenderForeground ()
virtual void RenderBackground ()
virtual void RenderSprites ()
virtual void RenderLensFlare ()
virtual void FindDepth (Graphic *g)
virtual int SetInfinite (int i)
- Public Member Functions inherited from View
 View (Window *c)
virtual ~View ()
int operator== (const View &that) const
virtual void OnShow ()
virtual void OnHide ()
virtual void SetWindow (Window *w)
virtual WindowGetWindow ()

Static Public Member Functions

static ModelViewFindView (DWORD mode)
- Static Public Member Functions inherited from CameraView
static const char * TYPENAME ()

Protected Attributes

Camera cam
DWORD view_mode
DWORD fill_mode
double az
double el
Gridgrid
- Protected Attributes inherited from CameraView
Cameracamera
Scenescene
Videovideo
Point camera_loc
Vec3 cvrt
Vec3 cvup
Vec3 cvpn
Projector projector
int infinite
int width
int height
DWORD projection_type
int lens_flare_enable
double lens_flare_dim
Bitmaphalo_bitmap
Bitmapelem_bitmap [3]
List< Graphicgraphics
- Protected Attributes inherited from View
Windowwindow

Additional Inherited Members

- Protected Member Functions inherited from CameraView
virtual void WorldPlaneToView (Plane &plane)

Detailed Description

Definition at line 24 of file ModelView.h.


Member Enumeration Documentation

Enumerator:
FILL_WIRE 
FILL_SOLID 
FILL_TEXTURE 

Definition at line 28 of file ModelView.h.

Enumerator:
VIEW_PLAN 
VIEW_FRONT 
VIEW_SIDE 
VIEW_PROJECT 

Definition at line 27 of file ModelView.h.


Constructor & Destructor Documentation

ModelView::ModelView ( Window c,
Scene s,
DWORD  m 
)

Definition at line 45 of file ModelView.cpp.

ModelView::~ModelView ( )
virtual

Definition at line 53 of file ModelView.cpp.


Member Function Documentation

ModelView * ModelView::FindView ( DWORD  mode)
static

Definition at line 110 of file ModelView.cpp.

DWORD ModelView::GetFillMode ( ) const
inline

Definition at line 38 of file ModelView.h.

DWORD ModelView::GetViewMode ( ) const
inline

Definition at line 36 of file ModelView.h.

void ModelView::MoveBy ( double  dx,
double  dy 
)

Definition at line 145 of file ModelView.cpp.

void ModelView::MoveTo ( Point  origin)

Definition at line 121 of file ModelView.cpp.

CPoint ModelView::ProjectPoint ( Vec3 p)

Definition at line 392 of file ModelView.cpp.

void ModelView::Render ( Graphic g,
DWORD  flags 
)
virtual

Reimplemented from CameraView.

Definition at line 286 of file ModelView.cpp.

void ModelView::RenderGrid ( )

Definition at line 366 of file ModelView.cpp.

void ModelView::RenderScene ( )
virtual

Reimplemented from CameraView.

Definition at line 231 of file ModelView.cpp.

void ModelView::SetFillMode ( DWORD  m)
inline

Definition at line 39 of file ModelView.h.

void ModelView::SetViewMode ( DWORD  m)

Definition at line 62 of file ModelView.cpp.

void ModelView::SpinBy ( double  phi,
double  theta 
)

Definition at line 183 of file ModelView.cpp.

void ModelView::UseGrid ( Grid g)

Definition at line 212 of file ModelView.cpp.

void ModelView::ZoomNormal ( )

Definition at line 218 of file ModelView.cpp.


Member Data Documentation

double ModelView::az
protected

Definition at line 57 of file ModelView.h.

Camera ModelView::cam
protected

Definition at line 54 of file ModelView.h.

double ModelView::el
protected

Definition at line 58 of file ModelView.h.

DWORD ModelView::fill_mode
protected

Definition at line 56 of file ModelView.h.

Grid* ModelView::grid
protected

Definition at line 59 of file ModelView.h.

DWORD ModelView::view_mode
protected

Definition at line 55 of file ModelView.h.


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