- solidgraph_sources.zip
- solidgraph_sources
- ArMaX
- Boolean
- CxImage
- Debug
- DraftTemplates
- DT1.sdt
- DT2.sdt
- sgCore.dll
- ExGUILib
- jpeg
- Kinematic
- lua
- MaterialsEditor
- png
- Release
- sgCore.dll
- Scripts
- boxes.sgs
- circles.sgs
- cones.sgs
- cylinders.sgs
- ellipsoids.sgs
- lines.sgs
- points.sgs
- print.sgs
- Script.sgs
- spBands.sgs
- spheres.sgs
- toruses.sgs
- sgCore
- Solidgraph.sln
- Solidgraph
- SplashLib
- Standard2D
- arc.bmp
- circ.bmp
- Commands
- Dialogs
- line.bmp
- path.bmp
- pnt.bmp
- ReadMe.txt
- res
- circ_3p.bmp
- circ_c_r.bmp
- circ_edit_cen.bmp
- circ_edit_norm.bmp
- circ_edit_rad.bmp
- line_arc_end.bmp
- line_arc_perpendic_end.bmp
- line_edit.bmp
- line_line_extension.bmp
- line_line_perpendic_end.bmp
- line_point_increment.bmp
- line_point_vector.bmp
- line_two_points.bmp
- pnt_edit.bmp
- Spline_edit.bmp
- Standard2D.rc2
- resource.h
- spl.bmp
- Standard2D.cpp
- Standard2D.def
- Standard2D.rc
- Standard2D.vcproj
- StdAfx.cpp
- StdAfx.h
- toolbar.bmp
- toolbarBMP.bmp
- toolbarBMPOld.bmp
- Standard3D
- Surfaces
- tiff
- zlib
- solidgraph_bin.zip
- solidgraph_bin
- DraftTemplates
- DT1.sdt
- DT2.sdt
- Plugins
- Boolean.ppl
- Kinematic.ppl
- Standard2D.ppl
- Standard3D.ppl
- Surfaces.ppl
- sgCore.dll
- Solidgraph.exe
- SplashLib.dll
|
#ifndef __RotationCommand__
#define __RotationCommand__
#include <list>
class RotationCommand : public ICommander, public IContextMenuInterface
{
IApplicationInterface* m_app;
private:
IGetObjectsPanel* m_get_contour_panel;
IGetPointPanel* m_get_first_point_panel;
IGetPointPanel* m_get_second_point_panel;
IGetNumberPanel* m_get_angle_panel;
SG_POINT m_obj_gab_center;
SG_POINT m_cur_pnt;
SG_ARC m_draw_arc;
SG_POINT m_arc_center;
bool m_exist_draw_arc;
sgCObject* m_first_obj;
SG_POINT m_axe_p1;
SG_POINT m_axe_p2;
double m_angle;
int m_step;
CString m_message;
SG_VECTOR m_plane_Normal;
double m_plane_D;
bool m_want_close;
bool m_need_third_pnt_for_plane;
bool m_need_fourth_pnt_for_plane;
bool m_bad_point_on_plane;
bool m_inQuestionRegime;
std::list<SG_LINE> m_object_lines;
void FillObjectLinesList(sgCObject*);
bool IsIntersect(SG_LINE*);
public:
RotationCommand(IApplicationInterface* appI);
virtual ~RotationCommand();
virtual void Start() ;
virtual bool PreTranslateMessage(MSG* pMsg);
virtual void Draw();
IContextMenuInterface* GetContextMenuInterface() {return this;};
virtual void SendCommanderMessage(COMMANDER_MESSAGE, void*);
private:
virtual unsigned int GetItemsCount();
virtual void GetItem(unsigned int, CString&);
virtual void GetItemState(unsigned int, bool&, bool&);
virtual HBITMAP GetItemBitmap(unsigned int);
virtual void Run(unsigned int);
void MouseMove(unsigned int,int,int);
void LeftClick(unsigned int,int,int);
void OnEnter();
};
#endif
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.