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

#include <UVMapView.h>

Inheritance diagram for UVMapView:
View

List of all members.

Public Types

enum  SELECT_MODE { SELECT_REMOVE = -1, SELECT_REPLACE = 0, SELECT_APPEND = 1 }

Public Member Functions

 UVMapView (Window *c)
virtual ~UVMapView ()
virtual void Refresh ()
void UseMaterial (Material *m)
void UsePolys (List< Poly > &p)
void MoveBy (double dx, double dy)
void DragBy (double dx, double dy)
void ZoomIn ()
void ZoomOut ()
void Clear ()
void Begin (int select_mode=SELECT_REPLACE)
void AddMark (CPoint &p)
void End ()
bool IsActive () const
void SelectAll ()
void SelectNone ()
void SelectInverse ()
bool IsSelected (Poly *p, WORD v)
bool WillSelect (CPoint &p)
- Public Member Functions inherited from View
 View (Window *c)
virtual ~View ()
int operator== (const View &that) const
virtual void OnWindowMove ()
virtual void OnShow ()
virtual void OnHide ()
virtual void SetWindow (Window *w)
virtual WindowGetWindow ()

Protected Types

enum  { MAX_MARK = 4096 }

Protected Attributes

Materialmaterial
List< Polypolys
Videovideo
double zoom
double x_offset
double y_offset
int nmarks
CPoint marks [MAX_MARK]
int select_mode
bool active
std::vector< DWORD > selverts
- Protected Attributes inherited from View
Windowwindow

Additional Inherited Members

- Static Public Member Functions inherited from View
static const char * TYPENAME ()

Detailed Description

Definition at line 30 of file UVMapView.h.


Member Enumeration Documentation

anonymous enum
protected
Enumerator:
MAX_MARK 

Definition at line 62 of file UVMapView.h.

Enumerator:
SELECT_REMOVE 
SELECT_REPLACE 
SELECT_APPEND 

Definition at line 36 of file UVMapView.h.


Constructor & Destructor Documentation

UVMapView::UVMapView ( Window c)

Definition at line 38 of file UVMapView.cpp.

UVMapView::~UVMapView ( )
virtual

Definition at line 44 of file UVMapView.cpp.


Member Function Documentation

void UVMapView::AddMark ( CPoint &  p)

Definition at line 218 of file UVMapView.cpp.

void UVMapView::Begin ( int  select_mode = SELECT_REPLACE)

Definition at line 210 of file UVMapView.cpp.

void UVMapView::Clear ( )

Definition at line 204 of file UVMapView.cpp.

void UVMapView::DragBy ( double  dx,
double  dy 
)

Definition at line 174 of file UVMapView.cpp.

void UVMapView::End ( )

Definition at line 225 of file UVMapView.cpp.

bool UVMapView::IsActive ( ) const
inline

Definition at line 53 of file UVMapView.h.

bool UVMapView::IsSelected ( Poly p,
WORD  v 
)

Definition at line 396 of file UVMapView.cpp.

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

Definition at line 167 of file UVMapView.cpp.

void UVMapView::Refresh ( )
virtual

Reimplemented from View.

Definition at line 53 of file UVMapView.cpp.

void UVMapView::SelectAll ( )

Definition at line 341 of file UVMapView.cpp.

void UVMapView::SelectInverse ( )

Definition at line 367 of file UVMapView.cpp.

void UVMapView::SelectNone ( )

Definition at line 361 of file UVMapView.cpp.

void UVMapView::UseMaterial ( Material m)

Definition at line 149 of file UVMapView.cpp.

void UVMapView::UsePolys ( List< Poly > &  p)

Definition at line 160 of file UVMapView.cpp.

bool UVMapView::WillSelect ( CPoint &  p)

Definition at line 411 of file UVMapView.cpp.

void UVMapView::ZoomIn ( )
inline

Definition at line 45 of file UVMapView.h.

void UVMapView::ZoomOut ( )
inline

Definition at line 46 of file UVMapView.h.


Member Data Documentation

bool UVMapView::active
protected

Definition at line 75 of file UVMapView.h.

CPoint UVMapView::marks[MAX_MARK]
protected

Definition at line 73 of file UVMapView.h.

Material* UVMapView::material
protected

Definition at line 64 of file UVMapView.h.

int UVMapView::nmarks
protected

Definition at line 72 of file UVMapView.h.

List<Poly> UVMapView::polys
protected

Definition at line 65 of file UVMapView.h.

int UVMapView::select_mode
protected

Definition at line 74 of file UVMapView.h.

std::vector<DWORD> UVMapView::selverts
protected

Definition at line 77 of file UVMapView.h.

Video* UVMapView::video
protected

Definition at line 66 of file UVMapView.h.

double UVMapView::x_offset
protected

Definition at line 69 of file UVMapView.h.

double UVMapView::y_offset
protected

Definition at line 70 of file UVMapView.h.

double UVMapView::zoom
protected

Definition at line 68 of file UVMapView.h.


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