class mzDraftEditor : public csComponent This is the draft editor class
The scale is expressed as the medium distance between horizontal and vertical window bounds
This is the draft editor class
The scale is expressed as the medium distance between
horizontal and vertical window bounds. For example, if scale is 1
and we have a square window, and the center point of window (pos)
is at (0,0,0), and we have a XOY plane projection matrix this means
that we'll see in window the square (-0.5, -0.5, 0)...(+0.5, +0.5, 0)
virtual void Draw()
virtual bool HandleEvent(csEvent &Event)
virtual bool SetRect(int xmin, int ymin, int xmax, int ymax)
void SetViewAngles(float iPhi, float iTheta)
float phi
float scale
csMatrix3 w2c
csVector3 pos
csMenu* menu
int oldMouseX
int dragMouseX
bool dragRect
struct
float xmin
mz3DVertex clip_corner[4]
static int ConnVerticeOrd
int ModifyMode
csMatrix3 ModifyDeform
csVector3 ModifyMotion
csVector3 ModifyCenter
static bool doCreatePolygon
static int PolygonVertices
static bool doCreateBody
static int BodyCreationPhase
void UpdateMatrix()
void world2win(csVector3 &v, int &x, int &y)
void world2win(csVector3 &v, csVector3 &dest)
void world2winM(csVector3 &v, int &x, int &y)
void win2world(int x, int y, float z, csVector3 &v)
void win2world(float x, float y, float z, csVector3 &v)
void PrepareModificationMatrix()
void Modify(csVector3 &v)
void ZoomInOut(int x, int y, float delta)
int PickVertex(int x, int y)
void DrawGadgets()
bool clip3Dline(csVector3 &v1, csVector3 &v2)
int InsertVertexAt(int x, int y)
void ZoomToRect(csVector3 &o, csVector3 &ha, csVector3 &va, bool iUpdateAngles = false)
void SnapToGrid(csVector3 &v)
void ConnectPolyVertex(int x, int y)
void FinishConnectPoly()
void SelectRect(csRect &r)
void FitModelInWindow()
void CenterModelInWindow()
void GridInterpolationSteps(mz3DVertex &v1, mz3DVertex &v2, mz3DVertex &step, int &steps)
void ShowPolygon(int xc, int yc, int xr, int yr)
void ShowBody(int xc, int yc, int xr, int yr)
void CreatePolygon(int icx, int icy, int irx, int iry, float iz, bool iReverse, int *oVertIdx)
void CreateBox(int xl, int yt, int xr, int yb, float depth)
void CreatePrism(int xc, int yc, int xr, int yr, float depth)
void CreatePyramid(int xc, int yc, int xr, int yr, float depth)
void CreateTorus(int xc, int yc, int xr, int yr, float iInnerRadius, float iOuterRadius)
void CreateSphere(int xc, int yc, int xr, int yr)
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de