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

#include <Editor.h>

List of all members.

Public Types

enum  {
  MAP_NONE, MAP_PLANAR, MAP_CYLINDRICAL, MAP_SPHERICAL,
  MAP_STRETCH
}

Public Member Functions

 Editor (MagicDoc *doc)
void UseModel (Model *m)
ModelGetModel () const
void ApplyMaterial (Material *material, List< Poly > &polys, int mapping, int axis, float scale_u, float scale_v, int flip, int mirror, int rotate)
void ApplyMaterialCylindrical (Material *material, List< Poly > &polys, int axis, float scale_u, float scale_v, int flip, int mirror, int rotate)
void ApplyMaterialSpherical (Material *material, List< Poly > &polys, int axis, float scale_u, float scale_v, int flip, int mirror, int rotate)
void Resegment ()

Protected Attributes

MagicDocdocument
Modelmodel

Detailed Description

Definition at line 32 of file Editor.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
MAP_NONE 
MAP_PLANAR 
MAP_CYLINDRICAL 
MAP_SPHERICAL 
MAP_STRETCH 

Definition at line 43 of file Editor.h.


Constructor & Destructor Documentation

Editor::Editor ( MagicDoc doc)
inline

Definition at line 35 of file Editor.h.


Member Function Documentation

void Editor::ApplyMaterial ( Material material,
List< Poly > &  polys,
int  mapping,
int  axis,
float  scale_u,
float  scale_v,
int  flip,
int  mirror,
int  rotate 
)

Definition at line 83 of file Editor.cpp.

void Editor::ApplyMaterialCylindrical ( Material material,
List< Poly > &  polys,
int  axis,
float  scale_u,
float  scale_v,
int  flip,
int  mirror,
int  rotate 
)

Definition at line 209 of file Editor.cpp.

void Editor::ApplyMaterialSpherical ( Material material,
List< Poly > &  polys,
int  axis,
float  scale_u,
float  scale_v,
int  flip,
int  mirror,
int  rotate 
)

Definition at line 285 of file Editor.cpp.

Model* Editor::GetModel ( ) const
inline

Definition at line 39 of file Editor.h.

void Editor::Resegment ( )

Definition at line 308 of file Editor.cpp.

void Editor::UseModel ( Model m)
inline

Definition at line 38 of file Editor.h.


Member Data Documentation

MagicDoc* Editor::document
protected

Definition at line 61 of file Editor.h.

Model* Editor::model
protected

Definition at line 62 of file Editor.h.


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