0025284: Problems with standard MFC samples
[occt.git] / samples / mfc / standard / 04_Viewer3d / src / Viewer3dDoc.h
index 76ad0e3..af369bb 100755 (executable)
@@ -25,127 +25,130 @@ class OCCDemo_Presentation;
 
 class CViewer3dDoc : public OCC_3dDoc
 {
-       DECLARE_DYNCREATE(CViewer3dDoc)
+  DECLARE_DYNCREATE(CViewer3dDoc)
+
 protected: // create from serialization only
-       CViewer3dDoc();
-       void InitViewButtons();
-       void DoSample();
+  CViewer3dDoc();
+  void InitViewButtons();
+  void DoSample();
 
 public:
-       void SetMyStaticTrihedronAxisIsDisplayed(BOOL IsDisplayed);
-       Handle_AIS_Shape GetBox();
-       Handle_AIS_Shape GetSphere();
-       Handle_User_Cylinder GetCylinder();
-       Handle_AIS_Shape GetOverlappedBox();
-       Handle_AIS_Shape GetOverlappedSphere();
-       Handle_AIS_Shape GetOverlappedCylinder();
-       void Start();
-       Standard_CString GetDataDir() {return myDataDir;}
-       static void Fit();
-
-       virtual ~CViewer3dDoc();
-       void UpdateResultMessageDlg (CString theTitle, const TCollection_AsciiString& theMessage);
+  void SetMyStaticTrihedronAxisIsDisplayed(BOOL IsDisplayed);
+  Handle_AIS_Shape GetBox();
+  Handle_AIS_Shape GetSphere();
+  Handle_User_Cylinder GetCylinder();
+  Handle_AIS_Shape GetOverlappedBox();
+  Handle_AIS_Shape GetOverlappedSphere();
+  Handle_AIS_Shape GetOverlappedCylinder();
+  void Start();
+  Standard_CString GetDataDir() {return myDataDir;}
+  static void Fit();
+
+  virtual ~CViewer3dDoc();
+  void UpdateResultMessageDlg (CString theTitle, const TCollection_AsciiString& theMessage);
   void UpdateResultMessageDlg (CString theTitle, CString theMessage);
-       virtual BOOL OnNewDocument();
-       virtual void Popup (const Standard_Integer  x       ,
-                                       const Standard_Integer  y       ,
-                        const Handle(V3d_View)& aView   );
-       
-       virtual void DragEvent (const Standard_Integer  x       ,
-                                               const Standard_Integer  y       ,
-                                               const Standard_Integer  TheState,
-                         const Handle(V3d_View)& aView   );
-    virtual void InputEvent     (const Standard_Integer  x       ,
-                                    const Standard_Integer  y       ,
-                         const Handle(V3d_View)& aView   );  
-    virtual void ShiftDragEvent (const Standard_Integer  x       ,
-                                        const Standard_Integer  y       ,
-                                        const Standard_Integer  TheState,
-                         const Handle(V3d_View)& aView   ); 
-    virtual void ShiftInputEvent(const Standard_Integer  x       ,
-                                        const Standard_Integer  y       ,
-                         const Handle(V3d_View)& aView   ); 
+  virtual BOOL OnNewDocument();
+  virtual void Popup (const Standard_Integer x,
+                      const Standard_Integer y,
+                      const Handle(V3d_View)& aView);
+
+  virtual void DragEvent (const Standard_Integer x,
+                          const Standard_Integer y,
+                          const Standard_Integer TheState,
+                          const Handle(V3d_View)& aView);
+
+  virtual void InputEvent (const Standard_Integer x,
+                           const Standard_Integer y,
+                           const Handle(V3d_View)& aView);
+
+  virtual void ShiftDragEvent (const Standard_Integer x,
+                               const Standard_Integer y,
+                               const Standard_Integer TheState,
+                               const Handle(V3d_View)& aView);
+
+  virtual void ShiftInputEvent (const Standard_Integer x,
+                                const Standard_Integer y,
+                                const Handle(V3d_View)& aView);
 
 #ifdef _DEBUG
-       virtual void AssertValid() const;
-       virtual void Dump(CDumpContext& dc) const;
+  virtual void AssertValid() const;
+  virtual void Dump(CDumpContext& dc) const;
 #endif
 
-// Generated message map functions
+  // Generated message map functions
 protected:
-       BOOL myStaticTrihedronAxisIsDisplayed;  
-       //{{AFX_MSG(CViewer3dDoc)
-       afx_msg void OnBox();
-       afx_msg void OnCylinder();
-       afx_msg void OnSphere();
-       afx_msg void OnRemoveAll();
-       afx_msg void OnNbisos();
-       afx_msg void OnFaces();
-       afx_msg void OnEdges();
-       afx_msg void OnVertices();
-       afx_msg void OnNeutral();
-       afx_msg void OnUsercylinderChangefacecolor();
-       afx_msg void OnFillet3d();
-       afx_msg void OnCircle();
-       afx_msg void OnLine();
-       afx_msg void OnOverlappedBox();
-       afx_msg void OnOverlappedCylinder();
-       afx_msg void OnOverlappedSphere();
-       afx_msg void OnPolygonOffsets();
-       afx_msg void OnUpdatePolygonOffsets(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateCylinder(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateSphere(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBox(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateOverlappedCylinder(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateOverlappedSphere(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateOverlappedBox(CCmdUI* pCmdUI);
-       afx_msg void OnObjectRemove();
-       afx_msg void OnObjectErase();
-       afx_msg void OnObjectDisplayall();
-       afx_msg void OnObjectColoredMesh();
-       afx_msg void OnUpdateObjectColoredMesh(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateObjectShading(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateObjectWireframe(CCmdUI* pCmdUI);
-       afx_msg void OnOptionsTrihedronDynamicTrihedron();
-       afx_msg void OnUpdateOptionsTrihedronDynamicTrihedron(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateOptionsTrihedronStaticTrihedron(CCmdUI* pCmdUI);
-       afx_msg void OnTextureOn();
-       afx_msg void OnBUTTONNext();
-       afx_msg void OnBUTTONStart();
-       afx_msg void OnBUTTONRepeat();
-       afx_msg void OnBUTTONPrev();
-       afx_msg void OnBUTTONEnd();
-       afx_msg void OnUpdateBUTTONNext(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONPrev(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONStart(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONRepeat(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONEnd(CCmdUI* pCmdUI);
-       afx_msg void OnFileNew();
-       afx_msg void OnBUTTONShowResult();
-       afx_msg void OnDumpView();
-       //}}AFX_MSG
-       DECLARE_MESSAGE_MAP()
-
-//Attributes
+  BOOL myStaticTrihedronAxisIsDisplayed;       
+  //{{AFX_MSG(CViewer3dDoc)
+  afx_msg void OnBox();
+  afx_msg void OnCylinder();
+  afx_msg void OnSphere();
+  afx_msg void OnRemoveAll();
+  afx_msg void OnNbisos();
+  afx_msg void OnFaces();
+  afx_msg void OnEdges();
+  afx_msg void OnVertices();
+  afx_msg void OnNeutral();
+  afx_msg void OnUsercylinderChangefacecolor();
+  afx_msg void OnFillet3d();
+  afx_msg void OnCircle();
+  afx_msg void OnLine();
+  afx_msg void OnOverlappedBox();
+  afx_msg void OnOverlappedCylinder();
+  afx_msg void OnOverlappedSphere();
+  afx_msg void OnPolygonOffsets();
+  afx_msg void OnUpdatePolygonOffsets(CCmdUI* pCmdUI);
+  afx_msg void OnUpdateCylinder(CCmdUI* pCmdUI);
+  afx_msg void OnUpdateSphere(CCmdUI* pCmdUI);
+  afx_msg void OnUpdateBox(CCmdUI* pCmdUI);
+  afx_msg void OnUpdateOverlappedCylinder(CCmdUI* pCmdUI);
+  afx_msg void OnUpdateOverlappedSphere(CCmdUI* pCmdUI);
+  afx_msg void OnUpdateOverlappedBox(CCmdUI* pCmdUI);
+  afx_msg void OnObjectRemove();
+  afx_msg void OnObjectErase();
+  afx_msg void OnObjectDisplayall();
+  afx_msg void OnObjectColoredMesh();
+  afx_msg void OnUpdateObjectColoredMesh(CCmdUI* pCmdUI);
+  afx_msg void OnUpdateObjectShading(CCmdUI* pCmdUI);
+  afx_msg void OnUpdateObjectWireframe(CCmdUI* pCmdUI);
+  afx_msg void OnOptionsTrihedronDynamicTrihedron();
+  afx_msg void OnUpdateOptionsTrihedronDynamicTrihedron(CCmdUI* pCmdUI);
+  afx_msg void OnUpdateOptionsTrihedronStaticTrihedron(CCmdUI* pCmdUI);
+  afx_msg void OnTextureOn();
+  afx_msg void OnBUTTONNext();
+  afx_msg void OnBUTTONStart();
+  afx_msg void OnBUTTONRepeat();
+  afx_msg void OnBUTTONPrev();
+  afx_msg void OnBUTTONEnd();
+  afx_msg void OnUpdateBUTTONNext(CCmdUI* pCmdUI);
+  afx_msg void OnUpdateBUTTONPrev(CCmdUI* pCmdUI);
+  afx_msg void OnUpdateBUTTONStart(CCmdUI* pCmdUI);
+  afx_msg void OnUpdateBUTTONRepeat(CCmdUI* pCmdUI);
+  afx_msg void OnUpdateBUTTONEnd(CCmdUI* pCmdUI);
+  afx_msg void OnFileNew();
+  afx_msg void OnBUTTONShowResult();
+  afx_msg void OnDumpView();
+  //}}AFX_MSG
+  DECLARE_MESSAGE_MAP()
+
+  //Attributes
 protected:
-       int myState;
+  int myState;
 
 private:
-       COffsetDlg* myOffsetDlg;
-
-       Handle_User_Cylinder myCylinder;
-       Handle_AIS_Shape mySphere;
-       Handle_AIS_Shape myBox;
-       Handle_AIS_Shape myOverlappedCylinder;
-       Handle_AIS_Shape myOverlappedSphere;
-       Handle_AIS_Shape myOverlappedBox;
-       Handle_AIS_Trihedron myTrihedron;
-
-       OCCDemo_Presentation *myPresentation;
-       char myDataDir[5]; // for "Data\0"
-       char myLastPath[MAX_PATH]; // directory of lastly saved file in DumpView()
-       bool isTextureSampleStarted;
+  COffsetDlg* myOffsetDlg;
+
+  Handle_User_Cylinder myCylinder;
+  Handle_AIS_Shape mySphere;
+  Handle_AIS_Shape myBox;
+  Handle_AIS_Shape myOverlappedCylinder;
+  Handle_AIS_Shape myOverlappedSphere;
+  Handle_AIS_Shape myOverlappedBox;
+  Handle_AIS_Trihedron myTrihedron;
+
+  OCCDemo_Presentation *myPresentation;
+  char myDataDir[5];         // for "Data\0"
+  char myLastPath[MAX_PATH]; // directory of lastly saved file in DumpView()
+  bool isTextureSampleStarted;
 };
 
 /////////////////////////////////////////////////////////////////////////////